@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231027.0 → 0.0.0-nightly-20231028.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/build/revision-history.js +1 -1
  2. package/package.json +6 -6
  3. package/src/changeitem.js +1 -1
  4. package/src/editor/revisionviewereditor.js +1 -1
  5. package/src/editor/revisionviewereditorui.js +1 -1
  6. package/src/editor/revisionviewereditoruiview.js +1 -1
  7. package/src/revision.js +1 -1
  8. package/src/revisiondiff.js +1 -1
  9. package/src/revisionhistory.js +1 -1
  10. package/src/revisionsrepository.js +1 -1
  11. package/src/revisiontracker.js +1 -1
  12. package/src/revisionviewer.js +1 -1
  13. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  14. package/src/ui/revision/revisionauthorview.js +1 -1
  15. package/src/ui/revision/revisionnameview.js +1 -1
  16. package/src/ui/revision/revisionview.js +1 -1
  17. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  18. package/src/ui/revision/subrevisionview.js +1 -1
  19. package/src/ui/revision/utils.js +1 -1
  20. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  21. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  22. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  23. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  24. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  25. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  26. package/src/ui/revisionssidebar/utils.js +1 -1
  27. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  28. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  29. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  30. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  31. package/src/utils/common-translations.js +1 -1
@@ -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 e={616:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(758),r=i.n(n)()((function(e){return e[1]}));r.push([e.id,".ck.ck-revision-history-ui.ck-revision-history-ui__changes-navigation{align-items:center;display:flex;margin-left:auto}.ck.ck-revision-history-ui.ck-revision-history-ui__changes-navigation .ck-revision-history-ui__changes-navigation__wrapper{display:flex;margin-right:var(--ck-spacing-standard)}.ck.ck-revision-history-ui.ck-revision-history-ui__changes-navigation .ck-revision-history-ui__changes-navigation__label{font-weight:700;white-space:pre}.ck.ck-revision-history-ui.ck-revision-history-ui__changes-navigation .ck-revision-history-ui__changes-navigation__navigation{margin-left:var(--ck-spacing-small)}",""]);const o=r},732:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(758),r=i.n(n)()((function(e){return e[1]}));r.push([e.id,".ck{--ck-revision-history-revision-background-color:var(--ck-color-base-background);--ck-revision-history-revision-border-color:#47576b;--ck-revision-history-revision-box-shadow:0 1px 1px 1px #e6e6e6;--ck-revision-history-revision-author-icon-offset:20px;--ck-revision-history-revision-transitions:background 100ms ease-in,border 100ms ease-in;--ck-revision-history-revision-selected-text-color:var(--ck-color-base-background);--ck-revision-history-revision-selected-input-text-color-empty:var(--ck-color-base-background);--ck-revision-history-revision-selected-background-color:var(--ck-color-base-active);--ck-revision-history-revision-highlighted-background-color:#e0f1ff;--ck-revision-history-revision-highlighted-background-color-hover:#cce7ff;--ck-revision-history-revision-delete-confirmation-background:#fcc;--ck-revision-history-revision-delete-confirmation-active-button-background:#ffb3b3}.ck.ck-revision-history-sidebar__revision-wrapper .ck-revision-history-sidebar__revision{background:var(--ck-revision-history-revision-background-color);border-left:3px solid var(--ck-revision-history-revision-border-color);border-radius:var(--ck-border-radius);box-shadow:var(--ck-revision-history-revision-box-shadow);display:block;padding:var(--ck-spacing-large) calc(var(--ck-spacing-standard)*2);position:relative;transition:transform .3s ease;width:100%}.ck.ck-revision-history-sidebar__revision-wrapper .ck-revision-history-sidebar__revision:last-child{margin-bottom:0}.ck.ck-revision-history-sidebar__revision-wrapper .ck-revision-history-sidebar__revision .ck-revision-history-sidebar__revision__date{display:block;font-size:var(--ck-font-size-small);font-weight:700;opacity:.8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.ck.ck-revision-history-sidebar__revision-wrapper .ck-revision-history-sidebar__revision .ck-revision-history-sidebar__revision__controls-wrapper{align-items:flex-start;display:flex;flex-direction:row;margin:var(--ck-spacing-standard) 0 0}.ck.ck-revision-history-sidebar__revision-wrapper .ck-revision-history-sidebar__revision .ck-revision-history-sidebar__revision-authors{flex:0 1 auto;margin:0 0 0 var(--ck-revision-history-revision-author-icon-offset);min-width:0;padding:0}.ck.ck-revision-history-sidebar__revision-wrapper .ck-revision-history-sidebar__revision.ck-revision-history-sidebar__revision_highlighted,.ck.ck-revision-history-sidebar__revision-wrapper .ck-revision-history-sidebar__revision.ck-revision-history-sidebar__revision_selected{border-bottom-left-radius:0;border-left-color:transparent;border-top-left-radius:0;transform:translateX(calc(var(--ck-revision-history-sidebar-timeline-padding)*-1))}.ck.ck-revision-history-sidebar__revision-wrapper .ck-revision-history-sidebar__revision.ck-revision-history-sidebar__revision_selected{background:var(--ck-revision-history-revision-selected-background-color);color:var(--ck-revision-history-revision-selected-text-color)}.ck.ck-revision-history-sidebar__revision-wrapper .ck-revision-history-sidebar__revision.ck-revision-history-sidebar__revision_selected .ck-revision-history-sidebar__revision-name .ck-input{color:var(--ck-revision-history-revision-selected-text-color)}.ck.ck-revision-history-sidebar__revision-wrapper .ck-revision-history-sidebar__revision.ck-revision-history-sidebar__revision_selected .ck-revision-history-sidebar__revision-name .ck-input.ck-input-text_empty::placeholder{opacity:.7}.ck.ck-revision-history-sidebar__revision-wrapper .ck-revision-history-sidebar__revision.ck-revision-history-sidebar__revision_highlighted{background:var(--ck-revision-history-revision-highlighted-background-color)}.ck.ck-revision-history-sidebar__revision-wrapper .ck-revision-history-sidebar__revision.ck-revision-history-sidebar__actions_dropdown_open{z-index:var(--ck-z-default)}.ck.ck-revision-history-sidebar__revision-wrapper.ck-revision-history-sidebar__revision-wrapper_confirmation_visible .ck-revision-history-sidebar__revision{box-shadow:none;position:relative;transform:translate3d(-100%,0,0)}.ck.ck-revision-history-sidebar__revision-wrapper.ck-revision-history-sidebar__revision-wrapper_confirmation_visible .ck-revision-history-sidebar__revision,.ck.ck-revision-history-sidebar__revision-wrapper.ck-revision-history-sidebar__revision-wrapper_confirmation_visible .ck-revision-history-sidebar__revision *{--ck-revision-history-revision-background-color:transparent;--ck-revision-history-revision-selected-background-color:transparent;--ck-revision-history-revision-highlighted-background-color:transparent}.ck.ck-revision-history-sidebar__revision-wrapper .ck-thread__remove-confirm{align-items:center;background:var(--ck-revision-history-revision-delete-confirmation-background);border-radius:var(--ck-border-radius);box-shadow:var(--ck-revision-history-revision-box-shadow);display:flex;flex-direction:row;height:100%;justify-content:space-around;left:100%;position:absolute;top:0;user-select:none;width:100%}.ck.ck-revision-history-sidebar__revision-wrapper .ck-thread__remove-confirm .ck-thread__remove-confirm-inner{margin-top:var(--ck-spacing-small);text-align:center}.ck.ck-revision-history-sidebar__revision-wrapper .ck-thread__remove-confirm .ck-thread__remove-confirm-inner p{color:var(--ck-color-text);font-weight:700;margin:0}.ck.ck-revision-history-sidebar__revision-wrapper .ck-thread__remove-confirm .ck-thread__remove-confirm-inner .ck-thread__remove-confirm-actions{display:flex;flex-direction:row;justify-content:space-evenly}.ck.ck-revision-history-sidebar__revision-wrapper .ck-thread__remove-confirm .ck-thread__remove-confirm-inner .ck-thread__remove-confirm-actions .ck.ck-button:active,.ck.ck-revision-history-sidebar__revision-wrapper .ck-thread__remove-confirm .ck-thread__remove-confirm-inner .ck-thread__remove-confirm-actions .ck.ck-button:focus,.ck.ck-revision-history-sidebar__revision-wrapper .ck-thread__remove-confirm .ck-thread__remove-confirm-inner .ck-thread__remove-confirm-actions .ck.ck-button:hover{background:var(--ck-revision-history-revision-delete-confirmation-active-button-background)}.ck.ck-revision-history-sidebar__revision-wrapper .ck-thread__remove-confirm .ck-thread__remove-confirm-inner .ck-thread__remove-confirm-actions .ck.ck-button.ck-thread__remove-confirm-submit{color:var(--ck-color-button-save)}.ck.ck-revision-history-sidebar__revision-wrapper .ck-thread__remove-confirm .ck-thread__remove-confirm-inner .ck-thread__remove-confirm-actions .ck.ck-button.ck-thread__remove-confirm-cancel{color:var(--ck-color-button-cancel)}.ck.ck-revision-history-sidebar__revision-wrapper .ck-revision-history-sidebar__subrevisions{margin-left:var(--ck-spacing-large)}",""]);const o=r},966:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(758),r=i.n(n)()((function(e){return e[1]}));r.push([e.id,".ck.ck-revision-history-sidebar__revision .ck-revision-history-sidebar__revision__actions{display:none;position:absolute;right:var(--ck-spacing-small);top:var(--ck-spacing-small)}.ck.ck-revision-history-sidebar__revision .ck-revision-history-sidebar__revision__actions .ck-dropdown__button{min-height:unset;min-width:unset}.ck.ck-revision-history-sidebar__revision .ck-revision-history-sidebar__revision__actions .ck-dropdown__button .ck-button__icon{transform:scale(.7)}.ck.ck-revision-history-sidebar__revision .ck-revision-history-sidebar__revision__actions .ck-dropdown__arrow{display:none}.ck.ck-revision-history-sidebar__revision .ck-revision-history-sidebar__revision__actions .ck-list__item__danger{color:var(--ck-color-button-cancel)}.ck.ck-revision-history-sidebar__revision.ck-revision-history-sidebar__revision_selected .ck-revision-history-sidebar__revision__actions .ck-dropdown__button{color:var(--ck-color-base-background)}.ck.ck-revision-history-sidebar__revision.ck-revision-history-sidebar__revision_selected .ck-revision-history-sidebar__revision__actions .ck-dropdown__button.ck-on,.ck.ck-revision-history-sidebar__revision.ck-revision-history-sidebar__revision_selected .ck-revision-history-sidebar__revision__actions .ck-dropdown__button:hover{background:var(--ck-color-base-active-focus)}.ck.ck-revision-history-sidebar__revision.ck-revision-history-sidebar__revision_selected .ck-revision-history-sidebar__revision__actions .ck-dropdown__button.ck-on:hover,.ck.ck-revision-history-sidebar__revision.ck-revision-history-sidebar__revision_selected .ck-revision-history-sidebar__revision__actions .ck-dropdown__button:hover:hover{filter:brightness(95%)}.ck.ck-revision-history-sidebar__revision.ck-revision-history-sidebar__revision_highlighted .ck-revision-history-sidebar__revision__actions .ck-dropdown__button.ck-on,.ck.ck-revision-history-sidebar__revision.ck-revision-history-sidebar__revision_highlighted .ck-revision-history-sidebar__revision__actions .ck-dropdown__button:hover{background:var(--ck-revision-history-revision-highlighted-background-color-hover)}.ck.ck-revision-history-sidebar__revision.ck-revision-history-sidebar__revision_highlighted .ck-revision-history-sidebar__revision__actions .ck-dropdown__button.ck-on:hover,.ck.ck-revision-history-sidebar__revision.ck-revision-history-sidebar__revision_highlighted .ck-revision-history-sidebar__revision__actions .ck-dropdown__button:hover:hover{filter:brightness(95%)}.ck.ck-revision-history-sidebar__revision:hover:not(.ck-disabled) .ck-revision-history-sidebar__revision__actions,.ck.ck-revision-history-sidebar__revision:not(.ck-disabled) .ck-revision-history-sidebar__revision__actions.ck-on{display:block}",""]);const o=r},517:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(758),r=i.n(n)()((function(e){return e[1]}));r.push([e.id,".ck.ck-revision-history-sidebar__revision-author{display:block;position:relative;transition:var(--ck-revision-history-revision-transitions)}.ck.ck-revision-history-sidebar__revision-author .ck-revision-history-sidebar__revision-author__name{display:block;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.ck.ck-revision-history-sidebar__revision-author .ck-icon{height:10px;left:calc(var(--ck-revision-history-revision-author-icon-offset)*-1);position:absolute;top:3px;width:11px}.ck.ck-revision-history-sidebar__revision-author:not(:first-of-type) .ck-icon{display:none}",""]);const o=r},903:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(758),r=i.n(n)()((function(e){return e[1]}));r.push([e.id,".ck.ck-revision-history-sidebar__revision-name{display:block;font-size:1.2em;font-weight:700;left:calc(var(--ck-spacing-small)*-1);margin-right:30px;position:relative}.ck.ck-revision-history-sidebar__revision-name>.ck-labeled-field-view__input-wrapper>.ck-label{display:none}.ck.ck-revision-history-sidebar__revision-name>.ck-labeled-field-view__input-wrapper>.ck-input{background:transparent;border-radius:var(--ck-border-radius);color:inherit;font-family:inherit;font-size:var(--ck-font-size-normal);font-weight:700;min-height:auto;min-width:auto;padding:var(--ck-spacing-tiny) var(--ck-spacing-small);transition:var(--ck-revision-history-revision-transitions);width:100%}.ck.ck-revision-history-sidebar__revision-name>.ck-labeled-field-view__input-wrapper>.ck-input,.ck.ck-revision-history-sidebar__revision-name>.ck-labeled-field-view__input-wrapper>.ck-input:focus,.ck.ck-revision-history-sidebar__revision-name>.ck-labeled-field-view__input-wrapper>.ck-input[readonly]{background:transparent}.ck.ck-revision-history-sidebar__revision-name>.ck-labeled-field-view__input-wrapper>.ck-input:not(.ck-input_focused){border-color:transparent}.ck.ck-revision-history-sidebar__revision-name>.ck-labeled-field-view__input-wrapper>.ck-input::placeholder{color:inherit}.ck.ck-revision-history-sidebar__revision-name>.ck-labeled-field-view__input-wrapper>.ck-input[readonly]{pointer-events:none}",""]);const o=r},656:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(758),r=i.n(n)()((function(e){return e[1]}));r.push([e.id,".ck.ck-revision-history-save-revision-form{align-items:flex-start;display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-revision-history-save-revision-form .ck-labeled-field-view{display:inline-block}.ck.ck-revision-history-save-revision-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-revision-history-save-revision-form{flex-wrap:wrap}.ck.ck-revision-history-save-revision-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-revision-history-save-revision-form .ck-button{flex-basis:50%}}",""]);const o=r},377:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(758),r=i.n(n)()((function(e){return e[1]}));r.push([e.id,".ck{--ck-revision-history-sidebar-period-background:#ff5724;--ck-revision-history-sidebar-timeline-padding:var(--ck-spacing-large)}.ck.ck-revision-history-sidebar{display:flex;flex-direction:column}.ck.ck-revision-history-sidebar .ck-revision-history-sidebar__timeline{align-items:start;display:flex;flex-direction:column;font-size:var(--ck-font-size-base);height:100%;overflow-x:hidden;overflow-y:auto;padding:var(--ck-revision-history-sidebar-timeline-padding)}.ck.ck-revision-history-sidebar .ck-revision-history-sidebar__timeline.ck-disabled{filter:grayscale(1) opacity(var(--ck-disabled-opacity))}",""]);const o=r},589:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(758),r=i.n(n)()((function(e){return e[1]}));r.push([e.id,".ck.ck-revision-history-sidebar__header{--header-height:calc(var(--ck-ui-component-min-height) + var(--ck-spacing-small)*2 + 1px);align-items:center;border-bottom:1px solid var(--ck-color-toolbar-border);color:inherit;display:flex;flex-direction:row;font-family:inherit;font-weight:700;height:var(--header-height);line-height:var(--header-height);min-height:var(--header-height);overflow:hidden;padding:0 var(--ck-revision-history-sidebar-timeline-padding)}.ck.ck-revision-history-sidebar__header .ck-revision-history-sidebar__header__label{color:inherit;font-family:inherit;font-size:1.2em;font-weight:700}.ck.ck-revision-history-sidebar__header .ck-icon{margin-right:var(--ck-spacing-large)}",""]);const o=r},922:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(758),r=i.n(n)()((function(e){return e[1]}));r.push([e.id,".ck{--ck-revision-history-sidebar-revision-vertical-spacing:calc(var(--ck-spacing-standard)*2)}.ck.ck-revision-history-sidebar__time-period{width:100%}.ck.ck-revision-history-sidebar__time-period .ck-revision-history-sidebar__time-period__label{background:var(--ck-revision-history-sidebar-period-background);border-radius:var(--ck-border-radius);color:var(--ck-color-base-background);font-size:9px;font-weight:700;padding:var(--ck-spacing-tiny) var(--ck-spacing-standard);text-transform:uppercase}.ck.ck-revision-history-sidebar__time-period .ck-revision-history-sidebar__time-period__label:first-child{margin-top:var(--ck-spacing-standard)}.ck.ck-revision-history-sidebar__time-period .ck-revision-history-sidebar__time-period__revisions{display:flex;flex-direction:column}.ck.ck-revision-history-sidebar__time-period .ck-revision-history-sidebar__time-period__revisions .ck-revision-history-sidebar__revision-wrapper,.ck.ck-revision-history-sidebar__time-period:not(.ck-hidden)+.ck-revision-history-sidebar__time-period{margin-top:var(--ck-revision-history-sidebar-revision-vertical-spacing)}",""]);const o=r},752:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(758),r=i.n(n)()((function(e){return e[1]}));r.push([e.id,'.ck .ck-revision-change{border-top-left-radius:var(--ck-border-radius);outline:0;padding:var(--ck-spacing-small) var(--ck-spacing-large)}.ck .ck-revision-change>*{font-size:var(--ck-font-size-standard);vertical-align:bottom}.ck .ck-revision-change.ck-revision-change__add{border-left-color:var(--ck-color-suggestion-box-insertion-border)}.ck .ck-revision-change.ck-revision-change__remove{border-left-color:var(--ck-color-suggestion-box-deletion-border)}.ck .ck-revision-change .ck-revision-change__label{font-size:inherit;font-weight:700;vertical-align:inherit}.ck.ck-button.ck-revision-history-ui__back-to-editing{background:var(--ck-color-base-active);color:var(--ck-color-base-background)}.ck.ck-button.ck-revision-history-ui__back-to-editing:hover:not(.ck-disabled){background:var(--ck-color-base-active-focus)}.ck-content .ck-suggestion-preview-marker,.ck-content .ck-suggestion-preview-marker-split{opacity:.75}.ck-content .ck-suggestion-preview-marker-split:after{content:"¶"}.ck-content .ck-suggestion-preview-marker-merge{opacity:.75;text-decoration:line-through}.ck-content .ck-suggestion-preview-marker-merge:after{content:"¶"}.ck-content .ck-suggestion-preview-marker-deletion{text-decoration:line-through}.ck-content .ck-suggestion-marker-deletion-new:not(.ck-widget),.ck-content .ck-suggestion-marker-merge-new{--ck-color-suggestion-marker-deletion-border:none;--ck-color-suggestion-marker-deletion-border-active:none;--ck-color-suggestion-marker-deletion-background:none;--ck-color-suggestion-marker-deletion-background-active:none;--ck-color-suggestion-marker-deletion-stroke:rgba(122,31,54,.8);--ck-color-suggestion-widget-deletion-background:rgba(229,102,134,.03);--ck-color-suggestion-widget-deletion-background-active:rgba(196,33,74,.05)}.ck-content .ck-suggestion-marker-merge-new:after{color:inherit}.ck-content .ck-suggestion-marker-insertion-new,.ck-content .ck-suggestion-marker-split-new{opacity:.75}.ck-content .ck-suggestion-marker-deletion-new.ck-suggestion-marker--active:not(.table),.ck-content .ck-suggestion-marker-merge-new.ck-suggestion-marker--active{--ck-color-suggestion-marker-deletion-background-active:rgba(218,37,82,.08);--ck-color-suggestion-marker-deletion-stroke:#7a1f36;opacity:1}.ck-content .ck-suggestion-marker-insertion-new.ck-suggestion-marker--active,.ck-content .ck-suggestion-marker-split-new.ck-suggestion-marker--active{opacity:1}.ck.ck-editor__editable_inline.ck-revision-history-root-add{border:3px solid var(--ck-color-suggestion-marker-insertion-border)}.ck.ck-editor__editable_inline.ck-revision-history-root-add.ck-revision-history-root--active{border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck.ck-editor__editable_inline.ck-revision-history-root-remove{border:3px solid var(--ck-color-suggestion-marker-deletion-border)}.ck.ck-editor__editable_inline.ck-revision-history-root-remove.ck-revision-history-root--active{border-color:var(--ck-color-suggestion-marker-deletion-border-active)}',""]);const o=r},271:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(758),r=i.n(n)()((function(e){return e[1]}));r.push([e.id,'.ck{--ck-revision-history-loading-overlay-transition-duration:.2s;--ck-revision-history-loading-overlay-transition-delay:0s;--ck-revision-history-loading-overlay-spinner-rotation-duration:1s;--ck-revision-history-loading-overlay-spinner-size:60px;--ck-revision-history-loading-overlay-visible-background:#fff}.ck.ck-editor__editable:after,.ck.ck-editor__editable:before{content:"";opacity:0;position:absolute;transition:opacity var(--ck-revision-history-loading-overlay-transition-duration) ease;transition-delay:0;visibility:hidden}.ck.ck-editor__editable:before{background:var(--ck-revision-history-loading-overlay-visible-background);height:100%;left:0;top:0;width:100%;z-index:var(--ck-z-default)}.ck.ck-editor__editable:after{animation:ck-revision-history-spinner-animation var(--ck-revision-history-loading-overlay-spinner-rotation-duration) linear infinite;border-radius:50%;border-right:3px solid transparent;border-top:3px solid var(--ck-color-base-text);box-sizing:border-box;height:var(--ck-revision-history-loading-overlay-spinner-size);left:50%;top:50%;transform:translate(-50%,-50%);width:var(--ck-revision-history-loading-overlay-spinner-size);z-index:var(--ck-z-default)}.ck.ck-editor__editable.ck-editor__editable__loading-overlay,.ck.ck-editor__editable.ck-editor__editable__overlay{min-height:calc(var(--ck-revision-history-loading-overlay-spinner-size) + var(--ck-spacing-large)*2);position:relative}.ck.ck-editor__editable.ck-editor__editable__loading-overlay:after,.ck.ck-editor__editable.ck-editor__editable__loading-overlay:before,.ck.ck-editor__editable.ck-editor__editable__overlay:after,.ck.ck-editor__editable.ck-editor__editable__overlay:before{opacity:.8;transition-delay:var(--ck-revision-history-loading-overlay-transition-delay);visibility:visible}.ck.ck-editor__editable.ck-editor__editable__overlay:after{visibility:hidden}@keyframes ck-revision-history-spinner-animation{0%{transform:translate(-50%,-50%) rotate(0deg)}to{transform:translate(-50%,-50%) rotate(1turn)}}',""]);const o=r},13:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(758),r=i.n(n)()((function(e){return e[1]}));r.push([e.id,".ck.ck-editor{position:relative}.ck.ck-editor .ck-editor__top .ck-sticky-panel .ck-toolbar{z-index:var(--ck-z-modal)}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-bottom-width:0}.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar{border-bottom-width:1px;border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:0}.ck.ck-editor__main>.ck-editor__editable{background:var(--ck-color-base-background);border-radius:0}.ck-rounded-corners .ck.ck-editor__main>.ck-editor__editable,.ck.ck-editor__main>.ck-editor__editable.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}.ck.ck-editor__main>.ck-editor__editable:not(.ck-focused){border-color:var(--ck-color-base-border)}",""]);const o=r},769:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(758),r=i.n(n)()((function(e){return e[1]}));r.push([e.id,'.ck-vertical-form .ck-button:after{bottom:-1px;content:"";position:absolute;right:-1px;top:-1px;width:0;z-index:1}.ck-vertical-form .ck-button:focus:after{display:none}@media screen and (max-width:600px){.ck.ck-responsive-form .ck-button:after{bottom:-1px;content:"";position:absolute;right:-1px;top:-1px;width:0;z-index:1}.ck.ck-responsive-form .ck-button:focus:after{display:none}}.ck-vertical-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form{padding:var(--ck-spacing-large)}.ck.ck-responsive-form:focus{outline:none}[dir=ltr] .ck.ck-responsive-form>:not(:first-child),[dir=rtl] .ck.ck-responsive-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-responsive-form{padding:0;width:calc(var(--ck-input-width)*.8)}.ck.ck-responsive-form .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) 0}.ck.ck-responsive-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-responsive-form .ck-labeled-field-view .ck-labeled-field-view__error{white-space:normal}.ck.ck-responsive-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form>.ck-button:last-child,.ck.ck-responsive-form>.ck-button:nth-last-child(2){border-radius:0;margin-top:var(--ck-spacing-large);padding:var(--ck-spacing-standard)}.ck.ck-responsive-form>.ck-button:last-child:not(:focus),.ck.ck-responsive-form>.ck-button:nth-last-child(2):not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-responsive-form>.ck-button:last-child,[dir=ltr] .ck.ck-responsive-form>.ck-button:nth-last-child(2),[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2){margin-left:0}[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child:last-of-type,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2):last-of-type{border-right:1px solid var(--ck-color-base-border)}}',""]);const o=r},758:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var i=e(t);return t[2]?"@media ".concat(t[2]," {").concat(i,"}"):i})).join("")},t.i=function(e,i,n){"string"==typeof e&&(e=[[null,e,""]]);var r={};if(n)for(var o=0;o<this.length;o++){var s=this[o][0];null!=s&&(r[s]=!0)}for(var a=0;a<e.length;a++){var c=[].concat(e[a]);n&&r[c[0]]||(i&&(c[2]?c[2]="".concat(i," and ").concat(c[2]):c[2]=i),t.push(c))}},t}},810:(e,t)=>{"use strict";function i(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function n(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function a(e,t,i){return a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,i){var n=[null];n.push.apply(n,t);var r=new(Function.bind.apply(e,n));return i&&s(r,i.prototype),r},a.apply(null,arguments)}function c(e){var t="function"==typeof Map?new Map:void 0;return c=function(e){if(null===e||(i=e,-1===Function.toString.call(i).indexOf("[native code]")))return e;var i;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return a(e,arguments,o(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),s(n,e)},c(e)}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function d(e){var t=0;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(e){if("string"==typeof e)return u(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(i):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?u(e,t):void 0}}(e)))return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}var l=function(e){function t(){return e.apply(this,arguments)||this}return r(t,e),t}(c(Error)),x=function(e){function t(t){return e.call(this,"Invalid DateTime: "+t.toMessage())||this}return r(t,e),t}(l),h=function(e){function t(t){return e.call(this,"Invalid Interval: "+t.toMessage())||this}return r(t,e),t}(l),f=function(e){function t(t){return e.call(this,"Invalid Duration: "+t.toMessage())||this}return r(t,e),t}(l),v=function(e){function t(){return e.apply(this,arguments)||this}return r(t,e),t}(l),m=function(e){function t(t){return e.call(this,"Invalid unit "+t)||this}return r(t,e),t}(l),y=function(e){function t(){return e.apply(this,arguments)||this}return r(t,e),t}(l),g=function(e){function t(){return e.call(this,"Zone is an abstract class")||this}return r(t,e),t}(l),p="numeric",b="short",k="long",_={year:p,month:p,day:p},w={year:p,month:b,day:p},S={year:p,month:b,day:p,weekday:b},O={year:p,month:k,day:p},R={year:p,month:k,day:p,weekday:k},T={hour:p,minute:p},I={hour:p,minute:p,second:p},N={hour:p,minute:p,second:p,timeZoneName:b},V={hour:p,minute:p,second:p,timeZoneName:k},A={hour:p,minute:p,hour12:!1},M={hour:p,minute:p,second:p,hour12:!1},E={hour:p,minute:p,second:p,hour12:!1,timeZoneName:b},j={hour:p,minute:p,second:p,hour12:!1,timeZoneName:k},C={year:p,month:p,day:p,hour:p,minute:p},D={year:p,month:p,day:p,hour:p,minute:p,second:p},F={year:p,month:b,day:p,hour:p,minute:p},L={year:p,month:b,day:p,hour:p,minute:p,second:p},P={year:p,month:b,day:p,weekday:b,hour:p,minute:p},z={year:p,month:k,day:p,hour:p,minute:p,timeZoneName:b},Z={year:p,month:k,day:p,hour:p,minute:p,second:p,timeZoneName:b},U={year:p,month:k,day:p,weekday:k,hour:p,minute:p,timeZoneName:k},H={year:p,month:k,day:p,weekday:k,hour:p,minute:p,second:p,timeZoneName:k};function q(e){return void 0===e}function B(e){return"number"==typeof e}function W(e){return"number"==typeof e&&e%1==0}function J(){try{return"undefined"!=typeof Intl&&Intl.DateTimeFormat}catch(e){return!1}}function G(){return!q(Intl.DateTimeFormat.prototype.formatToParts)}function Y(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function $(e,t,i){if(0!==e.length)return e.reduce((function(e,n){var r=[t(n),n];return e&&i(e[0],r[0])===e[0]?e:r}),null)[1]}function K(e,t){return t.reduce((function(t,i){return t[i]=e[i],t}),{})}function X(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Q(e,t,i){return W(e)&&e>=t&&e<=i}function ee(e,t){void 0===t&&(t=2);var i=e<0?"-":"",n=i?-1*e:e;return""+i+(n.toString().length<t?("0".repeat(t)+n).slice(-t):n.toString())}function te(e){return q(e)||null===e||""===e?void 0:parseInt(e,10)}function ie(e){if(!q(e)&&null!==e&&""!==e){var t=1e3*parseFloat("0."+e);return Math.floor(t)}}function ne(e,t,i){void 0===i&&(i=!1);var n=Math.pow(10,t);return(i?Math.trunc:Math.round)(e*n)/n}function re(e){return e%4==0&&(e%100!=0||e%400==0)}function oe(e){return re(e)?366:365}function se(e,t){var i=function(e,t){return e-t*Math.floor(e/t)}(t-1,12)+1;return 2===i?re(e+(t-i)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][i-1]}function ae(e){var t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t)).setUTCFullYear(t.getUTCFullYear()-1900),+t}function ce(e){var t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,i=e-1,n=(i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400))%7;return 4===t||3===n?53:52}function ue(e){return e>99?e:e>60?1900+e:2e3+e}function de(e,t,i,n){void 0===n&&(n=null);var r=new Date(e),o={hour12:!1,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(o.timeZone=n);var s=Object.assign({timeZoneName:t},o),a=J();if(a&&G()){var c=new Intl.DateTimeFormat(i,s).formatToParts(r).find((function(e){return"timezonename"===e.type.toLowerCase()}));return c?c.value:null}if(a){var u=new Intl.DateTimeFormat(i,o).format(r);return new Intl.DateTimeFormat(i,s).format(r).substring(u.length).replace(/^[, \u200e]+/,"")}return null}function le(e,t){var i=parseInt(e,10);Number.isNaN(i)&&(i=0);var n=parseInt(t,10)||0;return 60*i+(i<0||Object.is(i,-0)?-n:n)}function xe(e){var t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new y("Invalid unit value "+e);return t}function he(e,t,i){var n={};for(var r in e)if(X(e,r)){if(i.indexOf(r)>=0)continue;var o=e[r];if(null==o)continue;n[t(r)]=xe(o)}return n}function fe(e,t){var i=Math.trunc(Math.abs(e/60)),n=Math.trunc(Math.abs(e%60)),r=e>=0?"+":"-";switch(t){case"short":return""+r+ee(i,2)+":"+ee(n,2);case"narrow":return""+r+i+(n>0?":"+n:"");case"techie":return""+r+ee(i,2)+ee(n,2);default:throw new RangeError("Value format "+t+" is out of range for property format")}}function ve(e){return K(e,["hour","minute","second","millisecond"])}var me=/[A-Za-z_+-]{1,256}(:?\/[A-Za-z_+-]{1,256}(\/[A-Za-z_+-]{1,256})?)?/;function ye(e){return JSON.stringify(e,Object.keys(e).sort())}var ge=["January","February","March","April","May","June","July","August","September","October","November","December"],pe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],be=["J","F","M","A","M","J","J","A","S","O","N","D"];function ke(e){switch(e){case"narrow":return[].concat(be);case"short":return[].concat(pe);case"long":return[].concat(ge);case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var _e=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],we=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Se=["M","T","W","T","F","S","S"];function Oe(e){switch(e){case"narrow":return[].concat(Se);case"short":return[].concat(we);case"long":return[].concat(_e);case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var Re=["AM","PM"],Te=["Before Christ","Anno Domini"],Ie=["BC","AD"],Ne=["B","A"];function Ve(e){switch(e){case"narrow":return[].concat(Ne);case"short":return[].concat(Ie);case"long":return[].concat(Te);default:return null}}function Ae(e,t){for(var i,n="",r=d(e);!(i=r()).done;){var o=i.value;o.literal?n+=o.val:n+=t(o.val)}return n}var Me={D:_,DD:w,DDD:O,DDDD:R,t:T,tt:I,ttt:N,tttt:V,T:A,TT:M,TTT:E,TTTT:j,f:C,ff:F,fff:z,ffff:U,F:D,FF:L,FFF:Z,FFFF:H},Ee=function(){function e(e,t){this.opts=t,this.loc=e,this.systemLoc=null}e.create=function(t,i){return void 0===i&&(i={}),new e(t,i)},e.parseFormat=function(e){for(var t=null,i="",n=!1,r=[],o=0;o<e.length;o++){var s=e.charAt(o);"'"===s?(i.length>0&&r.push({literal:n,val:i}),t=null,i="",n=!n):n||s===t?i+=s:(i.length>0&&r.push({literal:!1,val:i}),i=s,t=s)}return i.length>0&&r.push({literal:n,val:i}),r},e.macroTokenToFormatOpts=function(e){return Me[e]};var t=e.prototype;return t.formatWithSystemDefault=function(e,t){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,Object.assign({},this.opts,t)).format()},t.formatDateTime=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,Object.assign({},this.opts,t)).format()},t.formatDateTimeParts=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,Object.assign({},this.opts,t)).formatToParts()},t.resolvedOptions=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,Object.assign({},this.opts,t)).resolvedOptions()},t.num=function(e,t){if(void 0===t&&(t=0),this.opts.forceSimple)return ee(e,t);var i=Object.assign({},this.opts);return t>0&&(i.padTo=t),this.loc.numberFormatter(i).format(e)},t.formatDateTimeFromString=function(t,i){var n=this,r="en"===this.loc.listingMode(),o=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar&&G(),s=function(e,i){return n.loc.extract(t,e,i)},a=function(e){return t.isOffsetFixed&&0===t.offset&&e.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,e.format):""},c=function(){return r?function(e){return Re[e.hour<12?0:1]}(t):s({hour:"numeric",hour12:!0},"dayperiod")},u=function(e,i){return r?function(e,t){return ke(t)[e.month-1]}(t,e):s(i?{month:e}:{month:e,day:"numeric"},"month")},d=function(e,i){return r?function(e,t){return Oe(t)[e.weekday-1]}(t,e):s(i?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday")},l=function(e){return r?function(e,t){return Ve(t)[e.year<0?0:1]}(t,e):s({era:e},"era")};return Ae(e.parseFormat(i),(function(i){switch(i){case"S":return n.num(t.millisecond);case"u":case"SSS":return n.num(t.millisecond,3);case"s":return n.num(t.second);case"ss":return n.num(t.second,2);case"m":return n.num(t.minute);case"mm":return n.num(t.minute,2);case"h":return n.num(t.hour%12==0?12:t.hour%12);case"hh":return n.num(t.hour%12==0?12:t.hour%12,2);case"H":return n.num(t.hour);case"HH":return n.num(t.hour,2);case"Z":return a({format:"narrow",allowZ:n.opts.allowZ});case"ZZ":return a({format:"short",allowZ:n.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:n.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:n.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:n.loc.locale});case"z":return t.zoneName;case"a":return c();case"d":return o?s({day:"numeric"},"day"):n.num(t.day);case"dd":return o?s({day:"2-digit"},"day"):n.num(t.day,2);case"c":case"E":return n.num(t.weekday);case"ccc":return d("short",!0);case"cccc":return d("long",!0);case"ccccc":return d("narrow",!0);case"EEE":return d("short",!1);case"EEEE":return d("long",!1);case"EEEEE":return d("narrow",!1);case"L":return o?s({month:"numeric",day:"numeric"},"month"):n.num(t.month);case"LL":return o?s({month:"2-digit",day:"numeric"},"month"):n.num(t.month,2);case"LLL":return u("short",!0);case"LLLL":return u("long",!0);case"LLLLL":return u("narrow",!0);case"M":return o?s({month:"numeric"},"month"):n.num(t.month);case"MM":return o?s({month:"2-digit"},"month"):n.num(t.month,2);case"MMM":return u("short",!1);case"MMMM":return u("long",!1);case"MMMMM":return u("narrow",!1);case"y":return o?s({year:"numeric"},"year"):n.num(t.year);case"yy":return o?s({year:"2-digit"},"year"):n.num(t.year.toString().slice(-2),2);case"yyyy":return o?s({year:"numeric"},"year"):n.num(t.year,4);case"yyyyyy":return o?s({year:"numeric"},"year"):n.num(t.year,6);case"G":return l("short");case"GG":return l("long");case"GGGGG":return l("narrow");case"kk":return n.num(t.weekYear.toString().slice(-2),2);case"kkkk":return n.num(t.weekYear,4);case"W":return n.num(t.weekNumber);case"WW":return n.num(t.weekNumber,2);case"o":return n.num(t.ordinal);case"ooo":return n.num(t.ordinal,3);case"q":return n.num(t.quarter);case"qq":return n.num(t.quarter,2);case"X":return n.num(Math.floor(t.ts/1e3));case"x":return n.num(t.ts);default:return function(i){var r=e.macroTokenToFormatOpts(i);return r?n.formatWithSystemDefault(t,r):i}(i)}}))},t.formatDurationFromString=function(t,i){var n,r=this,o=function(e){switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"M":return"month";case"y":return"year";default:return null}},s=e.parseFormat(i),a=s.reduce((function(e,t){var i=t.literal,n=t.val;return i?e:e.concat(n)}),[]),c=t.shiftTo.apply(t,a.map(o).filter((function(e){return e})));return Ae(s,(n=c,function(e){var t=o(e);return t?r.num(n.get(t),e.length):e}))},e}(),je=function(){function e(e,t){this.reason=e,this.explanation=t}return e.prototype.toMessage=function(){return this.explanation?this.reason+": "+this.explanation:this.reason},e}(),Ce=function(){function e(){}var t=e.prototype;return t.offsetName=function(e,t){throw new g},t.formatOffset=function(e,t){throw new g},t.offset=function(e){throw new g},t.equals=function(e){throw new g},n(e,[{key:"type",get:function(){throw new g}},{key:"name",get:function(){throw new g}},{key:"universal",get:function(){throw new g}},{key:"isValid",get:function(){throw new g}}]),e}(),De=null,Fe=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var i=t.prototype;return i.offsetName=function(e,t){return de(e,t.format,t.locale)},i.formatOffset=function(e,t){return fe(this.offset(e),t)},i.offset=function(e){return-new Date(e).getTimezoneOffset()},i.equals=function(e){return"local"===e.type},n(t,[{key:"type",get:function(){return"local"}},{key:"name",get:function(){return J()?(new Intl.DateTimeFormat).resolvedOptions().timeZone:"local"}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return!0}}],[{key:"instance",get:function(){return null===De&&(De=new t),De}}]),t}(Ce),Le=RegExp("^"+me.source+"$"),Pe={};var ze={year:0,month:1,day:2,hour:3,minute:4,second:5};var Ze={},Ue=function(e){function t(i){var n;return(n=e.call(this)||this).zoneName=i,n.valid=t.isValidZone(i),n}r(t,e),t.create=function(e){return Ze[e]||(Ze[e]=new t(e)),Ze[e]},t.resetCache=function(){Ze={},Pe={}},t.isValidSpecifier=function(e){return!(!e||!e.match(Le))},t.isValidZone=function(e){try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}},t.parseGMTOffset=function(e){if(e){var t=e.match(/^Etc\/GMT(0|[+-]\d{1,2})$/i);if(t)return-60*parseInt(t[1])}return null};var i=t.prototype;return i.offsetName=function(e,t){return de(e,t.format,t.locale,this.name)},i.formatOffset=function(e,t){return fe(this.offset(e),t)},i.offset=function(e){var t=new Date(e);if(isNaN(t))return NaN;var i,n=(i=this.name,Pe[i]||(Pe[i]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:i,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),Pe[i]),r=n.formatToParts?function(e,t){for(var i=e.formatToParts(t),n=[],r=0;r<i.length;r++){var o=i[r],s=o.type,a=o.value,c=ze[s];q(c)||(n[c]=parseInt(a,10))}return n}(n,t):function(e,t){var i=e.format(t).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(i),r=n[1],o=n[2];return[n[3],r,o,n[4],n[5],n[6]]}(n,t),o=r[0],s=r[1],a=r[2],c=r[3],u=+t,d=u%1e3;return(ae({year:o,month:s,day:a,hour:24===c?0:c,minute:r[4],second:r[5],millisecond:0})-(u-=d>=0?d:1e3+d))/6e4},i.equals=function(e){return"iana"===e.type&&e.name===this.name},n(t,[{key:"type",get:function(){return"iana"}},{key:"name",get:function(){return this.zoneName}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return this.valid}}]),t}(Ce),He=null,qe=function(e){function t(t){var i;return(i=e.call(this)||this).fixed=t,i}r(t,e),t.instance=function(e){return 0===e?t.utcInstance:new t(e)},t.parseSpecifier=function(e){if(e){var i=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(i)return new t(le(i[1],i[2]))}return null},n(t,null,[{key:"utcInstance",get:function(){return null===He&&(He=new t(0)),He}}]);var i=t.prototype;return i.offsetName=function(){return this.name},i.formatOffset=function(e,t){return fe(this.fixed,t)},i.offset=function(){return this.fixed},i.equals=function(e){return"fixed"===e.type&&e.fixed===this.fixed},n(t,[{key:"type",get:function(){return"fixed"}},{key:"name",get:function(){return 0===this.fixed?"UTC":"UTC"+fe(this.fixed,"narrow")}},{key:"universal",get:function(){return!0}},{key:"isValid",get:function(){return!0}}]),t}(Ce),Be=function(e){function t(t){var i;return(i=e.call(this)||this).zoneName=t,i}r(t,e);var i=t.prototype;return i.offsetName=function(){return null},i.formatOffset=function(){return""},i.offset=function(){return NaN},i.equals=function(){return!1},n(t,[{key:"type",get:function(){return"invalid"}},{key:"name",get:function(){return this.zoneName}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return!1}}]),t}(Ce);function We(e,t){var i;if(q(e)||null===e)return t;if(e instanceof Ce)return e;if("string"==typeof e){var n=e.toLowerCase();return"local"===n?t:"utc"===n||"gmt"===n?qe.utcInstance:null!=(i=Ue.parseGMTOffset(e))?qe.instance(i):Ue.isValidSpecifier(n)?Ue.create(e):qe.parseSpecifier(n)||new Be(e)}return B(e)?qe.instance(e):"object"==typeof e&&e.offset&&"number"==typeof e.offset?e:new Be(e)}var Je=function(){return Date.now()},Ge=null,Ye=null,$e=null,Ke=null,Xe=!1,Qe=function(){function e(){}return e.resetCaches=function(){dt.resetCache(),Ue.resetCache()},n(e,null,[{key:"now",get:function(){return Je},set:function(e){Je=e}},{key:"defaultZoneName",get:function(){return e.defaultZone.name},set:function(e){Ge=e?We(e):null}},{key:"defaultZone",get:function(){return Ge||Fe.instance}},{key:"defaultLocale",get:function(){return Ye},set:function(e){Ye=e}},{key:"defaultNumberingSystem",get:function(){return $e},set:function(e){$e=e}},{key:"defaultOutputCalendar",get:function(){return Ke},set:function(e){Ke=e}},{key:"throwOnInvalid",get:function(){return Xe},set:function(e){Xe=e}}]),e}(),et={};function tt(e,t){void 0===t&&(t={});var i=JSON.stringify([e,t]),n=et[i];return n||(n=new Intl.DateTimeFormat(e,t),et[i]=n),n}var it={};var nt={};function rt(e,t){void 0===t&&(t={});var i=t,n=(i.base,function(e,t){if(null==e)return{};var i,n,r={},o=Object.keys(e);for(n=0;n<o.length;n++)i=o[n],t.indexOf(i)>=0||(r[i]=e[i]);return r}(i,["base"])),r=JSON.stringify([e,n]),o=nt[r];return o||(o=new Intl.RelativeTimeFormat(e,t),nt[r]=o),o}var ot=null;function st(e,t,i,n,r){var o=e.listingMode(i);return"error"===o?null:"en"===o?n(t):r(t)}var at=function(){function e(e,t,i){if(this.padTo=i.padTo||0,this.floor=i.floor||!1,!t&&J()){var n={useGrouping:!1};i.padTo>0&&(n.minimumIntegerDigits=i.padTo),this.inf=function(e,t){void 0===t&&(t={});var i=JSON.stringify([e,t]),n=it[i];return n||(n=new Intl.NumberFormat(e,t),it[i]=n),n}(e,n)}}return e.prototype.format=function(e){if(this.inf){var t=this.floor?Math.floor(e):e;return this.inf.format(t)}return ee(this.floor?Math.floor(e):ne(e,3),this.padTo)},e}(),ct=function(){function e(e,t,i){var n;if(this.opts=i,this.hasIntl=J(),e.zone.universal&&this.hasIntl){var r=e.offset/60*-1,o=r>=0?"Etc/GMT+"+r:"Etc/GMT"+r,s=Ue.isValidZone(o);0!==e.offset&&s?(n=o,this.dt=e):(n="UTC",i.timeZoneName?this.dt=e:this.dt=0===e.offset?e:hn.fromMillis(e.ts+60*e.offset*1e3))}else"local"===e.zone.type?this.dt=e:(this.dt=e,n=e.zone.name);if(this.hasIntl){var a=Object.assign({},this.opts);n&&(a.timeZone=n),this.dtf=tt(t,a)}}var t=e.prototype;return t.format=function(){if(this.hasIntl)return this.dtf.format(this.dt.toJSDate());var e=function(e){var t="EEEE, LLLL d, yyyy, h:mm a";switch(ye(K(e,["weekday","era","year","month","day","hour","minute","second","timeZoneName","hour12"]))){case ye(_):return"M/d/yyyy";case ye(w):return"LLL d, yyyy";case ye(S):return"EEE, LLL d, yyyy";case ye(O):return"LLLL d, yyyy";case ye(R):return"EEEE, LLLL d, yyyy";case ye(T):return"h:mm a";case ye(I):return"h:mm:ss a";case ye(N):case ye(V):return"h:mm a";case ye(A):return"HH:mm";case ye(M):return"HH:mm:ss";case ye(E):case ye(j):return"HH:mm";case ye(C):return"M/d/yyyy, h:mm a";case ye(F):return"LLL d, yyyy, h:mm a";case ye(z):return"LLLL d, yyyy, h:mm a";case ye(U):return t;case ye(D):return"M/d/yyyy, h:mm:ss a";case ye(L):return"LLL d, yyyy, h:mm:ss a";case ye(P):return"EEE, d LLL yyyy, h:mm a";case ye(Z):return"LLLL d, yyyy, h:mm:ss a";case ye(H):return"EEEE, LLLL d, yyyy, h:mm:ss a";default:return t}}(this.opts),t=dt.create("en-US");return Ee.create(t).formatDateTimeFromString(this.dt,e)},t.formatToParts=function(){return this.hasIntl&&G()?this.dtf.formatToParts(this.dt.toJSDate()):[]},t.resolvedOptions=function(){return this.hasIntl?this.dtf.resolvedOptions():{locale:"en-US",numberingSystem:"latn",outputCalendar:"gregory"}},e}(),ut=function(){function e(e,t,i){this.opts=Object.assign({style:"long"},i),!t&&Y()&&(this.rtf=rt(e,i))}var t=e.prototype;return t.format=function(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,i,n){void 0===i&&(i="always"),void 0===n&&(n=!1);var r={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===i&&o){var s="days"===e;switch(t){case 1:return s?"tomorrow":"next "+r[e][0];case-1:return s?"yesterday":"last "+r[e][0];case 0:return s?"today":"this "+r[e][0]}}var a=Object.is(t,-0)||t<0,c=Math.abs(t),u=1===c,d=r[e],l=n?u?d[1]:d[2]||d[1]:u?r[e][0]:e;return a?c+" "+l+" ago":"in "+c+" "+l}(t,e,this.opts.numeric,"long"!==this.opts.style)},t.formatToParts=function(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]},e}(),dt=function(){function e(e,t,i,n){var r=function(e){var t=e.indexOf("-u-");if(-1===t)return[e];var i,n=e.substring(0,t);try{i=tt(e).resolvedOptions()}catch(e){i=tt(n).resolvedOptions()}var r=i;return[n,r.numberingSystem,r.calendar]}(e),o=r[0],s=r[1],a=r[2];this.locale=o,this.numberingSystem=t||s||null,this.outputCalendar=i||a||null,this.intl=function(e,t,i){return J()?i||t?(e+="-u",i&&(e+="-ca-"+i),t&&(e+="-nu-"+t),e):e:[]}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=n,this.fastNumbersCached=null}e.fromOpts=function(t){return e.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)},e.create=function(t,i,n,r){void 0===r&&(r=!1);var o=t||Qe.defaultLocale;return new e(o||(r?"en-US":function(){if(ot)return ot;if(J()){var e=(new Intl.DateTimeFormat).resolvedOptions().locale;return ot=e&&"und"!==e?e:"en-US"}return ot="en-US"}()),i||Qe.defaultNumberingSystem,n||Qe.defaultOutputCalendar,o)},e.resetCache=function(){ot=null,et={},it={},nt={}},e.fromObject=function(t){var i=void 0===t?{}:t,n=i.locale,r=i.numberingSystem,o=i.outputCalendar;return e.create(n,r,o)};var t=e.prototype;return t.listingMode=function(e){void 0===e&&(e=!0);var t=J()&&G(),i=this.isEnglish(),n=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return t||i&&n||e?!t||i&&n?"en":"intl":"error"},t.clone=function(t){return t&&0!==Object.getOwnPropertyNames(t).length?e.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1):this},t.redefaultToEN=function(e){return void 0===e&&(e={}),this.clone(Object.assign({},e,{defaultToEN:!0}))},t.redefaultToSystem=function(e){return void 0===e&&(e={}),this.clone(Object.assign({},e,{defaultToEN:!1}))},t.months=function(e,t,i){var n=this;return void 0===t&&(t=!1),void 0===i&&(i=!0),st(this,e,i,ke,(function(){var i=t?{month:e,day:"numeric"}:{month:e},r=t?"format":"standalone";return n.monthsCache[r][e]||(n.monthsCache[r][e]=function(e){for(var t=[],i=1;i<=12;i++){var n=hn.utc(2016,i,1);t.push(e(n))}return t}((function(e){return n.extract(e,i,"month")}))),n.monthsCache[r][e]}))},t.weekdays=function(e,t,i){var n=this;return void 0===t&&(t=!1),void 0===i&&(i=!0),st(this,e,i,Oe,(function(){var i=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},r=t?"format":"standalone";return n.weekdaysCache[r][e]||(n.weekdaysCache[r][e]=function(e){for(var t=[],i=1;i<=7;i++){var n=hn.utc(2016,11,13+i);t.push(e(n))}return t}((function(e){return n.extract(e,i,"weekday")}))),n.weekdaysCache[r][e]}))},t.meridiems=function(e){var t=this;return void 0===e&&(e=!0),st(this,void 0,e,(function(){return Re}),(function(){if(!t.meridiemCache){var e={hour:"numeric",hour12:!0};t.meridiemCache=[hn.utc(2016,11,13,9),hn.utc(2016,11,13,19)].map((function(i){return t.extract(i,e,"dayperiod")}))}return t.meridiemCache}))},t.eras=function(e,t){var i=this;return void 0===t&&(t=!0),st(this,e,t,Ve,(function(){var t={era:e};return i.eraCache[e]||(i.eraCache[e]=[hn.utc(-40,1,1),hn.utc(2017,1,1)].map((function(e){return i.extract(e,t,"era")}))),i.eraCache[e]}))},t.extract=function(e,t,i){var n=this.dtFormatter(e,t).formatToParts().find((function(e){return e.type.toLowerCase()===i}));return n?n.value:null},t.numberFormatter=function(e){return void 0===e&&(e={}),new at(this.intl,e.forceSimple||this.fastNumbers,e)},t.dtFormatter=function(e,t){return void 0===t&&(t={}),new ct(e,this.intl,t)},t.relFormatter=function(e){return void 0===e&&(e={}),new ut(this.intl,this.isEnglish(),e)},t.isEnglish=function(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||J()&&new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")},t.equals=function(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar},n(e,[{key:"fastNumbers",get:function(){var e;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(e=this).numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||J()&&"latn"===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}}]),e}();function lt(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var n=t.reduce((function(e,t){return e+t.source}),"");return RegExp("^"+n+"$")}function xt(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return function(e){return t.reduce((function(t,i){var n=t[0],r=t[1],o=t[2],s=i(e,o),a=s[0],c=s[1],u=s[2];return[Object.assign(n,a),r||c,u]}),[{},null,1]).slice(0,2)}}function ht(e){if(null==e)return[null,null];for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];for(var r=0,o=i;r<o.length;r++){var s=o[r],a=s[0],c=s[1],u=a.exec(e);if(u)return c(u)}return[null,null]}function ft(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return function(e,i){var n,r={};for(n=0;n<t.length;n++)r[t[n]]=te(e[i+n]);return[r,null,i+n]}}var vt=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,mt=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,yt=RegExp(""+mt.source+vt.source+"?"),gt=RegExp("(?:T"+yt.source+")?"),pt=ft("weekYear","weekNumber","weekDay"),bt=ft("year","ordinal"),kt=RegExp(mt.source+" ?(?:"+vt.source+"|("+me.source+"))?"),_t=RegExp("(?: "+kt.source+")?");function wt(e,t,i){var n=e[t];return q(n)?i:te(n)}function St(e,t){return[{year:wt(e,t),month:wt(e,t+1,1),day:wt(e,t+2,1)},null,t+3]}function Ot(e,t){return[{hours:wt(e,t,0),minutes:wt(e,t+1,0),seconds:wt(e,t+2,0),milliseconds:ie(e[t+3])},null,t+4]}function Rt(e,t){var i=!e[t]&&!e[t+1],n=le(e[t+1],e[t+2]);return[{},i?null:qe.instance(n),t+3]}function Tt(e,t){return[{},e[t]?Ue.create(e[t]):null,t+1]}var It=RegExp("^T?"+mt.source+"$"),Nt=/^-?P(?:(?:(-?\d{1,9})Y)?(?:(-?\d{1,9})M)?(?:(-?\d{1,9})W)?(?:(-?\d{1,9})D)?(?:T(?:(-?\d{1,9})H)?(?:(-?\d{1,9})M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,9}))?S)?)?)$/;function Vt(e){var t=e[0],i=e[1],n=e[2],r=e[3],o=e[4],s=e[5],a=e[6],c=e[7],u=e[8],d="-"===t[0],l=c&&"-"===c[0],x=function(e,t){return void 0===t&&(t=!1),void 0!==e&&(t||e&&d)?-e:e};return[{years:x(te(i)),months:x(te(n)),weeks:x(te(r)),days:x(te(o)),hours:x(te(s)),minutes:x(te(a)),seconds:x(te(c),"-0"===c),milliseconds:x(ie(u),l)}]}var At={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Mt(e,t,i,n,r,o,s){var a={year:2===t.length?ue(te(t)):te(t),month:pe.indexOf(i)+1,day:te(n),hour:te(r),minute:te(o)};return s&&(a.second=te(s)),e&&(a.weekday=e.length>3?_e.indexOf(e)+1:we.indexOf(e)+1),a}var Et=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function jt(e){var t,i=e[1],n=e[2],r=e[3],o=e[4],s=e[5],a=e[6],c=e[7],u=e[8],d=e[9],l=e[10],x=e[11],h=Mt(i,o,r,n,s,a,c);return t=u?At[u]:d?0:le(l,x),[h,new qe(t)]}var Ct=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Dt=/^(Monday|Tuesday|Wedsday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Ft=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Lt(e){var t=e[1],i=e[2],n=e[3];return[Mt(t,e[4],n,i,e[5],e[6],e[7]),qe.utcInstance]}function Pt(e){var t=e[1],i=e[2],n=e[3],r=e[4],o=e[5],s=e[6];return[Mt(t,e[7],i,n,r,o,s),qe.utcInstance]}var zt=lt(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,gt),Zt=lt(/(\d{4})-?W(\d\d)(?:-?(\d))?/,gt),Ut=lt(/(\d{4})-?(\d{3})/,gt),Ht=lt(yt),qt=xt(St,Ot,Rt),Bt=xt(pt,Ot,Rt),Wt=xt(bt,Ot,Rt),Jt=xt(Ot,Rt);var Gt=xt(Ot);var Yt=lt(/(\d{4})-(\d\d)-(\d\d)/,_t),$t=lt(kt),Kt=xt(St,Ot,Rt,Tt),Xt=xt(Ot,Rt,Tt);var Qt={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},ei=Object.assign({years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6}},Qt),ti=365.2425,ii=30.436875,ni=Object.assign({years:{quarters:4,months:12,weeks:52.1775,days:ti,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:ii,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3}},Qt),ri=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],oi=ri.slice(0).reverse();function si(e,t,i){void 0===i&&(i=!1);var n={values:i?t.values:Object.assign({},e.values,t.values||{}),loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy};return new ci(n)}function ai(e,t,i,n,r){var o=e[r][i],s=t[i]/o,a=!(Math.sign(s)===Math.sign(n[r]))&&0!==n[r]&&Math.abs(s)<=1?function(e){return e<0?Math.floor(e):Math.ceil(e)}(s):Math.trunc(s);n[r]+=a,t[i]-=a*o}var ci=function(){function e(e){var t="longterm"===e.conversionAccuracy||!1;this.values=e.values,this.loc=e.loc||dt.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=t?ni:ei,this.isLuxonDuration=!0}e.fromMillis=function(t,i){return e.fromObject(Object.assign({milliseconds:t},i))},e.fromObject=function(t){if(null==t||"object"!=typeof t)throw new y("Duration.fromObject: argument expected to be an object, got "+(null===t?"null":typeof t));return new e({values:he(t,e.normalizeUnit,["locale","numberingSystem","conversionAccuracy","zone"]),loc:dt.fromObject(t),conversionAccuracy:t.conversionAccuracy})},e.fromISO=function(t,i){var n=function(e){return ht(e,[Nt,Vt])}(t),r=n[0];if(r){var o=Object.assign(r,i);return e.fromObject(o)}return e.invalid("unparsable",'the input "'+t+"\" can't be parsed as ISO 8601")},e.fromISOTime=function(t,i){var n=function(e){return ht(e,[It,Gt])}(t),r=n[0];if(r){var o=Object.assign(r,i);return e.fromObject(o)}return e.invalid("unparsable",'the input "'+t+"\" can't be parsed as ISO 8601")},e.invalid=function(t,i){if(void 0===i&&(i=null),!t)throw new y("need to specify a reason the Duration is invalid");var n=t instanceof je?t:new je(t,i);if(Qe.throwOnInvalid)throw new f(n);return new e({invalid:n})},e.normalizeUnit=function(e){var t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new m(e);return t},e.isDuration=function(e){return e&&e.isLuxonDuration||!1};var t=e.prototype;return t.toFormat=function(e,t){void 0===t&&(t={});var i=Object.assign({},t,{floor:!1!==t.round&&!1!==t.floor});return this.isValid?Ee.create(this.loc,i).formatDurationFromString(this,e):"Invalid Duration"},t.toObject=function(e){if(void 0===e&&(e={}),!this.isValid)return{};var t=Object.assign({},this.values);return e.includeConfig&&(t.conversionAccuracy=this.conversionAccuracy,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t},t.toISO=function(){if(!this.isValid)return null;var e="P";return 0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=ne(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e},t.toISOTime=function(e){if(void 0===e&&(e={}),!this.isValid)return null;var t=this.toMillis();if(t<0||t>=864e5)return null;e=Object.assign({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},e);var i=this.shiftTo("hours","minutes","seconds","milliseconds"),n="basic"===e.format?"hhmm":"hh:mm";e.suppressSeconds&&0===i.seconds&&0===i.milliseconds||(n+="basic"===e.format?"ss":":ss",e.suppressMilliseconds&&0===i.milliseconds||(n+=".SSS"));var r=i.toFormat(n);return e.includePrefix&&(r="T"+r),r},t.toJSON=function(){return this.toISO()},t.toString=function(){return this.toISO()},t.toMillis=function(){return this.as("milliseconds")},t.valueOf=function(){return this.toMillis()},t.plus=function(e){if(!this.isValid)return this;for(var t,i=ui(e),n={},r=d(ri);!(t=r()).done;){var o=t.value;(X(i.values,o)||X(this.values,o))&&(n[o]=i.get(o)+this.get(o))}return si(this,{values:n},!0)},t.minus=function(e){if(!this.isValid)return this;var t=ui(e);return this.plus(t.negate())},t.mapUnits=function(e){if(!this.isValid)return this;for(var t={},i=0,n=Object.keys(this.values);i<n.length;i++){var r=n[i];t[r]=xe(e(this.values[r],r))}return si(this,{values:t},!0)},t.get=function(t){return this[e.normalizeUnit(t)]},t.set=function(t){return this.isValid?si(this,{values:Object.assign(this.values,he(t,e.normalizeUnit,[]))}):this},t.reconfigure=function(e){var t=void 0===e?{}:e,i=t.locale,n=t.numberingSystem,r=t.conversionAccuracy,o={loc:this.loc.clone({locale:i,numberingSystem:n})};return r&&(o.conversionAccuracy=r),si(this,o)},t.as=function(e){return this.isValid?this.shiftTo(e).get(e):NaN},t.normalize=function(){if(!this.isValid)return this;var e=this.toObject();return function(e,t){oi.reduce((function(i,n){return q(t[n])?i:(i&&ai(e,t,i,t,n),n)}),null)}(this.matrix,e),si(this,{values:e},!0)},t.shiftTo=function(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];if(!this.isValid)return this;if(0===i.length)return this;i=i.map((function(t){return e.normalizeUnit(t)}));for(var r,o,s={},a={},c=this.toObject(),u=d(ri);!(o=u()).done;){var l=o.value;if(i.indexOf(l)>=0){r=l;var x=0;for(var h in a)x+=this.matrix[h][l]*a[h],a[h]=0;B(c[l])&&(x+=c[l]);var f=Math.trunc(x);for(var v in s[l]=f,a[l]=x-f,c)ri.indexOf(v)>ri.indexOf(l)&&ai(this.matrix,c,v,s,l)}else B(c[l])&&(a[l]=c[l])}for(var m in a)0!==a[m]&&(s[r]+=m===r?a[m]:a[m]/this.matrix[r][m]);return si(this,{values:s},!0).normalize()},t.negate=function(){if(!this.isValid)return this;for(var e={},t=0,i=Object.keys(this.values);t<i.length;t++){var n=i[t];e[n]=-this.values[n]}return si(this,{values:e},!0)},t.equals=function(e){if(!this.isValid||!e.isValid)return!1;if(!this.loc.equals(e.loc))return!1;for(var t,i=d(ri);!(t=i()).done;){var n=t.value;if(r=this.values[n],o=e.values[n],!(void 0===r||0===r?void 0===o||0===o:r===o))return!1}var r,o;return!0},n(e,[{key:"locale",get:function(){return this.isValid?this.loc.locale:null}},{key:"numberingSystem",get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:"years",get:function(){return this.isValid?this.values.years||0:NaN}},{key:"quarters",get:function(){return this.isValid?this.values.quarters||0:NaN}},{key:"months",get:function(){return this.isValid?this.values.months||0:NaN}},{key:"weeks",get:function(){return this.isValid?this.values.weeks||0:NaN}},{key:"days",get:function(){return this.isValid?this.values.days||0:NaN}},{key:"hours",get:function(){return this.isValid?this.values.hours||0:NaN}},{key:"minutes",get:function(){return this.isValid?this.values.minutes||0:NaN}},{key:"seconds",get:function(){return this.isValid?this.values.seconds||0:NaN}},{key:"milliseconds",get:function(){return this.isValid?this.values.milliseconds||0:NaN}},{key:"isValid",get:function(){return null===this.invalid}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]),e}();function ui(e){if(B(e))return ci.fromMillis(e);if(ci.isDuration(e))return e;if("object"==typeof e)return ci.fromObject(e);throw new y("Unknown duration argument "+e+" of type "+typeof e)}var di="Invalid Interval";function li(e,t){return e&&e.isValid?t&&t.isValid?t<e?xi.invalid("end before start","The end of an interval must be after its start, but you had start="+e.toISO()+" and end="+t.toISO()):null:xi.invalid("missing or invalid end"):xi.invalid("missing or invalid start")}var xi=function(){function e(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}e.invalid=function(t,i){if(void 0===i&&(i=null),!t)throw new y("need to specify a reason the Interval is invalid");var n=t instanceof je?t:new je(t,i);if(Qe.throwOnInvalid)throw new h(n);return new e({invalid:n})},e.fromDateTimes=function(t,i){var n=fn(t),r=fn(i),o=li(n,r);return null==o?new e({start:n,end:r}):o},e.after=function(t,i){var n=ui(i),r=fn(t);return e.fromDateTimes(r,r.plus(n))},e.before=function(t,i){var n=ui(i),r=fn(t);return e.fromDateTimes(r.minus(n),r)},e.fromISO=function(t,i){var n=(t||"").split("/",2),r=n[0],o=n[1];if(r&&o){var s,a,c,u;try{a=(s=hn.fromISO(r,i)).isValid}catch(o){a=!1}try{u=(c=hn.fromISO(o,i)).isValid}catch(o){u=!1}if(a&&u)return e.fromDateTimes(s,c);if(a){var d=ci.fromISO(o,i);if(d.isValid)return e.after(s,d)}else if(u){var l=ci.fromISO(r,i);if(l.isValid)return e.before(c,l)}}return e.invalid("unparsable",'the input "'+t+"\" can't be parsed as ISO 8601")},e.isInterval=function(e){return e&&e.isLuxonInterval||!1};var t=e.prototype;return t.length=function(e){return void 0===e&&(e="milliseconds"),this.isValid?this.toDuration.apply(this,[e]).get(e):NaN},t.count=function(e){if(void 0===e&&(e="milliseconds"),!this.isValid)return NaN;var t=this.start.startOf(e),i=this.end.startOf(e);return Math.floor(i.diff(t,e).get(e))+1},t.hasSame=function(e){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,e))},t.isEmpty=function(){return this.s.valueOf()===this.e.valueOf()},t.isAfter=function(e){return!!this.isValid&&this.s>e},t.isBefore=function(e){return!!this.isValid&&this.e<=e},t.contains=function(e){return!!this.isValid&&(this.s<=e&&this.e>e)},t.set=function(t){var i=void 0===t?{}:t,n=i.start,r=i.end;return this.isValid?e.fromDateTimes(n||this.s,r||this.e):this},t.splitAt=function(){var t=this;if(!this.isValid)return[];for(var i=arguments.length,n=new Array(i),r=0;r<i;r++)n[r]=arguments[r];for(var o=n.map(fn).filter((function(e){return t.contains(e)})).sort(),s=[],a=this.s,c=0;a<this.e;){var u=o[c]||this.e,d=+u>+this.e?this.e:u;s.push(e.fromDateTimes(a,d)),a=d,c+=1}return s},t.splitBy=function(t){var i=ui(t);if(!this.isValid||!i.isValid||0===i.as("milliseconds"))return[];for(var n,r=this.s,o=1,s=[];r<this.e;){var a=this.start.plus(i.mapUnits((function(e){return e*o})));n=+a>+this.e?this.e:a,s.push(e.fromDateTimes(r,n)),r=n,o+=1}return s},t.divideEqually=function(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]},t.overlaps=function(e){return this.e>e.s&&this.s<e.e},t.abutsStart=function(e){return!!this.isValid&&+this.e==+e.s},t.abutsEnd=function(e){return!!this.isValid&&+e.e==+this.s},t.engulfs=function(e){return!!this.isValid&&(this.s<=e.s&&this.e>=e.e)},t.equals=function(e){return!(!this.isValid||!e.isValid)&&(this.s.equals(e.s)&&this.e.equals(e.e))},t.intersection=function(t){if(!this.isValid)return this;var i=this.s>t.s?this.s:t.s,n=this.e<t.e?this.e:t.e;return i>=n?null:e.fromDateTimes(i,n)},t.union=function(t){if(!this.isValid)return this;var i=this.s<t.s?this.s:t.s,n=this.e>t.e?this.e:t.e;return e.fromDateTimes(i,n)},e.merge=function(e){var t=e.sort((function(e,t){return e.s-t.s})).reduce((function(e,t){var i=e[0],n=e[1];return n?n.overlaps(t)||n.abutsStart(t)?[i,n.union(t)]:[i.concat([n]),t]:[i,t]}),[[],null]),i=t[0],n=t[1];return n&&i.push(n),i},e.xor=function(t){for(var i,n,r=null,o=0,s=[],a=t.map((function(e){return[{time:e.s,type:"s"},{time:e.e,type:"e"}]})),c=d((i=Array.prototype).concat.apply(i,a).sort((function(e,t){return e.time-t.time})));!(n=c()).done;){var u=n.value;1===(o+="s"===u.type?1:-1)?r=u.time:(r&&+r!=+u.time&&s.push(e.fromDateTimes(r,u.time)),r=null)}return e.merge(s)},t.difference=function(){for(var t=this,i=arguments.length,n=new Array(i),r=0;r<i;r++)n[r]=arguments[r];return e.xor([this].concat(n)).map((function(e){return t.intersection(e)})).filter((function(e){return e&&!e.isEmpty()}))},t.toString=function(){return this.isValid?"["+this.s.toISO()+" – "+this.e.toISO()+")":di},t.toISO=function(e){return this.isValid?this.s.toISO(e)+"/"+this.e.toISO(e):di},t.toISODate=function(){return this.isValid?this.s.toISODate()+"/"+this.e.toISODate():di},t.toISOTime=function(e){return this.isValid?this.s.toISOTime(e)+"/"+this.e.toISOTime(e):di},t.toFormat=function(e,t){var i=(void 0===t?{}:t).separator,n=void 0===i?" – ":i;return this.isValid?""+this.s.toFormat(e)+n+this.e.toFormat(e):di},t.toDuration=function(e,t){return this.isValid?this.e.diff(this.s,e,t):ci.invalid(this.invalidReason)},t.mapEndpoints=function(t){return e.fromDateTimes(t(this.s),t(this.e))},n(e,[{key:"start",get:function(){return this.isValid?this.s:null}},{key:"end",get:function(){return this.isValid?this.e:null}},{key:"isValid",get:function(){return null===this.invalidReason}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]),e}(),hi=function(){function e(){}return e.hasDST=function(e){void 0===e&&(e=Qe.defaultZone);var t=hn.now().setZone(e).set({month:12});return!e.universal&&t.offset!==t.set({month:6}).offset},e.isValidIANAZone=function(e){return Ue.isValidSpecifier(e)&&Ue.isValidZone(e)},e.normalizeZone=function(e){return We(e,Qe.defaultZone)},e.months=function(e,t){void 0===e&&(e="long");var i=void 0===t?{}:t,n=i.locale,r=void 0===n?null:n,o=i.numberingSystem,s=void 0===o?null:o,a=i.locObj,c=void 0===a?null:a,u=i.outputCalendar,d=void 0===u?"gregory":u;return(c||dt.create(r,s,d)).months(e)},e.monthsFormat=function(e,t){void 0===e&&(e="long");var i=void 0===t?{}:t,n=i.locale,r=void 0===n?null:n,o=i.numberingSystem,s=void 0===o?null:o,a=i.locObj,c=void 0===a?null:a,u=i.outputCalendar,d=void 0===u?"gregory":u;return(c||dt.create(r,s,d)).months(e,!0)},e.weekdays=function(e,t){void 0===e&&(e="long");var i=void 0===t?{}:t,n=i.locale,r=void 0===n?null:n,o=i.numberingSystem,s=void 0===o?null:o,a=i.locObj;return((void 0===a?null:a)||dt.create(r,s,null)).weekdays(e)},e.weekdaysFormat=function(e,t){void 0===e&&(e="long");var i=void 0===t?{}:t,n=i.locale,r=void 0===n?null:n,o=i.numberingSystem,s=void 0===o?null:o,a=i.locObj;return((void 0===a?null:a)||dt.create(r,s,null)).weekdays(e,!0)},e.meridiems=function(e){var t=(void 0===e?{}:e).locale,i=void 0===t?null:t;return dt.create(i).meridiems()},e.eras=function(e,t){void 0===e&&(e="short");var i=(void 0===t?{}:t).locale,n=void 0===i?null:i;return dt.create(n,null,"gregory").eras(e)},e.features=function(){var e=!1,t=!1,i=!1,n=!1;if(J()){e=!0,t=G(),n=Y();try{i="America/New_York"===new Intl.DateTimeFormat("en",{timeZone:"America/New_York"}).resolvedOptions().timeZone}catch(e){i=!1}}return{intl:e,intlTokens:t,zones:i,relative:n}},e}();function fi(e,t){var i=function(e){return e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf()},n=i(t)-i(e);return Math.floor(ci.fromMillis(n).as("days"))}function vi(e,t,i,n){var r=function(e,t,i){for(var n,r,o={},s=0,a=[["years",function(e,t){return t.year-e.year}],["quarters",function(e,t){return t.quarter-e.quarter}],["months",function(e,t){return t.month-e.month+12*(t.year-e.year)}],["weeks",function(e,t){var i=fi(e,t);return(i-i%7)/7}],["days",fi]];s<a.length;s++){var c=a[s],u=c[0],d=c[1];if(i.indexOf(u)>=0){var l;n=u;var x,h=d(e,t);(r=e.plus(((l={})[u]=h,l)))>t?(e=e.plus(((x={})[u]=h-1,x)),h-=1):e=r,o[u]=h}}return[e,o,r,n]}(e,t,i),o=r[0],s=r[1],a=r[2],c=r[3],u=t-o,d=i.filter((function(e){return["hours","minutes","seconds","milliseconds"].indexOf(e)>=0}));if(0===d.length){var l;if(a<t)a=o.plus(((l={})[c]=1,l));a!==o&&(s[c]=(s[c]||0)+u/(a-o))}var x,h=ci.fromObject(Object.assign(s,n));return d.length>0?(x=ci.fromMillis(u,n)).shiftTo.apply(x,d).plus(h):h}var mi={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},yi={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},gi=mi.hanidec.replace(/[\[|\]]/g,"").split("");function pi(e,t){var i=e.numberingSystem;return void 0===t&&(t=""),new RegExp(""+mi[i||"latn"]+t)}var bi="missing Intl.DateTimeFormat.formatToParts support";function ki(e,t){return void 0===t&&(t=function(e){return e}),{regex:e,deser:function(e){var i=e[0];return t(function(e){var t=parseInt(e,10);if(isNaN(t)){t="";for(var i=0;i<e.length;i++){var n=e.charCodeAt(i);if(-1!==e[i].search(mi.hanidec))t+=gi.indexOf(e[i]);else for(var r in yi){var o=yi[r],s=o[0],a=o[1];n>=s&&n<=a&&(t+=n-s)}}return parseInt(t,10)}return t}(i))}}}var _i="( |"+String.fromCharCode(160)+")",wi=new RegExp(_i,"g");function Si(e){return e.replace(/\./g,"\\.?").replace(wi,_i)}function Oi(e){return e.replace(/\./g,"").replace(wi," ").toLowerCase()}function Ri(e,t){return null===e?null:{regex:RegExp(e.map(Si).join("|")),deser:function(i){var n=i[0];return e.findIndex((function(e){return Oi(n)===Oi(e)}))+t}}}function Ti(e,t){return{regex:e,deser:function(e){return le(e[1],e[2])},groups:t}}function Ii(e){return{regex:e,deser:function(e){return e[0]}}}var Ni={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}};var Vi=null;function Ai(e,t){if(e.literal)return e;var i=Ee.macroTokenToFormatOpts(e.val);if(!i)return e;var n=Ee.create(t,i).formatDateTimeParts((Vi||(Vi=hn.fromMillis(1555555555555)),Vi)).map((function(e){return function(e,t,i){var n=e.type,r=e.value;if("literal"===n)return{literal:!0,val:r};var o=i[n],s=Ni[n];return"object"==typeof s&&(s=s[o]),s?{literal:!1,val:s}:void 0}(e,0,i)}));return n.includes(void 0)?e:n}function Mi(e,t,i){var n=function(e,t){var i;return(i=Array.prototype).concat.apply(i,e.map((function(e){return Ai(e,t)})))}(Ee.parseFormat(i),e),r=n.map((function(t){return i=t,r=pi(n=e),o=pi(n,"{2}"),s=pi(n,"{3}"),a=pi(n,"{4}"),c=pi(n,"{6}"),u=pi(n,"{1,2}"),d=pi(n,"{1,3}"),l=pi(n,"{1,6}"),x=pi(n,"{1,9}"),h=pi(n,"{2,4}"),f=pi(n,"{4,6}"),v=function(e){return{regex:RegExp((t=e.val,t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:function(e){return e[0]},literal:!0};var t},m=function(e){if(i.literal)return v(e);switch(e.val){case"G":return Ri(n.eras("short",!1),0);case"GG":return Ri(n.eras("long",!1),0);case"y":return ki(l);case"yy":case"kk":return ki(h,ue);case"yyyy":case"kkkk":return ki(a);case"yyyyy":return ki(f);case"yyyyyy":return ki(c);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return ki(u);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return ki(o);case"MMM":return Ri(n.months("short",!0,!1),1);case"MMMM":return Ri(n.months("long",!0,!1),1);case"LLL":return Ri(n.months("short",!1,!1),1);case"LLLL":return Ri(n.months("long",!1,!1),1);case"o":case"S":return ki(d);case"ooo":case"SSS":return ki(s);case"u":return Ii(x);case"a":return Ri(n.meridiems(),0);case"E":case"c":return ki(r);case"EEE":return Ri(n.weekdays("short",!1,!1),1);case"EEEE":return Ri(n.weekdays("long",!1,!1),1);case"ccc":return Ri(n.weekdays("short",!0,!1),1);case"cccc":return Ri(n.weekdays("long",!0,!1),1);case"Z":case"ZZ":return Ti(new RegExp("([+-]"+u.source+")(?::("+o.source+"))?"),2);case"ZZZ":return Ti(new RegExp("([+-]"+u.source+")("+o.source+")?"),2);case"z":return Ii(/[a-z_+-/]{1,256}?/i);default:return v(e)}}(i)||{invalidReason:bi},m.token=i,m;var i,n,r,o,s,a,c,u,d,l,x,h,f,v,m})),o=r.find((function(e){return e.invalidReason}));if(o)return{input:t,tokens:n,invalidReason:o.invalidReason};var s=function(e){return["^"+e.map((function(e){return e.regex})).reduce((function(e,t){return e+"("+t.source+")"}),"")+"$",e]}(r),a=s[0],c=s[1],u=RegExp(a,"i"),d=function(e,t,i){var n=e.match(t);if(n){var r={},o=1;for(var s in i)if(X(i,s)){var a=i[s],c=a.groups?a.groups+1:1;!a.literal&&a.token&&(r[a.token.val[0]]=a.deser(n.slice(o,o+c))),o+=c}return[n,r]}return[n,{}]}(t,u,c),l=d[0],x=d[1],h=x?function(e){var t;return t=q(e.Z)?q(e.z)?null:Ue.create(e.z):new qe(e.Z),q(e.q)||(e.M=3*(e.q-1)+1),q(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),q(e.u)||(e.S=ie(e.u)),[Object.keys(e).reduce((function(t,i){var n=function(e){switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}}(i);return n&&(t[n]=e[i]),t}),{}),t]}(x):[null,null],f=h[0],m=h[1];if(X(x,"a")&&X(x,"H"))throw new v("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:n,regex:u,rawMatches:l,matches:x,result:f,zone:m}}var Ei=[0,31,59,90,120,151,181,212,243,273,304,334],ji=[0,31,60,91,121,152,182,213,244,274,305,335];function Ci(e,t){return new je("unit out of range","you specified "+t+" (of type "+typeof t+") as a "+e+", which is invalid")}function Di(e,t,i){var n=new Date(Date.UTC(e,t-1,i)).getUTCDay();return 0===n?7:n}function Fi(e,t,i){return i+(re(e)?ji:Ei)[t-1]}function Li(e,t){var i=re(e)?ji:Ei,n=i.findIndex((function(e){return e<t}));return{month:n+1,day:t-i[n]}}function Pi(e){var t,i=e.year,n=e.month,r=e.day,o=Fi(i,n,r),s=Di(i,n,r),a=Math.floor((o-s+10)/7);return a<1?a=ce(t=i-1):a>ce(i)?(t=i+1,a=1):t=i,Object.assign({weekYear:t,weekNumber:a,weekday:s},ve(e))}function zi(e){var t,i=e.weekYear,n=e.weekNumber,r=e.weekday,o=Di(i,1,4),s=oe(i),a=7*n+r-o-3;a<1?a+=oe(t=i-1):a>s?(t=i+1,a-=oe(i)):t=i;var c=Li(t,a),u=c.month,d=c.day;return Object.assign({year:t,month:u,day:d},ve(e))}function Zi(e){var t=e.year,i=Fi(t,e.month,e.day);return Object.assign({year:t,ordinal:i},ve(e))}function Ui(e){var t=e.year,i=Li(t,e.ordinal),n=i.month,r=i.day;return Object.assign({year:t,month:n,day:r},ve(e))}function Hi(e){var t=W(e.year),i=Q(e.month,1,12),n=Q(e.day,1,se(e.year,e.month));return t?i?!n&&Ci("day",e.day):Ci("month",e.month):Ci("year",e.year)}function qi(e){var t=e.hour,i=e.minute,n=e.second,r=e.millisecond,o=Q(t,0,23)||24===t&&0===i&&0===n&&0===r,s=Q(i,0,59),a=Q(n,0,59),c=Q(r,0,999);return o?s?a?!c&&Ci("millisecond",r):Ci("second",n):Ci("minute",i):Ci("hour",t)}var Bi="Invalid DateTime",Wi=864e13;function Ji(e){return new je("unsupported zone",'the zone "'+e.name+'" is not supported')}function Gi(e){return null===e.weekData&&(e.weekData=Pi(e.c)),e.weekData}function Yi(e,t){var i={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new hn(Object.assign({},i,t,{old:i}))}function $i(e,t,i){var n=e-60*t*1e3,r=i.offset(n);if(t===r)return[n,t];n-=60*(r-t)*1e3;var o=i.offset(n);return r===o?[n,r]:[e-60*Math.min(r,o)*1e3,Math.max(r,o)]}function Ki(e,t){var i=new Date(e+=60*t*1e3);return{year:i.getUTCFullYear(),month:i.getUTCMonth()+1,day:i.getUTCDate(),hour:i.getUTCHours(),minute:i.getUTCMinutes(),second:i.getUTCSeconds(),millisecond:i.getUTCMilliseconds()}}function Xi(e,t,i){return $i(ae(e),t,i)}function Qi(e,t){var i=e.o,n=e.c.year+Math.trunc(t.years),r=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),o=Object.assign({},e.c,{year:n,month:r,day:Math.min(e.c.day,se(n,r))+Math.trunc(t.days)+7*Math.trunc(t.weeks)}),s=ci.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),a=$i(ae(o),i,e.zone),c=a[0],u=a[1];return 0!==s&&(c+=s,u=e.zone.offset(c)),{ts:c,o:u}}function en(e,t,i,n,r){var o=i.setZone,s=i.zone;if(e&&0!==Object.keys(e).length){var a=t||s,c=hn.fromObject(Object.assign(e,i,{zone:a,setZone:void 0}));return o?c:c.setZone(s)}return hn.invalid(new je("unparsable",'the input "'+r+"\" can't be parsed as "+n))}function tn(e,t,i){return void 0===i&&(i=!0),e.isValid?Ee.create(dt.create("en-US"),{allowZ:i,forceSimple:!0}).formatDateTimeFromString(e,t):null}function nn(e,t){var i=t.suppressSeconds,n=void 0!==i&&i,r=t.suppressMilliseconds,o=void 0!==r&&r,s=t.includeOffset,a=t.includePrefix,c=void 0!==a&&a,u=t.includeZone,d=void 0!==u&&u,l=t.spaceZone,x=void 0!==l&&l,h=t.format,f=void 0===h?"extended":h,v="basic"===f?"HHmm":"HH:mm";n&&0===e.second&&0===e.millisecond||(v+="basic"===f?"ss":":ss",o&&0===e.millisecond||(v+=".SSS")),(d||s)&&x&&(v+=" "),d?v+="z":s&&(v+="basic"===f?"ZZZ":"ZZ");var m=tn(e,v);return c&&(m="T"+m),m}var rn={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},on={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},sn={ordinal:1,hour:0,minute:0,second:0,millisecond:0},an=["year","month","day","hour","minute","second","millisecond"],cn=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],un=["year","ordinal","hour","minute","second","millisecond"];function dn(e){var t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new m(e);return t}function ln(e,t){for(var i,n=d(an);!(i=n()).done;){var r=i.value;q(e[r])&&(e[r]=rn[r])}var o=Hi(e)||qi(e);if(o)return hn.invalid(o);var s=Qe.now(),a=Xi(e,t.offset(s),t),c=a[0],u=a[1];return new hn({ts:c,zone:t,o:u})}function xn(e,t,i){var n=!!q(i.round)||i.round,r=function(e,r){return e=ne(e,n||i.calendary?0:2,!0),t.loc.clone(i).relFormatter(i).format(e,r)},o=function(n){return i.calendary?t.hasSame(e,n)?0:t.startOf(n).diff(e.startOf(n),n).get(n):t.diff(e,n).get(n)};if(i.unit)return r(o(i.unit),i.unit);for(var s,a=d(i.units);!(s=a()).done;){var c=s.value,u=o(c);if(Math.abs(u)>=1)return r(u,c)}return r(e>t?-0:0,i.units[i.units.length-1])}var hn=function(){function e(e){var t=e.zone||Qe.defaultZone,i=e.invalid||(Number.isNaN(e.ts)?new je("invalid input"):null)||(t.isValid?null:Ji(t));this.ts=q(e.ts)?Qe.now():e.ts;var n=null,r=null;if(!i)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t)){var o=[e.old.c,e.old.o];n=o[0],r=o[1]}else{var s=t.offset(this.ts);n=Ki(this.ts,s),n=(i=Number.isNaN(n.year)?new je("invalid input"):null)?null:n,r=i?null:s}this._zone=t,this.loc=e.loc||dt.create(),this.invalid=i,this.weekData=null,this.c=n,this.o=r,this.isLuxonDateTime=!0}e.now=function(){return new e({})},e.local=function(t,i,n,r,o,s,a){return q(t)?e.now():ln({year:t,month:i,day:n,hour:r,minute:o,second:s,millisecond:a},Qe.defaultZone)},e.utc=function(t,i,n,r,o,s,a){return q(t)?new e({ts:Qe.now(),zone:qe.utcInstance}):ln({year:t,month:i,day:n,hour:r,minute:o,second:s,millisecond:a},qe.utcInstance)},e.fromJSDate=function(t,i){void 0===i&&(i={});var n,r=(n=t,"[object Date]"===Object.prototype.toString.call(n)?t.valueOf():NaN);if(Number.isNaN(r))return e.invalid("invalid input");var o=We(i.zone,Qe.defaultZone);return o.isValid?new e({ts:r,zone:o,loc:dt.fromObject(i)}):e.invalid(Ji(o))},e.fromMillis=function(t,i){if(void 0===i&&(i={}),B(t))return t<-Wi||t>Wi?e.invalid("Timestamp out of range"):new e({ts:t,zone:We(i.zone,Qe.defaultZone),loc:dt.fromObject(i)});throw new y("fromMillis requires a numerical input, but received a "+typeof t+" with value "+t)},e.fromSeconds=function(t,i){if(void 0===i&&(i={}),B(t))return new e({ts:1e3*t,zone:We(i.zone,Qe.defaultZone),loc:dt.fromObject(i)});throw new y("fromSeconds requires a numerical input")},e.fromObject=function(t){var i=We(t.zone,Qe.defaultZone);if(!i.isValid)return e.invalid(Ji(i));var n=Qe.now(),r=i.offset(n),o=he(t,dn,["zone","locale","outputCalendar","numberingSystem"]),s=!q(o.ordinal),a=!q(o.year),c=!q(o.month)||!q(o.day),u=a||c,l=o.weekYear||o.weekNumber,x=dt.fromObject(t);if((u||s)&&l)throw new v("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&s)throw new v("Can't mix ordinal dates with month/day");var h,f,m=l||o.weekday&&!u,y=Ki(n,r);m?(h=cn,f=on,y=Pi(y)):s?(h=un,f=sn,y=Zi(y)):(h=an,f=rn);for(var g,p=!1,b=d(h);!(g=b()).done;){var k=g.value;q(o[k])?o[k]=p?f[k]:y[k]:p=!0}var _=m?function(e){var t=W(e.weekYear),i=Q(e.weekNumber,1,ce(e.weekYear)),n=Q(e.weekday,1,7);return t?i?!n&&Ci("weekday",e.weekday):Ci("week",e.week):Ci("weekYear",e.weekYear)}(o):s?function(e){var t=W(e.year),i=Q(e.ordinal,1,oe(e.year));return t?!i&&Ci("ordinal",e.ordinal):Ci("year",e.year)}(o):Hi(o),w=_||qi(o);if(w)return e.invalid(w);var S=Xi(m?zi(o):s?Ui(o):o,r,i),O=new e({ts:S[0],zone:i,o:S[1],loc:x});return o.weekday&&u&&t.weekday!==O.weekday?e.invalid("mismatched weekday","you can't specify both a weekday of "+o.weekday+" and a date of "+O.toISO()):O},e.fromISO=function(e,t){void 0===t&&(t={});var i=function(e){return ht(e,[zt,qt],[Zt,Bt],[Ut,Wt],[Ht,Jt])}(e);return en(i[0],i[1],t,"ISO 8601",e)},e.fromRFC2822=function(e,t){void 0===t&&(t={});var i=function(e){return ht(function(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e),[Et,jt])}(e);return en(i[0],i[1],t,"RFC 2822",e)},e.fromHTTP=function(e,t){void 0===t&&(t={});var i=function(e){return ht(e,[Ct,Lt],[Dt,Lt],[Ft,Pt])}(e);return en(i[0],i[1],t,"HTTP",t)},e.fromFormat=function(t,i,n){if(void 0===n&&(n={}),q(t)||q(i))throw new y("fromFormat requires an input string and a format");var r=n,o=r.locale,s=void 0===o?null:o,a=r.numberingSystem,c=void 0===a?null:a,u=function(e,t,i){var n=Mi(e,t,i);return[n.result,n.zone,n.invalidReason]}(dt.fromOpts({locale:s,numberingSystem:c,defaultToEN:!0}),t,i),d=u[0],l=u[1],x=u[2];return x?e.invalid(x):en(d,l,n,"format "+i,t)},e.fromString=function(t,i,n){return void 0===n&&(n={}),e.fromFormat(t,i,n)},e.fromSQL=function(e,t){void 0===t&&(t={});var i=function(e){return ht(e,[Yt,Kt],[$t,Xt])}(e);return en(i[0],i[1],t,"SQL",e)},e.invalid=function(t,i){if(void 0===i&&(i=null),!t)throw new y("need to specify a reason the DateTime is invalid");var n=t instanceof je?t:new je(t,i);if(Qe.throwOnInvalid)throw new x(n);return new e({invalid:n})},e.isDateTime=function(e){return e&&e.isLuxonDateTime||!1};var t=e.prototype;return t.get=function(e){return this[e]},t.resolvedLocaleOpts=function(e){void 0===e&&(e={});var t=Ee.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t.locale,numberingSystem:t.numberingSystem,outputCalendar:t.calendar}},t.toUTC=function(e,t){return void 0===e&&(e=0),void 0===t&&(t={}),this.setZone(qe.instance(e),t)},t.toLocal=function(){return this.setZone(Qe.defaultZone)},t.setZone=function(t,i){var n=void 0===i?{}:i,r=n.keepLocalTime,o=void 0!==r&&r,s=n.keepCalendarTime,a=void 0!==s&&s;if((t=We(t,Qe.defaultZone)).equals(this.zone))return this;if(t.isValid){var c=this.ts;if(o||a){var u=t.offset(this.ts);c=Xi(this.toObject(),u,t)[0]}return Yi(this,{ts:c,zone:t})}return e.invalid(Ji(t))},t.reconfigure=function(e){var t=void 0===e?{}:e,i=t.locale,n=t.numberingSystem,r=t.outputCalendar;return Yi(this,{loc:this.loc.clone({locale:i,numberingSystem:n,outputCalendar:r})})},t.setLocale=function(e){return this.reconfigure({locale:e})},t.set=function(e){if(!this.isValid)return this;var t,i=he(e,dn,[]),n=!q(i.weekYear)||!q(i.weekNumber)||!q(i.weekday),r=!q(i.ordinal),o=!q(i.year),s=!q(i.month)||!q(i.day),a=o||s,c=i.weekYear||i.weekNumber;if((a||r)&&c)throw new v("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(s&&r)throw new v("Can't mix ordinal dates with month/day");n?t=zi(Object.assign(Pi(this.c),i)):q(i.ordinal)?(t=Object.assign(this.toObject(),i),q(i.day)&&(t.day=Math.min(se(t.year,t.month),t.day))):t=Ui(Object.assign(Zi(this.c),i));var u=Xi(t,this.o,this.zone);return Yi(this,{ts:u[0],o:u[1]})},t.plus=function(e){return this.isValid?Yi(this,Qi(this,ui(e))):this},t.minus=function(e){return this.isValid?Yi(this,Qi(this,ui(e).negate())):this},t.startOf=function(e){if(!this.isValid)return this;var t={},i=ci.normalizeUnit(e);switch(i){case"years":t.month=1;case"quarters":case"months":t.day=1;case"weeks":case"days":t.hour=0;case"hours":t.minute=0;case"minutes":t.second=0;case"seconds":t.millisecond=0}if("weeks"===i&&(t.weekday=1),"quarters"===i){var n=Math.ceil(this.month/3);t.month=3*(n-1)+1}return this.set(t)},t.endOf=function(e){var t;return this.isValid?this.plus((t={},t[e]=1,t)).startOf(e).minus(1):this},t.toFormat=function(e,t){return void 0===t&&(t={}),this.isValid?Ee.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):Bi},t.toLocaleString=function(e){return void 0===e&&(e=_),this.isValid?Ee.create(this.loc.clone(e),e).formatDateTime(this):Bi},t.toLocaleParts=function(e){return void 0===e&&(e={}),this.isValid?Ee.create(this.loc.clone(e),e).formatDateTimeParts(this):[]},t.toISO=function(e){return void 0===e&&(e={}),this.isValid?this.toISODate(e)+"T"+this.toISOTime(e):null},t.toISODate=function(e){var t=(void 0===e?{}:e).format,i="basic"===(void 0===t?"extended":t)?"yyyyMMdd":"yyyy-MM-dd";return this.year>9999&&(i="+"+i),tn(this,i)},t.toISOWeekDate=function(){return tn(this,"kkkk-'W'WW-c")},t.toISOTime=function(e){var t=void 0===e?{}:e,i=t.suppressMilliseconds,n=void 0!==i&&i,r=t.suppressSeconds,o=void 0!==r&&r,s=t.includeOffset,a=void 0===s||s,c=t.includePrefix,u=void 0!==c&&c,d=t.format;return nn(this,{suppressSeconds:o,suppressMilliseconds:n,includeOffset:a,includePrefix:u,format:void 0===d?"extended":d})},t.toRFC2822=function(){return tn(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)},t.toHTTP=function(){return tn(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")},t.toSQLDate=function(){return tn(this,"yyyy-MM-dd")},t.toSQLTime=function(e){var t=void 0===e?{}:e,i=t.includeOffset,n=void 0===i||i,r=t.includeZone;return nn(this,{includeOffset:n,includeZone:void 0!==r&&r,spaceZone:!0})},t.toSQL=function(e){return void 0===e&&(e={}),this.isValid?this.toSQLDate()+" "+this.toSQLTime(e):null},t.toString=function(){return this.isValid?this.toISO():Bi},t.valueOf=function(){return this.toMillis()},t.toMillis=function(){return this.isValid?this.ts:NaN},t.toSeconds=function(){return this.isValid?this.ts/1e3:NaN},t.toJSON=function(){return this.toISO()},t.toBSON=function(){return this.toJSDate()},t.toObject=function(e){if(void 0===e&&(e={}),!this.isValid)return{};var t=Object.assign({},this.c);return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t},t.toJSDate=function(){return new Date(this.isValid?this.ts:NaN)},t.diff=function(e,t,i){if(void 0===t&&(t="milliseconds"),void 0===i&&(i={}),!this.isValid||!e.isValid)return ci.invalid(this.invalid||e.invalid,"created by diffing an invalid DateTime");var n,r=Object.assign({locale:this.locale,numberingSystem:this.numberingSystem},i),o=(n=t,Array.isArray(n)?n:[n]).map(ci.normalizeUnit),s=e.valueOf()>this.valueOf(),a=vi(s?this:e,s?e:this,o,r);return s?a.negate():a},t.diffNow=function(t,i){return void 0===t&&(t="milliseconds"),void 0===i&&(i={}),this.diff(e.now(),t,i)},t.until=function(e){return this.isValid?xi.fromDateTimes(this,e):this},t.hasSame=function(e,t){if(!this.isValid)return!1;var i=e.valueOf(),n=this.setZone(e.zone,{keepLocalTime:!0});return n.startOf(t)<=i&&i<=n.endOf(t)},t.equals=function(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)},t.toRelative=function(t){if(void 0===t&&(t={}),!this.isValid)return null;var i=t.base||e.fromObject({zone:this.zone}),n=t.padding?this<i?-t.padding:t.padding:0,r=["years","months","days","hours","minutes","seconds"],o=t.unit;return Array.isArray(t.unit)&&(r=t.unit,o=void 0),xn(i,this.plus(n),Object.assign(t,{numeric:"always",units:r,unit:o}))},t.toRelativeCalendar=function(t){return void 0===t&&(t={}),this.isValid?xn(t.base||e.fromObject({zone:this.zone}),this,Object.assign(t,{numeric:"auto",units:["years","months","days"],calendary:!0})):null},e.min=function(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];if(!i.every(e.isDateTime))throw new y("min requires all arguments be DateTimes");return $(i,(function(e){return e.valueOf()}),Math.min)},e.max=function(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];if(!i.every(e.isDateTime))throw new y("max requires all arguments be DateTimes");return $(i,(function(e){return e.valueOf()}),Math.max)},e.fromFormatExplain=function(e,t,i){void 0===i&&(i={});var n=i,r=n.locale,o=void 0===r?null:r,s=n.numberingSystem,a=void 0===s?null:s;return Mi(dt.fromOpts({locale:o,numberingSystem:a,defaultToEN:!0}),e,t)},e.fromStringExplain=function(t,i,n){return void 0===n&&(n={}),e.fromFormatExplain(t,i,n)},n(e,[{key:"isValid",get:function(){return null===this.invalid}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}},{key:"locale",get:function(){return this.isValid?this.loc.locale:null}},{key:"numberingSystem",get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:"outputCalendar",get:function(){return this.isValid?this.loc.outputCalendar:null}},{key:"zone",get:function(){return this._zone}},{key:"zoneName",get:function(){return this.isValid?this.zone.name:null}},{key:"year",get:function(){return this.isValid?this.c.year:NaN}},{key:"quarter",get:function(){return this.isValid?Math.ceil(this.c.month/3):NaN}},{key:"month",get:function(){return this.isValid?this.c.month:NaN}},{key:"day",get:function(){return this.isValid?this.c.day:NaN}},{key:"hour",get:function(){return this.isValid?this.c.hour:NaN}},{key:"minute",get:function(){return this.isValid?this.c.minute:NaN}},{key:"second",get:function(){return this.isValid?this.c.second:NaN}},{key:"millisecond",get:function(){return this.isValid?this.c.millisecond:NaN}},{key:"weekYear",get:function(){return this.isValid?Gi(this).weekYear:NaN}},{key:"weekNumber",get:function(){return this.isValid?Gi(this).weekNumber:NaN}},{key:"weekday",get:function(){return this.isValid?Gi(this).weekday:NaN}},{key:"ordinal",get:function(){return this.isValid?Zi(this.c).ordinal:NaN}},{key:"monthShort",get:function(){return this.isValid?hi.months("short",{locObj:this.loc})[this.month-1]:null}},{key:"monthLong",get:function(){return this.isValid?hi.months("long",{locObj:this.loc})[this.month-1]:null}},{key:"weekdayShort",get:function(){return this.isValid?hi.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}},{key:"weekdayLong",get:function(){return this.isValid?hi.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}},{key:"offset",get:function(){return this.isValid?+this.o:NaN}},{key:"offsetNameShort",get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}},{key:"offsetNameLong",get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}},{key:"isOffsetFixed",get:function(){return this.isValid?this.zone.universal:null}},{key:"isInDST",get:function(){return!this.isOffsetFixed&&(this.offset>this.set({month:1}).offset||this.offset>this.set({month:5}).offset)}},{key:"isInLeapYear",get:function(){return re(this.year)}},{key:"daysInMonth",get:function(){return se(this.year,this.month)}},{key:"daysInYear",get:function(){return this.isValid?oe(this.year):NaN}},{key:"weeksInWeekYear",get:function(){return this.isValid?ce(this.weekYear):NaN}}],[{key:"DATE_SHORT",get:function(){return _}},{key:"DATE_MED",get:function(){return w}},{key:"DATE_MED_WITH_WEEKDAY",get:function(){return S}},{key:"DATE_FULL",get:function(){return O}},{key:"DATE_HUGE",get:function(){return R}},{key:"TIME_SIMPLE",get:function(){return T}},{key:"TIME_WITH_SECONDS",get:function(){return I}},{key:"TIME_WITH_SHORT_OFFSET",get:function(){return N}},{key:"TIME_WITH_LONG_OFFSET",get:function(){return V}},{key:"TIME_24_SIMPLE",get:function(){return A}},{key:"TIME_24_WITH_SECONDS",get:function(){return M}},{key:"TIME_24_WITH_SHORT_OFFSET",get:function(){return E}},{key:"TIME_24_WITH_LONG_OFFSET",get:function(){return j}},{key:"DATETIME_SHORT",get:function(){return C}},{key:"DATETIME_SHORT_WITH_SECONDS",get:function(){return D}},{key:"DATETIME_MED",get:function(){return F}},{key:"DATETIME_MED_WITH_SECONDS",get:function(){return L}},{key:"DATETIME_MED_WITH_WEEKDAY",get:function(){return P}},{key:"DATETIME_FULL",get:function(){return z}},{key:"DATETIME_FULL_WITH_SECONDS",get:function(){return Z}},{key:"DATETIME_HUGE",get:function(){return U}},{key:"DATETIME_HUGE_WITH_SECONDS",get:function(){return H}}]),e}();function fn(e){if(hn.isDateTime(e))return e;if(e&&e.valueOf&&B(e.valueOf()))return hn.fromJSDate(e);if(e&&"object"==typeof e)return hn.fromObject(e);throw new y("Unknown datetime argument: "+e+", of type "+typeof e)}t.ou=hn},278:(e,t,i)=>{"use strict";var n,r=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},o=function(){var e={};return function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(e){i=null}e[t]=i}return e[t]}}(),s=[];function a(e){for(var t=-1,i=0;i<s.length;i++)if(s[i].identifier===e){t=i;break}return t}function c(e,t){for(var i={},n=[],r=0;r<e.length;r++){var o=e[r],c=t.base?o[0]+t.base:o[0],u=i[c]||0,d="".concat(c," ").concat(u);i[c]=u+1;var l=a(d),x={css:o[1],media:o[2],sourceMap:o[3]};-1!==l?(s[l].references++,s[l].updater(x)):s.push({identifier:d,updater:m(x,t),references:1}),n.push(d)}return n}function u(e){var t=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var r=i.nc;r&&(n.nonce=r)}if(Object.keys(n).forEach((function(e){t.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(t);else{var s=o(e.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(t)}return t}var d,l=(d=[],function(e,t){return d[e]=t,d.filter(Boolean).join("\n")});function x(e,t,i,n){var r=i?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=l(t,r);else{var o=document.createTextNode(r),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(o,s[t]):e.appendChild(o)}}function h(e,t,i){var n=i.css,r=i.media,o=i.sourceMap;if(r?e.setAttribute("media",r):e.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var f=null,v=0;function m(e,t){var i,n,r;if(t.singleton){var o=v++;i=f||(f=u(t)),n=x.bind(null,i,o,!1),r=x.bind(null,i,o,!0)}else i=u(t),n=h.bind(null,i,t),r=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(i)};return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else r()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=r());var i=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<i.length;n++){var r=a(i[n]);s[r].references--}for(var o=c(e,t),u=0;u<i.length;u++){var d=a(i[u]);0===s[d].references&&(s[d].updater(),s.splice(d,1))}i=o}}}},417:(e,t,i)=>{e.exports=i(720)("./src/collaboration-core.js")},704:(e,t,i)=>{e.exports=i(79)("./src/core.js")},492:(e,t,i)=>{e.exports=i(79)("./src/engine.js")},273:(e,t,i)=>{e.exports=i(79)("./src/ui.js")},209:(e,t,i)=>{e.exports=i(79)("./src/utils.js")},720:e=>{"use strict";e.exports=CKEditor5.collaborationDll},79:e=>{"use strict";e.exports=CKEditor5.dll}},t={};function i(n){var r=t[n];if(void 0!==r)return r.exports;var o=t[n]={id:n,exports:{}};return e[n](o,o.exports,i),o.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nc=void 0;var n={};(()=>{"use strict";i.r(n),i.d(n,{RevisionHistory:()=>ws,RevisionHistoryUI:()=>Kn,RevisionTracker:()=>In,RevisionViewer:()=>br,RevisionViewerLoadingOverlay:()=>Lr,RevisionViewerUI:()=>Hr,RevisionsRepository:()=>Qi,RevisionsSidebar:()=>Qo});var e=i(704),t=i(209),r=i(417),o=i(492);const s=function(){this.__data__=[],this.size=0};const a=function(e,t){return e===t||e!=e&&t!=t};const c=function(e,t){for(var i=e.length;i--;)if(a(e[i][0],t))return i;return-1};var u=Array.prototype.splice;const d=function(e){var t=this.__data__,i=c(t,e);return!(i<0)&&(i==t.length-1?t.pop():u.call(t,i,1),--this.size,!0)};const l=function(e){var t=this.__data__,i=c(t,e);return i<0?void 0:t[i][1]};const x=function(e){return c(this.__data__,e)>-1};const h=function(e,t){var i=this.__data__,n=c(i,e);return n<0?(++this.size,i.push([e,t])):i[n][1]=t,this};function f(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}f.prototype.clear=s,f.prototype.delete=d,f.prototype.get=l,f.prototype.has=x,f.prototype.set=h;const v=f;const m=function(){this.__data__=new v,this.size=0};const y=function(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i};const g=function(e){return this.__data__.get(e)};const p=function(e){return this.__data__.has(e)};const b="object"==typeof global&&global&&global.Object===Object&&global;var k="object"==typeof self&&self&&self.Object===Object&&self;const _=b||k||Function("return this")();const w=_.Symbol;var S=Object.prototype,O=S.hasOwnProperty,R=S.toString,T=w?w.toStringTag:void 0;const I=function(e){var t=O.call(e,T),i=e[T];try{e[T]=void 0;var n=!0}catch(e){}var r=R.call(e);return n&&(t?e[T]=i:delete e[T]),r};var N=Object.prototype.toString;const V=function(e){return N.call(e)};var A=w?w.toStringTag:void 0;const M=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":A&&A in Object(e)?I(e):V(e)};const E=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};const j=function(e){if(!E(e))return!1;var t=M(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};const C=_["__core-js_shared__"];var D,F=(D=/[^.]+$/.exec(C&&C.keys&&C.keys.IE_PROTO||""))?"Symbol(src)_1."+D:"";const L=function(e){return!!F&&F in e};var P=Function.prototype.toString;const z=function(e){if(null!=e){try{return P.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var Z=/^\[object .+?Constructor\]$/,U=Function.prototype,H=Object.prototype,q=U.toString,B=H.hasOwnProperty,W=RegExp("^"+q.call(B).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const J=function(e){return!(!E(e)||L(e))&&(j(e)?W:Z).test(z(e))};const G=function(e,t){return null==e?void 0:e[t]};const Y=function(e,t){var i=G(e,t);return J(i)?i:void 0};const $=Y(_,"Map");const K=Y(Object,"create");const X=function(){this.__data__=K?K(null):{},this.size=0};const Q=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t};var ee=Object.prototype.hasOwnProperty;const te=function(e){var t=this.__data__;if(K){var i=t[e];return"__lodash_hash_undefined__"===i?void 0:i}return ee.call(t,e)?t[e]:void 0};var ie=Object.prototype.hasOwnProperty;const ne=function(e){var t=this.__data__;return K?void 0!==t[e]:ie.call(t,e)};const re=function(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=K&&void 0===t?"__lodash_hash_undefined__":t,this};function oe(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}oe.prototype.clear=X,oe.prototype.delete=Q,oe.prototype.get=te,oe.prototype.has=ne,oe.prototype.set=re;const se=oe;const ae=function(){this.size=0,this.__data__={hash:new se,map:new($||v),string:new se}};const ce=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};const ue=function(e,t){var i=e.__data__;return ce(t)?i["string"==typeof t?"string":"hash"]:i.map};const de=function(e){var t=ue(this,e).delete(e);return this.size-=t?1:0,t};const le=function(e){return ue(this,e).get(e)};const xe=function(e){return ue(this,e).has(e)};const he=function(e,t){var i=ue(this,e),n=i.size;return i.set(e,t),this.size+=i.size==n?0:1,this};function fe(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}fe.prototype.clear=ae,fe.prototype.delete=de,fe.prototype.get=le,fe.prototype.has=xe,fe.prototype.set=he;const ve=fe;const me=function(e,t){var i=this.__data__;if(i instanceof v){var n=i.__data__;if(!$||n.length<199)return n.push([e,t]),this.size=++i.size,this;i=this.__data__=new ve(n)}return i.set(e,t),this.size=i.size,this};function ye(e){var t=this.__data__=new v(e);this.size=t.size}ye.prototype.clear=m,ye.prototype.delete=y,ye.prototype.get=g,ye.prototype.has=p,ye.prototype.set=me;const ge=ye;const pe=function(e,t){for(var i=-1,n=null==e?0:e.length;++i<n&&!1!==t(e[i],i,e););return e};const be=function(){try{var e=Y(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();const ke=function(e,t,i){"__proto__"==t&&be?be(e,t,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[t]=i};var _e=Object.prototype.hasOwnProperty;const we=function(e,t,i){var n=e[t];_e.call(e,t)&&a(n,i)&&(void 0!==i||t in e)||ke(e,t,i)};const Se=function(e,t,i,n){var r=!i;i||(i={});for(var o=-1,s=t.length;++o<s;){var a=t[o],c=n?n(i[a],e[a],a,i,e):void 0;void 0===c&&(c=e[a]),r?ke(i,a,c):we(i,a,c)}return i};const Oe=function(e,t){for(var i=-1,n=Array(e);++i<e;)n[i]=t(i);return n};const Re=function(e){return null!=e&&"object"==typeof e};const Te=function(e){return Re(e)&&"[object Arguments]"==M(e)};var Ie=Object.prototype,Ne=Ie.hasOwnProperty,Ve=Ie.propertyIsEnumerable;const Ae=Te(function(){return arguments}())?Te:function(e){return Re(e)&&Ne.call(e,"callee")&&!Ve.call(e,"callee")};const Me=Array.isArray;const Ee=function(){return!1};var je="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ce=je&&"object"==typeof module&&module&&!module.nodeType&&module,De=Ce&&Ce.exports===je?_.Buffer:void 0;const Fe=(De?De.isBuffer:void 0)||Ee;var Le=/^(?:0|[1-9]\d*)$/;const Pe=function(e,t){var i=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==i||"symbol"!=i&&Le.test(e))&&e>-1&&e%1==0&&e<t};const ze=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var Ze={};Ze["[object Float32Array]"]=Ze["[object Float64Array]"]=Ze["[object Int8Array]"]=Ze["[object Int16Array]"]=Ze["[object Int32Array]"]=Ze["[object Uint8Array]"]=Ze["[object Uint8ClampedArray]"]=Ze["[object Uint16Array]"]=Ze["[object Uint32Array]"]=!0,Ze["[object Arguments]"]=Ze["[object Array]"]=Ze["[object ArrayBuffer]"]=Ze["[object Boolean]"]=Ze["[object DataView]"]=Ze["[object Date]"]=Ze["[object Error]"]=Ze["[object Function]"]=Ze["[object Map]"]=Ze["[object Number]"]=Ze["[object Object]"]=Ze["[object RegExp]"]=Ze["[object Set]"]=Ze["[object String]"]=Ze["[object WeakMap]"]=!1;const Ue=function(e){return Re(e)&&ze(e.length)&&!!Ze[M(e)]};const He=function(e){return function(t){return e(t)}};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Be=qe&&"object"==typeof module&&module&&!module.nodeType&&module,We=Be&&Be.exports===qe&&b.process;const Je=function(){try{var e=Be&&Be.require&&Be.require("util").types;return e||We&&We.binding&&We.binding("util")}catch(e){}}();var Ge=Je&&Je.isTypedArray;const Ye=Ge?He(Ge):Ue;var $e=Object.prototype.hasOwnProperty;const Ke=function(e,t){var i=Me(e),n=!i&&Ae(e),r=!i&&!n&&Fe(e),o=!i&&!n&&!r&&Ye(e),s=i||n||r||o,a=s?Oe(e.length,String):[],c=a.length;for(var u in e)!t&&!$e.call(e,u)||s&&("length"==u||r&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Pe(u,c))||a.push(u);return a};var Xe=Object.prototype;const Qe=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Xe)};const et=function(e,t){return function(i){return e(t(i))}};const tt=et(Object.keys,Object);var it=Object.prototype.hasOwnProperty;const nt=function(e){if(!Qe(e))return tt(e);var t=[];for(var i in Object(e))it.call(e,i)&&"constructor"!=i&&t.push(i);return t};const rt=function(e){return null!=e&&ze(e.length)&&!j(e)};const ot=function(e){return rt(e)?Ke(e):nt(e)};const st=function(e,t){return e&&Se(t,ot(t),e)};const at=function(e){var t=[];if(null!=e)for(var i in Object(e))t.push(i);return t};var ct=Object.prototype.hasOwnProperty;const ut=function(e){if(!E(e))return at(e);var t=Qe(e),i=[];for(var n in e)("constructor"!=n||!t&&ct.call(e,n))&&i.push(n);return i};const dt=function(e){return rt(e)?Ke(e,!0):ut(e)};const lt=function(e,t){return e&&Se(t,dt(t),e)};var xt="object"==typeof exports&&exports&&!exports.nodeType&&exports,ht=xt&&"object"==typeof module&&module&&!module.nodeType&&module,ft=ht&&ht.exports===xt?_.Buffer:void 0,vt=ft?ft.allocUnsafe:void 0;const mt=function(e,t){if(t)return e.slice();var i=e.length,n=vt?vt(i):new e.constructor(i);return e.copy(n),n};const yt=function(e,t){var i=-1,n=e.length;for(t||(t=Array(n));++i<n;)t[i]=e[i];return t};const gt=function(e,t){for(var i=-1,n=null==e?0:e.length,r=0,o=[];++i<n;){var s=e[i];t(s,i,e)&&(o[r++]=s)}return o};const pt=function(){return[]};var bt=Object.prototype.propertyIsEnumerable,kt=Object.getOwnPropertySymbols;const _t=kt?function(e){return null==e?[]:(e=Object(e),gt(kt(e),(function(t){return bt.call(e,t)})))}:pt;const wt=function(e,t){return Se(e,_t(e),t)};const St=function(e,t){for(var i=-1,n=t.length,r=e.length;++i<n;)e[r+i]=t[i];return e};const Ot=et(Object.getPrototypeOf,Object);const Rt=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)St(t,_t(e)),e=Ot(e);return t}:pt;const Tt=function(e,t){return Se(e,Rt(e),t)};const It=function(e,t,i){var n=t(e);return Me(e)?n:St(n,i(e))};const Nt=function(e){return It(e,ot,_t)};const Vt=function(e){return It(e,dt,Rt)};const At=Y(_,"DataView");const Mt=Y(_,"Promise");const Et=Y(_,"Set");const jt=Y(_,"WeakMap");var Ct="[object Map]",Dt="[object Promise]",Ft="[object Set]",Lt="[object WeakMap]",Pt="[object DataView]",zt=z(At),Zt=z($),Ut=z(Mt),Ht=z(Et),qt=z(jt),Bt=M;(At&&Bt(new At(new ArrayBuffer(1)))!=Pt||$&&Bt(new $)!=Ct||Mt&&Bt(Mt.resolve())!=Dt||Et&&Bt(new Et)!=Ft||jt&&Bt(new jt)!=Lt)&&(Bt=function(e){var t=M(e),i="[object Object]"==t?e.constructor:void 0,n=i?z(i):"";if(n)switch(n){case zt:return Pt;case Zt:return Ct;case Ut:return Dt;case Ht:return Ft;case qt:return Lt}return t});const Wt=Bt;var Jt=Object.prototype.hasOwnProperty;const Gt=function(e){var t=e.length,i=new e.constructor(t);return t&&"string"==typeof e[0]&&Jt.call(e,"index")&&(i.index=e.index,i.input=e.input),i};const Yt=_.Uint8Array;const $t=function(e){var t=new e.constructor(e.byteLength);return new Yt(t).set(new Yt(e)),t};const Kt=function(e,t){var i=t?$t(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)};var Xt=/\w*$/;const Qt=function(e){var t=new e.constructor(e.source,Xt.exec(e));return t.lastIndex=e.lastIndex,t};var ei=w?w.prototype:void 0,ti=ei?ei.valueOf:void 0;const ii=function(e){return ti?Object(ti.call(e)):{}};const ni=function(e,t){var i=t?$t(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)};const ri=function(e,t,i){var n=e.constructor;switch(t){case"[object ArrayBuffer]":return $t(e);case"[object Boolean]":case"[object Date]":return new n(+e);case"[object DataView]":return Kt(e,i);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 ni(e,i);case"[object Map]":case"[object Set]":return new n;case"[object Number]":case"[object String]":return new n(e);case"[object RegExp]":return Qt(e);case"[object Symbol]":return ii(e)}};var oi=Object.create;const si=function(){function e(){}return function(t){if(!E(t))return{};if(oi)return oi(t);e.prototype=t;var i=new e;return e.prototype=void 0,i}}();const ai=function(e){return"function"!=typeof e.constructor||Qe(e)?{}:si(Ot(e))};const ci=function(e){return Re(e)&&"[object Map]"==Wt(e)};var ui=Je&&Je.isMap;const di=ui?He(ui):ci;const li=function(e){return Re(e)&&"[object Set]"==Wt(e)};var xi=Je&&Je.isSet;const hi=xi?He(xi):li;var fi="[object Arguments]",vi="[object Function]",mi="[object Object]",yi={};yi[fi]=yi["[object Array]"]=yi["[object ArrayBuffer]"]=yi["[object DataView]"]=yi["[object Boolean]"]=yi["[object Date]"]=yi["[object Float32Array]"]=yi["[object Float64Array]"]=yi["[object Int8Array]"]=yi["[object Int16Array]"]=yi["[object Int32Array]"]=yi["[object Map]"]=yi["[object Number]"]=yi[mi]=yi["[object RegExp]"]=yi["[object Set]"]=yi["[object String]"]=yi["[object Symbol]"]=yi["[object Uint8Array]"]=yi["[object Uint8ClampedArray]"]=yi["[object Uint16Array]"]=yi["[object Uint32Array]"]=!0,yi["[object Error]"]=yi[vi]=yi["[object WeakMap]"]=!1;const gi=function e(t,i,n,r,o,s){var a,c=1&i,u=2&i,d=4&i;if(n&&(a=o?n(t,r,o,s):n(t)),void 0!==a)return a;if(!E(t))return t;var l=Me(t);if(l){if(a=Gt(t),!c)return yt(t,a)}else{var x=Wt(t),h=x==vi||"[object GeneratorFunction]"==x;if(Fe(t))return mt(t,c);if(x==mi||x==fi||h&&!o){if(a=u||h?{}:ai(t),!c)return u?Tt(t,lt(a,t)):wt(t,st(a,t))}else{if(!yi[x])return o?t:{};a=ri(t,x,c)}}s||(s=new ge);var f=s.get(t);if(f)return f;s.set(t,a),hi(t)?t.forEach((function(r){a.add(e(r,i,n,r,t,s))})):di(t)&&t.forEach((function(r,o){a.set(o,e(r,i,n,o,t,s))}));var v=l?void 0:(d?u?Vt:Nt:u?dt:ot)(t);return pe(v||t,(function(r,o){v&&(r=t[o=r]),we(a,o,e(r,i,n,o,t,s))})),a};const pi=function(e){return gi(e,5)};const bi=function(e){return"symbol"==typeof e||Re(e)&&"[object Symbol]"==M(e)};var ki=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_i=/^\w*$/;const wi=function(e,t){if(Me(e))return!1;var i=typeof e;return!("number"!=i&&"symbol"!=i&&"boolean"!=i&&null!=e&&!bi(e))||(_i.test(e)||!ki.test(e)||null!=t&&e in Object(t))};function Si(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var i=function(){var n=arguments,r=t?t.apply(this,n):n[0],o=i.cache;if(o.has(r))return o.get(r);var s=e.apply(this,n);return i.cache=o.set(r,s)||o,s};return i.cache=new(Si.Cache||ve),i}Si.Cache=ve;const Oi=Si;var Ri=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ti=/\\(\\)?/g;const Ii=function(e){var t=Oi(e,(function(e){return 500===i.size&&i.clear(),e})),i=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Ri,(function(e,i,n,r){t.push(n?r.replace(Ti,"$1"):i||e)})),t}));const Ni=function(e,t){for(var i=-1,n=null==e?0:e.length,r=Array(n);++i<n;)r[i]=t(e[i],i,e);return r};var Vi=w?w.prototype:void 0,Ai=Vi?Vi.toString:void 0;const Mi=function e(t){if("string"==typeof t)return t;if(Me(t))return Ni(t,e)+"";if(bi(t))return Ai?Ai.call(t):"";var i=t+"";return"0"==i&&1/t==-Infinity?"-0":i};const Ei=function(e){return null==e?"":Mi(e)};const ji=function(e,t){return Me(e)?e:wi(e,t)?[e]:Ii(Ei(e))};const Ci=function(e){if("string"==typeof e||bi(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};const Di=function(e,t,i,n){if(!E(e))return e;for(var r=-1,o=(t=ji(t,e)).length,s=o-1,a=e;null!=a&&++r<o;){var c=Ci(t[r]),u=i;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(r!=s){var d=a[c];void 0===(u=n?n(d,c,a):void 0)&&(u=E(d)?d:Pe(t[r+1])?[]:{})}we(a,c,u),a=a[c]}return e};const Fi=function(e,t,i){return null==e?e:Di(e,t,i)};const Li=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0};const Pi=function(e,t){for(var i=0,n=(t=ji(t,e)).length;null!=e&&i<n;)e=e[Ci(t[i++])];return i&&i==n?e:void 0};const zi=function(e,t,i){var n=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(i=i>r?r:i)<0&&(i+=r),r=t>i?0:i-t>>>0,t>>>=0;for(var o=Array(r);++n<r;)o[n]=e[n+t];return o};const Zi=function(e,t){return t.length<2?e:Pi(e,zi(t,0,-1))};const Ui=function(e,t){return t=ji(t,e),null==(e=Zi(e,t))||delete e[Ci(Li(t))]};const Hi=function(e,t){return null==e||Ui(e,t)},qi=["set","attributes","fire","fromVersion","toJSON","name","map","creator","authors","diffData","toVersion","createdAt","creatorId","_update","setName","setAttribute"];var Bi,Wi;Bi=qi,Wi=344,function(e){for(;--e;)Bi.push(Bi.shift())}(++Wi);const Ji=function(e,t){return qi[e-=0]};class Gi extends((0,t.ObservableMixin)()){constructor(e){super(),this.id=e.id||(0,t.uid)(),this[Ji("0xf")]=e[Ji("0xf")]||null,this[Ji("0x0")]=e[Ji("0x0")]||[],this[Ji("0x1")]=e.diffData||null,this[Ji("0x2")]=e[Ji("0x2")]||0,this[Ji("0xb")]=e[Ji("0xb")]||0,this[Ji("0x8")](Ji("0xd"),e[Ji("0xd")]||""),this[Ji("0x8")](Ji("0x3"),e[Ji("0x3")]||new Date),this[Ji("0x8")](Ji("0x9"),e[Ji("0x9")]||{})}[Ji("0x6")](e){this[Ji("0x5")]({name:e})}[Ji("0x7")](e,t){const i=pi(this[Ji("0x9")]);Fi(i,e,t),this[Ji("0x5")]({attributes:i})}removeAttribute(e){const t=pi(this[Ji("0x9")]);Hi(t,e),this[Ji("0x5")]({attributes:t})}[Ji("0x5")](e,t=!1){let i=!1;const n={id:this.id},r=[Ji("0xd"),Ji("0x3"),"diffData",Ji("0x0"),Ji("0x9"),Ji("0x2"),Ji("0xb"),Ji("0x4")];for(const t of r){const r=e[t];void 0!==r&&r!==this[t]&&(this[t]=r,n[t]=r,i=!0)}i&&(n[Ji("0x0")]&&(n.authorsIds=n.authors[Ji("0xe")]((e=>e.id)),delete n[Ji("0x0")]),this[Ji("0xa")](Ji("0x5"),n,t))}[Ji("0xc")](){return{id:this.id,name:this[Ji("0xd")],creatorId:this.creator?this[Ji("0xf")].id:null,authorsIds:this.authors[Ji("0xe")]((e=>e.id)),diffData:this[Ji("0x1")],createdAt:this[Ji("0x3")],attributes:this[Ji("0x9")],fromVersion:this.fromVersion,toVersion:this[Ji("0x2")]}}}const Yi=["isNaN","_revisions","fromVersion","getLaterVisibleRevision","Users","getRevision","toJSON","pluginName","length","name","fromCharCode","createRevision","diffData","data","earlier","authorsIds","from","reverse","RevisionsRepository","getUser","requires","afterInit","addRevision","creatorId","getIndex","context","join","createdAt","config","getRevisionsIterator","later","getEarlierVisibleRevision","map","get","then","newRevisionId","push"];var $i,Ki;$i=Yi,Ki=161,function(e){for(;--e;)$i.push($i.shift())}(++Ki);const Xi=function(e,t){return Yi[e-=0]};class Qi extends e.Plugin{static get[Xi("0x7")](){return[r.Users]}static get[Xi("0x1f")](){return Xi("0x5")}get length(){return this[Xi("0x19")][Xi("0x20")]}constructor(e){super(e),this[Xi("0x19")]=new t.Collection}[Xi("0x8")](){!function(t){function i(e){return e.map((e=>String[Xi("0x22")](e)))[Xi("0xd")]("")}(t=>{function n(e){return i([112,108,117,103,105,110,78,97,109,101])in e}const r=[1,85,78,115,198,255,50,112,83,87,161],o=[127,34,6,211,167,86,146,199,132,160,18];function s(e){return function(e,t){const n=function(e){const t=atob(e),[n,r]=t[i([115,112,108,105,116])](i([45]));try{if(atob(r))return atob(n)}catch(e){}return t}(e),r=Array[i([102,114,111,109])](function(e){const t=new Uint8Array(e[i([108,101,110,103,116,104])]);for(let n=0;n<e[i([108,101,110,103,116,104])];n++)t[n]=e[i([99,104,97,114,67,111,100,101,65,116])](n);return t}(n)),o=r[i([112,111,112])](),s=r[i([112,111,112])]();return function(e){let t="";for(const n of e)t+=String[i([102,114,111,109,67,104,97,114,67,111,100,101])](n);return t}(function(e,t,n){const r={};r[i([110,117,109,98,101,114,79,102,82,111,117,110,100,115])]={16:10,24:12,32:14},r[i([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],r[i([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],r[i([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],r[i([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],r[i([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],r[i([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],r[i([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],r[i([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],r[i([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],r[i([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 o=new Uint8Array(16);for(let e=15;e>=0;--e)o[e]=n%256,n=parseInt(n/256);let s=null,a=16;const c=new Uint8Array(t),u=[],d=[];!function(){const e=r[i([110,117,109,98,101,114,79,102,82,111,117,110,100,115])][c[i([108,101,110,103,116,104])]];for(let t=0;t<=e;t++)u[i([112,117,115,104])]([0,0,0,0]),d[i([112,117,115,104])]([0,0,0,0]);const t=4*(e+1),n=c[i([108,101,110,103,116,104])]/4,o=l(c);let s;for(let t=0;t<n;t++)s=t>>2,u[s][t%4]=o[t],d[e-s][t%4]=o[t];let a,x=0,h=n;for(;h<t;){a=o[n-1],o[0]^=r[i([83])][a>>16&255]<<24^r[i([83])][a>>8&255]<<16^r[i([83])][255&a]<<8^r[i([83])][a>>24&255]^r[i([114,99,111,110])][x]<<24,x+=1;for(let e=1;e<n/2;e++)o[e]^=o[e-1];a=o[n/2-1],o[n/2]^=r[i([83])][255&a]^r[i([83])][a>>8&255]<<8^r[i([83])][a>>16&255]<<16^r[i([83])][a>>24&255]<<24;for(let e=n/2+1;e<n;e++)o[e]^=o[e-1];let s,c,l=0;for(;l<n&&h<t;)s=h>>2,c=h%4,u[s][c]=o[l],d[e-s][c]=o[l++],h++}for(let t=1;t<e;t++)for(let e=0;e<4;e++)a=d[t][e],d[t][e]=r[i([85,49])][a>>24&255]^r[i([85,50])][a>>16&255]^r[i([85,51])][a>>8&255]^r[i([85,52])][255&a]}();for(let t=0;t<e[i([108,101,110,103,116,104])];t++)16===a&&(s=h(o),a=0,x(o)),e[t]^=s[a++];return e;function l(e){const t=[];for(let n=0;n<e[i([108,101,110,103,116,104])];n+=4)t[i([112,117,115,104])](e[n]<<24|e[n+1]<<16|e[n+2]<<8|e[n+3]);return t}function x(e){for(let t=15;t>=0;t--){if(255!==e[t]){e[t]++;break}e[t]=0}}function h(e){const t=u[i([108,101,110,103,116,104])]-1,n=[0,0,0,0];let o=l(e);for(let e=0;e<4;e++)o[e]^=u[0][e];for(let e=1;e<t;e++){for(let t=0;t<4;t++)n[t]=r[i([84,49])][o[t]>>24&255]^r[i([84,50])][o[(t+1)%4]>>16&255]^r[i([84,51])][o[(t+2)%4]>>8&255]^r[i([84,52])][255&o[(t+3)%4]]^u[e][t];o=n[i([115,108,105,99,101])]()}const s=new Uint8Array(16);let a;for(let e=0;e<4;e++)a=u[t][e],s[4*e]=255&(r[i([83])][o[e]>>24&255]^a>>24),s[4*e+1]=255&(r[i([83])][o[(e+1)%4]>>16&255]^a>>16),s[4*e+2]=255&(r[i([83])][o[(e+2)%4]>>8&255]^a>>8),s[4*e+3]=255&(r[i([83])][255&o[(e+3)%4]]^a);return s}}(r,t,s+256*o))}(e,new Uint8Array([...r,29,221,175,90,231,133,239,240,75,180,...o]))}const a=function(){const e=[{[i([105,100])]:1,[i([102,101,97,116,117,114,101,78,97,109,101])]:i([67,111,109,109,101,110,116,115]),[i([112,108,117,103,105,110,78,97,109,101])]:i([67,111,109,109,101,110,116,115,82,101,112,111,115,105,116,111,114,121]),[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:i([108,105,99,101,110,115,101,75,101,121]),[i([104,97,110,100,108,101,114])]:i([99,104,101,99,107,76,105,99,101,110,115,101]),[i([99,104,101,99,107,65,108,115,111])]:[{[i([105,100])]:2,[i([102,101,97,116,117,114,101,78,97,109,101])]:i([84,114,97,99,107,32,67,104,97,110,103,101,115]),[i([112,108,117,103,105,110,78,97,109,101])]:i([84,114,97,99,107,67,104,97,110,103,101,115,69,100,105,116,105,110,103]),[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:i([108,105,99,101,110,115,101,75,101,121]),[i([104,97,110,100,108,101,114])]:i([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,84,114,97,99,107,67,104,97,110,103,101,115]),[i([111,112,116,105,111,110,115])]:{[i([97,105,119,115,103,105,99])]:!0,[i([97,105,116,99,100,103,105,108])]:!0,[i([97,105,114,118,105,105,108])]:!0}}],[i([111,112,116,105,111,110,115])]:{[i([97,105,119,115,103,105,99])]:!0,[i([97,105,116,99,100,103,105,108])]:!0,[i([97,105,114,118,105,105,108])]:!0}},{[i([105,100])]:3,[i([102,101,97,116,117,114,101,78,97,109,101])]:i([80,97,103,105,110,97,116,105,111,110]),[i([112,108,117,103,105,110,78,97,109,101])]:i([80,97,103,105,110,97,116,105,111,110,76,111,111,107,117,112]),[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:i([112,97,103,105,110,97,116,105,111,110,76,105,99,101,110,115,101,75,101,121]),[i([104,97,110,100,108,101,114])]:i([99,104,101,99,107,76,105,99,101,110,115,101])},{[i([105,100])]:4,[i([102,101,97,116,117,114,101,78,97,109,101])]:i([82,101,118,105,115,105,111,110,32,72,105,115,116,111,114,121]),[i([112,108,117,103,105,110,78,97,109,101])]:i([82,101,118,105,115,105,111,110,115,82,101,112,111,115,105,116,111,114,121]),[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:i([108,105,99,101,110,115,101,75,101,121]),[i([104,97,110,100,108,101,114])]:i([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,82,101,118,105,115,105,111,110,72,105,115,116,111,114,121]),[i([111,112,116,105,111,110,115])]:{[i([97,105,119,115,103,105,99])]:!0,[i([97,105,116,99,100,103,105,108])]:!0,[i([97,105,114,118,105,105,108])]:!0}},{[i([105,100])]:5,[i([102,101,97,116,117,114,101,78,97,109,101])]:i([68,111,99,117,109,101,110,116,32,79,117,116,108,105,110,101]),[i([112,108,117,103,105,110,78,97,109,101])]:i([68,111,99,117,109,101,110,116,79,117,116,108,105,110,101,85,73]),[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:i([100,111,99,117,109,101,110,116,79,117,116,108,105,110,101,76,105,99,101,110,115,101,75,101,121]),[i([104,97,110,100,108,101,114])]:i([99,104,101,99,107,76,105,99,101,110,115,101]),[i([111,112,116,105,111,110,115])]:{[i([102,103,105])]:12}},{[i([105,100])]:6,[i([102,101,97,116,117,114,101,78,97,109,101])]:i([70,111,114,109,97,116,32,80,97,105,110,116,101,114]),[i([112,108,117,103,105,110,78,97,109,101])]:i([70,111,114,109,97,116,80,97,105,110,116,101,114,85,73]),[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:i([102,111,114,109,97,116,80,97,105,110,116,101,114,76,105,99,101,110,115,101,75,101,121]),[i([104,97,110,100,108,101,114])]:i([99,104,101,99,107,76,105,99,101,110,115,101]),[i([111,112,116,105,111,110,115])]:{[i([102,103,105])]:12}},{[i([105,100])]:7,[i([102,101,97,116,117,114,101,78,97,109,101])]:i([83,108,97,115,104,32,67,111,109,109,97,110,100]),[i([112,108,117,103,105,110,78,97,109,101])]:i([83,108,97,115,104,67,111,109,109,97,110,100,85,73]),[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:i([115,108,97,115,104,67,111,109,109,97,110,100,76,105,99,101,110,115,101,75,101,121]),[i([104,97,110,100,108,101,114])]:i([99,104,101,99,107,76,105,99,101,110,115,101]),[i([111,112,116,105,111,110,115])]:{[i([102,103,105])]:12}},{[i([105,100])]:8,[i([102,101,97,116,117,114,101,78,97,109,101])]:i([84,97,98,108,101,32,111,102,32,67,111,110,116,101,110,116,115]),[i([112,108,117,103,105,110,78,97,109,101])]:i([84,97,98,108,101,79,102,67,111,110,116,101,110,116,115,69,100,105,116,105,110,103]),[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:i([116,97,98,108,101,79,102,67,111,110,116,101,110,116,115,76,105,99,101,110,115,101,75,101,121]),[i([104,97,110,100,108,101,114])]:i([99,104,101,99,107,76,105,99,101,110,115,101]),[i([111,112,116,105,111,110,115])]:{[i([102,103,105])]:12}},{[i([105,100])]:9,[i([102,101,97,116,117,114,101,78,97,109,101])]:i([84,101,109,112,108,97,116,101]),[i([112,108,117,103,105,110,78,97,109,101])]:i([84,101,109,112,108,97,116,101,85,73]),[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:i([116,101,109,112,108,97,116,101,76,105,99,101,110,115,101,75,101,121]),[i([104,97,110,100,108,101,114])]:i([99,104,101,99,107,76,105,99,101,110,115,101]),[i([111,112,116,105,111,110,115])]:{[i([102,103,105])]:12}},{[i([105,100])]:10,[i([102,101,97,116,117,114,101,78,97,109,101])]:i([80,97,115,116,101,32,102,114,111,109,32,79,102,102,105,99,101,32,69,110,104,97,110,99,101,100]),[i([112,108,117,103,105,110,78,97,109,101])]:i([80,97,115,116,101,70,114,111,109,79,102,102,105,99,101,69,110,104,97,110,99,101,100,73,110,108,105,110,101,114]),[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:i([112,97,115,116,101,70,114,111,109,79,102,102,105,99,101,69,110,104,97,110,99,101,100,76,105,99,101,110,115,101,75,101,121]),[i([104,97,110,100,108,101,114])]:i([99,104,101,99,107,76,105,99,101,110,115,101]),[i([111,112,116,105,111,110,115])]:{[i([102,103,105])]:12}},{[i([105,100])]:11,[i([102,101,97,116,117,114,101,78,97,109,101])]:i([65,73,32,65,115,115,105,115,116,97,110,116]),[i([112,108,117,103,105,110,78,97,109,101])]:i([65,73,65,115,115,105,115,116,97,110,116,85,73]),[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:i([97,105,76,105,99,101,110,115,101,75,101,121]),[i([104,97,110,100,108,101,114])]:i([99,104,101,99,107,76,105,99,101,110,115,101])},{[i([105,100])]:12,[i([102,101,97,116,117,114,101,78,97,109,101])]:i([80,114,111,100,117,99,116,105,118,105,116,121,32,112,97,99,107])}];return function e(t){t[i([102,111,114,69,97,99,104])]((t=>{t[i([112,101,114,109,105,115,115,105,111,110,77,97,115,107])]=1<<t[i([105,100])]-1,n(t)&&t[i([99,104,101,99,107,65,108,115,111])]&&e(t[i([99,104,101,99,107,65,108,115,111])])}))}(e),e}(),c={[i([99,104,101,99,107,76,105,99,101,110,115,101])]:function(e,t){m(v(e,t),t)},[i([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,84,114,97,99,107,67,104,97,110,103,101,115])]:function(e,t){m(function(e,t){try{if(_(d,i([84,114,97,99,107,67,104,97,110,103,101,115,69,100,105,116,105,110,103]))&&e){const n=w(d,i([84,114,97,99,107,67,104,97,110,103,101,115,69,100,105,116,105,110,103]))[i([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])];if(parseInt(n)/2>e[i([101,120,112,105,114,97,116,105,111,110,68,97,116,101])])return y(t[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([73,110,118,97,108,105,100]))}return v(e,t)}catch(e){return y(t[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([73,110,118,97,108,105,100]))}}(e,t),t)},[i([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,82,101,118,105,115,105,111,110,72,105,115,116,111,114,121])]:function(e,t){const n=o[0]*r[1],s=o[0]*r[2],a=o[2]*r[2];function c(e,t){u(),y(t+i([84,114,105,97,108,76,105,109,105,116,58])+e),window[g()]=e===i([116,105,109,101])?n:s}function u(){const e=d;function t(){_(e,i([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))&&(w(e,i([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[i([117,110,98,105,110,100])](i([105,115,69,110,97,98,108,101,100])),w(e,i([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[i([105,115,69,110,97,98,108,101,100])]=!1,w(e,i([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[i([117,112,100,97,116,101])]=k,w(e,i([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[i([115,97,118,101,82,101,118,105,115,105,111,110])]=k,e[i([109,111,100,101,108])][i([99,104,97,110,103,101])]=k,e[i([109,111,100,101,108])][i([101,110,113,117,101,117,101,67,104,97,110,103,101])]=k,e[i([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](i([109,111,100,101,108]))),_(e,i([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))&&(w(e,i([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[i([117,110,98,105,110,100])](i([105,115,69,110,97,98,108,101,100])),w(e,i([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[i([105,115,69,110,97,98,108,101,100])]=!1,w(e,i([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[i([99,111,109,112,97,114,101])]=k,w(e,i([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[i([95,103,101,116,68,105,102,102])]=k)}e[i([115,116,97,116,101])]==i([114,101,97,100,121])?t():e[i([111,110,99,101])](i([114,101,97,100,121]),(()=>{if(_(e,i([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))&&t(),_(e,i([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))){const n=w(e,i([82,101,118,105,115,105,111,110,115,82,101,112,111,115,105,116,111,114,121])),r=n[Xi("0x1d")](0),o=n.getEarlierVisibleRevision(r[i([105,100])]);w(e,i([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[i([99,111,109,112,97,114,101])](r[i([105,100])],o?o[i([105,100])]:null,1)[Xi("0x15")]((()=>t()))}}))}_(d,i([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))&&w(d,i([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))[i([115,116,97,116,101])]==i([99,111,110,110,101,99,116,101,100])&&(window[g()]=a),function(e,t){if(e==t[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([73,110,118,97,108,105,100]))u();else if(e==t[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([84,114,105,97,108])){const e=function(){if(!_(d,i([82,101,118,105,115,105,111,110,86,105,101,119,101,114])))return!1;for(const e in window)if(Number[Xi("0x18")](Number(e))){if(window[e]===n)return i([116,105,109,101]);if(window[e]===s)return i([114,101,118,105,115,105,111,110,115])}return!1}();e&&c(e,t[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]);const a=function(){let e=o[6]*r[8]*r[6];return _(d,i([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))&&(e/=10),e}();window[i([115,101,116,84,105,109,101,111,117,116])]((()=>{c(i([116,105,109,101]),t[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])])}),a);const u=w(d,i([82,101,118,105,115,105,111,110,115,82,101,112,111,115,105,116,111,114,121]))[i([95,114,101,118,105,115,105,111,110,115])];u[i([108,101,110,103,116,104])]>=7?c(i([114,101,118,105,115,105,111,110,115]),t[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]):u.on(i([97,100,100]),(()=>{u[i([108,101,110,103,116,104])]>=7&&c(i([114,101,118,105,115,105,111,110,115]),t[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])])}))}}(function(e,t){try{return function(){if(!_(d,i([82,101,118,105,115,105,111,110,86,105,101,119,101,114])))return!1;for(const e in window)if(Number.isNaN(Number(e))&&window[e]===a)return!0;return!1}()?y(t[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([86,97,108,105,100])):v(e,t)}catch(e){return y(t[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([73,110,118,97,108,105,100]))}}(e,t),t)}},u=t[i([99,111,110,115,116,114,117,99,116,111,114])][i([112,108,117,103,105,110,78,97,109,101])],d=i([99,111,110,116,101,120,116])in t?t[Xi("0xc")]:t.editor,l=i([52,48,52,54,50,48,53,52]),x=i([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]),h=d[Xi("0xf")].get(i([108,105,99,101,110,115,101,75,101,121])),f=a[i([102,105,108,116,101,114])](n)[i([102,105,110,100])]((e=>e[i([112,108,117,103,105,110,78,97,109,101])]===u));function v(e,t){try{return function(e){if(!_(d,e[i([112,108,117,103,105,110,78,97,109,101])]))return!0;const t=e[i([111,112,116,105,111,110,115])]||{},n=t[i([97,105,119,115,103,105,99])]||!1,r=t[i([97,105,116,99,100,103,105,108])]||!1,o=t[i([97,105,114,118,105,105,108])]||!1;return!(!_(d,i([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))||w(d,i([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))[i([115,116,97,116,101])]!=i([99,111,110,110,101,99,116,101,100])||!n)||(!(!_(d,i([84,114,97,99,107,67,104,97,110,103,101,115,68,97,116,97,71,101,116,116,101,114]))||w(d,i([84,114,97,99,107,67,104,97,110,103,101,115,68,97,116,97,71,101,116,116,101,114]))[i([114,101,115,117,108,116])]!=i([101,110,100])||!r)||!(!_(d,i([82,101,118,105,115,105,111,110,86,105,101,119,101,114,73,110,116,101,103,114,97,116,105,111,110]))||w(d,i([82,101,118,105,115,105,111,110,86,105,101,119,101,114,73,110,116,101,103,114,97,116,105,111,110]))[i([114,101,115,117,108,116])]!=i([101,110,100])||!o))}(t)?y(t[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([86,97,108,105,100])):e&&function(e,t){const n=!!(e&t[i([112,101,114,109,105,115,115,105,111,110,77,97,115,107])]),r=function(e,t){const n=(t[i([111,112,116,105,111,110,115])]||{})[i([102,103,105])]||null;if(!n)return!1;const r=a[i([102,105,110,100])]((e=>e[i([105,100])]===n));return!!r&&!!(e&r[i([112,101,114,109,105,115,115,105,111,110,77,97,115,107])])}(e,t);return n||r}(e[i([97,108,108,111,119,101,100,80,108,117,103,105,110,115])],t)?e[i([105,115,73,110,116,101,114,110,97,108])]&&!window[i([111,112,101,110])][i([99,108,111,115,101,100])]||parseInt(l)/2>e[i([101,120,112,105,114,97,116,105,111,110,68,97,116,101])]?y(t[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([73,110,118,97,108,105,100])):e[i([105,115,84,114,105,97,108])]?y(t[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([84,114,105,97,108])):y(t[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([86,97,108,105,100])):y(t[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([73,110,118,97,108,105,100]))}catch(e){return y(t[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([73,110,118,97,108,105,100]))}}function m(t,n){if(d instanceof e.Context){const e=d;t==n[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([73,110,118,97,108,105,100])?p(e):t==n[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([84,114,105,97,108])&&window[i([115,101,116,84,105,109,101,111,117,116])]((()=>{p(e),y(n[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([84,114,105,97,108,76,105,109,105,116,58,116,105,109,101]))}),o[6]*r[8]*r[6]),e[i([101,100,105,116,111,114,115])][i([111,110])](i([97,100,100]),((e,r)=>{t!=n[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([73,110,118,97,108,105,100])&&t!=n[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([84,114,105,97,108,76,105,109,105,116,58,116,105,109,101])&&t!=n[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([84,114,105,97,108,76,105,109,105,116,58,111,112,101,114,97,116,105,111,110,115])||b(r)}))}else{const e=d;t==n[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([73,110,118,97,108,105,100])?b(e):t==n[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([84,114,105,97,108])&&e[i([111,110])](i([114,101,97,100,121]),(()=>{let t=0;e[i([109,111,100,101,108])][i([111,110])](i([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),((r,o)=>{o[0][i([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&t++,504===t&&(b(e),y(n[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([84,114,105,97,108,76,105,109,105,116,58,111,112,101,114,97,116,105,111,110,115])),r[i([111,102,102])]())}),{priority:i([104,105,103,104,101,115,116])})}))}}function y(e){const t=g();return d[t]=e,e}function g(){const e=String(window[i([112,101,114,102,111,114,109,97,110,99,101])][i([110,111,119])]())[i([114,101,112,108,97,99,101])](i([46]),"");let t="";for(let n=0;n<e[i([108,101,110,103,116,104])];n+=2){let r=parseInt(e[i([115,117,98,115,116,114,105,110,103])](n,n+2));r>=x[i([108,101,110,103,116,104])]&&(r-=x[i([108,101,110,103,116,104])]),t+=x[r]}return t}function p(e){for(const t of e[i([101,100,105,116,111,114,115])])b(t);w(e,i([67,111,109,109,101,110,116,115,82,101,112,111,115,105,116,111,114,121]))[i([115,119,105,116,99,104,82,101,97,100,79,110,108,121])](!0),w(e,i([67,111,109,109,101,110,116,115,82,101,112,111,115,105,116,111,114,121]))[i([115,119,105,116,99,104,82,101,97,100,79,110,108,121])]=k}function b(e){function t(){e[i([109,111,100,101,108])][i([99,104,97,110,103,101])]=k,e[i([109,111,100,101,108])][i([101,110,113,117,101,117,101,67,104,97,110,103,101])]=k,e[i([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](i([109,111,100,101,108]))}e[i([115,116,97,116,101])]==i([114,101,97,100,121])?t():e[i([111,110,99,101])](i([114,101,97,100,121]),(()=>t()))}function k(){return null}function _(e,t){return e[i([112,108,117,103,105,110,115])][i([104,97,115])](t)}function w(e,t){return e[i([112,108,117,103,105,110,115])][i([103,101,116])](t)}f&&function e(t,n){c[n[i([104,97,110,100,108,101,114])]](t,n),n[i([99,104,101,99,107,65,108,115,111])]&&n[i([99,104,101,99,107,65,108,115,111])][i([102,105,108,116,101,114])]((e=>_(d,e[i([112,108,117,103,105,110,78,97,109,101])])))[i([102,111,114,69,97,99,104])]((i=>e(t,i)))}(function(e){try{const t=s(e),n=JSON[i([112,97,114,115,101])](t),r=parseInt(n[i([49])]),o=n[i([50])]||"",a=parseInt(n[i([51])]),c=parseInt(n[i([52])])||0,u=parseInt(n[i([53])])||0;return{[i([112,114,111,100,117,99,116,78,97,109,101])]:o,[i([97,108,108,111,119,101,100,80,108,117,103,105,110,115])]:c,[i([101,120,112,105,114,97,116,105,111,110,68,97,116,101])]:r,[i([105,115,84,114,105,97,108])]:a,[i([105,115,73,110,116,101,114,110,97,108])]:u}}catch(e){return null}}(h),f)})(t)}(this)}[Xi("0x23")](e){const t=this.editor.plugins.get(Xi("0x1c"));return new Gi({id:e.id,name:e[Xi("0x21")],creator:e[Xi("0xa")]?t[Xi("0x6")](e.creatorId):null,diffData:e[Xi("0x24")]||e[Xi("0x0")],authors:e[Xi("0x2")][Xi("0x13")]((e=>t.getUser(e))),createdAt:new Date(e[Xi("0xe")]),attributes:e.attributes,fromVersion:e[Xi("0x1a")],toVersion:e.toVersion})}[Xi("0x9")](e,t=0){this[Xi("0x19")].add(e,t)}[Xi("0x1d")](e){return this[Xi("0x19")].get(e)}getRevisions(e={toJSON:!1}){const t=Array[Xi("0x3")](this[Xi("0x19")]);return t[Xi("0x4")](),e[Xi("0x1e")]?t.map((e=>e.toJSON())):t}[Xi("0xb")](e){return this[Xi("0x19")].getIndex(e)}[Xi("0x12")](e){const[,t]=this[Xi("0x10")](e,{direction:Xi("0x1")});return t}[Xi("0x1b")](e){const[,t]=this[Xi("0x10")](e,{direction:Xi("0x11")});return t}getRevisionsInDiff(e){const t=[];for(const i of this[Xi("0x10")](e[Xi("0x16")]))if(t[Xi("0x17")](i),i.id===e.oldRevisionId)break;return t}*[Xi("0x10")](e,{direction:t="earlier",filter:i=(e=>!0)}={}){const n=Xi("0x1")===t?1:-1;let r=this[Xi("0x19")][Xi("0x14")](e),o=this[Xi("0xb")](r);for(yield r;r;){if(o+=n,r=this.getRevision(o),!r)return;i(r)&&(yield r)}}}function en(e,t,i){const n=e.t;switch(t){case"Revision history":return n("Revision history");case"Open revision history":return n("Open revision history");case"Restored":return n("Restored");case"Empty document":return n("Empty document");case"Initial revision":return n("Initial revision");case"Suggested by":return n("Suggested by");case"Added by":return n("Added by");case"Removed by":return n("Removed by");case"Show more items":return n("Show more items");case"Compare against selected":return n("Compare against selected");case"Name this revision":return n("Name this revision");case"Restore this revision":return n("Restore this revision");case"Back to editing":return n("Back to editing");case"Loading...":return n("Loading...");case"No changes":return n("No changes");case"NUMBER_OF_CHANGES":return n({string:"%0 change",plural:"%0 changes",id:"NUMBER_OF_CHANGES"},i);case"X_OF_Y_CHANGES":return n({string:"%0 of %1",id:"X_OF_Y_CHANGES"},i);case"Show previous change":return n("Show previous change");case"Show next change":return n("Show next change");case"EDIT_X_OF_Y_REVISIONS":return n({string:"Edit",id:"EDIT_X_OF_Y_REVISIONS"});case"Total":return n("Total");case"Revision creator":return n("Revision creator");case"Revision author":return n("Revision author");case"Revision name":return n("Revision name");case"Save current revision":return n("Save current revision");case"Save":return n("Save");case"Cancel":return n("Cancel");case"Name of the revision (optional)":return n("Name of the revision (optional)");case"PENDING_ACTION_REVISION_HISTORY":return n({string:"Unsaved change in revision history.",id:"PENDING_ACTION_REVISION_HISTORY"});default:return t}}const tn=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};const nn=function(e){return this.__data__.has(e)};function rn(e){var t=-1,i=null==e?0:e.length;for(this.__data__=new ve;++t<i;)this.add(e[t])}rn.prototype.add=rn.prototype.push=tn,rn.prototype.has=nn;const on=rn;const sn=function(e,t){for(var i=-1,n=null==e?0:e.length;++i<n;)if(t(e[i],i,e))return!0;return!1};const an=function(e,t){return e.has(t)};const cn=function(e,t,i,n,r,o){var s=1&i,a=e.length,c=t.length;if(a!=c&&!(s&&c>a))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var l=-1,x=!0,h=2&i?new on:void 0;for(o.set(e,t),o.set(t,e);++l<a;){var f=e[l],v=t[l];if(n)var m=s?n(v,f,l,t,e,o):n(f,v,l,e,t,o);if(void 0!==m){if(m)continue;x=!1;break}if(h){if(!sn(t,(function(e,t){if(!an(h,t)&&(f===e||r(f,e,i,n,o)))return h.push(t)}))){x=!1;break}}else if(f!==v&&!r(f,v,i,n,o)){x=!1;break}}return o.delete(e),o.delete(t),x};const un=function(e){var t=-1,i=Array(e.size);return e.forEach((function(e,n){i[++t]=[n,e]})),i};const dn=function(e){var t=-1,i=Array(e.size);return e.forEach((function(e){i[++t]=e})),i};var ln=w?w.prototype:void 0,xn=ln?ln.valueOf:void 0;const hn=function(e,t,i,n,r,o,s){switch(i){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!o(new Yt(e),new Yt(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return a(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var c=un;case"[object Set]":var u=1&n;if(c||(c=dn),e.size!=t.size&&!u)return!1;var d=s.get(e);if(d)return d==t;n|=2,s.set(e,t);var l=cn(c(e),c(t),n,r,o,s);return s.delete(e),l;case"[object Symbol]":if(xn)return xn.call(e)==xn.call(t)}return!1};var fn=Object.prototype.hasOwnProperty;const vn=function(e,t,i,n,r,o){var s=1&i,a=Nt(e),c=a.length;if(c!=Nt(t).length&&!s)return!1;for(var u=c;u--;){var d=a[u];if(!(s?d in t:fn.call(t,d)))return!1}var l=o.get(e),x=o.get(t);if(l&&x)return l==t&&x==e;var h=!0;o.set(e,t),o.set(t,e);for(var f=s;++u<c;){var v=e[d=a[u]],m=t[d];if(n)var y=s?n(m,v,d,t,e,o):n(v,m,d,e,t,o);if(!(void 0===y?v===m||r(v,m,i,n,o):y)){h=!1;break}f||(f="constructor"==d)}if(h&&!f){var g=e.constructor,p=t.constructor;g==p||!("constructor"in e)||!("constructor"in t)||"function"==typeof g&&g instanceof g&&"function"==typeof p&&p instanceof p||(h=!1)}return o.delete(e),o.delete(t),h};var mn="[object Arguments]",yn="[object Array]",gn="[object Object]",pn=Object.prototype.hasOwnProperty;const bn=function(e,t,i,n,r,o){var s=Me(e),a=Me(t),c=s?yn:Wt(e),u=a?yn:Wt(t),d=(c=c==mn?gn:c)==gn,l=(u=u==mn?gn:u)==gn,x=c==u;if(x&&Fe(e)){if(!Fe(t))return!1;s=!0,d=!1}if(x&&!d)return o||(o=new ge),s||Ye(e)?cn(e,t,i,n,r,o):hn(e,t,c,i,n,r,o);if(!(1&i)){var h=d&&pn.call(e,"__wrapped__"),f=l&&pn.call(t,"__wrapped__");if(h||f){var v=h?e.value():e,m=f?t.value():t;return o||(o=new ge),r(v,m,i,n,o)}}return!!x&&(o||(o=new ge),vn(e,t,i,n,r,o))};const kn=function e(t,i,n,r,o){return t===i||(null==t||null==i||!Re(t)&&!Re(i)?t!=t&&i!=i:bn(t,i,n,r,e,o))};const _n=function(e,t){return kn(e,t)},wn=["find","_handleMoveOperation","vid_start","parent","update","_handleRootAttributeOperation","_setAttribute","_startingVersion","afterInit","sort","get","_continueCurrentRevision","splitPosition","_makeModelFromViewString","_replaceEditorDataWithRevisionData","_touchedRoots","slice","_isPendingUpdate","startsWith","element","nodeAfter","reverse","getAttributes","push","pluginName","_getFromVersion","RevisionTracker","_getState","_prepareViewToSave","adapter","roots","documentFragment","path","_revisionId","vid","baseVersion","_setConversion","config","_pendingAction","stickiness","getTransformedByOperation","_createCurrentRevision","_loadedStateData","_reset","_appendChild","removeRootAttribute","_transformMarkers","keepParagraph","upcast","_markChanges","_handleMarkerOperation","Empty document","_calculateMetaData","repository","revision-end","root","previousPosition","_getBaseVids","toModel","_handleOperation","RevisionsRepository","addRootAttribute","document","creatorId","PendingActions","vid_end","name","_clone","_removeRevisionMarkers","NEGATIVE_INFINITY","resolve","processor","move","saveRevision","clone","howMany","buildRevisionData","type","bind","rootName","source","size","define","_createInitialRevision","clear","init","newRange","_fixOperation","$graveyard","getAncestors","authorsIds","_touched","userId","rootsAttributes","map","set","for","_lastTo","_diffRoots","_lastFrom","_removePendingAction","collaboration.channelId","createRange","reInit","data","_isAttached","filter","fromVersion","markers","_makeRevision","_baseIdsRoots","deletions","_baseRootsAttributes","_copyMarkers","createPositionFromPath","_fixPosition","oldRange","editing","start","_idsRoots","_handleMergeOperation","attachChange","_handleSplitOperation","useFillerType","_diffRootsAttributes","getRevision","marked","revisionHistory.resumeUnsavedRevision","getRevisions","toView","plugins","getNodeByPath","markerToData","insert","attributesAfter","_getViewJson","marker","createPositionAfter","from","_touchedMarkers","parse","PENDING_ACTION_REVISION_HISTORY","addRoot","getMovedRangeStart","_applyOperations","merge","_execute","_handleInsertOperation","affectsData","getUser","remove","_initialRevisionId","loadState","ready","_processRootBeforeSave","locale","_operations","_findInsertionIndex","insertions","_authorId","_handleRootOperation","add","_cloneOperation","authors","_saveMetaData","toVersion","createPositionAt","key","createdAt","_isInit","_addPendingAction","_makeIdsRoot","forEach","editor","isEnabled","changeRootAttribute","_fixRange","deletion","version","detachRoot","position","delete","getTime","creator","_getVidAttributeName","addRevisionData","trim","insertion","elementStart","currentRevision","_source","some","getRevisionRootsAttributes","_loadState","tableCell","offsetSize","string","_revisionDataBuilder","data-revision-","keys","Users","setRevisionData","newValue","_markers","isEqual","$text","graveyardPosition","getAttribute","attributesBefore","isAdd","_createFromRanges","targetPosition","_bufferUpdate","_baseRoots","getData","createRangeIn","offset","length","_savedMetaData","_update","diffData","split","_removeMetaData","Initial revision","elementEnd","getWalker","item","_startingRevisionId","initialData","updateRevisions","revision:","attributes","_generateTape","getChild","getCurrentRevisionId","getRootNames","_getPreviousFrom","isAttached","_loadRevisionData","sendBufferedUpdates","view","getOperation","_bufferedUpdates","end","getIndex","model","conversion","_insertChild","dataToMarker","isReady","getChildren","values","history","has","shift","children","getRoot"];var Sn,On;Sn=wn,On=308,function(e){for(;--e;)Sn.push(Sn.shift())}(++On);const Rn=function(e,t){return wn[e-=0]},Tn={c:o.ViewContainerElement,a:o.ViewAttributeElement,e:o.ViewEmptyElement,r:o.ViewRawElement,u:o.ViewUIElement};class In extends e.Plugin{static get[Rn("0xe6")](){return Rn("0xe8")}static get requires(){return[r.Users,Qi,e.PendingActions]}constructor(e){super(e),this.adapter=null,this[Rn("0x8a")]=null,this._revisionDataBuilder=new Vn(this[Rn("0x7a")]),this._initialRevisionId=this[Rn("0x7a")].config[Rn("0xd8")](Rn("0x32"))||"initial",this[Rn("0xbf")]=new Map,this[Rn("0xf8")]=null;const i=(0,t.uid)();this._source={history:this[Rn("0x7a")].model[Rn("0xb")][Rn("0xc9")],getLatestVersion:()=>Promise[Rn("0x13")](this[Rn("0x7a")].model.document[Rn("0x7f")]),getCurrentRevisionId:()=>i},this.set("isReady",!1),this[Rn("0x2c")](Rn("0x7b"),!0),this.set(Rn("0xdf"),!1),this[Rn("0x7a")][Rn("0xf3")][Rn("0x1f")](Rn("0x4c"),!0),this[Rn("0x7a")][Rn("0xc3")][Rn("0x2d")](Rn("0xfe"))[Rn("0xc5")]({view:"revision"})}init(){this.repository=this[Rn("0x7a")].plugins[Rn("0xd8")](Rn("0x9")),this._setConversion(),this.editor[Rn("0x35")].on(Rn("0x66"),(()=>{const e=this[Rn("0x2")][Rn("0x4a")](0),t=e&&null===e[Rn("0x84")]?e:null;if(this[Rn("0xd9")]=!!t&&this[Rn("0x7a")][Rn("0xf3")][Rn("0xd8")]("revisionHistory.resumeUnsavedRevision"),this[Rn("0x7a")][Rn("0x4f")].has("RealTimeCollaborationClient")){const i=this[Rn("0x8b")].getCurrentRevisionId(),n=this[Rn("0x2")][Rn("0x4a")](i);if(n)this[Rn("0xd5")]=n[Rn("0x38")],this[Rn("0xd9")]=!1;else{const i=this[Rn("0x8b")].history[Rn("0x69")].find((e=>!e[Rn("0x76")])),n=i?i[Rn("0xf1")]:this[Rn("0x8b")][Rn("0xc9")].version;e?(e.toVersion<n&&e._update({toVersion:n}),this[Rn("0xd9")]?(this[Rn("0x8b")][Rn("0xb7")]=()=>t.id,this[Rn("0xd5")]=t[Rn("0x38")]):(this[Rn("0xd5")]=e[Rn("0x72")],this[Rn("0xd9")]=!1)):(this[Rn("0xd5")]=n,this[Rn("0xd9")]=!1)}}else t&&(this[Rn("0x7a")][Rn("0xc2")][Rn("0xb")].history[Rn("0x7f")]=Math.max(t[Rn("0x72")],this.editor[Rn("0xc2")].document[Rn("0xc9")].version),t.fromVersion===t[Rn("0x72")]?(0!==t.fromVersion&&(this[Rn("0x8b")][Rn("0xb7")]=()=>t.id),this[Rn("0xd9")]=!1):this._continueCurrentRevision&&(this._source.getCurrentRevisionId=()=>t.id,this[Rn("0xd5")]=t[Rn("0x38")])),this[Rn("0xd9")]||(this[Rn("0xd5")]=this[Rn("0x7a")][Rn("0xc2")][Rn("0xb")][Rn("0x7f")]);this[Rn("0x92")][Rn("0x22")](this[Rn("0x8b")].history),this[Rn("0x20")](this[Rn("0xd5")]),this[Rn("0xf7")](this[Rn("0xd5")]),this[Rn("0xeb")]&&this[Rn("0xbc")]()})),this[Rn("0x1b")](Rn("0xc6")).to(this,Rn("0xdf"),(e=>!e))}async[Rn("0xd6")](){if(this[Rn("0x2")][Rn("0xa6")]>0){const e=this[Rn("0x2")][Rn("0x4a")](0),t=await this.getRevisionDocumentData(e),i=await this[Rn("0x8d")](e);this[Rn("0xdc")](t,i)}}setSource(e){this[Rn("0x8b")]=e}async[Rn("0xd2")](){const e=await this[Rn("0x8b")].getLatestVersion();if(e>this[Rn("0x8a")][Rn("0x72")]){await this[Rn("0x8e")]();const t=this[Rn("0x19")]({revision:this[Rn("0x8a")],to:e});t[Rn("0x70")]=t[Rn("0x27")].map((e=>this[Rn("0x7a")][Rn("0x4f")][Rn("0xd8")](Rn("0x95"))[Rn("0x62")](e))),this[Rn("0x8a")][Rn("0xa8")](t)}}async[Rn("0x8e")](){this._continueCurrentRevision&&!this[Rn("0xf8")]&&(await this._loadRevisionData(this[Rn("0x8a")]),this._revisionDataBuilder.loadState(this[Rn("0x8a")]),this[Rn("0xf8")]={fromVersion:this.currentRevision.fromVersion,authors:this[Rn("0x8a")][Rn("0x70")][Rn("0xde")]()})}async[Rn("0x16")](e={},i=null){const n=[];await this[Rn("0x8e")](),this[Rn("0xd9")]=!1,i>this[Rn("0x8a")].toVersion&&(i=null),null===i&&(i=await this[Rn("0x8b")].getLatestVersion());const r=this[Rn("0xe7")](i),o=this[Rn("0x19")]({from:r,to:i});if(this[Rn("0x8a")].toVersion<i){const e=this[Rn("0x19")]({revision:this.currentRevision,from:i,to:i});e[Rn("0x70")]=[],e[Rn("0x27")]=[],e.id=this[Rn("0x8a")].id,this[Rn("0x8a")]._update(e,!0),delete e[Rn("0x70")],n.push(e)}e[Rn("0xc")]=this[Rn("0x7a")][Rn("0x4f")][Rn("0xd8")]("Users").me.id,e[Rn("0xf")]=e[Rn("0xf")]||null,e.id=e.id||(0,t.uid)(),e={...e,...o};const s=this[Rn("0x86")](e);n[Rn("0xe5")](e);const a=this[Rn("0x2")][Rn("0xc1")](s);if(0!==a){const t=this.repository.getRevision(a-1);if(t[Rn("0x38")]!==i){const r=this[Rn("0x92")][Rn("0xa3")](i,t.toVersion),o={id:t.id,diffData:r[Rn("0xa9")],authorsIds:r.authorsIds,authors:r.authorsIds[Rn("0x2b")]((e=>this[Rn("0x7a")][Rn("0x4f")].get(Rn("0x95")).getUser(e))),fromVersion:i};t===this[Rn("0x8a")]&&(o[Rn("0x75")]=new Date(e[Rn("0x75")][Rn("0x83")]()+10)),t[Rn("0xa8")](o,!0),delete o.authors,n[Rn("0xe5")](o)}}if(this.adapter){for(const e of n)this[Rn("0xa1")](e.id,e,!0);this[Rn("0xbc")]()}return s}[Rn("0x86")](e){const t=this[Rn("0x2")].createRevision(e);return this[Rn("0xeb")]&&t.on(Rn("0xa8"),((e,t,i)=>{i||(this[Rn("0xa1")](t.id,t,!0),this[Rn("0xbc")]())})),this[Rn("0x2")].addRevision(t,this[Rn("0x6a")](t)),t}async getRevisionDocumentData(e){await this[Rn("0xbb")](e);const t={};for(const i in e[Rn("0xa9")]){if(e.diffData[i][Rn("0x46")]&&!e[Rn("0xa9")][i][Rn("0x46")].isAttached)continue;const n=this[Rn("0x11")](JSON[Rn("0x59")](e[Rn("0xa9")][i][Rn("0x6b")])),r=this.editor.editing[Rn("0xbd")][Rn("0xb")],s=new o.ViewDocumentFragment(r,n[Rn("0x2b")]((e=>Nn(e,this.editor))));this[Rn("0x7a")][Rn("0x35")][Rn("0x14")].useFillerType(Rn("0x4b")),t[i]=this[Rn("0x7a")][Rn("0x35")][Rn("0x14")].toData(s),this[Rn("0x7a")][Rn("0x35")][Rn("0x14")][Rn("0x48")]("default")}return t}async getRevisionRootsAttributes(e){await this[Rn("0xbb")](e);const t={};for(const i in e[Rn("0xa9")])e[Rn("0xa9")][i].attachChange&&!e[Rn("0xa9")][i][Rn("0x46")][Rn("0xba")]||(t[i]=e[Rn("0xa9")][i][Rn("0x53")]||{});return t}[Rn("0xbc")](){if(0===this[Rn("0xbf")].size)return;if(this[Rn("0xdf")])return;let e=Array.from(this[Rn("0xbf")][Rn("0xc8")]());this[Rn("0xbf")][Rn("0x21")]();for(let t=0;t<e[Rn("0xa6")];t++){const i=e[t];let n=!1;for(const e of Object.keys(i))void 0===i[e]?delete i[e]:"id"!==e&&(n=!0);n||(e[t]=null)}if(e=e[Rn("0x37")]((e=>null!==e)),!e[Rn("0xa6")])return;for(let t=0;t<e[Rn("0xa6")];t++){const i=e[t];void 0!==i.fromVersion&&void 0===i[Rn("0x72")]&&(i.toVersion=this.repository[Rn("0x4a")](i.id)[Rn("0x72")]),void 0!==i.toVersion&&void 0===i[Rn("0x38")]&&(i[Rn("0x38")]=this[Rn("0x2")][Rn("0x4a")](i.id)[Rn("0x38")])}const t=this[Rn("0x7a")][Rn("0xf3")][Rn("0xd8")](Rn("0x32"));this._isPendingUpdate=!0,this._addPendingAction(),this[Rn("0xeb")][Rn("0xb2")](e,t).finally((()=>{this[Rn("0xdf")]=!1})).then((e=>{if(e)for(const t of e)this[Rn("0x96")]({id:t.id,createdAt:t[Rn("0x75")]});this[Rn("0x31")](),this[Rn("0xbc")]()}))}[Rn("0xdc")](e,i){let n=this[Rn("0x7a")][Rn("0xf3")][Rn("0xd8")](Rn("0xb1")),r=this[Rn("0x7a")][Rn("0xf3")][Rn("0xd8")](Rn("0x2a"));if(void 0===n){n={};for(const e of this.editor[Rn("0xc2")][Rn("0xb")][Rn("0xb8")]())n[e]=""}if(Rn("0x91")==typeof n&&(n={main:n}),void 0===r){r={};for(const e of this.editor.model.document[Rn("0xb8")]())r[e]={}}let o=!1;const s=Object[Rn("0x94")](n),a=Object[Rn("0x94")](e);for(const t of s){if(n[t]!==e[t]&&""!==n[t][Rn("0x87")]()){o=!0;break}if(!_n(r[t],i[t])&&Object[Rn("0x94")](r[t])[Rn("0xa6")]>0){o=!0;break}}o||(o=a[Rn("0x8c")]((e=>!this[Rn("0x7a")][Rn("0xc2")][Rn("0xb")][Rn("0xcd")](e)))),o&&(0,t.logWarning)("editor-initial-data-replaced-with-revision-data",{editorData:n,editorRootsAttributes:r,revisionData:e,revisionRootsAttributes:i}),this.editor[Rn("0xf3")][Rn("0x2c")](Rn("0xb1"),e),this[Rn("0x7a")][Rn("0xf3")][Rn("0x2c")]("rootsAttributes",i)}[Rn("0x77")](){if(!this[Rn("0xf4")]){const e=this.editor.plugins[Rn("0xd8")](Rn("0xd"));this[Rn("0xf4")]=e[Rn("0x6e")](en(this[Rn("0x7a")][Rn("0x68")],Rn("0x5a")))}}[Rn("0x31")](){this[Rn("0xf4")]&&(this[Rn("0x7a")][Rn("0x4f")][Rn("0xd8")]("PendingActions")[Rn("0x63")](this._pendingAction),this._pendingAction=null)}[Rn("0x6a")](e){const t=this[Rn("0x2")][Rn("0x4d")]();t[Rn("0xe3")]();let i=0;for(;i<t[Rn("0xa6")];){const n=t[i];if(n===this[Rn("0x8a")]){i++;continue}if(n.id===this[Rn("0x64")])break;const r=e[Rn("0x72")]-n[Rn("0x72")]||e.fromVersion-n[Rn("0x38")];if(r>0)break;if(r<0)i++;else{if(!e[Rn("0x84")]&&n[Rn("0x84")])break;if(n[Rn("0x84")]||!e[Rn("0x84")]){if(e[Rn("0x75")]>n[Rn("0x75")])break;i++}else i++}}return i}setRevisionData(e){const t=this[Rn("0x2")].getRevision(e.id);if(e.createdAt&&(e.createdAt=new Date(e[Rn("0x75")])),e[Rn("0x27")]){const t=this[Rn("0x7a")][Rn("0x4f")][Rn("0xd8")]("Users");e.authors=e[Rn("0x27")][Rn("0x2b")]((e=>t[Rn("0x62")](e)))}t[Rn("0xa8")](e,!0)}buildRevisionData({revision:e=null,from:t=null,to:i=null}){t=null!==t?t:e[Rn("0x38")],i=null!==i?i:e.toVersion;const n=this[Rn("0x92")][Rn("0xa3")](t,i),r={diffData:n.diffData,authorsIds:n.authorsIds,fromVersion:t,toVersion:i};if(!e||i!==e.toVersion){const e=i-1,t=this._source[Rn("0xc9")][Rn("0xbe")](e);r[Rn("0x75")]=t&&t[Rn("0x75")]||new Date}if(this[Rn("0xf8")]&&t===this[Rn("0xf8")][Rn("0x38")])for(const e of this._loadedStateData[Rn("0x70")])r[Rn("0x27")].includes(e.id)||r[Rn("0x27")][Rn("0xe5")](e.id);return r}[Rn("0xbb")](e){if(!e||e[Rn("0xa9")])return Promise.resolve();{const t=this[Rn("0x7a")].config[Rn("0xd8")](Rn("0x32"));return this[Rn("0xeb")][Rn("0x4a")]({channelId:t,revisionId:e.id}).then((t=>{e[Rn("0xa9")]=t[Rn("0xa9")]}))}}[Rn("0xa1")](e,t,i){if(this[Rn("0xbf")].has(e)){const n=this[Rn("0xbf")].get(e);t=i?{...n,...t}:{...t,...n}}this[Rn("0xbf")][Rn("0x2c")](e,t)}[Rn("0xe7")](e){const t=this[Rn("0x2")][Rn("0x4d")]();t[Rn("0xe3")](),t[Rn("0xcb")]();const i=t[Rn("0xce")]((t=>t[Rn("0x72")]<=e))[Rn("0x72")];return i<this._startingVersion?this[Rn("0xd5")]:i}[Rn("0x20")](e){const t=this.repository[Rn("0x4a")](this.repository[Rn("0xa6")]-1);if(t)this[Rn("0x64")]=t.id;else{const t=!this[Rn("0x7a")][Rn("0xc2")][Rn("0xb")].roots[Rn("0xce")]((e=>this[Rn("0x7a")][Rn("0xc2")].hasContent(e))),i=this[Rn("0x7a")].plugins[Rn("0xd8")](Rn("0x95")).me.id,n=en(this[Rn("0x7a")][Rn("0x68")],Rn(t?"0x0":"0xac"));this[Rn("0x3a")]({from:e,to:e,id:this._initialRevisionId,name:n,creatorId:i})}}[Rn("0xf7")](e){const t=this[Rn("0x8b")][Rn("0xb7")]();this[Rn("0x8a")]=this[Rn("0x2")][Rn("0x4a")](t),this[Rn("0x8a")]||(this[Rn("0x8a")]=this._makeRevision({from:e,to:e,id:t,name:"",creatorId:null}))}[Rn("0x3a")]({name:e,from:t,to:i,creatorId:n,id:r}){const o=this[Rn("0x19")]({from:t,to:i});o.name=e,o.creatorId=n,o.id=r;const s=this[Rn("0x86")](o);return this[Rn("0xeb")]&&this[Rn("0xa1")](o.id,o,!0),s}[Rn("0xf2")](){this[Rn("0x7a")].conversion.for("dataDowncast")[Rn("0x51")]({model:"revision"})}[Rn("0x11")](e){return(e=e[Rn("0x37")]((e=>!e[Rn("0xf")]||"revision-start"!==e[Rn("0xf")]&&Rn("0x3")!==e[Rn("0xf")])))[Rn("0x79")]((e=>{Rn("0x91")!=typeof e&&(e[Rn("0xcc")]=this[Rn("0x11")](e.children),e[Rn("0xb4")]=e.attributes.filter((e=>!e[0][Rn("0xe0")](Rn("0x93")))))})),e}}function Nn(e,t){const i=t[Rn("0x42")][Rn("0xbd")][Rn("0xb")];if(Rn("0x91")==typeof e)return new o.ViewText(i,e);{const n=e[Rn("0xcc")][Rn("0x2b")]((e=>Nn(e,t)));return new(Tn[e[Rn("0x1a")]]||o.ViewElement)(i,e[Rn("0xf")],e.attributes,n)}}class Vn{constructor(e){this.editor=e,this[Rn("0xa7")]=new Map,this[Rn("0x30")]=-1,this[Rn("0x2e")]=-1,this[Rn("0x98")]=new Map,this[Rn("0x2f")]=new Map,this._diffRootsAttributes=new Map,this._baseRoots=new Map,this._baseRootsAttributes=new Map,this[Rn("0x44")]=new Map,this[Rn("0x3b")]=new Map,this[Rn("0x28")]=new Map,this[Rn("0x58")]=new Map,this[Rn("0xdd")]=new Map,this[Rn("0xef")]=1}[Rn("0x22")](e){this.source=e;const t=new Map,i=new Map,n=this[Rn("0x7a")][Rn("0xc2")][Rn("0xb")][Rn("0xec")][Rn("0x2b")]((e=>e[Rn("0x1c")]));for(const e of n){const n=this[Rn("0x7a")][Rn("0xc2")][Rn("0xb")][Rn("0xcd")](e),r=An(n);t.set(e,r),i[Rn("0x2c")](e,Object.fromEntries(n[Rn("0xe4")]()))}const r=Array[Rn("0x57")](this[Rn("0x7a")][Rn("0xc2")][Rn("0x39")])[Rn("0x2b")]((e=>[e.name,e.getRange()])),o=this.source[Rn("0x7f")];this[Rn("0x71")](o,t,r,i),this[Rn("0xb0")]=this[Rn("0xef")];const s=new Map,a=new Map;for(const e of n){const t=Mn(e);s[Rn("0x2c")](e,t),a[Rn("0x2c")](e,{})}this[Rn("0x71")](Number[Rn("0x12")],s,[],a)}[Rn("0xa3")](e,t){if(this[Rn("0x30")]===e&&this._lastTo<=t)this._savedMetaData[Rn("0x1e")]>1&&this[Rn("0xab")](this._lastTo),this[Rn("0x5d")](this[Rn("0x2e")],t,!0);else{if(!this[Rn("0xa7")][Rn("0xca")](e)){const t=this[Rn("0xb9")](e);this[Rn("0x1")](t,e,!1)}this[Rn("0x1")](e,t,!0)}return this[Rn("0x30")]=e,this[Rn("0x2e")]=t,this[Rn("0xe9")]()}[Rn("0x65")](e){this[Rn("0xf9")](),this[Rn("0x30")]=e.fromVersion,this[Rn("0x2e")]=e[Rn("0x72")];for(const t in e[Rn("0xa9")]){const i=e[Rn("0xa9")][t][Rn("0x46")],n=pi(e[Rn("0xa9")][t][Rn("0x9d")])||{},r=this[Rn("0xdb")](e[Rn("0xa9")][t][Rn("0x3c")]);r[Rn("0x1c")]=t,r[Rn("0x36")]=!i||!i.isAttached,r[Rn("0xba")]=()=>r[Rn("0x36")],this[Rn("0xa2")][Rn("0x2c")](t,r),this[Rn("0x3d")][Rn("0x2c")](t,n),i&&this._touchedRoots[Rn("0x2c")](t,i);const o=this._makeIdsRoot(r);this[Rn("0x3b")][Rn("0x2c")](t,o);for(const[e,t]of r[Rn("0x39")]){if(!e[Rn("0xe0")](Rn("0xb3")))continue;const i=e[Rn("0xaa")](":")[2];for(const e of t[Rn("0xae")]({singleCharacters:!0})){const t=this._getVidAttributeName(e),n=Rn("0xad")==e[Rn("0x1a")]?e[Rn("0x5")][Rn("0xee")].slice(0,-1):e.previousPosition.path,r=o.getNodeByPath(n)[Rn("0x9c")](t);this._touched[Rn("0x2c")](r,{userId:i})}}}this[Rn("0xb0")]=this[Rn("0xef")];const t=[...Array(this[Rn("0xef")])[Rn("0x94")]()][Rn("0xde")](1)[Rn("0x37")]((e=>!this[Rn("0x28")][Rn("0xca")](e)));let i=0;const n=new Map;for(const r in e[Rn("0xa9")]){const o=e[Rn("0xa9")][r][Rn("0x46")],s=pi(e[Rn("0xa9")][r][Rn("0x53")])||{},a=this[Rn("0xdb")](e.diffData[r].insertions);a[Rn("0x1c")]=r,a._isAttached=!o||o[Rn("0xba")],a[Rn("0xba")]=()=>a[Rn("0x36")],this[Rn("0x2f")][Rn("0x2c")](r,a),this[Rn("0x49")].set(r,s);const c=this[Rn("0x78")](a,Number[Rn("0x12")]);this._idsRoots.set(r,c),n.set(r,a[Rn("0xba")]()?s:{});for(const[e,t]of a[Rn("0x39")]){if(!e[Rn("0xe0")]("revision:"))continue;const i=e[Rn("0xaa")](":")[2];for(const e of t.getWalker({singleCharacters:!0})){const t=this[Rn("0x85")](e),n=this[Rn("0xef")]++,r=Rn("0xad")==e[Rn("0x1a")]?e.previousPosition[Rn("0xee")].slice(0,-1):e[Rn("0x5")][Rn("0xee")];c.getNodeByPath(r)._setAttribute(t,n),this[Rn("0x28")].set(n,{userId:i})}}for(const e of this.editor[Rn("0xc2")][Rn("0xa4")](a)[Rn("0xae")]({singleCharacters:!0})){const n=this[Rn("0x85")](e),r=Rn("0xad")==e[Rn("0x1a")]?e[Rn("0x5")].path[Rn("0xde")](0,-1):e[Rn("0x5")][Rn("0xee")],o=c[Rn("0x50")](r);o.getAttribute(n)>0||o[Rn("0xd4")](n,t[i++])}for(const[e,t]of a[Rn("0x39")])e[Rn("0xe0")](Rn("0xb3"))||this[Rn("0x98")].set(e,t)}const r=Mn(Rn("0x25"));this._baseRoots[Rn("0x2c")](Rn("0x25"),r),this._baseIdsRoots[Rn("0x2c")](Rn("0x25"),this[Rn("0x78")](r,1));const o=Mn(Rn("0x25"));this[Rn("0x2f")].set(Rn("0x25"),o),this[Rn("0x44")][Rn("0x2c")](Rn("0x25"),this[Rn("0x78")](o,1));const s=Array[Rn("0x57")](this._diffRoots)[Rn("0x2b")]((([e,t])=>[e,An(t)]));this._saveMetaData(this[Rn("0x2e")],s,this._markers,n)}[Rn("0xdb")](e){const t=JSON[Rn("0x59")](e),i=this[Rn("0x7a")][Rn("0x42")].view[Rn("0xb")],n=new o.ViewDocumentFragment(i,t[Rn("0x2b")]((e=>Nn(e,this[Rn("0x7a")]))));return this[Rn("0x7a")][Rn("0x35")][Rn("0x7")](n)}[Rn("0x71")](e,t,i,n){const r=new Map(t),o=new Map(pi(n)),s=new Map;for(const[e,t]of i)s[Rn("0x2c")](e,{start:t.start[Rn("0x17")](),end:t[Rn("0xc0")][Rn("0x17")](),rootName:t[Rn("0x4")].rootName});this[Rn("0xa7")][Rn("0x2c")](e,{roots:r,markers:s,rootsAttributes:o})}[Rn("0xab")](e){this[Rn("0xa7")].delete(e)}[Rn("0x34")](){this[Rn("0xf9")](),this._lastFrom=-1,this[Rn("0x2e")]=-1,this[Rn("0xa7")][Rn("0x21")](),this.init(this[Rn("0x1d")])}[Rn("0xf9")](){this[Rn("0x28")][Rn("0x21")](),this._touchedMarkers[Rn("0x21")](),this._touchedRoots[Rn("0x21")](),this[Rn("0x2f")][Rn("0x21")](),this[Rn("0x49")][Rn("0x21")](),this[Rn("0xa2")][Rn("0x21")](),this[Rn("0x3d")][Rn("0x21")](),this[Rn("0x44")][Rn("0x21")](),this[Rn("0x3b")][Rn("0x21")](),this[Rn("0x98")][Rn("0x21")](),this[Rn("0xef")]=1,this[Rn("0xb0")]=this[Rn("0xef")]}[Rn("0x78")](e,t=null){let i=null;e.is(Rn("0xed"))||(i=new o.Element(e[Rn("0xf")],{vid_start:null===t?this[Rn("0xef")]++:t++}));const n=[];for(const i of e.getChildren())if(i.is(Rn("0xe1"))){n[Rn("0xe5")](this[Rn("0x78")](i,t));const e=n[n[Rn("0xa6")]-1];null!==t&&(t=e.is(Rn("0xe1"),"$text")?e.getAttribute("vid")+1:e[Rn("0x9c")](Rn("0xe"))+1)}else for(let e=0;e<i[Rn("0x90")];e++)n[Rn("0xe5")](new o.Element("$text",{vid:null===t?this[Rn("0xef")]++:t++}));if(e.is("documentFragment")){const t=Mn(e.rootName);return t._insertChild(0,n),t}return i[Rn("0xd4")](Rn("0xe"),null===t?this._revisionId++:t++),i[Rn("0xc4")](0,n),i}[Rn("0x1")](e,t,i){this[Rn("0xf9")]();const{roots:n,markers:r,rootsAttributes:s}=this[Rn("0xa7")][Rn("0xd8")](e);this[Rn("0xa2")]=new Map(n),this._baseRootsAttributes=new Map(pi(s));for(const[e,t]of this[Rn("0xa2")])if(Rn("0x25")!==e&&(this[Rn("0x2f")][Rn("0x2c")](e,An(t)),this[Rn("0x49")]=new Map(pi(s)),i)){const i=this[Rn("0xef")];this._idsRoots.set(e,this[Rn("0x78")](t)),this._baseIdsRoots.set(e,this._makeIdsRoot(t,i))}this[Rn("0xb0")]=this._revisionId,this[Rn("0x2f")].set(Rn("0x25"),An(this._baseRoots[Rn("0xd8")]("$graveyard"))),i&&this[Rn("0x44")][Rn("0x2c")](Rn("0x25"),this._makeIdsRoot(this[Rn("0xa2")][Rn("0xd8")]("$graveyard")));for(const[e,t]of r){const i=this[Rn("0xa2")][Rn("0xd8")](t[Rn("0x1c")]),n=this[Rn("0x2f")][Rn("0xd8")](t[Rn("0x1c")]),r=new o.Range(this[Rn("0x40")](t.start,i),this[Rn("0x40")](t[Rn("0xc0")],i)),s=this._fixRange(r,n);i.markers[Rn("0x2c")](e,r),this._markers[Rn("0x2c")](e,s)}this[Rn("0x5d")](e,t,i)}[Rn("0x5d")](e,t,i){for(const n of this[Rn("0x1d")].getOperations(e,t))this[Rn("0x8")](n,i);for(const e of this[Rn("0x2f")][Rn("0xc8")]())e.markers.clear();for(const[e,t]of this[Rn("0x98")])this[Rn("0x2f")][Rn("0xd8")](t[Rn("0x4")].rootName)[Rn("0x39")].set(e,t[Rn("0x17")]());const n=new Map,r=new Map;for(const[e,t]of this[Rn("0x2f")])n[Rn("0x2c")](e,An(t)),r[Rn("0x2c")](e,this[Rn("0x49")][Rn("0xd8")](e));this[Rn("0x71")](t,n,this[Rn("0x98")],r)}[Rn("0xb9")](e){const t=Array.from(this[Rn("0xa7")].keys());t[Rn("0xd7")](((e,t)=>e-t)),t[Rn("0xe3")]();for(const i of t)if(i<e)return i;return Number[Rn("0x12")]}[Rn("0x3e")](e,t){const i=Array.from(t.markers)[Rn("0x2b")]((([t,i])=>[t,this[Rn("0x7d")](i,e)]));e[Rn("0x39")]=new Map(i)}[Rn("0xfc")](e){for(const t of this[Rn("0x98")][Rn("0xc8")]()){const i=t[Rn("0xf6")](e),n=o.Range[Rn("0x9f")](i);t[Rn("0x43")]=n[Rn("0x43")],t[Rn("0xc0")]=n.end}}[Rn("0x8")](e,t){if(Rn("0x5b")==e[Rn("0x1a")]||Rn("0x80")==e[Rn("0x1a")])return void this[Rn("0x6d")](e,t);if("insert"==e.type){const i=e[Rn("0x81")].root[Rn("0x1c")];this._diffRoots[Rn("0xca")](i)||(this[Rn("0x2f")].set(i,Mn(i,!0)),this[Rn("0x49")][Rn("0x2c")](i,{}),t&&this[Rn("0x44")].set(i,Mn(i,!0)))}else if(Rn("0xa")==e.type||Rn("0xfb")==e[Rn("0x1a")]||Rn("0x7c")==e.type)return void this[Rn("0xd3")](e);const i=this[Rn("0x6f")](e,this[Rn("0x2f")]);if(Rn("0x55")!==e[Rn("0x1a")]&&(i._execute(),this._transformMarkers(i)),t)switch(i[Rn("0x1a")]){case Rn("0x52"):this[Rn("0x60")](e);break;case Rn("0x15"):case Rn("0x63"):case"reinsert":this[Rn("0xcf")](e);break;case Rn("0x5e"):this[Rn("0x45")](e);break;case"split":this[Rn("0x47")](e);break;case"marker":this[Rn("0x100")](e)}}[Rn("0x6f")](e,t){const i=e[Rn("0x17")]();return i[Rn("0x6c")]=e._authorId,this._fixOperation(i,t),i}[Rn("0x6")](e){return e[Rn("0x2b")]((e=>{const t=this[Rn("0x85")](e);return Number(e[Rn("0xaf")][Rn("0x9c")](t))}))}[Rn("0xb5")](e,t){if(e.is(Rn("0xe1"),Rn("0x9a")))t[Rn("0xe5")]({item:e,type:"text"});else{e.is(Rn("0xe1"))&&t[Rn("0xe5")]({item:e,type:Rn("0x89")});for(const i of e[Rn("0xc7")]())this[Rn("0xb5")](i,t);e.is(Rn("0xe1"))&&t[Rn("0xe5")]({item:e,type:Rn("0xad")})}return t}[Rn("0xe9")](){const e=new Map(this[Rn("0x28")]),t=new Map(e),i=new Map,n={insertions:{},deletions:{}},r={insertions:{},deletions:{}},o=new Map,s=new Set([...this[Rn("0xa2")].keys(),...this[Rn("0x2f")][Rn("0x94")]()]);s[Rn("0x82")](Rn("0x25"));for(const e of s){const t=this[Rn("0x2f")].get(e)||Mn(e,!1),i=this[Rn("0xa2")].get(e)||Mn(e,!1);t[Rn("0xba")]()||i[Rn("0xba")]()?(n[Rn("0x6b")][e]=An(t),n[Rn("0x3c")][e]=An(i),this[Rn("0x3e")](n[Rn("0x3c")][e],i),this[Rn("0x3e")](n[Rn("0x6b")][e],t),r[Rn("0x6b")][e]=this._generateTape(this[Rn("0x44")][Rn("0xd8")](e),[]),r[Rn("0x3c")][e]=this[Rn("0xb5")](this._baseIdsRoots[Rn("0xd8")](e)||Mn(e,!1),[])):s[Rn("0x82")](e)}for(const n of s){const o=r[Rn("0x6b")][n];for(const n of o){const r=this[Rn("0x85")](n),o=n[Rn("0xaf")][Rn("0x9c")](r);t[Rn("0x82")](o),o>=this._startingRevisionId&&i[Rn("0x2c")](o,e[Rn("0xd8")](o))}}for(const n of s){const s=r[Rn("0x6b")][n],a=this._getBaseVids(r[Rn("0x3c")][n]);let c=0;for(const n of s){const r=this[Rn("0x85")](n),s=n[Rn("0xaf")][Rn("0x9c")](r);if(!i[Rn("0xca")](s)&&!o[Rn("0xca")](s))if(t[Rn("0xca")](s))c++;else{if(s!=a[c]){const i=e[Rn("0xd8")](s)||e.get(a[c]);for(;s!=a[c];)t[Rn("0xca")](a[c])||(o[Rn("0x2c")](a[c],i),e[Rn("0x2c")](a[c],i)),c++}c++}}}for(const e of s){const n=r.insertions[e];for(const e of n){const n=this._getVidAttributeName(e),r=e[Rn("0xaf")][Rn("0x9c")](n);if(o.has(r)){const e=o[Rn("0xd8")](r);t[Rn("0xca")](r)||t[Rn("0x2c")](r,{...e}),i[Rn("0x2c")](r,{...e})}}}for(const e of t[Rn("0x94")]())e>=this[Rn("0xb0")]&&t.delete(e);const a=new Map;for(const e of s){let n=r[Rn("0x6b")][e];for(const e of n)if(e[Rn("0xaf")].is("element",Rn("0x8f"))){const t=this[Rn("0x85")](e),n=e[Rn("0xaf")].getAttribute(t);if(i[Rn("0xca")](n)){const t=e.item[Rn("0xd1")][Rn("0xd1")][Rn("0x9c")]("vid_start"),r=a[Rn("0xd8")](t)||new Set;r.add(i[Rn("0xd8")](n)[Rn("0x29")]),a[Rn("0x2c")](t,r)}}n=r[Rn("0x3c")][e];for(const e of n)if(e[Rn("0xaf")].is(Rn("0xe1"),Rn("0x8f"))){const i=this[Rn("0x85")](e),n=e.item.getAttribute(i);if(t[Rn("0xca")](n)){const i=e[Rn("0xaf")][Rn("0xd1")].parent[Rn("0x9c")]("vid_start"),r=a[Rn("0xd8")](i)||new Set;r.add(t[Rn("0xd8")](n)[Rn("0x29")]),a[Rn("0x2c")](i,r)}}for(const e of a[Rn("0x94")]())(i.has(e)||t[Rn("0xca")](e))&&a.delete(e)}for(const e of s){const n=r[Rn("0x6b")][e];let o=null,s=null;for(const e of n){const n=this[Rn("0x85")](e),r=e.item[Rn("0x9c")](n),c=a[Rn("0xd8")](r);c&&Rn("0x89")==e[Rn("0x1a")]&&(o=Array[Rn("0x57")](c)[0],s=e.item.getAttribute("vid_end")),o&&(t[Rn("0x2c")](r,{userId:o}),i[Rn("0x2c")](r,{userId:o})),r==s&&(o=null,s=null)}}const c={},u=new Set;for(const e of s){const o=n[Rn("0x3c")][e],s=n[Rn("0x6b")][e];for(const{userId:e}of this[Rn("0x58")][Rn("0xc8")]())null!==e&&u[Rn("0x6e")](e);for(const{userId:e}of this[Rn("0xdd")][Rn("0xc8")]())null!==e&&u.add(e);this[Rn("0xff")](s,r[Rn("0x6b")][e],i,Rn("0x88"),u),this[Rn("0xff")](o,r.deletions[e],t,Rn("0x7e"),u),c[e]={insertions:this[Rn("0xea")](s),deletions:this[Rn("0xea")](o),attachChange:this[Rn("0xdd")].get(e)||null,attributesBefore:pi(this[Rn("0x3d")][Rn("0xd8")](e))||{},attributesAfter:pi(this._diffRootsAttributes[Rn("0xd8")](e))}}return{diffData:c,authorsIds:Array[Rn("0x57")](u)}}[Rn("0x67")](e){for(const[,t]of e.markers){const e=t[Rn("0x43")][Rn("0x26")]()[Rn("0x37")]((e=>Rn("0x8f")==e[Rn("0xf")]));for(const t of e)1==t.childCount&&t.getChild(0).is(Rn("0xe1"),"paragraph")&&t[Rn("0xb6")](0)._setAttribute(Rn("0xfd"),!0)}}[Rn("0xea")](e){this[Rn("0x67")](e);const t=this[Rn("0x7a")].data[Rn("0x4e")](e,{}),i=Array[Rn("0x57")](t.getChildren())[Rn("0x2b")]((e=>this[Rn("0x54")](e)));return JSON.stringify(i)}[Rn("0x54")](e){if(e.is("$text"))return e[Rn("0x35")];{const t=e;return{type:Object[Rn("0x94")](Tn)[Rn("0xce")]((t=>e instanceof Tn[t])),name:t[Rn("0xf")],attributes:Array.from(t[Rn("0xe4")]()),children:Array[Rn("0x57")](t[Rn("0xc7")]()).map((e=>this._getViewJson(e)))}}}_markChanges(e,t,i,n,r){let o=null,s=null,a=0;const c=this[Rn("0x7a")][Rn("0xc2")];for(let n=0;n<t[Rn("0xa6")];n++){const r=this[Rn("0x85")](t[n]),a=t[n][Rn("0xaf")][Rn("0x9c")](r),d=i.get(a),l=n==t[Rn("0xa6")]-1;!o&&d&&(o=d,s=t[n]),o&&(!d||d[Rn("0x29")]!=o.userId)&&(u(d,En(s,e,c),En(t[n],e,c)),o=d||null,s=d?t[n]:null),o&&l&&u(d,En(s,e,c),jn(t[n],e,c))}function u(t,i,s){const u=o.userId,d=Rn("0xb3")+n+":"+u+":"+a++,l=c.createRange(i,s);e[Rn("0x39")][Rn("0x2c")](d,l),null!==u&&r[Rn("0x6e")](u)}}[Rn("0x85")](e){switch(e[Rn("0x1a")]){case Rn("0x89"):return Rn("0xd0");case Rn("0xad"):return"vid_end";default:return Rn("0xf0")}}[Rn("0x24")](e,t){e[Rn("0xf1")]=null;for(const i in e){const n=e[i];if(n instanceof o.Position){const r=t[Rn("0xd8")](n[Rn("0x4")][Rn("0x1c")]);e[i]=this[Rn("0x40")](n,r)}if(n instanceof o.Range){const r=t.get(n[Rn("0x4")][Rn("0x1c")]);e[i]=this[Rn("0x7d")](n,r)}Rn("0x4")===i&&(e.root=t[Rn("0xd8")](e[Rn("0x4")][Rn("0x1c")]))}}_fixRange(e,t){return this[Rn("0x7a")].model[Rn("0x33")](this._fixPosition(e[Rn("0x43")],t),this[Rn("0x40")](e[Rn("0xc0")],t))}[Rn("0x40")](e,t){return this.editor[Rn("0xc2")][Rn("0x3f")](t,e[Rn("0xee")],e[Rn("0xf5")])}[Rn("0x60")](e){const t=this[Rn("0x44")][Rn("0xd8")](e[Rn("0x81")][Rn("0x4")].rootName),i=this._fixPosition(e.position,t),n=null===e._authorId?null:e._authorId||this.editor[Rn("0x4f")][Rn("0xd8")](Rn("0x95")).me.id,r=i.parent,s=this[Rn("0xef")],a=[];for(const t of e.nodes)if(t.is(Rn("0xe1")))a[Rn("0xe5")](this[Rn("0x78")](t));else for(let e=0;e<t.offsetSize;e++)a[Rn("0xe5")](new o.Element(Rn("0x9a"),{vid:this[Rn("0xef")]++}));const c=this[Rn("0xef")];for(let e=s;e<c;e++)this[Rn("0x28")][Rn("0x2c")](e,{userId:n});r[Rn("0xc4")](i[Rn("0xa5")],a)}_handleMoveOperation(e){(e=this._cloneOperation(e,this[Rn("0x44")]))[Rn("0x5f")]();const t=null===e[Rn("0x6c")]?null:e._authorId||this[Rn("0x7a")].plugins.get(Rn("0x95")).me.id,i=e[Rn("0x5c")](),n=i.parent,r=i.offset;!function e(i,n,r,o){for(let s=r;s<o;s++){const r=n[Rn("0xb6")](s);r.is(Rn("0xe1"),Rn("0x9a"))?i.set(r.getAttribute("vid"),{userId:t}):(i[Rn("0x2c")](r[Rn("0x9c")](Rn("0xd0")),{userId:t}),e(i,r,0,r.childCount),i[Rn("0x2c")](r.getAttribute("vid_end"),{userId:t}))}}(this[Rn("0x28")],n,r,r+e[Rn("0x18")])}[Rn("0x45")](e){const t=null===(e=this._cloneOperation(e,this._idsRoots))[Rn("0x6c")]?null:e._authorId||this.editor[Rn("0x4f")].get(Rn("0x95")).me.id,i=e[Rn("0xa0")][Rn("0xd1")],n=e.sourcePosition[Rn("0xd1")],r=i[Rn("0x9c")](Rn("0xe")),o=n[Rn("0x9c")]("vid_start");i._setAttribute(Rn("0xe"),n.getAttribute(Rn("0xe"))),n[Rn("0xd4")](Rn("0xe"),r),this[Rn("0x28")].set(o,{userId:t}),this._touched.set(r,{userId:t}),e._execute()}[Rn("0x47")](e){const t=null===(e=this._cloneOperation(e,this[Rn("0x44")]))._authorId?null:e[Rn("0x6c")]||this[Rn("0x7a")][Rn("0x4f")][Rn("0xd8")](Rn("0x95")).me.id,i=e[Rn("0x9b")],n=e[Rn("0xda")][Rn("0xd1")];e[Rn("0x5f")]();const r=n.getAttribute(Rn("0xe")),o=e.insertionPosition[Rn("0xe2")];if(i){const e=o[Rn("0x9c")](Rn("0xe")),i=n[Rn("0x9c")]("vid_end");n[Rn("0xd4")](Rn("0xe"),e),o[Rn("0xd4")](Rn("0xe"),i),this._touched[Rn("0x2c")](n.getAttribute(Rn("0xe")),{userId:t}),this[Rn("0x28")][Rn("0x2c")](o[Rn("0x9c")](Rn("0xd0")),{userId:t})}else{const e=this[Rn("0xef")]++,i=this[Rn("0xef")]++;n[Rn("0xd4")](Rn("0xe"),e),o[Rn("0xd4")](Rn("0xd0"),i),o._setAttribute(Rn("0xe"),r),this[Rn("0x28")][Rn("0x2c")](e,{userId:t}),this[Rn("0x28")].set(i,{userId:t})}}[Rn("0x100")](e){if(!e[Rn("0x61")])return;const t=(e=this[Rn("0x6f")](e,this[Rn("0x2f")]))[Rn("0x41")]?e[Rn("0x41")][Rn("0x4")]:null,i=e[Rn("0x23")]?e.newRange[Rn("0x4")]:null;t&&this[Rn("0x98")][Rn("0x82")](e.name),i&&this[Rn("0x98")][Rn("0x2c")](e[Rn("0xf")],e[Rn("0x23")][Rn("0x17")]());const n=null===e[Rn("0x6c")]?null:e._authorId||this[Rn("0x7a")][Rn("0x4f")][Rn("0xd8")]("Users").me.id,r=e[Rn("0xf")];if(!this._touchedMarkers[Rn("0xca")](r))return void this[Rn("0x58")][Rn("0x2c")](r,{range:e.oldRange,userId:n});const o=this[Rn("0x58")][Rn("0xd8")](r),s=o.range,a=e.newRange;null==s&&null==a||s&&a&&s[Rn("0x99")](a)?this._touchedMarkers.delete(e[Rn("0xf")]):o[Rn("0x29")]=n}[Rn("0x6d")](e,t){this._diffRoots[Rn("0xca")](e[Rn("0x1c")])?this[Rn("0x2f")][Rn("0xd8")](e.rootName)._isAttached=e.isAdd:(this[Rn("0x2f")][Rn("0x2c")](e[Rn("0x1c")],Mn(e.rootName,!0)),this._diffRootsAttributes.set(e[Rn("0x1c")],{}),t&&this[Rn("0x44")][Rn("0x2c")](e[Rn("0x1c")],Mn(e[Rn("0x1c")],!0)));const i=null===e[Rn("0x6c")]?null:e[Rn("0x6c")]||this[Rn("0x7a")][Rn("0x4f")].get("Users").me.id,n=this[Rn("0xdd")][Rn("0xd8")](e[Rn("0x1c")]);n&&n.userId===i?this[Rn("0xdd")][Rn("0x82")](e[Rn("0x1c")]):this._touchedRoots[Rn("0x2c")](e[Rn("0x1c")],{userId:i,isAttached:e[Rn("0x9e")]})}_handleRootAttributeOperation(e){const t=this._diffRootsAttributes[Rn("0xd8")](e[Rn("0x4")].rootName);null===e[Rn("0x97")]?delete t[e[Rn("0x74")]]:t[e[Rn("0x74")]]=e[Rn("0x97")]}}function An(e){const t=Mn(e[Rn("0x1c")],e[Rn("0xba")]());for(const i of e.getChildren()){const e=i[Rn("0x10")](!0);t[Rn("0xfa")](e)}return t}function Mn(e,t=!0){const i=new o.DocumentFragment;return i[Rn("0x1c")]=e,i[Rn("0x36")]=t,i[Rn("0xba")]=()=>i[Rn("0x36")],i}function En(e,t,i){const n=Rn("0xad")==e[Rn("0x1a")]?i[Rn("0x73")](e[Rn("0xaf")],Rn("0xc0")):i.createPositionBefore(e[Rn("0xaf")]);return i[Rn("0x3f")](t,n[Rn("0xee")],n[Rn("0xf5")])}function jn(e,t,i){const n=Rn("0x89")==e[Rn("0x1a")]?i[Rn("0x73")](e[Rn("0xaf")],0):i[Rn("0x56")](e[Rn("0xaf")]);return i[Rn("0x3f")](t,n[Rn("0xee")],n[Rn("0xf5")])}var Cn=i(273),Dn=i(278),Fn=i.n(Dn),Ln=i(656),Pn={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fn()(Ln.Z,Pn);Ln.Z.locals;var zn=i(769),Zn={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fn()(zn.Z,Zn);zn.Z.locals;const Un=["revisionName","trim","locale","focusTracker","focus","reset","_focusCycler","type","execute","setTemplate","cancel","_createRevisionNameInput","Cancel","ck-button-cancel","focusFirst","keystrokes","saveButtonView","extendTemplate","Name of the revision (optional)","form","forEach","value","ck-responsive-form","arrowup","submit","tab","arrowdown","fieldView","revisionNameInputValue","ck-button-save","label","listenTo","ck-revision-history-save-revision-form","render","revisionNameInputView","cancelButtonView","delegate","_createButton","Save","set","element","_focusables","add","input"];var Hn,qn;Hn=Un,qn=126,function(e){for(;--e;)Hn.push(Hn.shift())}(++qn);const Bn=function(e,t){return Un[e-=0]};class Wn extends Cn.View{constructor(i){super(i),this[Bn("0x9")]=new t.FocusTracker,this[Bn("0x15")]=new t.KeystrokeHandler,this.set(Bn("0x22"),""),this[Bn("0x28")]=this[Bn("0x11")](),this[Bn("0x16")]=this[Bn("0x2b")](en(i,Bn("0x0")),e.icons.check,Bn("0x23")),this[Bn("0x16")][Bn("0xd")]=Bn("0x1e"),this[Bn("0x29")]=this[Bn("0x2b")](en(i,Bn("0x12")),e.icons[Bn("0x10")],Bn("0x13"),Bn("0x10")),this[Bn("0x3")]=new Cn.ViewCollection,this[Bn("0xc")]=new Cn.FocusCycler({focusables:this[Bn("0x3")],focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:Bn("0x1f")}}),this[Bn("0xf")]({tag:Bn("0x19"),attributes:{class:["ck",Bn("0x26"),Bn("0x1c")],tabindex:"-1"},children:[this.revisionNameInputView,this[Bn("0x16")],this[Bn("0x29")]]}),(0,Cn.injectCssTransitionDisabler)(this)}[Bn("0x27")](){super[Bn("0x27")](),(0,Cn.submitHandler)({view:this}),[this.revisionNameInputView,this[Bn("0x16")],this[Bn("0x29")]][Bn("0x1a")]((e=>{this._focusables.add(e),this[Bn("0x9")][Bn("0x4")](e[Bn("0x2")])})),this[Bn("0x15")][Bn("0x25")](this.element);const e=e=>e.stopPropagation();this[Bn("0x15")].set("arrowright",e),this[Bn("0x15")][Bn("0x1")]("arrowleft",e),this.keystrokes[Bn("0x1")](Bn("0x1d"),e),this[Bn("0x15")].set(Bn("0x20"),e)}[Bn("0xa")](){this[Bn("0xc")][Bn("0x14")]()}get[Bn("0x6")](){return this[Bn("0x28")].fieldView[Bn("0x2")].value[Bn("0x7")]()}set[Bn("0x6")](e){this.revisionNameInputView[Bn("0x21")][Bn("0x2")][Bn("0x1b")]=e[Bn("0x7")]()}[Bn("0xb")](){this[Bn("0x28")][Bn("0x21")].element[Bn("0x1b")]=""}[Bn("0x11")](){const e=new Cn.LabeledFieldView(this[Bn("0x8")],Cn.createLabeledInputText),t=e[Bn("0x21")];return t[Bn("0x17")]({attributes:{maxlength:"220"}}),e[Bn("0x24")]=en(this[Bn("0x8")],Bn("0x18")),t.on(Bn("0x5"),(()=>{this.revisionNameInputValue=t[Bn("0x2")][Bn("0x1b")][Bn("0x7")]()})),e}[Bn("0x2b")](e,t,i,n){const r=new Cn.ButtonView(this[Bn("0x8")]);return r[Bn("0x1")]({label:e,icon:t,tooltip:!0}),r.extendTemplate({attributes:{class:i}}),n&&r[Bn("0x2a")](Bn("0xe")).to(this,n),r}}const Jn=["editor","render","isEnabled","isReady","view","focus","RevisionTracker","buttonView","RevisionHistoryUI","submit","add","componentFactory","execute","length","revisionName","bind","get","Revision history","pluginName","Open revision history","plugins","remove","saveRevision","revisionHistory","editing","showRevisionViewerCallback","isReadOnly","items","history","panelView","children","reset","set","cancel","requires","change:isOpen","saveButtonView"];var Gn,Yn;Gn=Jn,Yn=175,function(e){for(;--e;)Gn.push(Gn.shift())}(++Yn);const $n=function(e,t){return Jn[e-=0]};class Kn extends e.Plugin{static get[$n("0x1c")](){return $n("0x12")}static get[$n("0x7")](){return[In]}init(){const t=this[$n("0xa")],i=t[$n("0x1e")][$n("0x1a")]($n("0x10"));t.ui[$n("0x15")].add($n("0x21"),(n=>{const r=(0,Cn.createDropdown)(n),o=r[$n("0x2")][$n("0x3")],s=new Cn.ListView(n),a=new Cn.ListItemView(n),c=new Cn.ButtonView(n),u=new Cn.ListItemView(n),d=new Cn.ButtonView(n),l=new Wn(n);function x(){o.length&&o.remove(0),o[$n("0x14")](s)}function h(){r.isOpen=!1,t[$n("0x22")][$n("0xe")].focus()}return r[$n("0x19")]($n("0xc")).to(i,"isReady",i,$n("0xc"),t,$n("0x24"),((e,t,i)=>e&&t&&!i)),r[$n("0x11")][$n("0x5")]({icon:e.icons[$n("0x1")],label:en(n,$n("0x1b")),tooltip:!0}),c[$n("0x5")]({label:en(n,"Save current revision"),withText:!0}),c[$n("0x19")]($n("0xc")).to(i,$n("0xd"),i,$n("0xc"),t,$n("0x24"),((e,t,i)=>e&&t&&!i)),c.on($n("0x16"),(()=>(o[$n("0x17")]&&o[$n("0x1f")](0),l[$n("0x4")](),o[$n("0x14")](l),void l[$n("0xf")]()))),d[$n("0x5")]({label:en(n,$n("0x1d")),withText:!0}),d[$n("0x19")]($n("0xc")).to(i,$n("0xd"),t,$n("0x24"),((e,t)=>e&&!t)),d.on($n("0x16"),(()=>{t.config[$n("0x1a")]($n("0x21"))[$n("0x23")](),h()})),a[$n("0x3")].add(c),u[$n("0x3")][$n("0x14")](d),s[$n("0x0")].addMany([a,u]),r.on($n("0x8"),(()=>x())),l[$n("0x9")].bind($n("0xc")).to(i,$n("0xd"),i,"isEnabled",t,$n("0x24"),((e,t,i)=>e&&t&&!i)),l.on($n("0x13"),(()=>(t.plugins[$n("0x1a")](In)[$n("0x20")]({name:l[$n("0x18")]}),void h()))),l.on($n("0x6"),(()=>x())),l[$n("0xb")](),x(),r}))}}const Xn=["changeId","set","Added by","isSuggestion","ck-revision-change__label","add","element","data","type","author","ck-revision-change__","span","ck-annotation","Suggested by","focus","_model"];var Qn,er;Qn=Xn,er=118,function(e){for(;--e;)Qn.push(Qn.shift())}(++er);const tr=function(e,t){return Xn[e-=0]};class ir extends Cn.View{constructor(e,t){super(e),this[tr("0x9")]=t,this[tr("0xa")]=t.id;const i=this.bindTemplate,n=en(e,t[tr("0x1")][tr("0xd")]?tr("0x7"):tr("0xf")==t[tr("0x2")]?tr("0xc"):"Removed by");this[tr("0xb")]("type",t[tr("0x2")]),this.setTemplate({tag:"div",attributes:{class:[tr("0x6"),"ck-revision-change",i.to(tr("0x2"),(e=>tr("0x4")+e))],tabindex:-1},children:[{tag:"span",children:[{tag:tr("0x5"),attributes:{class:[tr("0xe")]},children:[{text:n}]},{text:" "+t[tr("0x3")].name}]}]})}[tr("0x8")](){this[tr("0x0")][tr("0x8")]()}}var nr,rr,or=["rootName","author","createdAt","data","type","set"];nr=or,rr=415,function(e){for(;--e;)nr.push(nr.shift())}(++rr);var sr=function(e,t){return or[e-=0]};class ar extends((0,t.ObservableMixin)()){constructor(e){super(),this.id=e.id||(0,t.uid)(),this.author=e[sr("0x0")],this[sr("0x3")]=e[sr("0x3")],this[sr("0x2")]=e[sr("0x2")]||{},this[sr("0x5")]=e[sr("0x5")],this[sr("0x4")](sr("0x1"),e[sr("0x1")])}toJSON(){return{id:this.id,authorId:this[sr("0x0")].id,type:this[sr("0x3")],data:this.data,createdAt:this[sr("0x1")]}}}const cr=["_setChanges","add","oldRevisionId","newRevisionId","changes"];var ur,dr;ur=cr,dr=346,function(e){for(;--e;)ur.push(ur.shift())}(++dr);const lr=function(e,t){return cr[e-=0]};class xr{constructor(e,i){this[lr("0x2")]=e,this[lr("0x1")]=i,this[lr("0x3")]=new t.Collection}[lr("0x4")](e){for(const t of e)this[lr("0x3")][lr("0x0")](t)}}var hr=i(752),fr={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fn()(hr.Z,fr);hr.Z.locals;const vr=["attribute:vid","remove","ck-suggestion-marker-merge","end","getItems","top","diff","deletion","markerName","createUIElement","_cleanMarkers","previousPosition","loadRevisionData","code","createPositionBefore","getDomRoot","bottom","hasClass","keys","first","affectsData","_sortAndFilterDiffChanges","hasAttribute","selection","unbindElementFromMarkerName","low","change:isReady","removeMarker","enqueueChange","refresh","newRevisionId","model","marked","nodeAfter","addMarker:revision","find","ck-suggestion-marker-","isAtStart","maxOffset","slice","addMarker:revision-suggestion:insertion","revision-suggestion:","isEnabled","restoreRevision","enableReadOnlyMode","detachRoot","clear","view","isRemoveSuggestion","_removeRevisionMarkers","change:activeView","_changeIdToChange","parent","document","wrap","length","restoreRevisionCallback","_makeModelFromTape","repository","ck-suggestion-marker--active","addHighlight","downcastDispatcher","markers","getIndex","merge","oldRevisionId","backward","getCustomProperty","offsetSize","_setConversion","highest","POSITIVE_INFINITY","destroy","getRevision","removeAttribute","side","_activeViewTarget","_changeView","_processTape","forEach","listenTo","attributesBefore","_removeMissingPairs","index","for","_threeWayMerge","comment","createPositionFromPath","data-revision-","pairId","collaboration.channelId","_balloon","isEqual","getClientRects","_joinTapes","done","processor","isAddSuggestion","test","execute","_getViewForChange","nextSibling","insert","bind","startIndex","reconvertMarker","_findChangeIdFromDomTarget","_data","diffData","upcast","isCollapsed","revision-end","includes","ck-editor__editable__overlay","element","unshift","getWalker","removeMarker:revision-suggestion","set","data","domEvent","_cleanUp","activeView","_fixObsoleteTags","isReady","forward","rootName","dataDowncast","split","level","setAttribute","high","-new","_getViewObj","_setDistance","_markSuggestions","distance","_revisions","change:numberOfChanges","markerToHighlight","insertion","createRangeIn","suggestion","vid","get","values","writer","_makeTape","indexOf","map","isObject","push","elementStart","editor","item","_removeUnsupportedChanges","data-change-id","error","getRoot","abs","removeClass","toViewPosition","markerToData","_getChangeFromId","isLimit","delete","domConverter","createRevision","_getDiff","modelRange","bindElementToMarker","addRoot","revision","isBlock","dataToMarker","concat","activeChange","elementToAttribute","revisionHistoryAttachChange","next","toData","mouseover","attributes","default","toViewElement","resolve","deletions","isSuggestion","ck-suggestion-marker-split","endIndex","revisionHistory","userId","ck-suggestion-preview-marker","vid_end","splice","vid_start","authors","numberOfChanges","consumable","isAdded","roots","conversion","isRemoved","mapper","schema","init","isBefore","change","filter","viewItem","element:pre","getRootNames","name","startsWith","ck-revision-history-root-add","_appendChild","updatePosition","addClass","text","children","plugins","isAfter","ck-revision-history-root-remove","_step","ck-revision-history-root--active","elementEnd","nextPosition","_update","all","change:activeChange","addRevisionData","changes","attachChange","then","RevisionsRepository","target","attributesAfter","start","type","sort","_markMismatchedRemovedTags","string","_initInteractions","markerRange","getAttribute","getAttributes","_refreshStartEndIndex","isAtEnd","editingDowncast","from","editing","findIndex","_getRevisionsRange","markersEnd","markerNameToElements","left","change:isEnabled","isContent","addMarker:revision-suggestion:deletion","createAttributeElement","locale","revision:","createRange","softBreak","isAttached","toViewRange","isInline","isOnRoot","has","add","suggestion:","removeMarker:revision","pluginName","RevisionViewer","consume","ck-suggestion-preview-marker-","compare","WidgetToolbarRepository","span","flat","right","isIncorrect","revisionHistoryLabel","_makeModelFromViewString","insertions","adapter","range","_markInsertions","_markMarkers","revision-viewer","useFillerType","showPreviousChange","config","changeId","revision-suggestion","markersStart"];var mr,yr;mr=vr,yr=135,function(e){for(;--e;)mr.push(mr.shift())}(++yr);const gr=function(e,t){return vr[e-=0]},pr={c:o.ViewContainerElement,a:o.ViewAttributeElement,e:o.ViewEmptyElement,r:o.ViewRawElement,u:o.ViewUIElement};class br extends e.Plugin{static get[gr("0x89")](){return gr("0x8a")}static get requires(){return[r.Users,Cn.ContextualBalloon,Qi]}constructor(e){super(e),this[gr("0xdb")]=this[gr("0x12")][gr("0x55")][gr("0x9")](gr("0x63")),this.set(gr("0x29"),null),this[gr("0x117")]("activeView",null),this[gr("0xed")]=null,this[gr("0x117")](gr("0xa7"),null),this.set(gr("0x11d"),!1),this.set(gr("0xcb"),!0),this.on(gr("0x79"),((e,t,i)=>{this[gr("0x29")]=null,this[gr("0x11b")]=null,this.editor[gr("0x73")].view[gr("0x48")]((e=>{for(const t of this.editor[gr("0x73")][gr("0xd0")][gr("0xd6")][gr("0x41")])i?e[gr("0x19")](gr("0x112"),t):e[gr("0x52")](gr("0x112"),t)}))})),this[gr("0x108")]("isNavigationMode").to(this,gr("0x29"),(e=>null!==e)),this[gr("0x108")]("currentChangeNumber").to(this,"isReady",this,gr("0xa7"),this,gr("0x29"),((e,t,i)=>e&&i?t.changes[gr("0xe0")](i):0)),this[gr("0x108")](gr("0x3e")).to(this,gr("0x11d"),this,"diff",((e,t)=>e?t.changes[gr("0xd8")]:0)),this[gr("0xee")]=null,this[gr("0xd4")]=new Map,this[gr("0x96")]=null,this[gr("0xfc")]=this.editor[gr("0x55")][gr("0x9")](Cn.ContextualBalloon)}[gr("0x46")](){const e=this[gr("0x12")],t=new wr(e,{direction:gr("0xe3")}),i=new wr(e,{direction:"forward"});e.commands[gr("0x86")](gr("0x9c"),t),e.commands.add("showNextChange",i),e.commands[gr("0x86")](gr("0xcc"),new _r(e)),this.on(gr("0x3"),(()=>{t.refresh(),i[gr("0xbe")]()})),this[gr("0xe6")](),this[gr("0x6b")](),e[gr("0xcd")]("revision-viewer"),e.plugins[gr("0x85")](gr("0x8e"))&&e.plugins[gr("0x9")](gr("0x8e")).forceDisabled(gr("0x9a"))}async getRevisionData(e){await this[gr("0xad")](e);const t={};for(const i in e[gr("0x10d")]){if(e[gr("0x10d")][i][gr("0x61")]&&!e.diffData[i].attachChange[gr("0x81")])continue;const n=this[gr("0xd2")](JSON.parse(e[gr("0x10d")][i].insertions)),r=this[gr("0x12")].editing[gr("0xd0")][gr("0xd6")],s=new o.ViewDocumentFragment(r,n[gr("0xe")]((e=>this[gr("0x126")](e))));this[gr("0x12")][gr("0x118")][gr("0x101")][gr("0x9b")](gr("0xc1")),t[i]=this[gr("0x12")][gr("0x118")][gr("0x101")][gr("0x2d")](s),this[gr("0x12")].data[gr("0x101")][gr("0x9b")](gr("0x30"))}return t}async getRevisionRootsAttributes(e){await this[gr("0xad")](e);const t={};for(const i in e[gr("0x10d")])e[gr("0x10d")][i].attachChange&&!e[gr("0x10d")][i][gr("0x61")][gr("0x81")]||(t[i]=e[gr("0x10d")][i][gr("0x65")]||{});return t}_removeRevisionMarkers(e){return(e=e[gr("0x49")]((e=>!e[gr("0x4d")]||"revision-start"!==e.name&&gr("0x110")!==e[gr("0x4d")])))[gr("0xf0")]((e=>{gr("0x6a")!=typeof e&&(e[gr("0x54")]=this[gr("0xd2")](e.children),e[gr("0x2f")]=e[gr("0x2f")].filter((e=>!e[0].startsWith(gr("0xf9")))))})),e}async[gr("0x8d")](e,t,i=!1){if(!this[gr("0xcb")])return;const n=this[gr("0xa7")],r=this[gr("0xdb")],o=gr("0x6a")==typeof e?r[gr("0xea")](e):e,s="string"==typeof t?r[gr("0xea")](t):t,a=o.id,c=s?s.id:null;if(!i&&this.diff&&this[gr("0xa7")][gr("0xbf")]===a&&this[gr("0xa7")][gr("0xe2")]===c)return Promise[gr("0x32")]();this[gr("0x11d")]=!1,this[gr("0x11b")]=null,this[gr("0x29")]=null,this[gr("0xa7")]=new xr(a,c);const u=this[gr("0x75")](o,s,!0)[gr("0xe")]((e=>this[gr("0xad")](e)));return u[gr("0x10")](new Promise((e=>{setTimeout(e,20)}))),Promise[gr("0x5d")](u)[gr("0x62")]((()=>{if(!this.isEnabled)return;this[gr("0x11a")]();const e=this[gr("0x21")](a,c);for(const t of e[gr("0x60")])this._changeIdToChange[gr("0x117")](t.id,t);this[gr("0x12")][gr("0xc0")][gr("0xbd")]({isUndoable:!1},(t=>{for(const e of this[gr("0x12")][gr("0xc0")][gr("0xd6")][gr("0x4c")]())t[gr("0xce")](e);for(const i of Object[gr("0xb3")](e[gr("0xc0")])){const n=t[gr("0x24")](i);for(const r of Object[gr("0xb3")](e[gr("0x2f")][i]))t.setAttribute(r,e[gr("0x2f")][i][r],n);t[gr("0x107")](e[gr("0xc0")][i],n,0)}})),this[gr("0xa7")]._setChanges(this[gr("0xb6")](e[gr("0x60")])),this[gr("0x11d")]=!0})).catch((e=>{console[gr("0x16")](e),this[gr("0x11a")](),n&&(this[gr("0xa7")]=n),this[gr("0x11d")]=!0}))}[gr("0x5f")](e,t){const i=this[gr("0xdb")][gr("0x20")](e);return i.on(gr("0x5c"),((e,n,r)=>t(n,r,i))),this[gr("0xdb")].addRevision(i),i}[gr("0xad")](e){if(!e||e.diffData)return Promise[gr("0x32")]();{const t=this[gr("0x12")][gr("0x9d")].get(gr("0xfb"));return this[gr("0x96")][gr("0xea")]({channelId:t,revisionId:e.id}).then((t=>{e[gr("0x5c")]({diffData:t[gr("0x10d")]},!0)}))}}[gr("0x11a")](){this[gr("0x29")]=null,this[gr("0xab")](),this[gr("0xee")]&&this[gr("0xee")][gr("0xe9")](),this._changeView=null,this[gr("0xd4")][gr("0xcf")](),this[gr("0x12")][gr("0xc0")].enqueueChange({isUndoable:!1},(e=>{for(const t of this[gr("0x12")].model.document.getRootNames())e.detachRoot(t)}))}[gr("0xb6")](e){const t=[],i=new Map;for(const e of this[gr("0x12")][gr("0xc0")][gr("0xd6")].getRootNames()){const n=this[gr("0x12")][gr("0x73")].view.getDomRoot(e);if(!n)continue;const r=n.getClientRects().item(0);r&&(t[gr("0x10")](e),i[gr("0x117")](e,r))}return t.sort(((e,t)=>{const n=i[gr("0x9")](e),r=i[gr("0x9")](t);return n.y-r.y||n.x-r.x})),(e=e[gr("0x49")]((e=>t.includes(e[gr("0x11f")]))))[gr("0x68")](((e,i)=>t[gr("0xd")](e[gr("0x11f")])-t.indexOf(i[gr("0x11f")]))),e}_makeTape(e){const t=Array[gr("0x72")](e.markers)[gr("0x49")]((([e,t])=>e.startsWith(gr("0x7e"))&&!t[gr("0x10f")])),i=Array[gr("0x72")](this[gr("0x12")].model[gr("0x6")](e)[gr("0x115")]({singleCharacters:!0}));if(0!=t[gr("0xd8")])for(const e of i){const[i,n]=t[0],[,r,o]=i[gr("0x121")](":");if(n[gr("0xa4")][gr("0xfd")](e[gr("0x5b")])&&t.shift(),(e[gr("0xac")][gr("0xfd")](n[gr("0x66")])||e[gr("0xac")][gr("0x56")](n[gr("0x66")]))&&(gr("0x5")==r?e.isAdded={userId:o}:gr("0xa8")==r&&(e[gr("0x43")]={userId:o})),0==t[gr("0xd8")])break}return i}[gr("0x6f")](e){const t=new Map;for(let i=0;i<e[gr("0xd8")];i++)gr("0x53")===e[i].type?(e[i].item.startIndex=i,e[i][gr("0x13")].endIndex=i):(gr("0x11")===e[i].type?e[i][gr("0x13")][gr("0x109")]=i:"elementEnd"===e[i][gr("0x67")]&&(e[i].item[gr("0x36")]=i),t[gr("0x117")](e[i].id,i));for(const i of t[gr("0xa")]())gr("0x11")===e[i][gr("0x67")]?e[i].item[gr("0x36")]=t[gr("0x9")](e[i].pairId):gr("0x5a")===e[i].type&&(e[i][gr("0x13")][gr("0x109")]=t[gr("0x9")](e[i][gr("0xfa")]))}_processTape(e){for(let t=0;t<e.length;t++){if(gr("0x11")===e[t][gr("0x67")])e[t].item.startIndex=t;else if(gr("0x5a")===e[t].type){e[t].item[gr("0x36")]=t;const i=e[t][gr("0x13")][gr("0x109")];e[i][gr("0xfa")]=e[t].id,e[t].pairId=e[i].id}else e[t].item[gr("0x109")]=t,e[t][gr("0x13")][gr("0x36")]=t,e[t][gr("0xfa")]=null;e[t][gr("0xa0")]||(e[t][gr("0xa0")]=[],e[t].markersEnd=[])}}[gr("0x98")](e,t){const i=e[gr("0x49")]((e=>!e[gr("0x40")]));for(let e=0;e<t[gr("0xd8")];e++)t[e].isAdded&&(i[e][gr("0x40")]=t[e][gr("0x40")])}_makeModelFromViewString(e){const t=JSON.parse(e),i=this[gr("0x12")][gr("0x73")][gr("0xd0")][gr("0xd6")],n=new o.ViewDocumentFragment(i,t.map((e=>this[gr("0x126")](e))));return this[gr("0x12")][gr("0x118")].toModel(n)}[gr("0x126")](e){const t=this[gr("0x12")][gr("0x73")].view[gr("0xd6")];if("string"==typeof e)return new o.ViewText(t,e);{const i=e[gr("0x54")][gr("0xe")]((e=>this[gr("0x126")](e)));return new(pr[e[gr("0x67")]]||o.ViewElement)(t,e[gr("0x4d")],e[gr("0x2f")],i)}}[gr("0x21")](e,t=null){const i=this[gr("0xdb")][gr("0xea")](e),n=t?this.repository[gr("0xea")](t):null,r=this[gr("0x75")](i,n),o=r[r[gr("0xd8")]-1],s=new Map,a={model:{},attributes:{},changes:[]},c=new Set,u=new Map;for(let e=r[gr("0xd8")]-1;e>=0;e--){const t=r[e];for(const e of Object[gr("0xb3")](t[gr("0x10d")]))if(t.diffData[e].attachChange){const i=t[gr("0x10d")][e][gr("0x61")];i[gr("0x81")]?(c.add(e),u[gr("0x85")](e)&&u.get(e)[gr("0x38")]==i.userId?u[gr("0x1e")](e):u.set(e,i)):u[gr("0x85")](e)?(c[gr("0x1e")](e),u[gr("0x1e")](e)):(c.add(e),u.set(e,i))}else c[gr("0x86")](e)}for(const e of c){const t=u[gr("0x85")](e)&&!u[gr("0x9")](e)[gr("0x81")];let i=t?r.length-1:0;const n=t?-1:1;for(;r[i];){const o=r[i];if(o[gr("0x10d")][e]){const i=t?o[gr("0x10d")][e][gr("0xf2")]:o[gr("0x10d")][e][gr("0x65")];a[gr("0x2f")][e]=i?pi(i):{};break}i+=n}}for(const e of r){e.model={};for(const t of e[gr("0x3d")])s[gr("0x117")](t.id,t);for(const t of c){const i=e.diffData[t]?e.diffData[t][gr("0x95")]:"[]",n=e[gr("0x10d")][t]?e.diffData[t].deletions:"[]";e.model[t]={insertions:this[gr("0x94")](i),deletions:this[gr("0x94")](n)}}}for(const e of c){let t=null,n=0;const c=new Map(Array[gr("0x72")](i[gr("0xc0")][e].insertions[gr("0xdf")])[gr("0x49")]((([e])=>!e[gr("0x4e")]("revision:"))));let d=0;for(const o of r){const r=this[gr("0xc")](o.model[e].insertions);o==i?(t=r,n=t.length,t[gr("0xf0")]((e=>{e.id=d++})),this._processTape(t)):this[gr("0x98")](t,r);const s=t[gr("0x49")]((e=>!e.isAdded))[gr("0xe")]((e=>e.id));let a=0;const u=this[gr("0xc")](o[gr("0xc0")][e].deletions);u.forEach((e=>{e[gr("0x43")]?e.id=n++:e.id=s[a++]})),this[gr("0xef")](u),this[gr("0x127")](t,gr("0x40")),this._setDistance(u,gr("0x43")),o==i&&this[gr("0x99")](t,c),t=this._joinTapes(t,u),this._refreshStartEndIndex(t),this[gr("0x127")](t,gr("0x43"))}t=t[gr("0x49")]((e=>!(e[gr("0x40")]&&e.isRemoved)));const l=new Map(o[gr("0xc0")][e][gr("0x33")][gr("0xdf")]),x=new Set(c.keys());for(const e of l[gr("0xb3")]())x[gr("0x1e")](e);this[gr("0x0")](t,x),this[gr("0x11c")](t),t=this._removeMissingPairs(t),t=this[gr("0x69")](t),t=this[gr("0x14")](t);const{root:h,changes:f}=this[gr("0xda")](t,s,e);a[gr("0xc0")][e]=h;const v=u.get(e);if(v){const t=s[gr("0x9")](v[gr("0x38")]),i=new ar({author:t,type:v[gr("0x81")]?gr("0x86"):gr("0xa2"),data:{isOnRoot:!0},createdAt:new Date,rootName:e});f[gr("0x114")](i),a[gr("0x2f")][e].revisionHistoryAttachChange=i.id}a[gr("0x60")]=a[gr("0x60")][gr("0x28")](f)}return a}[gr("0x99")](e,t){for(let i=0;i<e.length;i++)for(const[n,r]of t)r[gr("0x66")][gr("0xfd")](e[i][gr("0xac")])&&e[i][gr("0xa0")][gr("0x10")](n),r.end[gr("0xfd")](e[i][gr("0x5b")])&&e[i].markersEnd[gr("0x10")](n)}[gr("0xff")](e,t){let i=[],n=0,r=0;for(;n<e[gr("0xd8")]||r<t[gr("0xd8")];){const o=e[n]||{},s=t[r]||{};if(o.id==s.id)n++,r++,i[gr("0x10")](o);else if(s[gr("0x43")]&&o[gr("0x40")]){const{commonTape:o,iEnd:s,jEnd:a}=this[gr("0xf6")](e,n,t,r);i=i[gr("0x28")](o),n=s,r=a}else s[gr("0x43")]?(r++,i[gr("0x10")](s)):(n++,i[gr("0x10")](o))}return i}[gr("0x0")](e,t){const i=[];for(let o=0;o<e[gr("0xd8")];o++){for(let r=0;r<e[o].markersStart[gr("0xd8")];r++){const s=e[o][gr("0xa0")][r];if(!t.has(s))continue;const{group:a,type:c,authorId:u}=n(s);"revision-suggestion"!=a||"insertion"!=c&&gr("0xa8")!=c||(i[gr("0x114")]({type:c,name:s,userId:u}),e[o][gr("0xa0")].splice(r,1),r--)}r(e[o]);for(let r=0;r<e[o][gr("0x76")][gr("0xd8")];r++){const s=e[o][gr("0x76")][r];if(!t.has(s))continue;const{group:a,type:c}=n(s);if(gr("0x9f")!=a||gr("0x5")!=c&&gr("0xa8")!=c)continue;e[o][gr("0x76")][gr("0x3b")](r,1),r--;const u=i[gr("0x74")]((e=>e[gr("0x4d")]==s));u>-1&&i[gr("0x3b")](u,1)}}function n(e){const t=e[gr("0x121")](":");return{group:t[0],type:t[1],subType:t[gr("0xd8")]>=5?t[2]:null,id:t[gr("0xd8")]<5?t[2]:t[3],authorId:t.length<5?t[3]:t[4],markerCount:6==t[gr("0xd8")]?t[5]:null}}function r(e){for(let t=0;t<i[gr("0xd8")];t++){if(e[gr("0x40")]&&"insertion"==i[t].type)return e.isAddSuggestion=i[t],void delete e[gr("0x40")];if(!e[gr("0x40")]&&!e[gr("0x43")]&&gr("0xa8")==i[t][gr("0x67")])return void(e[gr("0xd1")]=i[t])}}}[gr("0x127")](e,t){let i=0,n=!1;const r=new Map;for(const o of e)o[t]?n&&(i++,n=!1):(i++,n=!0),r.set(o.id,i);for(let i=0;i<e[gr("0xd8")];i++){if(gr("0x43")==t&&e[i][gr("0x40")]||gr("0x40")==t&&e[i].isRemoved)continue;if(gr("0x53")==e[i][gr("0x67")]){e[i][gr("0x1")]=0;continue}const n=r[gr("0x9")](e[i][gr("0xfa")]),o=r[gr("0x9")](e[i].id);e[i][gr("0x1")]=n-o}}[gr("0x75")](e,t,i=!1){const n=[];let r=this[gr("0xdb")].getIndex(e),o=this[gr("0xdb")][gr("0xe0")](t);for(-1==o&&(o=this.repository[gr("0x2")].length,i=!1);r<o;)n[gr("0x10")](this[gr("0xdb")].getRevision(r)),r++;return i&&n[gr("0x10")](this.repository[gr("0xea")](r)),n}_threeWayMerge(e,t,i,n){const r=this[gr("0x12")][gr("0xc0")][gr("0x45")];let o=t;for(;e[o]&&e[o][gr("0x40")];)o++;let s=n;for(;i[s]&&i[s][gr("0x43")];)s++;c(e,t,o),c(i,n,s);const a=i[gr("0xc8")](n,s)[gr("0x28")](e.slice(t,o));return a[gr("0x68")](((e,t)=>e.side!=t[gr("0xec")]?e[gr("0xec")]-t.side:e.level!=t[gr("0x122")]?e.level-t[gr("0x122")]:e[gr("0x1")]!=t[gr("0x1")]?t.distance-e[gr("0x1")]:!!e[gr("0x40")]!=!!t[gr("0x40")]?-1==e[gr("0xec")]||0==e[gr("0xec")]?e[gr("0x40")]?-1:1:e[gr("0x40")]?1:-1:e[gr("0xf4")]-t[gr("0xf4")])),{commonTape:a,iEnd:o,jEnd:s};function c(e,t,i){let n=-1,o=Number[gr("0xe8")],s=!0;for(let a=t;a<i;a++)if(r[gr("0x83")](e[a][gr("0x13")])||(s=!1),e[a].item[gr("0x109")]<t&&(n=a),e[a][gr("0x13")][gr("0x36")]>=i){o=a;break}s&&(n=i-1);for(let r=t;r<i;r++)e[r][gr("0xec")]=r<=n?-1:r<o?0:1,e[r][gr("0xf4")]=r;let a=0;for(let i=t;i<=n;i++)0==e[i].distance?e[i][gr("0x122")]=a:(a++,e[i][gr("0x122")]=a,a++);for(let n=t;n<i;n++)0==e[n].side&&(e[n][gr("0x122")]=a);a=0;for(let t=i-1;t>=o;t--)0==e[t].distance?e[t].level=a:(a--,e[t][gr("0x122")]=a,a--)}}[gr("0x11c")](e){const t=new Map,i=this[gr("0x12")][gr("0xc0")].schema;for(let n=1;n<e[gr("0xd8")];n++){let r,o,s;const a=e[n],c=e[n-1];if(gr("0x53")==a.type)continue;if(a[gr("0x67")]!=c[gr("0x67")])continue;if(!i[gr("0x26")](c[gr("0x13")])||i[gr("0x1d")](c[gr("0x13")]))continue;if(!i[gr("0x26")](a.item)||i[gr("0x1d")](a[gr("0x13")]))continue;if((e[n][gr("0x40")]||e[n].isAddSuggestion)&&e[n-1][gr("0x43")])r=e[n],o=e[n-1],s=n-1;else{if(!e[n][gr("0x43")]||!e[n-1].isAdded&&!e[n-1][gr("0x102")])continue;r=e[n-1],o=e[n],s=n}const u=r[gr("0x122")]==o[gr("0x122")],d=Math[gr("0x18")](r[gr("0x122")])<Math[gr("0x18")](o[gr("0x122")])&&0==o[gr("0x1")];(u||d)&&(t.set(o.id,r.id),e[gr("0x3b")](s,1),n--,r[gr("0x40")]=!1)}for(let i=0;i<e[gr("0xd8")];i++)t[gr("0x85")](e[i][gr("0xfa")])&&(e[i][gr("0xfa")]=t[gr("0x9")](e[i][gr("0xfa")]))}[gr("0xf3")](e){const t=new Set(e.map((e=>e.id)));for(let i=0;i<e[gr("0xd8")];i++)t[gr("0x85")](e[i][gr("0xfa")])||0==e[i][gr("0x1")]||(e[i][gr("0x92")]=!0);return e[gr("0x49")]((e=>!e[gr("0x92")]))}[gr("0x69")](e){const t=new Set;for(let i=0;i<e[gr("0xd8")];i++){if(t[gr("0x85")](e[i].id)&&e[i][gr("0x43")]&&(e[i][gr("0x92")]=!0),e[i][gr("0x92")])continue;if(0==e[i][gr("0x1")])continue;if(gr("0x11")!=e[i][gr("0x67")])continue;if(null==e[i][gr("0xfa")])continue;let n=i+1,r=0;for(;e[n].id!=e[i][gr("0xfa")];)gr("0x11")==e[n].type?r++:gr("0x5a")==e[n][gr("0x67")]&&r--,n++;if(0!=r)if(e[i][gr("0x43")])e[i][gr("0x92")]=!0;else for(;n!=i;)e[n][gr("0x43")]&&0!=e[n][gr("0x1")]&&(e[n][gr("0x92")]=!0,t[gr("0x86")](e[n][gr("0xfa")])),n--}return e[gr("0x49")]((e=>!e[gr("0x92")]))}[gr("0x14")](e){const t=this[gr("0x12")].model.schema;for(let i=0;i<e[gr("0xd8")];i++){if(!(e[i][gr("0x40")]||e[i][gr("0x102")]||e[i][gr("0x43")]||e[i][gr("0xd1")]))continue;if(0==e[i][gr("0x1")])continue;const n=e[i].item;t[gr("0x26")](n)||t[gr("0x1d")](n)||(e[i].isAdded&&delete e[i].isAdded,e[i][gr("0x102")]&&delete e[i][gr("0x102")],e[i][gr("0xd1")]&&delete e[i][gr("0xd1")],e[i][gr("0x43")]&&(e[i][gr("0x92")]=!0))}return e[gr("0x49")]((e=>!e[gr("0x92")]))}[gr("0xda")](e,t,i){const n=new o.DocumentFragment,r=[],s=new Map,a=this.editor.model,c=a[gr("0x45")],u=[n],d={},l={isAdded:[],isRemoved:[],isAddSuggestion:[],isRemoveSuggestion:[]};let x=null;const h=[0];for(let t=0;t<e[gr("0xd8")];t++){let i,r;if(gr("0x11")===e[t][gr("0x67")]){i=a[gr("0xf8")](n,h);const s=new o.Element(e[t][gr("0x13")][gr("0x4d")],e[t][gr("0x13")][gr("0x6e")]());u[0][gr("0x50")](s),h.push(0),u[gr("0x114")](s),r=a[gr("0xf8")](n,h),x=null}else if(gr("0x5a")===e[t][gr("0x67")])u.shift(),i=a[gr("0xf8")](n,h),h.pop(),h[h[gr("0xd8")]-1]++,r=a.createPositionFromPath(n,h),x=null;else{if(i=a[gr("0xf8")](n,h),x&&m(x,e[t][gr("0x13")]))x[gr("0x10c")]+=e[t][gr("0x13")][gr("0x118")];else{const i=new o.Text(e[t][gr("0x13")].data,e[t][gr("0x13")][gr("0x6e")]());u[0][gr("0x50")](i),x=i}h[h.length-1]+=e[t][gr("0x13")][gr("0xe5")],r=a.createPositionFromPath(n,h)}for(const n of e[t][gr("0xa0")])s.set(n,{start:i,end:null});f(gr("0xd1"),t,i,r),f("isAddSuggestion",t,i,r),f(gr("0x43"),t,i,r),f("isAdded",t,i,r);for(const i of e[t].markersEnd)s.get(i).end=r}for(const[e,t]of s){const i=this[gr("0x12")][gr("0xc0")][gr("0x7f")](t[gr("0x66")],t[gr("0xa4")]);n[gr("0xdf")][gr("0x117")](e,i)}return r[gr("0x68")](((e,t)=>{const i=n[gr("0xdf")][gr("0x9")]("revision:"+e.id),r=n[gr("0xdf")][gr("0x9")]("revision:"+t.id);return i.start.isBefore(r.start)?-1:i[gr("0x66")][gr("0x56")](r[gr("0x66")])?1:i[gr("0xa4")][gr("0x47")](r[gr("0xa4")])?-1:i[gr("0xa4")][gr("0x56")](r[gr("0xa4")])?1:"add"===e.type?-1:1})),{root:n,changes:r};function f(t,i,n,r){const o=!!e[i][t],s=o?e[i][t][gr("0x38")]:null,a=i===e[gr("0xd8")]-1,u=l[t][0],x=c[gr("0xf")](e[i][gr("0x13")]);!d[t]&&o?d[t]={start:n,tapeItem:e[i],userId:s,type:t}:d[t]&&!o?(d[t][gr("0xa4")]=n,v(d[t]),d[t]=null):d[t]&&o&&d[t][gr("0x38")]!==s&&(d[t][gr("0xa4")]=n,u&&u[gr("0x38")]===d[t][gr("0x38")]||v(d[t]),d[t]={start:n,tapeItem:e[i],userId:s,type:t}),d[t]&&x&&("elementStart"!==e[i][gr("0x67")]||u&&u[gr("0x38")]===s||l[t][gr("0x114")]({userId:s,object:e[i][gr("0x13")],change:d[t]}),"elementEnd"===e[i][gr("0x67")]&&u&&u.object===e[i].item&&(l[t].shift(),d[t]=u[gr("0x48")])),d[t]&&a&&(d[t].end=r,v(d[t]),d[t]=null)}function v({start:e,end:o,tapeItem:s,userId:c,type:u}){const d=s[gr("0x13")],l=a[gr("0x45")].isBlock(d)&&!a[gr("0x45")][gr("0x1d")](d),x=e[gr("0xc2")]==o[gr("0xd5")]&&o[gr("0xc6")];if(l&&x)return;const h=a[gr("0x7f")](e,o),f=t[gr("0x9")](c),v=new ar({author:f,type:gr("0x40")==u||gr("0x102")==u?"add":gr("0xa2"),data:{isSuggestion:gr("0x102")==u||gr("0xd1")==u},createdAt:new Date,rootName:i});r[gr("0x10")](v),n[gr("0xdf")].set(gr("0x7e")+v.id,h)}function m(e,t){const i=e[gr("0x6e")](),n=t[gr("0x6e")]();for(const e of i){if(e[1]!==t[gr("0x6d")](e[0]))return!1;n.next()}return n[gr("0x2c")]()[gr("0x100")]}}[gr("0xe6")](){this[gr("0x12")].conversion[gr("0xf5")]("upcast")[gr("0x27")]({view:"revision"}),this.editor.conversion[gr("0xf5")](gr("0x71"))[gr("0x4")]({model:gr("0x25"),view:e=>{const t=e[gr("0xa9")][gr("0x121")](":")[1],i=this[gr("0x1c")](t);if(!i)return null;const n=gr("0x86")==i[gr("0x67")]?gr("0x5"):gr("0xa8"),r=["ck-suggestion-marker",gr("0xc5")+n];return i[gr("0x118")][gr("0x34")]&&r[gr("0x10")](gr("0xc5")+n+gr("0x125")),this[gr("0x29")]==i&&r[gr("0x10")](gr("0xdc")),{classes:r,attributes:{"data-change-id":t}}}}),this.editor[gr("0x42")][gr("0xf5")]("upcast").add((e=>{e.on(gr("0x4b"),((e,t,i)=>{const n=t.viewItem.getChild(0);if(!n||!n.is("element",gr("0xae")))return;if(!i.consumable[gr("0x8b")](n,{attributes:["vid_start","vid_end"]}))return;const r=t[gr("0x22")].start[gr("0xc2")];i[gr("0xb")][gr("0x123")](gr("0x3c"),n[gr("0x6d")](gr("0x3c")),r),i.writer[gr("0x123")](gr("0x3a"),n[gr("0x6d")](gr("0x3a")),r)}),{priority:"low"})})),this.editor[gr("0x42")][gr("0xf5")](gr("0x10e"))[gr("0x86")]((e=>{e.on(gr("0x113"),((e,t,i)=>{if(!i[gr("0x3f")].consume(t.viewItem,{attributes:[gr("0x3c"),gr("0x3a")]}))return;if(t[gr("0x22")].isCollapsed)return;const n=t[gr("0x22")][gr("0x66")].nodeAfter;n[gr("0xb7")]("vid_start")||n.hasAttribute(gr("0x8"))||(i[gr("0xb")][gr("0x123")](gr("0x3c"),t[gr("0x4a")][gr("0x6d")](gr("0x3c")),n),i[gr("0xb")][gr("0x123")](gr("0x3a"),t.viewItem[gr("0x6d")](gr("0x3a")),n))}),{priority:gr("0xba")})})),this[gr("0x12")][gr("0x42")].for(gr("0x10e"))[gr("0x2a")]({view:{name:gr("0x8f"),attributes:{vid:!0}},model:{key:gr("0x8"),value:e=>e[gr("0x6d")](gr("0x8"))}}),this[gr("0x12")][gr("0xc0")].schema.on("checkAttribute",((e,[,t])=>{[gr("0x3c"),"vid_end",gr("0x8")][gr("0x111")](t)&&(e.return=!0,e.stop())}),{priority:gr("0xe7")}),this[gr("0x12")][gr("0x42")][gr("0xf5")](gr("0x120")).add((e=>{e.on(gr("0xa1"),((e,t,i)=>{if(" "!=t[gr("0x13")].data||t.item[gr("0xd5")][gr("0xc7")]>1)return;if(!i.consumable.consume(t[gr("0x13")],e[gr("0x4d")]))return;const n=i[gr("0xb")],r=i[gr("0x44")][gr("0x82")](t[gr("0x97")]);n[gr("0xd7")](r,n[gr("0x7c")](gr("0x8f")))}))})),this.editor[gr("0x42")][gr("0xf5")](gr("0x120")).markerToData({model:gr("0x25")}),this[gr("0x12")].editing[gr("0xde")].on(gr("0xc3"),function(e){const t=e[gr("0x55")][gr("0x9")](gr("0x8a"));return(i,n,r)=>{const o=n[gr("0xa9")][gr("0x121")](":")[1],s=t[gr("0x1c")](o);if(!s)return null;const a=gr("0x86")==s[gr("0x67")]?gr("0x121"):gr("0xe1");if(!r.consumable.test(n[gr("0x6c")],i.name))return;const c=n[gr("0x6c")].getWalker(),u=n[gr("0x6c")][gr("0x66")],d=e.model[gr("0x45")];let l=null,x=null,h=!1,f=!1;for(const e of c){const t=e[gr("0x13")];h=h||d[gr("0x7a")](t);const i=r[gr("0x44")].toViewElement(t);if(i&&i[gr("0xe4")]("addHighlight"))return;gr("0x5a")==e[gr("0x67")]&&d[gr("0x26")](t)&&!d[gr("0x1d")](t)&&(t[gr("0x106")]||u.isAtEnd?l&&l.parent==t||(l=t,v(e[gr("0xac")]),f=!0):x=x||e[gr("0xac")])}function v(e){const i=r[gr("0xb")][gr("0xaa")](gr("0x8f"),{class:gr("0xc5")+a}),o=r.mapper[gr("0x1a")](e);s[gr("0x118")][gr("0x34")]&&r[gr("0xb")][gr("0x52")](gr("0xc5")+a+gr("0x125"),i),t[gr("0x29")]==s&&r[gr("0xb")][gr("0x52")]("ck-suggestion-marker--active",i),r[gr("0xb")].insert(o,i),r[gr("0x44")][gr("0x23")](i,n[gr("0xa9")])}h||f||!x||v(x)}}(this[gr("0x12")]),{priority:gr("0x124")}),this[gr("0x12")][gr("0x73")][gr("0xde")].on(gr("0x88"),((e,t,i)=>{const n=i.mapper[gr("0x77")](t.markerName);if(n)for(const e of n)(e[gr("0xb2")](gr("0x35"))||e[gr("0xb2")](gr("0xa3")))&&(i[gr("0x44")][gr("0xb9")](e,t[gr("0xa9")]),i[gr("0xb")][gr("0xa2")](e))}),{priority:gr("0x124")}),this.editor[gr("0x73")].downcastDispatcher.on("addMarker:revision",((e,t,i)=>{const n=t.markerName.split(":")[1],r=this[gr("0x1c")](n);if(!r)return null;const o=gr("0x86")==r.type?"split":"merge";if(i[gr("0x3f")][gr("0x103")](t.markerRange,e[gr("0x4d")]))for(const e of t.markerRange[gr("0xa5")]()){if(!e.is("element",gr("0x80")))continue;const n=i[gr("0xb")].createUIElement(gr("0x8f"),{class:"ck-suggestion-marker-"+o}),s=i.mapper.toViewPosition(this[gr("0x12")].model[gr("0xaf")](e));r[gr("0x118")][gr("0x34")]&&i[gr("0xb")].addClass(gr("0xc5")+o+gr("0x125"),n),this[gr("0x29")]==r&&i.writer[gr("0x52")](gr("0xdc"),n),i[gr("0xb")][gr("0x107")](s,n),i[gr("0x44")][gr("0x23")](n,t[gr("0xa9")])}}),{priority:gr("0x124")}),this[gr("0x12")][gr("0xc0")][gr("0xd6")].on(gr("0x48"),(()=>{this[gr("0x12")][gr("0x73")][gr("0xd0")][gr("0x48")]((e=>{for(const t of this[gr("0x12")][gr("0xc0")].document[gr("0x4c")]()){const i=this[gr("0x12")][gr("0xc0")][gr("0xd6")][gr("0x17")](t),n=this[gr("0x12")][gr("0x73")][gr("0xd0")][gr("0xd6")].getRoot(t);if(n){const t=i[gr("0x6d")](gr("0x2b"));if(e[gr("0xeb")](gr("0x15"),n),e.removeClass(gr("0x4f"),n),e[gr("0x19")](gr("0x57"),n),e[gr("0x19")](gr("0x59"),n),t){const i=this._getChangeFromId(t);if(!i)return null;e[gr("0x123")](gr("0x15"),t,n),e[gr("0x52")]("ck-revision-history-root-"+i[gr("0x67")],n),this[gr("0x29")]==i&&e.addClass("ck-revision-history-root--active",n)}}}}))})),this[gr("0x12")][gr("0x42")][gr("0xf5")](gr("0x10e"))[gr("0x27")]({view:gr("0xf7"),model:e=>"revision-comment:"+e,converterPriority:gr("0xe7")}),this[gr("0x12")].conversion[gr("0xf5")](gr("0x10e"))[gr("0x27")]({view:gr("0x7"),model:e=>gr("0xca")+e,converterPriority:gr("0xe7")}),this[gr("0x12")].conversion[gr("0xf5")]("dataDowncast")[gr("0x1b")]({model:"revision-suggestion",view:e=>({name:gr("0x87")+e,group:gr("0x9f")}),converterPriority:gr("0xe7")}),this[gr("0x12")].conversion[gr("0xf5")](gr("0x71"))[gr("0x4")]({model:"revision-suggestion",view:e=>{const t=e[gr("0xa9")][gr("0x121")](":")[1];return gr("0x5")!=t&&gr("0xa8")!=t?null:{classes:[gr("0x39"),"ck-suggestion-preview-marker-"+t]}}}),this[gr("0x12")][gr("0x73")][gr("0xde")].on(gr("0x7b"),kr(this.editor,"merge"),{priority:gr("0x124")}),this[gr("0x12")][gr("0x73")].downcastDispatcher.on(gr("0xc9"),kr(this[gr("0x12")],gr("0x121")),{priority:gr("0x124")}),this[gr("0x12")][gr("0x73")].downcastDispatcher.on(gr("0x116"),((e,t,i)=>{const n=i.mapper.markerNameToElements(t.markerName);if(n)for(const e of n)e.is("uiElement")&&(i[gr("0x44")][gr("0xb9")](e,t[gr("0xa9")]),i[gr("0xb")][gr("0xa2")](e))}),{priority:"high"})}[gr("0x1c")](e){return this[gr("0xd4")][gr("0x9")](e)}_getViewForChange(e){return this[gr("0xee")]&&this[gr("0xee")][gr("0xe9")](),this[gr("0xee")]=new ir(this[gr("0x12")][gr("0x7d")],e),this[gr("0xee")]}[gr("0x6b")](){this[gr("0x12")][gr("0xc0")][gr("0xd6")][gr("0xb8")].observeMarkers(gr("0x25")),this.on(gr("0xd3"),((e,t,i,n)=>{n&&this[gr("0xfc")][gr("0xa2")](n),i&&(this[gr("0xfc")][gr("0x86")]({view:i,stackId:gr("0x93"),position:{target:()=>{const e=this.editor[gr("0x73")],t=this[gr("0x1c")](i.changeId);let n;if(t[gr("0x118")][gr("0x84")]){const i=e.view[gr("0xb0")](t[gr("0x11f")]);n=Array[gr("0x72")](i[gr("0xfe")]())}else{const t=this.editor[gr("0xc0")].markers.get(gr("0x7e")+i[gr("0x9e")]);n=Array[gr("0x72")](e.mapper[gr("0x77")](t.name))[gr("0xe")]((t=>e.view[gr("0x1f")].mapViewToDom(t)))[gr("0xe")]((e=>Array.from(e.getClientRects())))[gr("0x90")]()}return this[gr("0xed")]&&n[gr("0xc4")]((e=>e[gr("0xa6")]-3<=this._activeViewTarget.y&&e[gr("0xb1")]+3>=this[gr("0xed")].y&&e[gr("0x78")]-3<=this[gr("0xed")].x&&e[gr("0x91")]+3>=this[gr("0xed")].x))||n[0]}}}),this[gr("0xfc")].showStack(gr("0x93")))})),this.on(gr("0x5e"),((e,t,i,n)=>{this.activeView=i?this[gr("0x105")](i):null,this[gr("0x12")][gr("0xc0")][gr("0x48")]((()=>{const e=this[gr("0x12")][gr("0x73")];n&&(n.data[gr("0x84")]?e[gr("0xd0")][gr("0x48")]((t=>{t.removeClass(gr("0x59"),e[gr("0xd0")][gr("0xd6")][gr("0x17")](n.rootName))})):e[gr("0x10a")](gr("0x7e")+n.id)),i&&(i[gr("0x118")].isOnRoot?e[gr("0xd0")][gr("0x48")]((t=>{t[gr("0x52")](gr("0x59"),e[gr("0xd0")][gr("0xd6")][gr("0x17")](i.rootName))})):e[gr("0x10a")]("revision:"+i.id))}))})),this[gr("0xf1")](this[gr("0x12")][gr("0x73")][gr("0xd0")][gr("0xd6")],gr("0x2e"),((e,t)=>{if(this.activeChange)return;const i=this[gr("0x10b")](t.target),n=this[gr("0xd4")][gr("0x9")](i);n?(this[gr("0xed")]={x:t[gr("0x119")].x,y:t[gr("0x119")].y},this[gr("0x11b")]=this[gr("0x105")](n)):(this[gr("0xed")]=null,this[gr("0x11b")]=null)})),this.listenTo(this[gr("0x12")][gr("0x73")].view[gr("0xd6")],"mousedown",((e,t)=>{const i=this._findChangeIdFromDomTarget(t[gr("0x64")]),n=this[gr("0xd4")][gr("0x9")](i);n?(this[gr("0xed")]={x:t[gr("0x119")].x,y:t[gr("0x119")].y},n===this.activeChange?this[gr("0xfc")][gr("0x51")]():this[gr("0x29")]=n):(this[gr("0xed")]=null,this[gr("0x29")]=null)}))}[gr("0x10b")](e){do{const t=e[gr("0x6d")](gr("0x15"));if(t)return t;e=e.parent}while(e);return null}[gr("0xab")](){this[gr("0x12")].model[gr("0x48")]((e=>{for(const t of this[gr("0x12")][gr("0xc0")][gr("0xdf")])e[gr("0xbc")](t)}))}}function kr(e,t){return(i,n,r)=>{if(!r.consumable[gr("0x103")](n[gr("0x6c")],i[gr("0x4d")]))return;const o=n.markerRange[gr("0x115")](),s=n.markerRange[gr("0x66")],a=e[gr("0xc0")][gr("0x45")];let c=null,u=null,d=!1,l=!1;for(const e of o){const t=e[gr("0x13")];d=d||a[gr("0x7a")](t);const i=r[gr("0x44")][gr("0x31")](t);if(i&&i[gr("0xe4")](gr("0xdd")))return;gr("0x5a")==e.type&&a.isBlock(t)&&!a[gr("0x1d")](t)&&(t[gr("0x106")]||s[gr("0x70")]?c&&c[gr("0xd5")]==t||(c=t,x(e[gr("0xac")]),l=!0):u=u||e.previousPosition)}function x(e){const i=r.mapper[gr("0x1a")](e),o=r[gr("0xb")][gr("0xaa")]("span",{class:gr("0x8c")+t});r[gr("0xb")][gr("0x107")](i,o),r[gr("0x44")][gr("0x23")](o,n[gr("0xa9")])}d||l||!u||x(u)}}class _r extends e.Command{constructor(e){super(e);const t=e[gr("0x55")][gr("0x9")](br);this[gr("0xb5")]=!1,this.listenTo(t,gr("0xbb"),(()=>this.refresh())),this[gr("0xf1")](t,gr("0x79"),(()=>this[gr("0xbe")]()))}[gr("0x104")](){const e=this[gr("0x12")],t=e[gr("0x55")][gr("0x9")](br),i=t[gr("0x11d")]?t[gr("0xa7")][gr("0xbf")]:null;e[gr("0x9d")][gr("0x9")](gr("0x37"))[gr("0xd9")](i)}refresh(){const{isReady:e,isEnabled:t}=this.editor.plugins.get(br);this[gr("0xcb")]=e&&t}}class wr extends e.Command{constructor(e,{direction:t}){super(e);const i=e[gr("0x55")][gr("0x9")](br);this.affectsData=!1,this[gr("0x58")]=gr("0x11e")===t?1:-1,this[gr("0xf1")](i,gr("0xbb"),(()=>this[gr("0xbe")]())),this.listenTo(i,gr("0x79"),(()=>this[gr("0xbe")]())),this[gr("0xf1")](i,gr("0x5e"),(()=>this.refresh()))}[gr("0x104")](){const e=this[gr("0x12")],i=e.plugins[gr("0x9")](br),{isNavigationMode:n,currentChangeNumber:o}=i;let s;if(i.activeChange=n?i[gr("0xa7")][gr("0x60")][gr("0x9")](o+this[gr("0x58")]):i.diff[gr("0x60")][gr("0xb4")],i.activeChange[gr("0x118")][gr("0x84")])s=e[gr("0x73")][gr("0xd0")][gr("0xb0")](i[gr("0x29")].rootName);else{const t=e.model[gr("0xdf")][gr("0x9")](gr("0x7e")+i[gr("0x29")].id);s=(0,r.getMarkerDomElement)(e[gr("0x73")],t)}(0,t.scrollViewportToShowTarget)({target:s,viewportOffset:40})}refresh(){const{isNavigationMode:e,currentChangeNumber:t,numberOfChanges:i,isReady:n,isEnabled:r}=this[gr("0x12")][gr("0x55")][gr("0x9")](br);this[gr("0xcb")]=!!(r&&n&&i)&&(!e||(1===this[gr("0x58")]?t<i-1:t>0))}}var Sr=i(616),Or={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fn()(Sr.Z,Or);Sr.Z.locals;const Rr=["isEnabled","EDIT_X_OF_Y_REVISIONS","No changes","forward","ck-revision-history-ui__changes-navigation__label","Show next change","isBackwardNavigationEnabled","isReady","isNavigationMode","ck-revision-history-ui__changes-navigation","span","bind","execute","Loading...","isForwardNavigationEnabled","_isStatusLabelVisible","currentChangeNumber","fire","ck-hidden","div","set","ck-revision-history-ui__changes-navigation__wrapper","X_OF_Y_CHANGES","setTemplate","numberOfChanges","ck-revision-history-ui__changes-navigation__navigation","_statusText","bindTemplate","Show previous change","NUMBER_OF_CHANGES"];var Tr,Ir;Tr=Rr,Ir=400,function(e){for(;--e;)Tr.push(Tr.shift())}(++Ir);const Nr=function(e,t){return Rr[e-=0]};class Vr extends Cn.View{constructor(e){super(e);const t=this[Nr("0x11")],i=new Cn.ButtonView(e),n=new Cn.ButtonView(e);this[Nr("0xa")](Nr("0x1c"),!1),this[Nr("0xa")](Nr("0x1b"),!1),this.set(Nr("0x6"),0),this[Nr("0xa")](Nr("0xe"),0),this[Nr("0xa")](Nr("0x4"),!1),this[Nr("0xa")]("isBackwardNavigationEnabled",!1),this[Nr("0x1")](Nr("0x5")).to(this,"isReady",this,Nr("0xe"),((e,t)=>e&&t>0)),this[Nr("0x1")](Nr("0x10")).to(this,Nr("0x1b"),this,Nr("0x6"),this,Nr("0xe"),this,Nr("0x1c"),((t,i,n,r)=>{if(!t)return en(e,Nr("0x3"));if(!n)return en(e,Nr("0x16"));const o=en(e,Nr("0x13"),n);return r?en(e,Nr("0xc"),[i+1,n]):o})),i.set({label:en(e,Nr("0x12")),tooltip:!0,icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M16.435 14.494a.75.75 0 0 0 1.197-.899l-.067-.089-6.992-8a.75.75 0 0 0-1.05-.078l-.079.078-7.008 8a.75.75 0 0 0 1.049 1.066l.08-.078 6.442-7.354 6.428 7.354z"/></svg>\n'}),n[Nr("0xa")]({label:en(e,Nr("0x19")),tooltip:!0,icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M16.435 5.506a.75.75 0 0 1 1.197.899l-.067.089-6.992 8a.75.75 0 0 1-1.05.078l-.079-.078-7.008-8a.75.75 0 0 1 1.049-1.066l.08.078 6.442 7.354 6.428-7.354z"/></svg>\n'}),i[Nr("0x1")]("isEnabled").to(this,Nr("0x1a")),n[Nr("0x1")](Nr("0x14")).to(this,Nr("0x4")),i.on(Nr("0x2"),(()=>this[Nr("0x7")](Nr("0x2"),"backward"))),n.on(Nr("0x2"),(()=>this[Nr("0x7")]("execute",Nr("0x17")))),this[Nr("0xd")]({tag:"div",attributes:{class:["ck","ck-revision-history-ui",Nr("0x1d")]},children:[{tag:"span",attributes:{class:[Nr("0xb")]},children:[{tag:Nr("0x0"),attributes:{class:[Nr("0x18"),t.if(Nr("0x5"),Nr("0x8"),(e=>!e))]},children:[{text:t.to("isNavigationMode",(t=>t?en(e,Nr("0x15"))+": ":en(e,"Total")+": "))}]},{text:t.to(Nr("0x10"))}]},new Cn.ToolbarSeparatorView,{tag:Nr("0x9"),attributes:{class:[Nr("0xf")]},children:[i,n]}]})}}var Ar=i(271),Mr={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fn()(Ar.Z,Mr);Ar.Z.locals;const Er=["view","change","document","pluginName","removeClass","roots","editing","editor","RevisionViewerLoadingOverlay","hide"];var jr,Cr;jr=Er,Cr=447,function(e){for(;--e;)jr.push(jr.shift())}(++Cr);const Dr=function(e,t){return Er[e-=0]},Fr="ck-editor__editable__loading-overlay";class Lr extends e.Plugin{static get[Dr("0x6")](){return Dr("0x1")}show(){const e=this[Dr("0x0")][Dr("0x9")][Dr("0x3")];e[Dr("0x4")]((t=>{for(const i of e.document[Dr("0x8")])t.addClass(Fr,i)}))}[Dr("0x2")](){const e=this[Dr("0x0")].editing[Dr("0x3")];e.change((t=>{for(const i of e[Dr("0x5")][Dr("0x8")])t[Dr("0x7")](Fr,i)}))}}const Pr=["isEnabled","componentFactory","Back to editing","add","bind","ck-revision-history-ui__back-to-editing","numberOfChanges","init","isNavigationMode","requires","hide","change:isReady","execute","showNextChange","get","changesNavigation","restoreRevision","showPreviousChange","currentChangeNumber","RevisionViewerUI","plugins","config","set","isReady","exitToEditing","show","commands","listenTo","revisionHistory","isForwardNavigationEnabled","isBackwardNavigationEnabled"];var zr,Zr;zr=Pr,Zr=243,function(e){for(;--e;)zr.push(zr.shift())}(++Zr);const Ur=function(e,t){return Pr[e-=0]};class Hr extends e.Plugin{static get pluginName(){return Ur("0x18")}static get[Ur("0xe")](){return[br,Lr]}[Ur("0xc")](){const e=this.editor,t=e[Ur("0x19")][Ur("0x13")](br),i=e[Ur("0x19")][Ur("0x13")](Lr);e.ui[Ur("0x6")][Ur("0x8")](Ur("0x1d"),(t=>{const i=new Cn.ButtonView(t);return i[Ur("0x1b")]({label:en(t,Ur("0x7")),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m5.042 9.367 2.189 1.837a.75.75 0 0 1-.965 1.149l-3.788-3.18a.747.747 0 0 1-.21-.284.75.75 0 0 1 .17-.945L6.23 4.762a.75.75 0 1 1 .964 1.15L4.863 7.866h8.917A.75.75 0 0 1 14 7.9a4 4 0 1 1-1.477 7.718l.344-1.489a2.5 2.5 0 1 0 1.094-4.73l.008-.032H5.042z"/></svg>',withText:!0,tooltip:!0,class:Ur("0xa")}),this[Ur("0x1")](i,Ur("0x11"),(()=>{e[Ur("0x1a")][Ur("0x13")](Ur("0x2")).closeRevisionViewerCallback()})),i})),e.ui[Ur("0x6")][Ur("0x8")](Ur("0x15"),(t=>{const i=new Cn.ButtonView(t);return i.set({label:en(t,"Restore this revision"),withText:!0,tooltip:!0}),i.bind("isEnabled").to(e.commands[Ur("0x13")]("restoreRevision")),this[Ur("0x1")](i,Ur("0x11"),(()=>e[Ur("0x11")](Ur("0x15")))),i})),e.ui[Ur("0x6")][Ur("0x8")](Ur("0x14"),(i=>{const n=new Vr(i),r=e.commands[Ur("0x13")]("showPreviousChange"),o=e[Ur("0x0")][Ur("0x13")](Ur("0x12"));return n[Ur("0x9")](Ur("0x4")).to(r,Ur("0x5")),n[Ur("0x9")](Ur("0x3")).to(o,Ur("0x5")),n[Ur("0x9")](Ur("0x1c"),Ur("0x17"),Ur("0xb"),Ur("0xd")).to(t),this[Ur("0x1")](n,Ur("0x11"),((t,i)=>{e[Ur("0x11")](Ur("forward"===i?"0x12":"0x16"))})),n})),i[Ur("0x1e")](),t.on(Ur("0x10"),((e,t,n)=>{n?i[Ur("0xf")]():i[Ur("0x1e")]()}))}}var qr=i(903),Br={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fn()(qr.Z,Br);qr.Z.locals;var Wr,Jr,Gr=["span","ck-revision-history-sidebar__revision-name","Revision name","extendTemplate"];Wr=Gr,Jr=328,function(e){for(;--e;)Wr.push(Wr.shift())}(++Jr);var Yr=function(e,t){return Gr[e-=0]};class $r extends Cn.LabeledFieldView{constructor(e,t){super(e,t),this.set({label:en(e,Yr("0x2"))}),this[Yr("0x3")]({tag:Yr("0x0"),attributes:{class:[Yr("0x1")]}})}}var Kr=i(517),Xr={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fn()(Kr.Z,Xr);Kr.Z.locals;const Qr=["Revision creator","0 0 11 10","set","span","ck-revision-history-sidebar__revision-author__name","setTemplate","ck-revision-history-sidebar__revision-author","ck-revision-history-sidebar__revision-author_creator","push","Revision author"];var eo,to;eo=Qr,to=346,function(e){for(;--e;)eo.push(eo.shift())}(++to);const io=function(e,t){return Qr[e-=0]};class no extends Cn.View{constructor(e,t,i){super(e);const n=new Cn.IconView;n[io("0x6")]({content:'<svg viewBox="0 0 11 10" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M5.5 5C8.538 5 11 7.015 11 9.5c0 .17-.011.336-.034.5H.034A3.732 3.732 0 0 1 0 9.5C0 7.015 2.462 5 5.5 5zm0-5a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5z" /></svg>\n',viewBox:io("0x5")});const r=["ck",io("0x0")];i&&r[io("0x2")](io("0x1"));const o=[{tag:io("0x7"),attributes:{class:["ck",io("0x8")],title:en(e,io(i?"0x4":"0x3"))},children:[n,t.name]}];this[io("0x9")]({tag:"li",attributes:{class:r},children:o})}}var ro,oo,so=["toLocaleTimeString","numeric","long"];ro=so,oo=478,function(e){for(;--e;)ro.push(ro.shift())}(++oo);var ao=function(e,t){return so[e-=0]};var co=i(966),uo={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fn()(co.Z,uo);co.Z.locals;const lo=["button","stopPropagation","name","first","change:isActionsDropdownOpen","isReady","Restore this revision","ck-on","source","bind","isEnabled","Show more items","_action","Name this revision","extendTemplate","locale","threeVerticalDots","model","isVisible","function","panelPosition","Compare against selected","set","map","listenTo","children","listView","isActionsDropdownOpen","class","isOpen","execute","action","add","bindTemplate"];var xo,ho;xo=lo,ho=399,function(e){for(;--e;)xo.push(xo.shift())}(++ho);const fo=function(e,t){return lo[e-=0]};var vo=i(732),mo={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fn()(vo.Z,mo);vo.Z.locals;const yo=["creator","change","revisionActionsView","ck-revision-history-sidebar__revision-wrapper_confirmation_visible","ck-revision-history-sidebar__revision_selected","ck-revision-history-sidebar__revision-wrapper","srcElement","from","set","isReady","unshift","createdAt","value","filter","_createdAtFormatted","fire","revisionNameView","ck-disabled","fieldView","220","isActionsDropdownOpen","authors","closest","isHighlighted","div","name","ck-revision-history-sidebar__actions_dropdown_open","isConfirm","bind","element","ck-revision-history-sidebar__revision__date","isEnabled","unhighlight","extendTemplate","select","highlight","render","span","isSelected","ck-revision-history-sidebar__revision","map","ck-revision-history-sidebar__revision_highlighted","ck-revision-history-sidebar__revision-authors","ck-reset","bindTemplate","setName","_revision"];var go,po;go=yo,po=446,function(e){for(;--e;)go.push(go.shift())}(++po);const bo=function(e,t){return yo[e-=0]};class ko extends((0,r.ConfirmMixin)(Cn.View)){constructor(i,n,r){super(i);const o=this[bo("0x15")],s=function(e,t){const i=Array[bo("0x1f")](t[bo("0x2d")])[bo("0x25")]((e=>e!=t[bo("0x18")]));return t[bo("0x18")]&&i[bo("0x22")](t[bo("0x18")]),i[bo("0x11")]((i=>new no(e,i,i==t[bo("0x18")])))}(i,n);this.id=n.id,this[bo("0x17")]=n,this[bo("0x5")](bo("0x2"),bo("0x23")).to(n),this[bo("0x5")](bo("0x26")).to(this,"createdAt",(e=>{return e?(t=i.uiLanguage,(n=e).toLocaleDateString(t,{month:ao("0x1"),day:ao("0x0")})+", "+n[ao("0x2")](t,{hour:ao("0x0"),minute:"numeric"})):void 0;var t,n})),this[bo("0x20")](bo("0xf"),!1),this.set("isHighlighted",!1),this[bo("0x20")](bo("0x2c"),!1),this.set(bo("0x21"),!1),this[bo("0x20")](bo("0x8"),!1),this[bo("0x28")]=new $r(i,Cn.createLabeledInputText),this.revisionNameView.fieldView[bo("0xa")]({attributes:{maxlength:bo("0x2b")}}),this[bo("0x28")][bo("0x2a")].bind(bo("0x24"),"placeholder").to(this,"name",bo("0x26")),this.revisionNameView[bo("0x5")](bo("0x8")).to(this,bo("0xf"),this,bo("0x8"),((e,t)=>e&&t)),this[bo("0x1a")]=r&&r.length?function(i,n){const r=i[fo("0x8")],o=i[fo("0x18")],s=(0,Cn.createDropdown)(o);s[fo("0x1d")]="sw";const a=function(e,i){const n=function(e,t){const i=e[fo("0x18")],n={"Compare against selected":en(i,fo("0x1e")),"Name this revision":en(i,fo("0x16")),"Restore this revision":en(i,fo("0xf"))};return t[fo("0x20")]((e=>{const t=n[e[fo("0xb")]];return t&&t!==e.name&&(e.name=t),e}))}(e,i),r=new t.Collection;for(const t of n){const i={type:fo("0x9"),model:new Cn.Model({label:t.name,class:t[fo("0x3")],withText:!0,_action:t[fo("0x6")]})};i[fo("0x1a")][fo("0x12")](fo("0x13")).to(e,"isActionsDropdownOpen",(i=>fo("0x1c")!=typeof t.isEnabled||!i||t[fo("0x13")](e))),r[fo("0x7")](i)}return r}(i,n);return i.bind(fo("0x2")).to(s,fo("0x4")),s.buttonView[fo("0x1f")]({label:en(o,fo("0x14")),tooltip:!0,tooltipPosition:"sw",icon:e.icons[fo("0x19")]}),s[fo("0x17")]({attributes:{class:["ck-revision-history-sidebar__revision__actions",r.if(fo("0x2"),fo("0x10"))]},on:{click:r.to((e=>e[fo("0xa")]()))}}),s.on(fo("0x5"),(e=>{i[fo("0xe")]&&fo("0x1c")==typeof e.source[fo("0x15")]&&e[fo("0x11")][fo("0x15")](i)})),(0,Cn.addListToDropdown)(s,a),s[fo("0x21")](i,fo("0xd"),((e,t,r)=>{if(r)for(const e of s[fo("0x1")].items){const t=e[fo("0x0")][fo("0xc")],r=n.find((e=>e[fo("0x6")]===t[fo("0x15")]))[fo("0x1b")];e[fo("0x1b")]=void 0===r||r(i)}})),s}(this,r):"",this[bo("0x1a")]&&this[bo("0x1a")][bo("0x5")]("isEnabled").to(this),this.setTemplate({tag:bo("0x1"),attributes:{class:["ck",bo("0x14"),bo("0x1d"),o.if(bo("0x4"),bo("0x1b"))]},children:[{tag:bo("0x1"),attributes:{class:["ck",bo("0x14"),bo("0x10"),o.if("isEnabled",bo("0x29"),(e=>!e)),o.if(bo("0xf"),bo("0x1c")),o.if(bo("0x0"),bo("0x12")),o.if("isActionsDropdownOpen",bo("0x3"))]},children:[this[bo("0x28")],{tag:bo("0xe"),attributes:{class:["ck",bo("0x7")]},children:[{text:o.to(bo("0x26"))}]},{tag:"div",attributes:{class:["ck","ck-revision-history-sidebar__revision__controls-wrapper"]},children:[{tag:"ul",attributes:{class:["ck",bo("0x13")]},children:s}]},this[bo("0x1a")]],on:{click:o.to((e=>{e[bo("0x1e")][bo("0x2e")](".ck-thread__remove-confirm")||this[bo("0x21")]&&this[bo("0x8")]&&this.fire(bo("0xb"),{id:this.id})}))}}]})}render(){super[bo("0xd")]();const e=this[bo("0x28")][bo("0x2a")][bo("0x6")];this.listenTo(e,bo("0x19"),(()=>{this[bo("0x27")](bo("0x16"),{id:this.id,name:e[bo("0x24")]})}))}[bo("0xb")](){this[bo("0xf")]=!0}deselect(){this.isSelected=!1}[bo("0xc")](){this[bo("0x0")]=!0}[bo("0x9")](){this[bo("0x0")]=!1}}var _o=i(810);const wo=["monthLong","year","toJSDate","local","hasSame","startOf","week","toRelativeCalendar","day"];var So,Oo;So=wo,Oo=482,function(e){for(;--e;)So.push(So.shift())}(++Oo);const Ro=function(e,t){return wo[e-=0]};function To(e,t){const i=_o.ou.fromJSDate(e).setLocale(t),n=_o.ou[Ro("0x7")](),r=n.minus({days:1})[Ro("0x0")](Ro("0x3"));let o,s;return i[Ro("0x8")](n,Ro("0x3"))?(o=i[Ro("0x0")]("day")[Ro("0x6")](),s=i[Ro("0x2")]()):i[Ro("0x8")](r,Ro("0x3"))?(o=r[Ro("0x6")](),s=i[Ro("0x2")]()):i[Ro("0x8")](n,"week")?(o=i[Ro("0x0")](Ro("0x1"))[Ro("0x6")](),s=i.weekdayLong||""):i.hasSame(n,Ro("0x5"))?(o=i[Ro("0x0")]("month")[Ro("0x6")](),s=i[Ro("0x4")]||""):(o=i[Ro("0x0")](Ro("0x5"))[Ro("0x6")](),s=String(i[Ro("0x5")])),{startDate:o,localizedPeriodName:s}}var Io=i(922),No={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fn()(Io.Z,No);Io.Z.locals;const Vo=["span","_revisionActions","createCollection","addRevision","ck-revision-history-sidebar__time-period__label","localizedPeriodName","revisionViews","div","add","delegate","startDate","remove","find","removeRevision","setName","ck-revision-history-sidebar__time-period__revisions","ck-revision-history-sidebar__time-period","locale"];var Ao,Mo;Ao=Vo,Mo=404,function(e){for(;--e;)Ao.push(Ao.shift())}(++Mo);const Eo=function(e,t){return Vo[e-=0]};class jo extends Cn.View{constructor(e,t,i){super(e);const n=To(t,this[Eo("0x9")].uiLanguage)[Eo("0xf")];this[Eo("0x2")]=t,this[Eo("0x10")]=this[Eo("0xc")](),this[Eo("0xb")]=i,this.revisionViews[Eo("0x1")]("select").to(this),this[Eo("0x10")][Eo("0x1")](Eo("0x6")).to(this),this.setTemplate({tag:Eo("0x11"),attributes:{class:["ck",Eo("0x8")]},children:[{tag:Eo("0xa"),attributes:{class:["ck",Eo("0xe")]},children:[{text:n}]},{tag:"div",attributes:{class:["ck",Eo("0x7")]},children:this[Eo("0x10")]}]})}[Eo("0xd")](e){const t=new ko(this[Eo("0x9")],e,this[Eo("0xb")]);this[Eo("0x10")][Eo("0x0")](t)}[Eo("0x5")](e){const t=this[Eo("0x10")][Eo("0x4")]((t=>t.id===e.id));this[Eo("0x10")][Eo("0x3")](t)}}var Co=i(589),Do={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fn()(Co.Z,Do);Co.Z.locals;const Fo=["div","span","Revision history","ck-revision-history-sidebar__header__label","content","history"];var Lo,Po;Lo=Fo,Po=120,function(e){for(;--e;)Lo.push(Lo.shift())}(++Po);const zo=function(e,t){return Fo[e-=0]};class Zo extends Cn.View{constructor(t){super(t);const i=new Cn.IconView;i[zo("0x4")]=e.icons[zo("0x5")],this.setTemplate({tag:zo("0x0"),attributes:{class:["ck","ck-reset_all","ck-revision-history-sidebar__header"]},children:[i,{tag:zo("0x1"),attributes:{class:["ck",zo("0x3")]},children:[en(t,zo("0x2"))]}]})}}var Uo=i(377),Ho={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fn()(Uo.Z,Ho);Uo.Z.locals;const qo=["_getTimePeriodViewByStartDate","select","removeRevision","_revisions","remove","add","timePeriodViews","ck-rounded-corners","set","getTime","ck-disabled","map","_removeRevision","unhighlight","ck-revision-history-sidebar__timeline","bindTemplate","highlightRevisions","fire","selectRevision","revisionViews","setName","startDate","flat","div","uiLanguage","some","locale","ck-reset","render","isEnabled","_revisionActions","_addRevision","createCollection","setTemplate","createdAt","delegate","addRevision","get"];var Bo,Wo;Bo=qo,Wo=416,function(e){for(;--e;)Bo.push(Bo.shift())}(++Wo);const Jo=function(e,t){return qo[e-=0]};class Go extends Cn.View{constructor(e,t,i){super(e);const n=this[Jo("0x11")];this[Jo("0x8")]=this[Jo("0x22")](),this[Jo("0x8")][Jo("0x25")](Jo("0x3")).to(this),this[Jo("0x8")][Jo("0x25")](Jo("0x16")).to(this),this[Jo("0x5")]=t,this[Jo("0x20")]=i,this.on(Jo("0x3"),((e,t)=>{this[Jo("0x13")]("revisionSelected",t)})),this.on(Jo("0x16"),((e,t)=>{this[Jo("0x13")]("revisionSetName",t)})),this[Jo("0xa")](Jo("0x1f"),!1),this[Jo("0x23")]({tag:Jo("0x19"),attributes:{class:["ck",Jo("0x1d"),Jo("0x9"),"ck-revision-history-sidebar"]},children:[new Zo(e),{tag:"div",attributes:{class:["ck",Jo("0x10"),n.if(Jo("0x1f"),Jo("0xc"),(e=>!e))]},children:this[Jo("0x8")]}]})}[Jo("0x1e")](){super[Jo("0x1e")]();for(const e of this._revisions)this._addRevision(e);this._revisions.on("add",((e,t)=>{this[Jo("0x21")](t)})),this._revisions.on(Jo("0x6"),((e,t)=>{this[Jo("0xe")](t)}))}get[Jo("0x15")](){return this[Jo("0x8")].map((e=>e.revisionViews[Jo("0xd")]((e=>e))))[Jo("0x18")]()}[Jo("0x14")](e){for(const t of this[Jo("0x15")])e&&e.id===t.id?t[Jo("0x3")]():t.deselect()}[Jo("0x12")](e){for(const t of this[Jo("0x15")])e[Jo("0x1b")]((({id:e})=>e===t.id))?t.highlight():t[Jo("0xf")]()}[Jo("0x21")](e){const t=To(e[Jo("0x24")],this[Jo("0x1c")][Jo("0x1a")])[Jo("0x17")];let i=this.timePeriodViews[Jo("0x1")](0);i&&i.startDate.getTime()===t[Jo("0xb")]()||(i=new jo(this.locale,t,this[Jo("0x20")]),this.timePeriodViews[Jo("0x7")](i)),i[Jo("0x0")](e)}[Jo("0xe")](e){const t=To(e[Jo("0x24")],this[Jo("0x1c")][Jo("0x1a")])[Jo("0x17")];this[Jo("0x2")](t)[Jo("0x4")](e)}[Jo("0x2")](e){return this[Jo("0x8")].find((t=>t[Jo("0x17")].getTime()===e[Jo("0xb")]()))}}const Yo=["_handleRevisionSelected","availableRevisionActions","isSelected","bind","action","config","isReady","_handleDiffChange","element","_handleEditorDataReady","init","pluginName","diff","revisionViews","Restore this revision","listenTo","_createRevisionActions","revisionHistory.revisionActions","length","_handleRevisionSetName","Name this revision","_sidebarView","setName","focus","repository","timePeriodViews","getEarlierVisibleRevision","data","restoreRevision","render","appendChild","plugins","restoreRevisionCallback","highlightRevisions","map","defaultRevisionActions","_revisionsRepository","revisionSelected","string","assign","isVisible","editor","compare","selectRevision","name","destroy","getIndex","isEnabled","getLaterVisibleRevision","get","getRevisionsInDiff","requires","locale","compareAgainstSelected","_revisionViewer","revisionHistory","getRevision","add"];var $o,Ko;$o=Yo,Ko=351,function(e){for(;--e;)$o.push($o.shift())}(++Ko);const Xo=function(e,t){return Yo[e-=0]};class Qo extends e.Plugin{static get[Xo("0x8")](){return"RevisionsSidebar"}static get[Xo("0x30")](){return[br]}constructor(e){super(e),this._revisionViewer=e[Xo("0x1c")][Xo("0x2e")](br),this[Xo("0x21")]=this._revisionViewer[Xo("0x15")],this[Xo("0x12")]=null}[Xo("0x7")](){const e=this[Xo("0x21")]._revisions,t=this[Xo("0xd")](),i=this[Xo("0x26")][Xo("0x2")][Xo("0x2e")]("revisionHistory.viewerSidebarContainer");this[Xo("0x12")]=new Go(this.editor[Xo("0x31")],e,t),this._sidebarView.on(Xo("0x22"),this[Xo("0x37")][Xo("0x0")](this)),this[Xo("0x12")].on("revisionSetName",this._handleRevisionSetName[Xo("0x0")](this)),this[Xo("0x12")][Xo("0x0")]("isEnabled").to(this._revisionViewer),this[Xo("0x12")][Xo("0x16")].on(Xo("0x36"),((e,t)=>{t[Xo("0xa")].on(Xo("0x36"),((e,t)=>{t[Xo("0x0")](Xo("0x2c"),Xo("0x3")).to(this._revisionViewer)}))})),this[Xo("0x12")][Xo("0x1a")](),this.listenTo(this[Xo("0x26")][Xo("0x18")],"ready",this[Xo("0x6")].bind(this)),this[Xo("0xc")](this[Xo("0x33")],"change:diff",this[Xo("0x4")][Xo("0x0")](this)),i[Xo("0x1b")](this[Xo("0x12")][Xo("0x5")])}destroy(){this[Xo("0x12")][Xo("0x5")].remove(),this[Xo("0x12")][Xo("0x2a")]()}_handleEditorDataReady(){const e=this[Xo("0x21")][Xo("0x35")](0);if(e){const t=this[Xo("0x21")][Xo("0x17")](e.id);this[Xo("0x33")][Xo("0x27")](e,t)}}[Xo("0x37")](e,t){const i=this[Xo("0x21")][Xo("0x35")](t.id),n=this._revisionsRepository[Xo("0x17")](i.id);this._revisionViewer[Xo("0x27")](i,n)}[Xo("0x10")](e,t){this[Xo("0x21")].getRevision(t.id)[Xo("0x13")](t[Xo("0x29")])}_handleDiffChange(e,t,i){const n=this._revisionsRepository[Xo("0x2f")](i);n[Xo("0xf")]>2?(this._sidebarView[Xo("0x1e")](n),this[Xo("0x12")][Xo("0x28")](null)):(this._sidebarView[Xo("0x1e")]([]),this._sidebarView[Xo("0x28")](n[0]))}[Xo("0xd")](){const e=this[Xo("0x26")],t=Qo[Xo("0x38")],i=e[Xo("0x2")][Xo("0x2e")](Xo("0xe"))||Qo[Xo("0x20")];if(i[Xo("0xf")])return i[Xo("0x1f")]((i=>{const n=Xo("0x23")==typeof i?Object[Xo("0x24")]({},t[i]):i;return n.action=n[Xo("0x1")].bind(this,e),n[Xo("0x25")]&&(n.isVisible=n[Xo("0x25")].bind(this,e)),n}))}}Qo.availableRevisionActions={compareAgainstSelected:{name:"Compare against selected",action:({plugins:e},t)=>{const i=e[Xo("0x2e")](br),n=i[Xo("0x15")];let r=i[Xo("0x9")].newRevisionId,o=t.id;n[Xo("0x2b")](r)>n[Xo("0x2b")](o)&&([r,o]=[o,r]),i[Xo("0x27")](r,o)},isVisible:({plugins:e},t)=>{const i=e[Xo("0x2e")](br);return!(i[Xo("0x15")][Xo("0x2f")](i.diff)[Xo("0xf")]>2||t[Xo("0x39")])}},restoreRevision:{name:Xo("0xb"),action:(e,{id:t})=>{e[Xo("0x2")].get(Xo("0x34"))[Xo("0x1d")](t)},isVisible:({plugins:e},t)=>!!e[Xo("0x2e")](br)[Xo("0x15")][Xo("0x2d")](t.id)},nameRevision:{name:Xo("0x11"),action:({plugins:e},{id:t,revisionNameView:i})=>{const n=e[Xo("0x2e")](br),r=n[Xo("0x15")][Xo("0x17")](t);n[Xo("0x27")](t,r),i[Xo("0x14")](),i.fieldView.select()}}},Qo.defaultRevisionActions=[Xo("0x32"),Xo("0x19"),"nameRevision"];const es=["name","getRoot","detachDomRoot","render","document","restore","limiterElement","_view","rootName","toolbar","addToolbar","_toolbarConfig","isFocused","view","fire","componentFactory","editable","_initToolbar","viewportOffset","config","focusTracker","viewportTopOffset","bind","ready","stickyPanel","init","editor","destroy","element","editing","_elementReplacer"];var ts,is;ts=es,is=338,function(e){for(;--e;)ts.push(ts.shift())}(++is);const ns=function(e,t){return es[e-=0]};class rs extends Cn.EditorUI{get[ns("0x10")](){return this._view}constructor(e,i){super(e),this[ns("0xa")]=i,this[ns("0xe")]=(0,Cn.normalizeToolbarConfig)(e[ns("0x16")].get(ns("0xc"))),this[ns("0x2")]=new t.ElementReplacer}get[ns("0x0")](){return this[ns("0x10")][ns("0x0")]}[ns("0x1c")](e){const t=this.editor,i=this[ns("0x10")],n=t[ns("0x1")][ns("0x10")],r=i.editable,o=n[ns("0x7")][ns("0x4")]();r[ns("0x3")]=o[ns("0xb")],i[ns("0x6")]();const s=r[ns("0x0")];this.setEditableElement(r[ns("0x3")],s),i[ns("0x13")][ns("0x19")](ns("0xf")).to(this[ns("0x17")]),n.attachDomRoot(s),this._elementReplacer.replace(e,this[ns("0x0")]),this[ns("0x14")](),this[ns("0x11")](ns("0x1a"))}destroy(){super[ns("0x1e")]();const e=this[ns("0x10")],t=this[ns("0x1d")].editing[ns("0x10")];this[ns("0x2")][ns("0x8")](),t[ns("0x5")](e[ns("0x13")][ns("0x3")]),e[ns("0x1e")]()}[ns("0x14")](){const e=this[ns("0x10")];e[ns("0x1b")][ns("0x19")]("isActive").to(this[ns("0x17")],ns("0xf")),e.stickyPanel[ns("0x9")]=e[ns("0x0")],e[ns("0x1b")].bind(ns("0x18")).to(this,ns("0x15"),(({top:e})=>e)),e[ns("0xc")].fillFromConfig(this[ns("0xe")],this[ns("0x12")]),this[ns("0xd")](e[ns("0xc")])}}var os=i(13),ss={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fn()(os.Z,ss);os.Z.locals;var as,cs,us=["content","toolbar","stickyPanel","_editable","shouldToolbarGroupWhenFull","add","editable","main"];as=us,cs=439,function(e){for(;--e;)as.push(as.shift())}(++cs);var ds=function(e,t){return us[e-=0]};class ls extends Cn.BoxedEditorUIView{get[ds("0x7")](){return this[ds("0x4")]}constructor(e,t,i={}){super(e),this[ds("0x3")]=new Cn.StickyPanelView(e),this[ds("0x2")]=new Cn.ToolbarView(e,{shouldGroupWhenFull:i[ds("0x5")]}),this[ds("0x4")]=new Cn.InlineEditableUIView(e,t)}render(){super.render(),this[ds("0x3")][ds("0x1")].add(this[ds("0x2")]),this.top.add(this[ds("0x3")]),this[ds("0x0")][ds("0x6")](this[ds("0x7")])}}const xs=["document","initialData","get","locale","view","data","_ui","init","sourceElement","config","create","createRoot","editing","fire","destroy","initPlugins"];var hs,fs;hs=xs,fs=326,function(e){for(;--e;)hs.push(hs.shift())}(++fs);const vs=function(e,t){return xs[e-=0]};class ms extends((0,e.DataApiMixin)((0,e.ElementApiMixin)(e.Editor))){get ui(){return this._ui}constructor(e,t){super(t),this[vs("0x2")]=e,this.model[vs("0xa")][vs("0x5")]();const i=new ls(this[vs("0xd")],this[vs("0x6")][vs("0xe")],{shouldToolbarGroupWhenFull:!0});this[vs("0x0")]=new rs(this,i)}destroy(){return this.updateSourceElement(),this.ui.destroy(),super[vs("0x8")]()}static async[vs("0x4")](e,t){const i=new this(e,t);return await i[vs("0x9")](),await i.ui[vs("0x1")](e),await i[vs("0xf")][vs("0x1")](i[vs("0x3")][vs("0xc")](vs("0xb"))||""),i[vs("0x7")]("ready"),i}}const ys=["RevisionHistoryUI","catch","isEnabled","RevisionTracker","editor","enqueueChange","revision-history-viewer-opened","getAttributeKeys","Users","isAnonymous","data","restoreRevision","insert","refreshPositioning","Restored","getRevision","adapter","addUser","showRevisionViewerCallback","roots","exitToEditing","_cleanUp","get","disableReadOnlyMode","destroy","error","RestrictedEditingMode","repository","display","define","refreshVisibility","enableReadOnlyMode","keys","push","name","createdAt","set","_recalculatePageBreaks","Annotations","addRevisionData","plugins","detachRoot","Autosave","addRoot","result","isAttached","revisionHistory.viewerContainer","long","commands","has","users","PaginationLookup","_enhanceShowRevisionViewerCallback","changesNavigation","create","revisionHistory.editorContainer","_viewerEditor","closeRevisionViewerCallback","revisionHistory.closeRevisionViewerCallback","_showRevisionViewer","_update","pluginName","getRevisionRootsAttributes","uiLanguage","revision-history-missing-configuration","RevisionViewer","getRevisions","numeric","block","none","toVersion","save","indexOf","toJSON","_getRevisionViewerEditorConfig","removeSelectionAttribute","RevisionViewerIntegration","bind","markers","requires","getUser","removeAttribute","getRoot","parse","lazyRoots","removeMarker","saveRevision","document","style","remove","init","model","revisionHistory.viewerEditorElement","RevisionHistory","config","locale","includes","then","revisionHistory","update","_restoreRevision","getRevisionData"];var gs,ps;gs=ys,ps=267,function(e){for(;--e;)gs.push(gs.shift())}(++ps);const bs=function(e,t){return ys[e-=0]},ks=[bs("0x27"),bs("0x41")];class _s extends e.Plugin{static get[bs("0x64")](){return bs("0xd")}constructor(e){super(e),this[bs("0x53")]="end"}}class ws extends e.Plugin{static get[bs("0x64")](){return bs("0x1e")}static get requires(){return[In,Kn]}constructor(e){if(super(e),!this[bs("0x2b")][bs("0x1f")][bs("0x3d")]("revisionHistory"))throw new t.CKEditorError(bs("0x1"),this);this._viewerEditor=null,this[bs("0x2b")].config[bs("0x44")]("revisionHistory.showRevisionViewerCallback",(e=>this._showRevisionViewer(e))),this[bs("0x2b")][bs("0x1f")].define(bs("0x61"),(e=>this._closeRevisionViewer(e))),this[bs("0x2b")].config[bs("0x44")]("revisionHistory.restoreRevisionCallback",(e=>this[bs("0x25")](e))),this._enhanceShowRevisionViewerCallback(),this._enhanceCloseRevisionViewerCallback()}set[bs("0x37")](e){this[bs("0x2b")][bs("0x4f")].get("RevisionTracker").adapter=e}get[bs("0x37")](){return this[bs("0x2b")][bs("0x4f")].get(bs("0x2a"))[bs("0x37")]}[bs("0x4e")](e){return this[bs("0x2b")][bs("0x4f")][bs("0x3d")](bs("0x2a"))[bs("0x4e")](e)}getRevision(e){return this[bs("0x2b")].plugins[bs("0x3d")]("RevisionsRepository")[bs("0x36")](e)}[bs("0x3")](e={toJSON:!1}){return this[bs("0x2b")][bs("0x4f")].get("RevisionsRepository")[bs("0x3")](e)}[bs("0xb")](){const i=this[bs("0x2b")],n=(0,r.sanitizeEditorConfig)(i,ks),o=i[bs("0x4f")][bs("0x3d")](bs("0x2a")),s=i.plugins[bs("0x3d")]("Users")[bs("0x59")];return n.toolbar=[bs("0x3b"),"restoreRevision",bs("0x5c")],delete n[bs("0x15")],n[bs("0x4f")][bs("0x48")](_s,br,Hr,class extends e.Plugin{static get[bs("0x10")](){return[br,bs("0x2f")]}[bs("0x1b")](){const e=this.editor[bs("0x4f")][bs("0x3d")](bs("0x2f"));for(const t of s)t[bs("0x30")]||e[bs("0x11")](t.id)||e[bs("0x38")](t);const n=o[bs("0x42")].getRevisions();let r=null;const a=this[bs("0x2b")][bs("0x4f")][bs("0x3d")]("RevisionViewer");a[bs("0x37")]=o.adapter,a[bs("0xe")](bs("0x29")).to(o),this[bs("0x2b")][bs("0x57")][bs("0x3d")](bs("0x32"))[bs("0xe")](bs("0x29")).to(i,"isReadOnly",(e=>!e));for(const e of n){const i=null===e.creator;if(i&&e.toVersion===e.fromVersion)continue;const n=e[bs("0xa")]();a[bs("0x4e")](n,((n,s,a)=>{if(i){if(r)r._update(n,s);else if(!s){const e=a[bs("0xa")]();e.id=(0,t.uid)(),o[bs("0x17")](e,a[bs("0x7")])[bs("0x22")]((e=>{r=e}))}}else e[bs("0x63")](n,s)}))}}},Qo),n}[bs("0x5b")](){const e=this[bs("0x2b")][bs("0x1f")].get(bs("0x23"))[bs("0x39")];this[bs("0x2b")][bs("0x1f")][bs("0x4b")]("revisionHistory.showRevisionViewerCallback",(async()=>{this[bs("0x2b")][bs("0x46")]("revision-history-viewer-opened");const t=this[bs("0x2b")].plugins[bs("0x3d")]("RevisionTracker");if(this[bs("0x2b")][bs("0x4f")].has(bs("0x51"))){const e=this[bs("0x2b")][bs("0x4f")].get(bs("0x51"));await e[bs("0x8")]()}else await t[bs("0x24")]();this.editor[bs("0x4f")].has(bs("0x5a"))&&this[bs("0x2b")].plugins[bs("0x3d")](bs("0x5a"))[bs("0x4c")]();const i=this[bs("0xb")]();return e(i).then((e=>(this[bs("0x5f")]=e,this.editor.plugins[bs("0x58")](bs("0x4d"))&&this[bs("0x2b")][bs("0x4f")].get("Annotations")[bs("0x45")](),e)))[bs("0x28")]((e=>(console[bs("0x40")](e),this[bs("0x2b")][bs("0x3e")](bs("0x2d")),null)))}))}_enhanceCloseRevisionViewerCallback(){const e=this[bs("0x2b")][bs("0x1f")].get(bs("0x23"))[bs("0x60")];this[bs("0x2b")].config[bs("0x4b")](bs("0x61"),(()=>(this.editor[bs("0x4f")][bs("0x58")](bs("0x5a"))&&this.editor.plugins[bs("0x3d")](bs("0x5a"))[bs("0x4c")](),this[bs("0x5f")][bs("0x4f")].get(bs("0x2"))[bs("0x3c")](),e(this[bs("0x5f")]).then((()=>{if(this.editor[bs("0x3e")]("revision-history-viewer-opened"),this[bs("0x5f")]=null,this.editor.plugins.has(bs("0x4d"))){const e=this[bs("0x2b")][bs("0x4f")][bs("0x3d")](bs("0x4d"));e[bs("0x45")](),e[bs("0x34")]()}})))))}[bs("0x62")](e){const t=this.editor[bs("0x1f")][bs("0x3d")](bs("0x5e")),i=this[bs("0x2b")][bs("0x1f")].get(bs("0x55")),n=this[bs("0x2b")].config.get(bs("0x1d"));return ms[bs("0x5d")](n,e)[bs("0x22")]((e=>(i[bs("0x19")].display=bs("0x5"),t[bs("0x19")][bs("0x43")]="none",e)))}_closeRevisionViewer(e){const t=this[bs("0x2b")][bs("0x1f")][bs("0x3d")](bs("0x5e"));return this[bs("0x2b")][bs("0x1f")][bs("0x3d")]("revisionHistory.viewerContainer").style.display=bs("0x6"),t[bs("0x19")][bs("0x43")]="",e[bs("0x3f")]()}async[bs("0x25")](e){const t=this[bs("0x2b")],i=this[bs("0x5f")][bs("0x4f")][bs("0x3d")]("RevisionViewer"),n=t[bs("0x4f")][bs("0x3d")](bs("0x2a")),r=i[bs("0x42")].getRevision(e);let o,s,a;try{o=await i[bs("0x26")](r),s=await i[bs("0x65")](r)}catch(e){return void console[bs("0x40")](e)}t.model.change((e=>{for(const i of Array.from(t[bs("0x1c")][bs("0xf")].getMarkersGroup("restrictedEditingException")))e[bs("0x16")](i)})),i.isReady=!1,t.model[bs("0x2c")]((e=>{e.setSelection(null),e[bs("0xc")](t[bs("0x1c")][bs("0x18")].selection[bs("0x2e")]());const i=Object[bs("0x47")](o);for(const n of t[bs("0x1c")][bs("0x18")][bs("0x3a")])"$graveyard"!=n.rootName&&n[bs("0x54")]()&&!i[bs("0x21")](n.rootName)&&e[bs("0x50")](n);for(const n of i){let i=t[bs("0x1c")].document[bs("0x13")](n);i&&i.isAttached()||(i=e[bs("0x52")](n));const r=s[n],a=Object[bs("0x47")](r),c=o[n];for(const t of i.getAttributeKeys())a.includes(t)||e[bs("0x12")](t,i);for(const t of a)e.setAttribute(t,s[n][t],i);e[bs("0x1a")](e.createRangeIn(i)),e[bs("0x33")](t[bs("0x31")][bs("0x14")](c,i),i,0)}}));const c=en(t[bs("0x20")],bs("0x35"));return a=r.name?-1==r[bs("0x49")][bs("0x9")](c)?c+": "+r[bs("0x49")]:r[bs("0x49")]:c+": "+r[bs("0x4a")].toLocaleDateString(t[bs("0x20")][bs("0x0")],{month:bs("0x56"),day:bs("0x4")})+", "+r.createdAt.toLocaleTimeString(t[bs("0x20")].uiLanguage,{hour:bs("0x4"),minute:"numeric"}),await n[bs("0x17")]({name:a}),i.isReady=!0,t[bs("0x1f")][bs("0x3d")](bs("0x23"))[bs("0x60")]()}}})(),(window.CKEditor5=window.CKEditor5||{}).revisionHistory=n})();
5
+ */(()=>{var e={616:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(758),r=i.n(n)()((function(e){return e[1]}));r.push([e.id,".ck.ck-revision-history-ui.ck-revision-history-ui__changes-navigation{align-items:center;display:flex;margin-left:auto}.ck.ck-revision-history-ui.ck-revision-history-ui__changes-navigation .ck-revision-history-ui__changes-navigation__wrapper{display:flex;margin-right:var(--ck-spacing-standard)}.ck.ck-revision-history-ui.ck-revision-history-ui__changes-navigation .ck-revision-history-ui__changes-navigation__label{font-weight:700;white-space:pre}.ck.ck-revision-history-ui.ck-revision-history-ui__changes-navigation .ck-revision-history-ui__changes-navigation__navigation{margin-left:var(--ck-spacing-small)}",""]);const o=r},732:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(758),r=i.n(n)()((function(e){return e[1]}));r.push([e.id,".ck{--ck-revision-history-revision-background-color:var(--ck-color-base-background);--ck-revision-history-revision-border-color:#47576b;--ck-revision-history-revision-box-shadow:0 1px 1px 1px #e6e6e6;--ck-revision-history-revision-author-icon-offset:20px;--ck-revision-history-revision-transitions:background 100ms ease-in,border 100ms ease-in;--ck-revision-history-revision-selected-text-color:var(--ck-color-base-background);--ck-revision-history-revision-selected-input-text-color-empty:var(--ck-color-base-background);--ck-revision-history-revision-selected-background-color:var(--ck-color-base-active);--ck-revision-history-revision-highlighted-background-color:#e0f1ff;--ck-revision-history-revision-highlighted-background-color-hover:#cce7ff;--ck-revision-history-revision-delete-confirmation-background:#fcc;--ck-revision-history-revision-delete-confirmation-active-button-background:#ffb3b3}.ck.ck-revision-history-sidebar__revision-wrapper .ck-revision-history-sidebar__revision{background:var(--ck-revision-history-revision-background-color);border-left:3px solid var(--ck-revision-history-revision-border-color);border-radius:var(--ck-border-radius);box-shadow:var(--ck-revision-history-revision-box-shadow);display:block;padding:var(--ck-spacing-large) calc(var(--ck-spacing-standard)*2);position:relative;transition:transform .3s ease;width:100%}.ck.ck-revision-history-sidebar__revision-wrapper .ck-revision-history-sidebar__revision:last-child{margin-bottom:0}.ck.ck-revision-history-sidebar__revision-wrapper .ck-revision-history-sidebar__revision .ck-revision-history-sidebar__revision__date{display:block;font-size:var(--ck-font-size-small);font-weight:700;opacity:.8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.ck.ck-revision-history-sidebar__revision-wrapper .ck-revision-history-sidebar__revision .ck-revision-history-sidebar__revision__controls-wrapper{align-items:flex-start;display:flex;flex-direction:row;margin:var(--ck-spacing-standard) 0 0}.ck.ck-revision-history-sidebar__revision-wrapper .ck-revision-history-sidebar__revision .ck-revision-history-sidebar__revision-authors{flex:0 1 auto;margin:0 0 0 var(--ck-revision-history-revision-author-icon-offset);min-width:0;padding:0}.ck.ck-revision-history-sidebar__revision-wrapper .ck-revision-history-sidebar__revision.ck-revision-history-sidebar__revision_highlighted,.ck.ck-revision-history-sidebar__revision-wrapper .ck-revision-history-sidebar__revision.ck-revision-history-sidebar__revision_selected{border-bottom-left-radius:0;border-left-color:transparent;border-top-left-radius:0;transform:translateX(calc(var(--ck-revision-history-sidebar-timeline-padding)*-1))}.ck.ck-revision-history-sidebar__revision-wrapper .ck-revision-history-sidebar__revision.ck-revision-history-sidebar__revision_selected{background:var(--ck-revision-history-revision-selected-background-color);color:var(--ck-revision-history-revision-selected-text-color)}.ck.ck-revision-history-sidebar__revision-wrapper .ck-revision-history-sidebar__revision.ck-revision-history-sidebar__revision_selected .ck-revision-history-sidebar__revision-name .ck-input{color:var(--ck-revision-history-revision-selected-text-color)}.ck.ck-revision-history-sidebar__revision-wrapper .ck-revision-history-sidebar__revision.ck-revision-history-sidebar__revision_selected .ck-revision-history-sidebar__revision-name .ck-input.ck-input-text_empty::placeholder{opacity:.7}.ck.ck-revision-history-sidebar__revision-wrapper .ck-revision-history-sidebar__revision.ck-revision-history-sidebar__revision_highlighted{background:var(--ck-revision-history-revision-highlighted-background-color)}.ck.ck-revision-history-sidebar__revision-wrapper .ck-revision-history-sidebar__revision.ck-revision-history-sidebar__actions_dropdown_open{z-index:var(--ck-z-default)}.ck.ck-revision-history-sidebar__revision-wrapper.ck-revision-history-sidebar__revision-wrapper_confirmation_visible .ck-revision-history-sidebar__revision{box-shadow:none;position:relative;transform:translate3d(-100%,0,0)}.ck.ck-revision-history-sidebar__revision-wrapper.ck-revision-history-sidebar__revision-wrapper_confirmation_visible .ck-revision-history-sidebar__revision,.ck.ck-revision-history-sidebar__revision-wrapper.ck-revision-history-sidebar__revision-wrapper_confirmation_visible .ck-revision-history-sidebar__revision *{--ck-revision-history-revision-background-color:transparent;--ck-revision-history-revision-selected-background-color:transparent;--ck-revision-history-revision-highlighted-background-color:transparent}.ck.ck-revision-history-sidebar__revision-wrapper .ck-thread__remove-confirm{align-items:center;background:var(--ck-revision-history-revision-delete-confirmation-background);border-radius:var(--ck-border-radius);box-shadow:var(--ck-revision-history-revision-box-shadow);display:flex;flex-direction:row;height:100%;justify-content:space-around;left:100%;position:absolute;top:0;user-select:none;width:100%}.ck.ck-revision-history-sidebar__revision-wrapper .ck-thread__remove-confirm .ck-thread__remove-confirm-inner{margin-top:var(--ck-spacing-small);text-align:center}.ck.ck-revision-history-sidebar__revision-wrapper .ck-thread__remove-confirm .ck-thread__remove-confirm-inner p{color:var(--ck-color-text);font-weight:700;margin:0}.ck.ck-revision-history-sidebar__revision-wrapper .ck-thread__remove-confirm .ck-thread__remove-confirm-inner .ck-thread__remove-confirm-actions{display:flex;flex-direction:row;justify-content:space-evenly}.ck.ck-revision-history-sidebar__revision-wrapper .ck-thread__remove-confirm .ck-thread__remove-confirm-inner .ck-thread__remove-confirm-actions .ck.ck-button:active,.ck.ck-revision-history-sidebar__revision-wrapper .ck-thread__remove-confirm .ck-thread__remove-confirm-inner .ck-thread__remove-confirm-actions .ck.ck-button:focus,.ck.ck-revision-history-sidebar__revision-wrapper .ck-thread__remove-confirm .ck-thread__remove-confirm-inner .ck-thread__remove-confirm-actions .ck.ck-button:hover{background:var(--ck-revision-history-revision-delete-confirmation-active-button-background)}.ck.ck-revision-history-sidebar__revision-wrapper .ck-thread__remove-confirm .ck-thread__remove-confirm-inner .ck-thread__remove-confirm-actions .ck.ck-button.ck-thread__remove-confirm-submit{color:var(--ck-color-button-save)}.ck.ck-revision-history-sidebar__revision-wrapper .ck-thread__remove-confirm .ck-thread__remove-confirm-inner .ck-thread__remove-confirm-actions .ck.ck-button.ck-thread__remove-confirm-cancel{color:var(--ck-color-button-cancel)}.ck.ck-revision-history-sidebar__revision-wrapper .ck-revision-history-sidebar__subrevisions{margin-left:var(--ck-spacing-large)}",""]);const o=r},966:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(758),r=i.n(n)()((function(e){return e[1]}));r.push([e.id,".ck.ck-revision-history-sidebar__revision .ck-revision-history-sidebar__revision__actions{display:none;position:absolute;right:var(--ck-spacing-small);top:var(--ck-spacing-small)}.ck.ck-revision-history-sidebar__revision .ck-revision-history-sidebar__revision__actions .ck-dropdown__button{min-height:unset;min-width:unset}.ck.ck-revision-history-sidebar__revision .ck-revision-history-sidebar__revision__actions .ck-dropdown__button .ck-button__icon{transform:scale(.7)}.ck.ck-revision-history-sidebar__revision .ck-revision-history-sidebar__revision__actions .ck-dropdown__arrow{display:none}.ck.ck-revision-history-sidebar__revision .ck-revision-history-sidebar__revision__actions .ck-list__item__danger{color:var(--ck-color-button-cancel)}.ck.ck-revision-history-sidebar__revision.ck-revision-history-sidebar__revision_selected .ck-revision-history-sidebar__revision__actions .ck-dropdown__button{color:var(--ck-color-base-background)}.ck.ck-revision-history-sidebar__revision.ck-revision-history-sidebar__revision_selected .ck-revision-history-sidebar__revision__actions .ck-dropdown__button.ck-on,.ck.ck-revision-history-sidebar__revision.ck-revision-history-sidebar__revision_selected .ck-revision-history-sidebar__revision__actions .ck-dropdown__button:hover{background:var(--ck-color-base-active-focus)}.ck.ck-revision-history-sidebar__revision.ck-revision-history-sidebar__revision_selected .ck-revision-history-sidebar__revision__actions .ck-dropdown__button.ck-on:hover,.ck.ck-revision-history-sidebar__revision.ck-revision-history-sidebar__revision_selected .ck-revision-history-sidebar__revision__actions .ck-dropdown__button:hover:hover{filter:brightness(95%)}.ck.ck-revision-history-sidebar__revision.ck-revision-history-sidebar__revision_highlighted .ck-revision-history-sidebar__revision__actions .ck-dropdown__button.ck-on,.ck.ck-revision-history-sidebar__revision.ck-revision-history-sidebar__revision_highlighted .ck-revision-history-sidebar__revision__actions .ck-dropdown__button:hover{background:var(--ck-revision-history-revision-highlighted-background-color-hover)}.ck.ck-revision-history-sidebar__revision.ck-revision-history-sidebar__revision_highlighted .ck-revision-history-sidebar__revision__actions .ck-dropdown__button.ck-on:hover,.ck.ck-revision-history-sidebar__revision.ck-revision-history-sidebar__revision_highlighted .ck-revision-history-sidebar__revision__actions .ck-dropdown__button:hover:hover{filter:brightness(95%)}.ck.ck-revision-history-sidebar__revision:hover:not(.ck-disabled) .ck-revision-history-sidebar__revision__actions,.ck.ck-revision-history-sidebar__revision:not(.ck-disabled) .ck-revision-history-sidebar__revision__actions.ck-on{display:block}",""]);const o=r},517:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(758),r=i.n(n)()((function(e){return e[1]}));r.push([e.id,".ck.ck-revision-history-sidebar__revision-author{display:block;position:relative;transition:var(--ck-revision-history-revision-transitions)}.ck.ck-revision-history-sidebar__revision-author .ck-revision-history-sidebar__revision-author__name{display:block;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.ck.ck-revision-history-sidebar__revision-author .ck-icon{height:10px;left:calc(var(--ck-revision-history-revision-author-icon-offset)*-1);position:absolute;top:3px;width:11px}.ck.ck-revision-history-sidebar__revision-author:not(:first-of-type) .ck-icon{display:none}",""]);const o=r},903:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(758),r=i.n(n)()((function(e){return e[1]}));r.push([e.id,".ck.ck-revision-history-sidebar__revision-name{display:block;font-size:1.2em;font-weight:700;left:calc(var(--ck-spacing-small)*-1);margin-right:30px;position:relative}.ck.ck-revision-history-sidebar__revision-name>.ck-labeled-field-view__input-wrapper>.ck-label{display:none}.ck.ck-revision-history-sidebar__revision-name>.ck-labeled-field-view__input-wrapper>.ck-input{background:transparent;border-radius:var(--ck-border-radius);color:inherit;font-family:inherit;font-size:var(--ck-font-size-normal);font-weight:700;min-height:auto;min-width:auto;padding:var(--ck-spacing-tiny) var(--ck-spacing-small);transition:var(--ck-revision-history-revision-transitions);width:100%}.ck.ck-revision-history-sidebar__revision-name>.ck-labeled-field-view__input-wrapper>.ck-input,.ck.ck-revision-history-sidebar__revision-name>.ck-labeled-field-view__input-wrapper>.ck-input:focus,.ck.ck-revision-history-sidebar__revision-name>.ck-labeled-field-view__input-wrapper>.ck-input[readonly]{background:transparent}.ck.ck-revision-history-sidebar__revision-name>.ck-labeled-field-view__input-wrapper>.ck-input:not(.ck-input_focused){border-color:transparent}.ck.ck-revision-history-sidebar__revision-name>.ck-labeled-field-view__input-wrapper>.ck-input::placeholder{color:inherit}.ck.ck-revision-history-sidebar__revision-name>.ck-labeled-field-view__input-wrapper>.ck-input[readonly]{pointer-events:none}",""]);const o=r},656:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(758),r=i.n(n)()((function(e){return e[1]}));r.push([e.id,".ck.ck-revision-history-save-revision-form{align-items:flex-start;display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-revision-history-save-revision-form .ck-labeled-field-view{display:inline-block}.ck.ck-revision-history-save-revision-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-revision-history-save-revision-form{flex-wrap:wrap}.ck.ck-revision-history-save-revision-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-revision-history-save-revision-form .ck-button{flex-basis:50%}}",""]);const o=r},377:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(758),r=i.n(n)()((function(e){return e[1]}));r.push([e.id,".ck{--ck-revision-history-sidebar-period-background:#ff5724;--ck-revision-history-sidebar-timeline-padding:var(--ck-spacing-large)}.ck.ck-revision-history-sidebar{display:flex;flex-direction:column}.ck.ck-revision-history-sidebar .ck-revision-history-sidebar__timeline{align-items:start;display:flex;flex-direction:column;font-size:var(--ck-font-size-base);height:100%;overflow-x:hidden;overflow-y:auto;padding:var(--ck-revision-history-sidebar-timeline-padding)}.ck.ck-revision-history-sidebar .ck-revision-history-sidebar__timeline.ck-disabled{filter:grayscale(1) opacity(var(--ck-disabled-opacity))}",""]);const o=r},589:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(758),r=i.n(n)()((function(e){return e[1]}));r.push([e.id,".ck.ck-revision-history-sidebar__header{--header-height:calc(var(--ck-ui-component-min-height) + var(--ck-spacing-small)*2 + 1px);align-items:center;border-bottom:1px solid var(--ck-color-toolbar-border);color:inherit;display:flex;flex-direction:row;font-family:inherit;font-weight:700;height:var(--header-height);line-height:var(--header-height);min-height:var(--header-height);overflow:hidden;padding:0 var(--ck-revision-history-sidebar-timeline-padding)}.ck.ck-revision-history-sidebar__header .ck-revision-history-sidebar__header__label{color:inherit;font-family:inherit;font-size:1.2em;font-weight:700}.ck.ck-revision-history-sidebar__header .ck-icon{margin-right:var(--ck-spacing-large)}",""]);const o=r},922:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(758),r=i.n(n)()((function(e){return e[1]}));r.push([e.id,".ck{--ck-revision-history-sidebar-revision-vertical-spacing:calc(var(--ck-spacing-standard)*2)}.ck.ck-revision-history-sidebar__time-period{width:100%}.ck.ck-revision-history-sidebar__time-period .ck-revision-history-sidebar__time-period__label{background:var(--ck-revision-history-sidebar-period-background);border-radius:var(--ck-border-radius);color:var(--ck-color-base-background);font-size:9px;font-weight:700;padding:var(--ck-spacing-tiny) var(--ck-spacing-standard);text-transform:uppercase}.ck.ck-revision-history-sidebar__time-period .ck-revision-history-sidebar__time-period__label:first-child{margin-top:var(--ck-spacing-standard)}.ck.ck-revision-history-sidebar__time-period .ck-revision-history-sidebar__time-period__revisions{display:flex;flex-direction:column}.ck.ck-revision-history-sidebar__time-period .ck-revision-history-sidebar__time-period__revisions .ck-revision-history-sidebar__revision-wrapper,.ck.ck-revision-history-sidebar__time-period:not(.ck-hidden)+.ck-revision-history-sidebar__time-period{margin-top:var(--ck-revision-history-sidebar-revision-vertical-spacing)}",""]);const o=r},752:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(758),r=i.n(n)()((function(e){return e[1]}));r.push([e.id,'.ck .ck-revision-change{border-top-left-radius:var(--ck-border-radius);outline:0;padding:var(--ck-spacing-small) var(--ck-spacing-large)}.ck .ck-revision-change>*{font-size:var(--ck-font-size-standard);vertical-align:bottom}.ck .ck-revision-change.ck-revision-change__add{border-left-color:var(--ck-color-suggestion-box-insertion-border)}.ck .ck-revision-change.ck-revision-change__remove{border-left-color:var(--ck-color-suggestion-box-deletion-border)}.ck .ck-revision-change .ck-revision-change__label{font-size:inherit;font-weight:700;vertical-align:inherit}.ck.ck-button.ck-revision-history-ui__back-to-editing{background:var(--ck-color-base-active);color:var(--ck-color-base-background)}.ck.ck-button.ck-revision-history-ui__back-to-editing:hover:not(.ck-disabled){background:var(--ck-color-base-active-focus)}.ck-content .ck-suggestion-preview-marker,.ck-content .ck-suggestion-preview-marker-split{opacity:.75}.ck-content .ck-suggestion-preview-marker-split:after{content:"¶"}.ck-content .ck-suggestion-preview-marker-merge{opacity:.75;text-decoration:line-through}.ck-content .ck-suggestion-preview-marker-merge:after{content:"¶"}.ck-content .ck-suggestion-preview-marker-deletion{text-decoration:line-through}.ck-content .ck-suggestion-marker-deletion-new:not(.ck-widget),.ck-content .ck-suggestion-marker-merge-new{--ck-color-suggestion-marker-deletion-border:none;--ck-color-suggestion-marker-deletion-border-active:none;--ck-color-suggestion-marker-deletion-background:none;--ck-color-suggestion-marker-deletion-background-active:none;--ck-color-suggestion-marker-deletion-stroke:rgba(122,31,54,.8);--ck-color-suggestion-widget-deletion-background:rgba(229,102,134,.03);--ck-color-suggestion-widget-deletion-background-active:rgba(196,33,74,.05)}.ck-content .ck-suggestion-marker-merge-new:after{color:inherit}.ck-content .ck-suggestion-marker-insertion-new,.ck-content .ck-suggestion-marker-split-new{opacity:.75}.ck-content .ck-suggestion-marker-deletion-new.ck-suggestion-marker--active:not(.table),.ck-content .ck-suggestion-marker-merge-new.ck-suggestion-marker--active{--ck-color-suggestion-marker-deletion-background-active:rgba(218,37,82,.08);--ck-color-suggestion-marker-deletion-stroke:#7a1f36;opacity:1}.ck-content .ck-suggestion-marker-insertion-new.ck-suggestion-marker--active,.ck-content .ck-suggestion-marker-split-new.ck-suggestion-marker--active{opacity:1}.ck.ck-editor__editable_inline.ck-revision-history-root-add{border:3px solid var(--ck-color-suggestion-marker-insertion-border)}.ck.ck-editor__editable_inline.ck-revision-history-root-add.ck-revision-history-root--active{border-color:var(--ck-color-suggestion-marker-insertion-border-active)}.ck.ck-editor__editable_inline.ck-revision-history-root-remove{border:3px solid var(--ck-color-suggestion-marker-deletion-border)}.ck.ck-editor__editable_inline.ck-revision-history-root-remove.ck-revision-history-root--active{border-color:var(--ck-color-suggestion-marker-deletion-border-active)}',""]);const o=r},271:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(758),r=i.n(n)()((function(e){return e[1]}));r.push([e.id,'.ck{--ck-revision-history-loading-overlay-transition-duration:.2s;--ck-revision-history-loading-overlay-transition-delay:0s;--ck-revision-history-loading-overlay-spinner-rotation-duration:1s;--ck-revision-history-loading-overlay-spinner-size:60px;--ck-revision-history-loading-overlay-visible-background:#fff}.ck.ck-editor__editable:after,.ck.ck-editor__editable:before{content:"";opacity:0;position:absolute;transition:opacity var(--ck-revision-history-loading-overlay-transition-duration) ease;transition-delay:0;visibility:hidden}.ck.ck-editor__editable:before{background:var(--ck-revision-history-loading-overlay-visible-background);height:100%;left:0;top:0;width:100%;z-index:var(--ck-z-default)}.ck.ck-editor__editable:after{animation:ck-revision-history-spinner-animation var(--ck-revision-history-loading-overlay-spinner-rotation-duration) linear infinite;border-radius:50%;border-right:3px solid transparent;border-top:3px solid var(--ck-color-base-text);box-sizing:border-box;height:var(--ck-revision-history-loading-overlay-spinner-size);left:50%;top:50%;transform:translate(-50%,-50%);width:var(--ck-revision-history-loading-overlay-spinner-size);z-index:var(--ck-z-default)}.ck.ck-editor__editable.ck-editor__editable__loading-overlay,.ck.ck-editor__editable.ck-editor__editable__overlay{min-height:calc(var(--ck-revision-history-loading-overlay-spinner-size) + var(--ck-spacing-large)*2);position:relative}.ck.ck-editor__editable.ck-editor__editable__loading-overlay:after,.ck.ck-editor__editable.ck-editor__editable__loading-overlay:before,.ck.ck-editor__editable.ck-editor__editable__overlay:after,.ck.ck-editor__editable.ck-editor__editable__overlay:before{opacity:.8;transition-delay:var(--ck-revision-history-loading-overlay-transition-delay);visibility:visible}.ck.ck-editor__editable.ck-editor__editable__overlay:after{visibility:hidden}@keyframes ck-revision-history-spinner-animation{0%{transform:translate(-50%,-50%) rotate(0deg)}to{transform:translate(-50%,-50%) rotate(1turn)}}',""]);const o=r},13:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(758),r=i.n(n)()((function(e){return e[1]}));r.push([e.id,".ck.ck-editor{position:relative}.ck.ck-editor .ck-editor__top .ck-sticky-panel .ck-toolbar{z-index:var(--ck-z-modal)}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-bottom-width:0}.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar{border-bottom-width:1px;border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:0}.ck.ck-editor__main>.ck-editor__editable{background:var(--ck-color-base-background);border-radius:0}.ck-rounded-corners .ck.ck-editor__main>.ck-editor__editable,.ck.ck-editor__main>.ck-editor__editable.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}.ck.ck-editor__main>.ck-editor__editable:not(.ck-focused){border-color:var(--ck-color-base-border)}",""]);const o=r},769:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o});var n=i(758),r=i.n(n)()((function(e){return e[1]}));r.push([e.id,'.ck-vertical-form .ck-button:after{bottom:-1px;content:"";position:absolute;right:-1px;top:-1px;width:0;z-index:1}.ck-vertical-form .ck-button:focus:after{display:none}@media screen and (max-width:600px){.ck.ck-responsive-form .ck-button:after{bottom:-1px;content:"";position:absolute;right:-1px;top:-1px;width:0;z-index:1}.ck.ck-responsive-form .ck-button:focus:after{display:none}}.ck-vertical-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form{padding:var(--ck-spacing-large)}.ck.ck-responsive-form:focus{outline:none}[dir=ltr] .ck.ck-responsive-form>:not(:first-child),[dir=rtl] .ck.ck-responsive-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-responsive-form{padding:0;width:calc(var(--ck-input-width)*.8)}.ck.ck-responsive-form .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) 0}.ck.ck-responsive-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-responsive-form .ck-labeled-field-view .ck-labeled-field-view__error{white-space:normal}.ck.ck-responsive-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form>.ck-button:last-child,.ck.ck-responsive-form>.ck-button:nth-last-child(2){border-radius:0;margin-top:var(--ck-spacing-large);padding:var(--ck-spacing-standard)}.ck.ck-responsive-form>.ck-button:last-child:not(:focus),.ck.ck-responsive-form>.ck-button:nth-last-child(2):not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-responsive-form>.ck-button:last-child,[dir=ltr] .ck.ck-responsive-form>.ck-button:nth-last-child(2),[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2){margin-left:0}[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child:last-of-type,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2):last-of-type{border-right:1px solid var(--ck-color-base-border)}}',""]);const o=r},758:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var i=e(t);return t[2]?"@media ".concat(t[2]," {").concat(i,"}"):i})).join("")},t.i=function(e,i,n){"string"==typeof e&&(e=[[null,e,""]]);var r={};if(n)for(var o=0;o<this.length;o++){var s=this[o][0];null!=s&&(r[s]=!0)}for(var a=0;a<e.length;a++){var c=[].concat(e[a]);n&&r[c[0]]||(i&&(c[2]?c[2]="".concat(i," and ").concat(c[2]):c[2]=i),t.push(c))}},t}},810:(e,t)=>{"use strict";function i(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function n(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function a(e,t,i){return a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,i){var n=[null];n.push.apply(n,t);var r=new(Function.bind.apply(e,n));return i&&s(r,i.prototype),r},a.apply(null,arguments)}function c(e){var t="function"==typeof Map?new Map:void 0;return c=function(e){if(null===e||(i=e,-1===Function.toString.call(i).indexOf("[native code]")))return e;var i;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return a(e,arguments,o(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),s(n,e)},c(e)}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function d(e){var t=0;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(e){if("string"==typeof e)return u(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(i):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?u(e,t):void 0}}(e)))return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}var x=function(e){function t(){return e.apply(this,arguments)||this}return r(t,e),t}(c(Error)),l=function(e){function t(t){return e.call(this,"Invalid DateTime: "+t.toMessage())||this}return r(t,e),t}(x),h=function(e){function t(t){return e.call(this,"Invalid Interval: "+t.toMessage())||this}return r(t,e),t}(x),f=function(e){function t(t){return e.call(this,"Invalid Duration: "+t.toMessage())||this}return r(t,e),t}(x),v=function(e){function t(){return e.apply(this,arguments)||this}return r(t,e),t}(x),m=function(e){function t(t){return e.call(this,"Invalid unit "+t)||this}return r(t,e),t}(x),g=function(e){function t(){return e.apply(this,arguments)||this}return r(t,e),t}(x),y=function(e){function t(){return e.call(this,"Zone is an abstract class")||this}return r(t,e),t}(x),p="numeric",b="short",k="long",_={year:p,month:p,day:p},w={year:p,month:b,day:p},S={year:p,month:b,day:p,weekday:b},O={year:p,month:k,day:p},R={year:p,month:k,day:p,weekday:k},T={hour:p,minute:p},I={hour:p,minute:p,second:p},N={hour:p,minute:p,second:p,timeZoneName:b},V={hour:p,minute:p,second:p,timeZoneName:k},E={hour:p,minute:p,hour12:!1},M={hour:p,minute:p,second:p,hour12:!1},A={hour:p,minute:p,second:p,hour12:!1,timeZoneName:b},D={hour:p,minute:p,second:p,hour12:!1,timeZoneName:k},C={year:p,month:p,day:p,hour:p,minute:p},j={year:p,month:p,day:p,hour:p,minute:p,second:p},F={year:p,month:b,day:p,hour:p,minute:p},L={year:p,month:b,day:p,hour:p,minute:p,second:p},P={year:p,month:b,day:p,weekday:b,hour:p,minute:p},z={year:p,month:k,day:p,hour:p,minute:p,timeZoneName:b},Z={year:p,month:k,day:p,hour:p,minute:p,second:p,timeZoneName:b},U={year:p,month:k,day:p,weekday:k,hour:p,minute:p,timeZoneName:k},H={year:p,month:k,day:p,weekday:k,hour:p,minute:p,second:p,timeZoneName:k};function q(e){return void 0===e}function B(e){return"number"==typeof e}function W(e){return"number"==typeof e&&e%1==0}function J(){try{return"undefined"!=typeof Intl&&Intl.DateTimeFormat}catch(e){return!1}}function G(){return!q(Intl.DateTimeFormat.prototype.formatToParts)}function Y(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function $(e,t,i){if(0!==e.length)return e.reduce((function(e,n){var r=[t(n),n];return e&&i(e[0],r[0])===e[0]?e:r}),null)[1]}function K(e,t){return t.reduce((function(t,i){return t[i]=e[i],t}),{})}function X(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Q(e,t,i){return W(e)&&e>=t&&e<=i}function ee(e,t){void 0===t&&(t=2);var i=e<0?"-":"",n=i?-1*e:e;return""+i+(n.toString().length<t?("0".repeat(t)+n).slice(-t):n.toString())}function te(e){return q(e)||null===e||""===e?void 0:parseInt(e,10)}function ie(e){if(!q(e)&&null!==e&&""!==e){var t=1e3*parseFloat("0."+e);return Math.floor(t)}}function ne(e,t,i){void 0===i&&(i=!1);var n=Math.pow(10,t);return(i?Math.trunc:Math.round)(e*n)/n}function re(e){return e%4==0&&(e%100!=0||e%400==0)}function oe(e){return re(e)?366:365}function se(e,t){var i=function(e,t){return e-t*Math.floor(e/t)}(t-1,12)+1;return 2===i?re(e+(t-i)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][i-1]}function ae(e){var t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t)).setUTCFullYear(t.getUTCFullYear()-1900),+t}function ce(e){var t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,i=e-1,n=(i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400))%7;return 4===t||3===n?53:52}function ue(e){return e>99?e:e>60?1900+e:2e3+e}function de(e,t,i,n){void 0===n&&(n=null);var r=new Date(e),o={hour12:!1,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(o.timeZone=n);var s=Object.assign({timeZoneName:t},o),a=J();if(a&&G()){var c=new Intl.DateTimeFormat(i,s).formatToParts(r).find((function(e){return"timezonename"===e.type.toLowerCase()}));return c?c.value:null}if(a){var u=new Intl.DateTimeFormat(i,o).format(r);return new Intl.DateTimeFormat(i,s).format(r).substring(u.length).replace(/^[, \u200e]+/,"")}return null}function xe(e,t){var i=parseInt(e,10);Number.isNaN(i)&&(i=0);var n=parseInt(t,10)||0;return 60*i+(i<0||Object.is(i,-0)?-n:n)}function le(e){var t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new g("Invalid unit value "+e);return t}function he(e,t,i){var n={};for(var r in e)if(X(e,r)){if(i.indexOf(r)>=0)continue;var o=e[r];if(null==o)continue;n[t(r)]=le(o)}return n}function fe(e,t){var i=Math.trunc(Math.abs(e/60)),n=Math.trunc(Math.abs(e%60)),r=e>=0?"+":"-";switch(t){case"short":return""+r+ee(i,2)+":"+ee(n,2);case"narrow":return""+r+i+(n>0?":"+n:"");case"techie":return""+r+ee(i,2)+ee(n,2);default:throw new RangeError("Value format "+t+" is out of range for property format")}}function ve(e){return K(e,["hour","minute","second","millisecond"])}var me=/[A-Za-z_+-]{1,256}(:?\/[A-Za-z_+-]{1,256}(\/[A-Za-z_+-]{1,256})?)?/;function ge(e){return JSON.stringify(e,Object.keys(e).sort())}var ye=["January","February","March","April","May","June","July","August","September","October","November","December"],pe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],be=["J","F","M","A","M","J","J","A","S","O","N","D"];function ke(e){switch(e){case"narrow":return[].concat(be);case"short":return[].concat(pe);case"long":return[].concat(ye);case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var _e=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],we=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Se=["M","T","W","T","F","S","S"];function Oe(e){switch(e){case"narrow":return[].concat(Se);case"short":return[].concat(we);case"long":return[].concat(_e);case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var Re=["AM","PM"],Te=["Before Christ","Anno Domini"],Ie=["BC","AD"],Ne=["B","A"];function Ve(e){switch(e){case"narrow":return[].concat(Ne);case"short":return[].concat(Ie);case"long":return[].concat(Te);default:return null}}function Ee(e,t){for(var i,n="",r=d(e);!(i=r()).done;){var o=i.value;o.literal?n+=o.val:n+=t(o.val)}return n}var Me={D:_,DD:w,DDD:O,DDDD:R,t:T,tt:I,ttt:N,tttt:V,T:E,TT:M,TTT:A,TTTT:D,f:C,ff:F,fff:z,ffff:U,F:j,FF:L,FFF:Z,FFFF:H},Ae=function(){function e(e,t){this.opts=t,this.loc=e,this.systemLoc=null}e.create=function(t,i){return void 0===i&&(i={}),new e(t,i)},e.parseFormat=function(e){for(var t=null,i="",n=!1,r=[],o=0;o<e.length;o++){var s=e.charAt(o);"'"===s?(i.length>0&&r.push({literal:n,val:i}),t=null,i="",n=!n):n||s===t?i+=s:(i.length>0&&r.push({literal:!1,val:i}),i=s,t=s)}return i.length>0&&r.push({literal:n,val:i}),r},e.macroTokenToFormatOpts=function(e){return Me[e]};var t=e.prototype;return t.formatWithSystemDefault=function(e,t){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,Object.assign({},this.opts,t)).format()},t.formatDateTime=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,Object.assign({},this.opts,t)).format()},t.formatDateTimeParts=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,Object.assign({},this.opts,t)).formatToParts()},t.resolvedOptions=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,Object.assign({},this.opts,t)).resolvedOptions()},t.num=function(e,t){if(void 0===t&&(t=0),this.opts.forceSimple)return ee(e,t);var i=Object.assign({},this.opts);return t>0&&(i.padTo=t),this.loc.numberFormatter(i).format(e)},t.formatDateTimeFromString=function(t,i){var n=this,r="en"===this.loc.listingMode(),o=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar&&G(),s=function(e,i){return n.loc.extract(t,e,i)},a=function(e){return t.isOffsetFixed&&0===t.offset&&e.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,e.format):""},c=function(){return r?function(e){return Re[e.hour<12?0:1]}(t):s({hour:"numeric",hour12:!0},"dayperiod")},u=function(e,i){return r?function(e,t){return ke(t)[e.month-1]}(t,e):s(i?{month:e}:{month:e,day:"numeric"},"month")},d=function(e,i){return r?function(e,t){return Oe(t)[e.weekday-1]}(t,e):s(i?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday")},x=function(e){return r?function(e,t){return Ve(t)[e.year<0?0:1]}(t,e):s({era:e},"era")};return Ee(e.parseFormat(i),(function(i){switch(i){case"S":return n.num(t.millisecond);case"u":case"SSS":return n.num(t.millisecond,3);case"s":return n.num(t.second);case"ss":return n.num(t.second,2);case"m":return n.num(t.minute);case"mm":return n.num(t.minute,2);case"h":return n.num(t.hour%12==0?12:t.hour%12);case"hh":return n.num(t.hour%12==0?12:t.hour%12,2);case"H":return n.num(t.hour);case"HH":return n.num(t.hour,2);case"Z":return a({format:"narrow",allowZ:n.opts.allowZ});case"ZZ":return a({format:"short",allowZ:n.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:n.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:n.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:n.loc.locale});case"z":return t.zoneName;case"a":return c();case"d":return o?s({day:"numeric"},"day"):n.num(t.day);case"dd":return o?s({day:"2-digit"},"day"):n.num(t.day,2);case"c":case"E":return n.num(t.weekday);case"ccc":return d("short",!0);case"cccc":return d("long",!0);case"ccccc":return d("narrow",!0);case"EEE":return d("short",!1);case"EEEE":return d("long",!1);case"EEEEE":return d("narrow",!1);case"L":return o?s({month:"numeric",day:"numeric"},"month"):n.num(t.month);case"LL":return o?s({month:"2-digit",day:"numeric"},"month"):n.num(t.month,2);case"LLL":return u("short",!0);case"LLLL":return u("long",!0);case"LLLLL":return u("narrow",!0);case"M":return o?s({month:"numeric"},"month"):n.num(t.month);case"MM":return o?s({month:"2-digit"},"month"):n.num(t.month,2);case"MMM":return u("short",!1);case"MMMM":return u("long",!1);case"MMMMM":return u("narrow",!1);case"y":return o?s({year:"numeric"},"year"):n.num(t.year);case"yy":return o?s({year:"2-digit"},"year"):n.num(t.year.toString().slice(-2),2);case"yyyy":return o?s({year:"numeric"},"year"):n.num(t.year,4);case"yyyyyy":return o?s({year:"numeric"},"year"):n.num(t.year,6);case"G":return x("short");case"GG":return x("long");case"GGGGG":return x("narrow");case"kk":return n.num(t.weekYear.toString().slice(-2),2);case"kkkk":return n.num(t.weekYear,4);case"W":return n.num(t.weekNumber);case"WW":return n.num(t.weekNumber,2);case"o":return n.num(t.ordinal);case"ooo":return n.num(t.ordinal,3);case"q":return n.num(t.quarter);case"qq":return n.num(t.quarter,2);case"X":return n.num(Math.floor(t.ts/1e3));case"x":return n.num(t.ts);default:return function(i){var r=e.macroTokenToFormatOpts(i);return r?n.formatWithSystemDefault(t,r):i}(i)}}))},t.formatDurationFromString=function(t,i){var n,r=this,o=function(e){switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"M":return"month";case"y":return"year";default:return null}},s=e.parseFormat(i),a=s.reduce((function(e,t){var i=t.literal,n=t.val;return i?e:e.concat(n)}),[]),c=t.shiftTo.apply(t,a.map(o).filter((function(e){return e})));return Ee(s,(n=c,function(e){var t=o(e);return t?r.num(n.get(t),e.length):e}))},e}(),De=function(){function e(e,t){this.reason=e,this.explanation=t}return e.prototype.toMessage=function(){return this.explanation?this.reason+": "+this.explanation:this.reason},e}(),Ce=function(){function e(){}var t=e.prototype;return t.offsetName=function(e,t){throw new y},t.formatOffset=function(e,t){throw new y},t.offset=function(e){throw new y},t.equals=function(e){throw new y},n(e,[{key:"type",get:function(){throw new y}},{key:"name",get:function(){throw new y}},{key:"universal",get:function(){throw new y}},{key:"isValid",get:function(){throw new y}}]),e}(),je=null,Fe=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var i=t.prototype;return i.offsetName=function(e,t){return de(e,t.format,t.locale)},i.formatOffset=function(e,t){return fe(this.offset(e),t)},i.offset=function(e){return-new Date(e).getTimezoneOffset()},i.equals=function(e){return"local"===e.type},n(t,[{key:"type",get:function(){return"local"}},{key:"name",get:function(){return J()?(new Intl.DateTimeFormat).resolvedOptions().timeZone:"local"}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return!0}}],[{key:"instance",get:function(){return null===je&&(je=new t),je}}]),t}(Ce),Le=RegExp("^"+me.source+"$"),Pe={};var ze={year:0,month:1,day:2,hour:3,minute:4,second:5};var Ze={},Ue=function(e){function t(i){var n;return(n=e.call(this)||this).zoneName=i,n.valid=t.isValidZone(i),n}r(t,e),t.create=function(e){return Ze[e]||(Ze[e]=new t(e)),Ze[e]},t.resetCache=function(){Ze={},Pe={}},t.isValidSpecifier=function(e){return!(!e||!e.match(Le))},t.isValidZone=function(e){try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}},t.parseGMTOffset=function(e){if(e){var t=e.match(/^Etc\/GMT(0|[+-]\d{1,2})$/i);if(t)return-60*parseInt(t[1])}return null};var i=t.prototype;return i.offsetName=function(e,t){return de(e,t.format,t.locale,this.name)},i.formatOffset=function(e,t){return fe(this.offset(e),t)},i.offset=function(e){var t=new Date(e);if(isNaN(t))return NaN;var i,n=(i=this.name,Pe[i]||(Pe[i]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:i,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),Pe[i]),r=n.formatToParts?function(e,t){for(var i=e.formatToParts(t),n=[],r=0;r<i.length;r++){var o=i[r],s=o.type,a=o.value,c=ze[s];q(c)||(n[c]=parseInt(a,10))}return n}(n,t):function(e,t){var i=e.format(t).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(i),r=n[1],o=n[2];return[n[3],r,o,n[4],n[5],n[6]]}(n,t),o=r[0],s=r[1],a=r[2],c=r[3],u=+t,d=u%1e3;return(ae({year:o,month:s,day:a,hour:24===c?0:c,minute:r[4],second:r[5],millisecond:0})-(u-=d>=0?d:1e3+d))/6e4},i.equals=function(e){return"iana"===e.type&&e.name===this.name},n(t,[{key:"type",get:function(){return"iana"}},{key:"name",get:function(){return this.zoneName}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return this.valid}}]),t}(Ce),He=null,qe=function(e){function t(t){var i;return(i=e.call(this)||this).fixed=t,i}r(t,e),t.instance=function(e){return 0===e?t.utcInstance:new t(e)},t.parseSpecifier=function(e){if(e){var i=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(i)return new t(xe(i[1],i[2]))}return null},n(t,null,[{key:"utcInstance",get:function(){return null===He&&(He=new t(0)),He}}]);var i=t.prototype;return i.offsetName=function(){return this.name},i.formatOffset=function(e,t){return fe(this.fixed,t)},i.offset=function(){return this.fixed},i.equals=function(e){return"fixed"===e.type&&e.fixed===this.fixed},n(t,[{key:"type",get:function(){return"fixed"}},{key:"name",get:function(){return 0===this.fixed?"UTC":"UTC"+fe(this.fixed,"narrow")}},{key:"universal",get:function(){return!0}},{key:"isValid",get:function(){return!0}}]),t}(Ce),Be=function(e){function t(t){var i;return(i=e.call(this)||this).zoneName=t,i}r(t,e);var i=t.prototype;return i.offsetName=function(){return null},i.formatOffset=function(){return""},i.offset=function(){return NaN},i.equals=function(){return!1},n(t,[{key:"type",get:function(){return"invalid"}},{key:"name",get:function(){return this.zoneName}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return!1}}]),t}(Ce);function We(e,t){var i;if(q(e)||null===e)return t;if(e instanceof Ce)return e;if("string"==typeof e){var n=e.toLowerCase();return"local"===n?t:"utc"===n||"gmt"===n?qe.utcInstance:null!=(i=Ue.parseGMTOffset(e))?qe.instance(i):Ue.isValidSpecifier(n)?Ue.create(e):qe.parseSpecifier(n)||new Be(e)}return B(e)?qe.instance(e):"object"==typeof e&&e.offset&&"number"==typeof e.offset?e:new Be(e)}var Je=function(){return Date.now()},Ge=null,Ye=null,$e=null,Ke=null,Xe=!1,Qe=function(){function e(){}return e.resetCaches=function(){dt.resetCache(),Ue.resetCache()},n(e,null,[{key:"now",get:function(){return Je},set:function(e){Je=e}},{key:"defaultZoneName",get:function(){return e.defaultZone.name},set:function(e){Ge=e?We(e):null}},{key:"defaultZone",get:function(){return Ge||Fe.instance}},{key:"defaultLocale",get:function(){return Ye},set:function(e){Ye=e}},{key:"defaultNumberingSystem",get:function(){return $e},set:function(e){$e=e}},{key:"defaultOutputCalendar",get:function(){return Ke},set:function(e){Ke=e}},{key:"throwOnInvalid",get:function(){return Xe},set:function(e){Xe=e}}]),e}(),et={};function tt(e,t){void 0===t&&(t={});var i=JSON.stringify([e,t]),n=et[i];return n||(n=new Intl.DateTimeFormat(e,t),et[i]=n),n}var it={};var nt={};function rt(e,t){void 0===t&&(t={});var i=t,n=(i.base,function(e,t){if(null==e)return{};var i,n,r={},o=Object.keys(e);for(n=0;n<o.length;n++)i=o[n],t.indexOf(i)>=0||(r[i]=e[i]);return r}(i,["base"])),r=JSON.stringify([e,n]),o=nt[r];return o||(o=new Intl.RelativeTimeFormat(e,t),nt[r]=o),o}var ot=null;function st(e,t,i,n,r){var o=e.listingMode(i);return"error"===o?null:"en"===o?n(t):r(t)}var at=function(){function e(e,t,i){if(this.padTo=i.padTo||0,this.floor=i.floor||!1,!t&&J()){var n={useGrouping:!1};i.padTo>0&&(n.minimumIntegerDigits=i.padTo),this.inf=function(e,t){void 0===t&&(t={});var i=JSON.stringify([e,t]),n=it[i];return n||(n=new Intl.NumberFormat(e,t),it[i]=n),n}(e,n)}}return e.prototype.format=function(e){if(this.inf){var t=this.floor?Math.floor(e):e;return this.inf.format(t)}return ee(this.floor?Math.floor(e):ne(e,3),this.padTo)},e}(),ct=function(){function e(e,t,i){var n;if(this.opts=i,this.hasIntl=J(),e.zone.universal&&this.hasIntl){var r=e.offset/60*-1,o=r>=0?"Etc/GMT+"+r:"Etc/GMT"+r,s=Ue.isValidZone(o);0!==e.offset&&s?(n=o,this.dt=e):(n="UTC",i.timeZoneName?this.dt=e:this.dt=0===e.offset?e:hn.fromMillis(e.ts+60*e.offset*1e3))}else"local"===e.zone.type?this.dt=e:(this.dt=e,n=e.zone.name);if(this.hasIntl){var a=Object.assign({},this.opts);n&&(a.timeZone=n),this.dtf=tt(t,a)}}var t=e.prototype;return t.format=function(){if(this.hasIntl)return this.dtf.format(this.dt.toJSDate());var e=function(e){var t="EEEE, LLLL d, yyyy, h:mm a";switch(ge(K(e,["weekday","era","year","month","day","hour","minute","second","timeZoneName","hour12"]))){case ge(_):return"M/d/yyyy";case ge(w):return"LLL d, yyyy";case ge(S):return"EEE, LLL d, yyyy";case ge(O):return"LLLL d, yyyy";case ge(R):return"EEEE, LLLL d, yyyy";case ge(T):return"h:mm a";case ge(I):return"h:mm:ss a";case ge(N):case ge(V):return"h:mm a";case ge(E):return"HH:mm";case ge(M):return"HH:mm:ss";case ge(A):case ge(D):return"HH:mm";case ge(C):return"M/d/yyyy, h:mm a";case ge(F):return"LLL d, yyyy, h:mm a";case ge(z):return"LLLL d, yyyy, h:mm a";case ge(U):return t;case ge(j):return"M/d/yyyy, h:mm:ss a";case ge(L):return"LLL d, yyyy, h:mm:ss a";case ge(P):return"EEE, d LLL yyyy, h:mm a";case ge(Z):return"LLLL d, yyyy, h:mm:ss a";case ge(H):return"EEEE, LLLL d, yyyy, h:mm:ss a";default:return t}}(this.opts),t=dt.create("en-US");return Ae.create(t).formatDateTimeFromString(this.dt,e)},t.formatToParts=function(){return this.hasIntl&&G()?this.dtf.formatToParts(this.dt.toJSDate()):[]},t.resolvedOptions=function(){return this.hasIntl?this.dtf.resolvedOptions():{locale:"en-US",numberingSystem:"latn",outputCalendar:"gregory"}},e}(),ut=function(){function e(e,t,i){this.opts=Object.assign({style:"long"},i),!t&&Y()&&(this.rtf=rt(e,i))}var t=e.prototype;return t.format=function(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,i,n){void 0===i&&(i="always"),void 0===n&&(n=!1);var r={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===i&&o){var s="days"===e;switch(t){case 1:return s?"tomorrow":"next "+r[e][0];case-1:return s?"yesterday":"last "+r[e][0];case 0:return s?"today":"this "+r[e][0]}}var a=Object.is(t,-0)||t<0,c=Math.abs(t),u=1===c,d=r[e],x=n?u?d[1]:d[2]||d[1]:u?r[e][0]:e;return a?c+" "+x+" ago":"in "+c+" "+x}(t,e,this.opts.numeric,"long"!==this.opts.style)},t.formatToParts=function(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]},e}(),dt=function(){function e(e,t,i,n){var r=function(e){var t=e.indexOf("-u-");if(-1===t)return[e];var i,n=e.substring(0,t);try{i=tt(e).resolvedOptions()}catch(e){i=tt(n).resolvedOptions()}var r=i;return[n,r.numberingSystem,r.calendar]}(e),o=r[0],s=r[1],a=r[2];this.locale=o,this.numberingSystem=t||s||null,this.outputCalendar=i||a||null,this.intl=function(e,t,i){return J()?i||t?(e+="-u",i&&(e+="-ca-"+i),t&&(e+="-nu-"+t),e):e:[]}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=n,this.fastNumbersCached=null}e.fromOpts=function(t){return e.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)},e.create=function(t,i,n,r){void 0===r&&(r=!1);var o=t||Qe.defaultLocale;return new e(o||(r?"en-US":function(){if(ot)return ot;if(J()){var e=(new Intl.DateTimeFormat).resolvedOptions().locale;return ot=e&&"und"!==e?e:"en-US"}return ot="en-US"}()),i||Qe.defaultNumberingSystem,n||Qe.defaultOutputCalendar,o)},e.resetCache=function(){ot=null,et={},it={},nt={}},e.fromObject=function(t){var i=void 0===t?{}:t,n=i.locale,r=i.numberingSystem,o=i.outputCalendar;return e.create(n,r,o)};var t=e.prototype;return t.listingMode=function(e){void 0===e&&(e=!0);var t=J()&&G(),i=this.isEnglish(),n=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return t||i&&n||e?!t||i&&n?"en":"intl":"error"},t.clone=function(t){return t&&0!==Object.getOwnPropertyNames(t).length?e.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1):this},t.redefaultToEN=function(e){return void 0===e&&(e={}),this.clone(Object.assign({},e,{defaultToEN:!0}))},t.redefaultToSystem=function(e){return void 0===e&&(e={}),this.clone(Object.assign({},e,{defaultToEN:!1}))},t.months=function(e,t,i){var n=this;return void 0===t&&(t=!1),void 0===i&&(i=!0),st(this,e,i,ke,(function(){var i=t?{month:e,day:"numeric"}:{month:e},r=t?"format":"standalone";return n.monthsCache[r][e]||(n.monthsCache[r][e]=function(e){for(var t=[],i=1;i<=12;i++){var n=hn.utc(2016,i,1);t.push(e(n))}return t}((function(e){return n.extract(e,i,"month")}))),n.monthsCache[r][e]}))},t.weekdays=function(e,t,i){var n=this;return void 0===t&&(t=!1),void 0===i&&(i=!0),st(this,e,i,Oe,(function(){var i=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},r=t?"format":"standalone";return n.weekdaysCache[r][e]||(n.weekdaysCache[r][e]=function(e){for(var t=[],i=1;i<=7;i++){var n=hn.utc(2016,11,13+i);t.push(e(n))}return t}((function(e){return n.extract(e,i,"weekday")}))),n.weekdaysCache[r][e]}))},t.meridiems=function(e){var t=this;return void 0===e&&(e=!0),st(this,void 0,e,(function(){return Re}),(function(){if(!t.meridiemCache){var e={hour:"numeric",hour12:!0};t.meridiemCache=[hn.utc(2016,11,13,9),hn.utc(2016,11,13,19)].map((function(i){return t.extract(i,e,"dayperiod")}))}return t.meridiemCache}))},t.eras=function(e,t){var i=this;return void 0===t&&(t=!0),st(this,e,t,Ve,(function(){var t={era:e};return i.eraCache[e]||(i.eraCache[e]=[hn.utc(-40,1,1),hn.utc(2017,1,1)].map((function(e){return i.extract(e,t,"era")}))),i.eraCache[e]}))},t.extract=function(e,t,i){var n=this.dtFormatter(e,t).formatToParts().find((function(e){return e.type.toLowerCase()===i}));return n?n.value:null},t.numberFormatter=function(e){return void 0===e&&(e={}),new at(this.intl,e.forceSimple||this.fastNumbers,e)},t.dtFormatter=function(e,t){return void 0===t&&(t={}),new ct(e,this.intl,t)},t.relFormatter=function(e){return void 0===e&&(e={}),new ut(this.intl,this.isEnglish(),e)},t.isEnglish=function(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||J()&&new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")},t.equals=function(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar},n(e,[{key:"fastNumbers",get:function(){var e;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(e=this).numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||J()&&"latn"===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}}]),e}();function xt(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var n=t.reduce((function(e,t){return e+t.source}),"");return RegExp("^"+n+"$")}function lt(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return function(e){return t.reduce((function(t,i){var n=t[0],r=t[1],o=t[2],s=i(e,o),a=s[0],c=s[1],u=s[2];return[Object.assign(n,a),r||c,u]}),[{},null,1]).slice(0,2)}}function ht(e){if(null==e)return[null,null];for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];for(var r=0,o=i;r<o.length;r++){var s=o[r],a=s[0],c=s[1],u=a.exec(e);if(u)return c(u)}return[null,null]}function ft(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return function(e,i){var n,r={};for(n=0;n<t.length;n++)r[t[n]]=te(e[i+n]);return[r,null,i+n]}}var vt=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,mt=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,gt=RegExp(""+mt.source+vt.source+"?"),yt=RegExp("(?:T"+gt.source+")?"),pt=ft("weekYear","weekNumber","weekDay"),bt=ft("year","ordinal"),kt=RegExp(mt.source+" ?(?:"+vt.source+"|("+me.source+"))?"),_t=RegExp("(?: "+kt.source+")?");function wt(e,t,i){var n=e[t];return q(n)?i:te(n)}function St(e,t){return[{year:wt(e,t),month:wt(e,t+1,1),day:wt(e,t+2,1)},null,t+3]}function Ot(e,t){return[{hours:wt(e,t,0),minutes:wt(e,t+1,0),seconds:wt(e,t+2,0),milliseconds:ie(e[t+3])},null,t+4]}function Rt(e,t){var i=!e[t]&&!e[t+1],n=xe(e[t+1],e[t+2]);return[{},i?null:qe.instance(n),t+3]}function Tt(e,t){return[{},e[t]?Ue.create(e[t]):null,t+1]}var It=RegExp("^T?"+mt.source+"$"),Nt=/^-?P(?:(?:(-?\d{1,9})Y)?(?:(-?\d{1,9})M)?(?:(-?\d{1,9})W)?(?:(-?\d{1,9})D)?(?:T(?:(-?\d{1,9})H)?(?:(-?\d{1,9})M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,9}))?S)?)?)$/;function Vt(e){var t=e[0],i=e[1],n=e[2],r=e[3],o=e[4],s=e[5],a=e[6],c=e[7],u=e[8],d="-"===t[0],x=c&&"-"===c[0],l=function(e,t){return void 0===t&&(t=!1),void 0!==e&&(t||e&&d)?-e:e};return[{years:l(te(i)),months:l(te(n)),weeks:l(te(r)),days:l(te(o)),hours:l(te(s)),minutes:l(te(a)),seconds:l(te(c),"-0"===c),milliseconds:l(ie(u),x)}]}var Et={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Mt(e,t,i,n,r,o,s){var a={year:2===t.length?ue(te(t)):te(t),month:pe.indexOf(i)+1,day:te(n),hour:te(r),minute:te(o)};return s&&(a.second=te(s)),e&&(a.weekday=e.length>3?_e.indexOf(e)+1:we.indexOf(e)+1),a}var At=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Dt(e){var t,i=e[1],n=e[2],r=e[3],o=e[4],s=e[5],a=e[6],c=e[7],u=e[8],d=e[9],x=e[10],l=e[11],h=Mt(i,o,r,n,s,a,c);return t=u?Et[u]:d?0:xe(x,l),[h,new qe(t)]}var Ct=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,jt=/^(Monday|Tuesday|Wedsday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Ft=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Lt(e){var t=e[1],i=e[2],n=e[3];return[Mt(t,e[4],n,i,e[5],e[6],e[7]),qe.utcInstance]}function Pt(e){var t=e[1],i=e[2],n=e[3],r=e[4],o=e[5],s=e[6];return[Mt(t,e[7],i,n,r,o,s),qe.utcInstance]}var zt=xt(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,yt),Zt=xt(/(\d{4})-?W(\d\d)(?:-?(\d))?/,yt),Ut=xt(/(\d{4})-?(\d{3})/,yt),Ht=xt(gt),qt=lt(St,Ot,Rt),Bt=lt(pt,Ot,Rt),Wt=lt(bt,Ot,Rt),Jt=lt(Ot,Rt);var Gt=lt(Ot);var Yt=xt(/(\d{4})-(\d\d)-(\d\d)/,_t),$t=xt(kt),Kt=lt(St,Ot,Rt,Tt),Xt=lt(Ot,Rt,Tt);var Qt={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},ei=Object.assign({years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6}},Qt),ti=365.2425,ii=30.436875,ni=Object.assign({years:{quarters:4,months:12,weeks:52.1775,days:ti,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:ii,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3}},Qt),ri=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],oi=ri.slice(0).reverse();function si(e,t,i){void 0===i&&(i=!1);var n={values:i?t.values:Object.assign({},e.values,t.values||{}),loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy};return new ci(n)}function ai(e,t,i,n,r){var o=e[r][i],s=t[i]/o,a=!(Math.sign(s)===Math.sign(n[r]))&&0!==n[r]&&Math.abs(s)<=1?function(e){return e<0?Math.floor(e):Math.ceil(e)}(s):Math.trunc(s);n[r]+=a,t[i]-=a*o}var ci=function(){function e(e){var t="longterm"===e.conversionAccuracy||!1;this.values=e.values,this.loc=e.loc||dt.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=t?ni:ei,this.isLuxonDuration=!0}e.fromMillis=function(t,i){return e.fromObject(Object.assign({milliseconds:t},i))},e.fromObject=function(t){if(null==t||"object"!=typeof t)throw new g("Duration.fromObject: argument expected to be an object, got "+(null===t?"null":typeof t));return new e({values:he(t,e.normalizeUnit,["locale","numberingSystem","conversionAccuracy","zone"]),loc:dt.fromObject(t),conversionAccuracy:t.conversionAccuracy})},e.fromISO=function(t,i){var n=function(e){return ht(e,[Nt,Vt])}(t),r=n[0];if(r){var o=Object.assign(r,i);return e.fromObject(o)}return e.invalid("unparsable",'the input "'+t+"\" can't be parsed as ISO 8601")},e.fromISOTime=function(t,i){var n=function(e){return ht(e,[It,Gt])}(t),r=n[0];if(r){var o=Object.assign(r,i);return e.fromObject(o)}return e.invalid("unparsable",'the input "'+t+"\" can't be parsed as ISO 8601")},e.invalid=function(t,i){if(void 0===i&&(i=null),!t)throw new g("need to specify a reason the Duration is invalid");var n=t instanceof De?t:new De(t,i);if(Qe.throwOnInvalid)throw new f(n);return new e({invalid:n})},e.normalizeUnit=function(e){var t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new m(e);return t},e.isDuration=function(e){return e&&e.isLuxonDuration||!1};var t=e.prototype;return t.toFormat=function(e,t){void 0===t&&(t={});var i=Object.assign({},t,{floor:!1!==t.round&&!1!==t.floor});return this.isValid?Ae.create(this.loc,i).formatDurationFromString(this,e):"Invalid Duration"},t.toObject=function(e){if(void 0===e&&(e={}),!this.isValid)return{};var t=Object.assign({},this.values);return e.includeConfig&&(t.conversionAccuracy=this.conversionAccuracy,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t},t.toISO=function(){if(!this.isValid)return null;var e="P";return 0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=ne(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e},t.toISOTime=function(e){if(void 0===e&&(e={}),!this.isValid)return null;var t=this.toMillis();if(t<0||t>=864e5)return null;e=Object.assign({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},e);var i=this.shiftTo("hours","minutes","seconds","milliseconds"),n="basic"===e.format?"hhmm":"hh:mm";e.suppressSeconds&&0===i.seconds&&0===i.milliseconds||(n+="basic"===e.format?"ss":":ss",e.suppressMilliseconds&&0===i.milliseconds||(n+=".SSS"));var r=i.toFormat(n);return e.includePrefix&&(r="T"+r),r},t.toJSON=function(){return this.toISO()},t.toString=function(){return this.toISO()},t.toMillis=function(){return this.as("milliseconds")},t.valueOf=function(){return this.toMillis()},t.plus=function(e){if(!this.isValid)return this;for(var t,i=ui(e),n={},r=d(ri);!(t=r()).done;){var o=t.value;(X(i.values,o)||X(this.values,o))&&(n[o]=i.get(o)+this.get(o))}return si(this,{values:n},!0)},t.minus=function(e){if(!this.isValid)return this;var t=ui(e);return this.plus(t.negate())},t.mapUnits=function(e){if(!this.isValid)return this;for(var t={},i=0,n=Object.keys(this.values);i<n.length;i++){var r=n[i];t[r]=le(e(this.values[r],r))}return si(this,{values:t},!0)},t.get=function(t){return this[e.normalizeUnit(t)]},t.set=function(t){return this.isValid?si(this,{values:Object.assign(this.values,he(t,e.normalizeUnit,[]))}):this},t.reconfigure=function(e){var t=void 0===e?{}:e,i=t.locale,n=t.numberingSystem,r=t.conversionAccuracy,o={loc:this.loc.clone({locale:i,numberingSystem:n})};return r&&(o.conversionAccuracy=r),si(this,o)},t.as=function(e){return this.isValid?this.shiftTo(e).get(e):NaN},t.normalize=function(){if(!this.isValid)return this;var e=this.toObject();return function(e,t){oi.reduce((function(i,n){return q(t[n])?i:(i&&ai(e,t,i,t,n),n)}),null)}(this.matrix,e),si(this,{values:e},!0)},t.shiftTo=function(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];if(!this.isValid)return this;if(0===i.length)return this;i=i.map((function(t){return e.normalizeUnit(t)}));for(var r,o,s={},a={},c=this.toObject(),u=d(ri);!(o=u()).done;){var x=o.value;if(i.indexOf(x)>=0){r=x;var l=0;for(var h in a)l+=this.matrix[h][x]*a[h],a[h]=0;B(c[x])&&(l+=c[x]);var f=Math.trunc(l);for(var v in s[x]=f,a[x]=l-f,c)ri.indexOf(v)>ri.indexOf(x)&&ai(this.matrix,c,v,s,x)}else B(c[x])&&(a[x]=c[x])}for(var m in a)0!==a[m]&&(s[r]+=m===r?a[m]:a[m]/this.matrix[r][m]);return si(this,{values:s},!0).normalize()},t.negate=function(){if(!this.isValid)return this;for(var e={},t=0,i=Object.keys(this.values);t<i.length;t++){var n=i[t];e[n]=-this.values[n]}return si(this,{values:e},!0)},t.equals=function(e){if(!this.isValid||!e.isValid)return!1;if(!this.loc.equals(e.loc))return!1;for(var t,i=d(ri);!(t=i()).done;){var n=t.value;if(r=this.values[n],o=e.values[n],!(void 0===r||0===r?void 0===o||0===o:r===o))return!1}var r,o;return!0},n(e,[{key:"locale",get:function(){return this.isValid?this.loc.locale:null}},{key:"numberingSystem",get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:"years",get:function(){return this.isValid?this.values.years||0:NaN}},{key:"quarters",get:function(){return this.isValid?this.values.quarters||0:NaN}},{key:"months",get:function(){return this.isValid?this.values.months||0:NaN}},{key:"weeks",get:function(){return this.isValid?this.values.weeks||0:NaN}},{key:"days",get:function(){return this.isValid?this.values.days||0:NaN}},{key:"hours",get:function(){return this.isValid?this.values.hours||0:NaN}},{key:"minutes",get:function(){return this.isValid?this.values.minutes||0:NaN}},{key:"seconds",get:function(){return this.isValid?this.values.seconds||0:NaN}},{key:"milliseconds",get:function(){return this.isValid?this.values.milliseconds||0:NaN}},{key:"isValid",get:function(){return null===this.invalid}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]),e}();function ui(e){if(B(e))return ci.fromMillis(e);if(ci.isDuration(e))return e;if("object"==typeof e)return ci.fromObject(e);throw new g("Unknown duration argument "+e+" of type "+typeof e)}var di="Invalid Interval";function xi(e,t){return e&&e.isValid?t&&t.isValid?t<e?li.invalid("end before start","The end of an interval must be after its start, but you had start="+e.toISO()+" and end="+t.toISO()):null:li.invalid("missing or invalid end"):li.invalid("missing or invalid start")}var li=function(){function e(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}e.invalid=function(t,i){if(void 0===i&&(i=null),!t)throw new g("need to specify a reason the Interval is invalid");var n=t instanceof De?t:new De(t,i);if(Qe.throwOnInvalid)throw new h(n);return new e({invalid:n})},e.fromDateTimes=function(t,i){var n=fn(t),r=fn(i),o=xi(n,r);return null==o?new e({start:n,end:r}):o},e.after=function(t,i){var n=ui(i),r=fn(t);return e.fromDateTimes(r,r.plus(n))},e.before=function(t,i){var n=ui(i),r=fn(t);return e.fromDateTimes(r.minus(n),r)},e.fromISO=function(t,i){var n=(t||"").split("/",2),r=n[0],o=n[1];if(r&&o){var s,a,c,u;try{a=(s=hn.fromISO(r,i)).isValid}catch(o){a=!1}try{u=(c=hn.fromISO(o,i)).isValid}catch(o){u=!1}if(a&&u)return e.fromDateTimes(s,c);if(a){var d=ci.fromISO(o,i);if(d.isValid)return e.after(s,d)}else if(u){var x=ci.fromISO(r,i);if(x.isValid)return e.before(c,x)}}return e.invalid("unparsable",'the input "'+t+"\" can't be parsed as ISO 8601")},e.isInterval=function(e){return e&&e.isLuxonInterval||!1};var t=e.prototype;return t.length=function(e){return void 0===e&&(e="milliseconds"),this.isValid?this.toDuration.apply(this,[e]).get(e):NaN},t.count=function(e){if(void 0===e&&(e="milliseconds"),!this.isValid)return NaN;var t=this.start.startOf(e),i=this.end.startOf(e);return Math.floor(i.diff(t,e).get(e))+1},t.hasSame=function(e){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,e))},t.isEmpty=function(){return this.s.valueOf()===this.e.valueOf()},t.isAfter=function(e){return!!this.isValid&&this.s>e},t.isBefore=function(e){return!!this.isValid&&this.e<=e},t.contains=function(e){return!!this.isValid&&(this.s<=e&&this.e>e)},t.set=function(t){var i=void 0===t?{}:t,n=i.start,r=i.end;return this.isValid?e.fromDateTimes(n||this.s,r||this.e):this},t.splitAt=function(){var t=this;if(!this.isValid)return[];for(var i=arguments.length,n=new Array(i),r=0;r<i;r++)n[r]=arguments[r];for(var o=n.map(fn).filter((function(e){return t.contains(e)})).sort(),s=[],a=this.s,c=0;a<this.e;){var u=o[c]||this.e,d=+u>+this.e?this.e:u;s.push(e.fromDateTimes(a,d)),a=d,c+=1}return s},t.splitBy=function(t){var i=ui(t);if(!this.isValid||!i.isValid||0===i.as("milliseconds"))return[];for(var n,r=this.s,o=1,s=[];r<this.e;){var a=this.start.plus(i.mapUnits((function(e){return e*o})));n=+a>+this.e?this.e:a,s.push(e.fromDateTimes(r,n)),r=n,o+=1}return s},t.divideEqually=function(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]},t.overlaps=function(e){return this.e>e.s&&this.s<e.e},t.abutsStart=function(e){return!!this.isValid&&+this.e==+e.s},t.abutsEnd=function(e){return!!this.isValid&&+e.e==+this.s},t.engulfs=function(e){return!!this.isValid&&(this.s<=e.s&&this.e>=e.e)},t.equals=function(e){return!(!this.isValid||!e.isValid)&&(this.s.equals(e.s)&&this.e.equals(e.e))},t.intersection=function(t){if(!this.isValid)return this;var i=this.s>t.s?this.s:t.s,n=this.e<t.e?this.e:t.e;return i>=n?null:e.fromDateTimes(i,n)},t.union=function(t){if(!this.isValid)return this;var i=this.s<t.s?this.s:t.s,n=this.e>t.e?this.e:t.e;return e.fromDateTimes(i,n)},e.merge=function(e){var t=e.sort((function(e,t){return e.s-t.s})).reduce((function(e,t){var i=e[0],n=e[1];return n?n.overlaps(t)||n.abutsStart(t)?[i,n.union(t)]:[i.concat([n]),t]:[i,t]}),[[],null]),i=t[0],n=t[1];return n&&i.push(n),i},e.xor=function(t){for(var i,n,r=null,o=0,s=[],a=t.map((function(e){return[{time:e.s,type:"s"},{time:e.e,type:"e"}]})),c=d((i=Array.prototype).concat.apply(i,a).sort((function(e,t){return e.time-t.time})));!(n=c()).done;){var u=n.value;1===(o+="s"===u.type?1:-1)?r=u.time:(r&&+r!=+u.time&&s.push(e.fromDateTimes(r,u.time)),r=null)}return e.merge(s)},t.difference=function(){for(var t=this,i=arguments.length,n=new Array(i),r=0;r<i;r++)n[r]=arguments[r];return e.xor([this].concat(n)).map((function(e){return t.intersection(e)})).filter((function(e){return e&&!e.isEmpty()}))},t.toString=function(){return this.isValid?"["+this.s.toISO()+" – "+this.e.toISO()+")":di},t.toISO=function(e){return this.isValid?this.s.toISO(e)+"/"+this.e.toISO(e):di},t.toISODate=function(){return this.isValid?this.s.toISODate()+"/"+this.e.toISODate():di},t.toISOTime=function(e){return this.isValid?this.s.toISOTime(e)+"/"+this.e.toISOTime(e):di},t.toFormat=function(e,t){var i=(void 0===t?{}:t).separator,n=void 0===i?" – ":i;return this.isValid?""+this.s.toFormat(e)+n+this.e.toFormat(e):di},t.toDuration=function(e,t){return this.isValid?this.e.diff(this.s,e,t):ci.invalid(this.invalidReason)},t.mapEndpoints=function(t){return e.fromDateTimes(t(this.s),t(this.e))},n(e,[{key:"start",get:function(){return this.isValid?this.s:null}},{key:"end",get:function(){return this.isValid?this.e:null}},{key:"isValid",get:function(){return null===this.invalidReason}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]),e}(),hi=function(){function e(){}return e.hasDST=function(e){void 0===e&&(e=Qe.defaultZone);var t=hn.now().setZone(e).set({month:12});return!e.universal&&t.offset!==t.set({month:6}).offset},e.isValidIANAZone=function(e){return Ue.isValidSpecifier(e)&&Ue.isValidZone(e)},e.normalizeZone=function(e){return We(e,Qe.defaultZone)},e.months=function(e,t){void 0===e&&(e="long");var i=void 0===t?{}:t,n=i.locale,r=void 0===n?null:n,o=i.numberingSystem,s=void 0===o?null:o,a=i.locObj,c=void 0===a?null:a,u=i.outputCalendar,d=void 0===u?"gregory":u;return(c||dt.create(r,s,d)).months(e)},e.monthsFormat=function(e,t){void 0===e&&(e="long");var i=void 0===t?{}:t,n=i.locale,r=void 0===n?null:n,o=i.numberingSystem,s=void 0===o?null:o,a=i.locObj,c=void 0===a?null:a,u=i.outputCalendar,d=void 0===u?"gregory":u;return(c||dt.create(r,s,d)).months(e,!0)},e.weekdays=function(e,t){void 0===e&&(e="long");var i=void 0===t?{}:t,n=i.locale,r=void 0===n?null:n,o=i.numberingSystem,s=void 0===o?null:o,a=i.locObj;return((void 0===a?null:a)||dt.create(r,s,null)).weekdays(e)},e.weekdaysFormat=function(e,t){void 0===e&&(e="long");var i=void 0===t?{}:t,n=i.locale,r=void 0===n?null:n,o=i.numberingSystem,s=void 0===o?null:o,a=i.locObj;return((void 0===a?null:a)||dt.create(r,s,null)).weekdays(e,!0)},e.meridiems=function(e){var t=(void 0===e?{}:e).locale,i=void 0===t?null:t;return dt.create(i).meridiems()},e.eras=function(e,t){void 0===e&&(e="short");var i=(void 0===t?{}:t).locale,n=void 0===i?null:i;return dt.create(n,null,"gregory").eras(e)},e.features=function(){var e=!1,t=!1,i=!1,n=!1;if(J()){e=!0,t=G(),n=Y();try{i="America/New_York"===new Intl.DateTimeFormat("en",{timeZone:"America/New_York"}).resolvedOptions().timeZone}catch(e){i=!1}}return{intl:e,intlTokens:t,zones:i,relative:n}},e}();function fi(e,t){var i=function(e){return e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf()},n=i(t)-i(e);return Math.floor(ci.fromMillis(n).as("days"))}function vi(e,t,i,n){var r=function(e,t,i){for(var n,r,o={},s=0,a=[["years",function(e,t){return t.year-e.year}],["quarters",function(e,t){return t.quarter-e.quarter}],["months",function(e,t){return t.month-e.month+12*(t.year-e.year)}],["weeks",function(e,t){var i=fi(e,t);return(i-i%7)/7}],["days",fi]];s<a.length;s++){var c=a[s],u=c[0],d=c[1];if(i.indexOf(u)>=0){var x;n=u;var l,h=d(e,t);(r=e.plus(((x={})[u]=h,x)))>t?(e=e.plus(((l={})[u]=h-1,l)),h-=1):e=r,o[u]=h}}return[e,o,r,n]}(e,t,i),o=r[0],s=r[1],a=r[2],c=r[3],u=t-o,d=i.filter((function(e){return["hours","minutes","seconds","milliseconds"].indexOf(e)>=0}));if(0===d.length){var x;if(a<t)a=o.plus(((x={})[c]=1,x));a!==o&&(s[c]=(s[c]||0)+u/(a-o))}var l,h=ci.fromObject(Object.assign(s,n));return d.length>0?(l=ci.fromMillis(u,n)).shiftTo.apply(l,d).plus(h):h}var mi={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},gi={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},yi=mi.hanidec.replace(/[\[|\]]/g,"").split("");function pi(e,t){var i=e.numberingSystem;return void 0===t&&(t=""),new RegExp(""+mi[i||"latn"]+t)}var bi="missing Intl.DateTimeFormat.formatToParts support";function ki(e,t){return void 0===t&&(t=function(e){return e}),{regex:e,deser:function(e){var i=e[0];return t(function(e){var t=parseInt(e,10);if(isNaN(t)){t="";for(var i=0;i<e.length;i++){var n=e.charCodeAt(i);if(-1!==e[i].search(mi.hanidec))t+=yi.indexOf(e[i]);else for(var r in gi){var o=gi[r],s=o[0],a=o[1];n>=s&&n<=a&&(t+=n-s)}}return parseInt(t,10)}return t}(i))}}}var _i="( |"+String.fromCharCode(160)+")",wi=new RegExp(_i,"g");function Si(e){return e.replace(/\./g,"\\.?").replace(wi,_i)}function Oi(e){return e.replace(/\./g,"").replace(wi," ").toLowerCase()}function Ri(e,t){return null===e?null:{regex:RegExp(e.map(Si).join("|")),deser:function(i){var n=i[0];return e.findIndex((function(e){return Oi(n)===Oi(e)}))+t}}}function Ti(e,t){return{regex:e,deser:function(e){return xe(e[1],e[2])},groups:t}}function Ii(e){return{regex:e,deser:function(e){return e[0]}}}var Ni={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}};var Vi=null;function Ei(e,t){if(e.literal)return e;var i=Ae.macroTokenToFormatOpts(e.val);if(!i)return e;var n=Ae.create(t,i).formatDateTimeParts((Vi||(Vi=hn.fromMillis(1555555555555)),Vi)).map((function(e){return function(e,t,i){var n=e.type,r=e.value;if("literal"===n)return{literal:!0,val:r};var o=i[n],s=Ni[n];return"object"==typeof s&&(s=s[o]),s?{literal:!1,val:s}:void 0}(e,0,i)}));return n.includes(void 0)?e:n}function Mi(e,t,i){var n=function(e,t){var i;return(i=Array.prototype).concat.apply(i,e.map((function(e){return Ei(e,t)})))}(Ae.parseFormat(i),e),r=n.map((function(t){return i=t,r=pi(n=e),o=pi(n,"{2}"),s=pi(n,"{3}"),a=pi(n,"{4}"),c=pi(n,"{6}"),u=pi(n,"{1,2}"),d=pi(n,"{1,3}"),x=pi(n,"{1,6}"),l=pi(n,"{1,9}"),h=pi(n,"{2,4}"),f=pi(n,"{4,6}"),v=function(e){return{regex:RegExp((t=e.val,t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:function(e){return e[0]},literal:!0};var t},m=function(e){if(i.literal)return v(e);switch(e.val){case"G":return Ri(n.eras("short",!1),0);case"GG":return Ri(n.eras("long",!1),0);case"y":return ki(x);case"yy":case"kk":return ki(h,ue);case"yyyy":case"kkkk":return ki(a);case"yyyyy":return ki(f);case"yyyyyy":return ki(c);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return ki(u);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return ki(o);case"MMM":return Ri(n.months("short",!0,!1),1);case"MMMM":return Ri(n.months("long",!0,!1),1);case"LLL":return Ri(n.months("short",!1,!1),1);case"LLLL":return Ri(n.months("long",!1,!1),1);case"o":case"S":return ki(d);case"ooo":case"SSS":return ki(s);case"u":return Ii(l);case"a":return Ri(n.meridiems(),0);case"E":case"c":return ki(r);case"EEE":return Ri(n.weekdays("short",!1,!1),1);case"EEEE":return Ri(n.weekdays("long",!1,!1),1);case"ccc":return Ri(n.weekdays("short",!0,!1),1);case"cccc":return Ri(n.weekdays("long",!0,!1),1);case"Z":case"ZZ":return Ti(new RegExp("([+-]"+u.source+")(?::("+o.source+"))?"),2);case"ZZZ":return Ti(new RegExp("([+-]"+u.source+")("+o.source+")?"),2);case"z":return Ii(/[a-z_+-/]{1,256}?/i);default:return v(e)}}(i)||{invalidReason:bi},m.token=i,m;var i,n,r,o,s,a,c,u,d,x,l,h,f,v,m})),o=r.find((function(e){return e.invalidReason}));if(o)return{input:t,tokens:n,invalidReason:o.invalidReason};var s=function(e){return["^"+e.map((function(e){return e.regex})).reduce((function(e,t){return e+"("+t.source+")"}),"")+"$",e]}(r),a=s[0],c=s[1],u=RegExp(a,"i"),d=function(e,t,i){var n=e.match(t);if(n){var r={},o=1;for(var s in i)if(X(i,s)){var a=i[s],c=a.groups?a.groups+1:1;!a.literal&&a.token&&(r[a.token.val[0]]=a.deser(n.slice(o,o+c))),o+=c}return[n,r]}return[n,{}]}(t,u,c),x=d[0],l=d[1],h=l?function(e){var t;return t=q(e.Z)?q(e.z)?null:Ue.create(e.z):new qe(e.Z),q(e.q)||(e.M=3*(e.q-1)+1),q(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),q(e.u)||(e.S=ie(e.u)),[Object.keys(e).reduce((function(t,i){var n=function(e){switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}}(i);return n&&(t[n]=e[i]),t}),{}),t]}(l):[null,null],f=h[0],m=h[1];if(X(l,"a")&&X(l,"H"))throw new v("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:n,regex:u,rawMatches:x,matches:l,result:f,zone:m}}var Ai=[0,31,59,90,120,151,181,212,243,273,304,334],Di=[0,31,60,91,121,152,182,213,244,274,305,335];function Ci(e,t){return new De("unit out of range","you specified "+t+" (of type "+typeof t+") as a "+e+", which is invalid")}function ji(e,t,i){var n=new Date(Date.UTC(e,t-1,i)).getUTCDay();return 0===n?7:n}function Fi(e,t,i){return i+(re(e)?Di:Ai)[t-1]}function Li(e,t){var i=re(e)?Di:Ai,n=i.findIndex((function(e){return e<t}));return{month:n+1,day:t-i[n]}}function Pi(e){var t,i=e.year,n=e.month,r=e.day,o=Fi(i,n,r),s=ji(i,n,r),a=Math.floor((o-s+10)/7);return a<1?a=ce(t=i-1):a>ce(i)?(t=i+1,a=1):t=i,Object.assign({weekYear:t,weekNumber:a,weekday:s},ve(e))}function zi(e){var t,i=e.weekYear,n=e.weekNumber,r=e.weekday,o=ji(i,1,4),s=oe(i),a=7*n+r-o-3;a<1?a+=oe(t=i-1):a>s?(t=i+1,a-=oe(i)):t=i;var c=Li(t,a),u=c.month,d=c.day;return Object.assign({year:t,month:u,day:d},ve(e))}function Zi(e){var t=e.year,i=Fi(t,e.month,e.day);return Object.assign({year:t,ordinal:i},ve(e))}function Ui(e){var t=e.year,i=Li(t,e.ordinal),n=i.month,r=i.day;return Object.assign({year:t,month:n,day:r},ve(e))}function Hi(e){var t=W(e.year),i=Q(e.month,1,12),n=Q(e.day,1,se(e.year,e.month));return t?i?!n&&Ci("day",e.day):Ci("month",e.month):Ci("year",e.year)}function qi(e){var t=e.hour,i=e.minute,n=e.second,r=e.millisecond,o=Q(t,0,23)||24===t&&0===i&&0===n&&0===r,s=Q(i,0,59),a=Q(n,0,59),c=Q(r,0,999);return o?s?a?!c&&Ci("millisecond",r):Ci("second",n):Ci("minute",i):Ci("hour",t)}var Bi="Invalid DateTime",Wi=864e13;function Ji(e){return new De("unsupported zone",'the zone "'+e.name+'" is not supported')}function Gi(e){return null===e.weekData&&(e.weekData=Pi(e.c)),e.weekData}function Yi(e,t){var i={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new hn(Object.assign({},i,t,{old:i}))}function $i(e,t,i){var n=e-60*t*1e3,r=i.offset(n);if(t===r)return[n,t];n-=60*(r-t)*1e3;var o=i.offset(n);return r===o?[n,r]:[e-60*Math.min(r,o)*1e3,Math.max(r,o)]}function Ki(e,t){var i=new Date(e+=60*t*1e3);return{year:i.getUTCFullYear(),month:i.getUTCMonth()+1,day:i.getUTCDate(),hour:i.getUTCHours(),minute:i.getUTCMinutes(),second:i.getUTCSeconds(),millisecond:i.getUTCMilliseconds()}}function Xi(e,t,i){return $i(ae(e),t,i)}function Qi(e,t){var i=e.o,n=e.c.year+Math.trunc(t.years),r=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),o=Object.assign({},e.c,{year:n,month:r,day:Math.min(e.c.day,se(n,r))+Math.trunc(t.days)+7*Math.trunc(t.weeks)}),s=ci.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),a=$i(ae(o),i,e.zone),c=a[0],u=a[1];return 0!==s&&(c+=s,u=e.zone.offset(c)),{ts:c,o:u}}function en(e,t,i,n,r){var o=i.setZone,s=i.zone;if(e&&0!==Object.keys(e).length){var a=t||s,c=hn.fromObject(Object.assign(e,i,{zone:a,setZone:void 0}));return o?c:c.setZone(s)}return hn.invalid(new De("unparsable",'the input "'+r+"\" can't be parsed as "+n))}function tn(e,t,i){return void 0===i&&(i=!0),e.isValid?Ae.create(dt.create("en-US"),{allowZ:i,forceSimple:!0}).formatDateTimeFromString(e,t):null}function nn(e,t){var i=t.suppressSeconds,n=void 0!==i&&i,r=t.suppressMilliseconds,o=void 0!==r&&r,s=t.includeOffset,a=t.includePrefix,c=void 0!==a&&a,u=t.includeZone,d=void 0!==u&&u,x=t.spaceZone,l=void 0!==x&&x,h=t.format,f=void 0===h?"extended":h,v="basic"===f?"HHmm":"HH:mm";n&&0===e.second&&0===e.millisecond||(v+="basic"===f?"ss":":ss",o&&0===e.millisecond||(v+=".SSS")),(d||s)&&l&&(v+=" "),d?v+="z":s&&(v+="basic"===f?"ZZZ":"ZZ");var m=tn(e,v);return c&&(m="T"+m),m}var rn={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},on={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},sn={ordinal:1,hour:0,minute:0,second:0,millisecond:0},an=["year","month","day","hour","minute","second","millisecond"],cn=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],un=["year","ordinal","hour","minute","second","millisecond"];function dn(e){var t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new m(e);return t}function xn(e,t){for(var i,n=d(an);!(i=n()).done;){var r=i.value;q(e[r])&&(e[r]=rn[r])}var o=Hi(e)||qi(e);if(o)return hn.invalid(o);var s=Qe.now(),a=Xi(e,t.offset(s),t),c=a[0],u=a[1];return new hn({ts:c,zone:t,o:u})}function ln(e,t,i){var n=!!q(i.round)||i.round,r=function(e,r){return e=ne(e,n||i.calendary?0:2,!0),t.loc.clone(i).relFormatter(i).format(e,r)},o=function(n){return i.calendary?t.hasSame(e,n)?0:t.startOf(n).diff(e.startOf(n),n).get(n):t.diff(e,n).get(n)};if(i.unit)return r(o(i.unit),i.unit);for(var s,a=d(i.units);!(s=a()).done;){var c=s.value,u=o(c);if(Math.abs(u)>=1)return r(u,c)}return r(e>t?-0:0,i.units[i.units.length-1])}var hn=function(){function e(e){var t=e.zone||Qe.defaultZone,i=e.invalid||(Number.isNaN(e.ts)?new De("invalid input"):null)||(t.isValid?null:Ji(t));this.ts=q(e.ts)?Qe.now():e.ts;var n=null,r=null;if(!i)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t)){var o=[e.old.c,e.old.o];n=o[0],r=o[1]}else{var s=t.offset(this.ts);n=Ki(this.ts,s),n=(i=Number.isNaN(n.year)?new De("invalid input"):null)?null:n,r=i?null:s}this._zone=t,this.loc=e.loc||dt.create(),this.invalid=i,this.weekData=null,this.c=n,this.o=r,this.isLuxonDateTime=!0}e.now=function(){return new e({})},e.local=function(t,i,n,r,o,s,a){return q(t)?e.now():xn({year:t,month:i,day:n,hour:r,minute:o,second:s,millisecond:a},Qe.defaultZone)},e.utc=function(t,i,n,r,o,s,a){return q(t)?new e({ts:Qe.now(),zone:qe.utcInstance}):xn({year:t,month:i,day:n,hour:r,minute:o,second:s,millisecond:a},qe.utcInstance)},e.fromJSDate=function(t,i){void 0===i&&(i={});var n,r=(n=t,"[object Date]"===Object.prototype.toString.call(n)?t.valueOf():NaN);if(Number.isNaN(r))return e.invalid("invalid input");var o=We(i.zone,Qe.defaultZone);return o.isValid?new e({ts:r,zone:o,loc:dt.fromObject(i)}):e.invalid(Ji(o))},e.fromMillis=function(t,i){if(void 0===i&&(i={}),B(t))return t<-Wi||t>Wi?e.invalid("Timestamp out of range"):new e({ts:t,zone:We(i.zone,Qe.defaultZone),loc:dt.fromObject(i)});throw new g("fromMillis requires a numerical input, but received a "+typeof t+" with value "+t)},e.fromSeconds=function(t,i){if(void 0===i&&(i={}),B(t))return new e({ts:1e3*t,zone:We(i.zone,Qe.defaultZone),loc:dt.fromObject(i)});throw new g("fromSeconds requires a numerical input")},e.fromObject=function(t){var i=We(t.zone,Qe.defaultZone);if(!i.isValid)return e.invalid(Ji(i));var n=Qe.now(),r=i.offset(n),o=he(t,dn,["zone","locale","outputCalendar","numberingSystem"]),s=!q(o.ordinal),a=!q(o.year),c=!q(o.month)||!q(o.day),u=a||c,x=o.weekYear||o.weekNumber,l=dt.fromObject(t);if((u||s)&&x)throw new v("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&s)throw new v("Can't mix ordinal dates with month/day");var h,f,m=x||o.weekday&&!u,g=Ki(n,r);m?(h=cn,f=on,g=Pi(g)):s?(h=un,f=sn,g=Zi(g)):(h=an,f=rn);for(var y,p=!1,b=d(h);!(y=b()).done;){var k=y.value;q(o[k])?o[k]=p?f[k]:g[k]:p=!0}var _=m?function(e){var t=W(e.weekYear),i=Q(e.weekNumber,1,ce(e.weekYear)),n=Q(e.weekday,1,7);return t?i?!n&&Ci("weekday",e.weekday):Ci("week",e.week):Ci("weekYear",e.weekYear)}(o):s?function(e){var t=W(e.year),i=Q(e.ordinal,1,oe(e.year));return t?!i&&Ci("ordinal",e.ordinal):Ci("year",e.year)}(o):Hi(o),w=_||qi(o);if(w)return e.invalid(w);var S=Xi(m?zi(o):s?Ui(o):o,r,i),O=new e({ts:S[0],zone:i,o:S[1],loc:l});return o.weekday&&u&&t.weekday!==O.weekday?e.invalid("mismatched weekday","you can't specify both a weekday of "+o.weekday+" and a date of "+O.toISO()):O},e.fromISO=function(e,t){void 0===t&&(t={});var i=function(e){return ht(e,[zt,qt],[Zt,Bt],[Ut,Wt],[Ht,Jt])}(e);return en(i[0],i[1],t,"ISO 8601",e)},e.fromRFC2822=function(e,t){void 0===t&&(t={});var i=function(e){return ht(function(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e),[At,Dt])}(e);return en(i[0],i[1],t,"RFC 2822",e)},e.fromHTTP=function(e,t){void 0===t&&(t={});var i=function(e){return ht(e,[Ct,Lt],[jt,Lt],[Ft,Pt])}(e);return en(i[0],i[1],t,"HTTP",t)},e.fromFormat=function(t,i,n){if(void 0===n&&(n={}),q(t)||q(i))throw new g("fromFormat requires an input string and a format");var r=n,o=r.locale,s=void 0===o?null:o,a=r.numberingSystem,c=void 0===a?null:a,u=function(e,t,i){var n=Mi(e,t,i);return[n.result,n.zone,n.invalidReason]}(dt.fromOpts({locale:s,numberingSystem:c,defaultToEN:!0}),t,i),d=u[0],x=u[1],l=u[2];return l?e.invalid(l):en(d,x,n,"format "+i,t)},e.fromString=function(t,i,n){return void 0===n&&(n={}),e.fromFormat(t,i,n)},e.fromSQL=function(e,t){void 0===t&&(t={});var i=function(e){return ht(e,[Yt,Kt],[$t,Xt])}(e);return en(i[0],i[1],t,"SQL",e)},e.invalid=function(t,i){if(void 0===i&&(i=null),!t)throw new g("need to specify a reason the DateTime is invalid");var n=t instanceof De?t:new De(t,i);if(Qe.throwOnInvalid)throw new l(n);return new e({invalid:n})},e.isDateTime=function(e){return e&&e.isLuxonDateTime||!1};var t=e.prototype;return t.get=function(e){return this[e]},t.resolvedLocaleOpts=function(e){void 0===e&&(e={});var t=Ae.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t.locale,numberingSystem:t.numberingSystem,outputCalendar:t.calendar}},t.toUTC=function(e,t){return void 0===e&&(e=0),void 0===t&&(t={}),this.setZone(qe.instance(e),t)},t.toLocal=function(){return this.setZone(Qe.defaultZone)},t.setZone=function(t,i){var n=void 0===i?{}:i,r=n.keepLocalTime,o=void 0!==r&&r,s=n.keepCalendarTime,a=void 0!==s&&s;if((t=We(t,Qe.defaultZone)).equals(this.zone))return this;if(t.isValid){var c=this.ts;if(o||a){var u=t.offset(this.ts);c=Xi(this.toObject(),u,t)[0]}return Yi(this,{ts:c,zone:t})}return e.invalid(Ji(t))},t.reconfigure=function(e){var t=void 0===e?{}:e,i=t.locale,n=t.numberingSystem,r=t.outputCalendar;return Yi(this,{loc:this.loc.clone({locale:i,numberingSystem:n,outputCalendar:r})})},t.setLocale=function(e){return this.reconfigure({locale:e})},t.set=function(e){if(!this.isValid)return this;var t,i=he(e,dn,[]),n=!q(i.weekYear)||!q(i.weekNumber)||!q(i.weekday),r=!q(i.ordinal),o=!q(i.year),s=!q(i.month)||!q(i.day),a=o||s,c=i.weekYear||i.weekNumber;if((a||r)&&c)throw new v("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(s&&r)throw new v("Can't mix ordinal dates with month/day");n?t=zi(Object.assign(Pi(this.c),i)):q(i.ordinal)?(t=Object.assign(this.toObject(),i),q(i.day)&&(t.day=Math.min(se(t.year,t.month),t.day))):t=Ui(Object.assign(Zi(this.c),i));var u=Xi(t,this.o,this.zone);return Yi(this,{ts:u[0],o:u[1]})},t.plus=function(e){return this.isValid?Yi(this,Qi(this,ui(e))):this},t.minus=function(e){return this.isValid?Yi(this,Qi(this,ui(e).negate())):this},t.startOf=function(e){if(!this.isValid)return this;var t={},i=ci.normalizeUnit(e);switch(i){case"years":t.month=1;case"quarters":case"months":t.day=1;case"weeks":case"days":t.hour=0;case"hours":t.minute=0;case"minutes":t.second=0;case"seconds":t.millisecond=0}if("weeks"===i&&(t.weekday=1),"quarters"===i){var n=Math.ceil(this.month/3);t.month=3*(n-1)+1}return this.set(t)},t.endOf=function(e){var t;return this.isValid?this.plus((t={},t[e]=1,t)).startOf(e).minus(1):this},t.toFormat=function(e,t){return void 0===t&&(t={}),this.isValid?Ae.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):Bi},t.toLocaleString=function(e){return void 0===e&&(e=_),this.isValid?Ae.create(this.loc.clone(e),e).formatDateTime(this):Bi},t.toLocaleParts=function(e){return void 0===e&&(e={}),this.isValid?Ae.create(this.loc.clone(e),e).formatDateTimeParts(this):[]},t.toISO=function(e){return void 0===e&&(e={}),this.isValid?this.toISODate(e)+"T"+this.toISOTime(e):null},t.toISODate=function(e){var t=(void 0===e?{}:e).format,i="basic"===(void 0===t?"extended":t)?"yyyyMMdd":"yyyy-MM-dd";return this.year>9999&&(i="+"+i),tn(this,i)},t.toISOWeekDate=function(){return tn(this,"kkkk-'W'WW-c")},t.toISOTime=function(e){var t=void 0===e?{}:e,i=t.suppressMilliseconds,n=void 0!==i&&i,r=t.suppressSeconds,o=void 0!==r&&r,s=t.includeOffset,a=void 0===s||s,c=t.includePrefix,u=void 0!==c&&c,d=t.format;return nn(this,{suppressSeconds:o,suppressMilliseconds:n,includeOffset:a,includePrefix:u,format:void 0===d?"extended":d})},t.toRFC2822=function(){return tn(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)},t.toHTTP=function(){return tn(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")},t.toSQLDate=function(){return tn(this,"yyyy-MM-dd")},t.toSQLTime=function(e){var t=void 0===e?{}:e,i=t.includeOffset,n=void 0===i||i,r=t.includeZone;return nn(this,{includeOffset:n,includeZone:void 0!==r&&r,spaceZone:!0})},t.toSQL=function(e){return void 0===e&&(e={}),this.isValid?this.toSQLDate()+" "+this.toSQLTime(e):null},t.toString=function(){return this.isValid?this.toISO():Bi},t.valueOf=function(){return this.toMillis()},t.toMillis=function(){return this.isValid?this.ts:NaN},t.toSeconds=function(){return this.isValid?this.ts/1e3:NaN},t.toJSON=function(){return this.toISO()},t.toBSON=function(){return this.toJSDate()},t.toObject=function(e){if(void 0===e&&(e={}),!this.isValid)return{};var t=Object.assign({},this.c);return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t},t.toJSDate=function(){return new Date(this.isValid?this.ts:NaN)},t.diff=function(e,t,i){if(void 0===t&&(t="milliseconds"),void 0===i&&(i={}),!this.isValid||!e.isValid)return ci.invalid(this.invalid||e.invalid,"created by diffing an invalid DateTime");var n,r=Object.assign({locale:this.locale,numberingSystem:this.numberingSystem},i),o=(n=t,Array.isArray(n)?n:[n]).map(ci.normalizeUnit),s=e.valueOf()>this.valueOf(),a=vi(s?this:e,s?e:this,o,r);return s?a.negate():a},t.diffNow=function(t,i){return void 0===t&&(t="milliseconds"),void 0===i&&(i={}),this.diff(e.now(),t,i)},t.until=function(e){return this.isValid?li.fromDateTimes(this,e):this},t.hasSame=function(e,t){if(!this.isValid)return!1;var i=e.valueOf(),n=this.setZone(e.zone,{keepLocalTime:!0});return n.startOf(t)<=i&&i<=n.endOf(t)},t.equals=function(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)},t.toRelative=function(t){if(void 0===t&&(t={}),!this.isValid)return null;var i=t.base||e.fromObject({zone:this.zone}),n=t.padding?this<i?-t.padding:t.padding:0,r=["years","months","days","hours","minutes","seconds"],o=t.unit;return Array.isArray(t.unit)&&(r=t.unit,o=void 0),ln(i,this.plus(n),Object.assign(t,{numeric:"always",units:r,unit:o}))},t.toRelativeCalendar=function(t){return void 0===t&&(t={}),this.isValid?ln(t.base||e.fromObject({zone:this.zone}),this,Object.assign(t,{numeric:"auto",units:["years","months","days"],calendary:!0})):null},e.min=function(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];if(!i.every(e.isDateTime))throw new g("min requires all arguments be DateTimes");return $(i,(function(e){return e.valueOf()}),Math.min)},e.max=function(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];if(!i.every(e.isDateTime))throw new g("max requires all arguments be DateTimes");return $(i,(function(e){return e.valueOf()}),Math.max)},e.fromFormatExplain=function(e,t,i){void 0===i&&(i={});var n=i,r=n.locale,o=void 0===r?null:r,s=n.numberingSystem,a=void 0===s?null:s;return Mi(dt.fromOpts({locale:o,numberingSystem:a,defaultToEN:!0}),e,t)},e.fromStringExplain=function(t,i,n){return void 0===n&&(n={}),e.fromFormatExplain(t,i,n)},n(e,[{key:"isValid",get:function(){return null===this.invalid}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}},{key:"locale",get:function(){return this.isValid?this.loc.locale:null}},{key:"numberingSystem",get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:"outputCalendar",get:function(){return this.isValid?this.loc.outputCalendar:null}},{key:"zone",get:function(){return this._zone}},{key:"zoneName",get:function(){return this.isValid?this.zone.name:null}},{key:"year",get:function(){return this.isValid?this.c.year:NaN}},{key:"quarter",get:function(){return this.isValid?Math.ceil(this.c.month/3):NaN}},{key:"month",get:function(){return this.isValid?this.c.month:NaN}},{key:"day",get:function(){return this.isValid?this.c.day:NaN}},{key:"hour",get:function(){return this.isValid?this.c.hour:NaN}},{key:"minute",get:function(){return this.isValid?this.c.minute:NaN}},{key:"second",get:function(){return this.isValid?this.c.second:NaN}},{key:"millisecond",get:function(){return this.isValid?this.c.millisecond:NaN}},{key:"weekYear",get:function(){return this.isValid?Gi(this).weekYear:NaN}},{key:"weekNumber",get:function(){return this.isValid?Gi(this).weekNumber:NaN}},{key:"weekday",get:function(){return this.isValid?Gi(this).weekday:NaN}},{key:"ordinal",get:function(){return this.isValid?Zi(this.c).ordinal:NaN}},{key:"monthShort",get:function(){return this.isValid?hi.months("short",{locObj:this.loc})[this.month-1]:null}},{key:"monthLong",get:function(){return this.isValid?hi.months("long",{locObj:this.loc})[this.month-1]:null}},{key:"weekdayShort",get:function(){return this.isValid?hi.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}},{key:"weekdayLong",get:function(){return this.isValid?hi.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}},{key:"offset",get:function(){return this.isValid?+this.o:NaN}},{key:"offsetNameShort",get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}},{key:"offsetNameLong",get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}},{key:"isOffsetFixed",get:function(){return this.isValid?this.zone.universal:null}},{key:"isInDST",get:function(){return!this.isOffsetFixed&&(this.offset>this.set({month:1}).offset||this.offset>this.set({month:5}).offset)}},{key:"isInLeapYear",get:function(){return re(this.year)}},{key:"daysInMonth",get:function(){return se(this.year,this.month)}},{key:"daysInYear",get:function(){return this.isValid?oe(this.year):NaN}},{key:"weeksInWeekYear",get:function(){return this.isValid?ce(this.weekYear):NaN}}],[{key:"DATE_SHORT",get:function(){return _}},{key:"DATE_MED",get:function(){return w}},{key:"DATE_MED_WITH_WEEKDAY",get:function(){return S}},{key:"DATE_FULL",get:function(){return O}},{key:"DATE_HUGE",get:function(){return R}},{key:"TIME_SIMPLE",get:function(){return T}},{key:"TIME_WITH_SECONDS",get:function(){return I}},{key:"TIME_WITH_SHORT_OFFSET",get:function(){return N}},{key:"TIME_WITH_LONG_OFFSET",get:function(){return V}},{key:"TIME_24_SIMPLE",get:function(){return E}},{key:"TIME_24_WITH_SECONDS",get:function(){return M}},{key:"TIME_24_WITH_SHORT_OFFSET",get:function(){return A}},{key:"TIME_24_WITH_LONG_OFFSET",get:function(){return D}},{key:"DATETIME_SHORT",get:function(){return C}},{key:"DATETIME_SHORT_WITH_SECONDS",get:function(){return j}},{key:"DATETIME_MED",get:function(){return F}},{key:"DATETIME_MED_WITH_SECONDS",get:function(){return L}},{key:"DATETIME_MED_WITH_WEEKDAY",get:function(){return P}},{key:"DATETIME_FULL",get:function(){return z}},{key:"DATETIME_FULL_WITH_SECONDS",get:function(){return Z}},{key:"DATETIME_HUGE",get:function(){return U}},{key:"DATETIME_HUGE_WITH_SECONDS",get:function(){return H}}]),e}();function fn(e){if(hn.isDateTime(e))return e;if(e&&e.valueOf&&B(e.valueOf()))return hn.fromJSDate(e);if(e&&"object"==typeof e)return hn.fromObject(e);throw new g("Unknown datetime argument: "+e+", of type "+typeof e)}t.ou=hn},278:(e,t,i)=>{"use strict";var n,r=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},o=function(){var e={};return function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(e){i=null}e[t]=i}return e[t]}}(),s=[];function a(e){for(var t=-1,i=0;i<s.length;i++)if(s[i].identifier===e){t=i;break}return t}function c(e,t){for(var i={},n=[],r=0;r<e.length;r++){var o=e[r],c=t.base?o[0]+t.base:o[0],u=i[c]||0,d="".concat(c," ").concat(u);i[c]=u+1;var x=a(d),l={css:o[1],media:o[2],sourceMap:o[3]};-1!==x?(s[x].references++,s[x].updater(l)):s.push({identifier:d,updater:m(l,t),references:1}),n.push(d)}return n}function u(e){var t=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var r=i.nc;r&&(n.nonce=r)}if(Object.keys(n).forEach((function(e){t.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(t);else{var s=o(e.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(t)}return t}var d,x=(d=[],function(e,t){return d[e]=t,d.filter(Boolean).join("\n")});function l(e,t,i,n){var r=i?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=x(t,r);else{var o=document.createTextNode(r),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(o,s[t]):e.appendChild(o)}}function h(e,t,i){var n=i.css,r=i.media,o=i.sourceMap;if(r?e.setAttribute("media",r):e.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var f=null,v=0;function m(e,t){var i,n,r;if(t.singleton){var o=v++;i=f||(f=u(t)),n=l.bind(null,i,o,!1),r=l.bind(null,i,o,!0)}else i=u(t),n=h.bind(null,i,t),r=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(i)};return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else r()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=r());var i=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<i.length;n++){var r=a(i[n]);s[r].references--}for(var o=c(e,t),u=0;u<i.length;u++){var d=a(i[u]);0===s[d].references&&(s[d].updater(),s.splice(d,1))}i=o}}}},417:(e,t,i)=>{e.exports=i(720)("./src/collaboration-core.js")},704:(e,t,i)=>{e.exports=i(79)("./src/core.js")},492:(e,t,i)=>{e.exports=i(79)("./src/engine.js")},273:(e,t,i)=>{e.exports=i(79)("./src/ui.js")},209:(e,t,i)=>{e.exports=i(79)("./src/utils.js")},720:e=>{"use strict";e.exports=CKEditor5.collaborationDll},79:e=>{"use strict";e.exports=CKEditor5.dll}},t={};function i(n){var r=t[n];if(void 0!==r)return r.exports;var o=t[n]={id:n,exports:{}};return e[n](o,o.exports,i),o.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nc=void 0;var n={};(()=>{"use strict";i.r(n),i.d(n,{RevisionHistory:()=>ws,RevisionHistoryUI:()=>Kn,RevisionTracker:()=>In,RevisionViewer:()=>br,RevisionViewerLoadingOverlay:()=>Lr,RevisionViewerUI:()=>Hr,RevisionsRepository:()=>Qi,RevisionsSidebar:()=>Qo});var e=i(704),t=i(209),r=i(417),o=i(492);const s=function(){this.__data__=[],this.size=0};const a=function(e,t){return e===t||e!=e&&t!=t};const c=function(e,t){for(var i=e.length;i--;)if(a(e[i][0],t))return i;return-1};var u=Array.prototype.splice;const d=function(e){var t=this.__data__,i=c(t,e);return!(i<0)&&(i==t.length-1?t.pop():u.call(t,i,1),--this.size,!0)};const x=function(e){var t=this.__data__,i=c(t,e);return i<0?void 0:t[i][1]};const l=function(e){return c(this.__data__,e)>-1};const h=function(e,t){var i=this.__data__,n=c(i,e);return n<0?(++this.size,i.push([e,t])):i[n][1]=t,this};function f(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}f.prototype.clear=s,f.prototype.delete=d,f.prototype.get=x,f.prototype.has=l,f.prototype.set=h;const v=f;const m=function(){this.__data__=new v,this.size=0};const g=function(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i};const y=function(e){return this.__data__.get(e)};const p=function(e){return this.__data__.has(e)};const b="object"==typeof global&&global&&global.Object===Object&&global;var k="object"==typeof self&&self&&self.Object===Object&&self;const _=b||k||Function("return this")();const w=_.Symbol;var S=Object.prototype,O=S.hasOwnProperty,R=S.toString,T=w?w.toStringTag:void 0;const I=function(e){var t=O.call(e,T),i=e[T];try{e[T]=void 0;var n=!0}catch(e){}var r=R.call(e);return n&&(t?e[T]=i:delete e[T]),r};var N=Object.prototype.toString;const V=function(e){return N.call(e)};var E=w?w.toStringTag:void 0;const M=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":E&&E in Object(e)?I(e):V(e)};const A=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};const D=function(e){if(!A(e))return!1;var t=M(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};const C=_["__core-js_shared__"];var j,F=(j=/[^.]+$/.exec(C&&C.keys&&C.keys.IE_PROTO||""))?"Symbol(src)_1."+j:"";const L=function(e){return!!F&&F in e};var P=Function.prototype.toString;const z=function(e){if(null!=e){try{return P.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var Z=/^\[object .+?Constructor\]$/,U=Function.prototype,H=Object.prototype,q=U.toString,B=H.hasOwnProperty,W=RegExp("^"+q.call(B).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const J=function(e){return!(!A(e)||L(e))&&(D(e)?W:Z).test(z(e))};const G=function(e,t){return null==e?void 0:e[t]};const Y=function(e,t){var i=G(e,t);return J(i)?i:void 0};const $=Y(_,"Map");const K=Y(Object,"create");const X=function(){this.__data__=K?K(null):{},this.size=0};const Q=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t};var ee=Object.prototype.hasOwnProperty;const te=function(e){var t=this.__data__;if(K){var i=t[e];return"__lodash_hash_undefined__"===i?void 0:i}return ee.call(t,e)?t[e]:void 0};var ie=Object.prototype.hasOwnProperty;const ne=function(e){var t=this.__data__;return K?void 0!==t[e]:ie.call(t,e)};const re=function(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=K&&void 0===t?"__lodash_hash_undefined__":t,this};function oe(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}oe.prototype.clear=X,oe.prototype.delete=Q,oe.prototype.get=te,oe.prototype.has=ne,oe.prototype.set=re;const se=oe;const ae=function(){this.size=0,this.__data__={hash:new se,map:new($||v),string:new se}};const ce=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};const ue=function(e,t){var i=e.__data__;return ce(t)?i["string"==typeof t?"string":"hash"]:i.map};const de=function(e){var t=ue(this,e).delete(e);return this.size-=t?1:0,t};const xe=function(e){return ue(this,e).get(e)};const le=function(e){return ue(this,e).has(e)};const he=function(e,t){var i=ue(this,e),n=i.size;return i.set(e,t),this.size+=i.size==n?0:1,this};function fe(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}fe.prototype.clear=ae,fe.prototype.delete=de,fe.prototype.get=xe,fe.prototype.has=le,fe.prototype.set=he;const ve=fe;const me=function(e,t){var i=this.__data__;if(i instanceof v){var n=i.__data__;if(!$||n.length<199)return n.push([e,t]),this.size=++i.size,this;i=this.__data__=new ve(n)}return i.set(e,t),this.size=i.size,this};function ge(e){var t=this.__data__=new v(e);this.size=t.size}ge.prototype.clear=m,ge.prototype.delete=g,ge.prototype.get=y,ge.prototype.has=p,ge.prototype.set=me;const ye=ge;const pe=function(e,t){for(var i=-1,n=null==e?0:e.length;++i<n&&!1!==t(e[i],i,e););return e};const be=function(){try{var e=Y(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();const ke=function(e,t,i){"__proto__"==t&&be?be(e,t,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[t]=i};var _e=Object.prototype.hasOwnProperty;const we=function(e,t,i){var n=e[t];_e.call(e,t)&&a(n,i)&&(void 0!==i||t in e)||ke(e,t,i)};const Se=function(e,t,i,n){var r=!i;i||(i={});for(var o=-1,s=t.length;++o<s;){var a=t[o],c=n?n(i[a],e[a],a,i,e):void 0;void 0===c&&(c=e[a]),r?ke(i,a,c):we(i,a,c)}return i};const Oe=function(e,t){for(var i=-1,n=Array(e);++i<e;)n[i]=t(i);return n};const Re=function(e){return null!=e&&"object"==typeof e};const Te=function(e){return Re(e)&&"[object Arguments]"==M(e)};var Ie=Object.prototype,Ne=Ie.hasOwnProperty,Ve=Ie.propertyIsEnumerable;const Ee=Te(function(){return arguments}())?Te:function(e){return Re(e)&&Ne.call(e,"callee")&&!Ve.call(e,"callee")};const Me=Array.isArray;const Ae=function(){return!1};var De="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ce=De&&"object"==typeof module&&module&&!module.nodeType&&module,je=Ce&&Ce.exports===De?_.Buffer:void 0;const Fe=(je?je.isBuffer:void 0)||Ae;var Le=/^(?:0|[1-9]\d*)$/;const Pe=function(e,t){var i=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==i||"symbol"!=i&&Le.test(e))&&e>-1&&e%1==0&&e<t};const ze=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var Ze={};Ze["[object Float32Array]"]=Ze["[object Float64Array]"]=Ze["[object Int8Array]"]=Ze["[object Int16Array]"]=Ze["[object Int32Array]"]=Ze["[object Uint8Array]"]=Ze["[object Uint8ClampedArray]"]=Ze["[object Uint16Array]"]=Ze["[object Uint32Array]"]=!0,Ze["[object Arguments]"]=Ze["[object Array]"]=Ze["[object ArrayBuffer]"]=Ze["[object Boolean]"]=Ze["[object DataView]"]=Ze["[object Date]"]=Ze["[object Error]"]=Ze["[object Function]"]=Ze["[object Map]"]=Ze["[object Number]"]=Ze["[object Object]"]=Ze["[object RegExp]"]=Ze["[object Set]"]=Ze["[object String]"]=Ze["[object WeakMap]"]=!1;const Ue=function(e){return Re(e)&&ze(e.length)&&!!Ze[M(e)]};const He=function(e){return function(t){return e(t)}};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Be=qe&&"object"==typeof module&&module&&!module.nodeType&&module,We=Be&&Be.exports===qe&&b.process;const Je=function(){try{var e=Be&&Be.require&&Be.require("util").types;return e||We&&We.binding&&We.binding("util")}catch(e){}}();var Ge=Je&&Je.isTypedArray;const Ye=Ge?He(Ge):Ue;var $e=Object.prototype.hasOwnProperty;const Ke=function(e,t){var i=Me(e),n=!i&&Ee(e),r=!i&&!n&&Fe(e),o=!i&&!n&&!r&&Ye(e),s=i||n||r||o,a=s?Oe(e.length,String):[],c=a.length;for(var u in e)!t&&!$e.call(e,u)||s&&("length"==u||r&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Pe(u,c))||a.push(u);return a};var Xe=Object.prototype;const Qe=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Xe)};const et=function(e,t){return function(i){return e(t(i))}};const tt=et(Object.keys,Object);var it=Object.prototype.hasOwnProperty;const nt=function(e){if(!Qe(e))return tt(e);var t=[];for(var i in Object(e))it.call(e,i)&&"constructor"!=i&&t.push(i);return t};const rt=function(e){return null!=e&&ze(e.length)&&!D(e)};const ot=function(e){return rt(e)?Ke(e):nt(e)};const st=function(e,t){return e&&Se(t,ot(t),e)};const at=function(e){var t=[];if(null!=e)for(var i in Object(e))t.push(i);return t};var ct=Object.prototype.hasOwnProperty;const ut=function(e){if(!A(e))return at(e);var t=Qe(e),i=[];for(var n in e)("constructor"!=n||!t&&ct.call(e,n))&&i.push(n);return i};const dt=function(e){return rt(e)?Ke(e,!0):ut(e)};const xt=function(e,t){return e&&Se(t,dt(t),e)};var lt="object"==typeof exports&&exports&&!exports.nodeType&&exports,ht=lt&&"object"==typeof module&&module&&!module.nodeType&&module,ft=ht&&ht.exports===lt?_.Buffer:void 0,vt=ft?ft.allocUnsafe:void 0;const mt=function(e,t){if(t)return e.slice();var i=e.length,n=vt?vt(i):new e.constructor(i);return e.copy(n),n};const gt=function(e,t){var i=-1,n=e.length;for(t||(t=Array(n));++i<n;)t[i]=e[i];return t};const yt=function(e,t){for(var i=-1,n=null==e?0:e.length,r=0,o=[];++i<n;){var s=e[i];t(s,i,e)&&(o[r++]=s)}return o};const pt=function(){return[]};var bt=Object.prototype.propertyIsEnumerable,kt=Object.getOwnPropertySymbols;const _t=kt?function(e){return null==e?[]:(e=Object(e),yt(kt(e),(function(t){return bt.call(e,t)})))}:pt;const wt=function(e,t){return Se(e,_t(e),t)};const St=function(e,t){for(var i=-1,n=t.length,r=e.length;++i<n;)e[r+i]=t[i];return e};const Ot=et(Object.getPrototypeOf,Object);const Rt=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)St(t,_t(e)),e=Ot(e);return t}:pt;const Tt=function(e,t){return Se(e,Rt(e),t)};const It=function(e,t,i){var n=t(e);return Me(e)?n:St(n,i(e))};const Nt=function(e){return It(e,ot,_t)};const Vt=function(e){return It(e,dt,Rt)};const Et=Y(_,"DataView");const Mt=Y(_,"Promise");const At=Y(_,"Set");const Dt=Y(_,"WeakMap");var Ct="[object Map]",jt="[object Promise]",Ft="[object Set]",Lt="[object WeakMap]",Pt="[object DataView]",zt=z(Et),Zt=z($),Ut=z(Mt),Ht=z(At),qt=z(Dt),Bt=M;(Et&&Bt(new Et(new ArrayBuffer(1)))!=Pt||$&&Bt(new $)!=Ct||Mt&&Bt(Mt.resolve())!=jt||At&&Bt(new At)!=Ft||Dt&&Bt(new Dt)!=Lt)&&(Bt=function(e){var t=M(e),i="[object Object]"==t?e.constructor:void 0,n=i?z(i):"";if(n)switch(n){case zt:return Pt;case Zt:return Ct;case Ut:return jt;case Ht:return Ft;case qt:return Lt}return t});const Wt=Bt;var Jt=Object.prototype.hasOwnProperty;const Gt=function(e){var t=e.length,i=new e.constructor(t);return t&&"string"==typeof e[0]&&Jt.call(e,"index")&&(i.index=e.index,i.input=e.input),i};const Yt=_.Uint8Array;const $t=function(e){var t=new e.constructor(e.byteLength);return new Yt(t).set(new Yt(e)),t};const Kt=function(e,t){var i=t?$t(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)};var Xt=/\w*$/;const Qt=function(e){var t=new e.constructor(e.source,Xt.exec(e));return t.lastIndex=e.lastIndex,t};var ei=w?w.prototype:void 0,ti=ei?ei.valueOf:void 0;const ii=function(e){return ti?Object(ti.call(e)):{}};const ni=function(e,t){var i=t?$t(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)};const ri=function(e,t,i){var n=e.constructor;switch(t){case"[object ArrayBuffer]":return $t(e);case"[object Boolean]":case"[object Date]":return new n(+e);case"[object DataView]":return Kt(e,i);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 ni(e,i);case"[object Map]":case"[object Set]":return new n;case"[object Number]":case"[object String]":return new n(e);case"[object RegExp]":return Qt(e);case"[object Symbol]":return ii(e)}};var oi=Object.create;const si=function(){function e(){}return function(t){if(!A(t))return{};if(oi)return oi(t);e.prototype=t;var i=new e;return e.prototype=void 0,i}}();const ai=function(e){return"function"!=typeof e.constructor||Qe(e)?{}:si(Ot(e))};const ci=function(e){return Re(e)&&"[object Map]"==Wt(e)};var ui=Je&&Je.isMap;const di=ui?He(ui):ci;const xi=function(e){return Re(e)&&"[object Set]"==Wt(e)};var li=Je&&Je.isSet;const hi=li?He(li):xi;var fi="[object Arguments]",vi="[object Function]",mi="[object Object]",gi={};gi[fi]=gi["[object Array]"]=gi["[object ArrayBuffer]"]=gi["[object DataView]"]=gi["[object Boolean]"]=gi["[object Date]"]=gi["[object Float32Array]"]=gi["[object Float64Array]"]=gi["[object Int8Array]"]=gi["[object Int16Array]"]=gi["[object Int32Array]"]=gi["[object Map]"]=gi["[object Number]"]=gi[mi]=gi["[object RegExp]"]=gi["[object Set]"]=gi["[object String]"]=gi["[object Symbol]"]=gi["[object Uint8Array]"]=gi["[object Uint8ClampedArray]"]=gi["[object Uint16Array]"]=gi["[object Uint32Array]"]=!0,gi["[object Error]"]=gi[vi]=gi["[object WeakMap]"]=!1;const yi=function e(t,i,n,r,o,s){var a,c=1&i,u=2&i,d=4&i;if(n&&(a=o?n(t,r,o,s):n(t)),void 0!==a)return a;if(!A(t))return t;var x=Me(t);if(x){if(a=Gt(t),!c)return gt(t,a)}else{var l=Wt(t),h=l==vi||"[object GeneratorFunction]"==l;if(Fe(t))return mt(t,c);if(l==mi||l==fi||h&&!o){if(a=u||h?{}:ai(t),!c)return u?Tt(t,xt(a,t)):wt(t,st(a,t))}else{if(!gi[l])return o?t:{};a=ri(t,l,c)}}s||(s=new ye);var f=s.get(t);if(f)return f;s.set(t,a),hi(t)?t.forEach((function(r){a.add(e(r,i,n,r,t,s))})):di(t)&&t.forEach((function(r,o){a.set(o,e(r,i,n,o,t,s))}));var v=x?void 0:(d?u?Vt:Nt:u?dt:ot)(t);return pe(v||t,(function(r,o){v&&(r=t[o=r]),we(a,o,e(r,i,n,o,t,s))})),a};const pi=function(e){return yi(e,5)};const bi=function(e){return"symbol"==typeof e||Re(e)&&"[object Symbol]"==M(e)};var ki=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_i=/^\w*$/;const wi=function(e,t){if(Me(e))return!1;var i=typeof e;return!("number"!=i&&"symbol"!=i&&"boolean"!=i&&null!=e&&!bi(e))||(_i.test(e)||!ki.test(e)||null!=t&&e in Object(t))};function Si(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var i=function(){var n=arguments,r=t?t.apply(this,n):n[0],o=i.cache;if(o.has(r))return o.get(r);var s=e.apply(this,n);return i.cache=o.set(r,s)||o,s};return i.cache=new(Si.Cache||ve),i}Si.Cache=ve;const Oi=Si;var Ri=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ti=/\\(\\)?/g;const Ii=function(e){var t=Oi(e,(function(e){return 500===i.size&&i.clear(),e})),i=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Ri,(function(e,i,n,r){t.push(n?r.replace(Ti,"$1"):i||e)})),t}));const Ni=function(e,t){for(var i=-1,n=null==e?0:e.length,r=Array(n);++i<n;)r[i]=t(e[i],i,e);return r};var Vi=w?w.prototype:void 0,Ei=Vi?Vi.toString:void 0;const Mi=function e(t){if("string"==typeof t)return t;if(Me(t))return Ni(t,e)+"";if(bi(t))return Ei?Ei.call(t):"";var i=t+"";return"0"==i&&1/t==-Infinity?"-0":i};const Ai=function(e){return null==e?"":Mi(e)};const Di=function(e,t){return Me(e)?e:wi(e,t)?[e]:Ii(Ai(e))};const Ci=function(e){if("string"==typeof e||bi(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};const ji=function(e,t,i,n){if(!A(e))return e;for(var r=-1,o=(t=Di(t,e)).length,s=o-1,a=e;null!=a&&++r<o;){var c=Ci(t[r]),u=i;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(r!=s){var d=a[c];void 0===(u=n?n(d,c,a):void 0)&&(u=A(d)?d:Pe(t[r+1])?[]:{})}we(a,c,u),a=a[c]}return e};const Fi=function(e,t,i){return null==e?e:ji(e,t,i)};const Li=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0};const Pi=function(e,t){for(var i=0,n=(t=Di(t,e)).length;null!=e&&i<n;)e=e[Ci(t[i++])];return i&&i==n?e:void 0};const zi=function(e,t,i){var n=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(i=i>r?r:i)<0&&(i+=r),r=t>i?0:i-t>>>0,t>>>=0;for(var o=Array(r);++n<r;)o[n]=e[n+t];return o};const Zi=function(e,t){return t.length<2?e:Pi(e,zi(t,0,-1))};const Ui=function(e,t){return t=Di(t,e),null==(e=Zi(e,t))||delete e[Ci(Li(t))]};const Hi=function(e,t){return null==e||Ui(e,t)},qi=["name","set","toVersion","creator","attributes","_update","creatorId","map","fire","toJSON","authors","fromVersion","createdAt","authorsIds","diffData"];var Bi,Wi;Bi=qi,Wi=266,function(e){for(;--e;)Bi.push(Bi.shift())}(++Wi);const Ji=function(e,t){return qi[e-=0]};class Gi extends((0,t.ObservableMixin)()){constructor(e){super(),this.id=e.id||(0,t.uid)(),this[Ji("0x7")]=e[Ji("0x7")]||null,this[Ji("0xe")]=e[Ji("0xe")]||[],this[Ji("0x3")]=e[Ji("0x3")]||null,this.toVersion=e[Ji("0x6")]||0,this[Ji("0x0")]=e[Ji("0x0")]||0,this.set(Ji("0x4"),e[Ji("0x4")]||""),this[Ji("0x5")](Ji("0x1"),e[Ji("0x1")]||new Date),this[Ji("0x5")](Ji("0x8"),e[Ji("0x8")]||{})}setName(e){this._update({name:e})}setAttribute(e,t){const i=pi(this[Ji("0x8")]);Fi(i,e,t),this[Ji("0x9")]({attributes:i})}removeAttribute(e){const t=pi(this[Ji("0x8")]);Hi(t,e),this[Ji("0x9")]({attributes:t})}_update(e,t=!1){let i=!1;const n={id:this.id},r=[Ji("0x4"),Ji("0x1"),Ji("0x3"),"authors",Ji("0x8"),Ji("0x6"),Ji("0x0"),Ji("0xa")];for(const t of r){const r=e[t];void 0!==r&&r!==this[t]&&(this[t]=r,n[t]=r,i=!0)}i&&(n[Ji("0xe")]&&(n[Ji("0x2")]=n.authors[Ji("0xb")]((e=>e.id)),delete n[Ji("0xe")]),this[Ji("0xc")](Ji("0x9"),n,t))}[Ji("0xd")](){return{id:this.id,name:this.name,creatorId:this[Ji("0x7")]?this[Ji("0x7")].id:null,authorsIds:this[Ji("0xe")][Ji("0xb")]((e=>e.id)),diffData:this[Ji("0x3")],createdAt:this.createdAt,attributes:this[Ji("0x8")],fromVersion:this[Ji("0x0")],toVersion:this.toVersion}}}const Yi=["pluginName","toJSON","length","getUser","getRevisionsIterator","earlier","creatorId","config","reverse","editor","name","addRevision","get","requires","createdAt","toVersion","map","getIndex","getRevision","_revisions","attributes","newRevisionId","add","afterInit","context","then","getRevisionsInDiff","fromCharCode","authorsIds","isNaN","from","getEarlierVisibleRevision","fromVersion"];var $i,Ki;$i=Yi,Ki=360,function(e){for(;--e;)$i.push($i.shift())}(++Ki);const Xi=function(e,t){return Yi[e-=0]};class Qi extends e.Plugin{static get[Xi("0x10")](){return[r.Users]}static get[Xi("0x3")](){return"RevisionsRepository"}get[Xi("0x5")](){return this[Xi("0x16")][Xi("0x5")]}constructor(e){super(e),this[Xi("0x16")]=new t.Collection}[Xi("0x1a")](){!function(t){function i(e){return e[Xi("0x13")]((e=>String[Xi("0x1e")](e))).join("")}(t=>{function n(e){return i([112,108,117,103,105,110,78,97,109,101])in e}const r=[1,85,78,115,198,255,50,112,83,87,161],o=[127,34,6,211,167,86,146,199,132,160,18];function s(e){return function(e,t){const n=function(e){const t=atob(e),[n,r]=t[i([115,112,108,105,116])](i([45]));try{if(atob(r))return atob(n)}catch(e){}return t}(e),r=Array[i([102,114,111,109])](function(e){const t=new Uint8Array(e[i([108,101,110,103,116,104])]);for(let n=0;n<e[i([108,101,110,103,116,104])];n++)t[n]=e[i([99,104,97,114,67,111,100,101,65,116])](n);return t}(n)),o=r[i([112,111,112])](),s=r[i([112,111,112])]();return function(e){let t="";for(const n of e)t+=String[i([102,114,111,109,67,104,97,114,67,111,100,101])](n);return t}(function(e,t,n){const r={};r[i([110,117,109,98,101,114,79,102,82,111,117,110,100,115])]={16:10,24:12,32:14},r[i([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],r[i([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],r[i([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],r[i([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],r[i([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],r[i([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],r[i([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],r[i([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],r[i([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],r[i([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 o=new Uint8Array(16);for(let e=15;e>=0;--e)o[e]=n%256,n=parseInt(n/256);let s=null,a=16;const c=new Uint8Array(t),u=[],d=[];!function(){const e=r[i([110,117,109,98,101,114,79,102,82,111,117,110,100,115])][c[i([108,101,110,103,116,104])]];for(let t=0;t<=e;t++)u[i([112,117,115,104])]([0,0,0,0]),d[i([112,117,115,104])]([0,0,0,0]);const t=4*(e+1),n=c[i([108,101,110,103,116,104])]/4,o=x(c);let s;for(let t=0;t<n;t++)s=t>>2,u[s][t%4]=o[t],d[e-s][t%4]=o[t];let a,l=0,h=n;for(;h<t;){a=o[n-1],o[0]^=r[i([83])][a>>16&255]<<24^r[i([83])][a>>8&255]<<16^r[i([83])][255&a]<<8^r[i([83])][a>>24&255]^r[i([114,99,111,110])][l]<<24,l+=1;for(let e=1;e<n/2;e++)o[e]^=o[e-1];a=o[n/2-1],o[n/2]^=r[i([83])][255&a]^r[i([83])][a>>8&255]<<8^r[i([83])][a>>16&255]<<16^r[i([83])][a>>24&255]<<24;for(let e=n/2+1;e<n;e++)o[e]^=o[e-1];let s,c,x=0;for(;x<n&&h<t;)s=h>>2,c=h%4,u[s][c]=o[x],d[e-s][c]=o[x++],h++}for(let t=1;t<e;t++)for(let e=0;e<4;e++)a=d[t][e],d[t][e]=r[i([85,49])][a>>24&255]^r[i([85,50])][a>>16&255]^r[i([85,51])][a>>8&255]^r[i([85,52])][255&a]}();for(let t=0;t<e[i([108,101,110,103,116,104])];t++)16===a&&(s=h(o),a=0,l(o)),e[t]^=s[a++];return e;function x(e){const t=[];for(let n=0;n<e[i([108,101,110,103,116,104])];n+=4)t[i([112,117,115,104])](e[n]<<24|e[n+1]<<16|e[n+2]<<8|e[n+3]);return t}function l(e){for(let t=15;t>=0;t--){if(255!==e[t]){e[t]++;break}e[t]=0}}function h(e){const t=u[i([108,101,110,103,116,104])]-1,n=[0,0,0,0];let o=x(e);for(let e=0;e<4;e++)o[e]^=u[0][e];for(let e=1;e<t;e++){for(let t=0;t<4;t++)n[t]=r[i([84,49])][o[t]>>24&255]^r[i([84,50])][o[(t+1)%4]>>16&255]^r[i([84,51])][o[(t+2)%4]>>8&255]^r[i([84,52])][255&o[(t+3)%4]]^u[e][t];o=n[i([115,108,105,99,101])]()}const s=new Uint8Array(16);let a;for(let e=0;e<4;e++)a=u[t][e],s[4*e]=255&(r[i([83])][o[e]>>24&255]^a>>24),s[4*e+1]=255&(r[i([83])][o[(e+1)%4]>>16&255]^a>>16),s[4*e+2]=255&(r[i([83])][o[(e+2)%4]>>8&255]^a>>8),s[4*e+3]=255&(r[i([83])][255&o[(e+3)%4]]^a);return s}}(r,t,s+256*o))}(e,new Uint8Array([...r,29,221,175,90,231,133,239,240,75,180,...o]))}const a=function(){const e=[{[i([105,100])]:1,[i([102,101,97,116,117,114,101,78,97,109,101])]:i([67,111,109,109,101,110,116,115]),[i([112,108,117,103,105,110,78,97,109,101])]:i([67,111,109,109,101,110,116,115,82,101,112,111,115,105,116,111,114,121]),[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:i([108,105,99,101,110,115,101,75,101,121]),[i([104,97,110,100,108,101,114])]:i([99,104,101,99,107,76,105,99,101,110,115,101]),[i([99,104,101,99,107,65,108,115,111])]:[{[i([105,100])]:2,[i([102,101,97,116,117,114,101,78,97,109,101])]:i([84,114,97,99,107,32,67,104,97,110,103,101,115]),[i([112,108,117,103,105,110,78,97,109,101])]:i([84,114,97,99,107,67,104,97,110,103,101,115,69,100,105,116,105,110,103]),[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:i([108,105,99,101,110,115,101,75,101,121]),[i([104,97,110,100,108,101,114])]:i([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,84,114,97,99,107,67,104,97,110,103,101,115]),[i([111,112,116,105,111,110,115])]:{[i([97,105,119,115,103,105,99])]:!0,[i([97,105,116,99,100,103,105,108])]:!0,[i([97,105,114,118,105,105,108])]:!0}}],[i([111,112,116,105,111,110,115])]:{[i([97,105,119,115,103,105,99])]:!0,[i([97,105,116,99,100,103,105,108])]:!0,[i([97,105,114,118,105,105,108])]:!0}},{[i([105,100])]:3,[i([102,101,97,116,117,114,101,78,97,109,101])]:i([80,97,103,105,110,97,116,105,111,110]),[i([112,108,117,103,105,110,78,97,109,101])]:i([80,97,103,105,110,97,116,105,111,110,76,111,111,107,117,112]),[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:i([112,97,103,105,110,97,116,105,111,110,76,105,99,101,110,115,101,75,101,121]),[i([104,97,110,100,108,101,114])]:i([99,104,101,99,107,76,105,99,101,110,115,101])},{[i([105,100])]:4,[i([102,101,97,116,117,114,101,78,97,109,101])]:i([82,101,118,105,115,105,111,110,32,72,105,115,116,111,114,121]),[i([112,108,117,103,105,110,78,97,109,101])]:i([82,101,118,105,115,105,111,110,115,82,101,112,111,115,105,116,111,114,121]),[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:i([108,105,99,101,110,115,101,75,101,121]),[i([104,97,110,100,108,101,114])]:i([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,82,101,118,105,115,105,111,110,72,105,115,116,111,114,121]),[i([111,112,116,105,111,110,115])]:{[i([97,105,119,115,103,105,99])]:!0,[i([97,105,116,99,100,103,105,108])]:!0,[i([97,105,114,118,105,105,108])]:!0}},{[i([105,100])]:5,[i([102,101,97,116,117,114,101,78,97,109,101])]:i([68,111,99,117,109,101,110,116,32,79,117,116,108,105,110,101]),[i([112,108,117,103,105,110,78,97,109,101])]:i([68,111,99,117,109,101,110,116,79,117,116,108,105,110,101,85,73]),[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:i([100,111,99,117,109,101,110,116,79,117,116,108,105,110,101,76,105,99,101,110,115,101,75,101,121]),[i([104,97,110,100,108,101,114])]:i([99,104,101,99,107,76,105,99,101,110,115,101]),[i([111,112,116,105,111,110,115])]:{[i([102,103,105])]:12}},{[i([105,100])]:6,[i([102,101,97,116,117,114,101,78,97,109,101])]:i([70,111,114,109,97,116,32,80,97,105,110,116,101,114]),[i([112,108,117,103,105,110,78,97,109,101])]:i([70,111,114,109,97,116,80,97,105,110,116,101,114,85,73]),[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:i([102,111,114,109,97,116,80,97,105,110,116,101,114,76,105,99,101,110,115,101,75,101,121]),[i([104,97,110,100,108,101,114])]:i([99,104,101,99,107,76,105,99,101,110,115,101]),[i([111,112,116,105,111,110,115])]:{[i([102,103,105])]:12}},{[i([105,100])]:7,[i([102,101,97,116,117,114,101,78,97,109,101])]:i([83,108,97,115,104,32,67,111,109,109,97,110,100]),[i([112,108,117,103,105,110,78,97,109,101])]:i([83,108,97,115,104,67,111,109,109,97,110,100,85,73]),[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:i([115,108,97,115,104,67,111,109,109,97,110,100,76,105,99,101,110,115,101,75,101,121]),[i([104,97,110,100,108,101,114])]:i([99,104,101,99,107,76,105,99,101,110,115,101]),[i([111,112,116,105,111,110,115])]:{[i([102,103,105])]:12}},{[i([105,100])]:8,[i([102,101,97,116,117,114,101,78,97,109,101])]:i([84,97,98,108,101,32,111,102,32,67,111,110,116,101,110,116,115]),[i([112,108,117,103,105,110,78,97,109,101])]:i([84,97,98,108,101,79,102,67,111,110,116,101,110,116,115,69,100,105,116,105,110,103]),[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:i([116,97,98,108,101,79,102,67,111,110,116,101,110,116,115,76,105,99,101,110,115,101,75,101,121]),[i([104,97,110,100,108,101,114])]:i([99,104,101,99,107,76,105,99,101,110,115,101]),[i([111,112,116,105,111,110,115])]:{[i([102,103,105])]:12}},{[i([105,100])]:9,[i([102,101,97,116,117,114,101,78,97,109,101])]:i([84,101,109,112,108,97,116,101]),[i([112,108,117,103,105,110,78,97,109,101])]:i([84,101,109,112,108,97,116,101,85,73]),[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:i([116,101,109,112,108,97,116,101,76,105,99,101,110,115,101,75,101,121]),[i([104,97,110,100,108,101,114])]:i([99,104,101,99,107,76,105,99,101,110,115,101]),[i([111,112,116,105,111,110,115])]:{[i([102,103,105])]:12}},{[i([105,100])]:10,[i([102,101,97,116,117,114,101,78,97,109,101])]:i([80,97,115,116,101,32,102,114,111,109,32,79,102,102,105,99,101,32,69,110,104,97,110,99,101,100]),[i([112,108,117,103,105,110,78,97,109,101])]:i([80,97,115,116,101,70,114,111,109,79,102,102,105,99,101,69,110,104,97,110,99,101,100,73,110,108,105,110,101,114]),[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:i([112,97,115,116,101,70,114,111,109,79,102,102,105,99,101,69,110,104,97,110,99,101,100,76,105,99,101,110,115,101,75,101,121]),[i([104,97,110,100,108,101,114])]:i([99,104,101,99,107,76,105,99,101,110,115,101]),[i([111,112,116,105,111,110,115])]:{[i([102,103,105])]:12}},{[i([105,100])]:11,[i([102,101,97,116,117,114,101,78,97,109,101])]:i([65,73,32,65,115,115,105,115,116,97,110,116]),[i([112,108,117,103,105,110,78,97,109,101])]:i([65,73,65,115,115,105,115,116,97,110,116,85,73]),[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]:i([97,105,76,105,99,101,110,115,101,75,101,121]),[i([104,97,110,100,108,101,114])]:i([99,104,101,99,107,76,105,99,101,110,115,101])},{[i([105,100])]:12,[i([102,101,97,116,117,114,101,78,97,109,101])]:i([80,114,111,100,117,99,116,105,118,105,116,121,32,112,97,99,107])}];return function e(t){t[i([102,111,114,69,97,99,104])]((t=>{t[i([112,101,114,109,105,115,115,105,111,110,77,97,115,107])]=1<<t[i([105,100])]-1,n(t)&&t[i([99,104,101,99,107,65,108,115,111])]&&e(t[i([99,104,101,99,107,65,108,115,111])])}))}(e),e}(),c={[i([99,104,101,99,107,76,105,99,101,110,115,101])]:function(e,t){m(v(e,t),t)},[i([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,84,114,97,99,107,67,104,97,110,103,101,115])]:function(e,t){m(function(e,t){try{if(_(d,i([84,114,97,99,107,67,104,97,110,103,101,115,69,100,105,116,105,110,103]))&&e){const n=w(d,i([84,114,97,99,107,67,104,97,110,103,101,115,69,100,105,116,105,110,103]))[i([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])];if(parseInt(n)/2>e[i([101,120,112,105,114,97,116,105,111,110,68,97,116,101])])return g(t[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([73,110,118,97,108,105,100]))}return v(e,t)}catch(e){return g(t[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([73,110,118,97,108,105,100]))}}(e,t),t)},[i([99,104,101,99,107,76,105,99,101,110,115,101,70,111,114,82,101,118,105,115,105,111,110,72,105,115,116,111,114,121])]:function(e,t){const n=o[0]*r[1],s=o[0]*r[2],a=o[2]*r[2];function c(e,t){u(),g(t+i([84,114,105,97,108,76,105,109,105,116,58])+e),window[y()]=e===i([116,105,109,101])?n:s}function u(){const e=d;function t(){_(e,i([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))&&(w(e,i([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[i([117,110,98,105,110,100])](i([105,115,69,110,97,98,108,101,100])),w(e,i([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[i([105,115,69,110,97,98,108,101,100])]=!1,w(e,i([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[i([117,112,100,97,116,101])]=k,w(e,i([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[i([115,97,118,101,82,101,118,105,115,105,111,110])]=k,e[i([109,111,100,101,108])][i([99,104,97,110,103,101])]=k,e[i([109,111,100,101,108])][i([101,110,113,117,101,117,101,67,104,97,110,103,101])]=k,e[i([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](i([109,111,100,101,108]))),_(e,i([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))&&(w(e,i([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[i([117,110,98,105,110,100])](i([105,115,69,110,97,98,108,101,100])),w(e,i([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[i([105,115,69,110,97,98,108,101,100])]=!1,w(e,i([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[i([99,111,109,112,97,114,101])]=k,w(e,i([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[i([95,103,101,116,68,105,102,102])]=k)}e[i([115,116,97,116,101])]==i([114,101,97,100,121])?t():e[i([111,110,99,101])](i([114,101,97,100,121]),(()=>{if(_(e,i([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))&&t(),_(e,i([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))){const n=w(e,i([82,101,118,105,115,105,111,110,115,82,101,112,111,115,105,116,111,114,121])),r=n[Xi("0x15")](0),o=n[Xi("0x1")](r[i([105,100])]);w(e,i([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[i([99,111,109,112,97,114,101])](r[i([105,100])],o?o[i([105,100])]:null,1)[Xi("0x1c")]((()=>t()))}}))}_(d,i([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))&&w(d,i([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))[i([115,116,97,116,101])]==i([99,111,110,110,101,99,116,101,100])&&(window[y()]=a),function(e,t){if(e==t[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([73,110,118,97,108,105,100]))u();else if(e==t[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([84,114,105,97,108])){const e=function(){if(!_(d,i([82,101,118,105,115,105,111,110,86,105,101,119,101,114])))return!1;for(const e in window)if(Number[Xi("0x20")](Number(e))){if(window[e]===n)return i([116,105,109,101]);if(window[e]===s)return i([114,101,118,105,115,105,111,110,115])}return!1}();e&&c(e,t[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]);const a=function(){let e=o[6]*r[8]*r[6];return _(d,i([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))&&(e/=10),e}();window[i([115,101,116,84,105,109,101,111,117,116])]((()=>{c(i([116,105,109,101]),t[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])])}),a);const u=w(d,i([82,101,118,105,115,105,111,110,115,82,101,112,111,115,105,116,111,114,121]))[i([95,114,101,118,105,115,105,111,110,115])];u[i([108,101,110,103,116,104])]>=7?c(i([114,101,118,105,115,105,111,110,115]),t[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]):u.on(i([97,100,100]),(()=>{u[i([108,101,110,103,116,104])]>=7&&c(i([114,101,118,105,115,105,111,110,115]),t[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])])}))}}(function(e,t){try{return function(){if(!_(d,i([82,101,118,105,115,105,111,110,86,105,101,119,101,114])))return!1;for(const e in window)if(Number[Xi("0x20")](Number(e))&&window[e]===a)return!0;return!1}()?g(t[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([86,97,108,105,100])):v(e,t)}catch(e){return g(t[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([73,110,118,97,108,105,100]))}}(e,t),t)}},u=t[i([99,111,110,115,116,114,117,99,116,111,114])][i([112,108,117,103,105,110,78,97,109,101])],d=i([99,111,110,116,101,120,116])in t?t[Xi("0x1b")]:t[Xi("0xc")],x=i([52,48,52,54,50,48,53,54]),l=i([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]),h=d[Xi("0xa")][Xi("0xf")](i([108,105,99,101,110,115,101,75,101,121])),f=a[i([102,105,108,116,101,114])](n)[i([102,105,110,100])]((e=>e[i([112,108,117,103,105,110,78,97,109,101])]===u));function v(e,t){try{return function(e){if(!_(d,e[i([112,108,117,103,105,110,78,97,109,101])]))return!0;const t=e[i([111,112,116,105,111,110,115])]||{},n=t[i([97,105,119,115,103,105,99])]||!1,r=t[i([97,105,116,99,100,103,105,108])]||!1,o=t[i([97,105,114,118,105,105,108])]||!1;return!(!_(d,i([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))||w(d,i([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))[i([115,116,97,116,101])]!=i([99,111,110,110,101,99,116,101,100])||!n)||(!(!_(d,i([84,114,97,99,107,67,104,97,110,103,101,115,68,97,116,97,71,101,116,116,101,114]))||w(d,i([84,114,97,99,107,67,104,97,110,103,101,115,68,97,116,97,71,101,116,116,101,114]))[i([114,101,115,117,108,116])]!=i([101,110,100])||!r)||!(!_(d,i([82,101,118,105,115,105,111,110,86,105,101,119,101,114,73,110,116,101,103,114,97,116,105,111,110]))||w(d,i([82,101,118,105,115,105,111,110,86,105,101,119,101,114,73,110,116,101,103,114,97,116,105,111,110]))[i([114,101,115,117,108,116])]!=i([101,110,100])||!o))}(t)?g(t[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([86,97,108,105,100])):e&&function(e,t){const n=!!(e&t[i([112,101,114,109,105,115,115,105,111,110,77,97,115,107])]),r=function(e,t){const n=(t[i([111,112,116,105,111,110,115])]||{})[i([102,103,105])]||null;if(!n)return!1;const r=a[i([102,105,110,100])]((e=>e[i([105,100])]===n));return!!r&&!!(e&r[i([112,101,114,109,105,115,115,105,111,110,77,97,115,107])])}(e,t);return n||r}(e[i([97,108,108,111,119,101,100,80,108,117,103,105,110,115])],t)?e[i([105,115,73,110,116,101,114,110,97,108])]&&!window[i([111,112,101,110])][i([99,108,111,115,101,100])]||parseInt(x)/2>e[i([101,120,112,105,114,97,116,105,111,110,68,97,116,101])]?g(t[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([73,110,118,97,108,105,100])):e[i([105,115,84,114,105,97,108])]?g(t[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([84,114,105,97,108])):g(t[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([86,97,108,105,100])):g(t[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([73,110,118,97,108,105,100]))}catch(e){return g(t[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([73,110,118,97,108,105,100]))}}function m(t,n){if(d instanceof e.Context){const e=d;t==n[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([73,110,118,97,108,105,100])?p(e):t==n[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([84,114,105,97,108])&&window[i([115,101,116,84,105,109,101,111,117,116])]((()=>{p(e),g(n[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([84,114,105,97,108,76,105,109,105,116,58,116,105,109,101]))}),o[6]*r[8]*r[6]),e[i([101,100,105,116,111,114,115])][i([111,110])](i([97,100,100]),((e,r)=>{t!=n[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([73,110,118,97,108,105,100])&&t!=n[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([84,114,105,97,108,76,105,109,105,116,58,116,105,109,101])&&t!=n[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([84,114,105,97,108,76,105,109,105,116,58,111,112,101,114,97,116,105,111,110,115])||b(r)}))}else{const e=d;t==n[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([73,110,118,97,108,105,100])?b(e):t==n[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([84,114,105,97,108])&&e[i([111,110])](i([114,101,97,100,121]),(()=>{let t=0;e[i([109,111,100,101,108])][i([111,110])](i([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),((r,o)=>{o[0][i([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&t++,504===t&&(b(e),g(n[i([108,105,99,101,110,115,101,83,116,97,116,117,115,80,114,101,102,105,120])]+i([84,114,105,97,108,76,105,109,105,116,58,111,112,101,114,97,116,105,111,110,115])),r[i([111,102,102])]())}),{priority:i([104,105,103,104,101,115,116])})}))}}function g(e){const t=y();return d[t]=e,e}function y(){const e=String(window[i([112,101,114,102,111,114,109,97,110,99,101])][i([110,111,119])]())[i([114,101,112,108,97,99,101])](i([46]),"");let t="";for(let n=0;n<e[i([108,101,110,103,116,104])];n+=2){let r=parseInt(e[i([115,117,98,115,116,114,105,110,103])](n,n+2));r>=l[i([108,101,110,103,116,104])]&&(r-=l[i([108,101,110,103,116,104])]),t+=l[r]}return t}function p(e){for(const t of e[i([101,100,105,116,111,114,115])])b(t);w(e,i([67,111,109,109,101,110,116,115,82,101,112,111,115,105,116,111,114,121]))[i([115,119,105,116,99,104,82,101,97,100,79,110,108,121])](!0),w(e,i([67,111,109,109,101,110,116,115,82,101,112,111,115,105,116,111,114,121]))[i([115,119,105,116,99,104,82,101,97,100,79,110,108,121])]=k}function b(e){function t(){e[i([109,111,100,101,108])][i([99,104,97,110,103,101])]=k,e[i([109,111,100,101,108])][i([101,110,113,117,101,117,101,67,104,97,110,103,101])]=k,e[i([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](i([109,111,100,101,108]))}e[i([115,116,97,116,101])]==i([114,101,97,100,121])?t():e[i([111,110,99,101])](i([114,101,97,100,121]),(()=>t()))}function k(){return null}function _(e,t){return e[i([112,108,117,103,105,110,115])][i([104,97,115])](t)}function w(e,t){return e[i([112,108,117,103,105,110,115])][i([103,101,116])](t)}f&&function e(t,n){c[n[i([104,97,110,100,108,101,114])]](t,n),n[i([99,104,101,99,107,65,108,115,111])]&&n[i([99,104,101,99,107,65,108,115,111])][i([102,105,108,116,101,114])]((e=>_(d,e[i([112,108,117,103,105,110,78,97,109,101])])))[i([102,111,114,69,97,99,104])]((i=>e(t,i)))}(function(e){try{const t=s(e),n=JSON[i([112,97,114,115,101])](t),r=parseInt(n[i([49])]),o=n[i([50])]||"",a=parseInt(n[i([51])]),c=parseInt(n[i([52])])||0,u=parseInt(n[i([53])])||0;return{[i([112,114,111,100,117,99,116,78,97,109,101])]:o,[i([97,108,108,111,119,101,100,80,108,117,103,105,110,115])]:c,[i([101,120,112,105,114,97,116,105,111,110,68,97,116,101])]:r,[i([105,115,84,114,105,97,108])]:a,[i([105,115,73,110,116,101,114,110,97,108])]:u}}catch(e){return null}}(h),f)})(t)}(this)}createRevision(e){const t=this[Xi("0xc")].plugins[Xi("0xf")]("Users");return new Gi({id:e.id,name:e[Xi("0xd")],creator:e[Xi("0x9")]?t[Xi("0x6")](e[Xi("0x9")]):null,diffData:e.diffData||e.data,authors:e[Xi("0x1f")].map((e=>t[Xi("0x6")](e))),createdAt:new Date(e[Xi("0x11")]),attributes:e[Xi("0x17")],fromVersion:e[Xi("0x2")],toVersion:e[Xi("0x12")]})}[Xi("0xe")](e,t=0){this[Xi("0x16")][Xi("0x19")](e,t)}[Xi("0x15")](e){return this._revisions.get(e)}getRevisions(e={toJSON:!1}){const t=Array[Xi("0x0")](this[Xi("0x16")]);return t[Xi("0xb")](),e[Xi("0x4")]?t[Xi("0x13")]((e=>e[Xi("0x4")]())):t}getIndex(e){return this[Xi("0x16")][Xi("0x14")](e)}[Xi("0x1")](e){const[,t]=this[Xi("0x7")](e,{direction:"earlier"});return t}getLaterVisibleRevision(e){const[,t]=this[Xi("0x7")](e,{direction:"later"});return t}[Xi("0x1d")](e){const t=[];for(const i of this.getRevisionsIterator(e[Xi("0x18")]))if(t.push(i),i.id===e.oldRevisionId)break;return t}*getRevisionsIterator(e,{direction:t=Xi("0x8"),filter:i=(e=>!0)}={}){const n=Xi("0x8")===t?1:-1;let r=this[Xi("0x16")][Xi("0xf")](e),o=this.getIndex(r);for(yield r;r;){if(o+=n,r=this.getRevision(o),!r)return;i(r)&&(yield r)}}}function en(e,t,i){const n=e.t;switch(t){case"Revision history":return n("Revision history");case"Open revision history":return n("Open revision history");case"Restored":return n("Restored");case"Empty document":return n("Empty document");case"Initial revision":return n("Initial revision");case"Suggested by":return n("Suggested by");case"Added by":return n("Added by");case"Removed by":return n("Removed by");case"Show more items":return n("Show more items");case"Compare against selected":return n("Compare against selected");case"Name this revision":return n("Name this revision");case"Restore this revision":return n("Restore this revision");case"Back to editing":return n("Back to editing");case"Loading...":return n("Loading...");case"No changes":return n("No changes");case"NUMBER_OF_CHANGES":return n({string:"%0 change",plural:"%0 changes",id:"NUMBER_OF_CHANGES"},i);case"X_OF_Y_CHANGES":return n({string:"%0 of %1",id:"X_OF_Y_CHANGES"},i);case"Show previous change":return n("Show previous change");case"Show next change":return n("Show next change");case"EDIT_X_OF_Y_REVISIONS":return n({string:"Edit",id:"EDIT_X_OF_Y_REVISIONS"});case"Total":return n("Total");case"Revision creator":return n("Revision creator");case"Revision author":return n("Revision author");case"Revision name":return n("Revision name");case"Save current revision":return n("Save current revision");case"Save":return n("Save");case"Cancel":return n("Cancel");case"Name of the revision (optional)":return n("Name of the revision (optional)");case"PENDING_ACTION_REVISION_HISTORY":return n({string:"Unsaved change in revision history.",id:"PENDING_ACTION_REVISION_HISTORY"});default:return t}}const tn=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};const nn=function(e){return this.__data__.has(e)};function rn(e){var t=-1,i=null==e?0:e.length;for(this.__data__=new ve;++t<i;)this.add(e[t])}rn.prototype.add=rn.prototype.push=tn,rn.prototype.has=nn;const on=rn;const sn=function(e,t){for(var i=-1,n=null==e?0:e.length;++i<n;)if(t(e[i],i,e))return!0;return!1};const an=function(e,t){return e.has(t)};const cn=function(e,t,i,n,r,o){var s=1&i,a=e.length,c=t.length;if(a!=c&&!(s&&c>a))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var x=-1,l=!0,h=2&i?new on:void 0;for(o.set(e,t),o.set(t,e);++x<a;){var f=e[x],v=t[x];if(n)var m=s?n(v,f,x,t,e,o):n(f,v,x,e,t,o);if(void 0!==m){if(m)continue;l=!1;break}if(h){if(!sn(t,(function(e,t){if(!an(h,t)&&(f===e||r(f,e,i,n,o)))return h.push(t)}))){l=!1;break}}else if(f!==v&&!r(f,v,i,n,o)){l=!1;break}}return o.delete(e),o.delete(t),l};const un=function(e){var t=-1,i=Array(e.size);return e.forEach((function(e,n){i[++t]=[n,e]})),i};const dn=function(e){var t=-1,i=Array(e.size);return e.forEach((function(e){i[++t]=e})),i};var xn=w?w.prototype:void 0,ln=xn?xn.valueOf:void 0;const hn=function(e,t,i,n,r,o,s){switch(i){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!o(new Yt(e),new Yt(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return a(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var c=un;case"[object Set]":var u=1&n;if(c||(c=dn),e.size!=t.size&&!u)return!1;var d=s.get(e);if(d)return d==t;n|=2,s.set(e,t);var x=cn(c(e),c(t),n,r,o,s);return s.delete(e),x;case"[object Symbol]":if(ln)return ln.call(e)==ln.call(t)}return!1};var fn=Object.prototype.hasOwnProperty;const vn=function(e,t,i,n,r,o){var s=1&i,a=Nt(e),c=a.length;if(c!=Nt(t).length&&!s)return!1;for(var u=c;u--;){var d=a[u];if(!(s?d in t:fn.call(t,d)))return!1}var x=o.get(e),l=o.get(t);if(x&&l)return x==t&&l==e;var h=!0;o.set(e,t),o.set(t,e);for(var f=s;++u<c;){var v=e[d=a[u]],m=t[d];if(n)var g=s?n(m,v,d,t,e,o):n(v,m,d,e,t,o);if(!(void 0===g?v===m||r(v,m,i,n,o):g)){h=!1;break}f||(f="constructor"==d)}if(h&&!f){var y=e.constructor,p=t.constructor;y==p||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof p&&p instanceof p||(h=!1)}return o.delete(e),o.delete(t),h};var mn="[object Arguments]",gn="[object Array]",yn="[object Object]",pn=Object.prototype.hasOwnProperty;const bn=function(e,t,i,n,r,o){var s=Me(e),a=Me(t),c=s?gn:Wt(e),u=a?gn:Wt(t),d=(c=c==mn?yn:c)==yn,x=(u=u==mn?yn:u)==yn,l=c==u;if(l&&Fe(e)){if(!Fe(t))return!1;s=!0,d=!1}if(l&&!d)return o||(o=new ye),s||Ye(e)?cn(e,t,i,n,r,o):hn(e,t,c,i,n,r,o);if(!(1&i)){var h=d&&pn.call(e,"__wrapped__"),f=x&&pn.call(t,"__wrapped__");if(h||f){var v=h?e.value():e,m=f?t.value():t;return o||(o=new ye),r(v,m,i,n,o)}}return!!l&&(o||(o=new ye),vn(e,t,i,n,r,o))};const kn=function e(t,i,n,r,o){return t===i||(null==t||null==i||!Re(t)&&!Re(i)?t!=t&&i!=i:bn(t,i,n,r,e,o))};const _n=function(e,t){return kn(e,t)},wn=["_revisionId","remove","some","insertions","startsWith","getNodeByPath","_replaceEditorDataWithRevisionData","Initial revision","_fixOperation","isAttached","newRange","_savedMetaData","upcast","_getPreviousFrom","_baseIdsRoots","nodeAfter","path","_touched","define","push","NEGATIVE_INFINITY","getOperation","_handleRootAttributeOperation","get","getOperations","length","_makeIdsRoot","getRevision","view","_handleMoveOperation","elementEnd","_applyOperations","markers","sendBufferedUpdates","afterInit","setSource","createRevision","key","_processRootBeforeSave","authorsIds","_fixRange","RealTimeCollaborationClient","childCount","fromEntries","_isInit","_touchedMarkers","getTransformedByOperation","creator","createPositionFromPath","useFillerType","markerToData","_baseRootsAttributes","document","editor","getRootNames","parent","getWalker","diffData","_setAttribute","rootName","_loadState","buildRevisionData","_loadRevisionData","reinsert","_lastFrom","sort","_handleOperation","init","Users","name","_fixPosition","revisionHistory.resumeUnsavedRevision","PENDING_ACTION_REVISION_HISTORY","elementStart","_getState","_startingVersion","getIndex","_authorId","fromVersion","finally","_diffRootsAttributes","_handleSplitOperation","revision","rootsAttributes","deletions","getData","baseVersion","for","then","keys","getRoot","$graveyard","_idsRoots","_getVidAttributeName","createRangeIn","currentRevision","getRevisionDocumentData","attributesAfter","addRoot","createPositionBefore","isEqual","size","revision-end","_touchedRoots","sourcePosition","_handleMergeOperation","text","deletion","vid","loadState","_revisionDataBuilder","previousPosition","_update","processor","RevisionTracker","reverse","PendingActions","$text","element","addRevisionData","stringify","getRevisionRootsAttributes","attributes","initial","_reset","detachRoot","includes","_copyMarkers","model","createPositionAt","getLatestVersion","reInit","start","shift","_execute","find","ready","getTime","getUser","addRevision","_getFromVersion","_initialRevisionId","isEnabled","stickiness","toView","isAdd","getCurrentRevisionId","requires","item","clone","repository","createdAt","toVersion","_generateTape","collaboration.channelId","howMany","_continueCurrentRevision","targetPosition","insert","position","_pendingAction","getMovedRangeStart","_prepareViewToSave","_clone","_lastTo","_calculateMetaData","marker","_isPendingUpdate","authors","_bufferUpdate","pluginName","userId","values","default","bind","_cloneOperation","clear","toData","updateRevisions","_baseRoots","vid_start","version","filter","revision-start","_diffRoots","children","getAttributes","splitPosition","roots","_startingRevisionId","adapter","createPositionAfter","delete","_setConversion","setRevisionData","RevisionsRepository","split","_handleMarkerOperation","from","newValue","toModel","_handleInsertOperation","_removeRevisionMarkers","vid_end","_removePendingAction","_makeRevision","type","insertion","_addPendingAction","_transformMarkers","string","_getViewJson","getAttribute","getRevisions","data-revision-","source","getAncestors","max","data","_makeModelFromViewString","_bufferedUpdates","addRootAttribute","documentFragment","creatorId","_removeMetaData","locale","offset","initialData","move","history","root","set","_handleRootOperation","trim","_saveMetaData","config","add","parse","conversion","_markers","offsetSize","slice","_createInitialRevision","_getBaseVids","getChild","getChildren","_insertChild","tableCell","merge","forEach","resolve","isReady","oldRange","_isAttached","end","map","range","_createFromRanges","attachChange","plugins","insertionPosition","saveRevision","_source","editing","has","_loadedStateData","revision:"];var Sn,On;Sn=wn,On=273,function(e){for(;--e;)Sn.push(Sn.shift())}(++On);const Rn=function(e,t){return wn[e-=0]},Tn={c:o.ViewContainerElement,a:o.ViewAttributeElement,e:o.ViewEmptyElement,r:o.ViewRawElement,u:o.ViewUIElement};class In extends e.Plugin{static get[Rn("0xa4")](){return Rn("0x6c")}static get[Rn("0x8d")](){return[r.Users,Qi,e.PendingActions]}constructor(e){super(e),this[Rn("0xb8")]=null,this[Rn("0x59")]=null,this[Rn("0x68")]=new Vn(this[Rn("0x2f")]),this[Rn("0x87")]=this[Rn("0x2f")].config[Rn("0x11")]("collaboration.channelId")||Rn("0x75"),this[Rn("0xd6")]=new Map,this._loadedStateData=null;const i=(0,t.uid)();this[Rn("0x100")]={history:this[Rn("0x2f")][Rn("0x7a")].document.history,getLatestVersion:()=>Promise[Rn("0xf4")](this[Rn("0x2f")][Rn("0x7a")][Rn("0x2e")][Rn("0xaf")]),getCurrentRevisionId:()=>i},this[Rn("0xe1")]("isReady",!1),this[Rn("0xe1")](Rn("0x88"),!0),this.set(Rn("0xa1"),!1),this[Rn("0x2f")][Rn("0xe5")][Rn("0xc")](Rn("0x41"),!0),this[Rn("0x2f")][Rn("0xe8")][Rn("0x51")](Rn("0x6")).dataToMarker({view:"revision"})}[Rn("0x3d")](){this[Rn("0x90")]=this[Rn("0x2f")][Rn("0xfd")].get(Rn("0xbd")),this[Rn("0xbb")](),this.editor.data.on(Rn("0x82"),(()=>{const e=this[Rn("0x90")][Rn("0x15")](0),t=e&&null===e.creator?e:null;if(this[Rn("0x96")]=!!t&&this[Rn("0x2f")][Rn("0xe5")][Rn("0x11")](Rn("0x41")),this[Rn("0x2f")][Rn("0xfd")].has(Rn("0x23"))){const i=this[Rn("0x100")].getCurrentRevisionId(),n=this.repository[Rn("0x15")](i);if(n)this[Rn("0x45")]=n[Rn("0x48")],this._continueCurrentRevision=!1;else{const i=this[Rn("0x100")][Rn("0xdf")]._operations.find((e=>!e[Rn("0x26")])),n=i?i[Rn("0x50")]:this[Rn("0x100")].history.version;e?(e[Rn("0x92")]<n&&e[Rn("0x6a")]({toVersion:n}),this[Rn("0x96")]?(this[Rn("0x100")][Rn("0x8c")]=()=>t.id,this[Rn("0x45")]=t[Rn("0x48")]):(this[Rn("0x45")]=e.toVersion,this._continueCurrentRevision=!1)):(this[Rn("0x45")]=n,this._continueCurrentRevision=!1)}}else t&&(this[Rn("0x2f")].model[Rn("0x2e")][Rn("0xdf")].version=Math[Rn("0xd3")](t[Rn("0x92")],this[Rn("0x2f")][Rn("0x7a")].document.history[Rn("0xaf")]),t[Rn("0x48")]===t[Rn("0x92")]?(0!==t[Rn("0x48")]&&(this[Rn("0x100")][Rn("0x8c")]=()=>t.id),this._continueCurrentRevision=!1):this[Rn("0x96")]&&(this._source[Rn("0x8c")]=()=>t.id,this[Rn("0x45")]=t[Rn("0x48")])),this._continueCurrentRevision||(this[Rn("0x45")]=this.editor[Rn("0x7a")][Rn("0x2e")].version);this[Rn("0x68")][Rn("0x3d")](this[Rn("0x100")][Rn("0xdf")]),this[Rn("0xec")](this._startingVersion),this._createCurrentRevision(this[Rn("0x45")]),this[Rn("0xb8")]&&this.sendBufferedUpdates()})),this[Rn("0xa8")](Rn("0xf5")).to(this,Rn("0xa1"),(e=>!e))}async[Rn("0x1c")](){if(this[Rn("0x90")][Rn("0x13")]>0){const e=this.repository[Rn("0x15")](0),t=await this[Rn("0x5a")](e),i=await this[Rn("0x73")](e);this[Rn("0x0")](t,i)}}[Rn("0x1d")](e){this[Rn("0x100")]=e}async update(){const e=await this[Rn("0x100")][Rn("0x7c")]();if(e>this[Rn("0x59")][Rn("0x92")]){await this[Rn("0x36")]();const t=this.buildRevisionData({revision:this.currentRevision,to:e});t[Rn("0xa2")]=t[Rn("0x21")][Rn("0xf9")]((e=>this[Rn("0x2f")][Rn("0xfd")][Rn("0x11")]("Users")[Rn("0x84")](e))),this[Rn("0x59")][Rn("0x6a")](t)}}async[Rn("0x36")](){this[Rn("0x96")]&&!this._loadedStateData&&(await this[Rn("0x38")](this[Rn("0x59")]),this[Rn("0x68")].loadState(this[Rn("0x59")]),this[Rn("0x103")]={fromVersion:this.currentRevision[Rn("0x48")],authors:this.currentRevision[Rn("0xa2")][Rn("0xeb")]()})}async[Rn("0xff")](e={},i=null){const n=[];await this[Rn("0x36")](),this[Rn("0x96")]=!1,i>this[Rn("0x59")][Rn("0x92")]&&(i=null),null===i&&(i=await this[Rn("0x100")][Rn("0x7c")]());const r=this[Rn("0x86")](i),o=this.buildRevisionData({from:r,to:i});if(this.currentRevision[Rn("0x92")]<i){const e=this[Rn("0x37")]({revision:this[Rn("0x59")],from:i,to:i});e[Rn("0xa2")]=[],e[Rn("0x21")]=[],e.id=this.currentRevision.id,this[Rn("0x59")][Rn("0x6a")](e,!0),delete e[Rn("0xa2")],n[Rn("0xd")](e)}e[Rn("0xd9")]=this.editor[Rn("0xfd")].get(Rn("0x3e")).me.id,e.name=e.name||null,e.id=e.id||(0,t.uid)(),e={...e,...o};const s=this[Rn("0x71")](e);n.push(e);const a=this[Rn("0x90")][Rn("0x46")](s);if(0!==a){const t=this.repository[Rn("0x15")](a-1);if(t[Rn("0x48")]!==i){const r=this[Rn("0x68")].getData(i,t[Rn("0x92")]),o={id:t.id,diffData:r[Rn("0x33")],authorsIds:r[Rn("0x21")],authors:r[Rn("0x21")][Rn("0xf9")]((e=>this[Rn("0x2f")][Rn("0xfd")][Rn("0x11")]("Users").getUser(e))),fromVersion:i};t===this.currentRevision&&(o.createdAt=new Date(e[Rn("0x91")][Rn("0x83")]()+10)),t[Rn("0x6a")](o,!0),delete o[Rn("0xa2")],n[Rn("0xd")](o)}}if(this[Rn("0xb8")]){for(const e of n)this[Rn("0xa3")](e.id,e,!0);this[Rn("0x1b")]()}return s}addRevisionData(e){const t=this[Rn("0x90")][Rn("0x1e")](e);return this[Rn("0xb8")]&&t.on("_update",((e,t,i)=>{i||(this[Rn("0xa3")](t.id,t,!0),this[Rn("0x1b")]())})),this.repository[Rn("0x85")](t,this._findInsertionIndex(t)),t}async[Rn("0x5a")](e){await this[Rn("0x38")](e);const t={};for(const i in e[Rn("0x33")]){if(e[Rn("0x33")][i].attachChange&&!e.diffData[i][Rn("0xfc")][Rn("0x3")])continue;const n=this[Rn("0xc4")](JSON[Rn("0xe7")](e[Rn("0x33")][i][Rn("0x108")])),r=this[Rn("0x2f")][Rn("0x101")].view[Rn("0x2e")],s=new o.ViewDocumentFragment(r,n[Rn("0xf9")]((e=>Nn(e,this[Rn("0x2f")]))));this.editor[Rn("0xd4")][Rn("0x6b")][Rn("0x2b")]("marked"),t[i]=this[Rn("0x2f")].data.processor[Rn("0xab")](s),this[Rn("0x2f")].data[Rn("0x6b")][Rn("0x2b")](Rn("0xa7"))}return t}async[Rn("0x73")](e){await this[Rn("0x38")](e);const t={};for(const i in e.diffData)e[Rn("0x33")][i].attachChange&&!e[Rn("0x33")][i][Rn("0xfc")].isAttached||(t[i]=e.diffData[i][Rn("0x5b")]||{});return t}[Rn("0x1b")](){if(0===this[Rn("0xd6")][Rn("0x5f")])return;if(this._isPendingUpdate)return;let e=Array[Rn("0xc0")](this[Rn("0xd6")][Rn("0xa6")]());this[Rn("0xd6")][Rn("0xaa")]();for(let t=0;t<e.length;t++){const i=e[t];let n=!1;for(const e of Object[Rn("0x53")](i))void 0===i[e]?delete i[e]:"id"!==e&&(n=!0);n||(e[t]=null)}if(e=e[Rn("0xb0")]((e=>null!==e)),!e[Rn("0x13")])return;for(let t=0;t<e[Rn("0x13")];t++){const i=e[t];void 0!==i.fromVersion&&void 0===i[Rn("0x92")]&&(i[Rn("0x92")]=this[Rn("0x90")][Rn("0x15")](i.id).toVersion),void 0!==i[Rn("0x92")]&&void 0===i[Rn("0x48")]&&(i[Rn("0x48")]=this[Rn("0x90")][Rn("0x15")](i.id).fromVersion)}const t=this[Rn("0x2f")][Rn("0xe5")][Rn("0x11")](Rn("0x94"));this._isPendingUpdate=!0,this[Rn("0xca")](),this[Rn("0xb8")][Rn("0xac")](e,t)[Rn("0x49")]((()=>{this._isPendingUpdate=!1}))[Rn("0x52")]((e=>{if(e)for(const t of e)this[Rn("0xbc")]({id:t.id,createdAt:t[Rn("0x91")]});this[Rn("0xc6")](),this[Rn("0x1b")]()}))}_replaceEditorDataWithRevisionData(e,i){let n=this[Rn("0x2f")][Rn("0xe5")][Rn("0x11")](Rn("0xdd")),r=this[Rn("0x2f")].config[Rn("0x11")](Rn("0x4d"));if(void 0===n){n={};for(const e of this[Rn("0x2f")][Rn("0x7a")][Rn("0x2e")][Rn("0x30")]())n[e]=""}if(Rn("0xcc")==typeof n&&(n={main:n}),void 0===r){r={};for(const e of this[Rn("0x2f")].model[Rn("0x2e")][Rn("0x30")]())r[e]={}}let o=!1;const s=Object[Rn("0x53")](n),a=Object[Rn("0x53")](e);for(const t of s){if(n[t]!==e[t]&&""!==n[t][Rn("0xe3")]()){o=!0;break}if(!_n(r[t],i[t])&&Object[Rn("0x53")](r[t])[Rn("0x13")]>0){o=!0;break}}o||(o=a[Rn("0x107")]((e=>!this[Rn("0x2f")].model[Rn("0x2e")][Rn("0x54")](e)))),o&&(0,t.logWarning)("editor-initial-data-replaced-with-revision-data",{editorData:n,editorRootsAttributes:r,revisionData:e,revisionRootsAttributes:i}),this[Rn("0x2f")].config[Rn("0xe1")](Rn("0xdd"),e),this.editor[Rn("0xe5")][Rn("0xe1")](Rn("0x4d"),i)}_addPendingAction(){if(!this[Rn("0x9a")]){const e=this[Rn("0x2f")][Rn("0xfd")][Rn("0x11")](Rn("0x6e"));this[Rn("0x9a")]=e[Rn("0xe6")](en(this[Rn("0x2f")][Rn("0xdb")],Rn("0x42")))}}[Rn("0xc6")](){this[Rn("0x9a")]&&(this[Rn("0x2f")][Rn("0xfd")][Rn("0x11")]("PendingActions").remove(this[Rn("0x9a")]),this[Rn("0x9a")]=null)}_findInsertionIndex(e){const t=this.repository[Rn("0xcf")]();t[Rn("0x6d")]();let i=0;for(;i<t[Rn("0x13")];){const n=t[i];if(n===this[Rn("0x59")]){i++;continue}if(n.id===this[Rn("0x87")])break;const r=e[Rn("0x92")]-n[Rn("0x92")]||e[Rn("0x48")]-n[Rn("0x48")];if(r>0)break;if(r<0)i++;else{if(!e[Rn("0x29")]&&n[Rn("0x29")])break;if(n[Rn("0x29")]||!e[Rn("0x29")]){if(e[Rn("0x91")]>n[Rn("0x91")])break;i++}else i++}}return i}setRevisionData(e){const t=this.repository.getRevision(e.id);if(e[Rn("0x91")]&&(e[Rn("0x91")]=new Date(e[Rn("0x91")])),e[Rn("0x21")]){const t=this[Rn("0x2f")][Rn("0xfd")][Rn("0x11")](Rn("0x3e"));e[Rn("0xa2")]=e[Rn("0x21")][Rn("0xf9")]((e=>t[Rn("0x84")](e)))}t[Rn("0x6a")](e,!0)}[Rn("0x37")]({revision:e=null,from:t=null,to:i=null}){t=null!==t?t:e.fromVersion,i=null!==i?i:e[Rn("0x92")];const n=this._revisionDataBuilder[Rn("0x4f")](t,i),r={diffData:n.diffData,authorsIds:n.authorsIds,fromVersion:t,toVersion:i};if(!e||i!==e[Rn("0x92")]){const e=i-1,t=this[Rn("0x100")][Rn("0xdf")][Rn("0xf")](e);r.createdAt=t&&t[Rn("0x91")]||new Date}if(this._loadedStateData&&t===this._loadedStateData.fromVersion)for(const e of this[Rn("0x103")][Rn("0xa2")])r[Rn("0x21")][Rn("0x78")](e.id)||r.authorsIds[Rn("0xd")](e.id);return r}[Rn("0x38")](e){if(!e||e[Rn("0x33")])return Promise[Rn("0xf4")]();{const t=this[Rn("0x2f")].config.get(Rn("0x94"));return this[Rn("0xb8")][Rn("0x15")]({channelId:t,revisionId:e.id})[Rn("0x52")]((t=>{e[Rn("0x33")]=t.diffData}))}}_bufferUpdate(e,t,i){if(this[Rn("0xd6")][Rn("0x102")](e)){const n=this[Rn("0xd6")].get(e);t=i?{...n,...t}:{...t,...n}}this._bufferedUpdates[Rn("0xe1")](e,t)}[Rn("0x86")](e){const t=this[Rn("0x90")][Rn("0xcf")]();t[Rn("0x6d")](),t[Rn("0x7f")]();const i=t[Rn("0x81")]((t=>t[Rn("0x92")]<=e))[Rn("0x92")];return i<this._startingVersion?this[Rn("0x45")]:i}[Rn("0xec")](e){const t=this.repository[Rn("0x15")](this[Rn("0x90")][Rn("0x13")]-1);if(t)this[Rn("0x87")]=t.id;else{const t=!this[Rn("0x2f")][Rn("0x7a")][Rn("0x2e")][Rn("0xb6")].find((e=>this[Rn("0x2f")][Rn("0x7a")].hasContent(e))),i=this[Rn("0x2f")][Rn("0xfd")].get("Users").me.id,n=en(this[Rn("0x2f")][Rn("0xdb")],t?"Empty document":Rn("0x1"));this._makeRevision({from:e,to:e,id:this[Rn("0x87")],name:n,creatorId:i})}}_createCurrentRevision(e){const t=this[Rn("0x100")].getCurrentRevisionId();this[Rn("0x59")]=this[Rn("0x90")][Rn("0x15")](t),this[Rn("0x59")]||(this[Rn("0x59")]=this[Rn("0xc7")]({from:e,to:e,id:t,name:"",creatorId:null}))}[Rn("0xc7")]({name:e,from:t,to:i,creatorId:n,id:r}){const o=this[Rn("0x37")]({from:t,to:i});o[Rn("0x3f")]=e,o[Rn("0xd9")]=n,o.id=r;const s=this[Rn("0x71")](o);return this[Rn("0xb8")]&&this[Rn("0xa3")](o.id,o,!0),s}_setConversion(){this[Rn("0x2f")][Rn("0xe8")][Rn("0x51")]("dataDowncast")[Rn("0x2c")]({model:Rn("0x4c")})}[Rn("0xc4")](e){return(e=e[Rn("0xb0")]((e=>!e[Rn("0x3f")]||Rn("0xb1")!==e[Rn("0x3f")]&&Rn("0x60")!==e[Rn("0x3f")])))[Rn("0xf3")]((e=>{Rn("0xcc")!=typeof e&&(e.children=this[Rn("0xc4")](e[Rn("0xb3")]),e[Rn("0x74")]=e[Rn("0x74")][Rn("0xb0")]((e=>!e[0][Rn("0x109")](Rn("0xd0")))))})),e}}function Nn(e,t){const i=t[Rn("0x101")].view[Rn("0x2e")];if(Rn("0xcc")==typeof e)return new o.ViewText(i,e);{const n=e[Rn("0xb3")].map((e=>Nn(e,t)));return new(Tn[e[Rn("0xc8")]]||o.ViewElement)(i,e[Rn("0x3f")],e[Rn("0x74")],n)}}class Vn{constructor(e){this[Rn("0x2f")]=e,this[Rn("0x5")]=new Map,this[Rn("0x3a")]=-1,this[Rn("0x9e")]=-1,this[Rn("0xe9")]=new Map,this[Rn("0xb2")]=new Map,this[Rn("0x4a")]=new Map,this[Rn("0xad")]=new Map,this._baseRootsAttributes=new Map,this[Rn("0x56")]=new Map,this._baseIdsRoots=new Map,this[Rn("0xb")]=new Map,this[Rn("0x27")]=new Map,this[Rn("0x61")]=new Map,this._revisionId=1}[Rn("0x3d")](e){this[Rn("0xd1")]=e;const t=new Map,i=new Map,n=this[Rn("0x2f")][Rn("0x7a")][Rn("0x2e")][Rn("0xb6")][Rn("0xf9")]((e=>e[Rn("0x35")]));for(const e of n){const n=this[Rn("0x2f")].model[Rn("0x2e")].getRoot(e),r=En(n);t[Rn("0xe1")](e,r),i[Rn("0xe1")](e,Object[Rn("0x25")](n[Rn("0xb4")]()))}const r=Array[Rn("0xc0")](this[Rn("0x2f")][Rn("0x7a")][Rn("0x1a")])[Rn("0xf9")]((e=>[e.name,e.getRange()])),o=this[Rn("0xd1")][Rn("0xaf")];this._saveMetaData(o,t,r,i),this[Rn("0xb7")]=this[Rn("0x105")];const s=new Map,a=new Map;for(const e of n){const t=Mn(e);s.set(e,t),a[Rn("0xe1")](e,{})}this._saveMetaData(Number.NEGATIVE_INFINITY,s,[],a)}[Rn("0x4f")](e,t){if(this[Rn("0x3a")]===e&&this[Rn("0x9e")]<=t)this[Rn("0x5")][Rn("0x5f")]>1&&this._removeMetaData(this._lastTo),this._applyOperations(this[Rn("0x9e")],t,!0);else{if(!this[Rn("0x5")][Rn("0x102")](e)){const t=this[Rn("0x7")](e);this._calculateMetaData(t,e,!1)}this[Rn("0x9f")](e,t,!0)}return this[Rn("0x3a")]=e,this[Rn("0x9e")]=t,this[Rn("0x44")]()}[Rn("0x67")](e){this[Rn("0x76")](),this[Rn("0x3a")]=e[Rn("0x48")],this[Rn("0x9e")]=e[Rn("0x92")];for(const t in e[Rn("0x33")]){const i=e.diffData[t][Rn("0xfc")],n=pi(e[Rn("0x33")][t].attributesBefore)||{},r=this[Rn("0xd5")](e[Rn("0x33")][t][Rn("0x4e")]);r[Rn("0x35")]=t,r[Rn("0xf7")]=!i||!i[Rn("0x3")],r[Rn("0x3")]=()=>r[Rn("0xf7")],this[Rn("0xad")].set(t,r),this._baseRootsAttributes[Rn("0xe1")](t,n),i&&this[Rn("0x61")][Rn("0xe1")](t,i);const o=this[Rn("0x14")](r);this[Rn("0x8")][Rn("0xe1")](t,o);for(const[e,t]of r[Rn("0x1a")]){if(!e[Rn("0x109")](Rn("0x104")))continue;const i=e[Rn("0xbe")](":")[2];for(const e of t[Rn("0x32")]({singleCharacters:!0})){const t=this[Rn("0x57")](e),n=Rn("0x18")==e[Rn("0xc8")]?e[Rn("0x69")][Rn("0xa")].slice(0,-1):e[Rn("0x69")][Rn("0xa")],r=o[Rn("0x10a")](n)[Rn("0xce")](t);this._touched[Rn("0xe1")](r,{userId:i})}}}this[Rn("0xb7")]=this[Rn("0x105")];const t=[...Array(this[Rn("0x105")])[Rn("0x53")]()][Rn("0xeb")](1)[Rn("0xb0")]((e=>!this[Rn("0xb")].has(e)));let i=0;const n=new Map;for(const r in e.diffData){const o=e.diffData[r][Rn("0xfc")],s=pi(e.diffData[r][Rn("0x5b")])||{},a=this[Rn("0xd5")](e.diffData[r][Rn("0x108")]);a[Rn("0x35")]=r,a[Rn("0xf7")]=!o||o.isAttached,a.isAttached=()=>a._isAttached,this[Rn("0xb2")].set(r,a),this[Rn("0x4a")].set(r,s);const c=this[Rn("0x14")](a,Number[Rn("0xe")]);this._idsRoots.set(r,c),n.set(r,a[Rn("0x3")]()?s:{});for(const[e,t]of a.markers){if(!e[Rn("0x109")]("revision:"))continue;const i=e.split(":")[2];for(const e of t[Rn("0x32")]({singleCharacters:!0})){const t=this[Rn("0x57")](e),n=this[Rn("0x105")]++,r="elementEnd"==e[Rn("0xc8")]?e[Rn("0x69")][Rn("0xa")][Rn("0xeb")](0,-1):e.previousPosition[Rn("0xa")];c.getNodeByPath(r)[Rn("0x34")](t,n),this[Rn("0xb")][Rn("0xe1")](n,{userId:i})}}for(const e of this.editor[Rn("0x7a")][Rn("0x58")](a).getWalker({singleCharacters:!0})){const n=this[Rn("0x57")](e),r="elementEnd"==e[Rn("0xc8")]?e.previousPosition[Rn("0xa")][Rn("0xeb")](0,-1):e[Rn("0x69")][Rn("0xa")],o=c[Rn("0x10a")](r);o.getAttribute(n)>0||o[Rn("0x34")](n,t[i++])}for(const[e,t]of a[Rn("0x1a")])e[Rn("0x109")]("revision:")||this._markers[Rn("0xe1")](e,t)}const r=Mn(Rn("0x55"));this[Rn("0xad")][Rn("0xe1")](Rn("0x55"),r),this[Rn("0x8")][Rn("0xe1")](Rn("0x55"),this[Rn("0x14")](r,1));const o=Mn(Rn("0x55"));this._diffRoots[Rn("0xe1")](Rn("0x55"),o),this._idsRoots[Rn("0xe1")](Rn("0x55"),this[Rn("0x14")](o,1));const s=Array[Rn("0xc0")](this._diffRoots).map((([e,t])=>[e,En(t)]));this._saveMetaData(this._lastTo,s,this[Rn("0xe9")],n)}[Rn("0xd5")](e){const t=JSON[Rn("0xe7")](e),i=this[Rn("0x2f")][Rn("0x101")][Rn("0x16")][Rn("0x2e")],n=new o.ViewDocumentFragment(i,t.map((e=>Nn(e,this[Rn("0x2f")]))));return this[Rn("0x2f")].data[Rn("0xc2")](n)}[Rn("0xe4")](e,t,i,n){const r=new Map(t),o=new Map(pi(n)),s=new Map;for(const[e,t]of i)s[Rn("0xe1")](e,{start:t[Rn("0x7e")][Rn("0x8f")](),end:t[Rn("0xf8")][Rn("0x8f")](),rootName:t[Rn("0xe0")][Rn("0x35")]});this[Rn("0x5")].set(e,{roots:r,markers:s,rootsAttributes:o})}[Rn("0xda")](e){this[Rn("0x5")].delete(e)}[Rn("0x7d")](){this._reset(),this[Rn("0x3a")]=-1,this[Rn("0x9e")]=-1,this[Rn("0x5")].clear(),this[Rn("0x3d")](this[Rn("0xd1")])}[Rn("0x76")](){this[Rn("0xb")][Rn("0xaa")](),this._touchedMarkers[Rn("0xaa")](),this._touchedRoots[Rn("0xaa")](),this[Rn("0xb2")][Rn("0xaa")](),this[Rn("0x4a")].clear(),this[Rn("0xad")][Rn("0xaa")](),this[Rn("0x2d")][Rn("0xaa")](),this._idsRoots.clear(),this._baseIdsRoots[Rn("0xaa")](),this[Rn("0xe9")][Rn("0xaa")](),this[Rn("0x105")]=1,this[Rn("0xb7")]=this[Rn("0x105")]}_makeIdsRoot(e,t=null){let i=null;e.is(Rn("0xd8"))||(i=new o.Element(e[Rn("0x3f")],{vid_start:null===t?this[Rn("0x105")]++:t++}));const n=[];for(const i of e.getChildren())if(i.is(Rn("0x70"))){n[Rn("0xd")](this[Rn("0x14")](i,t));const e=n[n[Rn("0x13")]-1];null!==t&&(t=e.is(Rn("0x70"),"$text")?e[Rn("0xce")]("vid")+1:e[Rn("0xce")](Rn("0xc5"))+1)}else for(let e=0;e<i[Rn("0xea")];e++)n[Rn("0xd")](new o.Element("$text",{vid:null===t?this[Rn("0x105")]++:t++}));if(e.is("documentFragment")){const t=Mn(e[Rn("0x35")]);return t._insertChild(0,n),t}return i[Rn("0x34")](Rn("0xc5"),null===t?this[Rn("0x105")]++:t++),i[Rn("0xf0")](0,n),i}[Rn("0x9f")](e,t,i){this[Rn("0x76")]();const{roots:n,markers:r,rootsAttributes:s}=this._savedMetaData[Rn("0x11")](e);this[Rn("0xad")]=new Map(n),this[Rn("0x2d")]=new Map(pi(s));for(const[e,t]of this[Rn("0xad")])if(Rn("0x55")!==e&&(this[Rn("0xb2")][Rn("0xe1")](e,En(t)),this[Rn("0x4a")]=new Map(pi(s)),i)){const i=this._revisionId;this[Rn("0x56")][Rn("0xe1")](e,this[Rn("0x14")](t)),this._baseIdsRoots[Rn("0xe1")](e,this[Rn("0x14")](t,i))}this._startingRevisionId=this[Rn("0x105")],this[Rn("0xb2")].set(Rn("0x55"),En(this[Rn("0xad")][Rn("0x11")]("$graveyard"))),i&&this._idsRoots[Rn("0xe1")](Rn("0x55"),this[Rn("0x14")](this[Rn("0xad")][Rn("0x11")](Rn("0x55"))));for(const[e,t]of r){const i=this._baseRoots[Rn("0x11")](t.rootName),n=this._diffRoots.get(t.rootName),r=new o.Range(this[Rn("0x40")](t[Rn("0x7e")],i),this[Rn("0x40")](t[Rn("0xf8")],i)),s=this[Rn("0x22")](r,n);i[Rn("0x1a")].set(e,r),this[Rn("0xe9")][Rn("0xe1")](e,s)}this[Rn("0x19")](e,t,i)}[Rn("0x19")](e,t,i){for(const n of this[Rn("0xd1")][Rn("0x12")](e,t))this[Rn("0x3c")](n,i);for(const e of this[Rn("0xb2")][Rn("0xa6")]())e[Rn("0x1a")][Rn("0xaa")]();for(const[e,t]of this[Rn("0xe9")])this[Rn("0xb2")][Rn("0x11")](t.root[Rn("0x35")])[Rn("0x1a")][Rn("0xe1")](e,t[Rn("0x8f")]());const n=new Map,r=new Map;for(const[e,t]of this[Rn("0xb2")])n[Rn("0xe1")](e,En(t)),r[Rn("0xe1")](e,this._diffRootsAttributes[Rn("0x11")](e));this[Rn("0xe4")](t,n,this[Rn("0xe9")],r)}[Rn("0x7")](e){const t=Array[Rn("0xc0")](this[Rn("0x5")][Rn("0x53")]());t[Rn("0x3b")](((e,t)=>e-t)),t[Rn("0x6d")]();for(const i of t)if(i<e)return i;return Number[Rn("0xe")]}_copyMarkers(e,t){const i=Array.from(t[Rn("0x1a")])[Rn("0xf9")]((([t,i])=>[t,this[Rn("0x22")](i,e)]));e[Rn("0x1a")]=new Map(i)}[Rn("0xcb")](e){for(const t of this[Rn("0xe9")][Rn("0xa6")]()){const i=t[Rn("0x28")](e),n=o.Range[Rn("0xfb")](i);t[Rn("0x7e")]=n[Rn("0x7e")],t[Rn("0xf8")]=n[Rn("0xf8")]}}[Rn("0x3c")](e,t){if(Rn("0x5c")==e[Rn("0xc8")]||Rn("0x77")==e.type)return void this._handleRootOperation(e,t);if(Rn("0x98")==e[Rn("0xc8")]){const i=e[Rn("0x99")][Rn("0xe0")][Rn("0x35")];this[Rn("0xb2")][Rn("0x102")](i)||(this[Rn("0xb2")][Rn("0xe1")](i,Mn(i,!0)),this._diffRootsAttributes.set(i,{}),t&&this[Rn("0x56")][Rn("0xe1")](i,Mn(i,!0)))}else if(Rn("0xd7")==e[Rn("0xc8")]||"removeRootAttribute"==e[Rn("0xc8")]||"changeRootAttribute"==e[Rn("0xc8")])return void this[Rn("0x10")](e);const i=this[Rn("0xa9")](e,this[Rn("0xb2")]);if("marker"!==e[Rn("0xc8")]&&(i._execute(),this[Rn("0xcb")](i)),t)switch(i.type){case Rn("0x98"):this[Rn("0xc3")](e);break;case Rn("0xde"):case Rn("0x106"):case Rn("0x39"):this[Rn("0x17")](e);break;case Rn("0xf2"):this[Rn("0x63")](e);break;case"split":this[Rn("0x4b")](e);break;case Rn("0xa0"):this[Rn("0xbf")](e)}}[Rn("0xa9")](e,t){const i=e[Rn("0x8f")]();return i[Rn("0x47")]=e._authorId,this[Rn("0x2")](i,t),i}[Rn("0xed")](e){return e.map((e=>{const t=this[Rn("0x57")](e);return Number(e[Rn("0x8e")][Rn("0xce")](t))}))}_generateTape(e,t){if(e.is("element","$text"))t.push({item:e,type:Rn("0x64")});else{e.is("element")&&t[Rn("0xd")]({item:e,type:Rn("0x43")});for(const i of e[Rn("0xef")]())this[Rn("0x93")](i,t);e.is("element")&&t.push({item:e,type:"elementEnd"})}return t}_getState(){const e=new Map(this._touched),t=new Map(e),i=new Map,n={insertions:{},deletions:{}},r={insertions:{},deletions:{}},o=new Map,s=new Set([...this[Rn("0xad")][Rn("0x53")](),...this._diffRoots[Rn("0x53")]()]);s[Rn("0xba")](Rn("0x55"));for(const e of s){const t=this[Rn("0xb2")][Rn("0x11")](e)||Mn(e,!1),i=this._baseRoots[Rn("0x11")](e)||Mn(e,!1);t[Rn("0x3")]()||i[Rn("0x3")]()?(n[Rn("0x108")][e]=En(t),n[Rn("0x4e")][e]=En(i),this[Rn("0x79")](n[Rn("0x4e")][e],i),this._copyMarkers(n[Rn("0x108")][e],t),r[Rn("0x108")][e]=this[Rn("0x93")](this._idsRoots[Rn("0x11")](e),[]),r.deletions[e]=this[Rn("0x93")](this[Rn("0x8")][Rn("0x11")](e)||Mn(e,!1),[])):s[Rn("0xba")](e)}for(const n of s){const o=r.insertions[n];for(const n of o){const r=this[Rn("0x57")](n),o=n.item.getAttribute(r);t[Rn("0xba")](o),o>=this[Rn("0xb7")]&&i[Rn("0xe1")](o,e[Rn("0x11")](o))}}for(const n of s){const s=r[Rn("0x108")][n],a=this[Rn("0xed")](r[Rn("0x4e")][n]);let c=0;for(const n of s){const r=this[Rn("0x57")](n),s=n[Rn("0x8e")].getAttribute(r);if(!i.has(s)&&!o.has(s))if(t[Rn("0x102")](s))c++;else{if(s!=a[c]){const i=e[Rn("0x11")](s)||e[Rn("0x11")](a[c]);for(;s!=a[c];)t.has(a[c])||(o[Rn("0xe1")](a[c],i),e[Rn("0xe1")](a[c],i)),c++}c++}}}for(const e of s){const n=r.insertions[e];for(const e of n){const n=this[Rn("0x57")](e),r=e[Rn("0x8e")][Rn("0xce")](n);if(o[Rn("0x102")](r)){const e=o[Rn("0x11")](r);t[Rn("0x102")](r)||t[Rn("0xe1")](r,{...e}),i[Rn("0xe1")](r,{...e})}}}for(const e of t[Rn("0x53")]())e>=this[Rn("0xb7")]&&t.delete(e);const a=new Map;for(const e of s){let n=r[Rn("0x108")][e];for(const e of n)if(e.item.is(Rn("0x70"),Rn("0xf1"))){const t=this._getVidAttributeName(e),n=e[Rn("0x8e")].getAttribute(t);if(i[Rn("0x102")](n)){const t=e[Rn("0x8e")][Rn("0x31")][Rn("0x31")][Rn("0xce")](Rn("0xae")),r=a[Rn("0x11")](t)||new Set;r[Rn("0xe6")](i.get(n).userId),a[Rn("0xe1")](t,r)}}n=r[Rn("0x4e")][e];for(const e of n)if(e[Rn("0x8e")].is(Rn("0x70"),"tableCell")){const i=this._getVidAttributeName(e),n=e[Rn("0x8e")].getAttribute(i);if(t[Rn("0x102")](n)){const i=e.item[Rn("0x31")][Rn("0x31")][Rn("0xce")](Rn("0xae")),r=a[Rn("0x11")](i)||new Set;r.add(t[Rn("0x11")](n)[Rn("0xa5")]),a[Rn("0xe1")](i,r)}}for(const e of a.keys())(i[Rn("0x102")](e)||t.has(e))&&a[Rn("0xba")](e)}for(const e of s){const n=r[Rn("0x108")][e];let o=null,s=null;for(const e of n){const n=this[Rn("0x57")](e),r=e[Rn("0x8e")][Rn("0xce")](n),c=a.get(r);c&&Rn("0x43")==e[Rn("0xc8")]&&(o=Array[Rn("0xc0")](c)[0],s=e.item.getAttribute(Rn("0xc5"))),o&&(t[Rn("0xe1")](r,{userId:o}),i.set(r,{userId:o})),r==s&&(o=null,s=null)}}const c={},u=new Set;for(const e of s){const o=n[Rn("0x4e")][e],s=n.insertions[e];for(const{userId:e}of this[Rn("0x27")][Rn("0xa6")]())null!==e&&u.add(e);for(const{userId:e}of this[Rn("0x61")][Rn("0xa6")]())null!==e&&u.add(e);this._markChanges(s,r[Rn("0x108")][e],i,Rn("0xc9"),u),this._markChanges(o,r[Rn("0x4e")][e],t,Rn("0x65"),u),c[e]={insertions:this[Rn("0x9c")](s),deletions:this[Rn("0x9c")](o),attachChange:this[Rn("0x61")].get(e)||null,attributesBefore:pi(this[Rn("0x2d")][Rn("0x11")](e))||{},attributesAfter:pi(this[Rn("0x4a")][Rn("0x11")](e))}}return{diffData:c,authorsIds:Array.from(u)}}[Rn("0x20")](e){for(const[,t]of e[Rn("0x1a")]){const e=t[Rn("0x7e")][Rn("0xd2")]()[Rn("0xb0")]((e=>Rn("0xf1")==e[Rn("0x3f")]));for(const t of e)1==t[Rn("0x24")]&&t[Rn("0xee")](0).is("element","paragraph")&&t[Rn("0xee")](0)[Rn("0x34")]("keepParagraph",!0)}}_prepareViewToSave(e){this._processRootBeforeSave(e);const t=this[Rn("0x2f")][Rn("0xd4")][Rn("0x8a")](e,{}),i=Array[Rn("0xc0")](t[Rn("0xef")]())[Rn("0xf9")]((e=>this._getViewJson(e)));return JSON[Rn("0x72")](i)}[Rn("0xcd")](e){if(e.is("$text"))return e[Rn("0xd4")];{const t=e;return{type:Object.keys(Tn)[Rn("0x81")]((t=>e instanceof Tn[t])),name:t[Rn("0x3f")],attributes:Array[Rn("0xc0")](t[Rn("0xb4")]()),children:Array[Rn("0xc0")](t[Rn("0xef")]()).map((e=>this[Rn("0xcd")](e)))}}}_markChanges(e,t,i,n,r){let o=null,s=null,a=0;const c=this[Rn("0x2f")][Rn("0x7a")];for(let n=0;n<t.length;n++){const r=this._getVidAttributeName(t[n]),a=t[n][Rn("0x8e")][Rn("0xce")](r),d=i[Rn("0x11")](a),x=n==t[Rn("0x13")]-1;!o&&d&&(o=d,s=t[n]),o&&(!d||d.userId!=o[Rn("0xa5")])&&(u(d,An(s,e,c),An(t[n],e,c)),o=d||null,s=d?t[n]:null),o&&x&&u(d,An(s,e,c),Dn(t[n],e,c))}function u(t,i,s){const u=o[Rn("0xa5")],d="revision:"+n+":"+u+":"+a++,x=c.createRange(i,s);e[Rn("0x1a")][Rn("0xe1")](d,x),null!==u&&r.add(u)}}[Rn("0x57")](e){switch(e.type){case"elementStart":return Rn("0xae");case Rn("0x18"):return"vid_end";default:return Rn("0x66")}}_fixOperation(e,t){e[Rn("0x50")]=null;for(const i in e){const n=e[i];if(n instanceof o.Position){const r=t.get(n[Rn("0xe0")].rootName);e[i]=this[Rn("0x40")](n,r)}if(n instanceof o.Range){const r=t.get(n[Rn("0xe0")][Rn("0x35")]);e[i]=this[Rn("0x22")](n,r)}"root"===i&&(e[Rn("0xe0")]=t[Rn("0x11")](e.root[Rn("0x35")]))}}_fixRange(e,t){return this[Rn("0x2f")][Rn("0x7a")].createRange(this[Rn("0x40")](e[Rn("0x7e")],t),this[Rn("0x40")](e[Rn("0xf8")],t))}[Rn("0x40")](e,t){return this[Rn("0x2f")][Rn("0x7a")].createPositionFromPath(t,e[Rn("0xa")],e[Rn("0x89")])}[Rn("0xc3")](e){const t=this[Rn("0x56")][Rn("0x11")](e[Rn("0x99")][Rn("0xe0")][Rn("0x35")]),i=this._fixPosition(e.position,t),n=null===e[Rn("0x47")]?null:e[Rn("0x47")]||this.editor[Rn("0xfd")].get(Rn("0x3e")).me.id,r=i.parent,s=this._revisionId,a=[];for(const t of e.nodes)if(t.is(Rn("0x70")))a[Rn("0xd")](this[Rn("0x14")](t));else for(let e=0;e<t[Rn("0xea")];e++)a[Rn("0xd")](new o.Element(Rn("0x6f"),{vid:this[Rn("0x105")]++}));const c=this._revisionId;for(let e=s;e<c;e++)this[Rn("0xb")][Rn("0xe1")](e,{userId:n});r[Rn("0xf0")](i[Rn("0xdc")],a)}[Rn("0x17")](e){(e=this[Rn("0xa9")](e,this[Rn("0x56")]))._execute();const t=null===e[Rn("0x47")]?null:e[Rn("0x47")]||this[Rn("0x2f")][Rn("0xfd")][Rn("0x11")]("Users").me.id,i=e[Rn("0x9b")](),n=i[Rn("0x31")],r=i.offset;!function e(i,n,r,o){for(let s=r;s<o;s++){const r=n[Rn("0xee")](s);r.is("element",Rn("0x6f"))?i.set(r.getAttribute(Rn("0x66")),{userId:t}):(i[Rn("0xe1")](r[Rn("0xce")](Rn("0xae")),{userId:t}),e(i,r,0,r.childCount),i[Rn("0xe1")](r[Rn("0xce")](Rn("0xc5")),{userId:t}))}}(this[Rn("0xb")],n,r,r+e[Rn("0x95")])}[Rn("0x63")](e){const t=null===(e=this._cloneOperation(e,this[Rn("0x56")]))[Rn("0x47")]?null:e[Rn("0x47")]||this[Rn("0x2f")][Rn("0xfd")][Rn("0x11")](Rn("0x3e")).me.id,i=e[Rn("0x97")][Rn("0x31")],n=e[Rn("0x62")][Rn("0x31")],r=i.getAttribute(Rn("0xc5")),o=n.getAttribute(Rn("0xae"));i[Rn("0x34")](Rn("0xc5"),n[Rn("0xce")](Rn("0xc5"))),n._setAttribute(Rn("0xc5"),r),this[Rn("0xb")][Rn("0xe1")](o,{userId:t}),this[Rn("0xb")][Rn("0xe1")](r,{userId:t}),e[Rn("0x80")]()}[Rn("0x4b")](e){const t=null===(e=this[Rn("0xa9")](e,this._idsRoots))[Rn("0x47")]?null:e[Rn("0x47")]||this[Rn("0x2f")][Rn("0xfd")].get(Rn("0x3e")).me.id,i=e.graveyardPosition,n=e[Rn("0xb5")][Rn("0x31")];e[Rn("0x80")]();const r=n.getAttribute("vid_end"),o=e[Rn("0xfe")][Rn("0x9")];if(i){const e=o[Rn("0xce")](Rn("0xc5")),i=n[Rn("0xce")](Rn("0xc5"));n[Rn("0x34")]("vid_end",e),o[Rn("0x34")](Rn("0xc5"),i),this[Rn("0xb")][Rn("0xe1")](n[Rn("0xce")](Rn("0xc5")),{userId:t}),this._touched[Rn("0xe1")](o[Rn("0xce")](Rn("0xae")),{userId:t})}else{const e=this[Rn("0x105")]++,i=this[Rn("0x105")]++;n[Rn("0x34")](Rn("0xc5"),e),o[Rn("0x34")](Rn("0xae"),i),o[Rn("0x34")]("vid_end",r),this._touched[Rn("0xe1")](e,{userId:t}),this._touched[Rn("0xe1")](i,{userId:t})}}[Rn("0xbf")](e){if(!e.affectsData)return;const t=(e=this[Rn("0xa9")](e,this[Rn("0xb2")])).oldRange?e[Rn("0xf6")][Rn("0xe0")]:null,i=e[Rn("0x4")]?e[Rn("0x4")][Rn("0xe0")]:null;t&&this[Rn("0xe9")][Rn("0xba")](e[Rn("0x3f")]),i&&this[Rn("0xe9")][Rn("0xe1")](e[Rn("0x3f")],e.newRange.clone());const n=null===e[Rn("0x47")]?null:e[Rn("0x47")]||this[Rn("0x2f")][Rn("0xfd")][Rn("0x11")]("Users").me.id,r=e.name;if(!this[Rn("0x27")][Rn("0x102")](r))return void this._touchedMarkers[Rn("0xe1")](r,{range:e[Rn("0xf6")],userId:n});const o=this[Rn("0x27")][Rn("0x11")](r),s=o[Rn("0xfa")],a=e[Rn("0x4")];null==s&&null==a||s&&a&&s[Rn("0x5e")](a)?this[Rn("0x27")][Rn("0xba")](e[Rn("0x3f")]):o[Rn("0xa5")]=n}[Rn("0xe2")](e,t){this[Rn("0xb2")][Rn("0x102")](e.rootName)?this._diffRoots[Rn("0x11")](e[Rn("0x35")])[Rn("0xf7")]=e.isAdd:(this[Rn("0xb2")][Rn("0xe1")](e[Rn("0x35")],Mn(e[Rn("0x35")],!0)),this._diffRootsAttributes.set(e[Rn("0x35")],{}),t&&this[Rn("0x56")][Rn("0xe1")](e.rootName,Mn(e[Rn("0x35")],!0)));const i=null===e[Rn("0x47")]?null:e[Rn("0x47")]||this[Rn("0x2f")][Rn("0xfd")].get(Rn("0x3e")).me.id,n=this[Rn("0x61")][Rn("0x11")](e[Rn("0x35")]);n&&n[Rn("0xa5")]===i?this._touchedRoots[Rn("0xba")](e[Rn("0x35")]):this[Rn("0x61")][Rn("0xe1")](e.rootName,{userId:i,isAttached:e[Rn("0x8b")]})}[Rn("0x10")](e){const t=this[Rn("0x4a")][Rn("0x11")](e[Rn("0xe0")].rootName);null===e[Rn("0xc1")]?delete t[e[Rn("0x1f")]]:t[e[Rn("0x1f")]]=e.newValue}}function En(e){const t=Mn(e[Rn("0x35")],e[Rn("0x3")]());for(const i of e[Rn("0xef")]()){const e=i[Rn("0x9d")](!0);t._appendChild(e)}return t}function Mn(e,t=!0){const i=new o.DocumentFragment;return i[Rn("0x35")]=e,i[Rn("0xf7")]=t,i[Rn("0x3")]=()=>i._isAttached,i}function An(e,t,i){const n=Rn("0x18")==e[Rn("0xc8")]?i[Rn("0x7b")](e.item,Rn("0xf8")):i[Rn("0x5d")](e[Rn("0x8e")]);return i[Rn("0x2a")](t,n[Rn("0xa")],n[Rn("0x89")])}function Dn(e,t,i){const n=Rn("0x43")==e[Rn("0xc8")]?i[Rn("0x7b")](e[Rn("0x8e")],0):i[Rn("0xb9")](e[Rn("0x8e")]);return i.createPositionFromPath(t,n[Rn("0xa")],n[Rn("0x89")])}var Cn=i(273),jn=i(278),Fn=i.n(jn),Ln=i(656),Pn={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fn()(Ln.Z,Pn);Ln.Z.locals;var zn=i(769),Zn={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fn()(zn.Z,Zn);zn.Z.locals;const Un=["_createButton","cancel","trim","extendTemplate","form","value","arrowright","cancelButtonView","stopPropagation","element","forEach","setTemplate","_focusCycler","set","execute","revisionNameInputView","shift + tab","ck-revision-history-save-revision-form","locale","220","focusTracker","arrowup","listenTo","keystrokes","saveButtonView","add","fieldView","tab","revisionNameInputValue","arrowleft","render","reset","Cancel","ck-responsive-form","focusFirst","ck-button-save","ck-button-cancel","delegate","input","label","revisionName","_focusables","focus","_createRevisionNameInput"];var Hn,qn;Hn=Un,qn=138,function(e){for(;--e;)Hn.push(Hn.shift())}(++qn);const Bn=function(e,t){return Un[e-=0]};class Wn extends Cn.View{constructor(i){super(i),this[Bn("0xe")]=new t.FocusTracker,this[Bn("0x11")]=new t.KeystrokeHandler,this.set(Bn("0x16"),""),this.revisionNameInputView=this[Bn("0x25")](),this.saveButtonView=this[Bn("0x26")](en(i,"Save"),e.icons.check,Bn("0x1d")),this.saveButtonView.type="submit",this[Bn("0x1")]=this._createButton(en(i,Bn("0x1a")),e.icons[Bn("0x27")],Bn("0x1e"),Bn("0x27")),this[Bn("0x23")]=new Cn.ViewCollection,this[Bn("0x6")]=new Cn.FocusCycler({focusables:this._focusables,focusTracker:this[Bn("0xe")],keystrokeHandler:this[Bn("0x11")],actions:{focusPrevious:Bn("0xa"),focusNext:Bn("0x15")}}),this[Bn("0x5")]({tag:Bn("0x2a"),attributes:{class:["ck",Bn("0xb"),Bn("0x1b")],tabindex:"-1"},children:[this[Bn("0x9")],this[Bn("0x12")],this[Bn("0x1")]]}),(0,Cn.injectCssTransitionDisabler)(this)}[Bn("0x18")](){super[Bn("0x18")](),(0,Cn.submitHandler)({view:this}),[this.revisionNameInputView,this[Bn("0x12")],this.cancelButtonView][Bn("0x4")]((e=>{this[Bn("0x23")].add(e),this[Bn("0xe")][Bn("0x13")](e[Bn("0x3")])})),this.keystrokes[Bn("0x10")](this.element);const e=e=>e[Bn("0x2")]();this[Bn("0x11")][Bn("0x7")](Bn("0x0"),e),this[Bn("0x11")][Bn("0x7")](Bn("0x17"),e),this[Bn("0x11")][Bn("0x7")](Bn("0xf"),e),this[Bn("0x11")][Bn("0x7")]("arrowdown",e)}[Bn("0x24")](){this._focusCycler[Bn("0x1c")]()}get[Bn("0x22")](){return this.revisionNameInputView.fieldView[Bn("0x3")][Bn("0x2b")][Bn("0x28")]()}set[Bn("0x22")](e){this[Bn("0x9")][Bn("0x14")].element[Bn("0x2b")]=e.trim()}[Bn("0x19")](){this[Bn("0x9")].fieldView[Bn("0x3")][Bn("0x2b")]=""}[Bn("0x25")](){const e=new Cn.LabeledFieldView(this[Bn("0xc")],Cn.createLabeledInputText),t=e[Bn("0x14")];return t[Bn("0x29")]({attributes:{maxlength:Bn("0xd")}}),e[Bn("0x21")]=en(this[Bn("0xc")],"Name of the revision (optional)"),t.on(Bn("0x20"),(()=>{this[Bn("0x16")]=t[Bn("0x3")].value[Bn("0x28")]()})),e}_createButton(e,t,i,n){const r=new Cn.ButtonView(this[Bn("0xc")]);return r[Bn("0x7")]({label:e,icon:t,tooltip:!0}),r.extendTemplate({attributes:{class:i}}),n&&r[Bn("0x1f")](Bn("0x8")).to(this,n),r}}const Jn=["editor","isReady","Revision history","RevisionHistoryUI","isEnabled","RevisionTracker","cancel","buttonView","add","bind","editing","isOpen","remove","render","view","addMany","focus","init","saveButtonView","history","revisionName","pluginName","plugins","saveRevision","Save current revision","reset","panelView","isReadOnly","children","execute","set","length","get","items","requires","Open revision history"];var Gn,Yn;Gn=Jn,Yn=116,function(e){for(;--e;)Gn.push(Gn.shift())}(++Yn);const $n=function(e,t){return Jn[e-=0]};class Kn extends e.Plugin{static get[$n("0xd")](){return $n("0x1f")}static get[$n("0x1a")](){return[In]}[$n("0x9")](){const t=this[$n("0x1c")],i=t[$n("0xe")][$n("0x18")]($n("0x21"));t.ui.componentFactory[$n("0x0")]("revisionHistory",(n=>{const r=(0,Cn.createDropdown)(n),o=r[$n("0x12")][$n("0x14")],s=new Cn.ListView(n),a=new Cn.ListItemView(n),c=new Cn.ButtonView(n),u=new Cn.ListItemView(n),d=new Cn.ButtonView(n),x=new Wn(n);function l(){o[$n("0x17")]&&o[$n("0x4")](0),o.add(s)}function h(){r[$n("0x3")]=!1,t[$n("0x2")][$n("0x6")][$n("0x8")]()}return r.bind("isEnabled").to(i,$n("0x1d"),i,"isEnabled",t,"isReadOnly",((e,t,i)=>e&&t&&!i)),r[$n("0x23")][$n("0x16")]({icon:e.icons[$n("0xb")],label:en(n,$n("0x1e")),tooltip:!0}),c.set({label:en(n,$n("0x10")),withText:!0}),c[$n("0x1")]($n("0x20")).to(i,"isReady",i,$n("0x20"),t,$n("0x13"),((e,t,i)=>e&&t&&!i)),c.on($n("0x15"),(()=>(o[$n("0x17")]&&o.remove(0),x[$n("0x11")](),o[$n("0x0")](x),void x[$n("0x8")]()))),d.set({label:en(n,$n("0x1b")),withText:!0}),d.bind($n("0x20")).to(i,$n("0x1d"),t,$n("0x13"),((e,t)=>e&&!t)),d.on($n("0x15"),(()=>{t.config[$n("0x18")]("revisionHistory").showRevisionViewerCallback(),h()})),a[$n("0x14")][$n("0x0")](c),u.children.add(d),s[$n("0x19")][$n("0x7")]([a,u]),r.on("change:isOpen",(()=>l())),x[$n("0xa")].bind($n("0x20")).to(i,$n("0x1d"),i,$n("0x20"),t,$n("0x13"),((e,t,i)=>e&&t&&!i)),x.on("submit",(()=>(t[$n("0xe")][$n("0x18")](In)[$n("0xf")]({name:x[$n("0xc")]}),void h()))),x.on($n("0x22"),(()=>l())),x[$n("0x5")](),l(),r}))}}const Xn=["name","changeId","type","span","ck-annotation","bindTemplate","set","setTemplate","ck-revision-change__label","Removed by","element","Added by","_model","add","focus","isSuggestion","Suggested by","author"];var Qn,er;Qn=Xn,er=422,function(e){for(;--e;)Qn.push(Qn.shift())}(++er);const tr=function(e,t){return Xn[e-=0]};class ir extends Cn.View{constructor(e,t){super(e),this[tr("0x4")]=t,this[tr("0xb")]=t.id;const i=this[tr("0xf")],n=en(e,t.data[tr("0x7")]?tr("0x8"):tr("0x5")==t[tr("0xc")]?tr("0x3"):tr("0x1"));this[tr("0x10")](tr("0xc"),t[tr("0xc")]),this[tr("0x11")]({tag:"div",attributes:{class:[tr("0xe"),"ck-revision-change",i.to(tr("0xc"),(e=>"ck-revision-change__"+e))],tabindex:-1},children:[{tag:"span",children:[{tag:tr("0xd"),attributes:{class:[tr("0x0")]},children:[{text:n}]},{text:" "+t[tr("0x9")][tr("0xa")]}]}]})}[tr("0x6")](){this[tr("0x2")][tr("0x6")]()}}var nr,rr,or=["data","rootName","type","author","createdAt","toJSON"];nr=or,rr=236,function(e){for(;--e;)nr.push(nr.shift())}(++rr);var sr=function(e,t){return or[e-=0]};class ar extends((0,t.ObservableMixin)()){constructor(e){super(),this.id=e.id||(0,t.uid)(),this[sr("0x1")]=e.author,this[sr("0x0")]=e[sr("0x0")],this[sr("0x4")]=e[sr("0x4")]||{},this[sr("0x5")]=e[sr("0x5")],this.set(sr("0x2"),e[sr("0x2")])}[sr("0x3")](){return{id:this.id,authorId:this.author.id,type:this[sr("0x0")],data:this.data,createdAt:this[sr("0x2")]}}}const cr=["add","oldRevisionId","_setChanges","newRevisionId","changes"];var ur,dr;ur=cr,dr=101,function(e){for(;--e;)ur.push(ur.shift())}(++dr);const xr=function(e,t){return cr[e-=0]};class lr{constructor(e,i){this[xr("0x2")]=e,this[xr("0x0")]=i,this[xr("0x3")]=new t.Collection}[xr("0x1")](e){for(const t of e)this[xr("0x3")][xr("0x4")](t)}}var hr=i(752),fr={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fn()(hr.Z,fr);hr.Z.locals;const vr=["RevisionViewer","mousedown","_appendChild","pairId","isBlock","markerNameToElements","concat","insertion","ck-suggestion-marker","span","markerToData","indexOf","revision-start","_markInsertions","_data","right","isObject","createPositionBefore","updatePosition","attributes","elementStart","parse","createRange","toViewPosition","side","ck-editor__editable__overlay","consume","isAttached","_makeModelFromTape","element","_setConversion","roots","_setDistance","createAttributeElement","removeAttribute","_setChanges","getCustomProperty","_processTape","addMarker:revision-suggestion:deletion","vid","_cleanMarkers","_getDiff","string","diff","vid_end","isReady","nodeAfter","children","reconvertMarker","code","_changeIdToChange","index","checkAttribute","editingDowncast","then","deletion","_cleanUp","toModel","_joinTapes","_refreshStartEndIndex","markerRange","sort","showStack","_getViewObj","split","listenTo","splice","target","hasAttribute","values","_removeUnsupportedChanges","isNavigationMode","ck-suggestion-preview-marker","start","processor","revision:","markersEnd","dataToMarker","ck-suggestion-marker--active","getRevision","viewItem","isRemoved","mapper","length","done","activeChange","getIndex","keys","nextPosition","activeView","element:pre","toViewRange","revision-suggestion","isEnabled","isAfter","model","revisionHistoryAttachChange","isCollapsed","range","isIncorrect","removeClass","repository","isEqual","elementToAttribute","addHighlight","oldRevisionId","get","data-revision-","type","domEvent","addMarker:revision-suggestion:insertion","refresh","change:activeChange","RevisionsRepository","from","view","_balloon","changeId","merge","dataDowncast","setAttribute","POSITIVE_INFINITY","adapter","editor","diffData","_getRevisionsRange","revision-suggestion:","stop","error","addRoot","isAddSuggestion","_removeMissingPairs","flat","init","ck-revision-history-root--active","maxOffset","revision-viewer","_findChangeIdFromDomTarget","isAdded","-new","next","name","startIndex","newRevisionId","map","getClientRects","_update","getRoot","getRootNames","addRevision","delete","compare","change:isReady","return","insert","nextSibling","top","ck-suggestion-preview-marker-","enableReadOnlyMode","high","elementEnd","data-change-id","pluginName","abs","enqueueChange","collaboration.channelId","unshift","revision-end","conversion","useFillerType","schema","attributesAfter","backward","WidgetToolbarRepository","has","offsetSize","getWalker","text","change","distance","isBefore","upcast","isAtStart","numberOfChanges","data","revisionHistoryLabel","modelRange","revision-comment:","_markMismatchedRemovedTags","createPositionFromPath","detachRoot","userId","revision","_removeRevisionMarkers","_getViewForChange","isOnRoot","end","unbindElementFromMarkerName","_makeModelFromViewString","bottom","object","ck-suggestion-marker-merge","change:activeView","writer","filter","_fixObsoleteTags","downcastDispatcher","bindElementToMarker","ck-suggestion-marker-","isSuggestion","removeMarker:revision-suggestion","isLimit","consumable","previousPosition","removeMarker:revision","getRevisionRootsAttributes","document","plugins","destroy","_markMarkers","forward","_markSuggestions","loadRevisionData","commands","getChild","suggestion:","attachChange","rootName","ck-revision-history-root-remove","attributesBefore","level","observeMarkers","forEach","highest","changes","getItems","toViewElement","_initInteractions","addMarker:revision","item","set","default","first","resolve","getAttributes","add","isRemoveSuggestion","findIndex","toData","_activeViewTarget","editing","getDomRoot","markerToHighlight","all","uiElement","getRevisionData","_step","createRangeIn","createRevision","catch","softBreak","createUIElement","parent","config","addClass","markerName","low","remove","selection","_revisions","_threeWayMerge","requires","showPreviousChange","_changeView","mapViewToDom","bind","showNextChange","hasClass","ck-revision-history-root-add","forceDisabled","markersStart","vid_start","comment","test","ck-revision-history-root-","change:isEnabled","_getChangeFromId","deletions","markers","restoreRevisionCallback","affectsData","for","ck-suggestion-marker-split","insertions","revisionHistory","push","getAttribute","shift","endIndex","authors","execute","change:numberOfChanges"];var mr,gr;mr=vr,gr=378,function(e){for(;--e;)mr.push(mr.shift())}(++gr);const yr=function(e,t){return vr[e-=0]},pr={c:o.ViewContainerElement,a:o.ViewAttributeElement,e:o.ViewEmptyElement,r:o.ViewRawElement,u:o.ViewUIElement};class br extends e.Plugin{static get[yr("0x56")](){return yr("0xe2")}static get[yr("0xc3")](){return[r.Users,Cn.ContextualBalloon,Qi]}constructor(e){super(e),this[yr("0x19")]=this[yr("0x2f")].plugins.get(yr("0x25")),this.set(yr("0x9"),null),this[yr("0xa4")]("activeView",null),this._activeViewTarget=null,this[yr("0xa4")](yr("0x10d"),null),this[yr("0xa4")](yr("0x10f"),!1),this[yr("0xa4")](yr("0x11"),!0),this.on(yr("0xd1"),((e,t,i)=>{this[yr("0x9")]=null,this[yr("0xd")]=null,this[yr("0x2f")][yr("0xae")][yr("0x27")].change((e=>{for(const t of this[yr("0x2f")][yr("0xae")].view[yr("0x8c")][yr("0x101")])i?e.removeClass(yr("0xfb"),t):e[yr("0xbc")](yr("0xfb"),t)}))})),this[yr("0xc7")](yr("0x129")).to(this,"activeChange",(e=>null!==e)),this.bind("currentChangeNumber").to(this,yr("0x10f"),this,yr("0x10d"),this,yr("0x9"),((e,t,i)=>e&&i?t[yr("0x9e")][yr("0xa")](i):0)),this.bind(yr("0x6b")).to(this,yr("0x10f"),this,yr("0x10d"),((e,t)=>e?t[yr("0x9e")][yr("0x7")]:0)),this[yr("0xc5")]=null,this[yr("0x114")]=new Map,this[yr("0x2e")]=null,this._balloon=this[yr("0x2f")][yr("0x8d")][yr("0x1e")](Cn.ContextualBalloon)}[yr("0x39")](){const e=this.editor,t=new wr(e,{direction:yr("0x60")}),i=new wr(e,{direction:yr("0x90")});e[yr("0x93")][yr("0xa9")](yr("0xc4"),t),e[yr("0x93")][yr("0xa9")](yr("0xc8"),i),e[yr("0x93")].add("restoreRevision",new _r(e)),this.on(yr("0xe1"),(()=>{t[yr("0x23")](),i[yr("0x23")]()})),this[yr("0x100")](),this[yr("0xa1")](),e[yr("0x52")]("revision-viewer"),e[yr("0x8d")][yr("0x62")]("WidgetToolbarRepository")&&e.plugins.get(yr("0x61"))[yr("0xcb")](yr("0x3c"))}async[yr("0xb3")](e){await this[yr("0x92")](e);const t={};for(const i in e[yr("0x30")]){if(e[yr("0x30")][i][yr("0x96")]&&!e[yr("0x30")][i].attachChange[yr("0xfd")])continue;const n=this[yr("0x75")](JSON[yr("0xf7")](e.diffData[i][yr("0xd9")])),r=this[yr("0x2f")][yr("0xae")][yr("0x27")][yr("0x8c")],s=new o.ViewDocumentFragment(r,n.map((e=>this[yr("0x121")](e))));this[yr("0x2f")][yr("0x6c")][yr("0x12c")][yr("0x5d")]("marked"),t[i]=this[yr("0x2f")][yr("0x6c")][yr("0x12c")][yr("0xac")](s),this.editor[yr("0x6c")][yr("0x12c")][yr("0x5d")](yr("0xa5"))}return t}async[yr("0x8b")](e){await this.loadRevisionData(e);const t={};for(const i in e[yr("0x30")])e[yr("0x30")][i][yr("0x96")]&&!e.diffData[i][yr("0x96")][yr("0xfd")]||(t[i]=e[yr("0x30")][i].attributesAfter||{});return t}[yr("0x75")](e){return(e=e[yr("0x80")]((e=>!e[yr("0x41")]||yr("0xee")!==e[yr("0x41")]&&yr("0x5b")!==e[yr("0x41")])))[yr("0x9c")]((e=>{yr("0x10c")!=typeof e&&(e[yr("0x111")]=this._removeRevisionMarkers(e.children),e.attributes=e[yr("0xf5")].filter((e=>!e[0].startsWith(yr("0x1f")))))})),e}async[yr("0x4b")](e,t,i=!1){if(!this[yr("0x11")])return;const n=this[yr("0x10d")],r=this[yr("0x19")],o=yr("0x10c")==typeof e?r.getRevision(e):e,s=yr("0x10c")==typeof t?r[yr("0x3")](t):t,a=o.id,c=s?s.id:null;if(!i&&this[yr("0x10d")]&&this[yr("0x10d")][yr("0x43")]===a&&this[yr("0x10d")][yr("0x1d")]===c)return Promise.resolve();this[yr("0x10f")]=!1,this.activeView=null,this.activeChange=null,this[yr("0x10d")]=new lr(a,c);const u=this[yr("0x31")](o,s,!0)[yr("0x44")]((e=>this.loadRevisionData(e)));return u.push(new Promise((e=>{setTimeout(e,20)}))),Promise[yr("0xb1")](u)[yr("0x118")]((()=>{if(!this[yr("0x11")])return;this[yr("0x11a")]();const e=this[yr("0x10b")](a,c);for(const t of e.changes)this[yr("0x114")][yr("0xa4")](t.id,t);this.editor[yr("0x13")][yr("0x58")]({isUndoable:!1},(t=>{for(const e of this[yr("0x2f")][yr("0x13")].document[yr("0x48")]())t[yr("0x72")](e);for(const i of Object[yr("0xb")](e[yr("0x13")])){const n=t[yr("0x35")](i);for(const r of Object[yr("0xb")](e[yr("0xf5")][i]))t[yr("0x2c")](r,e[yr("0xf5")][i][r],n);t[yr("0x4e")](e[yr("0x13")][i],n,0)}})),this[yr("0x10d")][yr("0x105")](this._sortAndFilterDiffChanges(e.changes)),this[yr("0x10f")]=!0}))[yr("0xb7")]((e=>{console[yr("0x34")](e),this[yr("0x11a")](),n&&(this[yr("0x10d")]=n),this[yr("0x10f")]=!0}))}addRevisionData(e,t){const i=this.repository[yr("0xb6")](e);return i.on(yr("0x46"),((e,n,r)=>t(n,r,i))),this[yr("0x19")][yr("0x49")](i),i}[yr("0x92")](e){if(!e||e[yr("0x30")])return Promise[yr("0xa7")]();{const t=this[yr("0x2f")][yr("0xbb")][yr("0x1e")](yr("0x59"));return this[yr("0x2e")][yr("0x3")]({channelId:t,revisionId:e.id})[yr("0x118")]((t=>{e[yr("0x46")]({diffData:t[yr("0x30")]},!0)}))}}[yr("0x11a")](){this[yr("0x9")]=null,this[yr("0x10a")](),this._changeView&&this[yr("0xc5")][yr("0x8e")](),this[yr("0xc5")]=null,this._changeIdToChange.clear(),this[yr("0x2f")][yr("0x13")][yr("0x58")]({isUndoable:!1},(e=>{for(const t of this[yr("0x2f")][yr("0x13")][yr("0x8c")][yr("0x48")]())e[yr("0x72")](t)}))}_sortAndFilterDiffChanges(e){const t=[],i=new Map;for(const e of this[yr("0x2f")][yr("0x13")].document[yr("0x48")]()){const n=this[yr("0x2f")].editing[yr("0x27")].getDomRoot(e);if(!n)continue;const r=n.getClientRects().item(0);r&&(t[yr("0xdb")](e),i[yr("0xa4")](e,r))}return t.sort(((e,t)=>{const n=i.get(e),r=i[yr("0x1e")](t);return n.y-r.y||n.x-r.x})),(e=e[yr("0x80")]((e=>t.includes(e[yr("0x97")]))))[yr("0x11f")](((e,i)=>t.indexOf(e[yr("0x97")])-t[yr("0xed")](i[yr("0x97")]))),e}_makeTape(e){const t=Array[yr("0x26")](e[yr("0xd4")])[yr("0x80")]((([e,t])=>e.startsWith(yr("0x12d"))&&!t[yr("0x15")])),i=Array[yr("0x26")](this[yr("0x2f")][yr("0x13")][yr("0xb5")](e).getWalker({singleCharacters:!0}));if(0!=t[yr("0x7")])for(const e of i){const[i,n]=t[0],[,r,o]=i[yr("0x122")](":");if(n[yr("0x78")][yr("0x1a")](e[yr("0xc")])&&t[yr("0xdd")](),(e[yr("0x89")][yr("0x1a")](n[yr("0x12b")])||e[yr("0x89")].isAfter(n[yr("0x12b")]))&&(yr("0xe9")==r?e[yr("0x3e")]={userId:o}:yr("0x119")==r&&(e[yr("0x5")]={userId:o})),0==t.length)break}return i}_refreshStartEndIndex(e){const t=new Map;for(let i=0;i<e[yr("0x7")];i++)yr("0x65")===e[i].type?(e[i].item[yr("0x42")]=i,e[i][yr("0xa3")].endIndex=i):(yr("0xf6")===e[i][yr("0x20")]?e[i][yr("0xa3")][yr("0x42")]=i:"elementEnd"===e[i][yr("0x20")]&&(e[i][yr("0xa3")][yr("0xde")]=i),t[yr("0xa4")](e[i].id,i));for(const i of t[yr("0x127")]())yr("0xf6")===e[i][yr("0x20")]?e[i][yr("0xa3")][yr("0xde")]=t[yr("0x1e")](e[i][yr("0xe5")]):yr("0x54")===e[i][yr("0x20")]&&(e[i][yr("0xa3")].startIndex=t[yr("0x1e")](e[i][yr("0xe5")]))}[yr("0x107")](e){for(let t=0;t<e[yr("0x7")];t++){if("elementStart"===e[t].type)e[t][yr("0xa3")][yr("0x42")]=t;else if(yr("0x54")===e[t].type){e[t].item[yr("0xde")]=t;const i=e[t].item[yr("0x42")];e[i][yr("0xe5")]=e[t].id,e[t][yr("0xe5")]=e[i].id}else e[t][yr("0xa3")].startIndex=t,e[t].item.endIndex=t,e[t][yr("0xe5")]=null;e[t][yr("0xcc")]||(e[t][yr("0xcc")]=[],e[t][yr("0x0")]=[])}}[yr("0xef")](e,t){const i=e.filter((e=>!e[yr("0x3e")]));for(let e=0;e<t[yr("0x7")];e++)t[e].isAdded&&(i[e][yr("0x3e")]=t[e][yr("0x3e")])}[yr("0x7a")](e){const t=JSON[yr("0xf7")](e),i=this[yr("0x2f")][yr("0xae")][yr("0x27")].document,n=new o.ViewDocumentFragment(i,t[yr("0x44")]((e=>this[yr("0x121")](e))));return this.editor[yr("0x6c")][yr("0x11b")](n)}[yr("0x121")](e){const t=this[yr("0x2f")].editing[yr("0x27")].document;if("string"==typeof e)return new o.ViewText(t,e);{const i=e[yr("0x111")][yr("0x44")]((e=>this[yr("0x121")](e)));return new(pr[e[yr("0x20")]]||o.ViewElement)(t,e[yr("0x41")],e.attributes,i)}}_getDiff(e,t=null){const i=this.repository[yr("0x3")](e),n=t?this[yr("0x19")].getRevision(t):null,r=this[yr("0x31")](i,n),o=r[r[yr("0x7")]-1],s=new Map,a={model:{},attributes:{},changes:[]},c=new Set,u=new Map;for(let e=r[yr("0x7")]-1;e>=0;e--){const t=r[e];for(const e of Object.keys(t[yr("0x30")]))if(t[yr("0x30")][e].attachChange){const i=t.diffData[e].attachChange;i[yr("0xfd")]?(c.add(e),u.has(e)&&u[yr("0x1e")](e)[yr("0x73")]==i[yr("0x73")]?u[yr("0x4a")](e):u.set(e,i)):u[yr("0x62")](e)?(c[yr("0x4a")](e),u[yr("0x4a")](e)):(c[yr("0xa9")](e),u[yr("0xa4")](e,i))}else c[yr("0xa9")](e)}for(const e of c){const t=u.has(e)&&!u[yr("0x1e")](e)[yr("0xfd")];let i=t?r[yr("0x7")]-1:0;const n=t?-1:1;for(;r[i];){const o=r[i];if(o[yr("0x30")][e]){const i=t?o[yr("0x30")][e][yr("0x99")]:o[yr("0x30")][e][yr("0x5f")];a[yr("0xf5")][e]=i?pi(i):{};break}i+=n}}for(const e of r){e[yr("0x13")]={};for(const t of e[yr("0xdf")])s[yr("0xa4")](t.id,t);for(const t of c){const i=e[yr("0x30")][t]?e[yr("0x30")][t][yr("0xd9")]:"[]",n=e[yr("0x30")][t]?e.diffData[t].deletions:"[]";e[yr("0x13")][t]={insertions:this[yr("0x7a")](i),deletions:this[yr("0x7a")](n)}}}for(const e of c){let t=null,n=0;const c=new Map(Array[yr("0x26")](i[yr("0x13")][e][yr("0xd9")][yr("0xd4")]).filter((([e])=>!e.startsWith(yr("0x12d")))));let d=0;for(const o of r){const r=this._makeTape(o[yr("0x13")][e][yr("0xd9")]);o==i?(t=r,n=t[yr("0x7")],t[yr("0x9c")]((e=>{e.id=d++})),this._processTape(t)):this._markInsertions(t,r);const s=t[yr("0x80")]((e=>!e[yr("0x3e")]))[yr("0x44")]((e=>e.id));let a=0;const u=this._makeTape(o[yr("0x13")][e][yr("0xd3")]);u[yr("0x9c")]((e=>{e[yr("0x5")]?e.id=n++:e.id=s[a++]})),this[yr("0x107")](u),this[yr("0x102")](t,yr("0x3e")),this[yr("0x102")](u,"isRemoved"),o==i&&this._markMarkers(t,c),t=this[yr("0x11c")](t,u),this[yr("0x11d")](t),this[yr("0x102")](t,"isRemoved")}t=t[yr("0x80")]((e=>!(e[yr("0x3e")]&&e[yr("0x5")])));const x=new Map(o[yr("0x13")][e].deletions[yr("0xd4")]),l=new Set(c[yr("0xb")]());for(const e of x.keys())l[yr("0x4a")](e);this[yr("0x91")](t,l),this[yr("0x81")](t),t=this[yr("0x37")](t),t=this._markMismatchedRemovedTags(t),t=this._removeUnsupportedChanges(t);const{root:h,changes:f}=this[yr("0xfe")](t,s,e);a[yr("0x13")][e]=h;const v=u.get(e);if(v){const t=s[yr("0x1e")](v[yr("0x73")]),i=new ar({author:t,type:v[yr("0xfd")]?yr("0xa9"):yr("0xbf"),data:{isOnRoot:!0},createdAt:new Date,rootName:e});f.unshift(i),a[yr("0xf5")][e][yr("0x14")]=i.id}a[yr("0x9e")]=a[yr("0x9e")][yr("0xe8")](f)}return a}[yr("0x8f")](e,t){for(let i=0;i<e[yr("0x7")];i++)for(const[n,r]of t)r[yr("0x12b")][yr("0x1a")](e[i].previousPosition)&&e[i][yr("0xcc")][yr("0xdb")](n),r[yr("0x78")][yr("0x1a")](e[i][yr("0xc")])&&e[i].markersEnd.push(n)}[yr("0x11c")](e,t){let i=[],n=0,r=0;for(;n<e[yr("0x7")]||r<t[yr("0x7")];){const o=e[n]||{},s=t[r]||{};if(o.id==s.id)n++,r++,i.push(o);else if(s.isRemoved&&o[yr("0x3e")]){const{commonTape:o,iEnd:s,jEnd:a}=this._threeWayMerge(e,n,t,r);i=i[yr("0xe8")](o),n=s,r=a}else s[yr("0x5")]?(r++,i[yr("0xdb")](s)):(n++,i.push(o))}return i}_markSuggestions(e,t){const i=[];for(let o=0;o<e[yr("0x7")];o++){for(let r=0;r<e[o].markersStart[yr("0x7")];r++){const s=e[o][yr("0xcc")][r];if(!t[yr("0x62")](s))continue;const{group:a,type:c,authorId:u}=n(s);yr("0x10")!=a||yr("0xe9")!=c&&yr("0x119")!=c||(i.unshift({type:c,name:s,userId:u}),e[o][yr("0xcc")][yr("0x124")](r,1),r--)}r(e[o]);for(let r=0;r<e[o].markersEnd[yr("0x7")];r++){const s=e[o][yr("0x0")][r];if(!t[yr("0x62")](s))continue;const{group:a,type:c}=n(s);if("revision-suggestion"!=a||yr("0xe9")!=c&&yr("0x119")!=c)continue;e[o][yr("0x0")][yr("0x124")](r,1),r--;const u=i[yr("0xab")]((e=>e.name==s));u>-1&&i[yr("0x124")](u,1)}}function n(e){const t=e[yr("0x122")](":");return{group:t[0],type:t[1],subType:t[yr("0x7")]>=5?t[2]:null,id:t[yr("0x7")]<5?t[2]:t[3],authorId:t[yr("0x7")]<5?t[3]:t[4],markerCount:6==t[yr("0x7")]?t[5]:null}}function r(e){for(let t=0;t<i.length;t++){if(e[yr("0x3e")]&&yr("0xe9")==i[t][yr("0x20")])return e[yr("0x36")]=i[t],void delete e[yr("0x3e")];if(!e[yr("0x3e")]&&!e[yr("0x5")]&&yr("0x119")==i[t][yr("0x20")])return void(e[yr("0xaa")]=i[t])}}}_setDistance(e,t){let i=0,n=!1;const r=new Map;for(const o of e)o[t]?n&&(i++,n=!1):(i++,n=!0),r[yr("0xa4")](o.id,i);for(let i=0;i<e[yr("0x7")];i++){if(yr("0x5")==t&&e[i].isAdded||yr("0x3e")==t&&e[i][yr("0x5")])continue;if("text"==e[i][yr("0x20")]){e[i][yr("0x67")]=0;continue}const n=r[yr("0x1e")](e[i][yr("0xe5")]),o=r[yr("0x1e")](e[i].id);e[i][yr("0x67")]=n-o}}[yr("0x31")](e,t,i=!1){const n=[];let r=this[yr("0x19")][yr("0xa")](e),o=this.repository[yr("0xa")](t);for(-1==o&&(o=this[yr("0x19")][yr("0xc1")][yr("0x7")],i=!1);r<o;)n[yr("0xdb")](this[yr("0x19")][yr("0x3")](r)),r++;return i&&n[yr("0xdb")](this[yr("0x19")][yr("0x3")](r)),n}[yr("0xc2")](e,t,i,n){const r=this[yr("0x2f")][yr("0x13")][yr("0x5e")];let o=t;for(;e[o]&&e[o][yr("0x3e")];)o++;let s=n;for(;i[s]&&i[s].isRemoved;)s++;c(e,t,o),c(i,n,s);const a=i.slice(n,s)[yr("0xe8")](e.slice(t,o));return a[yr("0x11f")](((e,t)=>e[yr("0xfa")]!=t.side?e[yr("0xfa")]-t.side:e[yr("0x9a")]!=t[yr("0x9a")]?e[yr("0x9a")]-t[yr("0x9a")]:e[yr("0x67")]!=t[yr("0x67")]?t[yr("0x67")]-e[yr("0x67")]:!!e[yr("0x3e")]!=!!t[yr("0x3e")]?-1==e[yr("0xfa")]||0==e.side?e.isAdded?-1:1:e[yr("0x3e")]?1:-1:e[yr("0x115")]-t[yr("0x115")])),{commonTape:a,iEnd:o,jEnd:s};function c(e,t,i){let n=-1,o=Number[yr("0x2d")],s=!0;for(let a=t;a<i;a++)if(r.isInline(e[a][yr("0xa3")])||(s=!1),e[a][yr("0xa3")][yr("0x42")]<t&&(n=a),e[a].item[yr("0xde")]>=i){o=a;break}s&&(n=i-1);for(let r=t;r<i;r++)e[r][yr("0xfa")]=r<=n?-1:r<o?0:1,e[r].index=r;let a=0;for(let i=t;i<=n;i++)0==e[i][yr("0x67")]?e[i][yr("0x9a")]=a:(a++,e[i].level=a,a++);for(let n=t;n<i;n++)0==e[n][yr("0xfa")]&&(e[n][yr("0x9a")]=a);a=0;for(let t=i-1;t>=o;t--)0==e[t][yr("0x67")]?e[t][yr("0x9a")]=a:(a--,e[t][yr("0x9a")]=a,a--)}}[yr("0x81")](e){const t=new Map,i=this[yr("0x2f")][yr("0x13")][yr("0x5e")];for(let n=1;n<e.length;n++){let r,o,s;const a=e[n],c=e[n-1];if(yr("0x65")==a.type)continue;if(a[yr("0x20")]!=c[yr("0x20")])continue;if(!i[yr("0xe6")](c[yr("0xa3")])||i.isLimit(c.item))continue;if(!i[yr("0xe6")](a.item)||i[yr("0x87")](a[yr("0xa3")]))continue;if((e[n][yr("0x3e")]||e[n].isAddSuggestion)&&e[n-1][yr("0x5")])r=e[n],o=e[n-1],s=n-1;else{if(!e[n][yr("0x5")]||!e[n-1][yr("0x3e")]&&!e[n-1][yr("0x36")])continue;r=e[n-1],o=e[n],s=n}const u=r.level==o[yr("0x9a")],d=Math[yr("0x57")](r[yr("0x9a")])<Math[yr("0x57")](o[yr("0x9a")])&&0==o[yr("0x67")];(u||d)&&(t[yr("0xa4")](o.id,r.id),e.splice(s,1),n--,r[yr("0x3e")]=!1)}for(let i=0;i<e[yr("0x7")];i++)t[yr("0x62")](e[i][yr("0xe5")])&&(e[i][yr("0xe5")]=t.get(e[i][yr("0xe5")]))}[yr("0x37")](e){const t=new Set(e.map((e=>e.id)));for(let i=0;i<e[yr("0x7")];i++)t[yr("0x62")](e[i][yr("0xe5")])||0==e[i].distance||(e[i][yr("0x17")]=!0);return e[yr("0x80")]((e=>!e[yr("0x17")]))}[yr("0x70")](e){const t=new Set;for(let i=0;i<e[yr("0x7")];i++){if(t.has(e[i].id)&&e[i][yr("0x5")]&&(e[i][yr("0x17")]=!0),e[i][yr("0x17")])continue;if(0==e[i].distance)continue;if("elementStart"!=e[i][yr("0x20")])continue;if(null==e[i][yr("0xe5")])continue;let n=i+1,r=0;for(;e[n].id!=e[i][yr("0xe5")];)yr("0xf6")==e[n][yr("0x20")]?r++:yr("0x54")==e[n][yr("0x20")]&&r--,n++;if(0!=r)if(e[i].isRemoved)e[i].isIncorrect=!0;else for(;n!=i;)e[n][yr("0x5")]&&0!=e[n][yr("0x67")]&&(e[n][yr("0x17")]=!0,t[yr("0xa9")](e[n][yr("0xe5")])),n--}return e[yr("0x80")]((e=>!e.isIncorrect))}[yr("0x128")](e){const t=this.editor[yr("0x13")][yr("0x5e")];for(let i=0;i<e[yr("0x7")];i++){if(!(e[i][yr("0x3e")]||e[i].isAddSuggestion||e[i][yr("0x5")]||e[i].isRemoveSuggestion))continue;if(0==e[i].distance)continue;const n=e[i][yr("0xa3")];t[yr("0xe6")](n)||t[yr("0x87")](n)||(e[i][yr("0x3e")]&&delete e[i][yr("0x3e")],e[i].isAddSuggestion&&delete e[i][yr("0x36")],e[i].isRemoveSuggestion&&delete e[i][yr("0xaa")],e[i].isRemoved&&(e[i][yr("0x17")]=!0))}return e[yr("0x80")]((e=>!e[yr("0x17")]))}[yr("0xfe")](e,t,i){const n=new o.DocumentFragment,r=[],s=new Map,a=this[yr("0x2f")][yr("0x13")],c=a[yr("0x5e")],u=[n],d={},x={isAdded:[],isRemoved:[],isAddSuggestion:[],isRemoveSuggestion:[]};let l=null;const h=[0];for(let t=0;t<e[yr("0x7")];t++){let i,r;if(yr("0xf6")===e[t][yr("0x20")]){i=a[yr("0x71")](n,h);const s=new o.Element(e[t][yr("0xa3")][yr("0x41")],e[t][yr("0xa3")][yr("0xa8")]());u[0]._appendChild(s),h[yr("0xdb")](0),u[yr("0x5a")](s),r=a[yr("0x71")](n,h),l=null}else if(yr("0x54")===e[t][yr("0x20")])u.shift(),i=a[yr("0x71")](n,h),h.pop(),h[h[yr("0x7")]-1]++,r=a[yr("0x71")](n,h),l=null;else{if(i=a[yr("0x71")](n,h),l&&m(l,e[t][yr("0xa3")]))l[yr("0xf0")]+=e[t][yr("0xa3")][yr("0x6c")];else{const i=new o.Text(e[t][yr("0xa3")][yr("0x6c")],e[t][yr("0xa3")].getAttributes());u[0][yr("0xe4")](i),l=i}h[h[yr("0x7")]-1]+=e[t][yr("0xa3")][yr("0x63")],r=a[yr("0x71")](n,h)}for(const n of e[t][yr("0xcc")])s[yr("0xa4")](n,{start:i,end:null});f("isRemoveSuggestion",t,i,r),f(yr("0x36"),t,i,r),f(yr("0x5"),t,i,r),f(yr("0x3e"),t,i,r);for(const i of e[t].markersEnd)s[yr("0x1e")](i)[yr("0x78")]=r}for(const[e,t]of s){const i=this[yr("0x2f")][yr("0x13")][yr("0xf8")](t[yr("0x12b")],t.end);n[yr("0xd4")][yr("0xa4")](e,i)}return r[yr("0x11f")](((e,t)=>{const i=n[yr("0xd4")].get("revision:"+e.id),r=n[yr("0xd4")].get(yr("0x12d")+t.id);return i.start[yr("0x68")](r[yr("0x12b")])?-1:i.start[yr("0x12")](r.start)?1:i.end[yr("0x68")](r[yr("0x78")])?-1:i.end[yr("0x12")](r[yr("0x78")])?1:yr("0xa9")===e[yr("0x20")]?-1:1})),{root:n,changes:r};function f(t,i,n,r){const o=!!e[i][t],s=o?e[i][t][yr("0x73")]:null,a=i===e[yr("0x7")]-1,u=x[t][0],l=c[yr("0xf2")](e[i][yr("0xa3")]);!d[t]&&o?d[t]={start:n,tapeItem:e[i],userId:s,type:t}:d[t]&&!o?(d[t][yr("0x78")]=n,v(d[t]),d[t]=null):d[t]&&o&&d[t][yr("0x73")]!==s&&(d[t].end=n,u&&u[yr("0x73")]===d[t][yr("0x73")]||v(d[t]),d[t]={start:n,tapeItem:e[i],userId:s,type:t}),d[t]&&l&&(yr("0xf6")!==e[i][yr("0x20")]||u&&u.userId===s||x[t][yr("0x5a")]({userId:s,object:e[i][yr("0xa3")],change:d[t]}),yr("0x54")===e[i][yr("0x20")]&&u&&u[yr("0x7c")]===e[i][yr("0xa3")]&&(x[t].shift(),d[t]=u[yr("0x66")])),d[t]&&a&&(d[t].end=r,v(d[t]),d[t]=null)}function v({start:e,end:o,tapeItem:s,userId:c,type:u}){const d=s[yr("0xa3")],x=a[yr("0x5e")][yr("0xe6")](d)&&!a.schema[yr("0x87")](d),l=e[yr("0x110")]==o.parent&&o[yr("0x6a")];if(x&&l)return;const h=a[yr("0xf8")](e,o),f=t.get(c),v=new ar({author:f,type:yr("0x3e")==u||yr("0x36")==u?yr("0xa9"):yr("0xbf"),data:{isSuggestion:yr("0x36")==u||yr("0xaa")==u},createdAt:new Date,rootName:i});r[yr("0xdb")](v),n[yr("0xd4")][yr("0xa4")](yr("0x12d")+v.id,h)}function m(e,t){const i=e.getAttributes(),n=t.getAttributes();for(const e of i){if(e[1]!==t[yr("0xdc")](e[0]))return!1;n[yr("0x40")]()}return n.next()[yr("0x8")]}}[yr("0x100")](){this[yr("0x2f")][yr("0x5c")][yr("0xd7")](yr("0x69"))[yr("0x1")]({view:yr("0x74")}),this[yr("0x2f")].conversion[yr("0xd7")]("editingDowncast").markerToHighlight({model:"revision",view:e=>{const t=e[yr("0xbd")][yr("0x122")](":")[1],i=this._getChangeFromId(t);if(!i)return null;const n=yr("0xa9")==i[yr("0x20")]?"insertion":yr("0x119"),r=[yr("0xea"),yr("0x84")+n];return i[yr("0x6c")].isSuggestion&&r[yr("0xdb")](yr("0x84")+n+yr("0x3f")),this[yr("0x9")]==i&&r[yr("0xdb")]("ck-suggestion-marker--active"),{classes:r,attributes:{"data-change-id":t}}}}),this[yr("0x2f")].conversion[yr("0xd7")]("upcast")[yr("0xa9")]((e=>{e.on(yr("0xe"),((e,t,i)=>{const n=t.viewItem[yr("0x94")](0);if(!n||!n.is(yr("0xff"),yr("0x113")))return;if(!i[yr("0x88")][yr("0xfc")](n,{attributes:[yr("0xcd"),yr("0x10e")]}))return;const r=t.modelRange[yr("0x12b")].nodeAfter;i[yr("0x7f")][yr("0x2c")](yr("0xcd"),n[yr("0xdc")](yr("0xcd")),r),i[yr("0x7f")][yr("0x2c")]("vid_end",n[yr("0xdc")](yr("0x10e")),r)}),{priority:yr("0xbe")})})),this[yr("0x2f")][yr("0x5c")][yr("0xd7")]("upcast")[yr("0xa9")]((e=>{e.on(yr("0xff"),((e,t,i)=>{if(!i[yr("0x88")][yr("0xfc")](t[yr("0x4")],{attributes:[yr("0xcd"),yr("0x10e")]}))return;if(t.modelRange[yr("0x15")])return;const n=t[yr("0x6e")][yr("0x12b")].nodeAfter;n[yr("0x126")](yr("0xcd"))||n[yr("0x126")](yr("0x109"))||(i.writer[yr("0x2c")](yr("0xcd"),t[yr("0x4")].getAttribute(yr("0xcd")),n),i[yr("0x7f")][yr("0x2c")](yr("0x10e"),t[yr("0x4")].getAttribute("vid_end"),n))}),{priority:"low"})})),this[yr("0x2f")][yr("0x5c")][yr("0xd7")](yr("0x69"))[yr("0x1b")]({view:{name:yr("0xeb"),attributes:{vid:!0}},model:{key:yr("0x109"),value:e=>e[yr("0xdc")](yr("0x109"))}}),this[yr("0x2f")].model.schema.on(yr("0x116"),((e,[,t])=>{["vid_start","vid_end",yr("0x109")].includes(t)&&(e[yr("0x4d")]=!0,e[yr("0x33")]())}),{priority:yr("0x9d")}),this[yr("0x2f")][yr("0x5c")][yr("0xd7")](yr("0x2b")).add((e=>{e.on("attribute:vid",((e,t,i)=>{if(" "!=t[yr("0xa3")][yr("0x6c")]||t.item[yr("0xba")][yr("0x3b")]>1)return;if(!i[yr("0x88")][yr("0xfc")](t.item,e[yr("0x41")]))return;const n=i.writer,r=i.mapper[yr("0xf")](t[yr("0x16")]);n.wrap(r,n[yr("0x103")](yr("0xeb")))}))})),this[yr("0x2f")].conversion[yr("0xd7")](yr("0x2b"))[yr("0xec")]({model:yr("0x74")}),this[yr("0x2f")][yr("0xae")][yr("0x82")].on(yr("0xa2"),function(e){const t=e[yr("0x8d")].get(yr("0xe2"));return(i,n,r)=>{const o=n[yr("0xbd")][yr("0x122")](":")[1],s=t[yr("0xd2")](o);if(!s)return null;const a=yr("0xa9")==s[yr("0x20")]?yr("0x122"):"merge";if(!r[yr("0x88")].test(n[yr("0x11e")],i.name))return;const c=n[yr("0x11e")][yr("0x64")](),u=n[yr("0x11e")][yr("0x12b")],d=e[yr("0x13")].schema;let x=null,l=null,h=!1,f=!1;for(const e of c){const t=e[yr("0xa3")];h=h||d.isContent(t);const i=r.mapper[yr("0xa0")](t);if(i&&i[yr("0x106")](yr("0x1c")))return;yr("0x54")==e[yr("0x20")]&&d[yr("0xe6")](t)&&!d[yr("0x87")](t)&&(t[yr("0x4f")]||u.isAtEnd?x&&x[yr("0xba")]==t||(x=t,v(e[yr("0x89")]),f=!0):l=l||e.previousPosition)}function v(e){const i=r[yr("0x7f")][yr("0xb9")](yr("0xeb"),{class:yr("0x84")+a}),o=r.mapper.toViewPosition(e);s[yr("0x6c")].isSuggestion&&r.writer.addClass(yr("0x84")+a+yr("0x3f"),i),t[yr("0x9")]==s&&r[yr("0x7f")][yr("0xbc")](yr("0x2"),i),r[yr("0x7f")][yr("0x4e")](o,i),r.mapper.bindElementToMarker(i,n.markerName)}h||f||!l||v(l)}}(this[yr("0x2f")]),{priority:"high"}),this[yr("0x2f")][yr("0xae")][yr("0x82")].on(yr("0x8a"),((e,t,i)=>{const n=i[yr("0x6")][yr("0xe7")](t[yr("0xbd")]);if(n)for(const e of n)(e[yr("0xc9")](yr("0xd8"))||e[yr("0xc9")](yr("0x7d")))&&(i[yr("0x6")][yr("0x79")](e,t[yr("0xbd")]),i[yr("0x7f")].remove(e))}),{priority:yr("0x53")}),this[yr("0x2f")][yr("0xae")].downcastDispatcher.on(yr("0xa2"),((e,t,i)=>{const n=t[yr("0xbd")][yr("0x122")](":")[1],r=this[yr("0xd2")](n);if(!r)return null;const o=yr("0xa9")==r[yr("0x20")]?yr("0x122"):yr("0x2a");if(i.consumable[yr("0xcf")](t[yr("0x11e")],e[yr("0x41")]))for(const e of t.markerRange[yr("0x9f")]()){if(!e.is(yr("0xff"),yr("0xb8")))continue;const n=i[yr("0x7f")][yr("0xb9")](yr("0xeb"),{class:yr("0x84")+o}),s=i.mapper[yr("0xf9")](this[yr("0x2f")].model[yr("0xf3")](e));r[yr("0x6c")][yr("0x85")]&&i[yr("0x7f")].addClass(yr("0x84")+o+yr("0x3f"),n),this.activeChange==r&&i[yr("0x7f")][yr("0xbc")]("ck-suggestion-marker--active",n),i[yr("0x7f")].insert(s,n),i[yr("0x6")][yr("0x83")](n,t.markerName)}}),{priority:"high"}),this[yr("0x2f")][yr("0x13")][yr("0x8c")].on(yr("0x66"),(()=>{this[yr("0x2f")].editing[yr("0x27")][yr("0x66")]((e=>{for(const t of this[yr("0x2f")][yr("0x13")][yr("0x8c")][yr("0x48")]()){const i=this[yr("0x2f")][yr("0x13")][yr("0x8c")][yr("0x47")](t),n=this.editor[yr("0xae")][yr("0x27")].document[yr("0x47")](t);if(n){const t=i[yr("0xdc")](yr("0x14"));if(e[yr("0x104")](yr("0x55"),n),e.removeClass(yr("0xca"),n),e.removeClass(yr("0x98"),n),e[yr("0x18")](yr("0x3a"),n),t){const i=this[yr("0xd2")](t);if(!i)return null;e[yr("0x2c")](yr("0x55"),t,n),e[yr("0xbc")](yr("0xd0")+i[yr("0x20")],n),this[yr("0x9")]==i&&e[yr("0xbc")]("ck-revision-history-root--active",n)}}}}))})),this[yr("0x2f")][yr("0x5c")][yr("0xd7")](yr("0x69"))[yr("0x1")]({view:yr("0xce"),model:e=>yr("0x6f")+e,converterPriority:yr("0x9d")}),this[yr("0x2f")][yr("0x5c")].for("upcast")[yr("0x1")]({view:"suggestion",model:e=>yr("0x32")+e,converterPriority:"highest"}),this[yr("0x2f")][yr("0x5c")][yr("0xd7")]("dataDowncast")[yr("0xec")]({model:yr("0x10"),view:e=>({name:yr("0x95")+e,group:yr("0x10")}),converterPriority:yr("0x9d")}),this.editor[yr("0x5c")][yr("0xd7")](yr("0x117"))[yr("0xb0")]({model:"revision-suggestion",view:e=>{const t=e[yr("0xbd")][yr("0x122")](":")[1];return yr("0xe9")!=t&&yr("0x119")!=t?null:{classes:[yr("0x12a"),yr("0x51")+t]}}}),this[yr("0x2f")].editing[yr("0x82")].on(yr("0x108"),kr(this.editor,yr("0x2a")),{priority:"high"}),this[yr("0x2f")].editing[yr("0x82")].on(yr("0x22"),kr(this[yr("0x2f")],yr("0x122")),{priority:yr("0x53")}),this.editor.editing[yr("0x82")].on(yr("0x86"),((e,t,i)=>{const n=i[yr("0x6")][yr("0xe7")](t[yr("0xbd")]);if(n)for(const e of n)e.is(yr("0xb2"))&&(i[yr("0x6")][yr("0x79")](e,t[yr("0xbd")]),i.writer.remove(e))}),{priority:yr("0x53")})}[yr("0xd2")](e){return this[yr("0x114")][yr("0x1e")](e)}_getViewForChange(e){return this._changeView&&this[yr("0xc5")][yr("0x8e")](),this[yr("0xc5")]=new ir(this.editor.locale,e),this[yr("0xc5")]}[yr("0xa1")](){this[yr("0x2f")][yr("0x13")][yr("0x8c")][yr("0xc0")][yr("0x9b")](yr("0x74")),this.on(yr("0x7e"),((e,t,i,n)=>{n&&this[yr("0x28")][yr("0xbf")](n),i&&(this._balloon[yr("0xa9")]({view:i,stackId:yr("0x6d"),position:{target:()=>{const e=this[yr("0x2f")].editing,t=this._getChangeFromId(i[yr("0x29")]);let n;if(t.data.isOnRoot){const i=e[yr("0x27")][yr("0xaf")](t[yr("0x97")]);n=Array[yr("0x26")](i[yr("0x45")]())}else{const t=this.editor.model[yr("0xd4")][yr("0x1e")](yr("0x12d")+i[yr("0x29")]);n=Array[yr("0x26")](e[yr("0x6")][yr("0xe7")](t[yr("0x41")]))[yr("0x44")]((t=>e[yr("0x27")].domConverter[yr("0xc6")](t)))[yr("0x44")]((e=>Array[yr("0x26")](e[yr("0x45")]())))[yr("0x38")]()}return this[yr("0xad")]&&n.find((e=>e[yr("0x50")]-3<=this[yr("0xad")].y&&e[yr("0x7b")]+3>=this[yr("0xad")].y&&e.left-3<=this._activeViewTarget.x&&e[yr("0xf1")]+3>=this[yr("0xad")].x))||n[0]}}}),this[yr("0x28")][yr("0x120")]("revisionHistoryLabel"))})),this.on(yr("0x24"),((e,t,i,n)=>{this[yr("0xd")]=i?this._getViewForChange(i):null,this.editor[yr("0x13")].change((()=>{const e=this[yr("0x2f")].editing;n&&(n[yr("0x6c")].isOnRoot?e[yr("0x27")][yr("0x66")]((t=>{t.removeClass(yr("0x3a"),e.view[yr("0x8c")][yr("0x47")](n.rootName))})):e.reconvertMarker("revision:"+n.id)),i&&(i[yr("0x6c")][yr("0x77")]?e[yr("0x27")][yr("0x66")]((t=>{t[yr("0xbc")](yr("0x3a"),e.view[yr("0x8c")][yr("0x47")](i.rootName))})):e[yr("0x112")](yr("0x12d")+i.id))}))})),this[yr("0x123")](this[yr("0x2f")].editing.view[yr("0x8c")],"mouseover",((e,t)=>{if(this[yr("0x9")])return;const i=this[yr("0x3d")](t[yr("0x125")]),n=this[yr("0x114")][yr("0x1e")](i);n?(this[yr("0xad")]={x:t[yr("0x21")].x,y:t[yr("0x21")].y},this.activeView=this[yr("0x76")](n)):(this[yr("0xad")]=null,this[yr("0xd")]=null)})),this[yr("0x123")](this[yr("0x2f")][yr("0xae")][yr("0x27")][yr("0x8c")],yr("0xe3"),((e,t)=>{const i=this._findChangeIdFromDomTarget(t[yr("0x125")]),n=this[yr("0x114")][yr("0x1e")](i);n?(this[yr("0xad")]={x:t[yr("0x21")].x,y:t[yr("0x21")].y},n===this[yr("0x9")]?this[yr("0x28")][yr("0xf4")]():this[yr("0x9")]=n):(this._activeViewTarget=null,this[yr("0x9")]=null)}))}[yr("0x3d")](e){do{const t=e[yr("0xdc")](yr("0x55"));if(t)return t;e=e[yr("0xba")]}while(e);return null}[yr("0x10a")](){this[yr("0x2f")].model.change((e=>{for(const t of this[yr("0x2f")].model[yr("0xd4")])e.removeMarker(t)}))}}function kr(e,t){return(i,n,r)=>{if(!r[yr("0x88")][yr("0xcf")](n[yr("0x11e")],i[yr("0x41")]))return;const o=n.markerRange[yr("0x64")](),s=n.markerRange[yr("0x12b")],a=e[yr("0x13")][yr("0x5e")];let c=null,u=null,d=!1,x=!1;for(const e of o){const t=e[yr("0xa3")];d=d||a.isContent(t);const i=r.mapper[yr("0xa0")](t);if(i&&i[yr("0x106")](yr("0x1c")))return;yr("0x54")==e[yr("0x20")]&&a[yr("0xe6")](t)&&!a.isLimit(t)&&(t[yr("0x4f")]||s.isAtEnd?c&&c[yr("0xba")]==t||(c=t,l(e[yr("0x89")]),x=!0):u=u||e[yr("0x89")])}function l(e){const i=r.mapper[yr("0xf9")](e),o=r[yr("0x7f")][yr("0xb9")](yr("0xeb"),{class:yr("0x51")+t});r.writer.insert(i,o),r.mapper[yr("0x83")](o,n.markerName)}d||x||!u||l(u)}}class _r extends e.Command{constructor(e){super(e);const t=e[yr("0x8d")][yr("0x1e")](br);this[yr("0xd6")]=!1,this[yr("0x123")](t,"change:isReady",(()=>this[yr("0x23")]())),this[yr("0x123")](t,yr("0xd1"),(()=>this[yr("0x23")]()))}[yr("0xe0")](){const e=this[yr("0x2f")],t=e.plugins.get(br),i=t[yr("0x10f")]?t[yr("0x10d")][yr("0x43")]:null;e[yr("0xbb")][yr("0x1e")](yr("0xda"))[yr("0xd5")](i)}[yr("0x23")](){const{isReady:e,isEnabled:t}=this[yr("0x2f")].plugins[yr("0x1e")](br);this.isEnabled=e&&t}}class wr extends e.Command{constructor(e,{direction:t}){super(e);const i=e[yr("0x8d")].get(br);this[yr("0xd6")]=!1,this[yr("0xb4")]="forward"===t?1:-1,this[yr("0x123")](i,yr("0x4c"),(()=>this.refresh())),this[yr("0x123")](i,"change:isEnabled",(()=>this[yr("0x23")]())),this[yr("0x123")](i,yr("0x24"),(()=>this[yr("0x23")]()))}execute(){const e=this[yr("0x2f")],i=e[yr("0x8d")][yr("0x1e")](br),{isNavigationMode:n,currentChangeNumber:o}=i;let s;if(i.activeChange=n?i.diff.changes.get(o+this._step):i[yr("0x10d")].changes[yr("0xa6")],i[yr("0x9")][yr("0x6c")][yr("0x77")])s=e[yr("0xae")][yr("0x27")][yr("0xaf")](i[yr("0x9")][yr("0x97")]);else{const t=e[yr("0x13")][yr("0xd4")][yr("0x1e")](yr("0x12d")+i[yr("0x9")].id);s=(0,r.getMarkerDomElement)(e[yr("0xae")],t)}(0,t.scrollViewportToShowTarget)({target:s,viewportOffset:40})}[yr("0x23")](){const{isNavigationMode:e,currentChangeNumber:t,numberOfChanges:i,isReady:n,isEnabled:r}=this.editor.plugins[yr("0x1e")](br);this[yr("0x11")]=!!(r&&n&&i)&&(!e||(1===this._step?t<i-1:t>0))}}var Sr=i(616),Or={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fn()(Sr.Z,Or);Sr.Z.locals;const Rr=["ck-revision-history-ui","bind","isForwardNavigationEnabled","isBackwardNavigationEnabled","isReady","numberOfChanges","Total","ck-hidden","currentChangeNumber","ck-revision-history-ui__changes-navigation__navigation","bindTemplate","ck-revision-history-ui__changes-navigation__wrapper","forward","No changes","Show previous change","set","div","fire","EDIT_X_OF_Y_REVISIONS","span","ck-revision-history-ui__changes-navigation__label","_statusText","isNavigationMode","backward","execute","X_OF_Y_CHANGES","setTemplate","_isStatusLabelVisible"];var Tr,Ir;Tr=Rr,Ir=187,function(e){for(;--e;)Tr.push(Tr.shift())}(++Ir);const Nr=function(e,t){return Rr[e-=0]};class Vr extends Cn.View{constructor(e){super(e);const t=this[Nr("0x13")],i=new Cn.ButtonView(e),n=new Cn.ButtonView(e);this[Nr("0x18")](Nr("0x3"),!1),this.set(Nr("0xd"),!1),this[Nr("0x18")](Nr("0x11"),0),this[Nr("0x18")](Nr("0xe"),0),this.set(Nr("0xb"),!1),this[Nr("0x18")](Nr("0xc"),!1),this[Nr("0xa")](Nr("0x8")).to(this,"isReady",this,"numberOfChanges",((e,t)=>e&&t>0)),this.bind(Nr("0x2")).to(this,Nr("0xd"),this,"currentChangeNumber",this,Nr("0xe"),this,Nr("0x3"),((t,i,n,r)=>{if(!t)return en(e,"Loading...");if(!n)return en(e,Nr("0x16"));const o=en(e,"NUMBER_OF_CHANGES",n);return r?en(e,Nr("0x6"),[i+1,n]):o})),i[Nr("0x18")]({label:en(e,Nr("0x17")),tooltip:!0,icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M16.435 14.494a.75.75 0 0 0 1.197-.899l-.067-.089-6.992-8a.75.75 0 0 0-1.05-.078l-.079.078-7.008 8a.75.75 0 0 0 1.049 1.066l.08-.078 6.442-7.354 6.428 7.354z"/></svg>\n'}),n[Nr("0x18")]({label:en(e,"Show next change"),tooltip:!0,icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M16.435 5.506a.75.75 0 0 1 1.197.899l-.067.089-6.992 8a.75.75 0 0 1-1.05.078l-.079-.078-7.008-8a.75.75 0 0 1 1.049-1.066l.08.078 6.442 7.354 6.428-7.354z"/></svg>\n'}),i[Nr("0xa")]("isEnabled").to(this,"isBackwardNavigationEnabled"),n[Nr("0xa")]("isEnabled").to(this,Nr("0xb")),i.on(Nr("0x5"),(()=>this[Nr("0x1a")](Nr("0x5"),Nr("0x4")))),n.on("execute",(()=>this[Nr("0x1a")]("execute",Nr("0x15")))),this[Nr("0x7")]({tag:Nr("0x19"),attributes:{class:["ck",Nr("0x9"),"ck-revision-history-ui__changes-navigation"]},children:[{tag:Nr("0x0"),attributes:{class:[Nr("0x14")]},children:[{tag:Nr("0x0"),attributes:{class:[Nr("0x1"),t.if("_isStatusLabelVisible",Nr("0x10"),(e=>!e))]},children:[{text:t.to(Nr("0x3"),(t=>t?en(e,Nr("0x1b"))+": ":en(e,Nr("0xf"))+": "))}]},{text:t.to(Nr("0x2"))}]},new Cn.ToolbarSeparatorView,{tag:Nr("0x19"),attributes:{class:[Nr("0x12")]},children:[i,n]}]})}}var Er=i(271),Mr={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fn()(Er.Z,Mr);Er.Z.locals;const Ar=["change","editing","pluginName","editor","document","hide","show","roots","RevisionViewerLoadingOverlay","removeClass","view"];var Dr,Cr;Dr=Ar,Cr=454,function(e){for(;--e;)Dr.push(Dr.shift())}(++Cr);const jr=function(e,t){return Ar[e-=0]},Fr="ck-editor__editable__loading-overlay";class Lr extends e.Plugin{static get[jr("0xa")](){return jr("0x5")}[jr("0x3")](){const e=this[jr("0x0")].editing[jr("0x7")];e[jr("0x8")]((t=>{for(const i of e[jr("0x1")][jr("0x4")])t.addClass(Fr,i)}))}[jr("0x2")](){const e=this.editor[jr("0x9")][jr("0x7")];e[jr("0x8")]((t=>{for(const i of e[jr("0x1")][jr("0x4")])t[jr("0x6")](Fr,i)}))}}const Pr=["revisionHistory","isBackwardNavigationEnabled","showPreviousChange","isEnabled","RevisionViewerUI","isReady","changesNavigation","execute","show","exitToEditing","commands","Restore this revision","set","get","componentFactory","plugins","isForwardNavigationEnabled","Back to editing","currentChangeNumber","showNextChange","init","listenTo","bind","forward","add","restoreRevision","config"];var zr,Zr;zr=Pr,Zr=111,function(e){for(;--e;)zr.push(zr.shift())}(++Zr);const Ur=function(e,t){return Pr[e-=0]};class Hr extends e.Plugin{static get pluginName(){return Ur("0x1")}static get requires(){return[br,Lr]}[Ur("0x11")](){const e=this.editor,t=e[Ur("0xc")][Ur("0xa")](br),i=e[Ur("0xc")][Ur("0xa")](Lr);e.ui[Ur("0xb")][Ur("0x15")](Ur("0x6"),(t=>{const i=new Cn.ButtonView(t);return i[Ur("0x9")]({label:en(t,Ur("0xe")),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m5.042 9.367 2.189 1.837a.75.75 0 0 1-.965 1.149l-3.788-3.18a.747.747 0 0 1-.21-.284.75.75 0 0 1 .17-.945L6.23 4.762a.75.75 0 1 1 .964 1.15L4.863 7.866h8.917A.75.75 0 0 1 14 7.9a4 4 0 1 1-1.477 7.718l.344-1.489a2.5 2.5 0 1 0 1.094-4.73l.008-.032H5.042z"/></svg>',withText:!0,tooltip:!0,class:"ck-revision-history-ui__back-to-editing"}),this[Ur("0x12")](i,Ur("0x4"),(()=>{e[Ur("0x17")][Ur("0xa")](Ur("0x18")).closeRevisionViewerCallback()})),i})),e.ui.componentFactory[Ur("0x15")](Ur("0x16"),(t=>{const i=new Cn.ButtonView(t);return i[Ur("0x9")]({label:en(t,Ur("0x8")),withText:!0,tooltip:!0}),i[Ur("0x13")](Ur("0x0")).to(e[Ur("0x7")][Ur("0xa")]("restoreRevision")),this[Ur("0x12")](i,"execute",(()=>e[Ur("0x4")](Ur("0x16")))),i})),e.ui[Ur("0xb")].add(Ur("0x3"),(i=>{const n=new Vr(i),r=e[Ur("0x7")][Ur("0xa")](Ur("0x1a")),o=e[Ur("0x7")][Ur("0xa")](Ur("0x10"));return n[Ur("0x13")](Ur("0x19")).to(r,"isEnabled"),n[Ur("0x13")](Ur("0xd")).to(o,"isEnabled"),n.bind(Ur("0x2"),Ur("0xf"),"numberOfChanges","isNavigationMode").to(t),this[Ur("0x12")](n,Ur("0x4"),((t,i)=>{e[Ur("0x4")](Ur("0x14")===i?Ur("0x10"):Ur("0x1a"))})),n})),i[Ur("0x5")](),t.on("change:isReady",((e,t,n)=>{n?i.hide():i[Ur("0x5")]()}))}}var qr=i(903),Br={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fn()(qr.Z,Br);qr.Z.locals;var Wr,Jr,Gr=["Revision name","ck-revision-history-sidebar__revision-name","extendTemplate"];Wr=Gr,Jr=121,function(e){for(;--e;)Wr.push(Wr.shift())}(++Jr);var Yr=function(e,t){return Gr[e-=0]};class $r extends Cn.LabeledFieldView{constructor(e,t){super(e,t),this.set({label:en(e,Yr("0x2"))}),this[Yr("0x1")]({tag:"span",attributes:{class:[Yr("0x0")]}})}}var Kr=i(517),Xr={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fn()(Kr.Z,Xr);Kr.Z.locals;const Qr=["setTemplate","set","ck-revision-history-sidebar__revision-author_creator","span","name","ck-revision-history-sidebar__revision-author","Revision author","0 0 11 10","ck-revision-history-sidebar__revision-author__name"];var eo,to;eo=Qr,to=483,function(e){for(;--e;)eo.push(eo.shift())}(++to);const io=function(e,t){return Qr[e-=0]};class no extends Cn.View{constructor(e,t,i){super(e);const n=new Cn.IconView;n[io("0x4")]({content:'<svg viewBox="0 0 11 10" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M5.5 5C8.538 5 11 7.015 11 9.5c0 .17-.011.336-.034.5H.034A3.732 3.732 0 0 1 0 9.5C0 7.015 2.462 5 5.5 5zm0-5a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5z" /></svg>\n',viewBox:io("0x1")});const r=["ck",io("0x8")];i&&r.push(io("0x5"));const o=[{tag:io("0x6"),attributes:{class:["ck",io("0x2")],title:en(e,i?"Revision creator":io("0x0"))},children:[n,t[io("0x7")]]}];this[io("0x3")]({tag:"li",attributes:{class:r},children:o})}}var ro,oo,so=["toLocaleDateString","numeric","toLocaleTimeString"];ro=so,oo=317,function(e){for(;--e;)ro.push(ro.shift())}(++oo);var ao=function(e,t){return so[e-=0]};var co=i(966),uo={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fn()(co.Z,uo);co.Z.locals;const xo=["class","isOpen","set","action","find","execute","stopPropagation","name","function","buttonView","extendTemplate","map","ck-revision-history-sidebar__revision__actions","threeVerticalDots","items","first","isVisible","change:isActionsDropdownOpen","ck-on","children","Show more items","Compare against selected","locale","isActionsDropdownOpen","isReady","add","_action","bind","listView","source","bindTemplate","model","Name this revision","isEnabled"];var lo,ho;lo=xo,ho=266,function(e){for(;--e;)lo.push(lo.shift())}(++ho);const fo=function(e,t){return xo[e-=0]};var vo=i(732),mo={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fn()(vo.Z,mo);vo.Z.locals;const go=["creator","isEnabled","extendTemplate","select","map","ck-revision-history-sidebar__revision-wrapper","ck-reset","name","createdAt","closest","bind","filter","element","uiLanguage","set","bindTemplate","220","unshift","isHighlighted","value","_revision","placeholder",".ck-thread__remove-confirm","render","srcElement","ck-revision-history-sidebar__revision__controls-wrapper","fieldView","isConfirm","highlight","revisionActionsView","length","ck-revision-history-sidebar__revision_selected","ck-revision-history-sidebar__revision-authors","_createdAtFormatted","isSelected","setTemplate","ck-revision-history-sidebar__revision","revisionNameView","change","authors","fire","isActionsDropdownOpen","deselect","ck-revision-history-sidebar__actions_dropdown_open","span","ck-disabled","ck-revision-history-sidebar__revision__date","from","ck-revision-history-sidebar__revision-wrapper_confirmation_visible"];var yo,po;yo=go,po=390,function(e){for(;--e;)yo.push(yo.shift())}(++po);const bo=function(e,t){return go[e-=0]};class ko extends((0,r.ConfirmMixin)(Cn.View)){constructor(i,n,r){super(i);const o=this[bo("0x11")],s=function(e,t){const i=Array[bo("0x0")](t[bo("0x29")])[bo("0xd")]((e=>e!=t[bo("0x2")]));return t[bo("0x2")]&&i[bo("0x13")](t[bo("0x2")]),i[bo("0x6")]((i=>new no(e,i,i==t[bo("0x2")])))}(i,n);this.id=n.id,this[bo("0x16")]=n,this[bo("0xc")](bo("0x9"),"createdAt").to(n),this[bo("0xc")](bo("0x23")).to(this,bo("0xa"),(e=>{return e?(t=i[bo("0xf")],(n=e)[ao("0x1")](t,{month:"long",day:"numeric"})+", "+n[ao("0x0")](t,{hour:ao("0x2"),minute:ao("0x2")})):void 0;var t,n})),this.set(bo("0x24"),!1),this[bo("0x10")](bo("0x14"),!1),this[bo("0x10")]("isActionsDropdownOpen",!1),this[bo("0x10")]("isReady",!1),this.set(bo("0x3"),!1),this.revisionNameView=new $r(i,Cn.createLabeledInputText),this[bo("0x27")][bo("0x1c")][bo("0x4")]({attributes:{maxlength:bo("0x12")}}),this[bo("0x27")].fieldView[bo("0xc")](bo("0x15"),bo("0x17")).to(this,"name","_createdAtFormatted"),this[bo("0x27")][bo("0xc")](bo("0x3")).to(this,bo("0x24"),this,"isEnabled",((e,t)=>e&&t)),this.revisionActionsView=r&&r[bo("0x20")]?function(i,n){const r=i[fo("0x2")],o=i[fo("0x1c")],s=(0,Cn.createDropdown)(o);s.panelPosition="sw";const a=function(e,i){const n=function(e,t){const i=e.locale,n={"Compare against selected":en(i,fo("0x1b")),"Name this revision":en(i,fo("0x4")),"Restore this revision":en(i,"Restore this revision")};return t[fo("0x11")]((e=>{const t=n[e[fo("0xd")]];return t&&t!==e[fo("0xd")]&&(e.name=t),e}))}(e,i),r=new t.Collection;for(const t of n){const i={type:"button",model:new Cn.Model({label:t.name,class:t[fo("0x6")],withText:!0,_action:t[fo("0x9")]})};i[fo("0x3")].bind("isEnabled").to(e,fo("0x1d"),(i=>fo("0xe")!=typeof t[fo("0x5")]||!i||t[fo("0x5")](e))),r[fo("0x1f")](i)}return r}(i,n);return i[fo("0x21")](fo("0x1d")).to(s,fo("0x7")),s[fo("0xf")][fo("0x8")]({label:en(o,fo("0x1a")),tooltip:!0,tooltipPosition:"sw",icon:e.icons[fo("0x13")]}),s[fo("0x10")]({attributes:{class:[fo("0x12"),r.if(fo("0x1d"),fo("0x18"))]},on:{click:r.to((e=>e[fo("0xc")]()))}}),s.on(fo("0xb"),(e=>{i[fo("0x1e")]&&fo("0xe")==typeof e[fo("0x1")][fo("0x20")]&&e[fo("0x1")]._action(i)})),(0,Cn.addListToDropdown)(s,a),s.listenTo(i,fo("0x17"),((e,t,r)=>{if(r)for(const e of s[fo("0x0")][fo("0x14")]){const t=e[fo("0x19")][fo("0x15")],r=n[fo("0xa")]((e=>e.action===t._action))[fo("0x16")];e[fo("0x16")]=void 0===r||r(i)}})),s}(this,r):"",this[bo("0x1f")]&&this[bo("0x1f")][bo("0xc")](bo("0x3")).to(this),this[bo("0x25")]({tag:"div",attributes:{class:["ck",bo("0x8"),bo("0x7"),o.if(bo("0x1d"),bo("0x1"))]},children:[{tag:"div",attributes:{class:["ck",bo("0x8"),bo("0x26"),o.if(bo("0x3"),bo("0x2f"),(e=>!e)),o.if(bo("0x24"),bo("0x21")),o.if(bo("0x14"),"ck-revision-history-sidebar__revision_highlighted"),o.if(bo("0x2b"),bo("0x2d"))]},children:[this[bo("0x27")],{tag:bo("0x2e"),attributes:{class:["ck",bo("0x30")]},children:[{text:o.to(bo("0x23"))}]},{tag:"div",attributes:{class:["ck",bo("0x1b")]},children:[{tag:"ul",attributes:{class:["ck",bo("0x22")]},children:s}]},this[bo("0x1f")]],on:{click:o.to((e=>{e[bo("0x1a")][bo("0xb")](bo("0x18"))||this.isReady&&this[bo("0x3")]&&this[bo("0x2a")](bo("0x5"),{id:this.id})}))}}]})}[bo("0x19")](){super[bo("0x19")]();const e=this[bo("0x27")][bo("0x1c")][bo("0xe")];this.listenTo(e,bo("0x28"),(()=>{this[bo("0x2a")]("setName",{id:this.id,name:e[bo("0x15")]})}))}[bo("0x5")](){this[bo("0x24")]=!0}[bo("0x2c")](){this.isSelected=!1}[bo("0x1e")](){this[bo("0x14")]=!0}unhighlight(){this.isHighlighted=!1}}var _o=i(810);const wo=["hasSame","toRelativeCalendar","month","fromJSDate","day","minus","toJSDate","week","local","weekdayLong","year","setLocale","startOf"];var So,Oo;So=wo,Oo=218,function(e){for(;--e;)So.push(So.shift())}(++Oo);const Ro=function(e,t){return wo[e-=0]};function To(e,t){const i=_o.ou[Ro("0x6")](e)[Ro("0x1")](t),n=_o.ou[Ro("0xb")](),r=n[Ro("0x8")]({days:1})[Ro("0x2")](Ro("0x7"));let o,s;return i.hasSame(n,Ro("0x7"))?(o=i[Ro("0x2")](Ro("0x7")).toJSDate(),s=i[Ro("0x4")]()):i[Ro("0x3")](r,Ro("0x7"))?(o=r[Ro("0x9")](),s=i[Ro("0x4")]()):i[Ro("0x3")](n,Ro("0xa"))?(o=i[Ro("0x2")](Ro("0xa"))[Ro("0x9")](),s=i[Ro("0xc")]||""):i[Ro("0x3")](n,Ro("0x0"))?(o=i.startOf(Ro("0x5")).toJSDate(),s=i.monthLong||""):(o=i[Ro("0x2")](Ro("0x0")).toJSDate(),s=String(i[Ro("0x0")])),{startDate:o,localizedPeriodName:s}}var Io=i(922),No={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fn()(Io.Z,No);Io.Z.locals;const Vo=["localizedPeriodName","setTemplate","select","ck-revision-history-sidebar__time-period","locale","revisionViews","ck-revision-history-sidebar__time-period__label","add","startDate","_revisionActions","createCollection","delegate","div","uiLanguage","addRevision","removeRevision","find"];var Eo,Mo;Eo=Vo,Mo=385,function(e){for(;--e;)Eo.push(Eo.shift())}(++Mo);const Ao=function(e,t){return Vo[e-=0]};class Do extends Cn.View{constructor(e,t,i){super(e);const n=To(t,this[Ao("0xa")][Ao("0x2")])[Ao("0x6")];this[Ao("0xe")]=t,this[Ao("0xb")]=this[Ao("0x10")](),this[Ao("0xf")]=i,this.revisionViews[Ao("0x0")](Ao("0x8")).to(this),this.revisionViews[Ao("0x0")]("setName").to(this),this[Ao("0x7")]({tag:Ao("0x1"),attributes:{class:["ck",Ao("0x9")]},children:[{tag:"span",attributes:{class:["ck",Ao("0xc")]},children:[{text:n}]},{tag:"div",attributes:{class:["ck","ck-revision-history-sidebar__time-period__revisions"]},children:this.revisionViews}]})}[Ao("0x3")](e){const t=new ko(this[Ao("0xa")],e,this[Ao("0xf")]);this[Ao("0xb")][Ao("0xd")](t)}[Ao("0x4")](e){const t=this[Ao("0xb")][Ao("0x5")]((t=>t.id===e.id));this[Ao("0xb")].remove(t)}}var Co=i(589),jo={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fn()(Co.Z,jo);Co.Z.locals;const Fo=["setTemplate","history","ck-revision-history-sidebar__header__label","ck-revision-history-sidebar__header","content","Revision history","div","span"];var Lo,Po;Lo=Fo,Po=109,function(e){for(;--e;)Lo.push(Lo.shift())}(++Po);const zo=function(e,t){return Fo[e-=0]};class Zo extends Cn.View{constructor(t){super(t);const i=new Cn.IconView;i[zo("0x7")]=e.icons[zo("0x4")],this[zo("0x3")]({tag:zo("0x1"),attributes:{class:["ck","ck-reset_all",zo("0x6")]},children:[i,{tag:zo("0x2"),attributes:{class:["ck",zo("0x5")]},children:[en(t,zo("0x0"))]}]})}}var Uo=i(377),Ho={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fn()(Uo.Z,Ho);Uo.Z.locals;const qo=["_addRevision","div","getTime","_getTimePeriodViewByStartDate","some","add","deselect","fire","createCollection","ck-revision-history-sidebar","_removeRevision","setTemplate","selectRevision","ck-revision-history-sidebar__timeline","get","_revisions","bindTemplate","_revisionActions","find","flat","delegate","map","isEnabled","render","timePeriodViews","revisionSetName","highlightRevisions","createdAt","highlight","ck-rounded-corners","ck-reset","startDate","select","unhighlight","uiLanguage","locale","revisionViews","addRevision","setName"];var Bo,Wo;Bo=qo,Wo=254,function(e){for(;--e;)Bo.push(Bo.shift())}(++Wo);const Jo=function(e,t){return qo[e-=0]};class Go extends Cn.View{constructor(e,t,i){super(e);const n=this[Jo("0x23")];this[Jo("0x4")]=this[Jo("0x1b")](),this[Jo("0x4")][Jo("0x0")]("select").to(this),this.timePeriodViews.delegate(Jo("0x12")).to(this),this._revisions=t,this[Jo("0x24")]=i,this.on(Jo("0xc"),((e,t)=>{this[Jo("0x1a")]("revisionSelected",t)})),this.on(Jo("0x12"),((e,t)=>{this[Jo("0x1a")](Jo("0x5"),t)})),this.set(Jo("0x2"),!1),this[Jo("0x1e")]({tag:Jo("0x14"),attributes:{class:["ck",Jo("0xa"),Jo("0x9"),Jo("0x1c")]},children:[new Zo(e),{tag:Jo("0x14"),attributes:{class:["ck",Jo("0x20"),n.if("isEnabled","ck-disabled",(e=>!e))]},children:this[Jo("0x4")]}]})}[Jo("0x3")](){super.render();for(const e of this._revisions)this._addRevision(e);this[Jo("0x22")].on(Jo("0x18"),((e,t)=>{this[Jo("0x13")](t)})),this[Jo("0x22")].on("remove",((e,t)=>{this._removeRevision(t)}))}get[Jo("0x10")](){return this[Jo("0x4")][Jo("0x1")]((e=>e.revisionViews[Jo("0x1")]((e=>e))))[Jo("0x26")]()}[Jo("0x1f")](e){for(const t of this[Jo("0x10")])e&&e.id===t.id?t.select():t[Jo("0x19")]()}[Jo("0x6")](e){for(const t of this.revisionViews)e[Jo("0x17")]((({id:e})=>e===t.id))?t[Jo("0x8")]():t[Jo("0xd")]()}[Jo("0x13")](e){const t=To(e[Jo("0x7")],this[Jo("0xf")].uiLanguage)[Jo("0xb")];let i=this[Jo("0x4")][Jo("0x21")](0);i&&i[Jo("0xb")].getTime()===t[Jo("0x15")]()||(i=new Do(this[Jo("0xf")],t,this._revisionActions),this[Jo("0x4")][Jo("0x18")](i)),i[Jo("0x11")](e)}[Jo("0x1d")](e){const t=To(e[Jo("0x7")],this[Jo("0xf")][Jo("0xe")]).startDate;this[Jo("0x16")](t).removeRevision(e)}[Jo("0x16")](e){return this[Jo("0x4")][Jo("0x25")]((t=>t[Jo("0xb")][Jo("0x15")]()===e[Jo("0x15")]()))}}const Yo=["name","change:diff","appendChild","getRevisionsInDiff","diff","selectRevision","_createRevisionActions","timePeriodViews","string","Compare against selected","getLaterVisibleRevision","init","revisionHistory.revisionActions","revisionHistory.viewerSidebarContainer","defaultRevisionActions","map","repository","_sidebarView","highlightRevisions","assign","ready","config","_handleRevisionSetName","availableRevisionActions","revisionSelected","action","locale","_revisionsRepository","isEnabled","requires","length","editor","getEarlierVisibleRevision","newRevisionId","element","compare","compareAgainstSelected","_handleEditorDataReady","_handleDiffChange","Restore this revision","_handleRevisionSelected","RevisionsSidebar","add","revisionHistory","destroy","isReady","getRevision","bind","_revisions","select","listenTo","nameRevision","restoreRevisionCallback","isVisible","focus","Name this revision","getIndex","restoreRevision","get","_revisionViewer","data"];var $o,Ko;$o=Yo,Ko=461,function(e){for(;--e;)$o.push($o.shift())}(++Ko);const Xo=function(e,t){return Yo[e-=0]};class Qo extends e.Plugin{static get pluginName(){return Xo("0x7")}static get[Xo("0x38")](){return[br]}constructor(e){super(e),this[Xo("0x19")]=e.plugins[Xo("0x18")](br),this[Xo("0x36")]=this[Xo("0x19")].repository,this[Xo("0x2c")]=null}[Xo("0x26")](){const e=this[Xo("0x36")][Xo("0xe")],t=this._createRevisionActions(),i=this[Xo("0x3a")][Xo("0x30")][Xo("0x18")](Xo("0x28"));this[Xo("0x2c")]=new Go(this[Xo("0x3a")][Xo("0x35")],e,t),this[Xo("0x2c")].on(Xo("0x33"),this[Xo("0x6")][Xo("0xd")](this)),this[Xo("0x2c")].on("revisionSetName",this[Xo("0x31")][Xo("0xd")](this)),this[Xo("0x2c")][Xo("0xd")](Xo("0x37")).to(this[Xo("0x19")]),this._sidebarView[Xo("0x22")].on(Xo("0x8"),((e,t)=>{t.revisionViews.on(Xo("0x8"),((e,t)=>{t[Xo("0xd")]("isEnabled",Xo("0xb")).to(this._revisionViewer)}))})),this[Xo("0x2c")].render(),this[Xo("0x10")](this.editor[Xo("0x1a")],Xo("0x2f"),this[Xo("0x3")][Xo("0xd")](this)),this[Xo("0x10")](this[Xo("0x19")],Xo("0x1c"),this._handleDiffChange[Xo("0xd")](this)),i[Xo("0x1d")](this[Xo("0x2c")].element)}[Xo("0xa")](){this[Xo("0x2c")][Xo("0x0")].remove(),this[Xo("0x2c")].destroy()}[Xo("0x3")](){const e=this[Xo("0x36")][Xo("0xc")](0);if(e){const t=this[Xo("0x36")].getEarlierVisibleRevision(e.id);this._revisionViewer[Xo("0x1")](e,t)}}[Xo("0x6")](e,t){const i=this[Xo("0x36")].getRevision(t.id),n=this[Xo("0x36")][Xo("0x3b")](i.id);this[Xo("0x19")][Xo("0x1")](i,n)}[Xo("0x31")](e,t){this[Xo("0x36")].getRevision(t.id).setName(t[Xo("0x1b")])}[Xo("0x4")](e,t,i){const n=this[Xo("0x36")][Xo("0x1e")](i);n[Xo("0x39")]>2?(this[Xo("0x2c")][Xo("0x2d")](n),this[Xo("0x2c")][Xo("0x20")](null)):(this[Xo("0x2c")][Xo("0x2d")]([]),this[Xo("0x2c")][Xo("0x20")](n[0]))}[Xo("0x21")](){const e=this[Xo("0x3a")],t=Qo[Xo("0x32")],i=e.config.get(Xo("0x27"))||Qo[Xo("0x29")];if(i.length)return i[Xo("0x2a")]((i=>{const n=Xo("0x23")==typeof i?Object[Xo("0x2e")]({},t[i]):i;return n[Xo("0x34")]=n[Xo("0x34")].bind(this,e),n[Xo("0x13")]&&(n[Xo("0x13")]=n[Xo("0x13")][Xo("0xd")](this,e)),n}))}}Qo[Xo("0x32")]={compareAgainstSelected:{name:Xo("0x24"),action:({plugins:e},t)=>{const i=e.get(br),n=i[Xo("0x2b")];let r=i[Xo("0x1f")][Xo("0x3c")],o=t.id;n.getIndex(r)>n[Xo("0x16")](o)&&([r,o]=[o,r]),i.compare(r,o)},isVisible:({plugins:e},t)=>{const i=e[Xo("0x18")](br);return!(i[Xo("0x2b")][Xo("0x1e")](i[Xo("0x1f")]).length>2||t.isSelected)}},restoreRevision:{name:Xo("0x5"),action:(e,{id:t})=>{e[Xo("0x30")][Xo("0x18")](Xo("0x9"))[Xo("0x12")](t)},isVisible:({plugins:e},t)=>!!e.get(br)[Xo("0x2b")][Xo("0x25")](t.id)},nameRevision:{name:Xo("0x15"),action:({plugins:e},{id:t,revisionNameView:i})=>{const n=e.get(br),r=n[Xo("0x2b")][Xo("0x3b")](t);n.compare(t,r),i[Xo("0x14")](),i.fieldView[Xo("0xf")]()}}},Qo[Xo("0x29")]=[Xo("0x2"),Xo("0x17"),Xo("0x11")];const es=["bind","config","replace","_toolbarConfig","render","_initToolbar","isFocused","attachDomRoot","setEditableElement","limiterElement","editing","focusTracker","get","toolbar","stickyPanel","_view","_elementReplacer","componentFactory","init","view","isActive","destroy","fire","editor","detachDomRoot","editable","getRoot","fillFromConfig","name","document","viewportOffset","element"];var ts,is;ts=es,is=280,function(e){for(;--e;)ts.push(ts.shift())}(++is);const ns=function(e,t){return es[e-=0]};class rs extends Cn.EditorUI{get[ns("0x1b")](){return this[ns("0x17")]}constructor(e,i){super(e),this[ns("0x17")]=i,this._toolbarConfig=(0,Cn.normalizeToolbarConfig)(e[ns("0x9")][ns("0x14")]("toolbar")),this[ns("0x18")]=new t.ElementReplacer}get[ns("0x7")](){return this[ns("0x1b")][ns("0x7")]}[ns("0x1a")](e){const t=this[ns("0x1f")],i=this[ns("0x1b")],n=t[ns("0x12")][ns("0x1b")],r=i.editable,o=n[ns("0x5")][ns("0x2")]();r[ns("0x4")]=o.rootName,i[ns("0xc")]();const s=r[ns("0x7")];this[ns("0x10")](r[ns("0x4")],s),i[ns("0x1")].bind(ns("0xe")).to(this[ns("0x13")]),n[ns("0xf")](s),this[ns("0x18")][ns("0xa")](e,this[ns("0x7")]),this._initToolbar(),this[ns("0x1e")]("ready")}[ns("0x1d")](){super[ns("0x1d")]();const e=this.view,t=this[ns("0x1f")][ns("0x12")][ns("0x1b")];this[ns("0x18")].restore(),t[ns("0x0")](e[ns("0x1")][ns("0x4")]),e.destroy()}[ns("0xd")](){const e=this[ns("0x1b")];e.stickyPanel[ns("0x8")](ns("0x1c")).to(this[ns("0x13")],ns("0xe")),e[ns("0x16")][ns("0x11")]=e.element,e.stickyPanel.bind("viewportTopOffset").to(this,ns("0x6"),(({top:e})=>e)),e[ns("0x15")][ns("0x3")](this[ns("0xb")],this[ns("0x19")]),this.addToolbar(e.toolbar)}}var os=i(13),ss={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fn()(os.Z,ss);os.Z.locals;var as,cs,us=["toolbar","stickyPanel","editable","main","render","shouldToolbarGroupWhenFull","_editable","content","add","top"];as=us,cs=471,function(e){for(;--e;)as.push(as.shift())}(++cs);var ds=function(e,t){return us[e-=0]};class xs extends Cn.BoxedEditorUIView{get[ds("0x1")](){return this[ds("0x5")]}constructor(e,t,i={}){super(e),this[ds("0x0")]=new Cn.StickyPanelView(e),this[ds("0x9")]=new Cn.ToolbarView(e,{shouldGroupWhenFull:i[ds("0x4")]}),this[ds("0x5")]=new Cn.InlineEditableUIView(e,t)}[ds("0x3")](){super[ds("0x3")](),this[ds("0x0")][ds("0x6")][ds("0x7")](this[ds("0x9")]),this[ds("0x8")][ds("0x7")](this[ds("0x0")]),this[ds("0x2")].add(this[ds("0x1")])}}const ls=["get","config","updateSourceElement","sourceElement","fire","data","editing","initPlugins","init","createRoot","initialData","document","destroy","create","view","_ui"];var hs,fs;hs=ls,fs=423,function(e){for(;--e;)hs.push(hs.shift())}(++fs);const vs=function(e,t){return ls[e-=0]};class ms extends((0,e.DataApiMixin)((0,e.ElementApiMixin)(e.Editor))){get ui(){return this[vs("0x8")]}constructor(e,t){super(t),this[vs("0xc")]=e,this.model[vs("0x4")][vs("0x2")]();const i=new xs(this.locale,this[vs("0xf")][vs("0x7")],{shouldToolbarGroupWhenFull:!0});this[vs("0x8")]=new rs(this,i)}[vs("0x5")](){return this[vs("0xb")](),this.ui[vs("0x5")](),super[vs("0x5")]()}static async[vs("0x6")](e,t){const i=new this(e,t);return await i[vs("0x0")](),await i.ui.init(e),await i[vs("0xe")][vs("0x1")](i[vs("0xa")][vs("0x9")](vs("0x3"))||""),i[vs("0xd")]("ready"),i}}const gs=["_enhanceShowRevisionViewerCallback","_restoreRevision","Users","revisionHistory.viewerContainer","setAttribute","createdAt","long","addRevisionData","Restored","uiLanguage","_showRevisionViewer","creator","create","removeMarker","define","addUser","getRevisionData","_getRevisionViewerEditorConfig","toolbar","revisionHistory.viewerEditorElement","pluginName","setSelection","revisionHistory","revision-history-viewer-opened","toJSON","insert","toLocaleDateString","getRevision","display","PaginationLookup","revisionHistory.editorContainer","markers","none","users","keys","style","result","refreshPositioning","RevisionHistoryUI","RevisionViewerIntegration","refreshVisibility","end","numeric","closeRevisionViewerCallback","then","createRangeIn","remove","push","has","revisionHistory.showRevisionViewerCallback","_enhanceCloseRevisionViewerCallback","from","repository","plugins","adapter","Annotations","indexOf","rootName","selection","name","addRoot","getUser","fromVersion","exitToEditing","block","RevisionHistory","toVersion","model","enqueueChange","detachRoot","_update","disableReadOnlyMode","changesNavigation","_viewerEditor","editor","destroy","RevisionsRepository","includes","change","document","isAttached","getRevisions","set","config","saveRevision","locale","bind","enableReadOnlyMode","update","_closeRevisionViewer","RevisionViewer","getAttributeKeys","parse","revisionHistory.closeRevisionViewerCallback","getRevisionRootsAttributes","isReadOnly","_cleanUp","get","$graveyard","RevisionTracker"];var ys,ps;ys=gs,ps=150,function(e){for(;--e;)ys.push(ys.shift())}(++ps);const bs=function(e,t){return gs[e-=0]},ks=[bs("0x58"),"RestrictedEditingMode"];class _s extends e.Plugin{static get[bs("0x46")](){return bs("0x59")}constructor(e){super(e),this[bs("0x56")]=bs("0x5b")}}class ws extends e.Plugin{static get pluginName(){return bs("0xf")}static get requires(){return[In,Kn]}constructor(e){if(super(e),!this[bs("0x18")][bs("0x21")][bs("0x2f")](bs("0x48")))throw new t.CKEditorError("revision-history-missing-configuration",this);this[bs("0x17")]=null,this.editor[bs("0x21")].define(bs("0x63"),(e=>this[bs("0x3c")](e))),this[bs("0x18")].config[bs("0x40")](bs("0x2b"),(e=>this[bs("0x27")](e))),this[bs("0x18")][bs("0x21")].define("revisionHistory.restoreRevisionCallback",(e=>this._restoreRevision(e))),this._enhanceShowRevisionViewerCallback(),this[bs("0x0")]()}set[bs("0x4")](e){this.editor[bs("0x3")][bs("0x2f")](bs("0x31"))[bs("0x4")]=e}get adapter(){return this[bs("0x18")][bs("0x3")][bs("0x2f")]("RevisionTracker")[bs("0x4")]}[bs("0x39")](e){return this.editor[bs("0x3")][bs("0x2f")]("RevisionTracker")[bs("0x39")](e)}[bs("0x4d")](e){return this[bs("0x18")][bs("0x3")].get(bs("0x1a"))[bs("0x4d")](e)}getRevisions(e={toJSON:!1}){return this.editor.plugins.get("RevisionsRepository")[bs("0x1f")](e)}_getRevisionViewerEditorConfig(){const i=this.editor,n=(0,r.sanitizeEditorConfig)(i,ks),o=i.plugins.get("RevisionTracker"),s=i[bs("0x3")][bs("0x2f")](bs("0x34"))[bs("0x53")];return n[bs("0x44")]=[bs("0xd"),"restoreRevision",bs("0x16")],delete n.lazyRoots,n[bs("0x3")][bs("0x61")](_s,br,Hr,class extends e.Plugin{static get requires(){return[br,bs("0x34")]}init(){const e=this[bs("0x18")][bs("0x3")][bs("0x2f")]("Users");for(const t of s)t.isAnonymous||e[bs("0xb")](t.id)||e[bs("0x41")](t);const n=o[bs("0x2")][bs("0x1f")]();let r=null;const a=this[bs("0x18")][bs("0x3")][bs("0x2f")](bs("0x28"));a[bs("0x4")]=o.adapter,a.bind("isEnabled").to(o),this[bs("0x18")].commands[bs("0x2f")]("restoreRevision")[bs("0x24")]("isEnabled").to(i,bs("0x2d"),(e=>!e));for(const e of n){const i=null===e[bs("0x3d")];if(i&&e[bs("0x10")]===e[bs("0xc")])continue;const n=e[bs("0x4a")]();a[bs("0x39")](n,((n,s,a)=>{if(i){if(r)r[bs("0x14")](n,s);else if(!s){const e=a.toJSON();e.id=(0,t.uid)(),o[bs("0x22")](e,a[bs("0x10")])[bs("0x5e")]((e=>{r=e}))}}else e[bs("0x14")](n,s)}))}}},Qo),n}[bs("0x32")](){const e=this[bs("0x18")][bs("0x21")].get("revisionHistory").showRevisionViewerCallback;this.editor[bs("0x21")][bs("0x20")](bs("0x63"),(async()=>{this[bs("0x18")][bs("0x25")]("revision-history-viewer-opened");const t=this[bs("0x18")][bs("0x3")].get(bs("0x31"));if(this[bs("0x18")][bs("0x3")][bs("0x62")]("Autosave")){const e=this[bs("0x18")].plugins[bs("0x2f")]("Autosave");await e.save()}else await t[bs("0x26")]();this[bs("0x18")][bs("0x3")][bs("0x62")]("PaginationLookup")&&this[bs("0x18")].plugins[bs("0x2f")](bs("0x4f"))._recalculatePageBreaks();const i=this[bs("0x43")]();return e(i)[bs("0x5e")]((e=>(this[bs("0x17")]=e,this[bs("0x18")][bs("0x3")][bs("0x62")](bs("0x5"))&&this[bs("0x18")][bs("0x3")][bs("0x2f")](bs("0x5"))[bs("0x5a")](),e))).catch((e=>(console.error(e),this[bs("0x18")][bs("0x15")](bs("0x49")),null)))}))}[bs("0x0")](){const e=this[bs("0x18")][bs("0x21")].get(bs("0x48")).closeRevisionViewerCallback;this[bs("0x18")][bs("0x21")][bs("0x20")](bs("0x2b"),(()=>(this[bs("0x18")].plugins[bs("0x62")]("PaginationLookup")&&this[bs("0x18")][bs("0x3")].get("PaginationLookup")._recalculatePageBreaks(),this[bs("0x17")].plugins[bs("0x2f")](bs("0x28"))[bs("0x2e")](),e(this[bs("0x17")])[bs("0x5e")]((()=>{if(this[bs("0x18")][bs("0x15")]("revision-history-viewer-opened"),this[bs("0x17")]=null,this.editor[bs("0x3")][bs("0x62")](bs("0x5"))){const e=this[bs("0x18")][bs("0x3")][bs("0x2f")](bs("0x5"));e[bs("0x5a")](),e[bs("0x57")]()}})))))}[bs("0x3c")](e){const t=this[bs("0x18")][bs("0x21")].get(bs("0x50")),i=this.editor[bs("0x21")][bs("0x2f")](bs("0x35")),n=this.editor[bs("0x21")].get(bs("0x45"));return ms[bs("0x3e")](n,e).then((e=>(i[bs("0x55")][bs("0x4e")]=bs("0xe"),t[bs("0x55")][bs("0x4e")]=bs("0x52"),e)))}[bs("0x27")](e){const t=this[bs("0x18")].config[bs("0x2f")](bs("0x50"));return this[bs("0x18")][bs("0x21")].get(bs("0x35"))[bs("0x55")][bs("0x4e")]="none",t.style[bs("0x4e")]="",e[bs("0x19")]()}async[bs("0x33")](e){const t=this.editor,i=this[bs("0x17")][bs("0x3")][bs("0x2f")](bs("0x28")),n=t.plugins[bs("0x2f")](bs("0x31")),r=i[bs("0x2")][bs("0x4d")](e);let o,s,a;try{o=await i[bs("0x42")](r),s=await i[bs("0x2c")](r)}catch(e){return void console.error(e)}t[bs("0x11")][bs("0x1c")]((e=>{for(const i of Array[bs("0x1")](t[bs("0x11")][bs("0x51")].getMarkersGroup("restrictedEditingException")))e[bs("0x3f")](i)})),i.isReady=!1,t[bs("0x11")][bs("0x12")]((e=>{e[bs("0x47")](null),e.removeSelectionAttribute(t[bs("0x11")].document[bs("0x8")][bs("0x29")]());const i=Object[bs("0x54")](o);for(const n of t[bs("0x11")][bs("0x1d")].roots)bs("0x30")!=n[bs("0x7")]&&n[bs("0x1e")]()&&!i[bs("0x1b")](n.rootName)&&e[bs("0x13")](n);for(const n of i){let i=t[bs("0x11")][bs("0x1d")].getRoot(n);i&&i.isAttached()||(i=e[bs("0xa")](n));const r=s[n],a=Object[bs("0x54")](r),c=o[n];for(const t of i[bs("0x29")]())a[bs("0x1b")](t)||e.removeAttribute(t,i);for(const t of a)e[bs("0x36")](t,s[n][t],i);e[bs("0x60")](e[bs("0x5f")](i)),e[bs("0x4b")](t.data[bs("0x2a")](c,i),i,0)}}));const c=en(t[bs("0x23")],bs("0x3a"));return a=r[bs("0x9")]?-1==r[bs("0x9")][bs("0x6")](c)?c+": "+r[bs("0x9")]:r[bs("0x9")]:c+": "+r.createdAt[bs("0x4c")](t[bs("0x23")][bs("0x3b")],{month:bs("0x38"),day:bs("0x5c")})+", "+r[bs("0x37")].toLocaleTimeString(t[bs("0x23")].uiLanguage,{hour:bs("0x5c"),minute:"numeric"}),await n[bs("0x22")]({name:a}),i.isReady=!0,t[bs("0x21")].get("revisionHistory")[bs("0x5d")]()}}})(),(window.CKEditor5=window.CKEditor5||{}).revisionHistory=n})();