@ckeditor/ckeditor5-revision-history 38.0.1 → 38.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/package.json +13 -11
- package/src/changeitem.js +1 -1
- package/src/editor/revisionviewereditor.js +1 -1
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.d.ts +1 -0
- package/src/revision.js +1 -1
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.d.ts +5 -3
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.d.ts +8 -3
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.d.ts +8 -3
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.d.ts +4 -3
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.d.ts +4 -3
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.d.ts +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.d.ts +5 -3
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- 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={164:(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},525:(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},834:(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},522:(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},957:(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},996:(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},790:(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},29:(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},37:(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},288:(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},368:(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},168:(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},542:(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),g=function(e){function t(){return e.apply(this,arguments)||this}return r(t,e),t}(l),p=function(e){function t(){return e.call(this,"Zone is an abstract class")||this}return r(t,e),t}(l),y="numeric",b="short",k="long",_={year:y,month:y,day:y},w={year:y,month:b,day:y},S={year:y,month:b,day:y,weekday:b},O={year:y,month:k,day:y},T={year:y,month:k,day:y,weekday:k},R={hour:y,minute:y},I={hour:y,minute:y,second:y},N={hour:y,minute:y,second:y,timeZoneName:b},V={hour:y,minute:y,second:y,timeZoneName:k},M={hour:y,minute:y,hour12:!1},A={hour:y,minute:y,second:y,hour12:!1},E={hour:y,minute:y,second:y,hour12:!1,timeZoneName:b},j={hour:y,minute:y,second:y,hour12:!1,timeZoneName:k},D={year:y,month:y,day:y,hour:y,minute:y},C={year:y,month:y,day:y,hour:y,minute:y,second:y},F={year:y,month:b,day:y,hour:y,minute:y},L={year:y,month:b,day:y,hour:y,minute:y,second:y},P={year:y,month:b,day:y,weekday:b,hour:y,minute:y},z={year:y,month:k,day:y,hour:y,minute:y,timeZoneName:b},Z={year:y,month:k,day:y,hour:y,minute:y,second:y,timeZoneName:b},U={year:y,month:k,day:y,weekday:k,hour:y,minute:y,timeZoneName:k},H={year:y,month:k,day:y,weekday:k,hour:y,minute:y,second:y,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 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)]=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 ge(e){return JSON.stringify(e,Object.keys(e).sort())}var pe=["January","February","March","April","May","June","July","August","September","October","November","December"],ye=["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(ye);case"long":return[].concat(pe);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 Te=["AM","PM"],Re=["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(Re);default:return null}}function Me(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 Ae={D:_,DD:w,DDD:O,DDDD:T,t:R,tt:I,ttt:N,tttt:V,T:M,TT:A,TTT:E,TTTT:j,f:D,ff:F,fff:z,ffff:U,F:C,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 Ae[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 Te[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 Me(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 Me(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}(),De=function(){function e(){}var t=e.prototype;return t.offsetName=function(e,t){throw new p},t.formatOffset=function(e,t){throw new p},t.offset=function(e){throw new p},t.equals=function(e){throw new p},n(e,[{key:"type",get:function(){throw new p}},{key:"name",get:function(){throw new p}},{key:"universal",get:function(){throw new p}},{key:"isValid",get:function(){throw new p}}]),e}(),Ce=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===Ce&&(Ce=new t),Ce}}]),t}(De),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}(De),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}(De),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}(De);function We(e,t){var i;if(q(e)||null===e)return t;if(e instanceof De)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(T):return"EEEE, LLLL d, yyyy";case ge(R):return"h:mm a";case ge(I):return"h:mm:ss a";case ge(N):case ge(V):return"h:mm a";case ge(M):return"HH:mm";case ge(A):return"HH:mm:ss";case ge(E):case ge(j):return"HH:mm";case ge(D):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(C):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 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 Te}),(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}))?)?)?/,gt=RegExp(""+mt.source+vt.source+"?"),pt=RegExp("(?:T"+gt.source+")?"),yt=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 Tt(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 Rt(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 Mt={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function At(e,t,i,n,r,o,s){var a={year:2===t.length?ue(te(t)):te(t),month:ye.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=At(i,o,r,n,s,a,c);return t=u?Mt[u]:d?0:le(l,x),[h,new qe(t)]}var Dt=/^(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$/,Ct=/^(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[At(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[At(t,e[7],i,n,r,o,s),qe.utcInstance]}var zt=lt(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,pt),Zt=lt(/(\d{4})-?W(\d\d)(?:-?(\d))?/,pt),Ut=lt(/(\d{4})-?(\d{3})/,pt),Ht=lt(gt),qt=xt(St,Ot,Tt),Bt=xt(yt,Ot,Tt),Wt=xt(bt,Ot,Tt),Jt=xt(Ot,Tt);var Gt=xt(Ot);var Yt=lt(/(\d{4})-(\d\d)-(\d\d)/,_t),$t=lt(kt),Kt=xt(St,Ot,Tt,Rt),Xt=xt(Ot,Tt,Rt);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 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 g("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 g("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"},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]},pi=mi.hanidec.replace(/[\[|\]]/g,"").split("");function yi(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+=pi.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 Ti(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 Ri(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 Mi(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 Ai(e,t,i){var n=function(e,t){var i;return(i=Array.prototype).concat.apply(i,e.map((function(e){return Mi(e,t)})))}(Ee.parseFormat(i),e),r=n.map((function(t){return i=t,r=yi(n=e),o=yi(n,"{2}"),s=yi(n,"{3}"),a=yi(n,"{4}"),c=yi(n,"{6}"),u=yi(n,"{1,2}"),d=yi(n,"{1,3}"),l=yi(n,"{1,6}"),x=yi(n,"{1,9}"),h=yi(n,"{2,4}"),f=yi(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 Ti(n.eras("short",!1),0);case"GG":return Ti(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 Ti(n.months("short",!0,!1),1);case"MMMM":return Ti(n.months("long",!0,!1),1);case"LLL":return Ti(n.months("short",!1,!1),1);case"LLLL":return Ti(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 Ti(n.meridiems(),0);case"E":case"c":return ki(r);case"EEE":return Ti(n.weekdays("short",!1,!1),1);case"EEEE":return Ti(n.weekdays("long",!1,!1),1);case"ccc":return Ti(n.weekdays("short",!0,!1),1);case"cccc":return Ti(n.weekdays("long",!0,!1),1);case"Z":case"ZZ":return Ri(new RegExp("([+-]"+u.source+")(?::("+o.source+"))?"),2);case"ZZZ":return Ri(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 Di(e,t){return new je("unit out of range","you specified "+t+" (of type "+typeof t+") as a "+e+", which is invalid")}function Ci(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=Ci(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=Ci(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&&Di("day",e.day):Di("month",e.month):Di("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&&Di("millisecond",r):Di("second",n):Di("minute",i):Di("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 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,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,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 p,y=!1,b=d(h);!(p=b()).done;){var k=p.value;q(o[k])?o[k]=y?f[k]:g[k]:y=!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&&Di("weekday",e.weekday):Di("week",e.week):Di("weekYear",e.weekYear)}(o):s?function(e){var t=W(e.year),i=Q(e.ordinal,1,oe(e.year));return t?!i&&Di("ordinal",e.ordinal):Di("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,[Dt,Lt],[Ct,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=Ai(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 g("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 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 Ai(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 T}},{key:"TIME_SIMPLE",get:function(){return R}},{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 M}},{key:"TIME_24_WITH_SECONDS",get:function(){return A}},{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 D}},{key:"DATETIME_SHORT_WITH_SECONDS",get:function(){return C}},{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 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:()=>_s,RevisionHistoryUI:()=>Xn,RevisionTracker:()=>In,RevisionViewer:()=>kr,RevisionViewerLoadingOverlay:()=>Pr,RevisionViewerUI:()=>qr,RevisionsRepository:()=>Qi,RevisionsSidebar:()=>es});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 g=function(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i};const p=function(e){return this.__data__.get(e)};const y=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,T=S.toString,R=w?w.toStringTag:void 0;const I=function(e){var t=O.call(e,R),i=e[R];try{e[R]=void 0;var n=!0}catch(e){}var r=T.call(e);return n&&(t?e[R]=i:delete e[R]),r};var N=Object.prototype.toString;const V=function(e){return N.call(e)};var M=w?w.toStringTag:void 0;const A=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":M&&M 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=A(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};const D=_["__core-js_shared__"];var C,F=(C=/[^.]+$/.exec(D&&D.keys&&D.keys.IE_PROTO||""))?"Symbol(src)_1."+C:"";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 ge(e){var t=this.__data__=new v(e);this.size=t.size}ge.prototype.clear=m,ge.prototype.delete=g,ge.prototype.get=p,ge.prototype.has=y,ge.prototype.set=me;const pe=ge;const ye=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 Te=function(e){return null!=e&&"object"==typeof e};const Re=function(e){return Te(e)&&"[object Arguments]"==A(e)};var Ie=Object.prototype,Ne=Ie.hasOwnProperty,Ve=Ie.propertyIsEnumerable;const Me=Re(function(){return arguments}())?Re:function(e){return Te(e)&&Ne.call(e,"callee")&&!Ve.call(e,"callee")};const Ae=Array.isArray;const Ee=function(){return!1};var je="object"==typeof exports&&exports&&!exports.nodeType&&exports,De=je&&"object"==typeof module&&module&&!module.nodeType&&module,Ce=De&&De.exports===je?_.Buffer:void 0;const Fe=(Ce?Ce.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 Te(e)&&ze(e.length)&&!!Ze[A(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=Ae(e),n=!i&&Me(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 gt=function(e,t){var i=-1,n=e.length;for(t||(t=Array(n));++i<n;)t[i]=e[i];return t};const pt=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 yt=function(){return[]};var bt=Object.prototype.propertyIsEnumerable,kt=Object.getOwnPropertySymbols;const _t=kt?function(e){return null==e?[]:(e=Object(e),pt(kt(e),(function(t){return bt.call(e,t)})))}:yt;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 Tt=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)St(t,_t(e)),e=Ot(e);return t}:yt;const Rt=function(e,t){return Se(e,Tt(e),t)};const It=function(e,t,i){var n=t(e);return Ae(e)?n:St(n,i(e))};const Nt=function(e){return It(e,ot,_t)};const Vt=function(e){return It(e,dt,Tt)};const Mt=Y(_,"DataView");const At=Y(_,"Promise");const Et=Y(_,"Set");const jt=Y(_,"WeakMap");var Dt="[object Map]",Ct="[object Promise]",Ft="[object Set]",Lt="[object WeakMap]",Pt="[object DataView]",zt=z(Mt),Zt=z($),Ut=z(At),Ht=z(Et),qt=z(jt),Bt=A;(Mt&&Bt(new Mt(new ArrayBuffer(1)))!=Pt||$&&Bt(new $)!=Dt||At&&Bt(At.resolve())!=Ct||Et&&Bt(new Et)!=Ft||jt&&Bt(new jt)!=Lt)&&(Bt=function(e){var t=A(e),i="[object Object]"==t?e.constructor:void 0,n=i?z(i):"";if(n)switch(n){case zt:return Pt;case Zt:return Dt;case Ut:return Ct;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 Te(e)&&"[object Map]"==Wt(e)};var ui=Je&&Je.isMap;const di=ui?He(ui):ci;const li=function(e){return Te(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]",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 pi=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=Ae(t);if(l){if(a=Gt(t),!c)return gt(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?Rt(t,lt(a,t)):wt(t,st(a,t))}else{if(!gi[x])return o?t:{};a=ri(t,x,c)}}s||(s=new pe);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 ye(v||t,(function(r,o){v&&(r=t[o=r]),we(a,o,e(r,i,n,o,t,s))})),a};const yi=function(e){return pi(e,5)};const bi=function(e){return"symbol"==typeof e||Te(e)&&"[object Symbol]"==A(e)};var ki=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_i=/^\w*$/;const wi=function(e,t){if(Ae(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 Ti=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ri=/\\(\\)?/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(Ti,(function(e,i,n,r){t.push(n?r.replace(Ri,"$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,Mi=Vi?Vi.toString:void 0;const Ai=function e(t){if("string"==typeof t)return t;if(Ae(t))return Ni(t,e)+"";if(bi(t))return Mi?Mi.call(t):"";var i=t+"";return"0"==i&&1/t==-Infinity?"-0":i};const Ei=function(e){return null==e?"":Ai(e)};const ji=function(e,t){return Ae(e)?e:wi(e,t)?[e]:Ii(Ei(e))};const Di=function(e){if("string"==typeof e||bi(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};const Ci=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=Di(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:Ci(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[Di(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[Di(Li(t))]};const Hi=function(e,t){return null==e||Ui(e,t)},qi=["toVersion","fire","createdAt","authorsIds","authors","set","name","setAttribute","creator","fromVersion","diffData","map","attributes","removeAttribute","_update"];var Bi,Wi;Bi=qi,Wi=261,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("0x2")]=e[Ji("0x2")]||null,this[Ji("0xd")]=e[Ji("0xd")]||[],this[Ji("0x4")]=e[Ji("0x4")]||null,this[Ji("0x9")]=e[Ji("0x9")]||0,this.fromVersion=e[Ji("0x3")]||0,this[Ji("0xe")](Ji("0x0"),e[Ji("0x0")]||""),this[Ji("0xe")]("createdAt",e[Ji("0xb")]||new Date),this.set(Ji("0x6"),e[Ji("0x6")]||{})}setName(e){this[Ji("0x8")]({name:e})}[Ji("0x1")](e,t){const i=yi(this[Ji("0x6")]);Fi(i,e,t),this[Ji("0x8")]({attributes:i})}[Ji("0x7")](e){const t=yi(this[Ji("0x6")]);Hi(t,e),this[Ji("0x8")]({attributes:t})}_update(e,t=!1){let i=!1;const n={id:this.id},r=[Ji("0x0"),"createdAt",Ji("0x4"),Ji("0xd"),Ji("0x6"),Ji("0x9"),Ji("0x3"),"creatorId"];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("0xd")]&&(n[Ji("0xc")]=n[Ji("0xd")][Ji("0x5")]((e=>e.id)),delete n[Ji("0xd")]),this[Ji("0xa")](Ji("0x8"),n,t))}toJSON(){return{id:this.id,name:this[Ji("0x0")],creatorId:this[Ji("0x2")]?this.creator.id:null,authorsIds:this.authors[Ji("0x5")]((e=>e.id)),diffData:this[Ji("0x4")],createdAt:this.createdAt,attributes:this[Ji("0x6")],fromVersion:this[Ji("0x3")],toVersion:this[Ji("0x9")]}}}const Yi=["createdAt","join","getRevisions","then","length","map","authorsIds","createRevision","Users","_revisions","get","later","data","getRevisionsInDiff","reverse","earlier","isNaN","getUser","from","getRevision","editor","getLaterVisibleRevision","addRevision","attributes","requires","oldRevisionId","name","afterInit","getIndex","getEarlierVisibleRevision","getRevisionsIterator","toJSON","fromVersion"];var $i,Ki;$i=Yi,Ki=343,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("0xb")](){return[r.Users]}static get pluginName(){return"RevisionsRepository"}get[Xi("0x18")](){return this[Xi("0x1d")].length}constructor(e){super(e),this._revisions=new t.Collection}[Xi("0xe")](){!function(t){function i(e){return e[Xi("0x19")]((e=>String.fromCharCode(e)))[Xi("0x15")]("")}(t=>{const n=[1,85,78,115,198,255,50,112,83,87,161],r=[127,34,6,211,167,86,146,199,132,160,18];function o(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([...n,29,221,175,90,231,133,239,240,75,180,...r]))}const s=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([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([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([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([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([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([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([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])}];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,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}(),a={[i([99,104,101,99,107,76,105,99,101,110,115,101])]:function(e,t){v(f(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){v(function(e,t){try{if(k(u,i([84,114,97,99,107,67,104,97,110,103,101,115,69,100,105,116,105,110,103]))&&e){const n=_(u,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 m(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 f(e,t)}catch(e){return m(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 o=r[0]*n[1],s=r[0]*n[2],a=r[2]*n[2];function c(e,t){d(),m(t+i([84,114,105,97,108,76,105,109,105,116,58])+e),window[g()]=e===i([116,105,109,101])?o:s}function d(){const e=u;function t(){k(e,i([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))&&(_(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])),_(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,_(e,i([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[i([117,112,100,97,116,101])]=b,_(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])]=b,e[i([109,111,100,101,108])][i([99,104,97,110,103,101])]=b,e[i([109,111,100,101,108])][i([101,110,113,117,101,117,101,67,104,97,110,103,101])]=b,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]))),k(e,i([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))&&(_(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])),_(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,_(e,i([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[i([99,111,109,112,97,114,101])]=b,_(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])]=b)}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(k(e,i([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))&&t(),k(e,i([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))){const n=_(e,i([82,101,118,105,115,105,111,110,115,82,101,112,111,115,105,116,111,114,121])),r=n[Xi("0x6")](0),o=n[Xi("0x10")](r[i([105,100])]);_(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("0x17")]((()=>t()))}}))}k(u,i([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))&&_(u,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]))d();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(!k(u,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("0x3")](Number(e))){if(window[e]===o)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=r[6]*n[8]*n[6];return k(u,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 d=_(u,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])];d[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])]):d.on(i([97,100,100]),(()=>{d[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(!k(u,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}()?m(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])):f(e,t)}catch(e){return m(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)}},c=t[i([99,111,110,115,116,114,117,99,116,111,114])][i([112,108,117,103,105,110,78,97,109,101])],u=i([99,111,110,116,101,120,116])in t?t.context:t[Xi("0x7")],d=i([52,48,52,54,49,48,52,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]),x=u.config[Xi("0x1e")](i([108,105,99,101,110,115,101,75,101,121])),h=s[i([102,105,110,100])]((e=>e[i([112,108,117,103,105,110,78,97,109,101])]===c));function f(e,t){try{return function(e){if(!k(u,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;return!(!k(u,i([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))||_(u,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)||!(!k(u,i([84,114,97,99,107,67,104,97,110,103,101,115,68,97,116,97,71,101,116,116,101,114]))||_(u,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)}(t)?m(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&&e[i([97,108,108,111,119,101,100,80,108,117,103,105,110,115])]&t[i([112,101,114,109,105,115,115,105,111,110,77,97,115,107])]?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(d)/2>e[i([101,120,112,105,114,97,116,105,111,110,68,97,116,101])]?m(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])]?m(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])):m(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])):m(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 m(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 v(t,o){if(u instanceof e.Context){const e=u;t==o[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==o[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),m(o[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]))}),r[6]*n[8]*n[6]),e[i([101,100,105,116,111,114,115])][i([111,110])](i([97,100,100]),((e,n)=>{t!=o[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!=o[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!=o[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])||y(n)}))}else{const e=u;t==o[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])?y(e):t==o[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]),((n,r)=>{r[0][i([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&t++,504===t&&(y(e),m(o[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])),n[i([111,102,102])]())}),{priority:i([104,105,103,104,101,115,116])})}))}}function m(e){const t=g();return u[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>=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])])y(t);_(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),_(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])]=b}function y(e){function t(){e[i([109,111,100,101,108])][i([99,104,97,110,103,101])]=b,e[i([109,111,100,101,108])][i([101,110,113,117,101,117,101,67,104,97,110,103,101])]=b,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 b(){return null}function k(e,t){return e[i([112,108,117,103,105,110,115])][i([104,97,115])](t)}function _(e,t){return e[i([112,108,117,103,105,110,115])][i([103,101,116])](t)}h&&function e(t,n){a[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=>k(u,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=o(e),n=JSON[i([112,97,114,115,101])](t),r=parseInt(n[i([49])]),s=parseInt(n[i([51])]),a=parseInt(n[i([52])])||0,c=parseInt(n[i([53])])||0;return{[i([97,108,108,111,119,101,100,80,108,117,103,105,110,115])]:a,[i([101,120,112,105,114,97,116,105,111,110,68,97,116,101])]:r,[i([105,115,84,114,105,97,108])]:s,[i([105,115,73,110,116,101,114,110,97,108])]:c}}catch(e){return null}}(x),h)})(t)}(this)}[Xi("0x1b")](e){const t=this[Xi("0x7")].plugins[Xi("0x1e")](Xi("0x1c"));return new Gi({id:e.id,name:e[Xi("0xd")],creator:e.creatorId?t.getUser(e.creatorId):null,diffData:e.diffData||e[Xi("0x20")],authors:e[Xi("0x1a")].map((e=>t[Xi("0x4")](e))),createdAt:new Date(e[Xi("0x14")]),attributes:e[Xi("0xa")],fromVersion:e[Xi("0x13")],toVersion:e.toVersion})}[Xi("0x9")](e,t=0){this[Xi("0x1d")].add(e,t)}[Xi("0x6")](e){return this[Xi("0x1d")][Xi("0x1e")](e)}[Xi("0x16")](e={toJSON:!1}){const t=Array[Xi("0x5")](this[Xi("0x1d")]);return t[Xi("0x1")](),e[Xi("0x12")]?t[Xi("0x19")]((e=>e[Xi("0x12")]())):t}getIndex(e){return this[Xi("0x1d")][Xi("0xf")](e)}[Xi("0x10")](e){const[,t]=this[Xi("0x11")](e,{direction:Xi("0x2")});return t}[Xi("0x8")](e){const[,t]=this[Xi("0x11")](e,{direction:Xi("0x1f")});return t}[Xi("0x0")](e){const t=[];for(const i of this[Xi("0x11")](e.newRevisionId))if(t.push(i),i.id===e[Xi("0xc")])break;return t}*[Xi("0x11")](e,{direction:t="earlier",filter:i=(e=>!0)}={}){const n=Xi("0x2")===t?1:-1;let r=this[Xi("0x1d")].get(e),o=this.getIndex(r);for(yield r;r;){if(o+=n,r=this[Xi("0x6")](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 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 p=e.constructor,y=t.constructor;p==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof p&&p instanceof p&&"function"==typeof y&&y instanceof y||(h=!1)}return o.delete(e),o.delete(t),h};var mn="[object Arguments]",gn="[object Array]",pn="[object Object]",yn=Object.prototype.hasOwnProperty;const bn=function(e,t,i,n,r,o){var s=Ae(e),a=Ae(t),c=s?gn:Wt(e),u=a?gn:Wt(t),d=(c=c==mn?pn:c)==pn,l=(u=u==mn?pn:u)==pn,x=c==u;if(x&&Fe(e)){if(!Fe(t))return!1;s=!0,d=!1}if(x&&!d)return o||(o=new pe),s||Ye(e)?cn(e,t,i,n,r,o):hn(e,t,c,i,n,r,o);if(!(1&i)){var h=d&&yn.call(e,"__wrapped__"),f=l&&yn.call(t,"__wrapped__");if(h||f){var v=h?e.value():e,m=f?t.value():t;return o||(o=new pe),r(v,m,i,n,o)}}return!!x&&(o||(o=new pe),vn(e,t,i,n,r,o))};const kn=function e(t,i,n,r,o){return t===i||(null==t||null==i||!Te(t)&&!Te(i)?t!=t&&i!=i:bn(t,i,n,r,e,o))};const _n=function(e,t){return kn(e,t)},wn=["$graveyard","_handleRootOperation","RevisionTracker","includes","_touchedRoots","_getViewJson","deletions","createRevision","revisionHistory.resumeUnsavedRevision","_source","_removePendingAction","getTransformedByOperation","version","length","getCurrentRevisionId","data","markers","model","_revisionDataBuilder","children","_getPreviousFrom","_reset","marked","_generateTape","markerToData","createRangeIn","affectsData","targetPosition","_pendingAction","start","_isAttached","insertion","ready","insert","editing","_removeMetaData","slice","collaboration.channelId","clone","getAttributes","size","newValue","_fixPosition","_diffRootsAttributes","_lastFrom","parse","isAttached","name","end","merge","createPositionFromPath","_baseIdsRoots","_setConversion","rootsAttributes","_fixRange","requires","_makeModelFromViewString","_markers","getRoot","marker","_saveMetaData","item","stickiness","startsWith","string","reverse","buildRevisionData","newRange","howMany","_processRootBeforeSave","dataDowncast","getRevisions","_handleRootAttributeOperation","_update","previousPosition","filter","userId","addRootAttribute","_findInsertionIndex","for","getAncestors","view","_bufferUpdate","getLatestVersion","clear","getAttribute","oldRange","keepParagraph","_handleInsertOperation","resolve","getRevision","diffData","RealTimeCollaborationClient","adapter","_baseRoots","document","getTime","getWalker","loadState","sort","_cloneOperation","then","_diffRoots","_createInitialRevision","bind","data-revision-","reInit","rootName","getChild","_execute","getRootNames","detachRoot","createdAt","_isInit","childCount","_idsRoots","_getState","source","vid","setSource","_baseRootsAttributes","elementEnd","_applyOperations","setRevisionData","_setAttribute","_handleSplitOperation","_copyMarkers","_getBaseVids","_fixOperation","elementStart","currentRevision","_removeRevisionMarkers","_touchedMarkers","updateRevisions","_touched","pluginName","_lastTo","isReady","parent","initialData","conversion","_initialRevisionId","attributesAfter","from","get","insertionPosition","editor-initial-data-replaced-with-revision-data","_authorId","RevisionsRepository","_handleMergeOperation","creator","removeRootAttribute","$text","update","_makeRevision","getNodeByPath","path","_startingRevisionId","some","root","creatorId","roots","_markChanges","plugins","sendBufferedUpdates","revision-start","_handleMarkerOperation","isEqual","default","position","createPositionAt","map","add","splitPosition","revision-end","values","toVersion","getUser","upcast","hasContent","define","_loadState","_initialRoots","vid_end","NEGATIVE_INFINITY","find","_loadedStateData","init","_revisionId","_handleMoveOperation","addRevisionData","Initial revision","baseVersion","attributesBefore","revision:","_continueCurrentRevision","deletion","authors","nodes","processor","attributes","getRevisionRootsAttributes","_createCurrentRevision","_calculateMetaData","_getFromVersion","dataToMarker","_makeIdsRoot","_addPendingAction","_loadRevisionData","useFillerType","offsetSize","toModel","authorsIds","_getVidAttributeName","forEach","getData","history","editor","key","_startingVersion","initial","offset","getOperations","repository","fromEntries","vid_start","set","graveyardPosition","Users","fromVersion","createPositionAfter","saveRevision","config","_handleOperation","_replaceEditorDataWithRevisionData","PendingActions","_savedMetaData","_isPendingUpdate","getChildren","toData","keys","paragraph","_operations","addRoot","changeRootAttribute","tableCell","getOperation","isAdd","_transformMarkers","_createFromRanges","createRange","split","push","_prepareViewToSave","delete","type","insertions","_bufferedUpdates","attachChange","documentFragment","_insertChild","nodeAfter","remove","_clone","element","toView","reinsert","has","revision"];var Sn,On;Sn=wn,On=403,function(e){for(;--e;)Sn.push(Sn.shift())}(++On);const Tn=function(e,t){return wn[e-=0]},Rn={c:o.ViewContainerElement,a:o.ViewAttributeElement,e:o.ViewEmptyElement,r:o.ViewRawElement,u:o.ViewUIElement};class In extends e.Plugin{static get[Tn("0x1")](){return Tn("0x89")}static get[Tn("0xbe")](){return[r.Users,Qi,e.PendingActions]}constructor(e){super(e),this[Tn("0xe4")]=null,this[Tn("0x109")]=null,this[Tn("0x99")]=new Vn(this[Tn("0x53")]),this._initialRevisionId=this[Tn("0x53")][Tn("0x62")][Tn("0xa")](Tn("0xac"))||Tn("0x56"),this[Tn("0x7b")]=new Map,this[Tn("0x34")]=null;const i=(0,t.uid)();this[Tn("0x90")]={history:this[Tn("0x53")][Tn("0x98")][Tn("0xe6")][Tn("0x52")],getLatestVersion:()=>Promise[Tn("0xe0")](this[Tn("0x53")][Tn("0x98")].document[Tn("0x93")]),getCurrentRevisionId:()=>i},this.set(Tn("0x3"),!1),this[Tn("0x5c")]("isEnabled",!0),this[Tn("0x5c")](Tn("0x67"),!1),this[Tn("0x53")][Tn("0x62")][Tn("0x2e")](Tn("0x8f"),!0),this.editor[Tn("0x6")][Tn("0xd6")](Tn("0x2c"))[Tn("0x47")]({view:Tn("0x86")})}[Tn("0x35")](){this.repository=this[Tn("0x53")][Tn("0x1d")][Tn("0xa")](Tn("0xe")),this[Tn("0xbb")](),this[Tn("0x53")][Tn("0x96")].on(Tn("0xa7"),(()=>{const e=this[Tn("0x59")][Tn("0xe1")](0),t=e&&null===e[Tn("0x10")]?e:null;if(this[Tn("0x3d")]=!!t&&this.editor[Tn("0x62")][Tn("0xa")](Tn("0x8f")),this.editor.plugins[Tn("0x85")](Tn("0xe3"))){const i=this[Tn("0x90")][Tn("0x95")](),n=this[Tn("0x59")][Tn("0xe1")](i);if(n)this[Tn("0x55")]=n[Tn("0x5f")],this[Tn("0x3d")]=!1;else{const i=this[Tn("0x90")].history[Tn("0x6c")][Tn("0x33")]((e=>!e[Tn("0xf8")])),n=i?i[Tn("0x3a")]:this._source[Tn("0x52")][Tn("0x93")];e?(e[Tn("0x2a")]<n&&e[Tn("0xd0")]({toVersion:n}),this[Tn("0x3d")]?(this[Tn("0x90")][Tn("0x95")]=()=>t.id,this[Tn("0x55")]=t.fromVersion):(this[Tn("0x55")]=e[Tn("0x2a")],this._continueCurrentRevision=!1)):(this._startingVersion=n,this[Tn("0x3d")]=!1)}}else t&&(this[Tn("0x53")][Tn("0x98")][Tn("0xe6")][Tn("0x52")][Tn("0x93")]=Math.max(t.toVersion,this[Tn("0x53")][Tn("0x98")][Tn("0xe6")].history[Tn("0x93")]),t[Tn("0x5f")]===t[Tn("0x2a")]?(0!==t[Tn("0x5f")]&&(this[Tn("0x90")][Tn("0x95")]=()=>t.id),this[Tn("0x3d")]=!1):this[Tn("0x3d")]&&(this[Tn("0x90")][Tn("0x95")]=()=>t.id,this._startingVersion=t[Tn("0x5f")])),this[Tn("0x3d")]||(this._startingVersion=this[Tn("0x53")].model[Tn("0xe6")][Tn("0x93")]);this._revisionDataBuilder[Tn("0x35")](this[Tn("0x90")][Tn("0x52")]),this[Tn("0xee")](this[Tn("0x55")]),this[Tn("0x44")](this[Tn("0x55")]),this[Tn("0xe4")]&&this.sendBufferedUpdates()})),this[Tn("0xef")](Tn("0x3")).to(this,"_isPendingUpdate",(e=>!e))}async afterInit(){if(this[Tn("0x59")][Tn("0x94")]>0){const e=this[Tn("0x59")][Tn("0xe1")](0),t=await this.getRevisionDocumentData(e),i=await this[Tn("0x43")](e);this._replaceEditorDataWithRevisionData(t,i)}}[Tn("0xfe")](e){this[Tn("0x90")]=e}async[Tn("0x13")](){const e=await this[Tn("0x90")][Tn("0xda")]();if(e>this[Tn("0x109")][Tn("0x2a")]){await this[Tn("0x2f")]();const t=this[Tn("0xc9")]({revision:this[Tn("0x109")],to:e});t[Tn("0x3f")]=t[Tn("0x4e")][Tn("0x25")]((e=>this[Tn("0x53")].plugins[Tn("0xa")](Tn("0x5e")).getUser(e))),this.currentRevision._update(t)}}async[Tn("0x2f")](){this[Tn("0x3d")]&&!this[Tn("0x34")]&&(await this[Tn("0x4a")](this.currentRevision),this[Tn("0x99")][Tn("0xe9")](this.currentRevision),this[Tn("0x34")]={fromVersion:this.currentRevision.fromVersion,authors:this[Tn("0x109")][Tn("0x3f")][Tn("0xab")]()})}async[Tn("0x61")](e={},i=null){const n=[];await this[Tn("0x2f")](),this._continueCurrentRevision=!1,i>this[Tn("0x109")][Tn("0x2a")]&&(i=null),null===i&&(i=await this._source[Tn("0xda")]());const r=this[Tn("0x46")](i),o=this[Tn("0xc9")]({from:r,to:i});if(this[Tn("0x109")][Tn("0x2a")]<i){const e=this[Tn("0xc9")]({revision:this[Tn("0x109")],from:i,to:i});e[Tn("0x3f")]=[],e[Tn("0x4e")]=[],e.id=this[Tn("0x109")].id,this[Tn("0x109")][Tn("0xd0")](e,!0),delete e[Tn("0x3f")],n.push(e)}e[Tn("0x1a")]=this[Tn("0x53")].plugins.get(Tn("0x5e")).me.id,e[Tn("0xb6")]=e.name||null,e.id=e.id||(0,t.uid)(),e={...e,...o};const s=this[Tn("0x38")](e);n.push(e);const a=this.repository.getIndex(s);if(0!==a){const t=this[Tn("0x59")][Tn("0xe1")](a-1);if(t[Tn("0x5f")]!==i){const r=this._revisionDataBuilder.getData(i,t[Tn("0x2a")]),o={id:t.id,diffData:r[Tn("0xe2")],authorsIds:r[Tn("0x4e")],authors:r[Tn("0x4e")].map((e=>this.editor.plugins[Tn("0xa")](Tn("0x5e"))[Tn("0x2b")](e))),fromVersion:i};t===this[Tn("0x109")]&&(o[Tn("0xf7")]=new Date(e[Tn("0xf7")][Tn("0xe7")]()+10)),t._update(o,!0),delete o[Tn("0x3f")],n[Tn("0x76")](o)}}if(this.adapter){for(const e of n)this[Tn("0xd9")](e.id,e,!0);this[Tn("0x1e")]()}return s}[Tn("0x38")](e){const t=this[Tn("0x59")][Tn("0x8e")](e);return this[Tn("0xe4")]&&t.on(Tn("0xd0"),((e,t,i)=>{i||(this._bufferUpdate(t.id,t,!0),this[Tn("0x1e")]())})),this.repository.addRevision(t,this[Tn("0xd5")](t)),t}async getRevisionDocumentData(e){await this[Tn("0x4a")](e);const t={};for(const i in e[Tn("0xe2")]){if(e[Tn("0xe2")][i][Tn("0x7c")]&&!e[Tn("0xe2")][i][Tn("0x7c")][Tn("0xb5")])continue;const n=this[Tn("0x10a")](JSON[Tn("0xb4")](e.diffData[i].insertions)),r=this[Tn("0x53")][Tn("0xa9")].view[Tn("0xe6")],s=new o.ViewDocumentFragment(r,n[Tn("0x25")]((e=>Nn(e,this.editor))));this[Tn("0x53")][Tn("0x96")][Tn("0x41")][Tn("0x4b")](Tn("0x9d")),t[i]=this.editor[Tn("0x96")].processor[Tn("0x69")](s),this[Tn("0x53")][Tn("0x96")][Tn("0x41")].useFillerType(Tn("0x22"))}return t}async[Tn("0x43")](e){await this[Tn("0x4a")](e);const t={};for(const i in e[Tn("0xe2")])e[Tn("0xe2")][i][Tn("0x7c")]&&!e[Tn("0xe2")][i][Tn("0x7c")][Tn("0xb5")]||(t[i]=e[Tn("0xe2")][i].attributesAfter||{});return t}[Tn("0x1e")](){if(0===this[Tn("0x7b")][Tn("0xaf")])return;if(this[Tn("0x67")])return;let e=Array.from(this[Tn("0x7b")][Tn("0x29")]());this[Tn("0x7b")][Tn("0xdb")]();for(let t=0;t<e[Tn("0x94")];t++){const i=e[t];let n=!1;for(const e of Object[Tn("0x6a")](i))void 0===i[e]?delete i[e]:"id"!==e&&(n=!0);n||(e[t]=null)}if(e=e[Tn("0xd2")]((e=>null!==e)),!e[Tn("0x94")])return;for(let t=0;t<e.length;t++){const i=e[t];void 0!==i[Tn("0x5f")]&&void 0===i[Tn("0x2a")]&&(i[Tn("0x2a")]=this.repository[Tn("0xe1")](i.id)[Tn("0x2a")]),void 0!==i.toVersion&&void 0===i[Tn("0x5f")]&&(i.fromVersion=this[Tn("0x59")][Tn("0xe1")](i.id)[Tn("0x5f")])}const t=this[Tn("0x53")][Tn("0x62")].get(Tn("0xac"));this._isPendingUpdate=!0,this[Tn("0x49")](),this.adapter[Tn("0x10c")](e,t).finally((()=>{this[Tn("0x67")]=!1})).then((e=>{if(e)for(const t of e)this.setRevisionData({id:t.id,createdAt:t[Tn("0xf7")]});this._removePendingAction(),this[Tn("0x1e")]()}))}[Tn("0x64")](e,i){let n=this.editor[Tn("0x62")].get(Tn("0x5")),r=this[Tn("0x53")][Tn("0x62")][Tn("0xa")](Tn("0xbc"));if(void 0===n){n={};for(const e of this.editor.model[Tn("0xe6")][Tn("0xf5")]())n[e]=""}if(Tn("0xc7")==typeof n&&(n={main:n}),void 0===r){r={};for(const e of this[Tn("0x53")][Tn("0x98")].document[Tn("0xf5")]())r[e]={}}let o=!1;const s=Object[Tn("0x6a")](n),a=Object[Tn("0x6a")](e);for(const t of s){if(n[t]!==e[t]&&""!==n[t].trim()){o=!0;break}if(!_n(r[t],i[t])&&Object[Tn("0x6a")](r[t])[Tn("0x94")]>0){o=!0;break}}o||(o=a[Tn("0x18")]((e=>!s[Tn("0x8a")](e)))),o&&(0,t.logWarning)(Tn("0xc"),{editorData:n,editorRootsAttributes:r,revisionData:e,revisionRootsAttributes:i}),this[Tn("0x53")].config[Tn("0x5c")]("initialData",e),this[Tn("0x53")][Tn("0x62")][Tn("0x5c")](Tn("0xbc"),i)}[Tn("0x49")](){if(!this[Tn("0xa3")]){const e=this[Tn("0x53")][Tn("0x1d")][Tn("0xa")]("PendingActions");this[Tn("0xa3")]=e[Tn("0x26")](en(this[Tn("0x53")].locale,"PENDING_ACTION_REVISION_HISTORY"))}}[Tn("0x91")](){this[Tn("0xa3")]&&(this[Tn("0x53")][Tn("0x1d")][Tn("0xa")](Tn("0x65"))[Tn("0x80")](this._pendingAction),this[Tn("0xa3")]=null)}_findInsertionIndex(e){const t=this[Tn("0x59")][Tn("0xce")]();t[Tn("0xc8")]();let i=0;for(;i<t[Tn("0x94")];){const n=t[i];if(n===this[Tn("0x109")]){i++;continue}if(n.id===this[Tn("0x7")])break;const r=e[Tn("0x2a")]-n[Tn("0x2a")]||e[Tn("0x5f")]-n[Tn("0x5f")];if(r>0)break;if(r<0)i++;else{if(!e[Tn("0x10")]&&n[Tn("0x10")])break;if(n.creator||!e[Tn("0x10")]){if(e[Tn("0xf7")]>n.createdAt)break;i++}else i++}}return i}[Tn("0x102")](e){const t=this[Tn("0x59")][Tn("0xe1")](e.id);if(e[Tn("0xf7")]&&(e.createdAt=new Date(e[Tn("0xf7")])),e[Tn("0x4e")]){const t=this[Tn("0x53")][Tn("0x1d")][Tn("0xa")](Tn("0x5e"));e[Tn("0x3f")]=e.authorsIds.map((e=>t[Tn("0x2b")](e)))}t[Tn("0xd0")](e,!0)}buildRevisionData({revision:e=null,from:t=null,to:i=null}){t=null!==t?t:e[Tn("0x5f")],i=null!==i?i:e[Tn("0x2a")];const n=this._revisionDataBuilder[Tn("0x51")](t,i),r={diffData:n[Tn("0xe2")],authorsIds:n[Tn("0x4e")],fromVersion:t,toVersion:i};if(!e||i!==e.toVersion){const e=i-1,t=this._source[Tn("0x52")][Tn("0x70")](e);r[Tn("0xf7")]=t&&t[Tn("0xf7")]||new Date}if(this[Tn("0x34")]&&t===this[Tn("0x34")][Tn("0x5f")])for(const e of this[Tn("0x34")][Tn("0x3f")])r[Tn("0x4e")][Tn("0x8a")](e.id)||r[Tn("0x4e")].push(e.id);return r}[Tn("0x4a")](e){if(!e||e[Tn("0xe2")])return Promise[Tn("0xe0")]();{const t=this[Tn("0x53")][Tn("0x62")].get("collaboration.channelId");return this.adapter[Tn("0xe1")]({channelId:t,revisionId:e.id})[Tn("0xec")]((t=>{e[Tn("0xe2")]=t[Tn("0xe2")]}))}}[Tn("0xd9")](e,t,i){if(this[Tn("0x7b")][Tn("0x85")](e)){const n=this[Tn("0x7b")][Tn("0xa")](e);t=i?{...n,...t}:{...t,...n}}this._bufferedUpdates[Tn("0x5c")](e,t)}[Tn("0x46")](e){const t=this.repository[Tn("0xce")]();t[Tn("0xc8")](),t.shift();const i=t.find((t=>t[Tn("0x2a")]<=e)).toVersion;return i<this[Tn("0x55")]?this._startingVersion:i}[Tn("0xee")](e){const t=this[Tn("0x59")][Tn("0xe1")](this[Tn("0x59")][Tn("0x94")]-1);if(t)this[Tn("0x7")]=t.id;else{const t=!this[Tn("0x53")][Tn("0x98")][Tn("0xe6")][Tn("0x1b")][Tn("0x33")]((e=>this.editor[Tn("0x98")][Tn("0x2d")](e))),i=this.editor[Tn("0x1d")][Tn("0xa")](Tn("0x5e")).me.id,n=en(this[Tn("0x53")].locale,t?"Empty document":Tn("0x39"));this._makeRevision({from:e,to:e,id:this[Tn("0x7")],name:n,creatorId:i})}}[Tn("0x44")](e){const t=this[Tn("0x90")][Tn("0x95")]();this.currentRevision=this[Tn("0x59")][Tn("0xe1")](t),this[Tn("0x109")]||(this[Tn("0x109")]=this._makeRevision({from:e,to:e,id:t,name:"",creatorId:null}))}[Tn("0x14")]({name:e,from:t,to:i,creatorId:n,id:r}){const o=this[Tn("0xc9")]({from:t,to:i});o[Tn("0xb6")]=e,o[Tn("0x1a")]=n,o.id=r;const s=this.addRevisionData(o);return this.adapter&&this._bufferUpdate(o.id,o,!0),s}[Tn("0xbb")](){this[Tn("0x53")][Tn("0x6")][Tn("0xd6")](Tn("0xcd"))[Tn("0x9f")]({model:"revision"})}[Tn("0x10a")](e){return(e=e[Tn("0xd2")]((e=>!e[Tn("0xb6")]||Tn("0x1f")!==e[Tn("0xb6")]&&Tn("0x28")!==e[Tn("0xb6")])))[Tn("0x50")]((e=>{"string"!=typeof e&&(e[Tn("0x9a")]=this._removeRevisionMarkers(e.children),e.attributes=e[Tn("0x42")].filter((e=>!e[0][Tn("0xc6")](Tn("0xf0")))))})),e}}function Nn(e,t){const i=t[Tn("0xa9")][Tn("0xd8")][Tn("0xe6")];if(Tn("0xc7")==typeof e)return new o.ViewText(i,e);{const n=e[Tn("0x9a")].map((e=>Nn(e,t)));return new(Rn[e.type]||o.ViewElement)(i,e.name,e[Tn("0x42")],n)}}class Vn{constructor(e){this.editor=e,this[Tn("0x66")]=new Map,this[Tn("0xb3")]=-1,this._lastTo=-1,this[Tn("0xc0")]=new Map,this[Tn("0xed")]=new Map,this._diffRootsAttributes=new Map,this[Tn("0xe5")]=new Map,this._baseRootsAttributes=new Map,this[Tn("0xfa")]=new Map,this._baseIdsRoots=new Map,this[Tn("0x0")]=new Map,this._touchedMarkers=new Map,this[Tn("0x8b")]=new Map,this[Tn("0x36")]=1,this[Tn("0x30")]=this.editor[Tn("0x98")][Tn("0xe6")][Tn("0xf5")](),this[Tn("0x30")][Tn("0x76")](Tn("0x87"))}[Tn("0x35")](e){this[Tn("0xfc")]=e;const t=new Map,i=new Map,n=this[Tn("0x53")][Tn("0x98")][Tn("0xe6")].getRootNames(!0);n[Tn("0x76")]("$graveyard");for(const e of n){const n=this[Tn("0x53")].model.document[Tn("0xc1")](e),r=Mn(n);t[Tn("0x5c")](e,r),i.set(e,Object[Tn("0x5a")](n[Tn("0xae")]()))}const r=Array[Tn("0x9")](this[Tn("0x53")].model.markers)[Tn("0x25")]((e=>[e[Tn("0xb6")],e.getRange()])),o=this[Tn("0xfc")][Tn("0x93")];this._saveMetaData(o,t,r,i),this[Tn("0x17")]=this._revisionId;const s=new Map,a=new Map;for(const e of this[Tn("0x30")]){const t=An(e);s[Tn("0x5c")](e,t),a.set(e,{})}this._saveMetaData(Number[Tn("0x32")],s,[],a)}getData(e,t){if(this[Tn("0xb3")]===e&&this[Tn("0x2")]<=t)this._savedMetaData.size>1&&this[Tn("0xaa")](this[Tn("0x2")]),this[Tn("0x101")](this[Tn("0x2")],t,!0);else{if(!this[Tn("0x66")][Tn("0x85")](e)){const t=this._getPreviousFrom(e);this[Tn("0x45")](t,e,!1)}this._calculateMetaData(e,t,!0)}return this._lastFrom=e,this[Tn("0x2")]=t,this._getState()}loadState(e){this[Tn("0x9c")](),this[Tn("0xb3")]=e[Tn("0x5f")],this[Tn("0x2")]=e[Tn("0x2a")];for(const t in e.diffData){const i=e[Tn("0xe2")][t][Tn("0x7c")],n=yi(e[Tn("0xe2")][t][Tn("0x3b")])||{},r=this._makeModelFromViewString(e[Tn("0xe2")][t][Tn("0x8d")]);r[Tn("0xf2")]=t,r[Tn("0xa5")]=!i||!i[Tn("0xb5")],r[Tn("0xb5")]=()=>r[Tn("0xa5")],this[Tn("0xe5")][Tn("0x5c")](t,r),this[Tn("0xff")][Tn("0x5c")](t,n),i&&this._touchedRoots[Tn("0x5c")](t,i);const o=this[Tn("0x48")](r);this._baseIdsRoots[Tn("0x5c")](t,o);for(const[e,t]of r[Tn("0x97")]){if(!e.startsWith(Tn("0x3c")))continue;const i=e.split(":")[2];for(const e of t.getWalker({singleCharacters:!0})){const t=this[Tn("0x4f")](e),n=Tn("0x100")==e.type?e[Tn("0xd1")][Tn("0x16")][Tn("0xab")](0,-1):e[Tn("0xd1")][Tn("0x16")],r=o[Tn("0x15")](n).getAttribute(t);this[Tn("0x0")][Tn("0x5c")](r,{userId:i})}}}this[Tn("0x17")]=this[Tn("0x36")];const t=[...Array(this._revisionId)[Tn("0x6a")]()][Tn("0xab")](1)[Tn("0xd2")]((e=>!this[Tn("0x0")].has(e)));let i=0;const n=new Map;for(const r in e[Tn("0xe2")]){const o=e[Tn("0xe2")][r][Tn("0x7c")],s=yi(e.diffData[r][Tn("0x8")])||{},a=this[Tn("0xbf")](e[Tn("0xe2")][r].insertions);a[Tn("0xf2")]=r,a[Tn("0xa5")]=!o||o[Tn("0xb5")],a.isAttached=()=>a[Tn("0xa5")],this[Tn("0xed")][Tn("0x5c")](r,a),this._diffRootsAttributes[Tn("0x5c")](r,s);const c=this[Tn("0x48")](a,Number[Tn("0x32")]);this[Tn("0xfa")][Tn("0x5c")](r,c),n[Tn("0x5c")](r,a[Tn("0xb5")]()?s:{});for(const[e,t]of a[Tn("0x97")]){if(!e[Tn("0xc6")]("revision:"))continue;const i=e.split(":")[2];for(const e of t[Tn("0xe8")]({singleCharacters:!0})){const t=this[Tn("0x4f")](e),n=this[Tn("0x36")]++,r="elementEnd"==e.type?e[Tn("0xd1")][Tn("0x16")].slice(0,-1):e[Tn("0xd1")][Tn("0x16")];c[Tn("0x15")](r)[Tn("0x103")](t,n),this[Tn("0x0")].set(n,{userId:i})}}for(const e of this[Tn("0x53")].model[Tn("0xa0")](a)[Tn("0xe8")]({singleCharacters:!0})){const n=this._getVidAttributeName(e),r=Tn("0x100")==e[Tn("0x79")]?e[Tn("0xd1")][Tn("0x16")].slice(0,-1):e.previousPosition[Tn("0x16")],o=c[Tn("0x15")](r);o[Tn("0xdc")](n)>0||o._setAttribute(n,t[i++])}for(const[e,t]of a[Tn("0x97")])e[Tn("0xc6")](Tn("0x3c"))||this[Tn("0xc0")][Tn("0x5c")](e,t)}const r=An(Tn("0x87"));this[Tn("0xe5")].set(Tn("0x87"),r),this[Tn("0xba")][Tn("0x5c")]("$graveyard",this[Tn("0x48")](r,1));const o=An(Tn("0x87"));this[Tn("0xed")].set(Tn("0x87"),o),this[Tn("0xfa")][Tn("0x5c")](Tn("0x87"),this[Tn("0x48")](o,1));const s=Array.from(this[Tn("0xed")]).map((([e,t])=>[e,Mn(t)]));this[Tn("0xc3")](this[Tn("0x2")],s,this[Tn("0xc0")],n)}[Tn("0xbf")](e){const t=JSON[Tn("0xb4")](e),i=this[Tn("0x53")][Tn("0xa9")][Tn("0xd8")][Tn("0xe6")],n=new o.ViewDocumentFragment(i,t[Tn("0x25")]((e=>Nn(e,this.editor))));return this[Tn("0x53")][Tn("0x96")][Tn("0x4d")](n)}[Tn("0xc3")](e,t,i,n){const r=new Map(t),o=new Map(yi(n)),s=new Map;for(const[e,t]of i)s.set(e,{start:t.start[Tn("0xad")](),end:t[Tn("0xb7")][Tn("0xad")](),rootName:t[Tn("0x19")][Tn("0xf2")]});this[Tn("0x66")][Tn("0x5c")](e,{roots:r,markers:s,rootsAttributes:o})}[Tn("0xaa")](e){this._savedMetaData[Tn("0x78")](e)}[Tn("0xf1")](){this[Tn("0x9c")](),this[Tn("0xb3")]=-1,this[Tn("0x2")]=-1,this[Tn("0x66")][Tn("0xdb")](),this[Tn("0x35")](this[Tn("0xfc")])}_reset(){this._touched.clear(),this[Tn("0x10b")].clear(),this[Tn("0x8b")][Tn("0xdb")](),this[Tn("0xed")].clear(),this._diffRootsAttributes[Tn("0xdb")](),this[Tn("0xe5")][Tn("0xdb")](),this[Tn("0xff")][Tn("0xdb")](),this[Tn("0xfa")].clear(),this[Tn("0xba")][Tn("0xdb")](),this[Tn("0xc0")][Tn("0xdb")](),this[Tn("0x36")]=1,this._startingRevisionId=this._revisionId}[Tn("0x48")](e,t=null){let i=null;e.is(Tn("0x7d"))||(i=new o.Element(e[Tn("0xb6")],{vid_start:null===t?this[Tn("0x36")]++:t++}));const n=[];for(const i of e[Tn("0x68")]())if(i.is(Tn("0x82"))){n.push(this[Tn("0x48")](i,t));const e=n[n[Tn("0x94")]-1];null!==t&&(t=e.is(Tn("0x82"),Tn("0x12"))?e[Tn("0xdc")](Tn("0xfd"))+1:e[Tn("0xdc")](Tn("0x31"))+1)}else for(let e=0;e<i.offsetSize;e++)n[Tn("0x76")](new o.Element(Tn("0x12"),{vid:null===t?this[Tn("0x36")]++:t++}));if(e.is(Tn("0x7d"))){const t=An(e[Tn("0xf2")]);return t[Tn("0x7e")](0,n),t}return i[Tn("0x103")](Tn("0x31"),null===t?this[Tn("0x36")]++:t++),i[Tn("0x7e")](0,n),i}[Tn("0x45")](e,t,i){this[Tn("0x9c")]();const{roots:n,markers:r,rootsAttributes:s}=this[Tn("0x66")][Tn("0xa")](e);this[Tn("0xe5")]=new Map(n),this[Tn("0xff")]=new Map(yi(s));for(const[e,t]of this[Tn("0xe5")])if(Tn("0x87")!==e&&(this[Tn("0xed")].set(e,Mn(t)),this[Tn("0xb2")]=new Map(yi(s)),i)){const i=this[Tn("0x36")];this[Tn("0xfa")][Tn("0x5c")](e,this[Tn("0x48")](t)),this._baseIdsRoots[Tn("0x5c")](e,this[Tn("0x48")](t,i))}this[Tn("0x17")]=this._revisionId,this._diffRoots[Tn("0x5c")](Tn("0x87"),Mn(this[Tn("0xe5")][Tn("0xa")]("$graveyard"))),i&&this[Tn("0xfa")].set(Tn("0x87"),this._makeIdsRoot(this[Tn("0xe5")][Tn("0xa")]("$graveyard")));for(const[e,t]of r){const i=this._baseRoots[Tn("0xa")](t[Tn("0xf2")]),n=this[Tn("0xed")].get(t.rootName),r=new o.Range(this[Tn("0xb1")](t[Tn("0xa4")],i),this[Tn("0xb1")](t[Tn("0xb7")],i)),s=this._fixRange(r,n);i[Tn("0x97")][Tn("0x5c")](e,r),this[Tn("0xc0")][Tn("0x5c")](e,s)}this._applyOperations(e,t,i)}[Tn("0x101")](e,t,i){for(const n of this.source[Tn("0x58")](e,t))this._handleOperation(n,i);for(const e of this[Tn("0xed")][Tn("0x29")]())e[Tn("0x97")][Tn("0xdb")]();for(const[e,t]of this[Tn("0xc0")])this[Tn("0xed")][Tn("0xa")](t[Tn("0x19")][Tn("0xf2")]).markers[Tn("0x5c")](e,t.clone());const n=new Map,r=new Map;for(const[e,t]of this._diffRoots)n[Tn("0x5c")](e,Mn(t)),r[Tn("0x5c")](e,this[Tn("0xb2")].get(e));this[Tn("0xc3")](t,n,this[Tn("0xc0")],r)}[Tn("0x9b")](e){const t=Array[Tn("0x9")](this[Tn("0x66")][Tn("0x6a")]());t[Tn("0xea")](((e,t)=>e-t)),t[Tn("0xc8")]();for(const i of t)if(i<e)return i;return Number[Tn("0x32")]}_copyMarkers(e,t){const i=Array[Tn("0x9")](t.markers)[Tn("0x25")]((([t,i])=>[t,this[Tn("0xbd")](i,e)]));e[Tn("0x97")]=new Map(i)}[Tn("0x72")](e){for(const t of this[Tn("0xc0")][Tn("0x29")]()){const i=t[Tn("0x92")](e),n=o.Range[Tn("0x73")](i);t[Tn("0xa4")]=n[Tn("0xa4")],t.end=n[Tn("0xb7")]}}[Tn("0x63")](e,t){if(Tn("0x6d")==e[Tn("0x79")]||Tn("0xf6")==e[Tn("0x79")])return void this[Tn("0x88")](e,t);if(Tn("0xa8")==e[Tn("0x79")]){const i=e[Tn("0x23")].root[Tn("0xf2")];this[Tn("0xed")].has(i)||(this[Tn("0xed")].set(i,An(i,!0)),this[Tn("0xb2")][Tn("0x5c")](i,{}),t&&this._idsRoots.set(i,An(i,!0)))}if(Tn("0xd4")==e[Tn("0x79")]||Tn("0x11")==e.type||Tn("0x6e")==e[Tn("0x79")])return void this[Tn("0xcf")](e);const i=this[Tn("0xeb")](e,this._diffRoots);if(Tn("0xc2")!==e[Tn("0x79")]&&(i[Tn("0xf4")](),this[Tn("0x72")](i)),t)switch(i[Tn("0x79")]){case"insert":this[Tn("0xdf")](e);break;case"move":case Tn("0x80"):case Tn("0x84"):this._handleMoveOperation(e);break;case Tn("0xb8"):this[Tn("0xf")](e);break;case Tn("0x75"):this._handleSplitOperation(e);break;case Tn("0xc2"):this[Tn("0x20")](e)}}[Tn("0xeb")](e,t){const i=e[Tn("0xad")]();return i._authorId=e[Tn("0xd")],this._fixOperation(i,t),i}[Tn("0x106")](e){return e.map((e=>{const t=this[Tn("0x4f")](e);return Number(e.item[Tn("0xdc")](t))}))}_generateTape(e,t){if(e.is(Tn("0x82"),Tn("0x12")))t[Tn("0x76")]({item:e,type:"text"});else{e.is("element")&&t.push({item:e,type:Tn("0x108")});for(const i of e[Tn("0x68")]())this._generateTape(i,t);e.is(Tn("0x82"))&&t.push({item:e,type:Tn("0x100")})}return t}[Tn("0xfb")](){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._baseRoots[Tn("0x6a")](),...this[Tn("0xed")][Tn("0x6a")]()]);s[Tn("0x78")](Tn("0x87"));for(const e of s){const t=this._diffRoots.get(e)||An(e,!1),i=this[Tn("0xe5")][Tn("0xa")](e)||An(e,!1);t[Tn("0xb5")]()||i[Tn("0xb5")]()?(n[Tn("0x7a")][e]=Mn(t),n[Tn("0x8d")][e]=Mn(i),this[Tn("0x105")](n[Tn("0x8d")][e],i),this[Tn("0x105")](n[Tn("0x7a")][e],t),r[Tn("0x7a")][e]=this._generateTape(this[Tn("0xfa")][Tn("0xa")](e),[]),r.deletions[e]=this[Tn("0x9e")](this[Tn("0xba")][Tn("0xa")](e)||An(e,!1),[])):s.delete(e)}for(const n of s){const o=r[Tn("0x7a")][n];for(const n of o){const r=this[Tn("0x4f")](n),o=n[Tn("0xc4")][Tn("0xdc")](r);t[Tn("0x78")](o),o>=this[Tn("0x17")]&&i[Tn("0x5c")](o,e[Tn("0xa")](o))}}for(const n of s){const s=r.insertions[n],a=this[Tn("0x106")](r[Tn("0x8d")][n]);let c=0;for(const n of s){const r=this[Tn("0x4f")](n),s=n.item[Tn("0xdc")](r);if(!i[Tn("0x85")](s)&&!o[Tn("0x85")](s))if(t[Tn("0x85")](s))c++;else{if(s!=a[c]){const i=e[Tn("0xa")](s)||e[Tn("0xa")](a[c]);for(;s!=a[c];)t[Tn("0x85")](a[c])||(o.set(a[c],i),e[Tn("0x5c")](a[c],i)),c++}c++}}}for(const e of s){const n=r.insertions[e];for(const e of n){const n=this[Tn("0x4f")](e),r=e[Tn("0xc4")].getAttribute(n);if(o[Tn("0x85")](r)){const e=o[Tn("0xa")](r);t[Tn("0x85")](r)||t[Tn("0x5c")](r,{...e}),i.set(r,{...e})}}}for(const e of t[Tn("0x6a")]())e>=this[Tn("0x17")]&&t[Tn("0x78")](e);const a=new Map;for(const e of s){let n=r[Tn("0x7a")][e];for(const e of n)if(e.item.is("element","tableCell")){const t=this[Tn("0x4f")](e),n=e[Tn("0xc4")][Tn("0xdc")](t);if(i[Tn("0x85")](n)){const t=e[Tn("0xc4")][Tn("0x4")][Tn("0x4")][Tn("0xdc")](Tn("0x5b")),r=a.get(t)||new Set;r[Tn("0x26")](i[Tn("0xa")](n)[Tn("0xd3")]),a.set(t,r)}}n=r[Tn("0x8d")][e];for(const e of n)if(e.item.is(Tn("0x82"),"tableCell")){const i=this[Tn("0x4f")](e),n=e[Tn("0xc4")].getAttribute(i);if(t[Tn("0x85")](n)){const i=e[Tn("0xc4")][Tn("0x4")].parent[Tn("0xdc")]("vid_start"),r=a[Tn("0xa")](i)||new Set;r[Tn("0x26")](t[Tn("0xa")](n)[Tn("0xd3")]),a[Tn("0x5c")](i,r)}}for(const e of a[Tn("0x6a")]())(i.has(e)||t[Tn("0x85")](e))&&a[Tn("0x78")](e)}for(const e of s){const n=r[Tn("0x7a")][e];let o=null,s=null;for(const e of n){const n=this._getVidAttributeName(e),r=e[Tn("0xc4")][Tn("0xdc")](n),c=a.get(r);c&&Tn("0x108")==e.type&&(o=Array.from(c)[0],s=e[Tn("0xc4")].getAttribute(Tn("0x31"))),o&&(t[Tn("0x5c")](r,{userId:o}),i[Tn("0x5c")](r,{userId:o})),r==s&&(o=null,s=null)}}const c={},u=new Set;for(const e of s){const o=n.deletions[e],s=n[Tn("0x7a")][e];for(const{userId:e}of this[Tn("0x10b")].values())null!==e&&u[Tn("0x26")](e);for(const{userId:e}of this[Tn("0x8b")][Tn("0x29")]())null!==e&&u[Tn("0x26")](e);this[Tn("0x1c")](s,r[Tn("0x7a")][e],i,Tn("0xa6"),u),this[Tn("0x1c")](o,r[Tn("0x8d")][e],t,Tn("0x3e"),u),c[e]={insertions:this._prepareViewToSave(s),deletions:this[Tn("0x77")](o),attachChange:this._touchedRoots[Tn("0xa")](e)||null,attributesBefore:yi(this[Tn("0xff")][Tn("0xa")](e))||{},attributesAfter:yi(this._diffRootsAttributes[Tn("0xa")](e))}}return{diffData:c,authorsIds:Array.from(u)}}[Tn("0xcc")](e){for(const[,t]of e[Tn("0x97")]){const e=t[Tn("0xa4")][Tn("0xd7")]()[Tn("0xd2")]((e=>Tn("0x6f")==e[Tn("0xb6")]));for(const t of e)1==t[Tn("0xf9")]&&t[Tn("0xf3")](0).is("element",Tn("0x6b"))&&t[Tn("0xf3")](0)._setAttribute(Tn("0xde"),!0)}}[Tn("0x77")](e){this[Tn("0xcc")](e);const t=this[Tn("0x53")][Tn("0x96")][Tn("0x83")](e,{}),i=Array.from(t[Tn("0x68")]()).map((e=>this[Tn("0x8c")](e)));return JSON.stringify(i)}_getViewJson(e){if(e.is(Tn("0x12")))return e[Tn("0x96")];{const t=e;return{type:Object[Tn("0x6a")](Rn)[Tn("0x33")]((t=>e instanceof Rn[t])),name:t[Tn("0xb6")],attributes:Array[Tn("0x9")](t.getAttributes()),children:Array.from(t[Tn("0x68")]())[Tn("0x25")]((e=>this[Tn("0x8c")](e)))}}}_markChanges(e,t,i,n,r){let o=null,s=null,a=0;const c=this[Tn("0x53")][Tn("0x98")];for(let n=0;n<t[Tn("0x94")];n++){const r=this._getVidAttributeName(t[n]),a=t[n][Tn("0xc4")][Tn("0xdc")](r),d=i[Tn("0xa")](a),l=n==t.length-1;!o&&d&&(o=d,s=t[n]),o&&(!d||d[Tn("0xd3")]!=o[Tn("0xd3")])&&(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[Tn("0xd3")],d=Tn("0x3c")+n+":"+u+":"+a++,l=c[Tn("0x74")](i,s);e[Tn("0x97")][Tn("0x5c")](d,l),null!==u&&r.add(u)}}_getVidAttributeName(e){switch(e[Tn("0x79")]){case Tn("0x108"):return Tn("0x5b");case Tn("0x100"):return Tn("0x31");default:return Tn("0xfd")}}[Tn("0x107")](e,t){e[Tn("0x3a")]=null;for(const i in e){const n=e[i];if(n instanceof o.Position){const r=t[Tn("0xa")](n[Tn("0x19")].rootName);e[i]=this[Tn("0xb1")](n,r)}if(n instanceof o.Range){const r=t[Tn("0xa")](n[Tn("0x19")].rootName);e[i]=this[Tn("0xbd")](n,r)}"root"===i&&(e[Tn("0x19")]=t.get(e[Tn("0x19")].rootName))}}[Tn("0xbd")](e,t){return this[Tn("0x53")].model[Tn("0x74")](this[Tn("0xb1")](e[Tn("0xa4")],t),this[Tn("0xb1")](e[Tn("0xb7")],t))}[Tn("0xb1")](e,t){return this[Tn("0x53")][Tn("0x98")][Tn("0xb9")](t,e[Tn("0x16")],e[Tn("0xc5")])}[Tn("0xdf")](e){const t=this[Tn("0xfa")][Tn("0xa")](e[Tn("0x23")][Tn("0x19")][Tn("0xf2")]),i=this[Tn("0xb1")](e.position,t),n=null===e[Tn("0xd")]?null:e._authorId||this[Tn("0x53")].plugins.get("Users").me.id,r=i[Tn("0x4")],s=this[Tn("0x36")],a=[];for(const t of e[Tn("0x40")])if(t.is(Tn("0x82")))a[Tn("0x76")](this._makeIdsRoot(t));else for(let e=0;e<t[Tn("0x4c")];e++)a.push(new o.Element(Tn("0x12"),{vid:this[Tn("0x36")]++}));const c=this[Tn("0x36")];for(let e=s;e<c;e++)this[Tn("0x0")][Tn("0x5c")](e,{userId:n});r[Tn("0x7e")](i[Tn("0x57")],a)}[Tn("0x37")](e){(e=this[Tn("0xeb")](e,this._idsRoots))[Tn("0xf4")]();const t=null===e[Tn("0xd")]?null:e._authorId||this.editor.plugins[Tn("0xa")](Tn("0x5e")).me.id,i=e.getMovedRangeStart(),n=i[Tn("0x4")],r=i[Tn("0x57")];!function e(i,n,r,o){for(let s=r;s<o;s++){const r=n[Tn("0xf3")](s);r.is(Tn("0x82"),"$text")?i[Tn("0x5c")](r[Tn("0xdc")](Tn("0xfd")),{userId:t}):(i[Tn("0x5c")](r[Tn("0xdc")](Tn("0x5b")),{userId:t}),e(i,r,0,r[Tn("0xf9")]),i[Tn("0x5c")](r[Tn("0xdc")](Tn("0x31")),{userId:t}))}}(this[Tn("0x0")],n,r,r+e[Tn("0xcb")])}_handleMergeOperation(e){const t=null===(e=this[Tn("0xeb")](e,this[Tn("0xfa")]))[Tn("0xd")]?null:e._authorId||this.editor[Tn("0x1d")].get(Tn("0x5e")).me.id,i=e[Tn("0xa2")][Tn("0x4")],n=e.sourcePosition.parent,r=i[Tn("0xdc")](Tn("0x31")),o=n[Tn("0xdc")](Tn("0x5b"));i[Tn("0x103")](Tn("0x31"),n[Tn("0xdc")](Tn("0x31"))),n[Tn("0x103")](Tn("0x31"),r),this[Tn("0x0")][Tn("0x5c")](o,{userId:t}),this[Tn("0x0")].set(r,{userId:t}),e[Tn("0xf4")]()}[Tn("0x104")](e){const t=null===(e=this._cloneOperation(e,this[Tn("0xfa")]))[Tn("0xd")]?null:e[Tn("0xd")]||this[Tn("0x53")][Tn("0x1d")].get("Users").me.id,i=e[Tn("0x5d")],n=e[Tn("0x27")][Tn("0x4")];e[Tn("0xf4")]();const r=n[Tn("0xdc")](Tn("0x31")),o=e[Tn("0xb")][Tn("0x7f")];if(i){const e=o[Tn("0xdc")]("vid_end"),i=n[Tn("0xdc")]("vid_end");n[Tn("0x103")](Tn("0x31"),e),o[Tn("0x103")](Tn("0x31"),i),this[Tn("0x0")][Tn("0x5c")](n[Tn("0xdc")](Tn("0x31")),{userId:t}),this[Tn("0x0")][Tn("0x5c")](o.getAttribute(Tn("0x5b")),{userId:t})}else{const e=this[Tn("0x36")]++,i=this._revisionId++;n[Tn("0x103")](Tn("0x31"),e),o[Tn("0x103")](Tn("0x5b"),i),o[Tn("0x103")](Tn("0x31"),r),this._touched.set(e,{userId:t}),this[Tn("0x0")].set(i,{userId:t})}}[Tn("0x20")](e){if(!e[Tn("0xa1")])return;const t=(e=this._cloneOperation(e,this._diffRoots))[Tn("0xdd")]?e[Tn("0xdd")].root:null,i=e.newRange?e[Tn("0xca")][Tn("0x19")]:null;t&&this[Tn("0xc0")].delete(e[Tn("0xb6")]),i&&this[Tn("0xc0")][Tn("0x5c")](e[Tn("0xb6")],e[Tn("0xca")][Tn("0xad")]());const n=null===e[Tn("0xd")]?null:e._authorId||this[Tn("0x53")][Tn("0x1d")][Tn("0xa")](Tn("0x5e")).me.id,r=e[Tn("0xb6")];if(!this[Tn("0x10b")][Tn("0x85")](r))return void this[Tn("0x10b")][Tn("0x5c")](r,{range:e[Tn("0xdd")],userId:n});const o=this[Tn("0x10b")][Tn("0xa")](r),s=o.range,a=e[Tn("0xca")];null==s&&null==a||s&&a&&s[Tn("0x21")](a)?this[Tn("0x10b")].delete(e[Tn("0xb6")]):o[Tn("0xd3")]=n}[Tn("0x88")](e,t){this._diffRoots[Tn("0x85")](e[Tn("0xf2")])?this[Tn("0xed")].get(e.rootName)[Tn("0xa5")]=e[Tn("0x71")]:(this[Tn("0xed")].set(e[Tn("0xf2")],An(e[Tn("0xf2")],!0)),this[Tn("0xb2")][Tn("0x5c")](e.rootName,{}),t&&this._idsRoots[Tn("0x5c")](e[Tn("0xf2")],An(e[Tn("0xf2")],!0)));const i=null===e[Tn("0xd")]?null:e._authorId||this[Tn("0x53")].plugins.get(Tn("0x5e")).me.id,n=this[Tn("0x8b")][Tn("0xa")](e[Tn("0xf2")]);n&&n[Tn("0xd3")]===i?this[Tn("0x8b")][Tn("0x78")](e[Tn("0xf2")]):this._touchedRoots[Tn("0x5c")](e[Tn("0xf2")],{userId:i,isAttached:e[Tn("0x71")]})}[Tn("0xcf")](e){const t=this[Tn("0xb2")][Tn("0xa")](e[Tn("0x19")][Tn("0xf2")]);null===e.newValue?delete t[e[Tn("0x54")]]:t[e.key]=e[Tn("0xb0")]}}function Mn(e){const t=An(e[Tn("0xf2")],e[Tn("0xb5")]());for(const i of e[Tn("0x68")]()){const e=i[Tn("0x81")](!0);t._appendChild(e)}return t}function An(e,t=!0){const i=new o.DocumentFragment;return i[Tn("0xf2")]=e,i._isAttached=t,i[Tn("0xb5")]=()=>i[Tn("0xa5")],i}function En(e,t,i){const n=Tn("0x100")==e[Tn("0x79")]?i[Tn("0x24")](e[Tn("0xc4")],"end"):i.createPositionBefore(e[Tn("0xc4")]);return i[Tn("0xb9")](t,n[Tn("0x16")],n.stickiness)}function jn(e,t,i){const n=Tn("0x108")==e[Tn("0x79")]?i[Tn("0x24")](e.item,0):i[Tn("0x60")](e[Tn("0xc4")]);return i.createPositionFromPath(t,n.path,n[Tn("0xc5")])}var Dn=i(273),Cn=i(278),Fn=i.n(Cn),Ln=i(996),Pn={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fn()(Ln.Z,Pn);Ln.Z.locals;var zn=i(542),Zn={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fn()(zn.Z,Zn);zn.Z.locals;const Un=["render","Name of the revision (optional)","arrowleft","ck-responsive-form","trim","arrowup","set","element","_focusables","add","label","_createRevisionNameInput","arrowdown","type","Save","forEach","ck-revision-history-save-revision-form","revisionNameInputValue","form","saveButtonView","keystrokes","cancelButtonView","_focusCycler","shift + tab","revisionName","fieldView","focusTracker","input","check","focus","submit","value","tab","execute","focusFirst","revisionNameInputView","220","_createButton","arrowright","extendTemplate","delegate","locale","cancel"];var Hn,qn;Hn=Un,qn=293,function(e){for(;--e;)Hn.push(Hn.shift())}(++qn);const Bn=function(e,t){return Un[e-=0]};class Wn extends Dn.View{constructor(i){super(i),this.focusTracker=new t.FocusTracker,this[Bn("0x1c")]=new t.KeystrokeHandler,this.set(Bn("0x19"),""),this[Bn("0x0")]=this[Bn("0x13")](),this[Bn("0x1b")]=this[Bn("0x2")](en(i,Bn("0x16")),e.icons[Bn("0x24")],"ck-button-save"),this[Bn("0x1b")][Bn("0x15")]=Bn("0x26"),this[Bn("0x1d")]=this[Bn("0x2")](en(i,"Cancel"),e.icons.cancel,"ck-button-cancel",Bn("0x7")),this[Bn("0x10")]=new Dn.ViewCollection,this[Bn("0x1e")]=new Dn.FocusCycler({focusables:this[Bn("0x10")],focusTracker:this[Bn("0x22")],keystrokeHandler:this[Bn("0x1c")],actions:{focusPrevious:Bn("0x1f"),focusNext:Bn("0x28")}}),this.setTemplate({tag:Bn("0x1a"),attributes:{class:["ck",Bn("0x18"),Bn("0xb")],tabindex:"-1"},children:[this[Bn("0x0")],this[Bn("0x1b")],this.cancelButtonView]}),(0,Dn.injectCssTransitionDisabler)(this)}[Bn("0x8")](){super.render(),(0,Dn.submitHandler)({view:this}),[this[Bn("0x0")],this[Bn("0x1b")],this.cancelButtonView][Bn("0x17")]((e=>{this[Bn("0x10")][Bn("0x11")](e),this[Bn("0x22")][Bn("0x11")](e.element)})),this[Bn("0x1c")].listenTo(this.element);const e=e=>e.stopPropagation();this[Bn("0x1c")].set(Bn("0x3"),e),this[Bn("0x1c")][Bn("0xe")](Bn("0xa"),e),this[Bn("0x1c")][Bn("0xe")](Bn("0xd"),e),this[Bn("0x1c")][Bn("0xe")](Bn("0x14"),e)}[Bn("0x25")](){this[Bn("0x1e")][Bn("0x2a")]()}get[Bn("0x20")](){return this[Bn("0x0")][Bn("0x21")].element[Bn("0x27")].trim()}set[Bn("0x20")](e){this[Bn("0x0")][Bn("0x21")].element[Bn("0x27")]=e[Bn("0xc")]()}reset(){this[Bn("0x0")].fieldView.element[Bn("0x27")]=""}[Bn("0x13")](){const e=new Dn.LabeledFieldView(this[Bn("0x6")],Dn.createLabeledInputText),t=e[Bn("0x21")];return t[Bn("0x4")]({attributes:{maxlength:Bn("0x1")}}),e[Bn("0x12")]=en(this[Bn("0x6")],Bn("0x9")),t.on(Bn("0x23"),(()=>{this[Bn("0x19")]=t[Bn("0xf")][Bn("0x27")].trim()})),e}[Bn("0x2")](e,t,i,n){const r=new Dn.ButtonView(this[Bn("0x6")]);return r.set({label:e,icon:t,tooltip:!0}),r[Bn("0x4")]({attributes:{class:i}}),n&&r[Bn("0x5")](Bn("0x29")).to(this,n),r}}const Jn='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><g><path d="M11 1a9 9 0 1 1-8.027 13.075l1.128-1.129A7.502 7.502 0 0 0 18.5 10a7.5 7.5 0 1 0-14.962.759l-.745-.746-.76.76A9 9 0 0 1 11 1z"/><path d="M.475 8.17a.75.75 0 0 1 .978.047l.075.082 1.284 1.643 1.681-1.284a.75.75 0 0 1 .978.057l.073.083a.75.75 0 0 1-.057.978l-.083.073-2.27 1.737a.75.75 0 0 1-.973-.052l-.074-.082-1.741-2.23a.75.75 0 0 1 .13-1.052z"/><path d="M11.5 5v4.999l3.196 3.196-1.06 1.06L10.1 10.72l-.1-.113V5z"/></g></svg>\n',Gn=["reset","panelView","length","remove","isReadOnly","children","execute","plugins","pluginName","isOpen","get","saveRevision","config","render","items","editor","bind","focus","RevisionHistoryUI","add","change:isOpen","buttonView","Save current revision","isEnabled","cancel","componentFactory","isReady","set"];var Yn,$n;Yn=Gn,$n=430,function(e){for(;--e;)Yn.push(Yn.shift())}(++$n);const Kn=function(e,t){return Gn[e-=0]};class Xn extends e.Plugin{static get[Kn("0x1a")](){return Kn("0x8")}static get requires(){return[In]}init(){const e=this[Kn("0x5")],t=e[Kn("0x19")][Kn("0x0")]("RevisionTracker");e.ui[Kn("0xf")].add("revisionHistory",(i=>{const n=(0,Dn.createDropdown)(i),r=n[Kn("0x13")][Kn("0x17")],o=new Dn.ListView(i),s=new Dn.ListItemView(i),a=new Dn.ButtonView(i),c=new Dn.ListItemView(i),u=new Dn.ButtonView(i),d=new Wn(i);function l(){r[Kn("0x14")]&&r[Kn("0x15")](0),r[Kn("0x9")](o)}function x(){n[Kn("0x1b")]=!1,e.editing.view[Kn("0x7")]()}return n[Kn("0x6")](Kn("0xd")).to(t,Kn("0x10"),t,Kn("0xd"),e,Kn("0x16"),((e,t,i)=>e&&t&&!i)),n[Kn("0xb")][Kn("0x11")]({icon:Jn,label:en(i,"Revision history"),tooltip:!0}),a[Kn("0x11")]({label:en(i,Kn("0xc")),withText:!0}),a[Kn("0x6")](Kn("0xd")).to(t,Kn("0x10"),t,Kn("0xd"),e,"isReadOnly",((e,t,i)=>e&&t&&!i)),a.on("execute",(()=>(r[Kn("0x14")]&&r.remove(0),d[Kn("0x12")](),r.add(d),void d[Kn("0x7")]()))),u[Kn("0x11")]({label:en(i,"Open revision history"),withText:!0}),u.bind("isEnabled").to(t,Kn("0x10"),e,"isReadOnly",((e,t)=>e&&!t)),u.on(Kn("0x18"),(()=>{e[Kn("0x2")][Kn("0x0")]("revisionHistory").showRevisionViewerCallback(),x()})),s[Kn("0x17")][Kn("0x9")](a),c[Kn("0x17")][Kn("0x9")](u),o[Kn("0x4")].addMany([s,c]),n.on(Kn("0xa"),(()=>l())),d.saveButtonView[Kn("0x6")](Kn("0xd")).to(t,"isReady",t,Kn("0xd"),e,Kn("0x16"),((e,t,i)=>e&&t&&!i)),d.on("submit",(()=>(e.plugins[Kn("0x0")](In)[Kn("0x1")]({name:d.revisionName}),void x()))),d.on(Kn("0xe"),(()=>l())),d[Kn("0x3")](),l(),n}))}}const Qn=["Removed by","isSuggestion","span","ck-revision-change","type","Suggested by","Added by","add","focus","setTemplate","_model","ck-revision-change__","author","ck-annotation","data","div"];var er,tr;er=Qn,tr=278,function(e){for(;--e;)er.push(er.shift())}(++tr);const ir=function(e,t){return Qn[e-=0]};class nr extends Dn.View{constructor(e,t){super(e),this[ir("0x4")]=t,this.changeId=t.id;const i=this.bindTemplate,n=en(e,t[ir("0x8")][ir("0xb")]?ir("0xf"):ir("0x1")==t.type?ir("0x0"):ir("0xa"));this.set(ir("0xe"),t[ir("0xe")]),this[ir("0x3")]({tag:ir("0x9"),attributes:{class:[ir("0x7"),ir("0xd"),i.to("type",(e=>ir("0x5")+e))],tabindex:-1},children:[{tag:ir("0xc"),children:[{tag:"span",attributes:{class:["ck-revision-change__label"]},children:[{text:n}]},{text:" "+t[ir("0x6")].name}]}]})}[ir("0x2")](){this.element[ir("0x2")]()}}var rr,or,sr=["data","toJSON","author","rootName","type","createdAt","set"];rr=sr,or=352,function(e){for(;--e;)rr.push(rr.shift())}(++or);var ar=function(e,t){return sr[e-=0]};class cr extends((0,t.ObservableMixin)()){constructor(e){super(),this.id=e.id||(0,t.uid)(),this[ar("0x0")]=e[ar("0x0")],this[ar("0x2")]=e[ar("0x2")],this.data=e[ar("0x5")]||{},this[ar("0x1")]=e[ar("0x1")],this[ar("0x4")](ar("0x3"),e[ar("0x3")])}[ar("0x6")](){return{id:this.id,authorId:this.author.id,type:this[ar("0x2")],data:this[ar("0x5")],createdAt:this.createdAt}}}const ur=["changes","oldRevisionId","newRevisionId"];var dr,lr;dr=ur,lr=364,function(e){for(;--e;)dr.push(dr.shift())}(++lr);const xr=function(e,t){return ur[e-=0]};class hr{constructor(e,i){this[xr("0x1")]=e,this[xr("0x0")]=i,this[xr("0x2")]=new t.Collection}_setChanges(e){for(const t of e)this[xr("0x2")].add(t)}}var fr=i(288),vr={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fn()(fr.Z,vr);fr.Z.locals;const mr=["getWalker","object","removeMarker:revision","previousPosition","parent","pop","add","change:numberOfChanges","change:activeView","hasClass","abs","insert","bindElementToMarker","changes","startsWith","_getViewForChange","isIncorrect","removeMarker:revision-suggestion","observeMarkers","roots","createUIElement","all","requires","activeChange","_threeWayMerge","repository","RevisionsRepository","top","_removeUnsupportedChanges","isReady","change:isEnabled","markerNameToElements","getClientRects","_refreshStartEndIndex","userId","ck-suggestion-marker-merge","updatePosition","_sortAndFilterDiffChanges","ck-revision-history-root--active","editingDowncast","ck-suggestion-marker","markers","isBefore","ck-suggestion-marker--active","then","commands","remove","sort","from","markersStart","ck-suggestion-marker-split","nextPosition","modelRange","splice","createPositionFromPath","target","isEqual","attributesAfter","isAtStart","adapter","right","collaboration.channelId","_markSuggestions","_changeView","showStack","addHighlight","next","includes","test","createRangeIn","revision","item","_removeRevisionMarkers","split","ck-suggestion-preview-marker-","_getViewObj","map","getAttributes","_cleanUp","has","_data","type","deletion","WidgetToolbarRepository","getChild","change:activeChange","backward","destroy","error","schema","attributes","isBlock","vid_end","index","isAddSuggestion","getRevisionRootsAttributes","addMarker:revision-suggestion:deletion","shift","isObject","_step","elementEnd","revision-comment:","level","change","concat","end","element","comment","isAtEnd","merge","domConverter","changeId","RevisionViewer","_balloon","resolve","execute","unbindElementFromMarkerName","text","maxOffset","addMarker:revision","activeView","get","marked","init","markerRange","markerToData","_getRevisionsRange","indexOf","revision-suggestion:","listenTo","revisionHistoryLabel","_update","_markMarkers","isSuggestion","_removeMissingPairs","revision-viewer","low","consumable","domEvent","isEnabled","high","model","pairId","ck-suggestion-preview-marker","elementToAttribute","createRevision","catch","findIndex","delete","set","mapViewToDom","nextSibling","detachRoot","_setDistance","toViewPosition","_joinTapes","filter","conversion","_cleanMarkers","diff","isRemoved","editor","name","downcastDispatcher","elementStart","start","toViewRange","mapper","bind","toData","_setConversion","processor","showPreviousChange","mouseover","isCollapsed","insertion","values","_initInteractions","getCustomProperty","createRange","getRootNames","_makeTape","-new","insertions","_getChangeFromId","attachChange","forEach","view","for","viewItem","setAttribute","forward","distance","done","_changeIdToChange","getRevisionData","rootName","markerName","removeClass","change:isReady","keys","_appendChild","isContent","writer","revision:","revision-suggestion","reconvertMarker","ck-editor__editable__overlay","getIndex","dataToMarker","isOnRoot","config","_fixObsoleteTags","authors","loadRevisionData","dataDowncast","isAdded","side","refresh","length","hasAttribute","endIndex","_markInsertions","oldRevisionId","getItems","isAttached","isLimit","vid","addClass","default","uiElement","isInline","data-change-id","getRoot","slice","getRevision","revision-end","_revisions","document","string","bottom","data","newRevisionId","isRemoveSuggestion","children","ck-revision-history-root-","left","ck-suggestion-marker-","flat","mousedown","push","diffData","_makeModelFromTape","removeMarker","clear","_activeViewTarget","startIndex","vid_start","editing","find","span","unshift","code","addRevision","offsetSize","useFillerType","ck-revision-history-root-add","ck-revision-history-root-remove","checkAttribute","addMarker:revision-suggestion:insertion","_makeModelFromViewString","parse","affectsData","_findChangeIdFromDomTarget","getAttribute","upcast","revisionHistoryAttachChange","plugins","markersEnd","createPositionBefore","toModel","highest","consume","nodeAfter","revision-start"];var gr,pr;gr=mr,pr=143,function(e){for(;--e;)gr.push(gr.shift())}(++pr);const yr=function(e,t){return mr[e-=0]},br={c:o.ViewContainerElement,a:o.ViewAttributeElement,e:o.ViewEmptyElement,r:o.ViewRawElement,u:o.ViewUIElement};class kr extends e.Plugin{static get pluginName(){return yr("0xfe")}static get[yr("0xa4")](){return[r.Users,Dn.ContextualBalloon,Qi]}constructor(e){super(e),this[yr("0xa7")]=this[yr("0x12")][yr("0x86")][yr("0x107")](yr("0xa8")),this[yr("0x6")]("activeChange",null),this[yr("0x6")](yr("0x106"),null),this._activeViewTarget=null,this[yr("0x6")](yr("0x10"),null),this[yr("0x6")](yr("0xab"),!1),this[yr("0x6")](yr("0x119"),!0),this.on(yr("0xac"),((e,t,i)=>{this[yr("0xa5")]=null,this[yr("0x106")]=null,this[yr("0x12")].editing.view[yr("0xf5")]((e=>{for(const t of this[yr("0x12")][yr("0x73")].view.document[yr("0xa1")])i?e.removeClass(yr("0x40"),t):e[yr("0x55")](yr("0x40"),t)}))})),this.bind("isNavigationMode").to(this,yr("0xa5"),(e=>null!==e)),this[yr("0x19")]("currentChangeNumber").to(this,yr("0xab"),this,yr("0x10"),this,yr("0xa5"),((e,t,i)=>e&&i?t[yr("0x9b")][yr("0x41")](i):0)),this[yr("0x19")]("numberOfChanges").to(this,"isReady",this,yr("0x10"),((e,t)=>e?t.changes[yr("0x4c")]:0)),this[yr("0xcd")]=null,this[yr("0x33")]=new Map,this[yr("0xc9")]=null,this[yr("0xff")]=this.editor[yr("0x86")].get(Dn.ContextualBalloon)}[yr("0x109")](){const e=this[yr("0x12")],t=new Sr(e,{direction:yr("0xe4")}),i=new Sr(e,{direction:yr("0x30")});e.commands.add(yr("0x1d"),t),e[yr("0xbb")][yr("0x94")]("showNextChange",i),e[yr("0xbb")].add("restoreRevision",new wr(e)),this.on(yr("0x95"),(()=>{t[yr("0x4b")](),i[yr("0x4b")]()})),this[yr("0x1b")](),this[yr("0x22")](),e.enableReadOnlyMode(yr("0x115")),e.plugins.has(yr("0xe1"))&&e[yr("0x86")][yr("0x107")](yr("0xe1")).forceDisabled(yr("0x115"))}async[yr("0x34")](e){await this[yr("0x47")](e);const t={};for(const i in e[yr("0x6c")]){if(e[yr("0x6c")][i].attachChange&&!e.diffData[i][yr("0x2a")][yr("0x52")])continue;const n=this[yr("0xd6")](JSON[yr("0x80")](e[yr("0x6c")][i][yr("0x28")])),r=this[yr("0x12")][yr("0x73")][yr("0x2c")][yr("0x5f")],s=new o.ViewDocumentFragment(r,n[yr("0xda")]((e=>this[yr("0xd9")](e))));this.editor[yr("0x62")].processor[yr("0x7a")](yr("0x108")),t[i]=this[yr("0x12")][yr("0x62")][yr("0x1c")][yr("0x1a")](s),this[yr("0x12")][yr("0x62")][yr("0x1c")].useFillerType(yr("0x56"))}return t}async[yr("0xed")](e){await this[yr("0x47")](e);const t={};for(const i in e.diffData)e[yr("0x6c")][i][yr("0x2a")]&&!e[yr("0x6c")][i][yr("0x2a")][yr("0x52")]||(t[i]=e[yr("0x6c")][i][yr("0xc7")]||{});return t}[yr("0xd6")](e){return(e=e[yr("0xd")]((e=>!e[yr("0x13")]||yr("0x8d")!==e.name&&yr("0x5d")!==e[yr("0x13")])))[yr("0x2b")]((e=>{yr("0x60")!=typeof e&&(e.children=this[yr("0xd6")](e.children),e[yr("0xe8")]=e[yr("0xe8")].filter((e=>!e[0][yr("0x9c")]("data-revision-"))))})),e}async compare(e,t,i=!1){if(!this[yr("0x119")])return;const n=this[yr("0x10")],r=this[yr("0xa7")],o=yr("0x60")==typeof e?r[yr("0x5c")](e):e,s=yr("0x60")==typeof t?r[yr("0x5c")](t):t,a=o.id,c=s?s.id:null;if(!i&&this[yr("0x10")]&&this.diff[yr("0x63")]===a&&this.diff[yr("0x50")]===c)return Promise[yr("0x100")]();this[yr("0xab")]=!1,this[yr("0x106")]=null,this[yr("0xa5")]=null,this[yr("0x10")]=new hr(a,c);const u=this[yr("0x10c")](o,s,!0)[yr("0xda")]((e=>this[yr("0x47")](e)));return u[yr("0x6b")](new Promise((e=>{setTimeout(e,20)}))),Promise[yr("0xa3")](u)[yr("0xba")]((()=>{if(!this[yr("0x119")])return;this[yr("0xdc")]();const e=this._getDiff(a,c);for(const t of e.changes)this[yr("0x33")][yr("0x6")](t.id,t);this[yr("0x12")].model.enqueueChange({isUndoable:!1},(t=>{for(const e of this[yr("0x12")][yr("0x11b")].document.getRootNames())t.detachRoot(e);for(const i of Object[yr("0x39")](e[yr("0x11b")])){const n=t.addRoot(i);for(const r of Object[yr("0x39")](e[yr("0xe8")][i]))t[yr("0x2f")](r,e[yr("0xe8")][i][r],n);t.insert(e[yr("0x11b")][i],n,0)}})),this[yr("0x10")]._setChanges(this[yr("0xb3")](e[yr("0x9b")])),this[yr("0xab")]=!0}))[yr("0x3")]((e=>{console[yr("0xe6")](e),this[yr("0xdc")](),n&&(this[yr("0x10")]=n),this[yr("0xab")]=!0}))}addRevisionData(e,t){const i=this[yr("0xa7")][yr("0x2")](e);return i.on(yr("0x111"),((e,n,r)=>t(n,r,i))),this[yr("0xa7")][yr("0x78")](i),i}[yr("0x47")](e){if(!e||e[yr("0x6c")])return Promise[yr("0x100")]();{const t=this[yr("0x12")].config[yr("0x107")](yr("0xcb"));return this[yr("0xc9")].getRevision({channelId:t,revisionId:e.id}).then((t=>{e[yr("0x111")]({diffData:t[yr("0x6c")]},!0)}))}}[yr("0xdc")](){this[yr("0xa5")]=null,this[yr("0xf")](),this[yr("0xcd")]&&this[yr("0xcd")][yr("0xe5")](),this[yr("0xcd")]=null,this[yr("0x33")][yr("0x6f")](),this[yr("0x12")][yr("0x11b")].enqueueChange({isUndoable:!1},(e=>{for(const t of this[yr("0x12")][yr("0x11b")][yr("0x5f")][yr("0x25")]())e[yr("0x9")](t)}))}[yr("0xb3")](e){const t=[],i=new Map;for(const e of this[yr("0x12")].model[yr("0x5f")][yr("0x25")]()){const n=this[yr("0x12")][yr("0x73")][yr("0x2c")].getDomRoot(e);if(!n)continue;const r=n.getClientRects()[yr("0xd5")](0);r&&(t[yr("0x6b")](e),i[yr("0x6")](e,r))}return t[yr("0xbd")](((e,t)=>{const n=i[yr("0x107")](e),r=i[yr("0x107")](t);return n.y-r.y||n.x-r.x})),(e=e[yr("0xd")]((e=>t.includes(e[yr("0x35")]))))[yr("0xbd")](((e,i)=>t[yr("0x10d")](e[yr("0x35")])-t.indexOf(i[yr("0x35")]))),e}[yr("0x26")](e){const t=Array.from(e.markers)[yr("0xd")]((([e,t])=>e[yr("0x9c")](yr("0x3d"))&&!t[yr("0x1f")])),i=Array[yr("0xbe")](this.editor[yr("0x11b")][yr("0xd3")](e).getWalker({singleCharacters:!0}));if(0!=t[yr("0x4c")])for(const e of i){const[i,n]=t[0],[,r,o]=i.split(":");if(n[yr("0xf7")][yr("0xc6")](e[yr("0xc1")])&&t[yr("0xef")](),(e[yr("0x91")][yr("0xc6")](n.start)||e[yr("0x91")].isAfter(n[yr("0x16")]))&&("insertion"==r?e[yr("0x49")]={userId:o}:yr("0xe0")==r&&(e[yr("0x11")]={userId:o})),0==t.length)break}return i}[yr("0xaf")](e){const t=new Map;for(let i=0;i<e[yr("0x4c")];i++)yr("0x103")===e[i][yr("0xdf")]?(e[i][yr("0xd5")][yr("0x71")]=i,e[i][yr("0xd5")][yr("0x4e")]=i):(yr("0x15")===e[i].type?e[i][yr("0xd5")].startIndex=i:"elementEnd"===e[i][yr("0xdf")]&&(e[i][yr("0xd5")][yr("0x4e")]=i),t.set(e[i].id,i));for(const i of t[yr("0x21")]())yr("0x15")===e[i][yr("0xdf")]?e[i][yr("0xd5")][yr("0x4e")]=t[yr("0x107")](e[i].pairId):yr("0xf2")===e[i][yr("0xdf")]&&(e[i][yr("0xd5")][yr("0x71")]=t.get(e[i][yr("0x11c")]))}_processTape(e){for(let t=0;t<e[yr("0x4c")];t++){if("elementStart"===e[t][yr("0xdf")])e[t][yr("0xd5")][yr("0x71")]=t;else if(yr("0xf2")===e[t][yr("0xdf")]){e[t][yr("0xd5")][yr("0x4e")]=t;const i=e[t][yr("0xd5")].startIndex;e[i][yr("0x11c")]=e[t].id,e[t][yr("0x11c")]=e[i].id}else e[t][yr("0xd5")].startIndex=t,e[t][yr("0xd5")][yr("0x4e")]=t,e[t].pairId=null;e[t][yr("0xbf")]||(e[t][yr("0xbf")]=[],e[t].markersEnd=[])}}_markInsertions(e,t){const i=e[yr("0xd")]((e=>!e[yr("0x49")]));for(let e=0;e<t.length;e++)t[e][yr("0x49")]&&(i[e][yr("0x49")]=t[e][yr("0x49")])}[yr("0x7f")](e){const t=JSON.parse(e),i=this[yr("0x12")].editing.view.document,n=new o.ViewDocumentFragment(i,t[yr("0xda")]((e=>this[yr("0xd9")](e))));return this[yr("0x12")][yr("0x62")][yr("0x89")](n)}[yr("0xd9")](e){const t=this[yr("0x12")][yr("0x73")][yr("0x2c")][yr("0x5f")];if("string"==typeof e)return new o.ViewText(t,e);{const i=e[yr("0x65")][yr("0xda")]((e=>this._getViewObj(e)));return new(br[e[yr("0xdf")]]||o.ViewElement)(t,e[yr("0x13")],e.attributes,i)}}_getDiff(e,t=null){const i=this[yr("0xa7")][yr("0x5c")](e),n=t?this[yr("0xa7")][yr("0x5c")](t):null,r=this._getRevisionsRange(i,n),o=r[r[yr("0x4c")]-1],s=new Map,a={model:{},attributes:{},changes:[]},c=new Set,u=new Map;for(let e=r.length-1;e>=0;e--){const t=r[e];for(const e of Object[yr("0x39")](t[yr("0x6c")]))if(t[yr("0x6c")][e][yr("0x2a")]){const i=t.diffData[e][yr("0x2a")];i.isAttached?(c[yr("0x94")](e),u[yr("0xdd")](e)&&u[yr("0x107")](e)[yr("0xb0")]==i[yr("0xb0")]?u[yr("0x5")](e):u[yr("0x6")](e,i)):u[yr("0xdd")](e)?(c[yr("0x5")](e),u.delete(e)):(c[yr("0x94")](e),u[yr("0x6")](e,i))}else c[yr("0x94")](e)}for(const e of c){const t=u.has(e)&&!u.get(e)[yr("0x52")];let i=t?r.length-1:0;const n=t?-1:1;for(;r[i];){const o=r[i];if(o[yr("0x6c")][e]){const i=t?o.diffData[e].attributesBefore:o[yr("0x6c")][e][yr("0xc7")];a.attributes[e]=i?yi(i):{};break}i+=n}}for(const e of r){e[yr("0x11b")]={};for(const t of e[yr("0x46")])s.set(t.id,t);for(const t of c){const i=e[yr("0x6c")][t]?e.diffData[t].insertions:"[]",n=e[yr("0x6c")][t]?e[yr("0x6c")][t].deletions:"[]";e[yr("0x11b")][t]={insertions:this[yr("0x7f")](i),deletions:this[yr("0x7f")](n)}}}for(const e of c){let t=null,n=0;const c=new Map(Array[yr("0xbe")](i[yr("0x11b")][e][yr("0x28")][yr("0xb7")]).filter((([e])=>!e[yr("0x9c")](yr("0x3d")))));let d=0;for(const o of r){const r=this[yr("0x26")](o.model[e][yr("0x28")]);o==i?(t=r,n=t[yr("0x4c")],t.forEach((e=>{e.id=d++})),this._processTape(t)):this[yr("0x4f")](t,r);const s=t.filter((e=>!e[yr("0x49")]))[yr("0xda")]((e=>e.id));let a=0;const u=this._makeTape(o[yr("0x11b")][e].deletions);u.forEach((e=>{e[yr("0x11")]?e.id=n++:e.id=s[a++]})),this._processTape(u),this[yr("0xa")](t,yr("0x49")),this[yr("0xa")](u,yr("0x11")),o==i&&this[yr("0x112")](t,c),t=this[yr("0xc")](t,u),this[yr("0xaf")](t),this[yr("0xa")](t,"isRemoved")}t=t.filter((e=>!(e[yr("0x49")]&&e[yr("0x11")])));const l=new Map(o[yr("0x11b")][e].deletions[yr("0xb7")]),x=new Set(c.keys());for(const e of l[yr("0x39")]())x[yr("0x5")](e);this._markSuggestions(t,x),this[yr("0x45")](t),t=this._removeMissingPairs(t),t=this._markMismatchedRemovedTags(t),t=this[yr("0xaa")](t);const{root:h,changes:f}=this[yr("0x6d")](t,s,e);a[yr("0x11b")][e]=h;const v=u[yr("0x107")](e);if(v){const t=s[yr("0x107")](v[yr("0xb0")]),i=new cr({author:t,type:v.isAttached?"add":"remove",data:{isOnRoot:!0},createdAt:new Date,rootName:e});f.unshift(i),a[yr("0xe8")][e][yr("0x85")]=i.id}a[yr("0x9b")]=a[yr("0x9b")][yr("0xf6")](f)}return a}[yr("0x112")](e,t){for(let i=0;i<e[yr("0x4c")];i++)for(const[n,r]of t)r[yr("0x16")].isEqual(e[i].previousPosition)&&e[i][yr("0xbf")].push(n),r[yr("0xf7")][yr("0xc6")](e[i][yr("0xc1")])&&e[i][yr("0x87")][yr("0x6b")](n)}[yr("0xc")](e,t){let i=[],n=0,r=0;for(;n<e.length||r<t.length;){const o=e[n]||{},s=t[r]||{};if(o.id==s.id)n++,r++,i.push(o);else if(s[yr("0x11")]&&o.isAdded){const{commonTape:o,iEnd:s,jEnd:a}=this[yr("0xa6")](e,n,t,r);i=i[yr("0xf6")](o),n=s,r=a}else s[yr("0x11")]?(r++,i[yr("0x6b")](s)):(n++,i[yr("0x6b")](o))}return i}[yr("0xcc")](e,t){const i=[];for(let o=0;o<e[yr("0x4c")];o++){for(let r=0;r<e[o][yr("0xbf")][yr("0x4c")];r++){const s=e[o].markersStart[r];if(!t[yr("0xdd")](s))continue;const{group:a,type:c,authorId:u}=n(s);yr("0x3e")!=a||yr("0x20")!=c&&yr("0xe0")!=c||(i[yr("0x76")]({type:c,name:s,userId:u}),e[o].markersStart.splice(r,1),r--)}r(e[o]);for(let r=0;r<e[o][yr("0x87")][yr("0x4c")];r++){const s=e[o][yr("0x87")][r];if(!t.has(s))continue;const{group:a,type:c}=n(s);if("revision-suggestion"!=a||yr("0x20")!=c&&yr("0xe0")!=c)continue;e[o][yr("0x87")][yr("0xc3")](r,1),r--;const u=i[yr("0x4")]((e=>e[yr("0x13")]==s));u>-1&&i[yr("0xc3")](u,1)}}function n(e){const t=e[yr("0xd7")](":");return{group:t[0],type:t[1],subType:t[yr("0x4c")]>=5?t[2]:null,id:t[yr("0x4c")]<5?t[2]:t[3],authorId:t.length<5?t[3]:t[4],markerCount:6==t.length?t[5]:null}}function r(e){for(let t=0;t<i.length;t++){if(e[yr("0x49")]&&"insertion"==i[t][yr("0xdf")])return e.isAddSuggestion=i[t],void delete e.isAdded;if(!e[yr("0x49")]&&!e[yr("0x11")]&&yr("0xe0")==i[t][yr("0xdf")])return void(e.isRemoveSuggestion=i[t])}}}[yr("0xa")](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("0x6")](o.id,i);for(let i=0;i<e[yr("0x4c")];i++){if(yr("0x11")==t&&e[i][yr("0x49")]||yr("0x49")==t&&e[i][yr("0x11")])continue;if("text"==e[i][yr("0xdf")]){e[i][yr("0x31")]=0;continue}const n=r[yr("0x107")](e[i].pairId),o=r[yr("0x107")](e[i].id);e[i][yr("0x31")]=n-o}}_getRevisionsRange(e,t,i=!1){const n=[];let r=this[yr("0xa7")][yr("0x41")](e),o=this.repository[yr("0x41")](t);for(-1==o&&(o=this.repository[yr("0x5e")][yr("0x4c")],i=!1);r<o;)n[yr("0x6b")](this.repository[yr("0x5c")](r)),r++;return i&&n.push(this[yr("0xa7")].getRevision(r)),n}[yr("0xa6")](e,t,i,n){const r=this[yr("0x12")].model[yr("0xe7")];let o=t;for(;e[o]&&e[o][yr("0x49")];)o++;let s=n;for(;i[s]&&i[s][yr("0x11")];)s++;c(e,t,o),c(i,n,s);const a=i[yr("0x5b")](n,s)[yr("0xf6")](e[yr("0x5b")](t,o));return a[yr("0xbd")](((e,t)=>e[yr("0x4a")]!=t[yr("0x4a")]?e[yr("0x4a")]-t[yr("0x4a")]:e[yr("0xf4")]!=t[yr("0xf4")]?e[yr("0xf4")]-t[yr("0xf4")]:e[yr("0x31")]!=t.distance?t[yr("0x31")]-e[yr("0x31")]:!!e.isAdded!=!!t[yr("0x49")]?-1==e.side||0==e[yr("0x4a")]?e.isAdded?-1:1:e[yr("0x49")]?1:-1:e[yr("0xeb")]-t[yr("0xeb")])),{commonTape:a,iEnd:o,jEnd:s};function c(e,t,i){let n=-1,o=Number.POSITIVE_INFINITY,s=!0;for(let a=t;a<i;a++)if(r[yr("0x58")](e[a][yr("0xd5")])||(s=!1),e[a][yr("0xd5")].startIndex<t&&(n=a),e[a][yr("0xd5")][yr("0x4e")]>=i){o=a;break}s&&(n=i-1);for(let r=t;r<i;r++)e[r][yr("0x4a")]=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("0x31")]?e[i][yr("0xf4")]=a:(a++,e[i].level=a,a++);for(let n=t;n<i;n++)0==e[n].side&&(e[n][yr("0xf4")]=a);a=0;for(let t=i-1;t>=o;t--)0==e[t][yr("0x31")]?e[t][yr("0xf4")]=a:(a--,e[t][yr("0xf4")]=a,a--)}}[yr("0x45")](e){const t=new Map,i=this[yr("0x12")][yr("0x11b")][yr("0xe7")];for(let n=1;n<e[yr("0x4c")];n++){let r,o,s;const a=e[n],c=e[n-1];if("text"==a[yr("0xdf")])continue;if(a[yr("0xdf")]!=c.type)continue;if(!i.isBlock(c.item)||i[yr("0x53")](c.item))continue;if(!i[yr("0xe9")](a[yr("0xd5")])||i[yr("0x53")](a[yr("0xd5")]))continue;if((e[n][yr("0x49")]||e[n][yr("0xec")])&&e[n-1][yr("0x11")])r=e[n],o=e[n-1],s=n-1;else{if(!e[n][yr("0x11")]||!e[n-1].isAdded&&!e[n-1].isAddSuggestion)continue;r=e[n-1],o=e[n],s=n}const u=r[yr("0xf4")]==o[yr("0xf4")],d=Math[yr("0x98")](r[yr("0xf4")])<Math[yr("0x98")](o[yr("0xf4")])&&0==o[yr("0x31")];(u||d)&&(t[yr("0x6")](o.id,r.id),e[yr("0xc3")](s,1),n--,r.isAdded=!1)}for(let i=0;i<e[yr("0x4c")];i++)t.has(e[i][yr("0x11c")])&&(e[i][yr("0x11c")]=t[yr("0x107")](e[i][yr("0x11c")]))}[yr("0x114")](e){const t=new Set(e[yr("0xda")]((e=>e.id)));for(let i=0;i<e[yr("0x4c")];i++)t[yr("0xdd")](e[i][yr("0x11c")])||0==e[i][yr("0x31")]||(e[i][yr("0x9e")]=!0);return e[yr("0xd")]((e=>!e[yr("0x9e")]))}_markMismatchedRemovedTags(e){const t=new Set;for(let i=0;i<e[yr("0x4c")];i++){if(t.has(e[i].id)&&e[i][yr("0x11")]&&(e[i].isIncorrect=!0),e[i][yr("0x9e")])continue;if(0==e[i][yr("0x31")])continue;if("elementStart"!=e[i][yr("0xdf")])continue;if(null==e[i][yr("0x11c")])continue;let n=i+1,r=0;for(;e[n].id!=e[i].pairId;)yr("0x15")==e[n][yr("0xdf")]?r++:yr("0xf2")==e[n][yr("0xdf")]&&r--,n++;if(0!=r)if(e[i][yr("0x11")])e[i].isIncorrect=!0;else for(;n!=i;)e[n][yr("0x11")]&&0!=e[n][yr("0x31")]&&(e[n][yr("0x9e")]=!0,t[yr("0x94")](e[n].pairId)),n--}return e.filter((e=>!e[yr("0x9e")]))}[yr("0xaa")](e){const t=this[yr("0x12")].model[yr("0xe7")];for(let i=0;i<e[yr("0x4c")];i++){if(!(e[i][yr("0x49")]||e[i][yr("0xec")]||e[i][yr("0x11")]||e[i][yr("0x64")]))continue;if(0==e[i][yr("0x31")])continue;const n=e[i][yr("0xd5")];t[yr("0xe9")](n)||t[yr("0x53")](n)||(e[i][yr("0x49")]&&delete e[i][yr("0x49")],e[i][yr("0xec")]&&delete e[i][yr("0xec")],e[i].isRemoveSuggestion&&delete e[i][yr("0x64")],e[i][yr("0x11")]&&(e[i][yr("0x9e")]=!0))}return e[yr("0xd")]((e=>!e[yr("0x9e")]))}[yr("0x6d")](e,t,i){const n=new o.DocumentFragment,r=[],s=new Map,a=this[yr("0x12")][yr("0x11b")],c=a[yr("0xe7")],u=[n],d={},l={isAdded:[],isRemoved:[],isAddSuggestion:[],isRemoveSuggestion:[]};let x=null;const h=[0];for(let t=0;t<e[yr("0x4c")];t++){let i,r;if(yr("0x15")===e[t][yr("0xdf")]){i=a[yr("0xc4")](n,h);const s=new o.Element(e[t][yr("0xd5")][yr("0x13")],e[t][yr("0xd5")][yr("0xdb")]());u[0][yr("0x3a")](s),h.push(0),u[yr("0x76")](s),r=a.createPositionFromPath(n,h),x=null}else if(yr("0xf2")===e[t].type)u[yr("0xef")](),i=a[yr("0xc4")](n,h),h[yr("0x93")](),h[h.length-1]++,r=a.createPositionFromPath(n,h),x=null;else{if(i=a[yr("0xc4")](n,h),x&&m(x,e[t][yr("0xd5")]))x[yr("0xde")]+=e[t].item[yr("0x62")];else{const i=new o.Text(e[t][yr("0xd5")][yr("0x62")],e[t][yr("0xd5")].getAttributes());u[0]._appendChild(i),x=i}h[h.length-1]+=e[t][yr("0xd5")][yr("0x79")],r=a[yr("0xc4")](n,h)}for(const n of e[t][yr("0xbf")])s[yr("0x6")](n,{start:i,end:null});f(yr("0x64"),t,i,r),f(yr("0xec"),t,i,r),f(yr("0x11"),t,i,r),f("isAdded",t,i,r);for(const i of e[t][yr("0x87")])s[yr("0x107")](i)[yr("0xf7")]=r}for(const[e,t]of s){const i=this[yr("0x12")][yr("0x11b")][yr("0x24")](t[yr("0x16")],t[yr("0xf7")]);n[yr("0xb7")][yr("0x6")](e,i)}return r[yr("0xbd")](((e,t)=>{const i=n[yr("0xb7")][yr("0x107")]("revision:"+e.id),r=n.markers[yr("0x107")](yr("0x3d")+t.id);return i[yr("0x16")][yr("0xb8")](r[yr("0x16")])?-1:i.start.isAfter(r[yr("0x16")])?1:i[yr("0xf7")][yr("0xb8")](r.end)?-1:i[yr("0xf7")].isAfter(r[yr("0xf7")])?1:"add"===e[yr("0xdf")]?-1:1})),{root:n,changes:r};function f(t,i,n,r){const o=!!e[i][t],s=o?e[i][t].userId:null,a=i===e.length-1,u=l[t][0],x=c[yr("0xf0")](e[i][yr("0xd5")]);!d[t]&&o?d[t]={start:n,tapeItem:e[i],userId:s,type:t}:d[t]&&!o?(d[t][yr("0xf7")]=n,v(d[t]),d[t]=null):d[t]&&o&&d[t][yr("0xb0")]!==s&&(d[t][yr("0xf7")]=n,u&&u[yr("0xb0")]===d[t].userId||v(d[t]),d[t]={start:n,tapeItem:e[i],userId:s,type:t}),d[t]&&x&&(yr("0x15")!==e[i][yr("0xdf")]||u&&u[yr("0xb0")]===s||l[t][yr("0x76")]({userId:s,object:e[i][yr("0xd5")],change:d[t]}),yr("0xf2")===e[i][yr("0xdf")]&&u&&u[yr("0x8f")]===e[i][yr("0xd5")]&&(l[t][yr("0xef")](),d[t]=u.change)),d[t]&&a&&(d[t][yr("0xf7")]=r,v(d[t]),d[t]=null)}function v({start:e,end:o,tapeItem:s,userId:c,type:u}){const d=s[yr("0xd5")],l=a[yr("0xe7")][yr("0xe9")](d)&&!a.schema[yr("0x53")](d),x=e[yr("0x8c")]==o.parent&&o[yr("0xc8")];if(l&&x)return;const h=a[yr("0x24")](e,o),f=t[yr("0x107")](c),v=new cr({author:f,type:yr("0x49")==u||yr("0xec")==u?"add":yr("0xbc"),data:{isSuggestion:yr("0xec")==u||yr("0x64")==u},createdAt:new Date,rootName:i});r[yr("0x6b")](v),n.markers[yr("0x6")]("revision:"+v.id,h)}function m(e,t){const i=e[yr("0xdb")](),n=t[yr("0xdb")]();for(const e of i){if(e[1]!==t[yr("0x83")](e[0]))return!1;n[yr("0xd0")]()}return n[yr("0xd0")]()[yr("0x32")]}}[yr("0x1b")](){this[yr("0x12")].conversion[yr("0x2d")](yr("0x84")).dataToMarker({view:yr("0xd4")}),this.editor[yr("0xe")][yr("0x2d")](yr("0xb5")).markerToHighlight({model:yr("0xd4"),view:e=>{const t=e[yr("0x36")][yr("0xd7")](":")[1],i=this[yr("0x29")](t);if(!i)return null;const n=yr("0x94")==i[yr("0xdf")]?"insertion":yr("0xe0"),r=[yr("0xb6"),yr("0x68")+n];return i[yr("0x62")][yr("0x113")]&&r[yr("0x6b")]("ck-suggestion-marker-"+n+yr("0x27")),this.activeChange==i&&r[yr("0x6b")]("ck-suggestion-marker--active"),{classes:r,attributes:{"data-change-id":t}}}}),this[yr("0x12")][yr("0xe")][yr("0x2d")](yr("0x84")).add((e=>{e.on("element:pre",((e,t,i)=>{const n=t[yr("0x2e")][yr("0xe2")](0);if(!n||!n.is(yr("0xf8"),yr("0x77")))return;if(!i[yr("0x117")][yr("0x8b")](n,{attributes:["vid_start",yr("0xea")]}))return;const r=t[yr("0xc2")].start.nodeAfter;i[yr("0x3c")].setAttribute(yr("0x72"),n[yr("0x83")]("vid_start"),r),i.writer.setAttribute(yr("0xea"),n[yr("0x83")]("vid_end"),r)}),{priority:yr("0x116")})})),this.editor.conversion[yr("0x2d")]("upcast")[yr("0x94")]((e=>{e.on(yr("0xf8"),((e,t,i)=>{if(!i.consumable[yr("0x8b")](t[yr("0x2e")],{attributes:["vid_start",yr("0xea")]}))return;if(t[yr("0xc2")][yr("0x1f")])return;const n=t[yr("0xc2")][yr("0x16")][yr("0x8c")];n[yr("0x4d")](yr("0x72"))||n[yr("0x4d")](yr("0x54"))||(i[yr("0x3c")].setAttribute(yr("0x72"),t[yr("0x2e")][yr("0x83")](yr("0x72")),n),i[yr("0x3c")][yr("0x2f")](yr("0xea"),t[yr("0x2e")][yr("0x83")](yr("0xea")),n))}),{priority:yr("0x116")})})),this[yr("0x12")].conversion[yr("0x2d")](yr("0x84"))[yr("0x1")]({view:{name:yr("0x75"),attributes:{vid:!0}},model:{key:yr("0x54"),value:e=>e[yr("0x83")](yr("0x54"))}}),this[yr("0x12")][yr("0x11b")][yr("0xe7")].on(yr("0x7d"),((e,[,t])=>{[yr("0x72"),yr("0xea"),yr("0x54")][yr("0xd1")](t)&&(e.return=!0,e.stop())}),{priority:yr("0x8a")}),this[yr("0x12")][yr("0xe")][yr("0x2d")](yr("0x48")).add((e=>{e.on("attribute:vid",((e,t,i)=>{if(" "!=t.item[yr("0x62")]||t[yr("0xd5")][yr("0x92")][yr("0x104")]>1)return;if(!i[yr("0x117")].consume(t[yr("0xd5")],e.name))return;const n=i[yr("0x3c")],r=i[yr("0x18")][yr("0x17")](t.range);n.wrap(r,n.createAttributeElement(yr("0x75")))}))})),this[yr("0x12")][yr("0xe")][yr("0x2d")](yr("0x48")).markerToData({model:yr("0xd4")}),this[yr("0x12")].editing[yr("0x14")].on(yr("0x105"),function(e){const t=e[yr("0x86")][yr("0x107")](yr("0xfe"));return(i,n,r)=>{const o=n[yr("0x36")][yr("0xd7")](":")[1],s=t[yr("0x29")](o);if(!s)return null;const a=yr("0x94")==s[yr("0xdf")]?yr("0xd7"):yr("0xfb");if(!r.consumable[yr("0xd2")](n[yr("0x10a")],i.name))return;const c=n.markerRange[yr("0x8e")](),u=n.markerRange[yr("0x16")],d=e[yr("0x11b")][yr("0xe7")];let l=null,x=null,h=!1,f=!1;for(const e of c){const t=e[yr("0xd5")];h=h||d[yr("0x3b")](t);const i=r[yr("0x18")].toViewElement(t);if(i&&i[yr("0x23")]("addHighlight"))return;"elementEnd"==e[yr("0xdf")]&&d.isBlock(t)&&!d[yr("0x53")](t)&&(t[yr("0x8")]||u[yr("0xfa")]?l&&l[yr("0x92")]==t||(l=t,v(e[yr("0x91")]),f=!0):x=x||e[yr("0x91")])}function v(e){const i=r[yr("0x3c")].createUIElement(yr("0x75"),{class:"ck-suggestion-marker-"+a}),o=r[yr("0x18")][yr("0xb")](e);s[yr("0x62")][yr("0x113")]&&r[yr("0x3c")][yr("0x55")](yr("0x68")+a+yr("0x27"),i),t[yr("0xa5")]==s&&r[yr("0x3c")][yr("0x55")](yr("0xb9"),i),r[yr("0x3c")][yr("0x99")](o,i),r[yr("0x18")].bindElementToMarker(i,n[yr("0x36")])}h||f||!x||v(x)}}(this[yr("0x12")]),{priority:yr("0x11a")}),this.editor.editing[yr("0x14")].on(yr("0x90"),((e,t,i)=>{const n=i.mapper[yr("0xad")](t.markerName);if(n)for(const e of n)(e[yr("0x97")](yr("0xc0"))||e[yr("0x97")](yr("0xb1")))&&(i[yr("0x18")][yr("0x102")](e,t[yr("0x36")]),i.writer[yr("0xbc")](e))}),{priority:"high"}),this.editor[yr("0x73")].downcastDispatcher.on(yr("0x105"),((e,t,i)=>{const n=t[yr("0x36")][yr("0xd7")](":")[1],r=this._getChangeFromId(n);if(!r)return null;const o=yr("0x94")==r.type?yr("0xd7"):"merge";if(i[yr("0x117")][yr("0xd2")](t.markerRange,e[yr("0x13")]))for(const e of t[yr("0x10a")][yr("0x51")]()){if(!e.is(yr("0xf8"),"softBreak"))continue;const n=i[yr("0x3c")].createUIElement("span",{class:yr("0x68")+o}),s=i[yr("0x18")].toViewPosition(this[yr("0x12")].model[yr("0x88")](e));r[yr("0x62")][yr("0x113")]&&i[yr("0x3c")][yr("0x55")](yr("0x68")+o+yr("0x27"),n),this.activeChange==r&&i[yr("0x3c")][yr("0x55")](yr("0xb9"),n),i[yr("0x3c")].insert(s,n),i[yr("0x18")][yr("0x9a")](n,t[yr("0x36")])}}),{priority:"high"}),this[yr("0x12")][yr("0x11b")][yr("0x5f")].on("change",(()=>{this[yr("0x12")][yr("0x73")][yr("0x2c")].change((e=>{for(const t of this[yr("0x12")][yr("0x11b")][yr("0x5f")][yr("0x25")]()){const i=this.editor.model[yr("0x5f")][yr("0x5a")](t),n=this.editor.editing[yr("0x2c")][yr("0x5f")].getRoot(t);if(n){const t=i.getAttribute(yr("0x85"));if(e.removeAttribute(yr("0x59"),n),e[yr("0x37")](yr("0x7b"),n),e[yr("0x37")](yr("0x7c"),n),e[yr("0x37")](yr("0xb4"),n),t){const i=this._getChangeFromId(t);if(!i)return null;e[yr("0x2f")](yr("0x59"),t,n),e[yr("0x55")](yr("0x66")+i[yr("0xdf")],n),this.activeChange==i&&e.addClass("ck-revision-history-root--active",n)}}}}))})),this[yr("0x12")][yr("0xe")].for("upcast")[yr("0x42")]({view:yr("0xf9"),model:e=>yr("0xf3")+e,converterPriority:yr("0x8a")}),this[yr("0x12")].conversion[yr("0x2d")](yr("0x84")).dataToMarker({view:"suggestion",model:e=>yr("0x10e")+e,converterPriority:"highest"}),this[yr("0x12")][yr("0xe")][yr("0x2d")](yr("0x48"))[yr("0x10b")]({model:"revision-suggestion",view:e=>({name:"suggestion:"+e,group:yr("0x3e")}),converterPriority:yr("0x8a")}),this[yr("0x12")].conversion.for(yr("0xb5")).markerToHighlight({model:yr("0x3e"),view:e=>{const t=e[yr("0x36")].split(":")[1];return yr("0x20")!=t&&"deletion"!=t?null:{classes:[yr("0x0"),yr("0xd8")+t]}}}),this.editor.editing.downcastDispatcher.on(yr("0xee"),_r(this[yr("0x12")],yr("0xfb")),{priority:yr("0x11a")}),this[yr("0x12")][yr("0x73")][yr("0x14")].on(yr("0x7e"),_r(this[yr("0x12")],"split"),{priority:yr("0x11a")}),this[yr("0x12")][yr("0x73")][yr("0x14")].on(yr("0x9f"),((e,t,i)=>{const n=i.mapper[yr("0xad")](t[yr("0x36")]);if(n)for(const e of n)e.is(yr("0x57"))&&(i[yr("0x18")][yr("0x102")](e,t[yr("0x36")]),i[yr("0x3c")][yr("0xbc")](e))}),{priority:yr("0x11a")})}[yr("0x29")](e){return this[yr("0x33")][yr("0x107")](e)}[yr("0x9d")](e){return this._changeView&&this._changeView[yr("0xe5")](),this[yr("0xcd")]=new nr(this.editor.locale,e),this._changeView}[yr("0x22")](){this.editor[yr("0x11b")].document.selection[yr("0xa0")]("revision"),this.on(yr("0x96"),((e,t,i,n)=>{n&&this[yr("0xff")][yr("0xbc")](n),i&&(this[yr("0xff")][yr("0x94")]({view:i,stackId:yr("0x110"),position:{target:()=>{const e=this[yr("0x12")].editing,t=this[yr("0x29")](i[yr("0xfd")]);let n;if(t[yr("0x62")][yr("0x43")]){const i=e[yr("0x2c")].getDomRoot(t[yr("0x35")]);n=Array.from(i.getClientRects())}else{const t=this[yr("0x12")][yr("0x11b")][yr("0xb7")][yr("0x107")](yr("0x3d")+i.changeId);n=Array.from(e[yr("0x18")][yr("0xad")](t.name))[yr("0xda")]((t=>e[yr("0x2c")][yr("0xfc")][yr("0x7")](t)))[yr("0xda")]((e=>Array.from(e[yr("0xae")]())))[yr("0x69")]()}return this[yr("0x70")]&&n[yr("0x74")]((e=>e[yr("0xa9")]-3<=this[yr("0x70")].y&&e[yr("0x61")]+3>=this[yr("0x70")].y&&e[yr("0x67")]-3<=this[yr("0x70")].x&&e[yr("0xca")]+3>=this[yr("0x70")].x))||n[0]}}}),this[yr("0xff")][yr("0xce")](yr("0x110")))})),this.on(yr("0xe3"),((e,t,i,n)=>{this[yr("0x106")]=i?this[yr("0x9d")](i):null,this[yr("0x12")].model[yr("0xf5")]((()=>{const e=this[yr("0x12")][yr("0x73")];n&&(n.data[yr("0x43")]?e[yr("0x2c")][yr("0xf5")]((t=>{t[yr("0x37")]("ck-revision-history-root--active",e.view[yr("0x5f")].getRoot(n.rootName))})):e[yr("0x3f")](yr("0x3d")+n.id)),i&&(i.data[yr("0x43")]?e.view[yr("0xf5")]((t=>{t.addClass(yr("0xb4"),e[yr("0x2c")][yr("0x5f")][yr("0x5a")](i[yr("0x35")]))})):e[yr("0x3f")](yr("0x3d")+i.id))}))})),this[yr("0x10f")](this[yr("0x12")][yr("0x73")][yr("0x2c")][yr("0x5f")],yr("0x1e"),((e,t)=>{if(this[yr("0xa5")])return;const i=this._findChangeIdFromDomTarget(t[yr("0xc5")]),n=this[yr("0x33")].get(i);n?(this[yr("0x70")]={x:t[yr("0x118")].x,y:t.domEvent.y},this[yr("0x106")]=this[yr("0x9d")](n)):(this[yr("0x70")]=null,this[yr("0x106")]=null)})),this[yr("0x10f")](this[yr("0x12")][yr("0x73")][yr("0x2c")][yr("0x5f")],yr("0x6a"),((e,t)=>{const i=this[yr("0x82")](t[yr("0xc5")]),n=this[yr("0x33")][yr("0x107")](i);n?(this[yr("0x70")]={x:t[yr("0x118")].x,y:t[yr("0x118")].y},n===this[yr("0xa5")]?this[yr("0xff")][yr("0xb2")]():this[yr("0xa5")]=n):(this[yr("0x70")]=null,this[yr("0xa5")]=null)}))}[yr("0x82")](e){do{const t=e[yr("0x83")]("data-change-id");if(t)return t;e=e[yr("0x92")]}while(e);return null}[yr("0xf")](){this.editor.model[yr("0xf5")]((e=>{for(const t of this[yr("0x12")][yr("0x11b")][yr("0xb7")])e[yr("0x6e")](t)}))}}function _r(e,t){return(i,n,r)=>{if(!r[yr("0x117")][yr("0xd2")](n[yr("0x10a")],i.name))return;const o=n.markerRange[yr("0x8e")](),s=n[yr("0x10a")].start,a=e[yr("0x11b")][yr("0xe7")];let c=null,u=null,d=!1,l=!1;for(const e of o){const t=e.item;d=d||a[yr("0x3b")](t);const i=r[yr("0x18")].toViewElement(t);if(i&&i.getCustomProperty(yr("0xcf")))return;yr("0xf2")==e[yr("0xdf")]&&a[yr("0xe9")](t)&&!a.isLimit(t)&&(t[yr("0x8")]||s[yr("0xfa")]?c&&c[yr("0x92")]==t||(c=t,x(e[yr("0x91")]),l=!0):u=u||e[yr("0x91")])}function x(e){const i=r[yr("0x18")][yr("0xb")](e),o=r.writer[yr("0xa2")]("span",{class:yr("0xd8")+t});r[yr("0x3c")].insert(i,o),r[yr("0x18")][yr("0x9a")](o,n[yr("0x36")])}d||l||!u||x(u)}}class wr extends e.Command{constructor(e){super(e);const t=e[yr("0x86")][yr("0x107")](kr);this[yr("0x81")]=!1,this.listenTo(t,yr("0x38"),(()=>this[yr("0x4b")]())),this[yr("0x10f")](t,yr("0xac"),(()=>this[yr("0x4b")]()))}execute(){const e=this[yr("0x12")],t=e[yr("0x86")][yr("0x107")](kr),i=t[yr("0xab")]?t[yr("0x10")][yr("0x63")]:null;e[yr("0x44")].get("revisionHistory").restoreRevisionCallback(i)}[yr("0x4b")](){const{isReady:e,isEnabled:t}=this[yr("0x12")].plugins.get(kr);this[yr("0x119")]=e&&t}}class Sr extends e.Command{constructor(e,{direction:t}){super(e);const i=e.plugins[yr("0x107")](kr);this.affectsData=!1,this[yr("0xf1")]="forward"===t?1:-1,this.listenTo(i,yr("0x38"),(()=>this[yr("0x4b")]())),this.listenTo(i,yr("0xac"),(()=>this[yr("0x4b")]()))}[yr("0x101")](){const e=this[yr("0x12")],i=e[yr("0x86")].get(kr),{isNavigationMode:n,currentChangeNumber:o}=i;let s;if(i[yr("0xa5")]=n?i[yr("0x10")].changes[yr("0x107")](o+this[yr("0xf1")]):i[yr("0x10")][yr("0x9b")].first,i[yr("0xa5")].data[yr("0x43")])s=e.editing[yr("0x2c")].getDomRoot(i[yr("0xa5")][yr("0x35")]);else{const t=e[yr("0x11b")][yr("0xb7")][yr("0x107")](yr("0x3d")+i[yr("0xa5")].id);s=(0,r.getMarkerDomElement)(e[yr("0x73")],t)}(0,t.scrollViewportToShowTarget)({target:s,viewportOffset:40})}[yr("0x4b")](){const{isNavigationMode:e,currentChangeNumber:t,numberOfChanges:i,isReady:n,isEnabled:r}=this[yr("0x12")].plugins[yr("0x107")](kr);this.isEnabled=!!(r&&n&&i)&&(!e||(1===this._step?t<i-1:t>0))}}var Or=i(164),Tr={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fn()(Or.Z,Tr);Or.Z.locals;const Rr=["numberOfChanges","NUMBER_OF_CHANGES","ck-hidden","currentChangeNumber","execute","set","ck-revision-history-ui","span","bind","isEnabled","ck-revision-history-ui__changes-navigation__wrapper","ck-revision-history-ui__changes-navigation__label","isForwardNavigationEnabled","_isStatusLabelVisible","_statusText","bindTemplate","Total","ck-revision-history-ui__changes-navigation","isReady","No changes","X_OF_Y_CHANGES","EDIT_X_OF_Y_REVISIONS","forward","isBackwardNavigationEnabled","Loading...","div","Show previous change","isNavigationMode","fire","ck-revision-history-ui__changes-navigation__navigation"];var Ir,Nr;Ir=Rr,Nr=270,function(e){for(;--e;)Ir.push(Ir.shift())}(++Nr);const Vr=function(e,t){return Rr[e-=0]};class Mr extends Dn.View{constructor(e){super(e);const t=this[Vr("0xf")],i=new Dn.ButtonView(e),n=new Dn.ButtonView(e);this[Vr("0x5")](Vr("0x1b"),!1),this[Vr("0x5")](Vr("0x12"),!1),this[Vr("0x5")](Vr("0x3"),0),this[Vr("0x5")](Vr("0x0"),0),this[Vr("0x5")](Vr("0xc"),!1),this.set(Vr("0x17"),!1),this[Vr("0x8")](Vr("0xd")).to(this,Vr("0x12"),this,Vr("0x0"),((e,t)=>e&&t>0)),this[Vr("0x8")](Vr("0xe")).to(this,Vr("0x12"),this,Vr("0x3"),this,"numberOfChanges",this,Vr("0x1b"),((t,i,n,r)=>{if(!t)return en(e,Vr("0x18"));if(!n)return en(e,Vr("0x13"));const o=en(e,Vr("0x1"),n);return r?en(e,Vr("0x14"),[i+1,n]):o})),i[Vr("0x5")]({label:en(e,Vr("0x1a")),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[Vr("0x5")]({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[Vr("0x8")](Vr("0x9")).to(this,Vr("0x17")),n.bind("isEnabled").to(this,Vr("0xc")),i.on(Vr("0x4"),(()=>this[Vr("0x1c")](Vr("0x4"),"backward"))),n.on(Vr("0x4"),(()=>this[Vr("0x1c")]("execute",Vr("0x16")))),this.setTemplate({tag:Vr("0x19"),attributes:{class:["ck",Vr("0x6"),Vr("0x11")]},children:[{tag:"span",attributes:{class:[Vr("0xa")]},children:[{tag:Vr("0x7"),attributes:{class:[Vr("0xb"),t.if(Vr("0xd"),Vr("0x2"),(e=>!e))]},children:[{text:t.to(Vr("0x1b"),(t=>t?en(e,Vr("0x15"))+": ":en(e,Vr("0x10"))+": "))}]},{text:t.to("_statusText")}]},new Dn.ToolbarSeparatorView,{tag:Vr("0x19"),attributes:{class:[Vr("0x1d")]},children:[i,n]}]})}}var Ar=i(368),Er={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fn()(Ar.Z,Er);Ar.Z.locals;const jr=["document","editor","removeClass","view","editing","roots","change","show","addClass","RevisionViewerLoadingOverlay","ck-editor__editable__loading-overlay","pluginName"];var Dr,Cr;Dr=jr,Cr=171,function(e){for(;--e;)Dr.push(Dr.shift())}(++Cr);const Fr=function(e,t){return jr[e-=0]},Lr=Fr("0x7");class Pr extends e.Plugin{static get[Fr("0x8")](){return Fr("0x6")}[Fr("0x4")](){const e=this.editor[Fr("0x1")][Fr("0x0")];e[Fr("0x3")]((t=>{for(const i of e[Fr("0x9")][Fr("0x2")])t[Fr("0x5")](Lr,i)}))}hide(){const e=this[Fr("0xa")][Fr("0x1")].view;e[Fr("0x3")]((t=>{for(const i of e.document[Fr("0x2")])t[Fr("0xb")](Lr,i)}))}}const zr=["currentChangeNumber","isReady","listenTo","commands","isForwardNavigationEnabled","closeRevisionViewerCallback","revisionHistory","set","restoreRevision","numberOfChanges","componentFactory","plugins","hide","showNextChange","Restore this revision","get","execute","changesNavigation","requires","show","forward","isNavigationMode","ck-revision-history-ui__back-to-editing","isEnabled","showPreviousChange","bind","add","exitToEditing"];var Zr,Ur;Zr=zr,Ur=146,function(e){for(;--e;)Zr.push(Zr.shift())}(++Ur);const Hr=function(e,t){return zr[e-=0]};class qr extends e.Plugin{static get pluginName(){return"RevisionViewerUI"}static get[Hr("0xc")](){return[kr,Pr]}init(){const e=this.editor,t=e[Hr("0x5")][Hr("0x9")](kr),i=e[Hr("0x5")][Hr("0x9")](Pr);e.ui[Hr("0x4")][Hr("0x14")](Hr("0x15"),(t=>{const i=new Dn.ButtonView(t);return i[Hr("0x1")]({label:en(t,"Back to editing"),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:Hr("0x10")}),this.listenTo(i,Hr("0xa"),(()=>{e.config.get(Hr("0x0"))[Hr("0x1b")]()})),i})),e.ui[Hr("0x4")][Hr("0x14")](Hr("0x2"),(t=>{const i=new Dn.ButtonView(t);return i.set({label:en(t,Hr("0x8")),withText:!0,tooltip:!0}),i[Hr("0x13")](Hr("0x11")).to(e[Hr("0x19")][Hr("0x9")](Hr("0x2"))),this[Hr("0x18")](i,Hr("0xa"),(()=>e[Hr("0xa")]("restoreRevision"))),i})),e.ui[Hr("0x4")][Hr("0x14")](Hr("0xb"),(i=>{const n=new Mr(i),r=e.commands[Hr("0x9")](Hr("0x12")),o=e.commands[Hr("0x9")](Hr("0x7"));return n[Hr("0x13")]("isBackwardNavigationEnabled").to(r,Hr("0x11")),n[Hr("0x13")](Hr("0x1a")).to(o,Hr("0x11")),n[Hr("0x13")](Hr("0x17"),Hr("0x16"),Hr("0x3"),Hr("0xf")).to(t),this[Hr("0x18")](n,Hr("0xa"),((t,i)=>{e[Hr("0xa")](Hr("0xe")===i?Hr("0x7"):"showPreviousChange")})),n})),i[Hr("0xd")](),t.on("change:isReady",((e,t,n)=>{n?i[Hr("0x6")]():i.show()}))}}var Br=i(957),Wr={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fn()(Br.Z,Wr);Br.Z.locals;var Jr,Gr,Yr=["extendTemplate","set","span"];Jr=Yr,Gr=433,function(e){for(;--e;)Jr.push(Jr.shift())}(++Gr);var $r=function(e,t){return Yr[e-=0]};class Kr extends Dn.LabeledFieldView{constructor(e,t){super(e,t),this[$r("0x0")]({label:en(e,"Revision name")}),this[$r("0x2")]({tag:$r("0x1"),attributes:{class:["ck-revision-history-sidebar__revision-name"]}})}}var Xr=i(522),Qr={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fn()(Xr.Z,Qr);Xr.Z.locals;const eo=["ck-revision-history-sidebar__revision-author_creator","0 0 11 10","name","Revision author","ck-revision-history-sidebar__revision-author","Revision creator"];var to,io;to=eo,io=323,function(e){for(;--e;)to.push(to.shift())}(++io);const no=function(e,t){return eo[e-=0]};class ro extends Dn.View{constructor(e,t,i){super(e);const n=new Dn.IconView;n.set({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:no("0x2")});const r=["ck",no("0x5")];i&&r.push(no("0x1"));const o=[{tag:"span",attributes:{class:["ck","ck-revision-history-sidebar__revision-author__name"],title:en(e,no(i?"0x0":"0x4"))},children:[n,t[no("0x3")]]}];this.setTemplate({tag:"li",attributes:{class:r},children:o})}}var oo,so,ao=["numeric","toLocaleTimeString","long"];oo=ao,so=333,function(e){for(;--e;)oo.push(oo.shift())}(++so);var co=function(e,t){return ao[e-=0]};var uo=i(834),lo={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fn()(uo.Z,lo);uo.Z.locals;const xo=["set","change:isActionsDropdownOpen","function","isVisible","class","add","Restore this revision","find","execute","name","locale","first","ck-revision-history-sidebar__revision__actions","items","Name this revision","isActionsDropdownOpen","bindTemplate","Compare against selected","ck-on","bind","buttonView","isEnabled","stopPropagation","children","model","threeVerticalDots","_action","extendTemplate","source"];var ho,fo;ho=xo,fo=213,function(e){for(;--e;)ho.push(ho.shift())}(++fo);const vo=function(e,t){return xo[e-=0]};var mo=i(525),go={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fn()(mo.Z,go);mo.Z.locals;const po=["setName","div","ck-revision-history-sidebar__revision-wrapper_confirmation_visible","isEnabled","ck-revision-history-sidebar__revision__controls-wrapper","isHighlighted","bind","uiLanguage","setTemplate","ck-disabled","ck-revision-history-sidebar__revision_highlighted","filter","listenTo","isActionsDropdownOpen","ck-revision-history-sidebar__actions_dropdown_open","ck-revision-history-sidebar__revision__date","change",".ck-thread__remove-confirm","isConfirm","isSelected","select","revisionNameView","name","ck-revision-history-sidebar__revision","isReady","createdAt","creator","map","srcElement","ck-revision-history-sidebar__revision-authors","length","unshift","from","220","render","revisionActionsView","fieldView","deselect","authors","element","value","set","bindTemplate","ck-revision-history-sidebar__revision_selected","highlight","ck-reset","_createdAtFormatted"];var yo,bo;yo=po,bo=267,function(e){for(;--e;)yo.push(yo.shift())}(++bo);const ko=function(e,t){return po[e-=0]};class _o extends((0,r.ConfirmMixin)(Dn.View)){constructor(i,n,r){super(i);const o=this[ko("0xa")],s=function(e,t){const i=Array[ko("0x0")](t[ko("0x6")])[ko("0x1a")]((e=>e!=t[ko("0x29")]));return t.creator&&i[ko("0x2e")](t[ko("0x29")]),i[ko("0x2a")]((i=>new ro(e,i,i==t.creator)))}(i,n);this.id=n.id,this._revision=n,this[ko("0x15")](ko("0x25"),ko("0x28")).to(n),this[ko("0x15")](ko("0xe")).to(this,ko("0x28"),(e=>{return e?(t=i[ko("0x16")],(n=e).toLocaleDateString(t,{month:co("0x2"),day:co("0x0")})+", "+n[co("0x1")](t,{hour:co("0x0"),minute:"numeric"})):void 0;var t,n})),this.set(ko("0x22"),!1),this.set(ko("0x14"),!1),this[ko("0x9")](ko("0x1c"),!1),this[ko("0x9")](ko("0x27"),!1),this.set("isEnabled",!1),this[ko("0x24")]=new Kr(i,Dn.createLabeledInputText),this[ko("0x24")][ko("0x4")].extendTemplate({attributes:{maxlength:ko("0x1")}}),this[ko("0x24")][ko("0x4")].bind(ko("0x8"),"placeholder").to(this,ko("0x25"),ko("0xe")),this.revisionNameView[ko("0x15")]("isEnabled").to(this,ko("0x22"),this,ko("0x12"),((e,t)=>e&&t)),this[ko("0x3")]=r&&r[ko("0x2d")]?function(i,n){const r=i[vo("0x6")],o=i[vo("0x0")],s=(0,Dn.createDropdown)(o);s.panelPosition="sw";const a=function(e,i){const n=function(e,t){const i=e[vo("0x0")],n={"Compare against selected":en(i,vo("0x7")),"Name this revision":en(i,vo("0x4")),"Restore this revision":en(i,vo("0x19"))};return t.map((e=>{const t=n[e[vo("0x1c")]];return t&&t!==e.name&&(e[vo("0x1c")]=t),e}))}(e,i),r=new t.Collection;for(const t of n){const i={type:"button",model:new Dn.Model({label:t.name,class:t[vo("0x17")],withText:!0,_action:t.action})};i[vo("0xe")][vo("0x9")](vo("0xb")).to(e,vo("0x5"),(i=>vo("0x15")!=typeof t[vo("0xb")]||!i||t[vo("0xb")](e))),r[vo("0x18")](i)}return r}(i,n);return i[vo("0x9")](vo("0x5")).to(s,"isOpen"),s[vo("0xa")][vo("0x13")]({label:en(o,"Show more items"),tooltip:!0,tooltipPosition:"sw",icon:e.icons[vo("0xf")]}),s[vo("0x11")]({attributes:{class:[vo("0x2"),r.if(vo("0x5"),vo("0x8"))]},on:{click:r.to((e=>e[vo("0xc")]()))}}),s.on(vo("0x1b"),(e=>{i.isReady&&"function"==typeof e.source._action&&e[vo("0x12")][vo("0x10")](i)})),(0,Dn.addListToDropdown)(s,a),s.listenTo(i,vo("0x14"),((e,t,r)=>{if(r)for(const e of s.listView[vo("0x3")]){const t=e[vo("0xd")][vo("0x1")],r=n[vo("0x1a")]((e=>e.action===t[vo("0x10")]))[vo("0x16")];e[vo("0x16")]=void 0===r||r(i)}})),s}(this,r):"",this[ko("0x3")]&&this.revisionActionsView[ko("0x15")](ko("0x12")).to(this),this[ko("0x17")]({tag:"div",attributes:{class:["ck","ck-reset","ck-revision-history-sidebar__revision-wrapper",o.if(ko("0x21"),ko("0x11"))]},children:[{tag:ko("0x10"),attributes:{class:["ck",ko("0xd"),ko("0x26"),o.if("isEnabled",ko("0x18"),(e=>!e)),o.if(ko("0x22"),ko("0xb")),o.if(ko("0x14"),ko("0x19")),o.if("isActionsDropdownOpen",ko("0x1d"))]},children:[this.revisionNameView,{tag:"span",attributes:{class:["ck",ko("0x1e")]},children:[{text:o.to("_createdAtFormatted")}]},{tag:ko("0x10"),attributes:{class:["ck",ko("0x13")]},children:[{tag:"ul",attributes:{class:["ck",ko("0x2c")]},children:s}]},this[ko("0x3")]],on:{click:o.to((e=>{e[ko("0x2b")].closest(ko("0x20"))||this[ko("0x27")]&&this[ko("0x12")]&&this.fire(ko("0x23"),{id:this.id})}))}}]})}[ko("0x2")](){super[ko("0x2")]();const e=this[ko("0x24")].fieldView[ko("0x7")];this[ko("0x1b")](e,ko("0x1f"),(()=>{this.fire(ko("0xf"),{id:this.id,name:e[ko("0x8")]})}))}[ko("0x23")](){this[ko("0x22")]=!0}[ko("0x5")](){this[ko("0x22")]=!1}[ko("0xc")](){this[ko("0x14")]=!0}unhighlight(){this[ko("0x14")]=!1}}var wo=i(810);const So=["local","minus","weekdayLong","setLocale","startOf","fromJSDate","toRelativeCalendar","day","toJSDate","week","hasSame","year"];var Oo,To;Oo=So,To=499,function(e){for(;--e;)Oo.push(Oo.shift())}(++To);const Ro=function(e,t){return So[e-=0]};function Io(e,t){const i=wo.ou[Ro("0xa")](e)[Ro("0x8")](t),n=wo.ou[Ro("0x5")](),r=n[Ro("0x6")]({days:1})[Ro("0x9")](Ro("0x0"));let o,s;return i[Ro("0x3")](n,Ro("0x0"))?(o=i[Ro("0x9")]("day")[Ro("0x1")](),s=i[Ro("0xb")]()):i[Ro("0x3")](r,Ro("0x0"))?(o=r[Ro("0x1")](),s=i[Ro("0xb")]()):i.hasSame(n,"week")?(o=i[Ro("0x9")](Ro("0x2"))[Ro("0x1")](),s=i[Ro("0x7")]||""):i.hasSame(n,Ro("0x4"))?(o=i[Ro("0x9")]("month")[Ro("0x1")](),s=i.monthLong||""):(o=i.startOf(Ro("0x4"))[Ro("0x1")](),s=String(i.year)),{startDate:o,localizedPeriodName:s}}var No=i(37),Vo={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fn()(No.Z,Vo);No.Z.locals;const Mo=["_revisionActions","div","remove","revisionViews","find","uiLanguage","ck-revision-history-sidebar__time-period__revisions","ck-revision-history-sidebar__time-period__label","startDate","createCollection","localizedPeriodName","setName","delegate","locale","span","removeRevision","addRevision"];var Ao,Eo;Ao=Mo,Eo=381,function(e){for(;--e;)Ao.push(Ao.shift())}(++Eo);const jo=function(e,t){return Mo[e-=0]};class Do extends Dn.View{constructor(e,t,i){super(e);const n=Io(t,this[jo("0x6")][jo("0xf")])[jo("0x3")];this[jo("0x1")]=t,this[jo("0xd")]=this[jo("0x2")](),this[jo("0xa")]=i,this[jo("0xd")][jo("0x5")]("select").to(this),this[jo("0xd")][jo("0x5")](jo("0x4")).to(this),this.setTemplate({tag:jo("0xb"),attributes:{class:["ck","ck-revision-history-sidebar__time-period"]},children:[{tag:jo("0x7"),attributes:{class:["ck",jo("0x0")]},children:[{text:n}]},{tag:jo("0xb"),attributes:{class:["ck",jo("0x10")]},children:this[jo("0xd")]}]})}[jo("0x9")](e){const t=new _o(this[jo("0x6")],e,this._revisionActions);this[jo("0xd")].add(t)}[jo("0x8")](e){const t=this.revisionViews[jo("0xe")]((t=>t.id===e.id));this[jo("0xd")][jo("0xc")](t)}}var Co=i(29),Fo={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fn()(Co.Z,Fo);Co.Z.locals;const Lo=["content","ck-revision-history-sidebar__header","ck-reset_all","ck-revision-history-sidebar__header__label","div"];var Po,zo;Po=Lo,zo=326,function(e){for(;--e;)Po.push(Po.shift())}(++zo);const Zo=function(e,t){return Lo[e-=0]};class Uo extends Dn.View{constructor(e){super(e);const t=new Dn.IconView;t[Zo("0x4")]=Jn,this.setTemplate({tag:Zo("0x3"),attributes:{class:["ck",Zo("0x1"),Zo("0x0")]},children:[t,{tag:"span",attributes:{class:["ck",Zo("0x2")]},children:[en(e,"Revision history")]}]})}}var Ho=i(790),qo={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fn()(Ho.Z,qo);Ho.Z.locals;const Bo=["ck-disabled","map","_revisions","locale","ck-revision-history-sidebar","_addRevision","highlightRevisions","some","unhighlight","addRevision","_revisionActions","uiLanguage","getTime","flat","ck-reset","revisionSelected","selectRevision","startDate","remove","render","ck-rounded-corners","add","select","revisionSetName","div","setName","createdAt","_removeRevision","fire","ck-revision-history-sidebar__timeline","set","revisionViews","get","timePeriodViews","isEnabled","delegate","deselect","setTemplate"];var Wo,Jo;Wo=Bo,Jo=477,function(e){for(;--e;)Wo.push(Wo.shift())}(++Jo);const Go=function(e,t){return Bo[e-=0]};class Yo extends Dn.View{constructor(e,t,i){super(e);const n=this.bindTemplate;this[Go("0xc")]=this.createCollection(),this[Go("0xc")][Go("0xe")]("select").to(this),this[Go("0xc")][Go("0xe")](Go("0x4")).to(this),this[Go("0x13")]=t,this[Go("0x1b")]=i,this.on(Go("0x1"),((e,t)=>{this[Go("0x7")](Go("0x20"),t)})),this.on(Go("0x4"),((e,t)=>{this.fire(Go("0x2"),t)})),this[Go("0x9")](Go("0xd"),!1),this[Go("0x10")]({tag:"div",attributes:{class:["ck",Go("0x1f"),Go("0x25"),Go("0x15")]},children:[new Uo(e),{tag:Go("0x3"),attributes:{class:["ck",Go("0x8"),n.if(Go("0xd"),Go("0x11"),(e=>!e))]},children:this[Go("0xc")]}]})}[Go("0x24")](){super[Go("0x24")]();for(const e of this[Go("0x13")])this[Go("0x16")](e);this[Go("0x13")].on(Go("0x0"),((e,t)=>{this._addRevision(t)})),this[Go("0x13")].on(Go("0x23"),((e,t)=>{this[Go("0x6")](t)}))}get[Go("0xa")](){return this[Go("0xc")][Go("0x12")]((e=>e[Go("0xa")][Go("0x12")]((e=>e))))[Go("0x1e")]()}[Go("0x21")](e){for(const t of this[Go("0xa")])e&&e.id===t.id?t[Go("0x1")]():t[Go("0xf")]()}[Go("0x17")](e){for(const t of this[Go("0xa")])e[Go("0x18")]((({id:e})=>e===t.id))?t.highlight():t[Go("0x19")]()}[Go("0x16")](e){const t=Io(e[Go("0x5")],this[Go("0x14")][Go("0x1c")])[Go("0x22")];let i=this.timePeriodViews[Go("0xb")](0);i&&i[Go("0x22")][Go("0x1d")]()===t.getTime()||(i=new Do(this[Go("0x14")],t,this._revisionActions),this[Go("0xc")][Go("0x0")](i)),i[Go("0x1a")](e)}_removeRevision(e){const t=Io(e.createdAt,this[Go("0x14")][Go("0x1c")])[Go("0x22")];this._getTimePeriodViewByStartDate(t).removeRevision(e)}_getTimePeriodViewByStartDate(e){return this.timePeriodViews.find((t=>t[Go("0x22")][Go("0x1d")]()===e[Go("0x1d")]()))}}const $o=["nameRevision","getRevision","restoreRevisionCallback","revisionSelected","editor","add","render","isEnabled","change:diff","fieldView","isSelected","get","selectRevision","length","listenTo","_handleDiffChange","diff","revisionSetName","isVisible","compare","bind","assign","data","element","_handleEditorDataReady","init","requires","config","repository","revisionHistory","plugins","revisionViews","revisionHistory.viewerSidebarContainer","getEarlierVisibleRevision","revisionHistory.revisionActions","setName","_revisions","_revisionsRepository","getIndex","destroy","availableRevisionActions","appendChild","string","select","getRevisionsInDiff","Name this revision","remove","_handleRevisionSelected","newRevisionId","RevisionsSidebar","Compare against selected","highlightRevisions","getLaterVisibleRevision","compareAgainstSelected","name","defaultRevisionActions","pluginName","_createRevisionActions","_sidebarView","Restore this revision","_revisionViewer"];var Ko,Xo;Ko=$o,Xo=417,function(e){for(;--e;)Ko.push(Ko.shift())}(++Xo);const Qo=function(e,t){return $o[e-=0]};class es extends e.Plugin{static get[Qo("0x5")](){return Qo("0x3b")}static get[Qo("0x24")](){return[kr]}constructor(e){super(e),this._revisionViewer=e[Qo("0x28")][Qo("0x15")](kr),this._revisionsRepository=this._revisionViewer[Qo("0x26")],this[Qo("0x7")]=null}[Qo("0x23")](){const e=this._revisionsRepository[Qo("0x2e")],t=this[Qo("0x6")](),i=this[Qo("0xe")][Qo("0x25")].get(Qo("0x2a"));this[Qo("0x7")]=new Yo(this[Qo("0xe")].locale,e,t),this[Qo("0x7")].on(Qo("0xd"),this._handleRevisionSelected[Qo("0x1e")](this)),this._sidebarView.on(Qo("0x1b"),this._handleRevisionSetName.bind(this)),this[Qo("0x7")][Qo("0x1e")](Qo("0x11")).to(this[Qo("0x9")]),this._sidebarView.timePeriodViews.on(Qo("0xf"),((e,t)=>{t[Qo("0x29")].on(Qo("0xf"),((e,t)=>{t[Qo("0x1e")]("isEnabled","isReady").to(this._revisionViewer)}))})),this._sidebarView[Qo("0x10")](),this.listenTo(this[Qo("0xe")][Qo("0x20")],"ready",this._handleEditorDataReady[Qo("0x1e")](this)),this[Qo("0x18")](this._revisionViewer,Qo("0x12"),this[Qo("0x19")][Qo("0x1e")](this)),i[Qo("0x33")](this._sidebarView[Qo("0x21")])}[Qo("0x31")](){this[Qo("0x7")].element[Qo("0x38")](),this[Qo("0x7")][Qo("0x31")]()}[Qo("0x22")](){const e=this[Qo("0x2f")][Qo("0xb")](0);if(e){const t=this._revisionsRepository[Qo("0x2b")](e.id);this._revisionViewer[Qo("0x1d")](e,t)}}[Qo("0x39")](e,t){const i=this[Qo("0x2f")][Qo("0xb")](t.id),n=this[Qo("0x2f")][Qo("0x2b")](i.id);this._revisionViewer.compare(i,n)}_handleRevisionSetName(e,t){this[Qo("0x2f")][Qo("0xb")](t.id)[Qo("0x2d")](t[Qo("0x3")])}[Qo("0x19")](e,t,i){const n=this[Qo("0x2f")].getRevisionsInDiff(i);n[Qo("0x17")]>2?(this[Qo("0x7")][Qo("0x0")](n),this[Qo("0x7")][Qo("0x16")](null)):(this[Qo("0x7")][Qo("0x0")]([]),this._sidebarView[Qo("0x16")](n[0]))}_createRevisionActions(){const e=this.editor,t=es[Qo("0x32")],i=e[Qo("0x25")][Qo("0x15")](Qo("0x2c"))||es[Qo("0x4")];if(i[Qo("0x17")])return i.map((i=>{const n=Qo("0x34")==typeof i?Object[Qo("0x1f")]({},t[i]):i;return n.action=n.action[Qo("0x1e")](this,e),n[Qo("0x1c")]&&(n[Qo("0x1c")]=n.isVisible[Qo("0x1e")](this,e)),n}))}}es[Qo("0x32")]={compareAgainstSelected:{name:Qo("0x3c"),action:({plugins:e},t)=>{const i=e.get(kr),n=i[Qo("0x26")];let r=i.diff[Qo("0x3a")],o=t.id;n[Qo("0x30")](r)>n.getIndex(o)&&([r,o]=[o,r]),i.compare(r,o)},isVisible:({plugins:e},t)=>{const i=e[Qo("0x15")](kr);return!(i[Qo("0x26")][Qo("0x36")](i[Qo("0x1a")]).length>2||t[Qo("0x14")])}},restoreRevision:{name:Qo("0x8"),action:(e,{id:t})=>{e[Qo("0x25")][Qo("0x15")](Qo("0x27"))[Qo("0xc")](t)},isVisible:({plugins:e},t)=>!!e[Qo("0x15")](kr).repository[Qo("0x1")](t.id)},nameRevision:{name:Qo("0x37"),action:({plugins:e},{id:t,revisionNameView:i})=>{const n=e[Qo("0x15")](kr),r=n[Qo("0x26")][Qo("0x2b")](t);n[Qo("0x1d")](t,r),i.focus(),i[Qo("0x13")][Qo("0x35")]()}}},es[Qo("0x4")]=[Qo("0x2"),"restoreRevision",Qo("0xa")];const ts=["rootName","editor","fillFromConfig","limiterElement","_initToolbar","setEditableElement","restore","ready","editable","viewportOffset","name","get","focusTracker","config","detachDomRoot","editing","init","view","getRoot","componentFactory","viewportTopOffset","addToolbar","_view","bind","stickyPanel","_elementReplacer","_toolbarConfig","destroy","document","element","toolbar"];var is,ns;is=ts,ns=197,function(e){for(;--e;)is.push(is.shift())}(++ns);const rs=function(e,t){return ts[e-=0]};class os extends Dn.EditorUI{get[rs("0x6")](){return this[rs("0xb")]}constructor(e,i){super(e),this[rs("0xb")]=i,this[rs("0xf")]=(0,Dn.normalizeToolbarConfig)(e[rs("0x2")][rs("0x0")](rs("0x13"))),this[rs("0xe")]=new t.ElementReplacer}get[rs("0x12")](){return this[rs("0x6")][rs("0x12")]}[rs("0x5")](e){const t=this[rs("0x15")],i=this[rs("0x6")],n=t[rs("0x4")][rs("0x6")],r=i[rs("0x1c")],o=n[rs("0x11")][rs("0x7")]();r[rs("0x1e")]=o[rs("0x14")],i.render();const s=r[rs("0x12")];this[rs("0x19")](r.name,s),i[rs("0x1c")][rs("0xc")]("isFocused").to(this.focusTracker),n.attachDomRoot(s),this[rs("0xe")].replace(e,this[rs("0x12")]),this[rs("0x18")](),this.fire(rs("0x1b"))}[rs("0x10")](){super[rs("0x10")]();const e=this[rs("0x6")],t=this[rs("0x15")][rs("0x4")].view;this[rs("0xe")][rs("0x1a")](),t[rs("0x3")](e.editable[rs("0x1e")]),e[rs("0x10")]()}[rs("0x18")](){const e=this[rs("0x6")];e[rs("0xd")][rs("0xc")]("isActive").to(this[rs("0x1")],"isFocused"),e.stickyPanel[rs("0x17")]=e.element,e[rs("0xd")][rs("0xc")](rs("0x9")).to(this,rs("0x1d"),(({top:e})=>e)),e.toolbar[rs("0x16")](this._toolbarConfig,this[rs("0x8")]),this[rs("0xa")](e[rs("0x13")])}}var ss=i(168),as={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fn()(ss.Z,as);ss.Z.locals;var cs,us,ds=["top","editable","toolbar","content","main","render","_editable","add","stickyPanel","shouldToolbarGroupWhenFull"];cs=ds,us=371,function(e){for(;--e;)cs.push(cs.shift())}(++us);var ls=function(e,t){return ds[e-=0]};class xs extends Dn.BoxedEditorUIView{get[ls("0x0")](){return this[ls("0x5")]}constructor(e,t,i={}){super(e),this.stickyPanel=new Dn.StickyPanelView(e),this[ls("0x1")]=new Dn.ToolbarView(e,{shouldGroupWhenFull:i[ls("0x8")]}),this[ls("0x5")]=new Dn.InlineEditableUIView(e,t)}render(){super[ls("0x4")](),this[ls("0x7")][ls("0x2")][ls("0x6")](this.toolbar),this[ls("0x9")][ls("0x6")](this[ls("0x7")]),this[ls("0x3")].add(this.editable)}}const hs=["config","create","fire","destroy","initialData","document","data","editing","updateSourceElement","_ui","sourceElement","model","initPlugins","get","init","locale"];var fs,vs;fs=hs,vs=102,function(e){for(;--e;)fs.push(fs.shift())}(++vs);const ms=function(e,t){return hs[e-=0]};class gs extends((0,e.DataApiMixin)((0,e.ElementApiMixin)(e.Editor))){get ui(){return this[ms("0x3")]}constructor(e,t){super(t),this[ms("0x4")]=e,this[ms("0x5")][ms("0xf")].createRoot();const i=new xs(this[ms("0x9")],this[ms("0x1")].view,{shouldToolbarGroupWhenFull:!0});this[ms("0x3")]=new os(this,i)}[ms("0xd")](){return this[ms("0x2")](),this.ui.destroy(),super[ms("0xd")]()}static async[ms("0xb")](e,t){const i=new this(e,t);return await i[ms("0x6")](),await i.ui[ms("0x8")](e),await i[ms("0x0")][ms("0x8")](i[ms("0xa")][ms("0x7")](ms("0xe"))||""),i[ms("0xc")]("ready"),i}}const ps=["Autosave","_update","toolbar","changesNavigation","enqueueChange","revisionHistory","RevisionViewer","RestrictedEditingMode","addUser","repository","get","concat","users","keys","isEnabled","addRoot","showRevisionViewerCallback","getMarkersGroup","numeric","detachRoot","data","none","has","setAttribute","revisionHistory.showRevisionViewerCallback","Users","update","filter","getAttributeKeys","getRootNames","_closeRevisionViewer","revision-history-missing-configuration","model","every","pluginName","_enhanceCloseRevisionViewerCallback","creator","getRevisionRootsAttributes","restrictedEditingException","block","getRevisions","extraPlugins","builtinPlugins","init","_getRevisionViewerEditorConfig","revision-history-viewer-opened","error","RevisionsRepository","find","set","selection","display","insert","catch","_recalculatePageBreaks","fromVersion","push","createdAt","name","_showRevisionViewer","parse","plugins","long","RevisionHistoryUI","saveRevision","exitToEditing","revisionHistory.viewerContainer","enableReadOnlyMode","function","string","define","config","toLocaleDateString","_viewerEditor","_restoreRevision","style","rootsAttributes","addRevisionData","RevisionHistory","_enhanceShowRevisionViewerCallback","save","toVersion","getRevision","bind","Restored","PaginationLookup","revisionHistory.closeRevisionViewerCallback","restoreRevision","disableReadOnlyMode","RevisionTracker","adapter","editor","refreshVisibility","includes","context","then","revisionHistory.editorContainer","revisionHistory.restoreRevisionCallback","document","WebSocketGateway","constructor","getRevisionData","locale","DocumentOutline","uiLanguage","isReady","toJSON","requires","setSelection","Annotations","toLocaleTimeString"];var ys,bs;ys=ps,bs=337,function(e){for(;--e;)ys.push(ys.shift())}(++bs);const ks=function(e,t){return ps[e-=0]};class _s extends e.Plugin{static get[ks("0x1e")](){return ks("0x4a")}static get[ks("0x67")](){return[In,Xn]}constructor(e){if(super(e),!this[ks("0x57")][ks("0x43")][ks("0x6")]("revisionHistory"))throw new t.CKEditorError(ks("0x1b"),this);this[ks("0x45")]=null,this[ks("0x57")][ks("0x43")][ks("0x42")](ks("0x14"),(e=>this[ks("0x37")](e))),this[ks("0x57")][ks("0x43")][ks("0x42")](ks("0x52"),(e=>this[ks("0x1a")](e))),this.editor[ks("0x43")][ks("0x42")](ks("0x5d"),(e=>this[ks("0x46")](e))),this[ks("0x4b")](),this._enhanceCloseRevisionViewerCallback()}set[ks("0x56")](e){this[ks("0x57")].plugins.get(ks("0x55")).adapter=e}get[ks("0x56")](){return this.editor.plugins[ks("0x6")](ks("0x55"))[ks("0x56")]}[ks("0x49")](e){return this[ks("0x57")][ks("0x39")][ks("0x6")](ks("0x55"))[ks("0x49")](e)}[ks("0x4e")](e){return this[ks("0x57")][ks("0x39")][ks("0x6")](ks("0x2b"))[ks("0x4e")](e)}[ks("0x24")](e={toJSON:!1}){return this[ks("0x57")].plugins[ks("0x6")](ks("0x2b")).getRevisions(e)}[ks("0x28")](){const i=[ks("0x5a")],n=[ks("0x55"),ks("0x3b"),ks("0x5f"),ks("0x3"),"Autosave",ks("0x63")],r={},o=this.editor,s=o[ks("0x39")].get(ks("0x55")),a=o[ks("0x39")][ks("0x6")](ks("0x15"))[ks("0x8")];for(const e of o[ks("0x43")].names())i[ks("0x59")](e)||(r[e]=o[ks("0x43")][ks("0x6")](e));delete r.initialData,delete r[ks("0x48")],r[ks("0x6d")]=[ks("0x3d"),"restoreRevision",ks("0x6e")];const c=this[ks("0x57")][ks("0x60")][ks("0x26")]||[],u=r[ks("0x25")]||[];delete r[ks("0x25")];const d=c[ks("0x7")](r[ks("0x39")])[ks("0x7")](u).map((e=>ks("0x41")==typeof e?c[ks("0x2c")]((t=>t.pluginName==e)):e));let l=!1;function x(e,t,i){const r=ks("0x40")==typeof e?e[ks("0x1e")]||e[ks("0x36")]:e;if(ks("0x5f")===r&&(l=!0),i[ks("0x59")](r))return!0;if(i.push(r),n[ks("0x59")](r))return!1;const o=(("function"==typeof e?e:t.has(r)?t[ks("0x6")](r):{})[ks("0x67")]||[])[ks("0x1d")]((e=>x(e,t,i)));return o||n.push(r),o}return r[ks("0x39")]=Array.from(new Set(d))[ks("0x17")]((e=>x(e,o[ks("0x39")],[]))),l&&r.plugins.push(o.plugins[ks("0x6")](ks("0x5f"))[ks("0x60")]),r[ks("0x39")][ks("0x34")](kr,qr,class extends e.Plugin{static get[ks("0x67")](){return[kr,ks("0x15")]}[ks("0x27")](){const e=this[ks("0x57")][ks("0x39")][ks("0x6")](ks("0x15"));for(const t of a)t.isAnonymous||e.getUser(t.id)||e[ks("0x4")](t);const i=s.repository[ks("0x24")]();let n=null;const r=this.editor[ks("0x39")][ks("0x6")]("RevisionViewer");r.adapter=s[ks("0x56")],r[ks("0x4f")]("isEnabled").to(s),this[ks("0x57")].commands[ks("0x6")](ks("0x53"))[ks("0x4f")](ks("0xa")).to(o,"isReadOnly",(e=>!e));for(const e of i){const i=null===e[ks("0x20")];if(i&&e[ks("0x4d")]===e[ks("0x33")])continue;const o=e[ks("0x66")]();r[ks("0x49")](o,((r,o,a)=>{if(i){if(n)n[ks("0x6c")](r,o);else if(!o){const e=a[ks("0x66")]();e.id=(0,t.uid)(),s[ks("0x3c")](e,a[ks("0x4d")]).then((e=>{n=e}))}}else e[ks("0x6c")](r,o)}))}}},es),r}[ks("0x4b")](){const e=this[ks("0x57")][ks("0x43")][ks("0x6")](ks("0x1"))[ks("0xc")];this[ks("0x57")][ks("0x43")][ks("0x2d")]("revisionHistory.showRevisionViewerCallback",(async()=>{this[ks("0x57")][ks("0x3f")](ks("0x29"));const t=this[ks("0x57")][ks("0x39")][ks("0x6")]("RevisionTracker");if(this[ks("0x57")].plugins.has("Autosave")){const e=this[ks("0x57")][ks("0x39")][ks("0x6")](ks("0x6b"));await e[ks("0x4c")]()}else await t[ks("0x16")]();this[ks("0x57")].plugins[ks("0x12")](ks("0x51"))&&this.editor[ks("0x39")].get("PaginationLookup")._recalculatePageBreaks();const i=this[ks("0x28")]();return e(i)[ks("0x5b")]((e=>(this[ks("0x45")]=e,this[ks("0x57")][ks("0x39")][ks("0x12")](ks("0x69"))&&this[ks("0x57")].plugins[ks("0x6")]("Annotations")[ks("0x58")](),e)))[ks("0x31")]((e=>(console[ks("0x2a")](e),this.editor[ks("0x54")](ks("0x29")),null)))}))}[ks("0x1f")](){const e=this[ks("0x57")][ks("0x43")].get(ks("0x1")).closeRevisionViewerCallback;this.editor[ks("0x43")][ks("0x2d")]("revisionHistory.closeRevisionViewerCallback",(()=>(this.editor[ks("0x39")][ks("0x12")](ks("0x51"))&&this[ks("0x57")][ks("0x39")].get(ks("0x51"))[ks("0x32")](),this[ks("0x45")][ks("0x39")].get(ks("0x2"))._cleanUp(),e(this[ks("0x45")])[ks("0x5b")]((()=>{if(this[ks("0x57")][ks("0x54")](ks("0x29")),this[ks("0x45")]=null,this.editor[ks("0x39")][ks("0x12")](ks("0x69"))){const e=this.editor[ks("0x39")][ks("0x6")](ks("0x69"));e.refreshVisibility(),e.refreshPositioning()}})))))}_showRevisionViewer(e){const t=this[ks("0x57")].config[ks("0x6")]("revisionHistory.editorContainer"),i=this[ks("0x57")].config[ks("0x6")](ks("0x3e")),n=this[ks("0x57")][ks("0x43")].get("revisionHistory.viewerEditorElement");return gs.create(n,e).then((e=>(i[ks("0x47")][ks("0x2f")]=ks("0x23"),t.style[ks("0x2f")]=ks("0x11"),e)))}[ks("0x1a")](e){const t=this[ks("0x57")].config[ks("0x6")](ks("0x5c"));return this[ks("0x57")][ks("0x43")][ks("0x6")](ks("0x3e"))[ks("0x47")].display=ks("0x11"),t[ks("0x47")][ks("0x2f")]="",e.destroy()}async[ks("0x46")](e){const t=this[ks("0x57")],i=this[ks("0x45")][ks("0x39")][ks("0x6")]("RevisionViewer"),n=t[ks("0x39")].get("RevisionTracker"),r=i[ks("0x5")][ks("0x4e")](e);let o,s,a;try{o=await i[ks("0x61")](r),s=await i[ks("0x21")](r)}catch(e){return void console.error(e)}t[ks("0x1c")].change((e=>{for(const i of Array.from(t[ks("0x1c")].markers[ks("0xd")](ks("0x22"))))e.removeMarker(i)})),i[ks("0x65")]=!1,t[ks("0x1c")][ks("0x0")]((e=>{e[ks("0x68")](null),e.removeSelectionAttribute(t[ks("0x1c")].document[ks("0x2e")][ks("0x18")]());for(const i of t[ks("0x1c")][ks("0x5e")][ks("0x19")]())e[ks("0xf")](i);for(const i of Object[ks("0x9")](o)){const n=e[ks("0xb")](i);for(const t of Object[ks("0x9")](s[i]))e[ks("0x13")](t,s[i][t],n);e[ks("0x30")](t[ks("0x10")][ks("0x38")](o[i],n),n,0)}}));const c=en(t[ks("0x62")],ks("0x50"));return a=r[ks("0x36")]?-1==r[ks("0x36")].indexOf(c)?c+": "+r[ks("0x36")]:r[ks("0x36")]:c+": "+r[ks("0x35")][ks("0x44")](t[ks("0x62")][ks("0x64")],{month:ks("0x3a"),day:"numeric"})+", "+r[ks("0x35")][ks("0x6a")](t[ks("0x62")][ks("0x64")],{hour:ks("0xe"),minute:"numeric"}),await n[ks("0x3c")]({name:a}),i[ks("0x65")]=!0,t.config.get(ks("0x1")).closeRevisionViewerCallback()}}})(),(window.CKEditor5=window.CKEditor5||{}).revisionHistory=n})();
|
|
5
|
+
*/(()=>{var e={164:(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},525:(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},834:(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},522:(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},957:(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},996:(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},790:(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},29:(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},37:(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},288:(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},368:(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},168:(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},542:(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),g=function(e){function t(){return e.apply(this,arguments)||this}return r(t,e),t}(l),b=function(e){function t(){return e.call(this,"Zone is an abstract class")||this}return r(t,e),t}(l),y="numeric",p="short",k="long",_={year:y,month:y,day:y},w={year:y,month:p,day:y},S={year:y,month:p,day:y,weekday:p},O={year:y,month:k,day:y},R={year:y,month:k,day:y,weekday:k},T={hour:y,minute:y},I={hour:y,minute:y,second:y},N={hour:y,minute:y,second:y,timeZoneName:p},V={hour:y,minute:y,second:y,timeZoneName:k},M={hour:y,minute:y,hour12:!1},A={hour:y,minute:y,second:y,hour12:!1},E={hour:y,minute:y,second:y,hour12:!1,timeZoneName:p},D={hour:y,minute:y,second:y,hour12:!1,timeZoneName:k},j={year:y,month:y,day:y,hour:y,minute:y},C={year:y,month:y,day:y,hour:y,minute:y,second:y},F={year:y,month:p,day:y,hour:y,minute:y},L={year:y,month:p,day:y,hour:y,minute:y,second:y},P={year:y,month:p,day:y,weekday:p,hour:y,minute:y},z={year:y,month:k,day:y,hour:y,minute:y,timeZoneName:p},Z={year:y,month:k,day:y,hour:y,minute:y,second:y,timeZoneName:p},U={year:y,month:k,day:y,weekday:k,hour:y,minute:y,timeZoneName:k},H={year:y,month:k,day:y,weekday:k,hour:y,minute:y,second:y,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 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)]=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 ge(e){return JSON.stringify(e,Object.keys(e).sort())}var be=["January","February","March","April","May","June","July","August","September","October","November","December"],ye=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],pe=["J","F","M","A","M","J","J","A","S","O","N","D"];function ke(e){switch(e){case"narrow":return[].concat(pe);case"short":return[].concat(ye);case"long":return[].concat(be);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 Me(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 Ae={D:_,DD:w,DDD:O,DDDD:R,t:T,tt:I,ttt:N,tttt:V,T:M,TT:A,TTT:E,TTTT:D,f:j,ff:F,fff:z,ffff:U,F:C,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 Ae[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 Me(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 Me(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}(),je=function(){function e(){}var t=e.prototype;return t.offsetName=function(e,t){throw new b},t.formatOffset=function(e,t){throw new b},t.offset=function(e){throw new b},t.equals=function(e){throw new b},n(e,[{key:"type",get:function(){throw new b}},{key:"name",get:function(){throw new b}},{key:"universal",get:function(){throw new b}},{key:"isValid",get:function(){throw new b}}]),e}(),Ce=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===Ce&&(Ce=new t),Ce}}]),t}(je),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}(je),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}(je),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}(je);function We(e,t){var i;if(q(e)||null===e)return t;if(e instanceof je)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(M):return"HH:mm";case ge(A):return"HH:mm:ss";case ge(E):case ge(D):return"HH:mm";case ge(j):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(C):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 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}))?)?)?/,gt=RegExp(""+mt.source+vt.source+"?"),bt=RegExp("(?:T"+gt.source+")?"),yt=ft("weekYear","weekNumber","weekDay"),pt=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 Mt={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function At(e,t,i,n,r,o,s){var a={year:2===t.length?ue(te(t)):te(t),month:ye.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 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],l=e[10],x=e[11],h=At(i,o,r,n,s,a,c);return t=u?Mt[u]:d?0:le(l,x),[h,new qe(t)]}var jt=/^(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$/,Ct=/^(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[At(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[At(t,e[7],i,n,r,o,s),qe.utcInstance]}var zt=lt(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,bt),Zt=lt(/(\d{4})-?W(\d\d)(?:-?(\d))?/,bt),Ut=lt(/(\d{4})-?(\d{3})/,bt),Ht=lt(gt),qt=xt(St,Ot,Rt),Bt=xt(yt,Ot,Rt),Wt=xt(pt,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 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?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 g("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 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=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"},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]},bi=mi.hanidec.replace(/[\[|\]]/g,"").split("");function yi(e,t){var i=e.numberingSystem;return void 0===t&&(t=""),new RegExp(""+mi[i||"latn"]+t)}var pi="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+=bi.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 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 Mi(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 Ai(e,t,i){var n=function(e,t){var i;return(i=Array.prototype).concat.apply(i,e.map((function(e){return Mi(e,t)})))}(Ee.parseFormat(i),e),r=n.map((function(t){return i=t,r=yi(n=e),o=yi(n,"{2}"),s=yi(n,"{3}"),a=yi(n,"{4}"),c=yi(n,"{6}"),u=yi(n,"{1,2}"),d=yi(n,"{1,3}"),l=yi(n,"{1,6}"),x=yi(n,"{1,9}"),h=yi(n,"{2,4}"),f=yi(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:pi},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],Di=[0,31,60,91,121,152,182,213,244,274,305,335];function ji(e,t){return new De("unit out of range","you specified "+t+" (of type "+typeof t+") as a "+e+", which is invalid")}function Ci(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:Ei)[t-1]}function Li(e,t){var i=re(e)?Di: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=Ci(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=Ci(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&&ji("day",e.day):ji("month",e.month):ji("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&&ji("millisecond",r):ji("second",n):ji("minute",i):ji("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?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 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():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 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,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,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 b,y=!1,p=d(h);!(b=p()).done;){var k=b.value;q(o[k])?o[k]=y?f[k]:g[k]:y=!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&&ji("weekday",e.weekday):ji("week",e.week):ji("weekYear",e.weekYear)}(o):s?function(e){var t=W(e.year),i=Q(e.ordinal,1,oe(e.year));return t?!i&&ji("ordinal",e.ordinal):ji("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,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,[jt,Lt],[Ct,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=Ai(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 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 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 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 Ai(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 M}},{key:"TIME_24_WITH_SECONDS",get:function(){return A}},{key:"TIME_24_WITH_SHORT_OFFSET",get:function(){return E}},{key:"TIME_24_WITH_LONG_OFFSET",get:function(){return D}},{key:"DATETIME_SHORT",get:function(){return j}},{key:"DATETIME_SHORT_WITH_SECONDS",get:function(){return C}},{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 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:()=>Xn,RevisionTracker:()=>In,RevisionViewer:()=>kr,RevisionViewerLoadingOverlay:()=>Pr,RevisionViewerUI:()=>qr,RevisionsRepository:()=>Qi,RevisionsSidebar:()=>es});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 g=function(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i};const b=function(e){return this.__data__.get(e)};const y=function(e){return this.__data__.has(e)};const p="object"==typeof global&&global&&global.Object===Object&&global;var k="object"==typeof self&&self&&self.Object===Object&&self;const _=p||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 M=w?w.toStringTag:void 0;const A=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":M&&M in Object(e)?I(e):V(e)};const E=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};const D=function(e){if(!E(e))return!1;var t=A(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};const j=_["__core-js_shared__"];var C,F=(C=/[^.]+$/.exec(j&&j.keys&&j.keys.IE_PROTO||""))?"Symbol(src)_1."+C:"";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))&&(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 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 ge(e){var t=this.__data__=new v(e);this.size=t.size}ge.prototype.clear=m,ge.prototype.delete=g,ge.prototype.get=b,ge.prototype.has=y,ge.prototype.set=me;const be=ge;const ye=function(e,t){for(var i=-1,n=null==e?0:e.length;++i<n&&!1!==t(e[i],i,e););return e};const pe=function(){try{var e=Y(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();const ke=function(e,t,i){"__proto__"==t&&pe?pe(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]"==A(e)};var Ie=Object.prototype,Ne=Ie.hasOwnProperty,Ve=Ie.propertyIsEnumerable;const Me=Te(function(){return arguments}())?Te:function(e){return Re(e)&&Ne.call(e,"callee")&&!Ve.call(e,"callee")};const Ae=Array.isArray;const Ee=function(){return!1};var De="object"==typeof exports&&exports&&!exports.nodeType&&exports,je=De&&"object"==typeof module&&module&&!module.nodeType&&module,Ce=je&&je.exports===De?_.Buffer:void 0;const Fe=(Ce?Ce.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[A(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&&p.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=Ae(e),n=!i&&Me(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(!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 gt=function(e,t){var i=-1,n=e.length;for(t||(t=Array(n));++i<n;)t[i]=e[i];return t};const bt=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 yt=function(){return[]};var pt=Object.prototype.propertyIsEnumerable,kt=Object.getOwnPropertySymbols;const _t=kt?function(e){return null==e?[]:(e=Object(e),bt(kt(e),(function(t){return pt.call(e,t)})))}:yt;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}:yt;const Tt=function(e,t){return Se(e,Rt(e),t)};const It=function(e,t,i){var n=t(e);return Ae(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 Mt=Y(_,"DataView");const At=Y(_,"Promise");const Et=Y(_,"Set");const Dt=Y(_,"WeakMap");var jt="[object Map]",Ct="[object Promise]",Ft="[object Set]",Lt="[object WeakMap]",Pt="[object DataView]",zt=z(Mt),Zt=z($),Ut=z(At),Ht=z(Et),qt=z(Dt),Bt=A;(Mt&&Bt(new Mt(new ArrayBuffer(1)))!=Pt||$&&Bt(new $)!=jt||At&&Bt(At.resolve())!=Ct||Et&&Bt(new Et)!=Ft||Dt&&Bt(new Dt)!=Lt)&&(Bt=function(e){var t=A(e),i="[object Object]"==t?e.constructor:void 0,n=i?z(i):"";if(n)switch(n){case zt:return Pt;case Zt:return jt;case Ut:return Ct;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]",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 bi=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=Ae(t);if(l){if(a=Gt(t),!c)return gt(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(!gi[x])return o?t:{};a=ri(t,x,c)}}s||(s=new be);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 ye(v||t,(function(r,o){v&&(r=t[o=r]),we(a,o,e(r,i,n,o,t,s))})),a};const yi=function(e){return bi(e,5)};const pi=function(e){return"symbol"==typeof e||Re(e)&&"[object Symbol]"==A(e)};var ki=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_i=/^\w*$/;const wi=function(e,t){if(Ae(e))return!1;var i=typeof e;return!("number"!=i&&"symbol"!=i&&"boolean"!=i&&null!=e&&!pi(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,Mi=Vi?Vi.toString:void 0;const Ai=function e(t){if("string"==typeof t)return t;if(Ae(t))return Ni(t,e)+"";if(pi(t))return Mi?Mi.call(t):"";var i=t+"";return"0"==i&&1/t==-Infinity?"-0":i};const Ei=function(e){return null==e?"":Ai(e)};const Di=function(e,t){return Ae(e)?e:wi(e,t)?[e]:Ii(Ei(e))};const ji=function(e){if("string"==typeof e||pi(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};const Ci=function(e,t,i,n){if(!E(e))return e;for(var r=-1,o=(t=Di(t,e)).length,s=o-1,a=e;null!=a&&++r<o;){var c=ji(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:Ci(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[ji(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[ji(Li(t))]};const Hi=function(e,t){return null==e||Ui(e,t)},qi=["toVersion","setName","createdAt","creatorId","fromVersion","map","setAttribute","_update","set","fire","attributes","removeAttribute","authors","authorsIds","diffData","name","creator"];var Bi,Wi;Bi=qi,Wi=245,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("0x9")]=e[Ji("0x9")]||null,this[Ji("0x5")]=e.authors||[],this[Ji("0x7")]=e[Ji("0x7")]||null,this.toVersion=e.toVersion||0,this[Ji("0xe")]=e[Ji("0xe")]||0,this.set("name",e[Ji("0x8")]||""),this[Ji("0x1")](Ji("0xc"),e[Ji("0xc")]||new Date),this.set(Ji("0x3"),e[Ji("0x3")]||{})}[Ji("0xb")](e){this[Ji("0x0")]({name:e})}[Ji("0x10")](e,t){const i=yi(this.attributes);Fi(i,e,t),this._update({attributes:i})}[Ji("0x4")](e){const t=yi(this.attributes);Hi(t,e),this[Ji("0x0")]({attributes:t})}[Ji("0x0")](e,t=!1){let i=!1;const n={id:this.id},r=[Ji("0x8"),Ji("0xc"),Ji("0x7"),"authors",Ji("0x3"),Ji("0xa"),Ji("0xe"),Ji("0xd")];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.authors&&(n[Ji("0x6")]=n[Ji("0x5")].map((e=>e.id)),delete n.authors),this[Ji("0x2")]("_update",n,t))}toJSON(){return{id:this.id,name:this[Ji("0x8")],creatorId:this.creator?this[Ji("0x9")].id:null,authorsIds:this.authors[Ji("0xf")]((e=>e.id)),diffData:this[Ji("0x7")],createdAt:this[Ji("0xc")],attributes:this.attributes,fromVersion:this[Ji("0xe")],toVersion:this[Ji("0xa")]}}}const Yi=["attributes","getRevisions","getEarlierVisibleRevision","createdAt","plugins","_revisions","getIndex","oldRevisionId","length","add","map","toJSON","name","push","get","getRevisionsInDiff","creatorId","pluginName","getRevision","reverse","RevisionsRepository","diffData","editor","getRevisionsIterator","Users","isNaN","from","later","getUser","earlier","context","toVersion"];var $i,Ki;$i=Yi,Ki=441,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 requires(){return[r.Users]}static get[Xi("0x18")](){return Xi("0x1b")}get[Xi("0xf")](){return this[Xi("0xc")][Xi("0xf")]}constructor(e){super(e),this._revisions=new t.Collection}afterInit(){!function(t){function i(e){return e[Xi("0x11")]((e=>String.fromCharCode(e))).join("")}(t=>{const n=[1,85,78,115,198,255,50,112,83,87,161],r=[127,34,6,211,167,86,146,199,132,160,18];function o(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([...n,29,221,175,90,231,133,239,240,75,180,...r]))}const s=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([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([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([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([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])}];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,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}(),a={[i([99,104,101,99,107,76,105,99,101,110,115,101])]:function(e,t){v(f(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){v(function(e,t){try{if(k(u,i([84,114,97,99,107,67,104,97,110,103,101,115,69,100,105,116,105,110,103]))&&e){const n=_(u,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 m(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 f(e,t)}catch(e){return m(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 o=r[0]*n[1],s=r[0]*n[2],a=r[2]*n[2];function c(e,t){d(),m(t+i([84,114,105,97,108,76,105,109,105,116,58])+e),window[g()]=e===i([116,105,109,101])?o:s}function d(){const e=u;function t(){k(e,i([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))&&(_(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])),_(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,_(e,i([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[i([117,112,100,97,116,101])]=p,_(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])]=p,e[i([109,111,100,101,108])][i([99,104,97,110,103,101])]=p,e[i([109,111,100,101,108])][i([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,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]))),k(e,i([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))&&(_(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])),_(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,_(e,i([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[i([99,111,109,112,97,114,101])]=p,_(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])]=p)}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(k(e,i([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))&&t(),k(e,i([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))){const n=_(e,i([82,101,118,105,115,105,111,110,115,82,101,112,111,115,105,116,111,114,121])),r=n.getRevision(0),o=n[Xi("0x9")](r[i([105,100])]);_(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).then((()=>t()))}}))}k(u,i([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))&&_(u,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]))d();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(!k(u,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("0x0")](Number(e))){if(window[e]===o)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=r[6]*n[8]*n[6];return k(u,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 d=_(u,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])];d[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])]):d.on(i([97,100,100]),(()=>{d[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(!k(u,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("0x0")](Number(e))&&window[e]===a)return!0;return!1}()?m(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])):f(e,t)}catch(e){return m(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)}},c=t[i([99,111,110,115,116,114,117,99,116,111,114])][i([112,108,117,103,105,110,78,97,109,101])],u=i([99,111,110,116,101,120,116])in t?t[Xi("0x5")]:t[Xi("0x1d")],d=i([52,48,52,54,49,50,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]),x=u.config[Xi("0x15")](i([108,105,99,101,110,115,101,75,101,121])),h=s[i([102,105,110,100])]((e=>e[i([112,108,117,103,105,110,78,97,109,101])]===c));function f(e,t){try{return function(e){if(!k(u,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!(!k(u,i([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))||_(u,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)||(!(!k(u,i([84,114,97,99,107,67,104,97,110,103,101,115,68,97,116,97,71,101,116,116,101,114]))||_(u,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)||!(!k(u,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]))||_(u,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)?m(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&&e[i([97,108,108,111,119,101,100,80,108,117,103,105,110,115])]&t[i([112,101,114,109,105,115,115,105,111,110,77,97,115,107])]?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(d)/2>e[i([101,120,112,105,114,97,116,105,111,110,68,97,116,101])]?m(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])]?m(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])):m(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])):m(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 m(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 v(t,o){if(u instanceof e.Context){const e=u;t==o[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==o[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])]((()=>{b(e),m(o[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]))}),r[6]*n[8]*n[6]),e[i([101,100,105,116,111,114,115])][i([111,110])](i([97,100,100]),((e,n)=>{t!=o[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!=o[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!=o[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])||y(n)}))}else{const e=u;t==o[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])?y(e):t==o[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]),((n,r)=>{r[0][i([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&t++,504===t&&(y(e),m(o[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])),n[i([111,102,102])]())}),{priority:i([104,105,103,104,101,115,116])})}))}}function m(e){const t=g();return u[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>=l[i([108,101,110,103,116,104])]&&(r-=l[i([108,101,110,103,116,104])]),t+=l[r]}return t}function b(e){for(const t of e[i([101,100,105,116,111,114,115])])y(t);_(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),_(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])]=p}function y(e){function t(){e[i([109,111,100,101,108])][i([99,104,97,110,103,101])]=p,e[i([109,111,100,101,108])][i([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,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 p(){return null}function k(e,t){return e[i([112,108,117,103,105,110,115])][i([104,97,115])](t)}function _(e,t){return e[i([112,108,117,103,105,110,115])][i([103,101,116])](t)}h&&function e(t,n){a[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=>k(u,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=o(e),n=JSON[i([112,97,114,115,101])](t),r=parseInt(n[i([49])]),s=parseInt(n[i([51])]),a=parseInt(n[i([52])])||0,c=parseInt(n[i([53])])||0;return{[i([97,108,108,111,119,101,100,80,108,117,103,105,110,115])]:a,[i([101,120,112,105,114,97,116,105,111,110,68,97,116,101])]:r,[i([105,115,84,114,105,97,108])]:s,[i([105,115,73,110,116,101,114,110,97,108])]:c}}catch(e){return null}}(x),h)})(t)}(this)}createRevision(e){const t=this[Xi("0x1d")][Xi("0xb")][Xi("0x15")](Xi("0x1f"));return new Gi({id:e.id,name:e[Xi("0x13")],creator:e[Xi("0x17")]?t[Xi("0x3")](e.creatorId):null,diffData:e[Xi("0x1c")]||e.data,authors:e.authorsIds.map((e=>t.getUser(e))),createdAt:new Date(e[Xi("0xa")]),attributes:e[Xi("0x7")],fromVersion:e.fromVersion,toVersion:e[Xi("0x6")]})}addRevision(e,t=0){this[Xi("0xc")][Xi("0x10")](e,t)}[Xi("0x19")](e){return this[Xi("0xc")][Xi("0x15")](e)}[Xi("0x8")](e={toJSON:!1}){const t=Array[Xi("0x1")](this._revisions);return t[Xi("0x1a")](),e[Xi("0x12")]?t.map((e=>e[Xi("0x12")]())):t}[Xi("0xd")](e){return this[Xi("0xc")][Xi("0xd")](e)}[Xi("0x9")](e){const[,t]=this[Xi("0x1e")](e,{direction:"earlier"});return t}getLaterVisibleRevision(e){const[,t]=this.getRevisionsIterator(e,{direction:Xi("0x2")});return t}[Xi("0x16")](e){const t=[];for(const i of this[Xi("0x1e")](e.newRevisionId))if(t[Xi("0x14")](i),i.id===e[Xi("0xe")])break;return t}*[Xi("0x1e")](e,{direction:t=Xi("0x4"),filter:i=(e=>!0)}={}){const n=Xi("0x4")===t?1:-1;let r=this[Xi("0xc")][Xi("0x15")](e),o=this[Xi("0xd")](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 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 b=e.constructor,y=t.constructor;b==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof y&&y instanceof y||(h=!1)}return o.delete(e),o.delete(t),h};var mn="[object Arguments]",gn="[object Array]",bn="[object Object]",yn=Object.prototype.hasOwnProperty;const pn=function(e,t,i,n,r,o){var s=Ae(e),a=Ae(t),c=s?gn:Wt(e),u=a?gn:Wt(t),d=(c=c==mn?bn:c)==bn,l=(u=u==mn?bn:u)==bn,x=c==u;if(x&&Fe(e)){if(!Fe(t))return!1;s=!0,d=!1}if(x&&!d)return o||(o=new be),s||Ye(e)?cn(e,t,i,n,r,o):hn(e,t,c,i,n,r,o);if(!(1&i)){var h=d&&yn.call(e,"__wrapped__"),f=l&&yn.call(t,"__wrapped__");if(h||f){var v=h?e.value():e,m=f?t.value():t;return o||(o=new be),r(v,m,i,n,o)}}return!!x&&(o||(o=new be),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:pn(t,i,n,r,e,o))};const _n=function(e,t){return kn(e,t)},wn=["getTime","affectsData","attachChange","RevisionTracker","isEqual","root","newRange","initialData","_createCurrentRevision","_reset","name","getAncestors","addRoot","update","repository","getMovedRangeStart","parent","from","slice","revision","getRoot","_touchedRoots","authors","getRange","elementEnd","clone","_startingRevisionId","creator","_getFromVersion","_source","find","_markChanges","_copyMarkers","_operations","getChild","_diffRootsAttributes","_handleMergeOperation","tableCell","markers","keys","trim","_getState","getIndex","getNodeByPath","delete","item","_handleMarkerOperation","processor","_handleSplitOperation","text","start","_clone","_removePendingAction","getRevisionRootsAttributes","diffData","marker","_touched","_lastTo","history","_handleMoveOperation","includes","oldRange","stickiness","creatorId","buildRevisionData","_isPendingUpdate","keepParagraph","$graveyard","revisionHistory.resumeUnsavedRevision","_continueCurrentRevision","getUser","getCurrentRevisionId","_fixOperation","vid_start","then","_setConversion","addRevisionData","createPositionBefore","_lastFrom","isAdd","parse","offsetSize","sendBufferedUpdates","split","getRevisions","deletions","path","createRevision","createPositionAfter","insert","move","isReady","splitPosition","fromVersion","Users","_getPreviousFrom","version","_savedMetaData","_createInitialRevision","key","_fixPosition","_saveMetaData","adapter","length","fromEntries","getAttributes","getChildren","_applyOperations","forEach","stringify","baseVersion","getTransformedByOperation","document","values","_findInsertionIndex","_handleOperation","_touchedMarkers","init","saveRevision","_generateTape","model","attributes","_baseRootsAttributes","_removeMetaData","conversion","getData","setSource","toVersion","isEnabled","authorsIds","data-revision-","_loadState","_bufferedUpdates","paragraph","hasContent","changeRootAttribute","userId","vid_end","plugins","_prepareViewToSave","source","_isAttached","_bufferUpdate","_getBaseVids","_handleRootOperation","filter","_isInit","_initialRevisionId","useFillerType","_makeRevision","howMany","toData","updateRevisions","createdAt","_makeModelFromViewString","getAttribute","_pendingAction","for","Initial revision","_transformMarkers","_diffRoots","offset","attributesAfter","_markers","type","has","clear","add","_loadedStateData","config","getWalker","string","_idsRoots","set","_initialRoots","_appendChild","_handleRootAttributeOperation","getRootNames","RealTimeCollaborationClient","_getViewJson","NEGATIVE_INFINITY","startsWith","currentRevision","_update","attributesBefore","ready","addRevision","reverse","_removeRevisionMarkers","documentFragment","merge","revision-start","_addPendingAction","_startingVersion","_setAttribute","_calculateMetaData","addRootAttribute","Empty document","roots","elementStart","rootName","newValue","sourcePosition","_baseRoots","getRevision","push","_cloneOperation","editor","_fixRange","rootsAttributes","detachRoot","requires","resolve","_revisionId","vid","_execute","_createFromRanges","getRevisionDocumentData","remove","nodeAfter","initial","map","PendingActions","size","isAttached","createPositionFromPath","locale","createPositionAt","childCount","revision:","graveyardPosition","getLatestVersion","createRange","upcast","_getVidAttributeName","_baseIdsRoots","view","insertions","pluginName","toView","editing","element","_replaceEditorDataWithRevisionData","previousPosition","_revisionDataBuilder","targetPosition","default","collaboration.channelId","children","insertion","_makeIdsRoot","position","_insertChild","reInit","end","_authorId","editor-initial-data-replaced-with-revision-data","bind","data","_processRootBeforeSave","_loadRevisionData","max","$text","get"];var Sn,On;Sn=wn,On=283,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("0xdb")](){return Rn("0xf8")}static get[Rn("0xc0")](){return[r.Users,Qi,e.PendingActions]}constructor(e){super(e),this[Rn("0x53")]=null,this[Rn("0xa3")]=null,this[Rn("0xe1")]=new Vn(this[Rn("0xbc")]),this[Rn("0x80")]=this.editor.config[Rn("0xf4")]("collaboration.channelId")||Rn("0xc9"),this[Rn("0x71")]=new Map,this[Rn("0x95")]=null;const i=(0,t.uid)();this[Rn("0xa")]={history:this.editor[Rn("0x65")][Rn("0x5d")][Rn("0x27")],getLatestVersion:()=>Promise[Rn("0xc1")](this[Rn("0xbc")][Rn("0x65")][Rn("0x5d")][Rn("0x4d")]),getCurrentRevisionId:()=>i},this[Rn("0x9a")](Rn("0x48"),!1),this.set(Rn("0x6d"),!0),this.set(Rn("0x2e"),!1),this[Rn("0xbc")][Rn("0x96")].define(Rn("0x31"),!0),this.editor[Rn("0x69")][Rn("0x8a")](Rn("0xd6")).dataToMarker({view:Rn("0x0")})}[Rn("0x62")](){this.repository=this[Rn("0xbc")].plugins[Rn("0xf4")]("RevisionsRepository"),this[Rn("0x38")](),this[Rn("0xbc")][Rn("0xef")].on(Rn("0xa6"),(()=>{const e=this[Rn("0x103")][Rn("0xb9")](0),t=e&&null===e[Rn("0x8")]?e:null;if(this[Rn("0x32")]=!!t&&this.editor.config.get("revisionHistory.resumeUnsavedRevision"),this[Rn("0xbc")].plugins[Rn("0x92")](Rn("0x9f"))){const i=this[Rn("0xa")][Rn("0x34")](),n=this[Rn("0x103")].getRevision(i);if(n)this[Rn("0xae")]=n.fromVersion,this[Rn("0x32")]=!1;else{const i=this[Rn("0xa")][Rn("0x27")][Rn("0xe")].find((e=>!e[Rn("0x7f")])),n=i?i[Rn("0x5b")]:this[Rn("0xa")][Rn("0x27")][Rn("0x4d")];e?(e[Rn("0x6c")]<n&&e[Rn("0xa4")]({toVersion:n}),this[Rn("0x32")]?(this[Rn("0xa")].getCurrentRevisionId=()=>t.id,this[Rn("0xae")]=t.fromVersion):(this[Rn("0xae")]=e[Rn("0x6c")],this[Rn("0x32")]=!1)):(this[Rn("0xae")]=n,this[Rn("0x32")]=!1)}}else t&&(this[Rn("0xbc")][Rn("0x65")].document[Rn("0x27")].version=Math[Rn("0xf2")](t[Rn("0x6c")],this.editor.model[Rn("0x5d")].history[Rn("0x4d")]),t[Rn("0x4a")]===t[Rn("0x6c")]?(0!==t.fromVersion&&(this._source.getCurrentRevisionId=()=>t.id),this._continueCurrentRevision=!1):this[Rn("0x32")]&&(this[Rn("0xa")][Rn("0x34")]=()=>t.id,this[Rn("0xae")]=t.fromVersion)),this[Rn("0x32")]||(this[Rn("0xae")]=this[Rn("0xbc")][Rn("0x65")].document[Rn("0x4d")]);this[Rn("0xe1")][Rn("0x62")](this[Rn("0xa")].history),this[Rn("0x4f")](this[Rn("0xae")]),this[Rn("0xfd")](this._startingVersion),this[Rn("0x53")]&&this[Rn("0x3f")]()})),this[Rn("0xee")](Rn("0x48")).to(this,Rn("0x2e"),(e=>!e))}async afterInit(){if(this[Rn("0x103")][Rn("0x54")]>0){const e=this[Rn("0x103")].getRevision(0),t=await this[Rn("0xc6")](e),i=await this[Rn("0x22")](e);this[Rn("0xdf")](t,i)}}[Rn("0x6b")](e){this[Rn("0xa")]=e}async[Rn("0x102")](){const e=await this._source[Rn("0xd4")]();if(e>this[Rn("0xa3")][Rn("0x6c")]){await this[Rn("0x70")]();const t=this[Rn("0x2d")]({revision:this.currentRevision,to:e});t.authors=t[Rn("0x6e")][Rn("0xca")]((e=>this.editor[Rn("0x77")].get(Rn("0x4b"))[Rn("0x33")](e))),this[Rn("0xa3")][Rn("0xa4")](t)}}async[Rn("0x70")](){this[Rn("0x32")]&&!this[Rn("0x95")]&&(await this[Rn("0xf1")](this[Rn("0xa3")]),this[Rn("0xe1")].loadState(this.currentRevision),this._loadedStateData={fromVersion:this[Rn("0xa3")][Rn("0x4a")],authors:this.currentRevision[Rn("0x3")][Rn("0x107")]()})}async[Rn("0x63")](e={},i=null){const n=[];await this[Rn("0x70")](),this[Rn("0x32")]=!1,i>this.currentRevision.toVersion&&(i=null),null===i&&(i=await this[Rn("0xa")].getLatestVersion());const r=this[Rn("0x9")](i),o=this[Rn("0x2d")]({from:r,to:i});if(this.currentRevision[Rn("0x6c")]<i){const e=this[Rn("0x2d")]({revision:this[Rn("0xa3")],from:i,to:i});e[Rn("0x3")]=[],e.authorsIds=[],e.id=this.currentRevision.id,this.currentRevision[Rn("0xa4")](e,!0),delete e.authors,n[Rn("0xba")](e)}e[Rn("0x2c")]=this.editor[Rn("0x77")][Rn("0xf4")](Rn("0x4b")).me.id,e[Rn("0xff")]=e[Rn("0xff")]||null,e.id=e.id||(0,t.uid)(),e={...e,...o};const s=this[Rn("0x39")](e);n[Rn("0xba")](e);const a=this[Rn("0x103")][Rn("0x17")](s);if(0!==a){const t=this[Rn("0x103")].getRevision(a-1);if(t[Rn("0x4a")]!==i){const r=this[Rn("0xe1")].getData(i,t[Rn("0x6c")]),o={id:t.id,diffData:r[Rn("0x23")],authorsIds:r[Rn("0x6e")],authors:r[Rn("0x6e")].map((e=>this[Rn("0xbc")].plugins.get(Rn("0x4b")).getUser(e))),fromVersion:i};t===this[Rn("0xa3")]&&(o[Rn("0x86")]=new Date(e[Rn("0x86")][Rn("0xf5")]()+10)),t[Rn("0xa4")](o,!0),delete o[Rn("0x3")],n[Rn("0xba")](o)}}if(this.adapter){for(const e of n)this._bufferUpdate(e.id,e,!0);this[Rn("0x3f")]()}return s}[Rn("0x39")](e){const t=this[Rn("0x103")][Rn("0x44")](e);return this[Rn("0x53")]&&t.on(Rn("0xa4"),((e,t,i)=>{i||(this[Rn("0x7b")](t.id,t,!0),this.sendBufferedUpdates())})),this.repository[Rn("0xa7")](t,this[Rn("0x5f")](t)),t}async getRevisionDocumentData(e){await this._loadRevisionData(e);const t={};for(const i in e[Rn("0x23")]){if(e[Rn("0x23")][i].attachChange&&!e[Rn("0x23")][i][Rn("0xf7")][Rn("0xcd")])continue;const n=this[Rn("0xa9")](JSON[Rn("0x3d")](e[Rn("0x23")][i][Rn("0xda")])),r=this[Rn("0xbc")][Rn("0xdd")][Rn("0xd9")].document,s=new o.ViewDocumentFragment(r,n.map((e=>Nn(e,this[Rn("0xbc")]))));this[Rn("0xbc")][Rn("0xef")][Rn("0x1c")][Rn("0x81")]("marked"),t[i]=this[Rn("0xbc")][Rn("0xef")][Rn("0x1c")][Rn("0x84")](s),this[Rn("0xbc")][Rn("0xef")][Rn("0x1c")][Rn("0x81")](Rn("0xe3"))}return t}async getRevisionRootsAttributes(e){await this[Rn("0xf1")](e);const t={};for(const i in e.diffData)e.diffData[i].attachChange&&!e[Rn("0x23")][i][Rn("0xf7")][Rn("0xcd")]||(t[i]=e[Rn("0x23")][i].attributesAfter||{});return t}[Rn("0x3f")](){if(0===this[Rn("0x71")].size)return;if(this[Rn("0x2e")])return;let e=Array[Rn("0x106")](this[Rn("0x71")][Rn("0x5e")]());this[Rn("0x71")][Rn("0x93")]();for(let t=0;t<e[Rn("0x54")];t++){const i=e[t];let n=!1;for(const e of Object[Rn("0x14")](i))void 0===i[e]?delete i[e]:"id"!==e&&(n=!0);n||(e[t]=null)}if(e=e[Rn("0x7e")]((e=>null!==e)),!e[Rn("0x54")])return;for(let t=0;t<e[Rn("0x54")];t++){const i=e[t];void 0!==i[Rn("0x4a")]&&void 0===i.toVersion&&(i.toVersion=this[Rn("0x103")].getRevision(i.id)[Rn("0x6c")]),void 0!==i[Rn("0x6c")]&&void 0===i[Rn("0x4a")]&&(i[Rn("0x4a")]=this[Rn("0x103")][Rn("0xb9")](i.id)[Rn("0x4a")])}const t=this[Rn("0xbc")][Rn("0x96")][Rn("0xf4")](Rn("0xe4"));this[Rn("0x2e")]=!0,this[Rn("0xad")](),this.adapter[Rn("0x85")](e,t).finally((()=>{this[Rn("0x2e")]=!1}))[Rn("0x37")]((e=>{if(e)for(const t of e)this.setRevisionData({id:t.id,createdAt:t[Rn("0x86")]});this[Rn("0x21")](),this[Rn("0x3f")]()}))}[Rn("0xdf")](e,i){let n=this[Rn("0xbc")][Rn("0x96")].get(Rn("0xfc")),r=this[Rn("0xbc")][Rn("0x96")][Rn("0xf4")](Rn("0xbe"));if(void 0===n){n={};for(const e of this[Rn("0xbc")].model[Rn("0x5d")][Rn("0x9e")]())n[e]=""}if(Rn("0x98")==typeof n&&(n={main:n}),void 0===r){r={};for(const e of this.editor[Rn("0x65")][Rn("0x5d")][Rn("0x9e")]())r[e]={}}let o=!1;const s=Object[Rn("0x14")](n),a=Object[Rn("0x14")](e);for(const t of s){if(n[t]!==e[t]&&""!==n[t][Rn("0x15")]()){o=!0;break}if(!_n(r[t],i[t])&&Object.keys(r[t])[Rn("0x54")]>0){o=!0;break}}o||(o=a.some((e=>!s[Rn("0x29")](e)))),o&&(0,t.logWarning)(Rn("0xed"),{editorData:n,editorRootsAttributes:r,revisionData:e,revisionRootsAttributes:i}),this[Rn("0xbc")].config[Rn("0x9a")](Rn("0xfc"),e),this[Rn("0xbc")].config[Rn("0x9a")]("rootsAttributes",i)}[Rn("0xad")](){if(!this[Rn("0x89")]){const e=this[Rn("0xbc")][Rn("0x77")][Rn("0xf4")](Rn("0xcb"));this._pendingAction=e[Rn("0x94")](en(this[Rn("0xbc")][Rn("0xcf")],"PENDING_ACTION_REVISION_HISTORY"))}}_removePendingAction(){this[Rn("0x89")]&&(this.editor.plugins[Rn("0xf4")](Rn("0xcb"))[Rn("0xc7")](this._pendingAction),this[Rn("0x89")]=null)}_findInsertionIndex(e){const t=this[Rn("0x103")][Rn("0x41")]();t[Rn("0xa8")]();let i=0;for(;i<t[Rn("0x54")];){const n=t[i];if(n===this[Rn("0xa3")]){i++;continue}if(n.id===this[Rn("0x80")])break;const r=e[Rn("0x6c")]-n[Rn("0x6c")]||e.fromVersion-n[Rn("0x4a")];if(r>0)break;if(r<0)i++;else{if(!e[Rn("0x8")]&&n.creator)break;if(n[Rn("0x8")]||!e[Rn("0x8")]){if(e[Rn("0x86")]>n[Rn("0x86")])break;i++}else i++}}return i}setRevisionData(e){const t=this.repository[Rn("0xb9")](e.id);if(e[Rn("0x86")]&&(e[Rn("0x86")]=new Date(e[Rn("0x86")])),e[Rn("0x6e")]){const t=this.editor.plugins.get("Users");e.authors=e[Rn("0x6e")].map((e=>t[Rn("0x33")](e)))}t[Rn("0xa4")](e,!0)}[Rn("0x2d")]({revision:e=null,from:t=null,to:i=null}){t=null!==t?t:e.fromVersion,i=null!==i?i:e.toVersion;const n=this[Rn("0xe1")][Rn("0x6a")](t,i),r={diffData:n.diffData,authorsIds:n[Rn("0x6e")],fromVersion:t,toVersion:i};if(!e||i!==e[Rn("0x6c")]){const e=i-1,t=this[Rn("0xa")][Rn("0x27")].getOperation(e);r[Rn("0x86")]=t&&t[Rn("0x86")]||new Date}if(this[Rn("0x95")]&&t===this[Rn("0x95")][Rn("0x4a")])for(const e of this._loadedStateData.authors)r[Rn("0x6e")][Rn("0x29")](e.id)||r[Rn("0x6e")][Rn("0xba")](e.id);return r}[Rn("0xf1")](e){if(!e||e[Rn("0x23")])return Promise[Rn("0xc1")]();{const t=this[Rn("0xbc")][Rn("0x96")].get(Rn("0xe4"));return this[Rn("0x53")].getRevision({channelId:t,revisionId:e.id}).then((t=>{e[Rn("0x23")]=t.diffData}))}}[Rn("0x7b")](e,t,i){if(this[Rn("0x71")][Rn("0x92")](e)){const n=this[Rn("0x71")].get(e);t=i?{...n,...t}:{...t,...n}}this._bufferedUpdates[Rn("0x9a")](e,t)}_getFromVersion(e){const t=this[Rn("0x103")][Rn("0x41")]();t[Rn("0xa8")](),t.shift();const i=t.find((t=>t[Rn("0x6c")]<=e))[Rn("0x6c")];return i<this[Rn("0xae")]?this._startingVersion:i}_createInitialRevision(e){const t=this[Rn("0x103")][Rn("0xb9")](this.repository[Rn("0x54")]-1);if(t)this._initialRevisionId=t.id;else{const t=!this.editor[Rn("0x65")].document[Rn("0xb3")][Rn("0xb")]((e=>this[Rn("0xbc")].model[Rn("0x73")](e))),i=this[Rn("0xbc")][Rn("0x77")][Rn("0xf4")]("Users").me.id,n=en(this[Rn("0xbc")].locale,Rn(t?"0xb2":"0x8b"));this[Rn("0x82")]({from:e,to:e,id:this[Rn("0x80")],name:n,creatorId:i})}}_createCurrentRevision(e){const t=this[Rn("0xa")][Rn("0x34")]();this.currentRevision=this[Rn("0x103")][Rn("0xb9")](t),this[Rn("0xa3")]||(this.currentRevision=this[Rn("0x82")]({from:e,to:e,id:t,name:"",creatorId:null}))}[Rn("0x82")]({name:e,from:t,to:i,creatorId:n,id:r}){const o=this.buildRevisionData({from:t,to:i});o[Rn("0xff")]=e,o.creatorId=n,o.id=r;const s=this[Rn("0x39")](o);return this.adapter&&this[Rn("0x7b")](o.id,o,!0),s}_setConversion(){this[Rn("0xbc")][Rn("0x69")][Rn("0x8a")]("dataDowncast").markerToData({model:"revision"})}[Rn("0xa9")](e){return(e=e[Rn("0x7e")]((e=>!e.name||Rn("0xac")!==e[Rn("0xff")]&&"revision-end"!==e.name)))[Rn("0x59")]((e=>{Rn("0x98")!=typeof e&&(e.children=this[Rn("0xa9")](e[Rn("0xe5")]),e[Rn("0x66")]=e[Rn("0x66")][Rn("0x7e")]((e=>!e[0][Rn("0xa2")](Rn("0x6f")))))})),e}}function Nn(e,t){const i=t[Rn("0xdd")][Rn("0xd9")][Rn("0x5d")];if("string"==typeof e)return new o.ViewText(i,e);{const n=e[Rn("0xe5")][Rn("0xca")]((e=>Nn(e,t)));return new(Tn[e[Rn("0x91")]]||o.ViewElement)(i,e[Rn("0xff")],e[Rn("0x66")],n)}}class Vn{constructor(e){this[Rn("0xbc")]=e,this[Rn("0x4e")]=new Map,this[Rn("0x3b")]=-1,this._lastTo=-1,this[Rn("0x90")]=new Map,this[Rn("0x8d")]=new Map,this._diffRootsAttributes=new Map,this[Rn("0xb8")]=new Map,this[Rn("0x67")]=new Map,this[Rn("0x99")]=new Map,this[Rn("0xd8")]=new Map,this[Rn("0x25")]=new Map,this[Rn("0x61")]=new Map,this[Rn("0x2")]=new Map,this[Rn("0xc2")]=1,this[Rn("0x9b")]=this.editor[Rn("0x65")].document.getRootNames(),this[Rn("0x9b")].push(Rn("0x30"))}[Rn("0x62")](e){this[Rn("0x79")]=e;const t=new Map,i=new Map,n=this[Rn("0xbc")][Rn("0x65")][Rn("0x5d")].getRootNames(!0);n[Rn("0xba")](Rn("0x30"));for(const e of n){const n=this[Rn("0xbc")].model[Rn("0x5d")][Rn("0x1")](e),r=Mn(n);t[Rn("0x9a")](e,r),i.set(e,Object[Rn("0x55")](n[Rn("0x56")]()))}const r=Array.from(this[Rn("0xbc")].model[Rn("0x13")])[Rn("0xca")]((e=>[e.name,e[Rn("0x4")]()])),o=this.source.version;this[Rn("0x52")](o,t,r,i),this[Rn("0x7")]=this[Rn("0xc2")];const s=new Map,a=new Map;for(const e of this[Rn("0x9b")]){const t=An(e);s[Rn("0x9a")](e,t),a.set(e,{})}this[Rn("0x52")](Number[Rn("0xa1")],s,[],a)}getData(e,t){if(this[Rn("0x3b")]===e&&this[Rn("0x26")]<=t)this[Rn("0x4e")][Rn("0xcc")]>1&&this[Rn("0x68")](this[Rn("0x26")]),this[Rn("0x58")](this[Rn("0x26")],t,!0);else{if(!this[Rn("0x4e")][Rn("0x92")](e)){const t=this[Rn("0x4c")](e);this[Rn("0xb0")](t,e,!1)}this._calculateMetaData(e,t,!0)}return this._lastFrom=e,this[Rn("0x26")]=t,this[Rn("0x16")]()}loadState(e){this[Rn("0xfe")](),this[Rn("0x3b")]=e.fromVersion,this[Rn("0x26")]=e[Rn("0x6c")];for(const t in e[Rn("0x23")]){const i=e[Rn("0x23")][t].attachChange,n=yi(e[Rn("0x23")][t][Rn("0xa5")])||{},r=this[Rn("0x87")](e[Rn("0x23")][t].deletions);r[Rn("0xb5")]=t,r[Rn("0x7a")]=!i||!i[Rn("0xcd")],r[Rn("0xcd")]=()=>r._isAttached,this[Rn("0xb8")][Rn("0x9a")](t,r),this[Rn("0x67")][Rn("0x9a")](t,n),i&&this[Rn("0x2")].set(t,i);const o=this._makeIdsRoot(r);this[Rn("0xd8")][Rn("0x9a")](t,o);for(const[e,t]of r[Rn("0x13")]){if(!e[Rn("0xa2")]("revision:"))continue;const i=e.split(":")[2];for(const e of t[Rn("0x97")]({singleCharacters:!0})){const t=this._getVidAttributeName(e),n=Rn("0x5")==e[Rn("0x91")]?e[Rn("0xe0")][Rn("0x43")][Rn("0x107")](0,-1):e[Rn("0xe0")][Rn("0x43")],r=o[Rn("0x18")](n).getAttribute(t);this[Rn("0x25")][Rn("0x9a")](r,{userId:i})}}}this[Rn("0x7")]=this[Rn("0xc2")];const t=[...Array(this._revisionId).keys()][Rn("0x107")](1)[Rn("0x7e")]((e=>!this[Rn("0x25")][Rn("0x92")](e)));let i=0;const n=new Map;for(const r in e[Rn("0x23")]){const o=e[Rn("0x23")][r][Rn("0xf7")],s=yi(e[Rn("0x23")][r][Rn("0x8f")])||{},a=this[Rn("0x87")](e[Rn("0x23")][r][Rn("0xda")]);a.rootName=r,a[Rn("0x7a")]=!o||o.isAttached,a[Rn("0xcd")]=()=>a[Rn("0x7a")],this[Rn("0x8d")][Rn("0x9a")](r,a),this[Rn("0x10")][Rn("0x9a")](r,s);const c=this[Rn("0xe7")](a,Number.NEGATIVE_INFINITY);this[Rn("0x99")].set(r,c),n[Rn("0x9a")](r,a[Rn("0xcd")]()?s:{});for(const[e,t]of a.markers){if(!e[Rn("0xa2")](Rn("0xd2")))continue;const i=e[Rn("0x40")](":")[2];for(const e of t[Rn("0x97")]({singleCharacters:!0})){const t=this[Rn("0xd7")](e),n=this[Rn("0xc2")]++,r="elementEnd"==e.type?e[Rn("0xe0")][Rn("0x43")][Rn("0x107")](0,-1):e[Rn("0xe0")][Rn("0x43")];c[Rn("0x18")](r)[Rn("0xaf")](t,n),this._touched[Rn("0x9a")](n,{userId:i})}}for(const e of this.editor[Rn("0x65")].createRangeIn(a).getWalker({singleCharacters:!0})){const n=this[Rn("0xd7")](e),r="elementEnd"==e[Rn("0x91")]?e[Rn("0xe0")].path[Rn("0x107")](0,-1):e[Rn("0xe0")].path,o=c[Rn("0x18")](r);o[Rn("0x88")](n)>0||o[Rn("0xaf")](n,t[i++])}for(const[e,t]of a.markers)e.startsWith("revision:")||this._markers[Rn("0x9a")](e,t)}const r=An(Rn("0x30"));this[Rn("0xb8")][Rn("0x9a")](Rn("0x30"),r),this[Rn("0xd8")][Rn("0x9a")]("$graveyard",this[Rn("0xe7")](r,1));const o=An("$graveyard");this[Rn("0x8d")][Rn("0x9a")]("$graveyard",o),this[Rn("0x99")][Rn("0x9a")](Rn("0x30"),this._makeIdsRoot(o,1));const s=Array.from(this[Rn("0x8d")]).map((([e,t])=>[e,Mn(t)]));this[Rn("0x52")](this[Rn("0x26")],s,this._markers,n)}_makeModelFromViewString(e){const t=JSON[Rn("0x3d")](e),i=this.editor[Rn("0xdd")][Rn("0xd9")][Rn("0x5d")],n=new o.ViewDocumentFragment(i,t.map((e=>Nn(e,this.editor))));return this.editor[Rn("0xef")].toModel(n)}[Rn("0x52")](e,t,i,n){const r=new Map(t),o=new Map(yi(n)),s=new Map;for(const[e,t]of i)s[Rn("0x9a")](e,{start:t[Rn("0x1f")][Rn("0x6")](),end:t.end[Rn("0x6")](),rootName:t[Rn("0xfa")][Rn("0xb5")]});this[Rn("0x4e")].set(e,{roots:r,markers:s,rootsAttributes:o})}[Rn("0x68")](e){this[Rn("0x4e")][Rn("0x19")](e)}[Rn("0xea")](){this[Rn("0xfe")](),this[Rn("0x3b")]=-1,this[Rn("0x26")]=-1,this[Rn("0x4e")].clear(),this[Rn("0x62")](this.source)}[Rn("0xfe")](){this[Rn("0x25")][Rn("0x93")](),this._touchedMarkers.clear(),this[Rn("0x2")][Rn("0x93")](),this._diffRoots[Rn("0x93")](),this[Rn("0x10")][Rn("0x93")](),this._baseRoots[Rn("0x93")](),this[Rn("0x67")][Rn("0x93")](),this[Rn("0x99")][Rn("0x93")](),this[Rn("0xd8")][Rn("0x93")](),this._markers[Rn("0x93")](),this[Rn("0xc2")]=1,this._startingRevisionId=this._revisionId}[Rn("0xe7")](e,t=null){let i=null;e.is("documentFragment")||(i=new o.Element(e[Rn("0xff")],{vid_start:null===t?this._revisionId++:t++}));const n=[];for(const i of e[Rn("0x57")]())if(i.is(Rn("0xde"))){n[Rn("0xba")](this[Rn("0xe7")](i,t));const e=n[n.length-1];null!==t&&(t=e.is(Rn("0xde"),Rn("0xf3"))?e[Rn("0x88")]("vid")+1:e.getAttribute(Rn("0x76"))+1)}else for(let e=0;e<i[Rn("0x3e")];e++)n[Rn("0xba")](new o.Element(Rn("0xf3"),{vid:null===t?this[Rn("0xc2")]++:t++}));if(e.is(Rn("0xaa"))){const t=An(e[Rn("0xb5")]);return t._insertChild(0,n),t}return i[Rn("0xaf")](Rn("0x76"),null===t?this[Rn("0xc2")]++:t++),i._insertChild(0,n),i}[Rn("0xb0")](e,t,i){this[Rn("0xfe")]();const{roots:n,markers:r,rootsAttributes:s}=this._savedMetaData[Rn("0xf4")](e);this[Rn("0xb8")]=new Map(n),this[Rn("0x67")]=new Map(yi(s));for(const[e,t]of this[Rn("0xb8")])if(Rn("0x30")!==e&&(this._diffRoots[Rn("0x9a")](e,Mn(t)),this[Rn("0x10")]=new Map(yi(s)),i)){const i=this[Rn("0xc2")];this[Rn("0x99")][Rn("0x9a")](e,this[Rn("0xe7")](t)),this[Rn("0xd8")][Rn("0x9a")](e,this[Rn("0xe7")](t,i))}this._startingRevisionId=this._revisionId,this[Rn("0x8d")][Rn("0x9a")](Rn("0x30"),Mn(this[Rn("0xb8")][Rn("0xf4")]("$graveyard"))),i&&this._idsRoots[Rn("0x9a")](Rn("0x30"),this[Rn("0xe7")](this[Rn("0xb8")][Rn("0xf4")](Rn("0x30"))));for(const[e,t]of r){const i=this[Rn("0xb8")][Rn("0xf4")](t[Rn("0xb5")]),n=this[Rn("0x8d")][Rn("0xf4")](t[Rn("0xb5")]),r=new o.Range(this[Rn("0x51")](t.start,i),this[Rn("0x51")](t.end,i)),s=this[Rn("0xbd")](r,n);i.markers[Rn("0x9a")](e,r),this[Rn("0x90")][Rn("0x9a")](e,s)}this._applyOperations(e,t,i)}[Rn("0x58")](e,t,i){for(const n of this[Rn("0x79")].getOperations(e,t))this[Rn("0x60")](n,i);for(const e of this[Rn("0x8d")][Rn("0x5e")]())e.markers[Rn("0x93")]();for(const[e,t]of this[Rn("0x90")])this[Rn("0x8d")][Rn("0xf4")](t[Rn("0xfa")][Rn("0xb5")])[Rn("0x13")][Rn("0x9a")](e,t[Rn("0x6")]());const n=new Map,r=new Map;for(const[e,t]of this[Rn("0x8d")])n[Rn("0x9a")](e,Mn(t)),r.set(e,this[Rn("0x10")][Rn("0xf4")](e));this[Rn("0x52")](t,n,this[Rn("0x90")],r)}[Rn("0x4c")](e){const t=Array[Rn("0x106")](this[Rn("0x4e")][Rn("0x14")]());t.sort(((e,t)=>e-t)),t[Rn("0xa8")]();for(const i of t)if(i<e)return i;return Number[Rn("0xa1")]}[Rn("0xd")](e,t){const i=Array[Rn("0x106")](t[Rn("0x13")])[Rn("0xca")]((([t,i])=>[t,this[Rn("0xbd")](i,e)]));e[Rn("0x13")]=new Map(i)}_transformMarkers(e){for(const t of this._markers[Rn("0x5e")]()){const i=t[Rn("0x5c")](e),n=o.Range[Rn("0xc5")](i);t[Rn("0x1f")]=n[Rn("0x1f")],t[Rn("0xeb")]=n[Rn("0xeb")]}}[Rn("0x60")](e,t){if(Rn("0x101")==e[Rn("0x91")]||Rn("0xbf")==e[Rn("0x91")])return void this[Rn("0x7d")](e,t);if(Rn("0x46")==e[Rn("0x91")]){const i=e[Rn("0xe8")][Rn("0xfa")][Rn("0xb5")];this[Rn("0x8d")][Rn("0x92")](i)||(this[Rn("0x8d")][Rn("0x9a")](i,An(i,!0)),this[Rn("0x10")].set(i,{}),t&&this[Rn("0x99")][Rn("0x9a")](i,An(i,!0)))}if(Rn("0xb1")==e[Rn("0x91")]||"removeRootAttribute"==e.type||Rn("0x74")==e[Rn("0x91")])return void this[Rn("0x9d")](e);const i=this[Rn("0xbb")](e,this[Rn("0x8d")]);if("marker"!==e[Rn("0x91")]&&(i._execute(),this[Rn("0x8c")](i)),t)switch(i[Rn("0x91")]){case Rn("0x46"):this._handleInsertOperation(e);break;case Rn("0x47"):case Rn("0xc7"):case"reinsert":this[Rn("0x28")](e);break;case Rn("0xab"):this[Rn("0x11")](e);break;case Rn("0x40"):this[Rn("0x1d")](e);break;case Rn("0x24"):this._handleMarkerOperation(e)}}[Rn("0xbb")](e,t){const i=e.clone();return i[Rn("0xec")]=e[Rn("0xec")],this[Rn("0x35")](i,t),i}[Rn("0x7c")](e){return e[Rn("0xca")]((e=>{const t=this[Rn("0xd7")](e);return Number(e[Rn("0x1a")][Rn("0x88")](t))}))}[Rn("0x64")](e,t){if(e.is(Rn("0xde"),Rn("0xf3")))t[Rn("0xba")]({item:e,type:Rn("0x1e")});else{e.is(Rn("0xde"))&&t[Rn("0xba")]({item:e,type:Rn("0xb4")});for(const i of e[Rn("0x57")]())this._generateTape(i,t);e.is(Rn("0xde"))&&t[Rn("0xba")]({item:e,type:Rn("0x5")})}return t}[Rn("0x16")](){const e=new Map(this[Rn("0x25")]),t=new Map(e),i=new Map,n={insertions:{},deletions:{}},r={insertions:{},deletions:{}},o=new Map,s=new Set([...this[Rn("0xb8")][Rn("0x14")](),...this[Rn("0x8d")][Rn("0x14")]()]);s[Rn("0x19")]("$graveyard");for(const e of s){const t=this[Rn("0x8d")][Rn("0xf4")](e)||An(e,!1),i=this[Rn("0xb8")][Rn("0xf4")](e)||An(e,!1);t[Rn("0xcd")]()||i[Rn("0xcd")]()?(n[Rn("0xda")][e]=Mn(t),n[Rn("0x42")][e]=Mn(i),this[Rn("0xd")](n[Rn("0x42")][e],i),this[Rn("0xd")](n[Rn("0xda")][e],t),r[Rn("0xda")][e]=this[Rn("0x64")](this[Rn("0x99")][Rn("0xf4")](e),[]),r[Rn("0x42")][e]=this[Rn("0x64")](this[Rn("0xd8")][Rn("0xf4")](e)||An(e,!1),[])):s[Rn("0x19")](e)}for(const n of s){const o=r.insertions[n];for(const n of o){const r=this._getVidAttributeName(n),o=n[Rn("0x1a")].getAttribute(r);t.delete(o),o>=this._startingRevisionId&&i.set(o,e[Rn("0xf4")](o))}}for(const n of s){const s=r.insertions[n],a=this._getBaseVids(r[Rn("0x42")][n]);let c=0;for(const n of s){const r=this[Rn("0xd7")](n),s=n.item[Rn("0x88")](r);if(!i.has(s)&&!o[Rn("0x92")](s))if(t.has(s))c++;else{if(s!=a[c]){const i=e[Rn("0xf4")](s)||e[Rn("0xf4")](a[c]);for(;s!=a[c];)t[Rn("0x92")](a[c])||(o[Rn("0x9a")](a[c],i),e.set(a[c],i)),c++}c++}}}for(const e of s){const n=r[Rn("0xda")][e];for(const e of n){const n=this[Rn("0xd7")](e),r=e.item[Rn("0x88")](n);if(o[Rn("0x92")](r)){const e=o.get(r);t.has(r)||t[Rn("0x9a")](r,{...e}),i[Rn("0x9a")](r,{...e})}}}for(const e of t[Rn("0x14")]())e>=this[Rn("0x7")]&&t.delete(e);const a=new Map;for(const e of s){let n=r[Rn("0xda")][e];for(const e of n)if(e[Rn("0x1a")].is("element",Rn("0x12"))){const t=this[Rn("0xd7")](e),n=e.item.getAttribute(t);if(i[Rn("0x92")](n)){const t=e.item.parent.parent[Rn("0x88")](Rn("0x36")),r=a[Rn("0xf4")](t)||new Set;r[Rn("0x94")](i[Rn("0xf4")](n)[Rn("0x75")]),a[Rn("0x9a")](t,r)}}n=r[Rn("0x42")][e];for(const e of n)if(e.item.is(Rn("0xde"),Rn("0x12"))){const i=this[Rn("0xd7")](e),n=e[Rn("0x1a")][Rn("0x88")](i);if(t.has(n)){const i=e[Rn("0x1a")][Rn("0x105")][Rn("0x105")][Rn("0x88")](Rn("0x36")),r=a[Rn("0xf4")](i)||new Set;r[Rn("0x94")](t.get(n).userId),a.set(i,r)}}for(const e of a[Rn("0x14")]())(i.has(e)||t[Rn("0x92")](e))&&a.delete(e)}for(const e of s){const n=r[Rn("0xda")][e];let o=null,s=null;for(const e of n){const n=this[Rn("0xd7")](e),r=e[Rn("0x1a")].getAttribute(n),c=a[Rn("0xf4")](r);c&&Rn("0xb4")==e[Rn("0x91")]&&(o=Array[Rn("0x106")](c)[0],s=e[Rn("0x1a")][Rn("0x88")](Rn("0x76"))),o&&(t[Rn("0x9a")](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("0x42")][e],s=n[Rn("0xda")][e];for(const{userId:e}of this[Rn("0x61")].values())null!==e&&u.add(e);for(const{userId:e}of this[Rn("0x2")][Rn("0x5e")]())null!==e&&u[Rn("0x94")](e);this._markChanges(s,r.insertions[e],i,Rn("0xe6"),u),this[Rn("0xc")](o,r[Rn("0x42")][e],t,"deletion",u),c[e]={insertions:this[Rn("0x78")](s),deletions:this._prepareViewToSave(o),attachChange:this[Rn("0x2")][Rn("0xf4")](e)||null,attributesBefore:yi(this._baseRootsAttributes[Rn("0xf4")](e))||{},attributesAfter:yi(this[Rn("0x10")][Rn("0xf4")](e))}}return{diffData:c,authorsIds:Array[Rn("0x106")](u)}}[Rn("0xf0")](e){for(const[,t]of e[Rn("0x13")]){const e=t[Rn("0x1f")][Rn("0x100")]()[Rn("0x7e")]((e=>Rn("0x12")==e[Rn("0xff")]));for(const t of e)1==t[Rn("0xd1")]&&t[Rn("0xf")](0).is(Rn("0xde"),Rn("0x72"))&&t[Rn("0xf")](0)[Rn("0xaf")](Rn("0x2f"),!0)}}_prepareViewToSave(e){this[Rn("0xf0")](e);const t=this[Rn("0xbc")][Rn("0xef")][Rn("0xdc")](e,{}),i=Array[Rn("0x106")](t[Rn("0x57")]())[Rn("0xca")]((e=>this._getViewJson(e)));return JSON[Rn("0x5a")](i)}[Rn("0xa0")](e){if(e.is(Rn("0xf3")))return e[Rn("0xef")];{const t=e;return{type:Object[Rn("0x14")](Tn)[Rn("0xb")]((t=>e instanceof Tn[t])),name:t[Rn("0xff")],attributes:Array.from(t[Rn("0x56")]()),children:Array[Rn("0x106")](t[Rn("0x57")]())[Rn("0xca")]((e=>this[Rn("0xa0")](e)))}}}_markChanges(e,t,i,n,r){let o=null,s=null,a=0;const c=this[Rn("0xbc")][Rn("0x65")];for(let n=0;n<t.length;n++){const r=this[Rn("0xd7")](t[n]),a=t[n][Rn("0x1a")][Rn("0x88")](r),d=i[Rn("0xf4")](a),l=n==t[Rn("0x54")]-1;!o&&d&&(o=d,s=t[n]),o&&(!d||d[Rn("0x75")]!=o[Rn("0x75")])&&(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),Dn(t[n],e,c))}function u(t,i,s){const u=o[Rn("0x75")],d=Rn("0xd2")+n+":"+u+":"+a++,l=c.createRange(i,s);e.markers[Rn("0x9a")](d,l),null!==u&&r[Rn("0x94")](u)}}[Rn("0xd7")](e){switch(e[Rn("0x91")]){case Rn("0xb4"):return Rn("0x36");case"elementEnd":return"vid_end";default:return Rn("0xc3")}}[Rn("0x35")](e,t){e.baseVersion=null;for(const i in e){const n=e[i];if(n instanceof o.Position){const r=t.get(n.root[Rn("0xb5")]);e[i]=this[Rn("0x51")](n,r)}if(n instanceof o.Range){const r=t[Rn("0xf4")](n[Rn("0xfa")].rootName);e[i]=this[Rn("0xbd")](n,r)}Rn("0xfa")===i&&(e[Rn("0xfa")]=t[Rn("0xf4")](e[Rn("0xfa")][Rn("0xb5")]))}}[Rn("0xbd")](e,t){return this.editor[Rn("0x65")][Rn("0xd5")](this[Rn("0x51")](e[Rn("0x1f")],t),this[Rn("0x51")](e[Rn("0xeb")],t))}[Rn("0x51")](e,t){return this[Rn("0xbc")][Rn("0x65")].createPositionFromPath(t,e[Rn("0x43")],e[Rn("0x2b")])}_handleInsertOperation(e){const t=this[Rn("0x99")][Rn("0xf4")](e[Rn("0xe8")][Rn("0xfa")][Rn("0xb5")]),i=this._fixPosition(e.position,t),n=null===e._authorId?null:e[Rn("0xec")]||this[Rn("0xbc")][Rn("0x77")][Rn("0xf4")](Rn("0x4b")).me.id,r=i.parent,s=this._revisionId,a=[];for(const t of e.nodes)if(t.is(Rn("0xde")))a[Rn("0xba")](this[Rn("0xe7")](t));else for(let e=0;e<t.offsetSize;e++)a.push(new o.Element("$text",{vid:this[Rn("0xc2")]++}));const c=this[Rn("0xc2")];for(let e=s;e<c;e++)this[Rn("0x25")][Rn("0x9a")](e,{userId:n});r[Rn("0xe9")](i[Rn("0x8e")],a)}[Rn("0x28")](e){(e=this[Rn("0xbb")](e,this[Rn("0x99")]))[Rn("0xc4")]();const t=null===e[Rn("0xec")]?null:e[Rn("0xec")]||this[Rn("0xbc")][Rn("0x77")].get(Rn("0x4b")).me.id,i=e[Rn("0x104")](),n=i[Rn("0x105")],r=i[Rn("0x8e")];!function e(i,n,r,o){for(let s=r;s<o;s++){const r=n.getChild(s);r.is(Rn("0xde"),Rn("0xf3"))?i[Rn("0x9a")](r[Rn("0x88")](Rn("0xc3")),{userId:t}):(i[Rn("0x9a")](r[Rn("0x88")](Rn("0x36")),{userId:t}),e(i,r,0,r[Rn("0xd1")]),i[Rn("0x9a")](r[Rn("0x88")](Rn("0x76")),{userId:t}))}}(this[Rn("0x25")],n,r,r+e[Rn("0x83")])}[Rn("0x11")](e){const t=null===(e=this[Rn("0xbb")](e,this[Rn("0x99")]))[Rn("0xec")]?null:e[Rn("0xec")]||this[Rn("0xbc")][Rn("0x77")].get(Rn("0x4b")).me.id,i=e[Rn("0xe2")].parent,n=e[Rn("0xb7")][Rn("0x105")],r=i[Rn("0x88")](Rn("0x76")),o=n.getAttribute(Rn("0x36"));i[Rn("0xaf")](Rn("0x76"),n[Rn("0x88")](Rn("0x76"))),n[Rn("0xaf")](Rn("0x76"),r),this._touched.set(o,{userId:t}),this[Rn("0x25")].set(r,{userId:t}),e._execute()}_handleSplitOperation(e){const t=null===(e=this._cloneOperation(e,this[Rn("0x99")]))[Rn("0xec")]?null:e[Rn("0xec")]||this[Rn("0xbc")].plugins[Rn("0xf4")]("Users").me.id,i=e[Rn("0xd3")],n=e[Rn("0x49")][Rn("0x105")];e[Rn("0xc4")]();const r=n.getAttribute(Rn("0x76")),o=e.insertionPosition[Rn("0xc8")];if(i){const e=o[Rn("0x88")](Rn("0x76")),i=n[Rn("0x88")]("vid_end");n[Rn("0xaf")](Rn("0x76"),e),o[Rn("0xaf")](Rn("0x76"),i),this[Rn("0x25")][Rn("0x9a")](n.getAttribute(Rn("0x76")),{userId:t}),this[Rn("0x25")][Rn("0x9a")](o[Rn("0x88")]("vid_start"),{userId:t})}else{const e=this[Rn("0xc2")]++,i=this[Rn("0xc2")]++;n[Rn("0xaf")](Rn("0x76"),e),o[Rn("0xaf")](Rn("0x36"),i),o[Rn("0xaf")]("vid_end",r),this[Rn("0x25")].set(e,{userId:t}),this[Rn("0x25")][Rn("0x9a")](i,{userId:t})}}[Rn("0x1b")](e){if(!e[Rn("0xf6")])return;const t=(e=this[Rn("0xbb")](e,this[Rn("0x8d")]))[Rn("0x2a")]?e[Rn("0x2a")][Rn("0xfa")]:null,i=e[Rn("0xfb")]?e[Rn("0xfb")][Rn("0xfa")]:null;t&&this._markers[Rn("0x19")](e[Rn("0xff")]),i&&this[Rn("0x90")].set(e[Rn("0xff")],e[Rn("0xfb")][Rn("0x6")]());const n=null===e[Rn("0xec")]?null:e[Rn("0xec")]||this.editor[Rn("0x77")][Rn("0xf4")](Rn("0x4b")).me.id,r=e[Rn("0xff")];if(!this._touchedMarkers.has(r))return void this[Rn("0x61")].set(r,{range:e[Rn("0x2a")],userId:n});const o=this[Rn("0x61")].get(r),s=o.range,a=e[Rn("0xfb")];null==s&&null==a||s&&a&&s[Rn("0xf9")](a)?this[Rn("0x61")].delete(e[Rn("0xff")]):o[Rn("0x75")]=n}[Rn("0x7d")](e,t){this._diffRoots[Rn("0x92")](e[Rn("0xb5")])?this[Rn("0x8d")][Rn("0xf4")](e[Rn("0xb5")])[Rn("0x7a")]=e[Rn("0x3c")]:(this[Rn("0x8d")][Rn("0x9a")](e[Rn("0xb5")],An(e[Rn("0xb5")],!0)),this[Rn("0x10")][Rn("0x9a")](e[Rn("0xb5")],{}),t&&this[Rn("0x99")][Rn("0x9a")](e[Rn("0xb5")],An(e[Rn("0xb5")],!0)));const i=null===e[Rn("0xec")]?null:e[Rn("0xec")]||this[Rn("0xbc")][Rn("0x77")][Rn("0xf4")](Rn("0x4b")).me.id,n=this[Rn("0x2")][Rn("0xf4")](e[Rn("0xb5")]);n&&n.userId===i?this._touchedRoots.delete(e[Rn("0xb5")]):this[Rn("0x2")][Rn("0x9a")](e[Rn("0xb5")],{userId:i,isAttached:e[Rn("0x3c")]})}[Rn("0x9d")](e){const t=this[Rn("0x10")][Rn("0xf4")](e[Rn("0xfa")].rootName);null===e[Rn("0xb6")]?delete t[e[Rn("0x50")]]:t[e[Rn("0x50")]]=e[Rn("0xb6")]}}function Mn(e){const t=An(e[Rn("0xb5")],e[Rn("0xcd")]());for(const i of e[Rn("0x57")]()){const e=i[Rn("0x20")](!0);t[Rn("0x9c")](e)}return t}function An(e,t=!0){const i=new o.DocumentFragment;return i[Rn("0xb5")]=e,i._isAttached=t,i[Rn("0xcd")]=()=>i[Rn("0x7a")],i}function En(e,t,i){const n="elementEnd"==e[Rn("0x91")]?i[Rn("0xd0")](e[Rn("0x1a")],Rn("0xeb")):i[Rn("0x3a")](e[Rn("0x1a")]);return i[Rn("0xce")](t,n[Rn("0x43")],n[Rn("0x2b")])}function Dn(e,t,i){const n="elementStart"==e[Rn("0x91")]?i[Rn("0xd0")](e.item,0):i[Rn("0x45")](e[Rn("0x1a")]);return i.createPositionFromPath(t,n[Rn("0x43")],n[Rn("0x2b")])}var jn=i(273),Cn=i(278),Fn=i.n(Cn),Ln=i(996),Pn={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fn()(Ln.Z,Pn);Ln.Z.locals;var zn=i(542),Zn={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fn()(zn.Z,Zn);zn.Z.locals;const Un=["ck-revision-history-save-revision-form","saveButtonView","setTemplate","keystrokes","Cancel","ck-button-save","value","focus","focusTracker","220","render","delegate","reset","tab","_focusCycler","shift + tab","fieldView","arrowleft","_createRevisionNameInput","type","focusFirst","_focusables","_createButton","revisionNameInputValue","label","element","revisionNameInputView","ck-responsive-form","trim","arrowdown","cancelButtonView","form","set","Save","submit","cancel","forEach","arrowup","Name of the revision (optional)","ck-button-cancel","locale","add","revisionName"];var Hn,qn;Hn=Un,qn=131,function(e){for(;--e;)Hn.push(Hn.shift())}(++qn);const Bn=function(e,t){return Un[e-=0]};class Wn extends jn.View{constructor(i){super(i),this[Bn("0x6")]=new t.FocusTracker,this[Bn("0x1")]=new t.KeystrokeHandler,this[Bn("0x1e")](Bn("0x15"),""),this.revisionNameInputView=this[Bn("0x10")](),this[Bn("0x2a")]=this[Bn("0x14")](en(i,Bn("0x1f")),e.icons.check,Bn("0x3")),this[Bn("0x2a")][Bn("0x11")]=Bn("0x20"),this[Bn("0x1c")]=this[Bn("0x14")](en(i,Bn("0x2")),e.icons[Bn("0x21")],Bn("0x25"),"cancel"),this[Bn("0x13")]=new jn.ViewCollection,this[Bn("0xc")]=new jn.FocusCycler({focusables:this[Bn("0x13")],focusTracker:this[Bn("0x6")],keystrokeHandler:this.keystrokes,actions:{focusPrevious:Bn("0xd"),focusNext:Bn("0xb")}}),this[Bn("0x0")]({tag:Bn("0x1d"),attributes:{class:["ck",Bn("0x29"),Bn("0x19")],tabindex:"-1"},children:[this[Bn("0x18")],this[Bn("0x2a")],this[Bn("0x1c")]]}),(0,jn.injectCssTransitionDisabler)(this)}[Bn("0x8")](){super[Bn("0x8")](),(0,jn.submitHandler)({view:this}),[this[Bn("0x18")],this.saveButtonView,this.cancelButtonView][Bn("0x22")]((e=>{this._focusables[Bn("0x27")](e),this.focusTracker[Bn("0x27")](e[Bn("0x17")])})),this[Bn("0x1")].listenTo(this[Bn("0x17")]);const e=e=>e.stopPropagation();this[Bn("0x1")].set("arrowright",e),this[Bn("0x1")][Bn("0x1e")](Bn("0xf"),e),this.keystrokes[Bn("0x1e")](Bn("0x23"),e),this.keystrokes[Bn("0x1e")](Bn("0x1b"),e)}[Bn("0x5")](){this[Bn("0xc")][Bn("0x12")]()}get[Bn("0x28")](){return this[Bn("0x18")][Bn("0xe")][Bn("0x17")].value[Bn("0x1a")]()}set revisionName(e){this[Bn("0x18")][Bn("0xe")][Bn("0x17")][Bn("0x4")]=e[Bn("0x1a")]()}[Bn("0xa")](){this.revisionNameInputView[Bn("0xe")][Bn("0x17")][Bn("0x4")]=""}_createRevisionNameInput(){const e=new jn.LabeledFieldView(this[Bn("0x26")],jn.createLabeledInputText),t=e[Bn("0xe")];return t.extendTemplate({attributes:{maxlength:Bn("0x7")}}),e[Bn("0x16")]=en(this[Bn("0x26")],Bn("0x24")),t.on("input",(()=>{this[Bn("0x15")]=t.element.value[Bn("0x1a")]()})),e}[Bn("0x14")](e,t,i,n){const r=new jn.ButtonView(this.locale);return r.set({label:e,icon:t,tooltip:!0}),r.extendTemplate({attributes:{class:i}}),n&&r[Bn("0x9")]("execute").to(this,n),r}}const Jn='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><g><path d="M11 1a9 9 0 1 1-8.027 13.075l1.128-1.129A7.502 7.502 0 0 0 18.5 10a7.5 7.5 0 1 0-14.962.759l-.745-.746-.76.76A9 9 0 0 1 11 1z"/><path d="M.475 8.17a.75.75 0 0 1 .978.047l.075.082 1.284 1.643 1.681-1.284a.75.75 0 0 1 .978.057l.073.083a.75.75 0 0 1-.057.978l-.083.073-2.27 1.737a.75.75 0 0 1-.973-.052l-.074-.082-1.741-2.23a.75.75 0 0 1 .13-1.052z"/><path d="M11.5 5v4.999l3.196 3.196-1.06 1.06L10.1 10.72l-.1-.113V5z"/></g></svg>\n',Gn=["editor","submit","render","saveButtonView","revisionHistory","init","requires","add","saveRevision","remove","RevisionHistoryUI","focus","length","Revision history","isReady","get","RevisionTracker","plugins","isEnabled","execute","componentFactory","panelView","change:isOpen","set","bind","buttonView","children","reset","config","isReadOnly","addMany"];var Yn,$n;Yn=Gn,$n=152,function(e){for(;--e;)Yn.push(Yn.shift())}(++$n);const Kn=function(e,t){return Gn[e-=0]};class Xn extends e.Plugin{static get pluginName(){return Kn("0xd")}static get[Kn("0x9")](){return[In]}[Kn("0x8")](){const e=this[Kn("0x3")],t=e[Kn("0x14")].get(Kn("0x13"));e.ui[Kn("0x17")][Kn("0xa")](Kn("0x7"),(i=>{const n=(0,jn.createDropdown)(i),r=n[Kn("0x18")][Kn("0x1d")],o=new jn.ListView(i),s=new jn.ListItemView(i),a=new jn.ButtonView(i),c=new jn.ListItemView(i),u=new jn.ButtonView(i),d=new Wn(i);function l(){r.length&&r[Kn("0xc")](0),r.add(o)}function x(){n.isOpen=!1,e.editing.view[Kn("0xe")]()}return n.bind("isEnabled").to(t,Kn("0x11"),t,Kn("0x15"),e,Kn("0x1"),((e,t,i)=>e&&t&&!i)),n[Kn("0x1c")][Kn("0x1a")]({icon:Jn,label:en(i,Kn("0x10")),tooltip:!0}),a.set({label:en(i,"Save current revision"),withText:!0}),a[Kn("0x1b")](Kn("0x15")).to(t,Kn("0x11"),t,Kn("0x15"),e,"isReadOnly",((e,t,i)=>e&&t&&!i)),a.on("execute",(()=>(r[Kn("0xf")]&&r[Kn("0xc")](0),d[Kn("0x1e")](),r[Kn("0xa")](d),void d.focus()))),u[Kn("0x1a")]({label:en(i,"Open revision history"),withText:!0}),u[Kn("0x1b")](Kn("0x15")).to(t,"isReady",e,Kn("0x1"),((e,t)=>e&&!t)),u.on(Kn("0x16"),(()=>{e[Kn("0x0")][Kn("0x12")](Kn("0x7")).showRevisionViewerCallback(),x()})),s[Kn("0x1d")][Kn("0xa")](a),c[Kn("0x1d")].add(u),o.items[Kn("0x2")]([s,c]),n.on(Kn("0x19"),(()=>l())),d[Kn("0x6")][Kn("0x1b")](Kn("0x15")).to(t,Kn("0x11"),t,"isEnabled",e,Kn("0x1"),((e,t,i)=>e&&t&&!i)),d.on(Kn("0x4"),(()=>(e[Kn("0x14")][Kn("0x12")](In)[Kn("0xb")]({name:d.revisionName}),void x()))),d.on("cancel",(()=>l())),d[Kn("0x5")](),l(),n}))}}const Qn=["ck-revision-change__label","span","type","name","add","bindTemplate","ck-annotation","author","isSuggestion","_model","element","changeId","Removed by","ck-revision-change","set","Added by","setTemplate","focus"];var er,tr;er=Qn,tr=157,function(e){for(;--e;)er.push(er.shift())}(++tr);const ir=function(e,t){return Qn[e-=0]};class nr extends jn.View{constructor(e,t){super(e),this[ir("0xe")]=t,this[ir("0x10")]=t.id;const i=this[ir("0xa")],n=en(e,t.data[ir("0xd")]?"Suggested by":ir("0x9")==t[ir("0x7")]?ir("0x2"):ir("0x11"));this[ir("0x1")](ir("0x7"),t[ir("0x7")]),this[ir("0x3")]({tag:"div",attributes:{class:[ir("0xb"),ir("0x0"),i.to(ir("0x7"),(e=>"ck-revision-change__"+e))],tabindex:-1},children:[{tag:"span",children:[{tag:ir("0x6"),attributes:{class:[ir("0x5")]},children:[{text:n}]},{text:" "+t[ir("0xc")][ir("0x8")]}]}]})}[ir("0x4")](){this[ir("0xf")][ir("0x4")]()}}var rr,or,sr=["type","rootName","author","toJSON","data","createdAt"];rr=sr,or=203,function(e){for(;--e;)rr.push(rr.shift())}(++or);var ar=function(e,t){return sr[e-=0]};class cr extends((0,t.ObservableMixin)()){constructor(e){super(),this.id=e.id||(0,t.uid)(),this[ar("0x3")]=e[ar("0x3")],this[ar("0x1")]=e[ar("0x1")],this.data=e.data||{},this[ar("0x2")]=e.rootName,this.set("createdAt",e[ar("0x0")])}[ar("0x4")](){return{id:this.id,authorId:this[ar("0x3")].id,type:this[ar("0x1")],data:this[ar("0x5")],createdAt:this.createdAt}}}const ur=["changes","newRevisionId"];var dr,lr;dr=ur,lr=282,function(e){for(;--e;)dr.push(dr.shift())}(++lr);const xr=function(e,t){return ur[e-=0]};class hr{constructor(e,i){this[xr("0x1")]=e,this.oldRevisionId=i,this.changes=new t.Collection}_setChanges(e){for(const t of e)this[xr("0x0")].add(t)}}var fr=i(288),vr={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fn()(fr.Z,vr);fr.Z.locals;const mr=["keys","isInline","collaboration.channelId","ck-revision-history-root-remove","includes","addRoot","isAfter","revision-suggestion:","_update","conversion","editor","_balloon","level","_markSuggestions","code","change:isReady","downcastDispatcher","_initInteractions","domEvent","low","deletions","consume","isAddSuggestion","filter","softBreak","editingDowncast","vid_start","isReady","splice","activeView","createAttributeElement","getRevisionRootsAttributes","change:activeView","side","_markInsertions","_removeMissingPairs","checkAttribute","getCustomProperty","forward","_cleanUp","pluginName","sort","offsetSize","_setConversion","removeMarker","getRoot","isAdded","viewItem","slice","restoreRevision","data","locale","diffData","_activeViewTarget","_getViewForChange","next","_refreshStartEndIndex","toData","ck-suggestion-marker-","_getRevisionsRange","object","compare","isBlock","currentChangeNumber","processor","hasAttribute","for","detachRoot","setAttribute","addRevision","split","enableReadOnlyMode","refresh","_makeModelFromViewString","get","find","_threeWayMerge","_step","change:numberOfChanges","endIndex","restoreRevisionCallback","revision-end","toViewElement","createRangeIn","removeMarker:revision","schema","_getChangeFromId","init","ck-revision-history-root-add","nextPosition","createUIElement","set","getAttribute","getRootNames","_setChanges","isContent","has","attributesAfter","view","reconvertMarker","length","attributes","item","type","resolve","mousedown","children","revision-start","right","_makeModelFromTape","ck-revision-history-root-","-new","revision-viewer","document","consumable","removeAttribute","isBefore","change:isEnabled","_sortAndFilterDiffChanges","isEqual","revisionHistoryAttachChange","editing","markersStart","string","attributesBefore","markerName","data-change-id","highest","startsWith","listenTo","forEach","nextSibling","data-revision-","authors","numberOfChanges","mapViewToDom","indexOf","getClientRects","diff","execute","adapter","bindElementToMarker","removeClass","commands","useFillerType","markerNameToElements","parent","left","isSuggestion","addHighlight","concat","element","ck-suggestion-marker--active","showStack","shift","enqueueChange","createRevision","markerToHighlight","getWalker","merge","getAttributes","changeId","deletion","unbindElementFromMarkerName","ck-editor__editable__overlay","_data","_removeUnsupportedChanges","updatePosition","attachChange","_findChangeIdFromDomTarget","mouseover","catch","markerToData","elementToAttribute","text","vid_end","loadRevisionData","_getViewObj","change:activeChange","bind","getChild","userId","RevisionsRepository","insert","activeChange","stop","_cleanMarkers","isOnRoot","showNextChange","all","getIndex","ck-revision-history-root--active","isAttached","_setDistance","_getDiff","createPositionBefore","ck-suggestion-preview-marker-","revision","_appendChild","dataDowncast","mapper","rootName","abs","map","_revisions","markersEnd","isIncorrect","isAtEnd","then","upcast","distance","_processTape","nodeAfter","suggestion:","getItems","index","bottom","forceDisabled","modelRange","error","change","_makeTape","add","affectsData","_changeIdToChange","revision-suggestion","revision:","startIndex","_changeView","isLimit","addClass","insertions","high","addMarker:revision-suggestion:insertion","createRange","revision-comment:","isRemoved","push","changes","span","WidgetToolbarRepository","getRevisionData","isAtStart","plugins","dataToMarker","top","vid","_joinTapes","isCollapsed","range","first","suggestion","clear","toViewPosition","createPositionFromPath","destroy","ck-suggestion-marker-merge","maxOffset","values","model","config","getDomRoot","target","_markMarkers","toViewRange","pairId","newRevisionId","from","hasClass","isEnabled","removeMarker:revision-suggestion","getRevision","name","isRemoveSuggestion","elementStart","unshift","insertion","marked","delete","parse","return","end","elementEnd","repository","_removeRevisionMarkers","writer","markers","previousPosition","test","revisionHistory","uiElement","POSITIVE_INFINITY","markerRange","start","_fixObsoleteTags","remove"];var gr,br;gr=mr,br=397,function(e){for(;--e;)gr.push(gr.shift())}(++br);const yr=function(e,t){return mr[e-=0]},pr={c:o.ViewContainerElement,a:o.ViewAttributeElement,e:o.ViewEmptyElement,r:o.ViewRawElement,u:o.ViewUIElement};class kr extends e.Plugin{static get[yr("0xeb")](){return"RevisionViewer"}static get requires(){return[r.Users,jn.ContextualBalloon,Qi]}constructor(e){super(e),this[yr("0xb6")]=this[yr("0xcd")].plugins[yr("0x10d")](yr("0x51")),this[yr("0x11e")]("activeChange",null),this[yr("0x11e")]("activeView",null),this[yr("0xf8")]=null,this[yr("0x11e")]("diff",null),this[yr("0x11e")](yr("0xde"),!1),this[yr("0x11e")](yr("0xa8"),!0),this.on(yr("0x10"),((e,t,i)=>{this.activeChange=null,this.activeView=null,this.editor.editing.view.change((e=>{for(const t of this.editor[yr("0x14")][yr("0x125")].document.roots)i?e[yr("0x29")](yr("0x3f"),t):e[yr("0x81")](yr("0x3f"),t)}))})),this[yr("0x4e")]("isNavigationMode").to(this,"activeChange",(e=>null!==e)),this[yr("0x4e")](yr("0x102")).to(this,yr("0xde"),this,"diff",this,yr("0x53"),((e,t,i)=>e&&i?t[yr("0x89")][yr("0x59")](i):0)),this[yr("0x4e")](yr("0x21")).to(this,yr("0xde"),this,yr("0x25"),((e,t)=>e?t[yr("0x89")].length:0)),this._changeView=null,this[yr("0x7b")]=new Map,this[yr("0x27")]=null,this[yr("0xce")]=this.editor.plugins[yr("0x10d")](jn.ContextualBalloon)}[yr("0x11a")](){const e=this.editor,t=new Sr(e,{direction:"backward"}),i=new Sr(e,{direction:yr("0xe9")});e[yr("0x2a")].add("showPreviousChange",t),e.commands[yr("0x79")](yr("0x57"),i),e[yr("0x2a")][yr("0x79")](yr("0xf4"),new wr(e)),this.on(yr("0x111"),(()=>{t[yr("0x10b")](),i[yr("0x10b")]()})),this[yr("0xee")](),this[yr("0xd4")](),e[yr("0x10a")](yr("0xb")),e[yr("0x8e")][yr("0x123")](yr("0x8b"))&&e[yr("0x8e")][yr("0x10d")]("WidgetToolbarRepository")[yr("0x74")](yr("0xb"))}async[yr("0x8c")](e){await this.loadRevisionData(e);const t={};for(const i in e.diffData){if(e[yr("0xf7")][i][yr("0x43")]&&!e[yr("0xf7")][i].attachChange.isAttached)continue;const n=this[yr("0xb7")](JSON[yr("0xb2")](e[yr("0xf7")][i][yr("0x82")])),r=this[yr("0xcd")][yr("0x14")][yr("0x125")][yr("0xc")],s=new o.ViewDocumentFragment(r,n[yr("0x66")]((e=>this[yr("0x4c")](e))));this[yr("0xcd")][yr("0xf5")].processor.useFillerType(yr("0xb0")),t[i]=this[yr("0xcd")].data[yr("0x103")][yr("0xfc")](s),this.editor[yr("0xf5")][yr("0x103")][yr("0x2b")]("default")}return t}async[yr("0xe2")](e){await this.loadRevisionData(e);const t={};for(const i in e[yr("0xf7")])e[yr("0xf7")][i][yr("0x43")]&&!e[yr("0xf7")][i].attachChange.isAttached||(t[i]=e[yr("0xf7")][i][yr("0x124")]||{});return t}[yr("0xb7")](e){return(e=e.filter((e=>!e[yr("0xab")]||yr("0x6")!==e[yr("0xab")]&&yr("0x114")!==e[yr("0xab")])))[yr("0x1d")]((e=>{"string"!=typeof e&&(e.children=this[yr("0xb7")](e[yr("0x5")]),e[yr("0x0")]=e[yr("0x0")][yr("0xda")]((e=>!e[0][yr("0x1b")](yr("0x1f")))))})),e}async[yr("0x100")](e,t,i=!1){if(!this[yr("0xa8")])return;const n=this[yr("0x25")],r=this[yr("0xb6")],o=yr("0x16")==typeof e?r[yr("0xaa")](e):e,s=yr("0x16")==typeof t?r[yr("0xaa")](t):t,a=o.id,c=s?s.id:null;if(!i&&this[yr("0x25")]&&this[yr("0x25")].newRevisionId===a&&this[yr("0x25")].oldRevisionId===c)return Promise[yr("0x3")]();this[yr("0xde")]=!1,this[yr("0xe0")]=null,this[yr("0x53")]=null,this.diff=new hr(a,c);const u=this[yr("0xfe")](o,s,!0)[yr("0x66")]((e=>this[yr("0x4b")](e)));return u.push(new Promise((e=>{setTimeout(e,20)}))),Promise[yr("0x58")](u)[yr("0x6b")]((()=>{if(!this.isEnabled)return;this[yr("0xea")]();const e=this._getDiff(a,c);for(const t of e.changes)this[yr("0x7b")][yr("0x11e")](t.id,t);this[yr("0xcd")][yr("0x9e")][yr("0x36")]({isUndoable:!1},(t=>{for(const e of this[yr("0xcd")][yr("0x9e")][yr("0xc")][yr("0x120")]())t[yr("0x106")](e);for(const i of Object[yr("0xc3")](e[yr("0x9e")])){const n=t[yr("0xc8")](i);for(const r of Object.keys(e.attributes[i]))t[yr("0x107")](r,e[yr("0x0")][i][r],n);t[yr("0x52")](e[yr("0x9e")][i],n,0)}})),this.diff[yr("0x121")](this._sortAndFilterDiffChanges(e[yr("0x89")])),this[yr("0xde")]=!0}))[yr("0x46")]((e=>{console[yr("0x76")](e),this[yr("0xea")](),n&&(this[yr("0x25")]=n),this[yr("0xde")]=!0}))}addRevisionData(e,t){const i=this.repository[yr("0x37")](e);return i.on(yr("0xcb"),((e,n,r)=>t(n,r,i))),this[yr("0xb6")][yr("0x108")](i),i}loadRevisionData(e){if(!e||e[yr("0xf7")])return Promise.resolve();{const t=this[yr("0xcd")][yr("0x9f")][yr("0x10d")](yr("0xc5"));return this.adapter[yr("0xaa")]({channelId:t,revisionId:e.id})[yr("0x6b")]((t=>{e._update({diffData:t[yr("0xf7")]},!0)}))}}[yr("0xea")](){this[yr("0x53")]=null,this._cleanMarkers(),this._changeView&&this[yr("0x7f")][yr("0x9a")](),this[yr("0x7f")]=null,this._changeIdToChange[yr("0x97")](),this.editor[yr("0x9e")][yr("0x36")]({isUndoable:!1},(e=>{for(const t of this[yr("0xcd")].model[yr("0xc")][yr("0x120")]())e[yr("0x106")](t)}))}[yr("0x11")](e){const t=[],i=new Map;for(const e of this[yr("0xcd")][yr("0x9e")][yr("0xc")].getRootNames()){const n=this[yr("0xcd")][yr("0x14")].view[yr("0xa0")](e);if(!n)continue;const r=n[yr("0x24")]()[yr("0x1")](0);r&&(t.push(e),i.set(e,r))}return t.sort(((e,t)=>{const n=i.get(e),r=i[yr("0x10d")](t);return n.y-r.y||n.x-r.x})),(e=e[yr("0xda")]((e=>t[yr("0xc7")](e.rootName))))[yr("0xec")](((e,i)=>t[yr("0x23")](e[yr("0x64")])-t[yr("0x23")](i[yr("0x64")]))),e}[yr("0x78")](e){const t=Array[yr("0xa6")](e[yr("0xb9")])[yr("0xda")]((([e,t])=>e[yr("0x1b")](yr("0x7d"))&&!t[yr("0x93")])),i=Array[yr("0xa6")](this[yr("0xcd")][yr("0x9e")][yr("0x116")](e)[yr("0x39")]({singleCharacters:!0}));if(0!=t[yr("0x127")])for(const e of i){const[i,n]=t[0],[,r,o]=i.split(":");if(n.end.isEqual(e[yr("0x11c")])&&t[yr("0x35")](),(e[yr("0xba")][yr("0x12")](n[yr("0xc0")])||e[yr("0xba")][yr("0xc9")](n[yr("0xc0")]))&&("insertion"==r?e[yr("0xf1")]={userId:o}:yr("0x3d")==r&&(e[yr("0x87")]={userId:o})),0==t[yr("0x127")])break}return i}[yr("0xfb")](e){const t=new Map;for(let i=0;i<e[yr("0x127")];i++)yr("0x49")===e[i][yr("0x2")]?(e[i][yr("0x1")][yr("0x7e")]=i,e[i].item.endIndex=i):(yr("0xad")===e[i][yr("0x2")]?e[i][yr("0x1")][yr("0x7e")]=i:yr("0xb5")===e[i][yr("0x2")]&&(e[i][yr("0x1")].endIndex=i),t[yr("0x11e")](e[i].id,i));for(const i of t[yr("0x9d")]())yr("0xad")===e[i].type?e[i].item[yr("0x112")]=t.get(e[i][yr("0xa4")]):yr("0xb5")===e[i][yr("0x2")]&&(e[i][yr("0x1")][yr("0x7e")]=t[yr("0x10d")](e[i][yr("0xa4")]))}[yr("0x6e")](e){for(let t=0;t<e.length;t++){if("elementStart"===e[t].type)e[t][yr("0x1")].startIndex=t;else if(yr("0xb5")===e[t][yr("0x2")]){e[t][yr("0x1")].endIndex=t;const i=e[t][yr("0x1")][yr("0x7e")];e[i].pairId=e[t].id,e[t][yr("0xa4")]=e[i].id}else e[t][yr("0x1")][yr("0x7e")]=t,e[t].item[yr("0x112")]=t,e[t][yr("0xa4")]=null;e[t][yr("0x15")]||(e[t].markersStart=[],e[t][yr("0x68")]=[])}}_markInsertions(e,t){const i=e.filter((e=>!e[yr("0xf1")]));for(let e=0;e<t[yr("0x127")];e++)t[e].isAdded&&(i[e][yr("0xf1")]=t[e][yr("0xf1")])}_makeModelFromViewString(e){const t=JSON.parse(e),i=this[yr("0xcd")].editing[yr("0x125")][yr("0xc")],n=new o.ViewDocumentFragment(i,t[yr("0x66")]((e=>this[yr("0x4c")](e))));return this[yr("0xcd")][yr("0xf5")].toModel(n)}[yr("0x4c")](e){const t=this[yr("0xcd")].editing.view[yr("0xc")];if(yr("0x16")==typeof e)return new o.ViewText(t,e);{const i=e[yr("0x5")][yr("0x66")]((e=>this._getViewObj(e)));return new(pr[e.type]||o.ViewElement)(t,e[yr("0xab")],e[yr("0x0")],i)}}[yr("0x5d")](e,t=null){const i=this[yr("0xb6")][yr("0xaa")](e),n=t?this[yr("0xb6")][yr("0xaa")](t):null,r=this[yr("0xfe")](i,n),o=r[r[yr("0x127")]-1],s=new Map,a={model:{},attributes:{},changes:[]},c=new Set,u=new Map;for(let e=r.length-1;e>=0;e--){const t=r[e];for(const e of Object[yr("0xc3")](t.diffData))if(t[yr("0xf7")][e].attachChange){const i=t.diffData[e].attachChange;i[yr("0x5b")]?(c[yr("0x79")](e),u[yr("0x123")](e)&&u[yr("0x10d")](e)[yr("0x50")]==i[yr("0x50")]?u[yr("0xb1")](e):u.set(e,i)):u[yr("0x123")](e)?(c.delete(e),u[yr("0xb1")](e)):(c.add(e),u[yr("0x11e")](e,i))}else c[yr("0x79")](e)}for(const e of c){const t=u[yr("0x123")](e)&&!u[yr("0x10d")](e)[yr("0x5b")];let i=t?r.length-1:0;const n=t?-1:1;for(;r[i];){const o=r[i];if(o[yr("0xf7")][e]){const i=t?o[yr("0xf7")][e][yr("0x17")]:o[yr("0xf7")][e][yr("0x124")];a.attributes[e]=i?yi(i):{};break}i+=n}}for(const e of r){e[yr("0x9e")]={};for(const t of e[yr("0x20")])s[yr("0x11e")](t.id,t);for(const t of c){const i=e[yr("0xf7")][t]?e[yr("0xf7")][t][yr("0x82")]:"[]",n=e[yr("0xf7")][t]?e[yr("0xf7")][t][yr("0xd7")]:"[]";e[yr("0x9e")][t]={insertions:this._makeModelFromViewString(i),deletions:this[yr("0x10c")](n)}}}for(const e of c){let t=null,n=0;const c=new Map(Array[yr("0xa6")](i[yr("0x9e")][e][yr("0x82")][yr("0xb9")])[yr("0xda")]((([e])=>!e[yr("0x1b")](yr("0x7d")))));let d=0;for(const o of r){const r=this[yr("0x78")](o[yr("0x9e")][e].insertions);o==i?(t=r,n=t[yr("0x127")],t[yr("0x1d")]((e=>{e.id=d++})),this[yr("0x6e")](t)):this[yr("0xe5")](t,r);const s=t[yr("0xda")]((e=>!e[yr("0xf1")])).map((e=>e.id));let a=0;const u=this[yr("0x78")](o[yr("0x9e")][e].deletions);u[yr("0x1d")]((e=>{e[yr("0x87")]?e.id=n++:e.id=s[a++]})),this[yr("0x6e")](u),this._setDistance(t,yr("0xf1")),this._setDistance(u,yr("0x87")),o==i&&this[yr("0xa2")](t,c),t=this[yr("0x92")](t,u),this[yr("0xfb")](t),this._setDistance(t,"isRemoved")}t=t.filter((e=>!(e[yr("0xf1")]&&e[yr("0x87")])));const l=new Map(o.model[e][yr("0xd7")][yr("0xb9")]),x=new Set(c[yr("0xc3")]());for(const e of l.keys())x[yr("0xb1")](e);this._markSuggestions(t,x),this[yr("0xc1")](t),t=this[yr("0xe6")](t),t=this._markMismatchedRemovedTags(t),t=this[yr("0x41")](t);const{root:h,changes:f}=this._makeModelFromTape(t,s,e);a[yr("0x9e")][e]=h;const v=u.get(e);if(v){const t=s[yr("0x10d")](v[yr("0x50")]),i=new cr({author:t,type:v[yr("0x5b")]?"add":yr("0xc2"),data:{isOnRoot:!0},createdAt:new Date,rootName:e});f[yr("0xae")](i),a[yr("0x0")][e][yr("0x13")]=i.id}a[yr("0x89")]=a.changes[yr("0x31")](f)}return a}[yr("0xa2")](e,t){for(let i=0;i<e.length;i++)for(const[n,r]of t)r[yr("0xc0")][yr("0x12")](e[i][yr("0xba")])&&e[i].markersStart.push(n),r.end[yr("0x12")](e[i][yr("0x11c")])&&e[i].markersEnd[yr("0x88")](n)}[yr("0x92")](e,t){let i=[],n=0,r=0;for(;n<e[yr("0x127")]||r<t[yr("0x127")];){const o=e[n]||{},s=t[r]||{};if(o.id==s.id)n++,r++,i[yr("0x88")](o);else if(s.isRemoved&&o[yr("0xf1")]){const{commonTape:o,iEnd:s,jEnd:a}=this[yr("0x10f")](e,n,t,r);i=i[yr("0x31")](o),n=s,r=a}else s[yr("0x87")]?(r++,i[yr("0x88")](s)):(n++,i[yr("0x88")](o))}return i}[yr("0xd0")](e,t){const i=[];for(let o=0;o<e[yr("0x127")];o++){for(let r=0;r<e[o][yr("0x15")][yr("0x127")];r++){const s=e[o][yr("0x15")][r];if(!t[yr("0x123")](s))continue;const{group:a,type:c,authorId:u}=n(s);yr("0x7c")!=a||yr("0xaf")!=c&&yr("0x3d")!=c||(i.unshift({type:c,name:s,userId:u}),e[o][yr("0x15")].splice(r,1),r--)}r(e[o]);for(let r=0;r<e[o].markersEnd.length;r++){const s=e[o][yr("0x68")][r];if(!t[yr("0x123")](s))continue;const{group:a,type:c}=n(s);if(yr("0x7c")!=a||yr("0xaf")!=c&&yr("0x3d")!=c)continue;e[o].markersEnd[yr("0xdf")](r,1),r--;const u=i.findIndex((e=>e.name==s));u>-1&&i.splice(u,1)}}function n(e){const t=e.split(":");return{group:t[0],type:t[1],subType:t[yr("0x127")]>=5?t[2]:null,id:t.length<5?t[2]:t[3],authorId:t[yr("0x127")]<5?t[3]:t[4],markerCount:6==t[yr("0x127")]?t[5]:null}}function r(e){for(let t=0;t<i.length;t++){if(e[yr("0xf1")]&&"insertion"==i[t][yr("0x2")])return e[yr("0xd9")]=i[t],void delete e[yr("0xf1")];if(!e.isAdded&&!e.isRemoved&&yr("0x3d")==i[t].type)return void(e[yr("0xac")]=i[t])}}}[yr("0x5c")](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("0x11e")](o.id,i);for(let i=0;i<e[yr("0x127")];i++){if(yr("0x87")==t&&e[i][yr("0xf1")]||yr("0xf1")==t&&e[i].isRemoved)continue;if(yr("0x49")==e[i][yr("0x2")]){e[i][yr("0x6d")]=0;continue}const n=r[yr("0x10d")](e[i][yr("0xa4")]),o=r[yr("0x10d")](e[i].id);e[i][yr("0x6d")]=n-o}}[yr("0xfe")](e,t,i=!1){const n=[];let r=this[yr("0xb6")][yr("0x59")](e),o=this[yr("0xb6")][yr("0x59")](t);for(-1==o&&(o=this[yr("0xb6")][yr("0x67")].length,i=!1);r<o;)n[yr("0x88")](this[yr("0xb6")].getRevision(r)),r++;return i&&n[yr("0x88")](this[yr("0xb6")][yr("0xaa")](r)),n}_threeWayMerge(e,t,i,n){const r=this[yr("0xcd")][yr("0x9e")][yr("0x118")];let o=t;for(;e[o]&&e[o][yr("0xf1")];)o++;let s=n;for(;i[s]&&i[s][yr("0x87")];)s++;c(e,t,o),c(i,n,s);const a=i[yr("0xf3")](n,s)[yr("0x31")](e[yr("0xf3")](t,o));return a[yr("0xec")](((e,t)=>e[yr("0xe4")]!=t[yr("0xe4")]?e[yr("0xe4")]-t[yr("0xe4")]:e[yr("0xcf")]!=t[yr("0xcf")]?e[yr("0xcf")]-t[yr("0xcf")]:e.distance!=t[yr("0x6d")]?t.distance-e.distance:!!e[yr("0xf1")]!=!!t.isAdded?-1==e[yr("0xe4")]||0==e[yr("0xe4")]?e[yr("0xf1")]?-1:1:e[yr("0xf1")]?1:-1:e.index-t[yr("0x72")])),{commonTape:a,iEnd:o,jEnd:s};function c(e,t,i){let n=-1,o=Number[yr("0xbe")],s=!0;for(let a=t;a<i;a++)if(r[yr("0xc4")](e[a][yr("0x1")])||(s=!1),e[a][yr("0x1")][yr("0x7e")]<t&&(n=a),e[a][yr("0x1")][yr("0x112")]>=i){o=a;break}s&&(n=i-1);for(let r=t;r<i;r++)e[r][yr("0xe4")]=r<=n?-1:r<o?0:1,e[r][yr("0x72")]=r;let a=0;for(let i=t;i<=n;i++)0==e[i].distance?e[i][yr("0xcf")]=a:(a++,e[i][yr("0xcf")]=a,a++);for(let n=t;n<i;n++)0==e[n].side&&(e[n].level=a);a=0;for(let t=i-1;t>=o;t--)0==e[t][yr("0x6d")]?e[t][yr("0xcf")]=a:(a--,e[t][yr("0xcf")]=a,a--)}}[yr("0xc1")](e){const t=new Map,i=this[yr("0xcd")][yr("0x9e")].schema;for(let n=1;n<e[yr("0x127")];n++){let r,o,s;const a=e[n],c=e[n-1];if(yr("0x49")==a[yr("0x2")])continue;if(a[yr("0x2")]!=c[yr("0x2")])continue;if(!i[yr("0x101")](c[yr("0x1")])||i[yr("0x80")](c[yr("0x1")]))continue;if(!i[yr("0x101")](a.item)||i[yr("0x80")](a[yr("0x1")]))continue;if((e[n][yr("0xf1")]||e[n][yr("0xd9")])&&e[n-1].isRemoved)r=e[n],o=e[n-1],s=n-1;else{if(!e[n].isRemoved||!e[n-1].isAdded&&!e[n-1].isAddSuggestion)continue;r=e[n-1],o=e[n],s=n}const u=r[yr("0xcf")]==o[yr("0xcf")],d=Math.abs(r[yr("0xcf")])<Math[yr("0x65")](o[yr("0xcf")])&&0==o[yr("0x6d")];(u||d)&&(t[yr("0x11e")](o.id,r.id),e[yr("0xdf")](s,1),n--,r.isAdded=!1)}for(let i=0;i<e[yr("0x127")];i++)t[yr("0x123")](e[i][yr("0xa4")])&&(e[i].pairId=t.get(e[i][yr("0xa4")]))}[yr("0xe6")](e){const t=new Set(e[yr("0x66")]((e=>e.id)));for(let i=0;i<e[yr("0x127")];i++)t.has(e[i][yr("0xa4")])||0==e[i][yr("0x6d")]||(e[i].isIncorrect=!0);return e[yr("0xda")]((e=>!e.isIncorrect))}_markMismatchedRemovedTags(e){const t=new Set;for(let i=0;i<e.length;i++){if(t[yr("0x123")](e[i].id)&&e[i][yr("0x87")]&&(e[i][yr("0x69")]=!0),e[i].isIncorrect)continue;if(0==e[i][yr("0x6d")])continue;if("elementStart"!=e[i].type)continue;if(null==e[i][yr("0xa4")])continue;let n=i+1,r=0;for(;e[n].id!=e[i][yr("0xa4")];)yr("0xad")==e[n].type?r++:yr("0xb5")==e[n].type&&r--,n++;if(0!=r)if(e[i][yr("0x87")])e[i][yr("0x69")]=!0;else for(;n!=i;)e[n].isRemoved&&0!=e[n][yr("0x6d")]&&(e[n][yr("0x69")]=!0,t.add(e[n].pairId)),n--}return e.filter((e=>!e[yr("0x69")]))}[yr("0x41")](e){const t=this[yr("0xcd")][yr("0x9e")].schema;for(let i=0;i<e[yr("0x127")];i++){if(!(e[i][yr("0xf1")]||e[i].isAddSuggestion||e[i].isRemoved||e[i][yr("0xac")]))continue;if(0==e[i][yr("0x6d")])continue;const n=e[i][yr("0x1")];t[yr("0x101")](n)||t[yr("0x80")](n)||(e[i][yr("0xf1")]&&delete e[i][yr("0xf1")],e[i][yr("0xd9")]&&delete e[i].isAddSuggestion,e[i][yr("0xac")]&&delete e[i][yr("0xac")],e[i][yr("0x87")]&&(e[i][yr("0x69")]=!0))}return e[yr("0xda")]((e=>!e.isIncorrect))}[yr("0x8")](e,t,i){const n=new o.DocumentFragment,r=[],s=new Map,a=this[yr("0xcd")][yr("0x9e")],c=a[yr("0x118")],u=[n],d={},l={isAdded:[],isRemoved:[],isAddSuggestion:[],isRemoveSuggestion:[]};let x=null;const h=[0];for(let t=0;t<e.length;t++){let i,r;if(yr("0xad")===e[t][yr("0x2")]){i=a[yr("0x99")](n,h);const s=new o.Element(e[t][yr("0x1")][yr("0xab")],e[t][yr("0x1")][yr("0x3b")]());u[0][yr("0x61")](s),h[yr("0x88")](0),u[yr("0xae")](s),r=a[yr("0x99")](n,h),x=null}else if(yr("0xb5")===e[t][yr("0x2")])u[yr("0x35")](),i=a.createPositionFromPath(n,h),h.pop(),h[h.length-1]++,r=a[yr("0x99")](n,h),x=null;else{if(i=a[yr("0x99")](n,h),x&&m(x,e[t][yr("0x1")]))x[yr("0x40")]+=e[t][yr("0x1")][yr("0xf5")];else{const i=new o.Text(e[t].item[yr("0xf5")],e[t][yr("0x1")].getAttributes());u[0][yr("0x61")](i),x=i}h[h.length-1]+=e[t].item[yr("0xed")],r=a.createPositionFromPath(n,h)}for(const n of e[t][yr("0x15")])s.set(n,{start:i,end:null});f(yr("0xac"),t,i,r),f(yr("0xd9"),t,i,r),f(yr("0x87"),t,i,r),f("isAdded",t,i,r);for(const i of e[t][yr("0x68")])s[yr("0x10d")](i)[yr("0xb4")]=r}for(const[e,t]of s){const i=this[yr("0xcd")].model[yr("0x85")](t[yr("0xc0")],t[yr("0xb4")]);n[yr("0xb9")][yr("0x11e")](e,i)}return r[yr("0xec")](((e,t)=>{const i=n[yr("0xb9")][yr("0x10d")](yr("0x7d")+e.id),r=n[yr("0xb9")][yr("0x10d")](yr("0x7d")+t.id);return i.start.isBefore(r[yr("0xc0")])?-1:i[yr("0xc0")][yr("0xc9")](r[yr("0xc0")])?1:i[yr("0xb4")][yr("0xf")](r[yr("0xb4")])?-1:i[yr("0xb4")][yr("0xc9")](r[yr("0xb4")])?1:yr("0x79")===e[yr("0x2")]?-1:1})),{root:n,changes:r};function f(t,i,n,r){const o=!!e[i][t],s=o?e[i][t][yr("0x50")]:null,a=i===e.length-1,u=l[t][0],x=c.isObject(e[i][yr("0x1")]);!d[t]&&o?d[t]={start:n,tapeItem:e[i],userId:s,type:t}:d[t]&&!o?(d[t].end=n,v(d[t]),d[t]=null):d[t]&&o&&d[t][yr("0x50")]!==s&&(d[t][yr("0xb4")]=n,u&&u[yr("0x50")]===d[t][yr("0x50")]||v(d[t]),d[t]={start:n,tapeItem:e[i],userId:s,type:t}),d[t]&&x&&(yr("0xad")!==e[i][yr("0x2")]||u&&u[yr("0x50")]===s||l[t][yr("0xae")]({userId:s,object:e[i][yr("0x1")],change:d[t]}),yr("0xb5")===e[i][yr("0x2")]&&u&&u[yr("0xff")]===e[i][yr("0x1")]&&(l[t][yr("0x35")](),d[t]=u[yr("0x77")])),d[t]&&a&&(d[t][yr("0xb4")]=r,v(d[t]),d[t]=null)}function v({start:e,end:o,tapeItem:s,userId:c,type:u}){const d=s[yr("0x1")],l=a.schema[yr("0x101")](d)&&!a.schema[yr("0x80")](d),x=e.nodeAfter==o.parent&&o[yr("0x8d")];if(l&&x)return;const h=a.createRange(e,o),f=t[yr("0x10d")](c),v=new cr({author:f,type:"isAdded"==u||yr("0xd9")==u?yr("0x79"):"remove",data:{isSuggestion:"isAddSuggestion"==u||"isRemoveSuggestion"==u},createdAt:new Date,rootName:i});r[yr("0x88")](v),n.markers[yr("0x11e")](yr("0x7d")+v.id,h)}function m(e,t){const i=e[yr("0x3b")](),n=t[yr("0x3b")]();for(const e of i){if(e[1]!==t.getAttribute(e[0]))return!1;n[yr("0xfa")]()}return n[yr("0xfa")]().done}}[yr("0xee")](){this.editor[yr("0xcc")][yr("0x105")](yr("0x6c"))[yr("0x8f")]({view:"revision"}),this[yr("0xcd")][yr("0xcc")][yr("0x105")](yr("0xdc"))[yr("0x38")]({model:yr("0x60"),view:e=>{const t=e[yr("0x18")][yr("0x109")](":")[1],i=this[yr("0x119")](t);if(!i)return null;const n=yr("0x79")==i[yr("0x2")]?yr("0xaf"):yr("0x3d"),r=["ck-suggestion-marker","ck-suggestion-marker-"+n];return i[yr("0xf5")][yr("0x2f")]&&r[yr("0x88")](yr("0xfd")+n+yr("0xa")),this[yr("0x53")]==i&&r[yr("0x88")](yr("0x33")),{classes:r,attributes:{"data-change-id":t}}}}),this.editor[yr("0xcc")][yr("0x105")](yr("0x6c"))[yr("0x79")]((e=>{e.on("element:pre",((e,t,i)=>{const n=t[yr("0xf2")][yr("0x4f")](0);if(!n||!n.is(yr("0x32"),yr("0xd1")))return;if(!i[yr("0xd")][yr("0xd8")](n,{attributes:[yr("0xdd"),yr("0x4a")]}))return;const r=t[yr("0x75")].start[yr("0x6f")];i[yr("0xb8")][yr("0x107")](yr("0xdd"),n.getAttribute("vid_start"),r),i.writer[yr("0x107")]("vid_end",n[yr("0x11f")](yr("0x4a")),r)}),{priority:yr("0xd6")})})),this[yr("0xcd")].conversion.for("upcast")[yr("0x79")]((e=>{e.on("element",((e,t,i)=>{if(!i[yr("0xd")][yr("0xd8")](t[yr("0xf2")],{attributes:[yr("0xdd"),yr("0x4a")]}))return;if(t[yr("0x75")][yr("0x93")])return;const n=t.modelRange.start.nodeAfter;n[yr("0x104")](yr("0xdd"))||n.hasAttribute(yr("0x91"))||(i[yr("0xb8")][yr("0x107")](yr("0xdd"),t[yr("0xf2")].getAttribute("vid_start"),n),i[yr("0xb8")][yr("0x107")](yr("0x4a"),t[yr("0xf2")][yr("0x11f")](yr("0x4a")),n))}),{priority:yr("0xd6")})})),this[yr("0xcd")].conversion[yr("0x105")](yr("0x6c"))[yr("0x48")]({view:{name:yr("0x8a"),attributes:{vid:!0}},model:{key:"vid",value:e=>e[yr("0x11f")](yr("0x91"))}}),this.editor.model[yr("0x118")].on(yr("0xe7"),((e,[,t])=>{[yr("0xdd"),"vid_end","vid"].includes(t)&&(e[yr("0xb3")]=!0,e[yr("0x54")]())}),{priority:yr("0x1a")}),this.editor[yr("0xcc")].for(yr("0x62"))[yr("0x79")]((e=>{e.on("attribute:vid",((e,t,i)=>{if(" "!=t.item[yr("0xf5")]||t[yr("0x1")][yr("0x2d")][yr("0x9c")]>1)return;if(!i[yr("0xd")][yr("0xd8")](t[yr("0x1")],e[yr("0xab")]))return;const n=i[yr("0xb8")],r=i[yr("0x63")][yr("0xa3")](t[yr("0x94")]);n.wrap(r,n[yr("0xe1")](yr("0x8a")))}))})),this[yr("0xcd")].conversion[yr("0x105")]("dataDowncast")[yr("0x47")]({model:"revision"}),this[yr("0xcd")][yr("0x14")][yr("0xd3")].on("addMarker:revision",function(e){const t=e.plugins[yr("0x10d")]("RevisionViewer");return(i,n,r)=>{const o=n[yr("0x18")][yr("0x109")](":")[1],s=t._getChangeFromId(o);if(!s)return null;const a=yr("0x79")==s.type?"split":yr("0x3a");if(!r.consumable.test(n[yr("0xbf")],i[yr("0xab")]))return;const c=n[yr("0xbf")][yr("0x39")](),u=n[yr("0xbf")][yr("0xc0")],d=e[yr("0x9e")][yr("0x118")];let l=null,x=null,h=!1,f=!1;for(const e of c){const t=e.item;h=h||d[yr("0x122")](t);const i=r[yr("0x63")][yr("0x115")](t);if(i&&i.getCustomProperty(yr("0x30")))return;yr("0xb5")==e[yr("0x2")]&&d[yr("0x101")](t)&&!d[yr("0x80")](t)&&(t[yr("0x1e")]||u[yr("0x6a")]?l&&l[yr("0x2d")]==t||(l=t,v(e[yr("0xba")]),f=!0):x=x||e[yr("0xba")])}function v(e){const i=r.writer[yr("0x11d")](yr("0x8a"),{class:yr("0xfd")+a}),o=r[yr("0x63")][yr("0x98")](e);s[yr("0xf5")][yr("0x2f")]&&r[yr("0xb8")].addClass(yr("0xfd")+a+yr("0xa"),i),t.activeChange==s&&r[yr("0xb8")].addClass(yr("0x33"),i),r[yr("0xb8")][yr("0x52")](o,i),r[yr("0x63")][yr("0x28")](i,n.markerName)}h||f||!x||v(x)}}(this.editor),{priority:yr("0x83")}),this[yr("0xcd")][yr("0x14")][yr("0xd3")].on(yr("0x117"),((e,t,i)=>{const n=i.mapper[yr("0x2c")](t[yr("0x18")]);if(n)for(const e of n)(e[yr("0xa7")]("ck-suggestion-marker-split")||e[yr("0xa7")](yr("0x9b")))&&(i[yr("0x63")].unbindElementFromMarkerName(e,t[yr("0x18")]),i[yr("0xb8")][yr("0xc2")](e))}),{priority:yr("0x83")}),this[yr("0xcd")][yr("0x14")][yr("0xd3")].on("addMarker:revision",((e,t,i)=>{const n=t[yr("0x18")][yr("0x109")](":")[1],r=this[yr("0x119")](n);if(!r)return null;const o="add"==r[yr("0x2")]?yr("0x109"):yr("0x3a");if(i.consumable[yr("0xbb")](t[yr("0xbf")],e.name))for(const e of t[yr("0xbf")][yr("0x71")]()){if(!e.is("element",yr("0xdb")))continue;const n=i[yr("0xb8")].createUIElement(yr("0x8a"),{class:yr("0xfd")+o}),s=i[yr("0x63")].toViewPosition(this[yr("0xcd")][yr("0x9e")][yr("0x5e")](e));r[yr("0xf5")][yr("0x2f")]&&i.writer[yr("0x81")](yr("0xfd")+o+"-new",n),this[yr("0x53")]==r&&i[yr("0xb8")][yr("0x81")]("ck-suggestion-marker--active",n),i[yr("0xb8")][yr("0x52")](s,n),i[yr("0x63")][yr("0x28")](n,t.markerName)}}),{priority:"high"}),this[yr("0xcd")].model.document.on(yr("0x77"),(()=>{this[yr("0xcd")][yr("0x14")][yr("0x125")][yr("0x77")]((e=>{for(const t of this[yr("0xcd")][yr("0x9e")][yr("0xc")][yr("0x120")]()){const i=this.editor[yr("0x9e")].document[yr("0xf0")](t),n=this[yr("0xcd")][yr("0x14")][yr("0x125")].document[yr("0xf0")](t);if(n){const t=i[yr("0x11f")](yr("0x13"));if(e[yr("0xe")](yr("0x19"),n),e[yr("0x29")](yr("0x11b"),n),e[yr("0x29")](yr("0xc6"),n),e[yr("0x29")](yr("0x5a"),n),t){const i=this[yr("0x119")](t);if(!i)return null;e[yr("0x107")](yr("0x19"),t,n),e.addClass(yr("0x9")+i[yr("0x2")],n),this.activeChange==i&&e[yr("0x81")](yr("0x5a"),n)}}}}))})),this[yr("0xcd")][yr("0xcc")][yr("0x105")](yr("0x6c"))[yr("0x8f")]({view:"comment",model:e=>yr("0x86")+e,converterPriority:"highest"}),this[yr("0xcd")][yr("0xcc")][yr("0x105")](yr("0x6c"))[yr("0x8f")]({view:yr("0x96"),model:e=>yr("0xca")+e,converterPriority:yr("0x1a")}),this[yr("0xcd")][yr("0xcc")][yr("0x105")](yr("0x62")).markerToData({model:yr("0x7c"),view:e=>({name:yr("0x70")+e,group:yr("0x7c")}),converterPriority:yr("0x1a")}),this[yr("0xcd")].conversion[yr("0x105")](yr("0xdc"))[yr("0x38")]({model:"revision-suggestion",view:e=>{const t=e[yr("0x18")][yr("0x109")](":")[1];return"insertion"!=t&&yr("0x3d")!=t?null:{classes:["ck-suggestion-preview-marker",yr("0x5f")+t]}}}),this[yr("0xcd")].editing[yr("0xd3")].on("addMarker:revision-suggestion:deletion",_r(this.editor,"merge"),{priority:"high"}),this.editor[yr("0x14")][yr("0xd3")].on(yr("0x84"),_r(this.editor,yr("0x109")),{priority:yr("0x83")}),this[yr("0xcd")].editing[yr("0xd3")].on(yr("0xa9"),((e,t,i)=>{const n=i[yr("0x63")][yr("0x2c")](t.markerName);if(n)for(const e of n)e.is(yr("0xbd"))&&(i[yr("0x63")][yr("0x3e")](e,t[yr("0x18")]),i[yr("0xb8")][yr("0xc2")](e))}),{priority:"high"})}[yr("0x119")](e){return this[yr("0x7b")][yr("0x10d")](e)}_getViewForChange(e){return this._changeView&&this[yr("0x7f")][yr("0x9a")](),this[yr("0x7f")]=new nr(this[yr("0xcd")][yr("0xf6")],e),this._changeView}[yr("0xd4")](){this[yr("0xcd")][yr("0x9e")][yr("0xc")].selection.observeMarkers("revision"),this.on(yr("0xe3"),((e,t,i,n)=>{n&&this[yr("0xce")][yr("0xc2")](n),i&&(this._balloon[yr("0x79")]({view:i,stackId:"revisionHistoryLabel",position:{target:()=>{const e=this[yr("0xcd")][yr("0x14")],t=this[yr("0x119")](i[yr("0x3c")]);let n;if(t[yr("0xf5")].isOnRoot){const i=e[yr("0x125")].getDomRoot(t[yr("0x64")]);n=Array.from(i[yr("0x24")]())}else{const t=this[yr("0xcd")][yr("0x9e")][yr("0xb9")].get("revision:"+i.changeId);n=Array[yr("0xa6")](e.mapper[yr("0x2c")](t[yr("0xab")]))[yr("0x66")]((t=>e[yr("0x125")].domConverter[yr("0x22")](t)))[yr("0x66")]((e=>Array[yr("0xa6")](e[yr("0x24")]()))).flat()}return this[yr("0xf8")]&&n[yr("0x10e")]((e=>e[yr("0x90")]-3<=this[yr("0xf8")].y&&e[yr("0x73")]+3>=this[yr("0xf8")].y&&e[yr("0x2e")]-3<=this[yr("0xf8")].x&&e[yr("0x7")]+3>=this[yr("0xf8")].x))||n[0]}}}),this[yr("0xce")][yr("0x34")]("revisionHistoryLabel"))})),this.on(yr("0x4d"),((e,t,i,n)=>{this.activeView=i?this[yr("0xf9")](i):null,this[yr("0xcd")].model.change((()=>{const e=this[yr("0xcd")].editing;n&&(n[yr("0xf5")].isOnRoot?e[yr("0x125")][yr("0x77")]((t=>{t.removeClass("ck-revision-history-root--active",e[yr("0x125")].document.getRoot(n.rootName))})):e[yr("0x126")]("revision:"+n.id)),i&&(i.data.isOnRoot?e[yr("0x125")].change((t=>{t[yr("0x81")]("ck-revision-history-root--active",e[yr("0x125")][yr("0xc")][yr("0xf0")](i[yr("0x64")]))})):e.reconvertMarker(yr("0x7d")+i.id))}))})),this[yr("0x1c")](this[yr("0xcd")][yr("0x14")].view[yr("0xc")],yr("0x45"),((e,t)=>{if(this[yr("0x53")])return;const i=this._findChangeIdFromDomTarget(t[yr("0xa1")]),n=this[yr("0x7b")][yr("0x10d")](i);n?(this[yr("0xf8")]={x:t[yr("0xd5")].x,y:t.domEvent.y},this[yr("0xe0")]=this[yr("0xf9")](n)):(this[yr("0xf8")]=null,this[yr("0xe0")]=null)})),this.listenTo(this.editor[yr("0x14")][yr("0x125")][yr("0xc")],yr("0x4"),((e,t)=>{const i=this[yr("0x44")](t[yr("0xa1")]),n=this[yr("0x7b")][yr("0x10d")](i);n?(this[yr("0xf8")]={x:t[yr("0xd5")].x,y:t[yr("0xd5")].y},n===this[yr("0x53")]?this[yr("0xce")][yr("0x42")]():this[yr("0x53")]=n):(this[yr("0xf8")]=null,this[yr("0x53")]=null)}))}[yr("0x44")](e){do{const t=e.getAttribute(yr("0x19"));if(t)return t;e=e[yr("0x2d")]}while(e);return null}[yr("0x55")](){this.editor[yr("0x9e")].change((e=>{for(const t of this[yr("0xcd")].model[yr("0xb9")])e[yr("0xef")](t)}))}}function _r(e,t){return(i,n,r)=>{if(!r[yr("0xd")].test(n[yr("0xbf")],i[yr("0xab")]))return;const o=n[yr("0xbf")][yr("0x39")](),s=n[yr("0xbf")][yr("0xc0")],a=e[yr("0x9e")][yr("0x118")];let c=null,u=null,d=!1,l=!1;for(const e of o){const t=e[yr("0x1")];d=d||a[yr("0x122")](t);const i=r[yr("0x63")].toViewElement(t);if(i&&i[yr("0xe8")]("addHighlight"))return;yr("0xb5")==e[yr("0x2")]&&a.isBlock(t)&&!a[yr("0x80")](t)&&(t[yr("0x1e")]||s[yr("0x6a")]?c&&c[yr("0x2d")]==t||(c=t,x(e[yr("0xba")]),l=!0):u=u||e[yr("0xba")])}function x(e){const i=r[yr("0x63")][yr("0x98")](e),o=r[yr("0xb8")].createUIElement(yr("0x8a"),{class:"ck-suggestion-preview-marker-"+t});r[yr("0xb8")][yr("0x52")](i,o),r[yr("0x63")].bindElementToMarker(o,n[yr("0x18")])}d||l||!u||x(u)}}class wr extends e.Command{constructor(e){super(e);const t=e[yr("0x8e")].get(kr);this[yr("0x7a")]=!1,this.listenTo(t,"change:isReady",(()=>this[yr("0x10b")]())),this[yr("0x1c")](t,yr("0x10"),(()=>this[yr("0x10b")]()))}[yr("0x26")](){const e=this[yr("0xcd")],t=e[yr("0x8e")][yr("0x10d")](kr),i=t[yr("0xde")]?t[yr("0x25")][yr("0xa5")]:null;e[yr("0x9f")][yr("0x10d")](yr("0xbc"))[yr("0x113")](i)}[yr("0x10b")](){const{isReady:e,isEnabled:t}=this.editor.plugins.get(kr);this[yr("0xa8")]=e&&t}}class Sr extends e.Command{constructor(e,{direction:t}){super(e);const i=e[yr("0x8e")][yr("0x10d")](kr);this.affectsData=!1,this[yr("0x110")]=yr("0xe9")===t?1:-1,this[yr("0x1c")](i,yr("0xd2"),(()=>this[yr("0x10b")]())),this[yr("0x1c")](i,yr("0x10"),(()=>this[yr("0x10b")]()))}execute(){const e=this[yr("0xcd")],i=e.plugins[yr("0x10d")](kr),{isNavigationMode:n,currentChangeNumber:o}=i;let s;if(i.activeChange=n?i.diff[yr("0x89")][yr("0x10d")](o+this[yr("0x110")]):i[yr("0x25")][yr("0x89")][yr("0x95")],i[yr("0x53")][yr("0xf5")][yr("0x56")])s=e[yr("0x14")][yr("0x125")][yr("0xa0")](i[yr("0x53")][yr("0x64")]);else{const t=e[yr("0x9e")][yr("0xb9")][yr("0x10d")](yr("0x7d")+i[yr("0x53")].id);s=(0,r.getMarkerDomElement)(e[yr("0x14")],t)}(0,t.scrollViewportToShowTarget)({target:s,viewportOffset:40})}[yr("0x10b")](){const{isNavigationMode:e,currentChangeNumber:t,numberOfChanges:i,isReady:n,isEnabled:r}=this[yr("0xcd")].plugins[yr("0x10d")](kr);this.isEnabled=!!(r&&n&&i)&&(!e||(1===this[yr("0x110")]?t<i-1:t>0))}}var Or=i(164),Rr={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fn()(Or.Z,Rr);Or.Z.locals;const Tr=["backward","No changes","execute","fire","Show next change","set","EDIT_X_OF_Y_REVISIONS","numberOfChanges","_statusText","forward","isEnabled","ck-revision-history-ui__changes-navigation__label","ck-revision-history-ui__changes-navigation__navigation","ck-hidden","isBackwardNavigationEnabled","isNavigationMode","bind","isReady","X_OF_Y_CHANGES","div","Loading...","bindTemplate","currentChangeNumber","Show previous change","ck-revision-history-ui__changes-navigation","ck-revision-history-ui__changes-navigation__wrapper","setTemplate","ck-revision-history-ui","_isStatusLabelVisible","Total","isForwardNavigationEnabled"];var Ir,Nr;Ir=Tr,Nr=179,function(e){for(;--e;)Ir.push(Ir.shift())}(++Nr);const Vr=function(e,t){return Tr[e-=0]};class Mr extends jn.View{constructor(e){super(e);const t=this[Vr("0x1c")],i=new jn.ButtonView(e),n=new jn.ButtonView(e);this[Vr("0xc")](Vr("0x16"),!1),this.set(Vr("0x18"),!1),this[Vr("0xc")]("currentChangeNumber",0),this[Vr("0xc")](Vr("0xe"),0),this.set(Vr("0x6"),!1),this[Vr("0xc")](Vr("0x15"),!1),this.bind(Vr("0x4")).to(this,Vr("0x18"),this,Vr("0xe"),((e,t)=>e&&t>0)),this.bind(Vr("0xf")).to(this,Vr("0x18"),this,Vr("0x1d"),this,"numberOfChanges",this,Vr("0x16"),((t,i,n,r)=>{if(!t)return en(e,Vr("0x1b"));if(!n)return en(e,Vr("0x8"));const o=en(e,"NUMBER_OF_CHANGES",n);return r?en(e,Vr("0x19"),[i+1,n]):o})),i[Vr("0xc")]({label:en(e,Vr("0x1e")),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[Vr("0xc")]({label:en(e,Vr("0xb")),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[Vr("0x17")](Vr("0x11")).to(this,Vr("0x15")),n[Vr("0x17")](Vr("0x11")).to(this,Vr("0x6")),i.on(Vr("0x9"),(()=>this[Vr("0xa")](Vr("0x9"),Vr("0x7")))),n.on(Vr("0x9"),(()=>this.fire(Vr("0x9"),Vr("0x10")))),this[Vr("0x2")]({tag:Vr("0x1a"),attributes:{class:["ck",Vr("0x3"),Vr("0x0")]},children:[{tag:"span",attributes:{class:[Vr("0x1")]},children:[{tag:"span",attributes:{class:[Vr("0x12"),t.if(Vr("0x4"),Vr("0x14"),(e=>!e))]},children:[{text:t.to(Vr("0x16"),(t=>t?en(e,Vr("0xd"))+": ":en(e,Vr("0x5"))+": "))}]},{text:t.to("_statusText")}]},new jn.ToolbarSeparatorView,{tag:"div",attributes:{class:[Vr("0x13")]},children:[i,n]}]})}}var Ar=i(368),Er={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fn()(Ar.Z,Er);Ar.Z.locals;const Dr=["show","document","roots","change","editor","pluginName","removeClass","editing","ck-editor__editable__loading-overlay"];var jr,Cr;jr=Dr,Cr=174,function(e){for(;--e;)jr.push(jr.shift())}(++Cr);const Fr=function(e,t){return Dr[e-=0]},Lr=Fr("0x5");class Pr extends e.Plugin{static get[Fr("0x2")](){return"RevisionViewerLoadingOverlay"}[Fr("0x6")](){const e=this[Fr("0x1")][Fr("0x4")].view;e.change((t=>{for(const i of e[Fr("0x7")][Fr("0x8")])t.addClass(Lr,i)}))}hide(){const e=this[Fr("0x1")][Fr("0x4")].view;e[Fr("0x0")]((t=>{for(const i of e[Fr("0x7")].roots)t[Fr("0x3")](Lr,i)}))}}const zr=["isEnabled","closeRevisionViewerCallback","numberOfChanges","currentChangeNumber","execute","forward","listenTo","pluginName","config","restoreRevision","change:isReady","showPreviousChange","revisionHistory","plugins","isNavigationMode","show","add","ck-revision-history-ui__back-to-editing","bind","init","get","hide","componentFactory","requires","RevisionViewerUI","showNextChange","changesNavigation","Restore this revision","set","isForwardNavigationEnabled","isReady","exitToEditing","commands"];var Zr,Ur;Zr=zr,Ur=440,function(e){for(;--e;)Zr.push(Zr.shift())}(++Ur);const Hr=function(e,t){return zr[e-=0]};class qr extends e.Plugin{static get[Hr("0x1d")](){return Hr("0xd")}static get[Hr("0xc")](){return[kr,Pr]}[Hr("0x8")](){const e=this.editor,t=e[Hr("0x2")][Hr("0x9")](kr),i=e.plugins.get(Pr);e.ui.componentFactory[Hr("0x5")](Hr("0x14"),(t=>{const i=new jn.ButtonView(t);return i[Hr("0x11")]({label:en(t,"Back to editing"),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:Hr("0x6")}),this[Hr("0x1c")](i,Hr("0x1a"),(()=>{e[Hr("0x1e")][Hr("0x9")](Hr("0x1"))[Hr("0x17")]()})),i})),e.ui[Hr("0xb")][Hr("0x5")](Hr("0x1f"),(t=>{const i=new jn.ButtonView(t);return i[Hr("0x11")]({label:en(t,Hr("0x10")),withText:!0,tooltip:!0}),i.bind("isEnabled").to(e.commands[Hr("0x9")]("restoreRevision")),this[Hr("0x1c")](i,Hr("0x1a"),(()=>e[Hr("0x1a")]("restoreRevision"))),i})),e.ui[Hr("0xb")][Hr("0x5")](Hr("0xf"),(i=>{const n=new Mr(i),r=e[Hr("0x15")][Hr("0x9")](Hr("0x0")),o=e.commands[Hr("0x9")](Hr("0xe"));return n[Hr("0x7")]("isBackwardNavigationEnabled").to(r,Hr("0x16")),n[Hr("0x7")](Hr("0x12")).to(o,"isEnabled"),n[Hr("0x7")](Hr("0x13"),Hr("0x19"),Hr("0x18"),Hr("0x3")).to(t),this[Hr("0x1c")](n,"execute",((t,i)=>{e.execute(Hr("0x1b")===i?Hr("0xe"):Hr("0x0"))})),n})),i[Hr("0x4")](),t.on(Hr("0x20"),((e,t,n)=>{n?i[Hr("0xa")]():i[Hr("0x4")]()}))}}var Br=i(957),Wr={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fn()(Br.Z,Wr);Br.Z.locals;var Jr,Gr,Yr=["span","set"];Jr=Yr,Gr=379,function(e){for(;--e;)Jr.push(Jr.shift())}(++Gr);var $r=function(e,t){return Yr[e-=0]};class Kr extends jn.LabeledFieldView{constructor(e,t){super(e,t),this[$r("0x0")]({label:en(e,"Revision name")}),this.extendTemplate({tag:$r("0x1"),attributes:{class:["ck-revision-history-sidebar__revision-name"]}})}}var Xr=i(522),Qr={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fn()(Xr.Z,Qr);Xr.Z.locals;const eo=["Revision author","ck-revision-history-sidebar__revision-author_creator","Revision creator","ck-revision-history-sidebar__revision-author__name","name","set","span","0 0 11 10","ck-revision-history-sidebar__revision-author"];var to,io;to=eo,io=423,function(e){for(;--e;)to.push(to.shift())}(++io);const no=function(e,t){return eo[e-=0]};class ro extends jn.View{constructor(e,t,i){super(e);const n=new jn.IconView;n[no("0x5")]({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:no("0x7")});const r=["ck",no("0x8")];i&&r.push(no("0x1"));const o=[{tag:no("0x6"),attributes:{class:["ck",no("0x3")],title:en(e,no(i?"0x2":"0x0"))},children:[n,t[no("0x4")]]}];this.setTemplate({tag:"li",attributes:{class:r},children:o})}}var oo,so,ao=["toLocaleDateString","long","numeric"];oo=ao,so=390,function(e){for(;--e;)oo.push(oo.shift())}(++so);var co=function(e,t){return ao[e-=0]};var uo=i(834),lo={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fn()(uo.Z,lo);uo.Z.locals;const xo=["model","locale","find","class","function","bind","source","listView","Show more items","name","threeVerticalDots","items","isOpen","isActionsDropdownOpen","first","extendTemplate","action","change:isActionsDropdownOpen","_action","isEnabled","set","buttonView","panelPosition","isReady","map","ck-on","execute","button","Restore this revision","isVisible","children"];var ho,fo;ho=xo,fo=385,function(e){for(;--e;)ho.push(ho.shift())}(++fo);const vo=function(e,t){return xo[e-=0]};var mo=i(525),go={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fn()(mo.Z,go);mo.Z.locals;const bo=["_createdAtFormatted","authors","ck-revision-history-sidebar__revision_highlighted","length","isReady","ck-revision-history-sidebar__revision_selected","render","highlight","ck-revision-history-sidebar__revision","ck-revision-history-sidebar__revision-wrapper","ck-revision-history-sidebar__actions_dropdown_open","span","revisionActionsView","deselect","fire","from","map","isSelected","creator","unhighlight","ck-revision-history-sidebar__revision-wrapper_confirmation_visible","name","listenTo","isHighlighted","ck-disabled","ck-revision-history-sidebar__revision__date","value","div","set","closest","change","isEnabled","createdAt","isActionsDropdownOpen","unshift","revisionNameView","bind","_revision","fieldView","ck-revision-history-sidebar__revision-authors","select","bindTemplate","setName","extendTemplate","placeholder","element"];var yo,po;yo=bo,po=269,function(e){for(;--e;)yo.push(yo.shift())}(++po);const ko=function(e,t){return bo[e-=0]};class _o extends((0,r.ConfirmMixin)(jn.View)){constructor(i,n,r){super(i);const o=this[ko("0x2")],s=function(e,t){const i=Array[ko("0x16")](t[ko("0x8")]).filter((e=>e!=t.creator));return t[ko("0x19")]&&i[ko("0x29")](t.creator),i[ko("0x17")]((i=>new ro(e,i,i==t[ko("0x19")])))}(i,n);this.id=n.id,this[ko("0x2c")]=n,this.bind(ko("0x1c"),ko("0x27")).to(n),this[ko("0x2b")]("_createdAtFormatted").to(this,ko("0x27"),(e=>{return e?(t=i.uiLanguage,(n=e)[co("0x0")](t,{month:co("0x1"),day:co("0x2")})+", "+n.toLocaleTimeString(t,{hour:"numeric",minute:"numeric"})):void 0;var t,n})),this[ko("0x23")](ko("0x18"),!1),this[ko("0x23")]("isHighlighted",!1),this[ko("0x23")]("isActionsDropdownOpen",!1),this.set(ko("0xb"),!1),this[ko("0x23")](ko("0x26"),!1),this[ko("0x2a")]=new Kr(i,jn.createLabeledInputText),this[ko("0x2a")][ko("0x2d")][ko("0x4")]({attributes:{maxlength:"220"}}),this.revisionNameView[ko("0x2d")][ko("0x2b")](ko("0x21"),ko("0x5")).to(this,ko("0x1c"),ko("0x7")),this[ko("0x2a")].bind(ko("0x26")).to(this,ko("0x18"),this,"isEnabled",((e,t)=>e&&t)),this[ko("0x13")]=r&&r[ko("0xa")]?function(i,n){const r=i.bindTemplate,o=i[vo("0x13")],s=(0,jn.createDropdown)(o);s[vo("0x9")]="sw";const a=function(e,i){const n=function(e,t){const i=e[vo("0x13")],n={"Compare against selected":en(i,"Compare against selected"),"Name this revision":en(i,"Name this revision"),"Restore this revision":en(i,vo("0xf"))};return t[vo("0xb")]((e=>{const t=n[e[vo("0x1b")]];return t&&t!==e.name&&(e[vo("0x1b")]=t),e}))}(e,i),r=new t.Collection;for(const t of n){const i={type:vo("0xe"),model:new jn.Model({label:t[vo("0x1b")],class:t[vo("0x15")],withText:!0,_action:t.action})};i[vo("0x12")][vo("0x17")](vo("0x6")).to(e,"isActionsDropdownOpen",(i=>vo("0x16")!=typeof t[vo("0x6")]||!i||t[vo("0x6")](e))),r.add(i)}return r}(i,n);return i.bind("isActionsDropdownOpen").to(s,vo("0x1e")),s[vo("0x8")][vo("0x7")]({label:en(o,vo("0x1a")),tooltip:!0,tooltipPosition:"sw",icon:e.icons[vo("0x1c")]}),s[vo("0x2")]({attributes:{class:["ck-revision-history-sidebar__revision__actions",r.if(vo("0x0"),vo("0xc"))]},on:{click:r.to((e=>e.stopPropagation()))}}),s.on(vo("0xd"),(e=>{i[vo("0xa")]&&"function"==typeof e[vo("0x18")]._action&&e.source[vo("0x5")](i)})),(0,jn.addListToDropdown)(s,a),s.listenTo(i,vo("0x4"),((e,t,r)=>{if(r)for(const e of s[vo("0x19")][vo("0x1d")]){const t=e[vo("0x11")][vo("0x1")],r=n[vo("0x14")]((e=>e[vo("0x3")]===t[vo("0x5")]))[vo("0x10")];e[vo("0x10")]=void 0===r||r(i)}})),s}(this,r):"",this[ko("0x13")]&&this[ko("0x13")].bind(ko("0x26")).to(this),this.setTemplate({tag:ko("0x22"),attributes:{class:["ck","ck-reset",ko("0x10"),o.if("isConfirm",ko("0x1b"))]},children:[{tag:ko("0x22"),attributes:{class:["ck","ck-reset",ko("0xf"),o.if("isEnabled",ko("0x1f"),(e=>!e)),o.if("isSelected",ko("0xc")),o.if(ko("0x1e"),ko("0x9")),o.if(ko("0x28"),ko("0x11"))]},children:[this[ko("0x2a")],{tag:ko("0x12"),attributes:{class:["ck",ko("0x20")]},children:[{text:o.to(ko("0x7"))}]},{tag:ko("0x22"),attributes:{class:["ck","ck-revision-history-sidebar__revision__controls-wrapper"]},children:[{tag:"ul",attributes:{class:["ck",ko("0x0")]},children:s}]},this[ko("0x13")]],on:{click:o.to((e=>{e.srcElement[ko("0x24")](".ck-thread__remove-confirm")||this[ko("0xb")]&&this.isEnabled&&this[ko("0x15")](ko("0x1"),{id:this.id})}))}}]})}[ko("0xd")](){super[ko("0xd")]();const e=this[ko("0x2a")][ko("0x2d")][ko("0x6")];this[ko("0x1d")](e,ko("0x25"),(()=>{this[ko("0x15")](ko("0x3"),{id:this.id,name:e[ko("0x21")]})}))}[ko("0x1")](){this[ko("0x18")]=!0}[ko("0x14")](){this[ko("0x18")]=!1}[ko("0xe")](){this[ko("0x1e")]=!0}[ko("0x1a")](){this[ko("0x1e")]=!1}}var wo=i(810);const So=["toJSDate","year","day","setLocale","fromJSDate","week","minus","month","local","startOf","monthLong","hasSame"];var Oo,Ro;Oo=So,Ro=397,function(e){for(;--e;)Oo.push(Oo.shift())}(++Ro);const To=function(e,t){return So[e-=0]};function Io(e,t){const i=wo.ou[To("0x3")](e)[To("0x2")](t),n=wo.ou[To("0x7")](),r=n[To("0x5")]({days:1})[To("0x8")](To("0x1"));let o,s;return i[To("0xa")](n,To("0x1"))?(o=i.startOf(To("0x1")).toJSDate(),s=i.toRelativeCalendar()):i[To("0xa")](r,To("0x1"))?(o=r[To("0xb")](),s=i.toRelativeCalendar()):i[To("0xa")](n,To("0x4"))?(o=i[To("0x8")](To("0x4"))[To("0xb")](),s=i.weekdayLong||""):i[To("0xa")](n,To("0x0"))?(o=i[To("0x8")](To("0x6"))[To("0xb")](),s=i[To("0x9")]||""):(o=i[To("0x8")]("year").toJSDate(),s=String(i[To("0x0")])),{startDate:o,localizedPeriodName:s}}var No=i(37),Vo={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fn()(No.Z,Vo);No.Z.locals;const Mo=["ck-revision-history-sidebar__time-period","revisionViews","span","locale","add","ck-revision-history-sidebar__time-period__label","localizedPeriodName","uiLanguage","removeRevision","addRevision","setName"];var Ao,Eo;Ao=Mo,Eo=473,function(e){for(;--e;)Ao.push(Ao.shift())}(++Eo);const Do=function(e,t){return Mo[e-=0]};class jo extends jn.View{constructor(e,t,i){super(e);const n=Io(t,this[Do("0x3")][Do("0x7")])[Do("0x6")];this.startDate=t,this.revisionViews=this.createCollection(),this._revisionActions=i,this[Do("0x1")].delegate("select").to(this),this[Do("0x1")].delegate(Do("0xa")).to(this),this.setTemplate({tag:"div",attributes:{class:["ck",Do("0x0")]},children:[{tag:Do("0x2"),attributes:{class:["ck",Do("0x5")]},children:[{text:n}]},{tag:"div",attributes:{class:["ck","ck-revision-history-sidebar__time-period__revisions"]},children:this[Do("0x1")]}]})}[Do("0x9")](e){const t=new _o(this[Do("0x3")],e,this._revisionActions);this[Do("0x1")][Do("0x4")](t)}[Do("0x8")](e){const t=this[Do("0x1")].find((t=>t.id===e.id));this[Do("0x1")].remove(t)}}var Co=i(29),Fo={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fn()(Co.Z,Fo);Co.Z.locals;const Lo=["ck-revision-history-sidebar__header","ck-revision-history-sidebar__header__label","Revision history","content","ck-reset_all","span","setTemplate","div"];var Po,zo;Po=Lo,zo=103,function(e){for(;--e;)Po.push(Po.shift())}(++zo);const Zo=function(e,t){return Lo[e-=0]};class Uo extends jn.View{constructor(e){super(e);const t=new jn.IconView;t[Zo("0x4")]=Jn,this[Zo("0x7")]({tag:Zo("0x0"),attributes:{class:["ck",Zo("0x5"),Zo("0x1")]},children:[t,{tag:Zo("0x6"),attributes:{class:["ck",Zo("0x2")]},children:[en(e,Zo("0x3"))]}]})}}var Ho=i(790),qo={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fn()(Ho.Z,qo);Ho.Z.locals;const Bo=["getTime","add","_getTimePeriodViewByStartDate","createdAt","timePeriodViews","map","render","ck-reset","revisionSelected","_revisionActions","uiLanguage","createCollection","isEnabled","setTemplate","selectRevision","select","ck-revision-history-sidebar","_revisions","addRevision","set","deselect","remove","highlightRevisions","some","removeRevision","startDate","fire","ck-rounded-corners","setName","_addRevision","locale","highlight","delegate","div","_removeRevision","revisionViews","find","ck-disabled"];var Wo,Jo;Wo=Bo,Jo=228,function(e){for(;--e;)Wo.push(Wo.shift())}(++Jo);const Go=function(e,t){return Bo[e-=0]};class Yo extends jn.View{constructor(e,t,i){super(e);const n=this.bindTemplate;this[Go("0x4")]=this[Go("0xb")](),this[Go("0x4")].delegate(Go("0xf")).to(this),this[Go("0x4")][Go("0x20")](Go("0x1c")).to(this),this[Go("0x11")]=t,this[Go("0x9")]=i,this.on(Go("0xf"),((e,t)=>{this[Go("0x1a")](Go("0x8"),t)})),this.on(Go("0x1c"),((e,t)=>{this.fire("revisionSetName",t)})),this[Go("0x13")](Go("0xc"),!1),this[Go("0xd")]({tag:"div",attributes:{class:["ck",Go("0x7"),Go("0x1b"),Go("0x10")]},children:[new Uo(e),{tag:Go("0x21"),attributes:{class:["ck","ck-revision-history-sidebar__timeline",n.if(Go("0xc"),Go("0x25"),(e=>!e))]},children:this[Go("0x4")]}]})}[Go("0x6")](){super.render();for(const e of this._revisions)this[Go("0x1d")](e);this[Go("0x11")].on(Go("0x1"),((e,t)=>{this[Go("0x1d")](t)})),this[Go("0x11")].on(Go("0x15"),((e,t)=>{this[Go("0x22")](t)}))}get[Go("0x23")](){return this.timePeriodViews[Go("0x5")]((e=>e[Go("0x23")].map((e=>e)))).flat()}[Go("0xe")](e){for(const t of this[Go("0x23")])e&&e.id===t.id?t[Go("0xf")]():t[Go("0x14")]()}[Go("0x16")](e){for(const t of this[Go("0x23")])e[Go("0x17")]((({id:e})=>e===t.id))?t[Go("0x1f")]():t.unhighlight()}_addRevision(e){const t=Io(e[Go("0x3")],this[Go("0x1e")][Go("0xa")])[Go("0x19")];let i=this.timePeriodViews.get(0);i&&i[Go("0x19")][Go("0x0")]()===t[Go("0x0")]()||(i=new jo(this[Go("0x1e")],t,this[Go("0x9")]),this[Go("0x4")].add(i)),i[Go("0x12")](e)}[Go("0x22")](e){const t=Io(e[Go("0x3")],this[Go("0x1e")][Go("0xa")])[Go("0x19")];this[Go("0x2")](t)[Go("0x18")](e)}[Go("0x2")](e){return this[Go("0x4")][Go("0x24")]((t=>t.startDate[Go("0x0")]()===e[Go("0x0")]()))}}const $o=["config","ready","revisionViews","listenTo","length","editor","_revisionViewer","RevisionsSidebar","_sidebarView","destroy","defaultRevisionActions","_handleEditorDataReady","diff","revisionHistory.viewerSidebarContainer","Restore this revision","getEarlierVisibleRevision","bind","isVisible","add","_createRevisionActions","appendChild","render","isEnabled","compare","nameRevision","setName","getIndex","_handleDiffChange","get","fieldView","_revisionsRepository","assign","getLaterVisibleRevision","_handleRevisionSetName","highlightRevisions","plugins","Name this revision","isReady","repository","newRevisionId","name","element","pluginName","revisionHistory","_handleRevisionSelected","availableRevisionActions","revisionHistory.revisionActions","string","action","locale","Compare against selected","getRevisionsInDiff","getRevision"];var Ko,Xo;Ko=$o,Xo=392,function(e){for(;--e;)Ko.push(Ko.shift())}(++Xo);const Qo=function(e,t){return $o[e-=0]};class es extends e.Plugin{static get[Qo("0x15")](){return Qo("0x27")}static get requires(){return[kr]}constructor(e){super(e),this._revisionViewer=e[Qo("0xe")][Qo("0x7")](kr),this[Qo("0x9")]=this._revisionViewer[Qo("0x11")],this[Qo("0x28")]=null}init(){const e=this[Qo("0x9")]._revisions,t=this[Qo("0x33")](),i=this.editor[Qo("0x20")].get(Qo("0x2d"));this[Qo("0x28")]=new Yo(this[Qo("0x25")][Qo("0x1c")],e,t),this[Qo("0x28")].on("revisionSelected",this[Qo("0x17")][Qo("0x30")](this)),this[Qo("0x28")].on("revisionSetName",this[Qo("0xc")].bind(this)),this[Qo("0x28")][Qo("0x30")](Qo("0x1")).to(this[Qo("0x26")]),this[Qo("0x28")].timePeriodViews.on(Qo("0x32"),((e,t)=>{t[Qo("0x22")].on(Qo("0x32"),((e,t)=>{t[Qo("0x30")](Qo("0x1"),Qo("0x10")).to(this[Qo("0x26")])}))})),this[Qo("0x28")][Qo("0x0")](),this[Qo("0x23")](this[Qo("0x25")].data,Qo("0x21"),this[Qo("0x2b")][Qo("0x30")](this)),this.listenTo(this[Qo("0x26")],"change:diff",this[Qo("0x6")][Qo("0x30")](this)),i[Qo("0x34")](this[Qo("0x28")][Qo("0x14")])}[Qo("0x29")](){this[Qo("0x28")].element.remove(),this[Qo("0x28")][Qo("0x29")]()}[Qo("0x2b")](){const e=this[Qo("0x9")][Qo("0x1f")](0);if(e){const t=this[Qo("0x9")][Qo("0x2f")](e.id);this[Qo("0x26")][Qo("0x2")](e,t)}}[Qo("0x17")](e,t){const i=this[Qo("0x9")][Qo("0x1f")](t.id),n=this[Qo("0x9")][Qo("0x2f")](i.id);this[Qo("0x26")][Qo("0x2")](i,n)}[Qo("0xc")](e,t){this._revisionsRepository.getRevision(t.id)[Qo("0x4")](t[Qo("0x13")])}_handleDiffChange(e,t,i){const n=this[Qo("0x9")].getRevisionsInDiff(i);n.length>2?(this._sidebarView[Qo("0xd")](n),this._sidebarView.selectRevision(null)):(this[Qo("0x28")][Qo("0xd")]([]),this[Qo("0x28")].selectRevision(n[0]))}[Qo("0x33")](){const e=this[Qo("0x25")],t=es[Qo("0x18")],i=e.config[Qo("0x7")](Qo("0x19"))||es[Qo("0x2a")];if(i[Qo("0x24")])return i.map((i=>{const n=Qo("0x1a")==typeof i?Object[Qo("0xa")]({},t[i]):i;return n.action=n[Qo("0x1b")][Qo("0x30")](this,e),n[Qo("0x31")]&&(n[Qo("0x31")]=n[Qo("0x31")][Qo("0x30")](this,e)),n}))}}es[Qo("0x18")]={compareAgainstSelected:{name:Qo("0x1d"),action:({plugins:e},t)=>{const i=e[Qo("0x7")](kr),n=i[Qo("0x11")];let r=i[Qo("0x2c")][Qo("0x12")],o=t.id;n[Qo("0x5")](r)>n.getIndex(o)&&([r,o]=[o,r]),i[Qo("0x2")](r,o)},isVisible:({plugins:e},t)=>{const i=e[Qo("0x7")](kr);return!(i.repository[Qo("0x1e")](i[Qo("0x2c")])[Qo("0x24")]>2||t.isSelected)}},restoreRevision:{name:Qo("0x2e"),action:(e,{id:t})=>{e[Qo("0x20")][Qo("0x7")](Qo("0x16")).restoreRevisionCallback(t)},isVisible:({plugins:e},t)=>!!e[Qo("0x7")](kr)[Qo("0x11")][Qo("0xb")](t.id)},nameRevision:{name:Qo("0xf"),action:({plugins:e},{id:t,revisionNameView:i})=>{const n=e[Qo("0x7")](kr),r=n.repository.getEarlierVisibleRevision(t);n[Qo("0x2")](t,r),i.focus(),i[Qo("0x8")].select()}}},es.defaultRevisionActions=["compareAgainstSelected","restoreRevision",Qo("0x3")];const ts=["toolbar","attachDomRoot","destroy","editable","componentFactory","rootName","config","_elementReplacer","bind","fillFromConfig","focusTracker","_initToolbar","element","name","viewportTopOffset","init","_view","render","setEditableElement","fire","isActive","editing","_toolbarConfig","detachDomRoot","limiterElement","stickyPanel","view","editor","isFocused","document","ready"];var is,ns;is=ts,ns=102,function(e){for(;--e;)is.push(is.shift())}(++ns);const rs=function(e,t){return ts[e-=0]};class os extends jn.EditorUI{get[rs("0x11")](){return this[rs("0x7")]}constructor(e,i){super(e),this[rs("0x7")]=i,this._toolbarConfig=(0,jn.normalizeToolbarConfig)(e[rs("0x1c")].get(rs("0x16"))),this[rs("0x1d")]=new t.ElementReplacer}get[rs("0x3")](){return this.view[rs("0x3")]}[rs("0x6")](e){const t=this[rs("0x12")],i=this.view,n=t.editing[rs("0x11")],r=i[rs("0x19")],o=n[rs("0x14")].getRoot();r.name=o[rs("0x1b")],i[rs("0x8")]();const s=r.element;this[rs("0x9")](r[rs("0x4")],s),i[rs("0x19")].bind(rs("0x13")).to(this[rs("0x1")]),n[rs("0x17")](s),this[rs("0x1d")].replace(e,this[rs("0x3")]),this[rs("0x2")](),this[rs("0xa")](rs("0x15"))}destroy(){super[rs("0x18")]();const e=this[rs("0x11")],t=this[rs("0x12")][rs("0xc")][rs("0x11")];this._elementReplacer.restore(),t[rs("0xe")](e.editable[rs("0x4")]),e.destroy()}[rs("0x2")](){const e=this.view;e.stickyPanel[rs("0x1e")](rs("0xb")).to(this[rs("0x1")],"isFocused"),e[rs("0x10")][rs("0xf")]=e[rs("0x3")],e[rs("0x10")].bind(rs("0x5")).to(this,"viewportOffset",(({top:e})=>e)),e[rs("0x16")][rs("0x0")](this[rs("0xd")],this[rs("0x1a")]),this.addToolbar(e.toolbar)}}var ss=i(168),as={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Fn()(ss.Z,as);ss.Z.locals;var cs,us,ds=["editable","top","shouldToolbarGroupWhenFull","render","content","_editable","toolbar","main","stickyPanel","add"];cs=ds,us=322,function(e){for(;--e;)cs.push(cs.shift())}(++us);var ls=function(e,t){return ds[e-=0]};class xs extends jn.BoxedEditorUIView{get[ls("0x8")](){return this[ls("0x3")]}constructor(e,t,i={}){super(e),this[ls("0x6")]=new jn.StickyPanelView(e),this.toolbar=new jn.ToolbarView(e,{shouldGroupWhenFull:i[ls("0x0")]}),this[ls("0x3")]=new jn.InlineEditableUIView(e,t)}[ls("0x1")](){super.render(),this.stickyPanel[ls("0x2")][ls("0x7")](this[ls("0x4")]),this[ls("0x9")].add(this.stickyPanel),this[ls("0x5")].add(this[ls("0x8")])}}const hs=["init","create","document","get","data","_ui","createRoot","fire","model","sourceElement","editing","view","config","initPlugins","destroy","initialData","locale","updateSourceElement"];var fs,vs;fs=hs,vs=224,function(e){for(;--e;)fs.push(fs.shift())}(++vs);const ms=function(e,t){return hs[e-=0]};class gs extends((0,e.DataApiMixin)((0,e.ElementApiMixin)(e.Editor))){get ui(){return this[ms("0xf")]}constructor(e,t){super(t),this[ms("0x1")]=e,this[ms("0x0")][ms("0xc")][ms("0x10")]();const i=new xs(this[ms("0x8")],this[ms("0x2")][ms("0x3")],{shouldToolbarGroupWhenFull:!0});this[ms("0xf")]=new os(this,i)}[ms("0x6")](){return this[ms("0x9")](),this.ui[ms("0x6")](),super.destroy()}static async[ms("0xb")](e,t){const i=new this(e,t);return await i[ms("0x5")](),await i.ui.init(e),await i[ms("0xe")][ms("0xa")](i[ms("0x4")][ms("0xd")](ms("0x7"))||""),i[ms("0x11")]("ready"),i}}const bs=["_enhanceCloseRevisionViewerCallback","RevisionViewerIntegration","refreshVisibility","isReady","block","markers","revision-history-viewer-opened","from","Users","set","saveRevision","refreshPositioning","init","_getRevisionViewerEditorConfig","getAttributeKeys","context","initialData","filter","restoreRevision","exitToEditing","revisionHistory.viewerEditorElement","setSelection","users","string","get","enqueueChange","repository","_update","constructor","closeRevisionViewerCallback","locale","map","getRootNames","toLocaleDateString","getRevisions","document","showRevisionViewerCallback","toLocaleTimeString","catch","addRevisionData","restrictedEditingException","indexOf","setAttribute","pluginName","toJSON","error","data","isReadOnly","getRevisionData","keys","config","RestrictedEditingMode","find","removeSelectionAttribute","bind","_viewerEditor","model","createdAt","push","revisionHistory.showRevisionViewerCallback","_cleanUp","DocumentOutline","style","name","has","revisionHistory.restoreRevisionCallback","names","isAnonymous","destroy","_restoreRevision","define","uiLanguage","getMarkersGroup","plugins","selection","includes","disableReadOnlyMode","PaginationLookup","creator","every","revisionHistory.viewerContainer","revisionHistory.closeRevisionViewerCallback","RevisionsRepository","_recalculatePageBreaks","toolbar","commands","insert","addRoot","builtinPlugins","getRevision","addUser","_closeRevisionViewer","extraPlugins","_showRevisionViewer","Autosave","change","parse","RevisionViewer","detachRoot","Annotations","result","then","RevisionTracker","adapter","none","function","create","requires","concat","display","numeric","_enhanceShowRevisionViewerCallback","toVersion","isEnabled","fromVersion","rootsAttributes","editor","revision-history-missing-configuration","revisionHistory.editorContainer","revisionHistory"];var ys,ps;ys=bs,ps=149,function(e){for(;--e;)ys.push(ys.shift())}(++ps);const ks=function(e,t){return bs[e-=0]};class _s extends e.Plugin{static get[ks("0xe")](){return ks("0x5c")}constructor(e){super(e),this[ks("0x47")]="end"}}class ws extends e.Plugin{static get[ks("0xe")](){return"RevisionHistory"}static get[ks("0x4e")](){return[In,Xn]}constructor(e){if(super(e),!this.editor[ks("0x15")][ks("0x73")](ks("0x5a")))throw new t.CKEditorError(ks("0x58"),this);this[ks("0x1a")]=null,this.editor[ks("0x15")][ks("0x29")](ks("0x1e"),(e=>this[ks("0x40")](e))),this.editor[ks("0x15")][ks("0x29")]("revisionHistory.closeRevisionViewerCallback",(e=>this[ks("0x3e")](e))),this[ks("0x57")][ks("0x15")].define(ks("0x24"),(e=>this[ks("0x28")](e))),this[ks("0x52")](),this._enhanceCloseRevisionViewerCallback()}set adapter(e){this[ks("0x57")][ks("0x2c")][ks("0x73")](ks("0x49"))[ks("0x4a")]=e}get adapter(){return this[ks("0x57")][ks("0x2c")][ks("0x73")](ks("0x49"))[ks("0x4a")]}[ks("0xa")](e){return this.editor[ks("0x2c")][ks("0x73")]("RevisionTracker").addRevisionData(e)}getRevision(e){return this.editor[ks("0x2c")].get(ks("0x35"))[ks("0x3c")](e)}getRevisions(e={toJSON:!1}){return this[ks("0x57")][ks("0x2c")].get(ks("0x35"))[ks("0x5")](e)}_getRevisionViewerEditorConfig(){const i=[ks("0x6a")],n=["RevisionTracker","RevisionHistoryUI","WebSocketGateway",ks("0x16"),ks("0x41"),ks("0x20")],r={},o=this[ks("0x57")],s=o[ks("0x2c")][ks("0x73")](ks("0x49")),a=o[ks("0x2c")][ks("0x73")](ks("0x63"))[ks("0x71")];for(const e of o[ks("0x15")][ks("0x25")]())i[ks("0x2e")](e)||(r[e]=o.config[ks("0x73")](e));delete r[ks("0x6b")],delete r[ks("0x56")],r[ks("0x37")]=[ks("0x6e"),"restoreRevision","changesNavigation"];const c=this.editor[ks("0x77")][ks("0x3b")]||[],u=r[ks("0x3f")]||[];delete r[ks("0x3f")];const d=o._context[ks("0x15")].get("plugins")||[],l=c[ks("0x4f")](r[ks("0x2c")])[ks("0x4f")](u)[ks("0x4f")](d)[ks("0x2")]((e=>ks("0x72")==typeof e?c[ks("0x17")]((t=>t[ks("0xe")]==e)):e));function x(e,t,i){const r="function"==typeof e?e.pluginName||e[ks("0x22")]:e;if(i[ks("0x2e")](r))return!0;if(i[ks("0x1d")](r),n[ks("0x2e")](r))return!1;const o=((ks("0x4c")==typeof e?e:t[ks("0x23")](r)?t[ks("0x73")](r):{})[ks("0x4e")]||[])[ks("0x32")]((e=>x(e,t,i)));return o||n.push(r),o}return r[ks("0x2c")]=Array[ks("0x62")](new Set(l))[ks("0x6c")]((e=>x(e,o[ks("0x2c")],[]))),r[ks("0x2c")][ks("0x1d")](_s,kr,qr,class extends e.Plugin{static get[ks("0x4e")](){return[kr,ks("0x63")]}[ks("0x67")](){const e=this.editor[ks("0x2c")][ks("0x73")](ks("0x63"));for(const t of a)t[ks("0x26")]||e.getUser(t.id)||e[ks("0x3d")](t);const i=s[ks("0x75")][ks("0x5")]();let n=null;const r=this[ks("0x57")][ks("0x2c")][ks("0x73")](ks("0x44"));r.adapter=s[ks("0x4a")],r.bind(ks("0x54")).to(s),this[ks("0x57")][ks("0x38")][ks("0x73")](ks("0x6d"))[ks("0x19")](ks("0x54")).to(o,ks("0x12"),(e=>!e));for(const e of i){const i=null===e[ks("0x31")];if(i&&e[ks("0x53")]===e[ks("0x55")])continue;const o=e[ks("0xf")]();r[ks("0xa")](o,((r,o,a)=>{if(i){if(n)n._update(r,o);else if(!o){const e=a[ks("0xf")]();e.id=(0,t.uid)(),s.saveRevision(e,a[ks("0x53")])[ks("0x48")]((e=>{n=e}))}}else e[ks("0x76")](r,o)}))}}},es),r}[ks("0x52")](){const e=this.editor.config[ks("0x73")](ks("0x5a"))[ks("0x7")];this[ks("0x57")].config[ks("0x64")](ks("0x1e"),(async()=>{this.editor.enableReadOnlyMode(ks("0x61"));const t=this[ks("0x57")][ks("0x2c")][ks("0x73")](ks("0x49"));if(this[ks("0x57")][ks("0x2c")][ks("0x23")]("Autosave")){const e=this[ks("0x57")][ks("0x2c")].get(ks("0x41"));await e.save()}else await t.update();this[ks("0x57")][ks("0x2c")].has(ks("0x30"))&&this[ks("0x57")][ks("0x2c")].get(ks("0x30"))[ks("0x36")]();const i=this[ks("0x68")]();return e(i)[ks("0x48")]((e=>(this[ks("0x1a")]=e,this[ks("0x57")].plugins[ks("0x23")](ks("0x46"))&&this[ks("0x57")][ks("0x2c")][ks("0x73")]("Annotations")[ks("0x5d")](),e)))[ks("0x9")]((e=>(console[ks("0x10")](e),this[ks("0x57")][ks("0x2f")](ks("0x61")),null)))}))}[ks("0x5b")](){const e=this[ks("0x57")][ks("0x15")][ks("0x73")](ks("0x5a")).closeRevisionViewerCallback;this.editor[ks("0x15")][ks("0x64")](ks("0x34"),(()=>(this[ks("0x57")][ks("0x2c")].has(ks("0x30"))&&this[ks("0x57")][ks("0x2c")][ks("0x73")](ks("0x30"))[ks("0x36")](),this[ks("0x1a")][ks("0x2c")][ks("0x73")](ks("0x44"))[ks("0x1f")](),e(this[ks("0x1a")])[ks("0x48")]((()=>{if(this.editor.disableReadOnlyMode(ks("0x61")),this[ks("0x1a")]=null,this[ks("0x57")][ks("0x2c")][ks("0x23")]("Annotations")){const e=this[ks("0x57")][ks("0x2c")][ks("0x73")](ks("0x46"));e[ks("0x5d")](),e[ks("0x66")]()}})))))}[ks("0x40")](e){const t=this[ks("0x57")][ks("0x15")][ks("0x73")](ks("0x59")),i=this[ks("0x57")].config[ks("0x73")](ks("0x33")),n=this[ks("0x57")].config[ks("0x73")](ks("0x6f"));return gs[ks("0x4d")](n,e)[ks("0x48")]((e=>(i[ks("0x21")][ks("0x50")]=ks("0x5f"),t[ks("0x21")].display="none",e)))}[ks("0x3e")](e){const t=this[ks("0x57")][ks("0x15")][ks("0x73")]("revisionHistory.editorContainer");return this[ks("0x57")][ks("0x15")].get(ks("0x33"))[ks("0x21")].display=ks("0x4b"),t[ks("0x21")][ks("0x50")]="",e[ks("0x27")]()}async[ks("0x28")](e){const t=this[ks("0x57")],i=this._viewerEditor[ks("0x2c")][ks("0x73")](ks("0x44")),n=t[ks("0x2c")][ks("0x73")]("RevisionTracker"),r=i[ks("0x75")].getRevision(e);let o,s,a;try{o=await i[ks("0x13")](r),s=await i.getRevisionRootsAttributes(r)}catch(e){return void console[ks("0x10")](e)}t[ks("0x1b")][ks("0x42")]((e=>{for(const i of Array[ks("0x62")](t.model[ks("0x60")][ks("0x2b")](ks("0xb"))))e.removeMarker(i)})),i.isReady=!1,t[ks("0x1b")][ks("0x74")]((e=>{e[ks("0x70")](null),e[ks("0x18")](t[ks("0x1b")][ks("0x6")][ks("0x2d")][ks("0x69")]());for(const i of t[ks("0x1b")].document[ks("0x3")]())e[ks("0x45")](i);for(const i of Object[ks("0x14")](o)){const n=e[ks("0x3a")](i);for(const t of Object.keys(s[i]))e[ks("0xd")](t,s[i][t],n);e[ks("0x39")](t[ks("0x11")][ks("0x43")](o[i],n),n,0)}}));const c=en(t[ks("0x1")],"Restored");return a=r[ks("0x22")]?-1==r.name[ks("0xc")](c)?c+": "+r[ks("0x22")]:r[ks("0x22")]:c+": "+r.createdAt[ks("0x4")](t[ks("0x1")][ks("0x2a")],{month:"long",day:"numeric"})+", "+r[ks("0x1c")][ks("0x8")](t.locale[ks("0x2a")],{hour:ks("0x51"),minute:ks("0x51")}),await n[ks("0x65")]({name:a}),i[ks("0x5e")]=!0,t[ks("0x15")][ks("0x73")](ks("0x5a"))[ks("0x0")]()}}})(),(window.CKEditor5=window.CKEditor5||{}).revisionHistory=n})();
|