@ckeditor/ckeditor5-revision-history 35.2.0 → 35.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/package.json +7 -7
- 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/revision.js +1 -1
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- 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.js +1 -1
- 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.js +1 -1
- 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-2022, 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}',""]);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(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function c(e,t,i){return c=a()?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},c.apply(null,arguments)}function u(e){var t="function"==typeof Map?new Map:void 0;return u=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 c(e,arguments,o(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),s(n,e)},u(e)}function d(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 l(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 d(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)?d(e,t):void 0}}(e)))return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}var x=function(e){function t(){return e.apply(this,arguments)||this}return r(t,e),t}(u(Error)),h=function(e){function t(t){return e.call(this,"Invalid DateTime: "+t.toMessage())||this}return r(t,e),t}(x),f=function(e){function t(t){return e.call(this,"Invalid Interval: "+t.toMessage())||this}return r(t,e),t}(x),v=function(e){function t(t){return e.call(this,"Invalid Duration: "+t.toMessage())||this}return r(t,e),t}(x),m=function(e){function t(){return e.apply(this,arguments)||this}return r(t,e),t}(x),g=function(e){function t(t){return e.call(this,"Invalid unit "+t)||this}return r(t,e),t}(x),p=function(e){function t(){return e.apply(this,arguments)||this}return r(t,e),t}(x),y=function(e){function t(){return e.call(this,"Zone is an abstract class")||this}return r(t,e),t}(x),b="numeric",k="short",_="long",w={year:b,month:b,day:b},S={year:b,month:k,day:b},T={year:b,month:k,day:b,weekday:k},O={year:b,month:_,day:b},I={year:b,month:_,day:b,weekday:_},R={hour:b,minute:b},N={hour:b,minute:b,second:b},V={hour:b,minute:b,second:b,timeZoneName:k},M={hour:b,minute:b,second:b,timeZoneName:_},E={hour:b,minute:b,hour12:!1},D={hour:b,minute:b,second:b,hour12:!1},A={hour:b,minute:b,second:b,hour12:!1,timeZoneName:k},j={hour:b,minute:b,second:b,hour12:!1,timeZoneName:_},C={year:b,month:b,day:b,hour:b,minute:b},F={year:b,month:b,day:b,hour:b,minute:b,second:b},L={year:b,month:k,day:b,hour:b,minute:b},P={year:b,month:k,day:b,hour:b,minute:b,second:b},z={year:b,month:k,day:b,weekday:k,hour:b,minute:b},Z={year:b,month:_,day:b,hour:b,minute:b,timeZoneName:k},U={year:b,month:_,day:b,hour:b,minute:b,second:b,timeZoneName:k},H={year:b,month:_,day:b,weekday:_,hour:b,minute:b,timeZoneName:_},q={year:b,month:_,day:b,weekday:_,hour:b,minute:b,second:b,timeZoneName:_};function B(e){return void 0===e}function W(e){return"number"==typeof e}function J(e){return"number"==typeof e&&e%1==0}function G(){try{return"undefined"!=typeof Intl&&Intl.DateTimeFormat}catch(e){return!1}}function Y(){return!B(Intl.DateTimeFormat.prototype.formatToParts)}function $(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function K(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 X(e,t){return t.reduce((function(t,i){return t[i]=e[i],t}),{})}function Q(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ee(e,t,i){return J(e)&&e>=t&&e<=i}function te(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 ie(e){return B(e)||null===e||""===e?void 0:parseInt(e,10)}function ne(e){if(!B(e)&&null!==e&&""!==e){var t=1e3*parseFloat("0."+e);return Math.floor(t)}}function re(e,t,i){void 0===i&&(i=!1);var n=Math.pow(10,t);return(i?Math.trunc:Math.round)(e*n)/n}function oe(e){return e%4==0&&(e%100!=0||e%400==0)}function se(e){return oe(e)?366:365}function ae(e,t){var i=function(e,t){return e-t*Math.floor(e/t)}(t-1,12)+1;return 2===i?oe(e+(t-i)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][i-1]}function ce(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 ue(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 de(e){return e>99?e:e>60?1900+e:2e3+e}function le(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=G();if(a&&Y()){var c=new Intl.DateTimeFormat(i,s).formatToParts(r).find((function(e){return"timezonename"===e.type.toLowerCase()}));return c?c.value:null}if(a){var u=new Intl.DateTimeFormat(i,o).format(r);return new Intl.DateTimeFormat(i,s).format(r).substring(u.length).replace(/^[, \u200e]+/,"")}return null}function xe(e,t){var i=parseInt(e,10);Number.isNaN(i)&&(i=0);var n=parseInt(t,10)||0;return 60*i+(i<0||Object.is(i,-0)?-n:n)}function he(e){var t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new p("Invalid unit value "+e);return t}function fe(e,t,i){var n={};for(var r in e)if(Q(e,r)){if(i.indexOf(r)>=0)continue;var o=e[r];if(null==o)continue;n[t(r)]=he(o)}return n}function ve(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+te(i,2)+":"+te(n,2);case"narrow":return""+r+i+(n>0?":"+n:"");case"techie":return""+r+te(i,2)+te(n,2);default:throw new RangeError("Value format "+t+" is out of range for property format")}}function me(e){return X(e,["hour","minute","second","millisecond"])}var ge=/[A-Za-z_+-]{1,256}(:?\/[A-Za-z_+-]{1,256}(\/[A-Za-z_+-]{1,256})?)?/;function pe(e){return JSON.stringify(e,Object.keys(e).sort())}var ye=["January","February","March","April","May","June","July","August","September","October","November","December"],be=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ke=["J","F","M","A","M","J","J","A","S","O","N","D"];function _e(e){switch(e){case"narrow":return[].concat(ke);case"short":return[].concat(be);case"long":return[].concat(ye);case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var we=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Se=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Te=["M","T","W","T","F","S","S"];function Oe(e){switch(e){case"narrow":return[].concat(Te);case"short":return[].concat(Se);case"long":return[].concat(we);case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var Ie=["AM","PM"],Re=["Before Christ","Anno Domini"],Ne=["BC","AD"],Ve=["B","A"];function Me(e){switch(e){case"narrow":return[].concat(Ve);case"short":return[].concat(Ne);case"long":return[].concat(Re);default:return null}}function Ee(e,t){for(var i,n="",r=l(e);!(i=r()).done;){var o=i.value;o.literal?n+=o.val:n+=t(o.val)}return n}var De={D:w,DD:S,DDD:O,DDDD:I,t:R,tt:N,ttt:V,tttt:M,T:E,TT:D,TTT:A,TTTT:j,f:C,ff:L,fff:Z,ffff:H,F,FF:P,FFF:U,FFFF:q},Ae=function(){function e(e,t){this.opts=t,this.loc=e,this.systemLoc=null}e.create=function(t,i){return void 0===i&&(i={}),new e(t,i)},e.parseFormat=function(e){for(var t=null,i="",n=!1,r=[],o=0;o<e.length;o++){var s=e.charAt(o);"'"===s?(i.length>0&&r.push({literal:n,val:i}),t=null,i="",n=!n):n||s===t?i+=s:(i.length>0&&r.push({literal:!1,val:i}),i=s,t=s)}return i.length>0&&r.push({literal:n,val:i}),r},e.macroTokenToFormatOpts=function(e){return De[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 te(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&&Y(),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 Ie[e.hour<12?0:1]}(t):s({hour:"numeric",hour12:!0},"dayperiod")},u=function(e,i){return r?function(e,t){return _e(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 Me(t)[e.year<0?0:1]}(t,e):s({era:e},"era")};return Ee(e.parseFormat(i),(function(i){switch(i){case"S":return n.num(t.millisecond);case"u":case"SSS":return n.num(t.millisecond,3);case"s":return n.num(t.second);case"ss":return n.num(t.second,2);case"m":return n.num(t.minute);case"mm":return n.num(t.minute,2);case"h":return n.num(t.hour%12==0?12:t.hour%12);case"hh":return n.num(t.hour%12==0?12:t.hour%12,2);case"H":return n.num(t.hour);case"HH":return n.num(t.hour,2);case"Z":return a({format:"narrow",allowZ:n.opts.allowZ});case"ZZ":return a({format:"short",allowZ:n.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:n.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:n.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:n.loc.locale});case"z":return t.zoneName;case"a":return c();case"d":return o?s({day:"numeric"},"day"):n.num(t.day);case"dd":return o?s({day:"2-digit"},"day"):n.num(t.day,2);case"c":case"E":return n.num(t.weekday);case"ccc":return d("short",!0);case"cccc":return d("long",!0);case"ccccc":return d("narrow",!0);case"EEE":return d("short",!1);case"EEEE":return d("long",!1);case"EEEEE":return d("narrow",!1);case"L":return o?s({month:"numeric",day:"numeric"},"month"):n.num(t.month);case"LL":return o?s({month:"2-digit",day:"numeric"},"month"):n.num(t.month,2);case"LLL":return u("short",!0);case"LLLL":return u("long",!0);case"LLLLL":return u("narrow",!0);case"M":return o?s({month:"numeric"},"month"):n.num(t.month);case"MM":return o?s({month:"2-digit"},"month"):n.num(t.month,2);case"MMM":return u("short",!1);case"MMMM":return u("long",!1);case"MMMMM":return u("narrow",!1);case"y":return o?s({year:"numeric"},"year"):n.num(t.year);case"yy":return o?s({year:"2-digit"},"year"):n.num(t.year.toString().slice(-2),2);case"yyyy":return o?s({year:"numeric"},"year"):n.num(t.year,4);case"yyyyyy":return o?s({year:"numeric"},"year"):n.num(t.year,6);case"G":return 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 Ee(s,(n=c,function(e){var t=o(e);return t?r.num(n.get(t),e.length):e}))},e}(),je=function(){function e(e,t){this.reason=e,this.explanation=t}return e.prototype.toMessage=function(){return this.explanation?this.reason+": "+this.explanation:this.reason},e}(),Ce=function(){function e(){}var t=e.prototype;return t.offsetName=function(e,t){throw new y},t.formatOffset=function(e,t){throw new y},t.offset=function(e){throw new y},t.equals=function(e){throw new y},n(e,[{key:"type",get:function(){throw new y}},{key:"name",get:function(){throw new y}},{key:"universal",get:function(){throw new y}},{key:"isValid",get:function(){throw new y}}]),e}(),Fe=null,Le=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var i=t.prototype;return i.offsetName=function(e,t){return le(e,t.format,t.locale)},i.formatOffset=function(e,t){return ve(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 G()?(new Intl.DateTimeFormat).resolvedOptions().timeZone:"local"}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return!0}}],[{key:"instance",get:function(){return null===Fe&&(Fe=new t),Fe}}]),t}(Ce),Pe=RegExp("^"+ge.source+"$"),ze={};var Ze={year:0,month:1,day:2,hour:3,minute:4,second:5};var Ue={},He=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 Ue[e]||(Ue[e]=new t(e)),Ue[e]},t.resetCache=function(){Ue={},ze={}},t.isValidSpecifier=function(e){return!(!e||!e.match(Pe))},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 le(e,t.format,t.locale,this.name)},i.formatOffset=function(e,t){return ve(this.offset(e),t)},i.offset=function(e){var t=new Date(e);if(isNaN(t))return NaN;var i,n=(i=this.name,ze[i]||(ze[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"})),ze[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];B(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(ce({year:o,month:s,day:a,hour:24===c?0:c,minute:r[4],second:r[5],millisecond:0})-(u-=d>=0?d:1e3+d))/6e4},i.equals=function(e){return"iana"===e.type&&e.name===this.name},n(t,[{key:"type",get:function(){return"iana"}},{key:"name",get:function(){return this.zoneName}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return this.valid}}]),t}(Ce),qe=null,Be=function(e){function t(t){var i;return(i=e.call(this)||this).fixed=t,i}r(t,e),t.instance=function(e){return 0===e?t.utcInstance:new t(e)},t.parseSpecifier=function(e){if(e){var i=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(i)return new t(xe(i[1],i[2]))}return null},n(t,null,[{key:"utcInstance",get:function(){return null===qe&&(qe=new t(0)),qe}}]);var i=t.prototype;return i.offsetName=function(){return this.name},i.formatOffset=function(e,t){return ve(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"+ve(this.fixed,"narrow")}},{key:"universal",get:function(){return!0}},{key:"isValid",get:function(){return!0}}]),t}(Ce),We=function(e){function t(t){var i;return(i=e.call(this)||this).zoneName=t,i}r(t,e);var i=t.prototype;return i.offsetName=function(){return null},i.formatOffset=function(){return""},i.offset=function(){return NaN},i.equals=function(){return!1},n(t,[{key:"type",get:function(){return"invalid"}},{key:"name",get:function(){return this.zoneName}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return!1}}]),t}(Ce);function Je(e,t){var i;if(B(e)||null===e)return t;if(e instanceof Ce)return e;if("string"==typeof e){var n=e.toLowerCase();return"local"===n?t:"utc"===n||"gmt"===n?Be.utcInstance:null!=(i=He.parseGMTOffset(e))?Be.instance(i):He.isValidSpecifier(n)?He.create(e):Be.parseSpecifier(n)||new We(e)}return W(e)?Be.instance(e):"object"==typeof e&&e.offset&&"number"==typeof e.offset?e:new We(e)}var Ge=function(){return Date.now()},Ye=null,$e=null,Ke=null,Xe=null,Qe=!1,et=function(){function e(){}return e.resetCaches=function(){lt.resetCache(),He.resetCache()},n(e,null,[{key:"now",get:function(){return Ge},set:function(e){Ge=e}},{key:"defaultZoneName",get:function(){return e.defaultZone.name},set:function(e){Ye=e?Je(e):null}},{key:"defaultZone",get:function(){return Ye||Le.instance}},{key:"defaultLocale",get:function(){return $e},set:function(e){$e=e}},{key:"defaultNumberingSystem",get:function(){return Ke},set:function(e){Ke=e}},{key:"defaultOutputCalendar",get:function(){return Xe},set:function(e){Xe=e}},{key:"throwOnInvalid",get:function(){return Qe},set:function(e){Qe=e}}]),e}(),tt={};function it(e,t){void 0===t&&(t={});var i=JSON.stringify([e,t]),n=tt[i];return n||(n=new Intl.DateTimeFormat(e,t),tt[i]=n),n}var nt={};var rt={};function ot(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=rt[r];return o||(o=new Intl.RelativeTimeFormat(e,t),rt[r]=o),o}var st=null;function at(e,t,i,n,r){var o=e.listingMode(i);return"error"===o?null:"en"===o?n(t):r(t)}var ct=function(){function e(e,t,i){if(this.padTo=i.padTo||0,this.floor=i.floor||!1,!t&&G()){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=nt[i];return n||(n=new Intl.NumberFormat(e,t),nt[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 te(this.floor?Math.floor(e):re(e,3),this.padTo)},e}(),ut=function(){function e(e,t,i){var n;if(this.opts=i,this.hasIntl=G(),e.zone.universal&&this.hasIntl){var r=e.offset/60*-1,o=r>=0?"Etc/GMT+"+r:"Etc/GMT"+r,s=He.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=it(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(pe(X(e,["weekday","era","year","month","day","hour","minute","second","timeZoneName","hour12"]))){case pe(w):return"M/d/yyyy";case pe(S):return"LLL d, yyyy";case pe(T):return"EEE, LLL d, yyyy";case pe(O):return"LLLL d, yyyy";case pe(I):return"EEEE, LLLL d, yyyy";case pe(R):return"h:mm a";case pe(N):return"h:mm:ss a";case pe(V):case pe(M):return"h:mm a";case pe(E):return"HH:mm";case pe(D):return"HH:mm:ss";case pe(A):case pe(j):return"HH:mm";case pe(C):return"M/d/yyyy, h:mm a";case pe(L):return"LLL d, yyyy, h:mm a";case pe(Z):return"LLLL d, yyyy, h:mm a";case pe(H):return t;case pe(F):return"M/d/yyyy, h:mm:ss a";case pe(P):return"LLL d, yyyy, h:mm:ss a";case pe(z):return"EEE, d LLL yyyy, h:mm a";case pe(U):return"LLLL d, yyyy, h:mm:ss a";case pe(q):return"EEEE, LLLL d, yyyy, h:mm:ss a";default:return t}}(this.opts),t=lt.create("en-US");return Ae.create(t).formatDateTimeFromString(this.dt,e)},t.formatToParts=function(){return this.hasIntl&&Y()?this.dtf.formatToParts(this.dt.toJSDate()):[]},t.resolvedOptions=function(){return this.hasIntl?this.dtf.resolvedOptions():{locale:"en-US",numberingSystem:"latn",outputCalendar:"gregory"}},e}(),dt=function(){function e(e,t,i){this.opts=Object.assign({style:"long"},i),!t&&$()&&(this.rtf=ot(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}(),lt=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=it(e).resolvedOptions()}catch(e){i=it(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 G()?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||et.defaultLocale;return new e(o||(r?"en-US":function(){if(st)return st;if(G()){var e=(new Intl.DateTimeFormat).resolvedOptions().locale;return st=e&&"und"!==e?e:"en-US"}return st="en-US"}()),i||et.defaultNumberingSystem,n||et.defaultOutputCalendar,o)},e.resetCache=function(){st=null,tt={},nt={},rt={}},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=G()&&Y(),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),at(this,e,i,_e,(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),at(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),at(this,void 0,e,(function(){return Ie}),(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),at(this,e,t,Me,(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 ct(this.intl,e.forceSimple||this.fastNumbers,e)},t.dtFormatter=function(e,t){return void 0===t&&(t={}),new ut(e,this.intl,t)},t.relFormatter=function(e){return void 0===e&&(e={}),new dt(this.intl,this.isEnglish(),e)},t.isEnglish=function(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||G()&&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")||G()&&"latn"===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}}]),e}();function xt(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var n=t.reduce((function(e,t){return e+t.source}),"");return RegExp("^"+n+"$")}function ht(){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 ft(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 vt(){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]]=ie(e[i+n]);return[r,null,i+n]}}var mt=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,gt=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,pt=RegExp(""+gt.source+mt.source+"?"),yt=RegExp("(?:T"+pt.source+")?"),bt=vt("weekYear","weekNumber","weekDay"),kt=vt("year","ordinal"),_t=RegExp(gt.source+" ?(?:"+mt.source+"|("+ge.source+"))?"),wt=RegExp("(?: "+_t.source+")?");function St(e,t,i){var n=e[t];return B(n)?i:ie(n)}function Tt(e,t){return[{year:St(e,t),month:St(e,t+1,1),day:St(e,t+2,1)},null,t+3]}function Ot(e,t){return[{hours:St(e,t,0),minutes:St(e,t+1,0),seconds:St(e,t+2,0),milliseconds:ne(e[t+3])},null,t+4]}function It(e,t){var i=!e[t]&&!e[t+1],n=xe(e[t+1],e[t+2]);return[{},i?null:Be.instance(n),t+3]}function Rt(e,t){return[{},e[t]?He.create(e[t]):null,t+1]}var Nt=RegExp("^T?"+gt.source+"$"),Vt=/^-?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 Mt(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(ie(i)),months:x(ie(n)),weeks:x(ie(r)),days:x(ie(o)),hours:x(ie(s)),minutes:x(ie(a)),seconds:x(ie(c),"-0"===c),milliseconds:x(ne(u),l)}]}var Et={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Dt(e,t,i,n,r,o,s){var a={year:2===t.length?de(ie(t)):ie(t),month:be.indexOf(i)+1,day:ie(n),hour:ie(r),minute:ie(o)};return s&&(a.second=ie(s)),e&&(a.weekday=e.length>3?we.indexOf(e)+1:Se.indexOf(e)+1),a}var At=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function 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=Dt(i,o,r,n,s,a,c);return t=u?Et[u]:d?0:xe(l,x),[h,new Be(t)]}var Ct=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Ft=/^(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$/,Lt=/^(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 Pt(e){var t=e[1],i=e[2],n=e[3];return[Dt(t,e[4],n,i,e[5],e[6],e[7]),Be.utcInstance]}function zt(e){var t=e[1],i=e[2],n=e[3],r=e[4],o=e[5],s=e[6];return[Dt(t,e[7],i,n,r,o,s),Be.utcInstance]}var Zt=xt(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,yt),Ut=xt(/(\d{4})-?W(\d\d)(?:-?(\d))?/,yt),Ht=xt(/(\d{4})-?(\d{3})/,yt),qt=xt(pt),Bt=ht(Tt,Ot,It),Wt=ht(bt,Ot,It),Jt=ht(kt,Ot,It),Gt=ht(Ot,It);var Yt=ht(Ot);var $t=xt(/(\d{4})-(\d\d)-(\d\d)/,wt),Kt=xt(_t),Xt=ht(Tt,Ot,It,Rt),Qt=ht(Ot,It,Rt);var ei={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}},ti=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}},ei),ii=365.2425,ni=30.436875,ri=Object.assign({years:{quarters:4,months:12,weeks:52.1775,days:ii,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:ni,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3}},ei),oi=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],si=oi.slice(0).reverse();function ai(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 ui(n)}function ci(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 ui=function(){function e(e){var t="longterm"===e.conversionAccuracy||!1;this.values=e.values,this.loc=e.loc||lt.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=t?ri:ti,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 p("Duration.fromObject: argument expected to be an object, got "+(null===t?"null":typeof t));return new e({values:fe(t,e.normalizeUnit,["locale","numberingSystem","conversionAccuracy","zone"]),loc:lt.fromObject(t),conversionAccuracy:t.conversionAccuracy})},e.fromISO=function(t,i){var n=function(e){return ft(e,[Vt,Mt])}(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 ft(e,[Nt,Yt])}(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 p("need to specify a reason the Duration is invalid");var n=t instanceof je?t:new je(t,i);if(et.throwOnInvalid)throw new v(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 g(e);return t},e.isDuration=function(e){return e&&e.isLuxonDuration||!1};var t=e.prototype;return t.toFormat=function(e,t){void 0===t&&(t={});var i=Object.assign({},t,{floor:!1!==t.round&&!1!==t.floor});return this.isValid?Ae.create(this.loc,i).formatDurationFromString(this,e):"Invalid Duration"},t.toObject=function(e){if(void 0===e&&(e={}),!this.isValid)return{};var t=Object.assign({},this.values);return e.includeConfig&&(t.conversionAccuracy=this.conversionAccuracy,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t},t.toISO=function(){if(!this.isValid)return null;var e="P";return 0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=re(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=di(e),n={},r=l(oi);!(t=r()).done;){var o=t.value;(Q(i.values,o)||Q(this.values,o))&&(n[o]=i.get(o)+this.get(o))}return ai(this,{values:n},!0)},t.minus=function(e){if(!this.isValid)return this;var t=di(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]=he(e(this.values[r],r))}return ai(this,{values:t},!0)},t.get=function(t){return this[e.normalizeUnit(t)]},t.set=function(t){return this.isValid?ai(this,{values:Object.assign(this.values,fe(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),ai(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){si.reduce((function(i,n){return B(t[n])?i:(i&&ci(e,t,i,t,n),n)}),null)}(this.matrix,e),ai(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=l(oi);!(o=u()).done;){var d=o.value;if(i.indexOf(d)>=0){r=d;var x=0;for(var h in a)x+=this.matrix[h][d]*a[h],a[h]=0;W(c[d])&&(x+=c[d]);var f=Math.trunc(x);for(var v in s[d]=f,a[d]=x-f,c)oi.indexOf(v)>oi.indexOf(d)&&ci(this.matrix,c,v,s,d)}else W(c[d])&&(a[d]=c[d])}for(var m in a)0!==a[m]&&(s[r]+=m===r?a[m]:a[m]/this.matrix[r][m]);return ai(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 ai(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=l(oi);!(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 di(e){if(W(e))return ui.fromMillis(e);if(ui.isDuration(e))return e;if("object"==typeof e)return ui.fromObject(e);throw new p("Unknown duration argument "+e+" of type "+typeof e)}var li="Invalid Interval";function xi(e,t){return e&&e.isValid?t&&t.isValid?t<e?hi.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:hi.invalid("missing or invalid end"):hi.invalid("missing or invalid start")}var hi=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 p("need to specify a reason the Interval is invalid");var n=t instanceof je?t:new je(t,i);if(et.throwOnInvalid)throw new f(n);return new e({invalid:n})},e.fromDateTimes=function(t,i){var n=fn(t),r=fn(i),o=xi(n,r);return null==o?new e({start:n,end:r}):o},e.after=function(t,i){var n=di(i),r=fn(t);return e.fromDateTimes(r,r.plus(n))},e.before=function(t,i){var n=di(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=ui.fromISO(o,i);if(d.isValid)return e.after(s,d)}else if(u){var l=ui.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=di(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=l((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()+")":li},t.toISO=function(e){return this.isValid?this.s.toISO(e)+"/"+this.e.toISO(e):li},t.toISODate=function(){return this.isValid?this.s.toISODate()+"/"+this.e.toISODate():li},t.toISOTime=function(e){return this.isValid?this.s.toISOTime(e)+"/"+this.e.toISOTime(e):li},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):li},t.toDuration=function(e,t){return this.isValid?this.e.diff(this.s,e,t):ui.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}(),fi=function(){function e(){}return e.hasDST=function(e){void 0===e&&(e=et.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 He.isValidSpecifier(e)&&He.isValidZone(e)},e.normalizeZone=function(e){return Je(e,et.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||lt.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||lt.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)||lt.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)||lt.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 lt.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 lt.create(n,null,"gregory").eras(e)},e.features=function(){var e=!1,t=!1,i=!1,n=!1;if(G()){e=!0,t=Y(),n=$();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 vi(e,t){var i=function(e){return e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf()},n=i(t)-i(e);return Math.floor(ui.fromMillis(n).as("days"))}function mi(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=vi(e,t);return(i-i%7)/7}],["days",vi]];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=ui.fromObject(Object.assign(s,n));return d.length>0?(x=ui.fromMillis(u,n)).shiftTo.apply(x,d).plus(h):h}var gi={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},pi={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},yi=gi.hanidec.replace(/[\[|\]]/g,"").split("");function bi(e,t){var i=e.numberingSystem;return void 0===t&&(t=""),new RegExp(""+gi[i||"latn"]+t)}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(gi.hanidec))t+=yi.indexOf(e[i]);else for(var r in pi){var o=pi[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 Ti(e){return e.replace(/\./g,"").replace(wi," ").toLowerCase()}function Oi(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 Ti(n)===Ti(e)}))+t}}}function Ii(e,t){return{regex:e,deser:function(e){return xe(e[1],e[2])},groups:t}}function Ri(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=Ae.macroTokenToFormatOpts(e.val);if(!i)return e;var n=Ae.create(t,i).formatDateTimeParts((Vi||(Vi=hn.fromMillis(1555555555555)),Vi)).map((function(e){return function(e,t,i){var n=e.type,r=e.value;if("literal"===n)return{literal:!0,val:r};var o=i[n],s=Ni[n];return"object"==typeof s&&(s=s[o]),s?{literal:!1,val:s}:void 0}(e,0,i)}));return n.includes(void 0)?e:n}function Ei(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)})))}(Ae.parseFormat(i),e),r=n.map((function(t){return i=t,r=bi(n=e),o=bi(n,"{2}"),s=bi(n,"{3}"),a=bi(n,"{4}"),c=bi(n,"{6}"),u=bi(n,"{1,2}"),d=bi(n,"{1,3}"),l=bi(n,"{1,6}"),x=bi(n,"{1,9}"),h=bi(n,"{2,4}"),f=bi(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 Oi(n.eras("short",!1),0);case"GG":return Oi(n.eras("long",!1),0);case"y":return ki(l);case"yy":case"kk":return ki(h,de);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 Oi(n.months("short",!0,!1),1);case"MMMM":return Oi(n.months("long",!0,!1),1);case"LLL":return Oi(n.months("short",!1,!1),1);case"LLLL":return Oi(n.months("long",!1,!1),1);case"o":case"S":return ki(d);case"ooo":case"SSS":return ki(s);case"u":return Ri(x);case"a":return Oi(n.meridiems(),0);case"E":case"c":return ki(r);case"EEE":return Oi(n.weekdays("short",!1,!1),1);case"EEEE":return Oi(n.weekdays("long",!1,!1),1);case"ccc":return Oi(n.weekdays("short",!0,!1),1);case"cccc":return Oi(n.weekdays("long",!0,!1),1);case"Z":case"ZZ":return Ii(new RegExp("([+-]"+u.source+")(?::("+o.source+"))?"),2);case"ZZZ":return Ii(new RegExp("([+-]"+u.source+")("+o.source+")?"),2);case"z":return Ri(/[a-z_+-/]{1,256}?/i);default:return v(e)}}(i)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"},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(Q(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=B(e.Z)?B(e.z)?null:He.create(e.z):new Be(e.Z),B(e.q)||(e.M=3*(e.q-1)+1),B(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),B(e.u)||(e.S=ne(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],v=h[1];if(Q(x,"a")&&Q(x,"H"))throw new m("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:n,regex:u,rawMatches:l,matches:x,result:f,zone:v}}var Di=[0,31,59,90,120,151,181,212,243,273,304,334],Ai=[0,31,60,91,121,152,182,213,244,274,305,335];function ji(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+(oe(e)?Ai:Di)[t-1]}function Li(e,t){var i=oe(e)?Ai:Di,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=ue(t=i-1):a>ue(i)?(t=i+1,a=1):t=i,Object.assign({weekYear:t,weekNumber:a,weekday:s},me(e))}function zi(e){var t,i=e.weekYear,n=e.weekNumber,r=e.weekday,o=Ci(i,1,4),s=se(i),a=7*n+r-o-3;a<1?a+=se(t=i-1):a>s?(t=i+1,a-=se(i)):t=i;var c=Li(t,a),u=c.month,d=c.day;return Object.assign({year:t,month:u,day:d},me(e))}function Zi(e){var t=e.year,i=Fi(t,e.month,e.day);return Object.assign({year:t,ordinal:i},me(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},me(e))}function Hi(e){var t=J(e.year),i=ee(e.month,1,12),n=ee(e.day,1,ae(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=ee(t,0,23)||24===t&&0===i&&0===n&&0===r,s=ee(i,0,59),a=ee(n,0,59),c=ee(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 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(ce(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,ae(n,r))+Math.trunc(t.days)+7*Math.trunc(t.weeks)}),s=ui.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(ce(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?Ae.create(lt.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 g(e);return t}function ln(e,t){for(var i,n=l(an);!(i=n()).done;){var r=i.value;B(e[r])&&(e[r]=rn[r])}var o=Hi(e)||qi(e);if(o)return hn.invalid(o);var s=et.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=!!B(i.round)||i.round,r=function(e,r){return e=re(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=l(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||et.defaultZone,i=e.invalid||(Number.isNaN(e.ts)?new je("invalid input"):null)||(t.isValid?null:Ji(t));this.ts=B(e.ts)?et.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||lt.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 B(t)?e.now():ln({year:t,month:i,day:n,hour:r,minute:o,second:s,millisecond:a},et.defaultZone)},e.utc=function(t,i,n,r,o,s,a){return B(t)?new e({ts:et.now(),zone:Be.utcInstance}):ln({year:t,month:i,day:n,hour:r,minute:o,second:s,millisecond:a},Be.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=Je(i.zone,et.defaultZone);return o.isValid?new e({ts:r,zone:o,loc:lt.fromObject(i)}):e.invalid(Ji(o))},e.fromMillis=function(t,i){if(void 0===i&&(i={}),W(t))return t<-Wi||t>Wi?e.invalid("Timestamp out of range"):new e({ts:t,zone:Je(i.zone,et.defaultZone),loc:lt.fromObject(i)});throw new p("fromMillis requires a numerical input, but received a "+typeof t+" with value "+t)},e.fromSeconds=function(t,i){if(void 0===i&&(i={}),W(t))return new e({ts:1e3*t,zone:Je(i.zone,et.defaultZone),loc:lt.fromObject(i)});throw new p("fromSeconds requires a numerical input")},e.fromObject=function(t){var i=Je(t.zone,et.defaultZone);if(!i.isValid)return e.invalid(Ji(i));var n=et.now(),r=i.offset(n),o=fe(t,dn,["zone","locale","outputCalendar","numberingSystem"]),s=!B(o.ordinal),a=!B(o.year),c=!B(o.month)||!B(o.day),u=a||c,d=o.weekYear||o.weekNumber,x=lt.fromObject(t);if((u||s)&&d)throw new m("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&s)throw new m("Can't mix ordinal dates with month/day");var h,f,v=d||o.weekday&&!u,g=Ki(n,r);v?(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=l(h);!(p=b()).done;){var k=p.value;B(o[k])?o[k]=y?f[k]:g[k]:y=!0}var _=v?function(e){var t=J(e.weekYear),i=ee(e.weekNumber,1,ue(e.weekYear)),n=ee(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=J(e.year),i=ee(e.ordinal,1,se(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(v?zi(o):s?Ui(o):o,r,i),T=new e({ts:S[0],zone:i,o:S[1],loc:x});return o.weekday&&u&&t.weekday!==T.weekday?e.invalid("mismatched weekday","you can't specify both a weekday of "+o.weekday+" and a date of "+T.toISO()):T},e.fromISO=function(e,t){void 0===t&&(t={});var i=function(e){return ft(e,[Zt,Bt],[Ut,Wt],[Ht,Jt],[qt,Gt])}(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 ft(function(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e),[At,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 ft(e,[Ct,Pt],[Ft,Pt],[Lt,zt])}(e);return en(i[0],i[1],t,"HTTP",t)},e.fromFormat=function(t,i,n){if(void 0===n&&(n={}),B(t)||B(i))throw new p("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=Ei(e,t,i);return[n.result,n.zone,n.invalidReason]}(lt.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 ft(e,[$t,Xt],[Kt,Qt])}(e);return en(i[0],i[1],t,"SQL",e)},e.invalid=function(t,i){if(void 0===i&&(i=null),!t)throw new p("need to specify a reason the DateTime is invalid");var n=t instanceof je?t:new je(t,i);if(et.throwOnInvalid)throw new h(n);return new e({invalid:n})},e.isDateTime=function(e){return e&&e.isLuxonDateTime||!1};var t=e.prototype;return t.get=function(e){return this[e]},t.resolvedLocaleOpts=function(e){void 0===e&&(e={});var t=Ae.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t.locale,numberingSystem:t.numberingSystem,outputCalendar:t.calendar}},t.toUTC=function(e,t){return void 0===e&&(e=0),void 0===t&&(t={}),this.setZone(Be.instance(e),t)},t.toLocal=function(){return this.setZone(et.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=Je(t,et.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=fe(e,dn,[]),n=!B(i.weekYear)||!B(i.weekNumber)||!B(i.weekday),r=!B(i.ordinal),o=!B(i.year),s=!B(i.month)||!B(i.day),a=o||s,c=i.weekYear||i.weekNumber;if((a||r)&&c)throw new m("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(s&&r)throw new m("Can't mix ordinal dates with month/day");n?t=zi(Object.assign(Pi(this.c),i)):B(i.ordinal)?(t=Object.assign(this.toObject(),i),B(i.day)&&(t.day=Math.min(ae(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,di(e))):this},t.minus=function(e){return this.isValid?Yi(this,Qi(this,di(e).negate())):this},t.startOf=function(e){if(!this.isValid)return this;var t={},i=ui.normalizeUnit(e);switch(i){case"years":t.month=1;case"quarters":case"months":t.day=1;case"weeks":case"days":t.hour=0;case"hours":t.minute=0;case"minutes":t.second=0;case"seconds":t.millisecond=0}if("weeks"===i&&(t.weekday=1),"quarters"===i){var n=Math.ceil(this.month/3);t.month=3*(n-1)+1}return this.set(t)},t.endOf=function(e){var t;return this.isValid?this.plus((t={},t[e]=1,t)).startOf(e).minus(1):this},t.toFormat=function(e,t){return void 0===t&&(t={}),this.isValid?Ae.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):Bi},t.toLocaleString=function(e){return void 0===e&&(e=w),this.isValid?Ae.create(this.loc.clone(e),e).formatDateTime(this):Bi},t.toLocaleParts=function(e){return void 0===e&&(e={}),this.isValid?Ae.create(this.loc.clone(e),e).formatDateTimeParts(this):[]},t.toISO=function(e){return void 0===e&&(e={}),this.isValid?this.toISODate(e)+"T"+this.toISOTime(e):null},t.toISODate=function(e){var t=(void 0===e?{}:e).format,i="basic"===(void 0===t?"extended":t)?"yyyyMMdd":"yyyy-MM-dd";return this.year>9999&&(i="+"+i),tn(this,i)},t.toISOWeekDate=function(){return tn(this,"kkkk-'W'WW-c")},t.toISOTime=function(e){var t=void 0===e?{}:e,i=t.suppressMilliseconds,n=void 0!==i&&i,r=t.suppressSeconds,o=void 0!==r&&r,s=t.includeOffset,a=void 0===s||s,c=t.includePrefix,u=void 0!==c&&c,d=t.format;return nn(this,{suppressSeconds:o,suppressMilliseconds:n,includeOffset:a,includePrefix:u,format:void 0===d?"extended":d})},t.toRFC2822=function(){return tn(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)},t.toHTTP=function(){return tn(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")},t.toSQLDate=function(){return tn(this,"yyyy-MM-dd")},t.toSQLTime=function(e){var t=void 0===e?{}:e,i=t.includeOffset,n=void 0===i||i,r=t.includeZone;return nn(this,{includeOffset:n,includeZone:void 0!==r&&r,spaceZone:!0})},t.toSQL=function(e){return void 0===e&&(e={}),this.isValid?this.toSQLDate()+" "+this.toSQLTime(e):null},t.toString=function(){return this.isValid?this.toISO():Bi},t.valueOf=function(){return this.toMillis()},t.toMillis=function(){return this.isValid?this.ts:NaN},t.toSeconds=function(){return this.isValid?this.ts/1e3:NaN},t.toJSON=function(){return this.toISO()},t.toBSON=function(){return this.toJSDate()},t.toObject=function(e){if(void 0===e&&(e={}),!this.isValid)return{};var t=Object.assign({},this.c);return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t},t.toJSDate=function(){return new Date(this.isValid?this.ts:NaN)},t.diff=function(e,t,i){if(void 0===t&&(t="milliseconds"),void 0===i&&(i={}),!this.isValid||!e.isValid)return ui.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(ui.normalizeUnit),s=e.valueOf()>this.valueOf(),a=mi(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?hi.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 p("min requires all arguments be DateTimes");return K(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 p("max requires all arguments be DateTimes");return K(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 Ei(lt.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?fi.months("short",{locObj:this.loc})[this.month-1]:null}},{key:"monthLong",get:function(){return this.isValid?fi.months("long",{locObj:this.loc})[this.month-1]:null}},{key:"weekdayShort",get:function(){return this.isValid?fi.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}},{key:"weekdayLong",get:function(){return this.isValid?fi.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 oe(this.year)}},{key:"daysInMonth",get:function(){return ae(this.year,this.month)}},{key:"daysInYear",get:function(){return this.isValid?se(this.year):NaN}},{key:"weeksInWeekYear",get:function(){return this.isValid?ue(this.weekYear):NaN}}],[{key:"DATE_SHORT",get:function(){return w}},{key:"DATE_MED",get:function(){return S}},{key:"DATE_MED_WITH_WEEKDAY",get:function(){return T}},{key:"DATE_FULL",get:function(){return O}},{key:"DATE_HUGE",get:function(){return I}},{key:"TIME_SIMPLE",get:function(){return R}},{key:"TIME_WITH_SECONDS",get:function(){return N}},{key:"TIME_WITH_SHORT_OFFSET",get:function(){return V}},{key:"TIME_WITH_LONG_OFFSET",get:function(){return M}},{key:"TIME_24_SIMPLE",get:function(){return E}},{key:"TIME_24_WITH_SECONDS",get:function(){return D}},{key:"TIME_24_WITH_SHORT_OFFSET",get:function(){return A}},{key:"TIME_24_WITH_LONG_OFFSET",get:function(){return j}},{key:"DATETIME_SHORT",get:function(){return C}},{key:"DATETIME_SHORT_WITH_SECONDS",get:function(){return F}},{key:"DATETIME_MED",get:function(){return L}},{key:"DATETIME_MED_WITH_SECONDS",get:function(){return P}},{key:"DATETIME_MED_WITH_WEEKDAY",get:function(){return z}},{key:"DATETIME_FULL",get:function(){return Z}},{key:"DATETIME_FULL_WITH_SECONDS",get:function(){return U}},{key:"DATETIME_HUGE",get:function(){return H}},{key:"DATETIME_HUGE_WITH_SECONDS",get:function(){return q}}]),e}();function fn(e){if(hn.isDateTime(e))return e;if(e&&e.valueOf&&W(e.valueOf()))return hn.fromJSDate(e);if(e&&"object"==typeof e)return hn.fromObject(e);throw new p("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:()=>ts,RevisionTracker:()=>an});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,T=S.hasOwnProperty,O=S.toString,I=w?w.toStringTag:void 0;const R=function(e){var t=T.call(e,I),i=e[I];try{e[I]=void 0;var n=!0}catch(e){}var r=O.call(e);return n&&(t?e[I]=i:delete e[I]),r};var N=Object.prototype.toString;const V=function(e){return N.call(e)};var M=w?w.toStringTag:void 0;const E=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":M&&M in Object(e)?R(e):V(e)};const D=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};const A=function(e){if(!D(e))return!1;var t=E(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!(!D(e)||L(e))&&(A(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 Te=function(e,t){for(var i=-1,n=Array(e);++i<e;)n[i]=t(i);return n};const Oe=function(e){return null!=e&&"object"==typeof e};const Ie=function(e){return Oe(e)&&"[object Arguments]"==E(e)};var Re=Object.prototype,Ne=Re.hasOwnProperty,Ve=Re.propertyIsEnumerable;const Me=Ie(function(){return arguments}())?Ie:function(e){return Oe(e)&&Ne.call(e,"callee")&&!Ve.call(e,"callee")};const Ee=Array.isArray;const De=function(){return!1};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,je=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Ce=je&&je.exports===Ae?_.Buffer:void 0;const Fe=(Ce?Ce.isBuffer:void 0)||De;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 Oe(e)&&ze(e.length)&&!!Ze[E(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=Ee(e),n=!i&&Me(e),r=!i&&!n&&Fe(e),o=!i&&!n&&!r&&Ye(e),s=i||n||r||o,a=s?Te(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)&&!A(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(!D(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 Tt=et(Object.getPrototypeOf,Object);const Ot=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)St(t,_t(e)),e=Tt(e);return t}:yt;const It=function(e,t){return Se(e,Ot(e),t)};const Rt=function(e,t,i){var n=t(e);return Ee(e)?n:St(n,i(e))};const Nt=function(e){return Rt(e,ot,_t)};const Vt=function(e){return Rt(e,dt,Ot)};const Mt=Y(_,"DataView");const Et=Y(_,"Promise");const Dt=Y(_,"Set");const At=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(Et),Ht=z(Dt),qt=z(At),Bt=E;(Mt&&Bt(new Mt(new ArrayBuffer(1)))!=Pt||$&&Bt(new $)!=jt||Et&&Bt(Et.resolve())!=Ct||Dt&&Bt(new Dt)!=Ft||At&&Bt(new At)!=Lt)&&(Bt=function(e){var t=E(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(!D(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(Tt(e))};const ci=function(e){return Oe(e)&&"[object Map]"==Wt(e)};var ui=Je&&Je.isMap;const di=ui?He(ui):ci;const li=function(e){return Oe(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["[object Object]"]=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(!D(t))return t;var l=Ee(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?It(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||Oe(e)&&"[object Symbol]"==E(e)};var ki=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_i=/^\w*$/;const wi=function(e,t){if(Ee(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 Ti=Si;var Oi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ii=/\\(\\)?/g;const Ri=function(e){var t=Ti(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(Oi,(function(e,i,n,r){t.push(n?r.replace(Ii,"$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 Ei=function e(t){if("string"==typeof t)return t;if(Ee(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 Di=function(e){return null==e?"":Ei(e)};const Ai=function(e,t){return Ee(e)?e:wi(e,t)?[e]:Ri(Di(e))};const ji=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(!D(e))return e;for(var r=-1,o=(t=Ai(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=D(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=Ai(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=Ai(t,e),null==(e=Zi(e,t))||delete e[ji(Li(t))]};const Hi=function(e,t){return null==e||Ui(e,t)},qi=["toJSON","removeAttribute","createdAt","toVersion","setAttribute","diffData","authors","fromVersion","set","name","fire","creatorId","creator","_update","map","attributes"];var Bi,Wi;Bi=qi,Wi=431,function(e){for(;--e;)Bi.push(Bi.shift())}(++Wi);const Ji=function(e,t){return qi[e-=0]};class Gi{constructor(e){this.id=e.id||(0,t.uid)(),this[Ji("0x9")]("name",e[Ji("0xa")]||""),this[Ji("0xd")]=e[Ji("0xd")]||null,this[Ji("0x7")]=e[Ji("0x7")]||[],this.set(Ji("0x3"),e[Ji("0x3")]||new Date),this[Ji("0x6")]=e[Ji("0x6")]||null,this[Ji("0x9")](Ji("0x0"),e[Ji("0x0")]||{}),this[Ji("0x4")]=e[Ji("0x4")]||0,this[Ji("0x8")]=e[Ji("0x8")]||0}setName(e){this[Ji("0xe")]({name:e})}[Ji("0x5")](e,t){const i=yi(this[Ji("0x0")]);Fi(i,e,t),this[Ji("0xe")]({attributes:i})}[Ji("0x2")](e){const t=yi(this[Ji("0x0")]);Hi(t,e),this._update({attributes:t})}[Ji("0xe")](e,t=!1){let i=!1;const n={id:this.id};for(const t of[Ji("0xa"),Ji("0x3"),Ji("0x6"),Ji("0x7"),Ji("0x0"),"toVersion",Ji("0x8"),Ji("0xc")]){const r=e[t];void 0!==r&&r!==this[t]&&(this[t]=r,n[t]=r,i=!0)}i&&(n[Ji("0x7")]&&(n.authorsIds=n[Ji("0x7")][Ji("0xf")]((e=>e.id)),delete n.authors),this[Ji("0xb")](Ji("0xe"),n,t))}[Ji("0x1")](){return{id:this.id,name:this.name,creatorId:this[Ji("0xd")]?this[Ji("0xd")].id:null,authorsIds:this.authors[Ji("0xf")]((e=>e.id)),diffData:this[Ji("0x6")],createdAt:this[Ji("0x3")],attributes:this.attributes,fromVersion:this[Ji("0x8")],toVersion:this[Ji("0x4")]}}}(0,t.mix)(Gi,t.ObservableMixin);const Yi=["plugins","add","pop","slice","getRevision","config","authorsIds","createdAt","addRevision","getEarlierVisibleRevision","name","getUser","getRevisionsIterator","charCodeAt","editor","length","earlier","_revisions","replace","isNaN","fromCharCode","attributes","join","then","getLaterVisibleRevision","toJSON","substring","Users","push","later","map","creatorId","getIndex","from","get","getRevisionsInDiff","createRevision"];var $i,Ki;$i=Yi,Ki=420,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 pluginName(){return"RevisionsRepository"}constructor(...e){super(...e),this[Xi("0x4")]=new t.Collection}get[Xi("0x2")](){return this[Xi("0x4")][Xi("0x2")]}afterInit(){!function(e){const t=[1,85,78,115,198,255,50,112,83,87,161],i=f([52,48,52,52,50,48,49,48]),n=[127,34,6,211,167,86,146,199,132,160,18],r=n[0]*t[1],o=n[0]*t[2],s=n[2]*t[2],a=f([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]),c=function(r){if(function(){if(!e[f([112,108,117,103,105,110,115])][f([104,97,115])](f([82,101,118,105,115,105,111,110,86,105,101,119,101,114])))return!1;for(const e in window)if(Number[Xi("0x6")](Number(e))&&window[e]===s)return!0;return!1}())return d(f([108,105,99,101,110,115,101,75,101,121,86,97,108,105,100]));if(e[f([112,108,117,103,105,110,115])][f([104,97,115])](f([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))&&e[f([112,108,117,103,105,110,115])][f([103,101,116])](f([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))[f([115,116,97,116,101])]==f([99,111,110,110,101,99,116,101,100]))return window[l()]=s,d(f([108,105,99,101,110,115,101,75,101,121,86,97,108,105,100]));if(e[f([112,108,117,103,105,110,115])][f([104,97,115])](f([84,114,97,99,107,67,104,97,110,103,101,115,68,97,116,97,71,101,116,116,101,114]))&&e[f([112,108,117,103,105,110,115])][f([103,101,116])](f([84,114,97,99,107,67,104,97,110,103,101,115,68,97,116,97,71,101,116,116,101,114]))[f([114,101,115,117,108,116])]==f([101,110,100]))return d(f([108,105,99,101,110,115,101,75,101,121,86,97,108,105,100]));try{const e=function(e){const i=[29,221,175,90,231,133,239,240,75,180];return function(e,t){const i=atob(e),n=Array.from(function(e){const t=new Uint8Array(e[Xi("0x2")]);for(let i=0;i<e.length;i++)t[i]=e[Xi("0x0")](i);return t}(i)),r=n[Xi("0x1a")](),o=n[Xi("0x1a")]();return function(e){let t="";for(const i of e)t+=String[Xi("0x7")](i);return t}(function(e,t,i){const n={};n[f([110,117,109,98,101,114,79,102,82,111,117,110,100,115])]={16:10,24:12,32:14},n[f([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],n[f([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],n[f([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],n[f([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],n[f([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],n[f([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],n[f([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],n[f([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],n[f([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],n[f([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 r=new Uint8Array(16);for(let e=15;e>=0;--e)r[e]=i%256,i=parseInt(i/256);let o=null,s=16;const a=new Uint8Array(t),c=[],u=[];h();for(let t=0;t<e[Xi("0x2")];t++)16===s&&(o=x(r),s=0,l(r)),e[t]^=o[s++];return e;function d(e){const t=[];for(let i=0;i<e.length;i+=4)t[Xi("0xf")](e[i]<<24|e[i+1]<<16|e[i+2]<<8|e[i+3]);return t}function l(e){for(let t=15;t>=0;t--){if(255!==e[t]){e[t]++;break}e[t]=0}}function x(e){const t=c.length-1,i=[0,0,0,0];let r=d(e);for(let e=0;e<4;e++)r[e]^=c[0][e];for(let e=1;e<t;e++){for(let t=0;t<4;t++)i[t]=n[f([84,49])][r[t]>>24&255]^n[f([84,50])][r[(t+1)%4]>>16&255]^n[f([84,51])][r[(t+2)%4]>>8&255]^n[f([84,52])][255&r[(t+3)%4]]^c[e][t];r=i[Xi("0x1b")]()}const o=new Uint8Array(16);let s;for(let e=0;e<4;e++)s=c[t][e],o[4*e]=255&(n[f([83])][r[e]>>24&255]^s>>24),o[4*e+1]=255&(n[f([83])][r[(e+1)%4]>>16&255]^s>>16),o[4*e+2]=255&(n[f([83])][r[(e+2)%4]>>8&255]^s>>8),o[4*e+3]=255&(n[f([83])][255&r[(e+3)%4]]^s);return o}function h(){const e=n[f([110,117,109,98,101,114,79,102,82,111,117,110,100,115])][a[Xi("0x2")]];for(let t=0;t<=e;t++)c[Xi("0xf")]([0,0,0,0]),u[Xi("0xf")]([0,0,0,0]);const t=4*(e+1),i=a[Xi("0x2")]/4,r=d(a);let o;for(let t=0;t<i;t++)o=t>>2,c[o][t%4]=r[t],u[e-o][t%4]=r[t];let s,l=0,x=i;for(;x<t;){s=r[i-1],r[0]^=n[f([83])][s>>16&255]<<24^n[f([83])][s>>8&255]<<16^n[f([83])][255&s]<<8^n[f([83])][s>>24&255]^n[f([114,99,111,110])][l]<<24,l+=1;for(let e=1;e<i/2;e++)r[e]^=r[e-1];s=r[i/2-1],r[i/2]^=n[f([83])][255&s]^n[f([83])][s>>8&255]<<8^n[f([83])][s>>16&255]<<16^n[f([83])][s>>24&255]<<24;for(let e=i/2+1;e<i;e++)r[e]^=r[e-1];let o,a,d=0;for(;d<i&&x<t;)o=x>>2,a=x%4,c[o][a]=r[d],u[e-o][a]=r[d++],x++}for(let t=1;t<e;t++)for(let e=0;e<4;e++)s=u[t][e],u[t][e]=n[f([85,49])][s>>24&255]^n[f([85,50])][s>>16&255]^n[f([85,51])][s>>8&255]^n[f([85,52])][255&s]}}(n,t,o+256*r))}(e,new(window[f([85,105,110,116,56,65,114,114,97,121])])([...t,...i,...n]))}(r),o=JSON.parse(e),s=parseInt(o[f([49])]),a=parseInt(o[f([51])]),c=parseInt(o[f([52])])||0,u=parseInt(o[f([53])])||0;return 8&c?u&&!window[f([111,112,101,110])][f([99,108,111,115,101,100])]||parseInt(i)/2>s?d(f([108,105,99,101,110,115,101,75,101,121,73,110,118,97,108,105,100])):d(f(a?[108,105,99,101,110,115,101,75,101,121,84,114,105,97,108]:[108,105,99,101,110,115,101,75,101,121,86,97,108,105,100])):d(f([108,105,99,101,110,115,101,75,101,121,73,110,118,97,108,105,100]))}catch(e){return d(f([108,105,99,101,110,115,101,75,101,121,73,110,118,97,108,105,100]))}}(e[Xi("0x1d")][Xi("0x15")](f([108,105,99,101,110,115,101,75,101,121])));if(c==f([108,105,99,101,110,115,101,75,101,121,73,110,118,97,108,105,100]))x(e);else if(c==f([108,105,99,101,110,115,101,75,101,121,84,114,105,97,108])){const i=function(){if(!e[f([112,108,117,103,105,110,115])][f([104,97,115])](f([82,101,118,105,115,105,111,110,86,105,101,119,101,114])))return!1;for(const e in window)if(Number[Xi("0x6")](Number(e))){if(window[e]===r)return f([116,105,109,101]);if(window[e]===o)return f([114,101,118,105,115,105,111,110,115])}return!1}();i&&u(e,i);const s=function(){let i=n[6]*t[8]*t[6];return e[f([112,108,117,103,105,110,115])][f([104,97,115])](f([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))&&(i/=10),i}();window[f([115,101,116,84,105,109,101,111,117,116])]((()=>{u(e,f([116,105,109,101]))}),s);const a=e[f([112,108,117,103,105,110,115])][f([103,101,116])](f([82,101,118,105,115,105,111,110,115,82,101,112,111,115,105,116,111,114,121]))[f([95,114,101,118,105,115,105,111,110,115])];a[Xi("0x2")]>=7?u(e,f([114,101,118,105,115,105,111,110,115])):a.on(f([97,100,100]),(()=>{a[Xi("0x2")]>=7&&u(e,f([114,101,118,105,115,105,111,110,115]))}))}function u(e,t){x(e),d(f([108,105,99,101,110,115,101,75,101,121,84,114,105,97,108,76,105,109,105,116,58])+t),window[l()]=t===f([116,105,109,101])?r:o}function d(t){const i=l();return e[i]=t,t}function l(){const e=String(window[f([112,101,114,102,111,114,109,97,110,99,101])][f([110,111,119])]())[Xi("0x5")](f([46]),"");let t="";for(let i=0;i<e[Xi("0x2")];i+=2){const n=parseInt(e[Xi("0xd")](i,i+2))%a.length;t+=a[n]}return t}function x(e){function t(){e[f([112,108,117,103,105,110,115])][f([104,97,115])](f([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))&&(e[f([112,108,117,103,105,110,115])][f([103,101,116])](f([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[f([117,110,98,105,110,100])](f([105,115,69,110,97,98,108,101,100])),e[f([112,108,117,103,105,110,115])][f([103,101,116])](f([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[f([105,115,69,110,97,98,108,101,100])]=!1,e[f([112,108,117,103,105,110,115])][f([103,101,116])](f([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[f([117,112,100,97,116,101])]=h,e[f([112,108,117,103,105,110,115])][f([103,101,116])](f([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[f([115,97,118,101,82,101,118,105,115,105,111,110])]=h,e[f([109,111,100,101,108])][f([99,104,97,110,103,101])]=h,e[f([109,111,100,101,108])][f([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,e[f([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](f([109,111,100,101,108]))),e[f([112,108,117,103,105,110,115])][f([104,97,115])](f([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))&&(e[f([112,108,117,103,105,110,115])][f([103,101,116])](f([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[f([117,110,98,105,110,100])](f([105,115,69,110,97,98,108,101,100])),e[f([112,108,117,103,105,110,115])][f([103,101,116])](f([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[f([105,115,69,110,97,98,108,101,100])]=!1,e[f([112,108,117,103,105,110,115])][f([103,101,116])](f([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[f([99,111,109,112,97,114,101])]=h,e[f([112,108,117,103,105,110,115])][f([103,101,116])](f([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[f([95,103,101,116,68,105,102,102])]=h)}e[f([115,116,97,116,101])]==f([114,101,97,100,121])?t():e[f([111,110,99,101])](f([114,101,97,100,121]),(()=>{if(e[f([112,108,117,103,105,110,115])][f([104,97,115])](f([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))&&t(),e[f([112,108,117,103,105,110,115])][f([104,97,115])](f([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))){const i=e[f([112,108,117,103,105,110,115])][f([103,101,116])](f([82,101,118,105,115,105,111,110,115,82,101,112,111,115,105,116,111,114,121])),n=i.getRevision(0),r=i.getEarlierVisibleRevision(n.id);e[f([112,108,117,103,105,110,115])][f([103,101,116])](f([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[f([99,111,109,112,97,114,101])](n.id,r?r.id:null,1)[Xi("0xa")]((()=>t()))}}))}function h(){return null}function f(e){return e.map((e=>String[Xi("0x7")](e)))[Xi("0x9")]("")}}(this[Xi("0x1")])}[Xi("0x17")](e){const t=this[Xi("0x1")][Xi("0x18")].get(Xi("0xe"));return new Gi({id:e.id,name:e[Xi("0x22")],creator:e[Xi("0x12")]?t[Xi("0x23")](e[Xi("0x12")]):null,diffData:e.diffData||e.data,authors:e[Xi("0x1e")][Xi("0x11")]((e=>t.getUser(e))),createdAt:new Date(e[Xi("0x1f")]),attributes:e[Xi("0x8")],fromVersion:e.fromVersion,toVersion:e.toVersion})}[Xi("0x20")](e,t=0){this[Xi("0x4")][Xi("0x19")](e,t)}getRevision(e){return this[Xi("0x4")][Xi("0x15")](e)}getRevisions({toJSON:e=!1}={}){const t=Array[Xi("0x14")](this[Xi("0x4")]);return t.reverse(),e?t[Xi("0x11")]((e=>e[Xi("0xc")]())):t}[Xi("0x13")](e){return this[Xi("0x4")][Xi("0x13")](e)}[Xi("0x21")](e){const[,t]=this[Xi("0x24")](e,{direction:Xi("0x3")});return t}[Xi("0xb")](e){const[,t]=this[Xi("0x24")](e,{direction:Xi("0x10")});return t}[Xi("0x16")](e){const t=[];for(const i of this[Xi("0x24")](e.newRevisionId))if(t[Xi("0xf")](i),i.id===e.oldRevisionId)break;return t}*getRevisionsIterator(e,{direction:t=Xi("0x3"),filter:i=(()=>!0)}={}){const n=Xi("0x3")===t?1:-1;let r=this._revisions[Xi("0x15")](e),o=this[Xi("0x13")](r);for(yield r;r;){if(o+=n,r=this[Xi("0x1c")](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"})}}const tn=["NEGATIVE_INFINITY","getCurrentRevisionId","then","start","getTime","parent","fromVersion","pluginName","_getVidAttributeName","children","_makeRevision","_transformMarkers","resolve","nodes","_touched","for","markerToData","getNodeByPath","has","_pendingAction","_authorId","shift","previousPosition","_continueCurrentRevision","authorsIds","getRootNames","init","dataDowncast","splitPosition","set","insert","getUser","childCount","initialData","_processRootBeforeSave","getChildren","_getViewJson","_handleMergeOperation","_getBaseVids","isPendingUpdate","hasContent","path","_source","_fixRange","length","oldRange","getWalker","default","_reset","includes","_getPreviousFrom","split","setSource","getIndex","toVersion","add","remove","_createInitialRevision","revision-end","_removePendingAction","editing","insertionPosition","useFillerType","Users","stringify","newRange","getAttribute","creator","RevisionTracker","adapter","_revisionId","_appendChild","_rootNames","createRevision","paragraph","size","data","_lastTo","_calculateMetaData","_getState","reverse","tableCell","_saveEmptyMetaData","diffData","stickiness","_removeRevisionMarkers","roots","history","marked","creatorId","_touchedMarkers","nodeAfter","item","dataToMarker","_loadState","createPositionAt","PendingActions","sourcePosition","marker","_diffRoots","setRevisionData","getData","vid_start","_isPendingUpdate","source","forEach","createRangeIn","_generateTape","revision","vid","getRange","_addPendingAction","move","insertions","plugins","_startingVersion","authors","_handleMarkerOperation","config","_lastFrom","createdAt","rootName","name","_bufferUpdate","markers","offsetSize","_copyMarkers","_applyOperations","_makeModelFromViewString","_clone","baseVersion","root","_handleOperation","_markChanges","loadState","Initial revision","_savedMetaData","toModel","$graveyard","_revisionDataBuilder","getMovedRangeStart","offset","processor","reinsert","map","graveyardPosition","revisionHistory.resumeUnsavedRevision","attributes","element","addRevisionData","_findInsertionIndex","_handleMoveOperation","_insertChild","_replaceEditorDataWithRevisionData","text","string","delete","createPositionFromPath","currentRevision","startsWith","createRange","saveRevision","createPositionAfter","document","isReady","clone","getOperations","elementStart","locale","RevisionsRepository","keys","editor-initial-data-replaced-with-revision-data","_bufferedUpdates","_loadedStateData","_setAttribute","_loadRevisionData","_handleSplitOperation","repository","revision:","userId","_fixOperation","clear","find","finally","version","slice","end","deletions","_cloneOperation","conversion","from","_baseRoots","push","_markers","_removeMetaData","_fixPosition","getRevisions","targetPosition","_initialRevisionId","max","_update","vid_end","afterInit","_createCurrentRevision","isEqual","_setConversion","_makeIdsRoot","elementEnd","parse","getOperation","requires","model","get","PENDING_ACTION_REVISION_HISTORY","type","upcast","_handleInsertOperation","getRevision","collaboration.channelId","revision-start","_getFromVersion","$text","_startingRevisionId","buildRevisionData","sort","getRevisionDocumentData","view","getChild","updateRevisions","filter","getLatestVersion","getTransformedByOperation","position","_execute","_idsRoots","editor","trim","affectsData","sendBufferedUpdates","_baseIdsRoots","values","_saveMetaData","_createFromRanges","Empty document","documentFragment","insertion"];var nn,rn;nn=tn,rn=136,function(e){for(;--e;)nn.push(nn.shift())}(++rn);const on=function(e,t){return tn[e-=0]},sn={c:o.ViewContainerElement,a:o.ViewAttributeElement,e:o.ViewEmptyElement,r:o.ViewRawElement,u:o.ViewUIElement};class an extends e.Plugin{static get[on("0x75")](){return on("0xb2")}static get[on("0x4a")](){return[r.Users,Qi,e.PendingActions]}constructor(...e){super(...e),this.adapter=null,this[on("0x8b")](on("0x1c"),!1),this[on("0x8b")]("isEnabled",!0),this[on("0x16")]=null;const i=(0,t.uid)();this[on("0x98")]={history:this[on("0x63")][on("0x4b")].document[on("0xc5")],getLatestVersion:()=>Promise[on("0x7a")](this.editor[on("0x4b")][on("0x1b")][on("0x30")]),getCurrentRevisionId:()=>i},this._revisionDataBuilder=new un(this[on("0x63")]),this[on("0x3e")]=this[on("0x63")][on("0xe4")][on("0x4c")](on("0x52"))||"initial",this[on("0x8b")](on("0x95"),!1),this[on("0x24")]=new Map,this[on("0x63")].config.define(on("0xa"),!0),this[on("0x25")]=null,this.editor.conversion[on("0x7d")](on("0x4f"))[on("0xcb")]({view:on("0xda")})}init(){this.repository=this[on("0x63")][on("0xe0")][on("0x4c")](on("0x21")),this[on("0x45")](),this[on("0x63")].data.on("ready",(()=>{const e=this[on("0x29")].getRevision(0),t=e&&null===e.creator?e:null;if(this[on("0x85")]=!!t&&this[on("0x63")][on("0xe4")][on("0x4c")](on("0xa")),this[on("0x63")][on("0xe0")].has("RealTimeCollaborationClient")){const i=this._source[on("0x6f")](),n=this[on("0x29")].getRevision(i);if(n)this[on("0xe1")]=n[on("0x74")],this[on("0x85")]=!1;else{const i=this[on("0x98")][on("0xc5")]._operations[on("0x2e")]((e=>!e._isInit)),n=i?i[on("0xf0")]:this[on("0x98")][on("0xc5")][on("0x30")];e?(e[on("0xa4")]<n&&e[on("0x40")]({toVersion:n}),this[on("0x85")]?(this[on("0x98")][on("0x6f")]=()=>t.id,this[on("0xe1")]=t[on("0x74")]):(this[on("0xe1")]=e[on("0xa4")],this[on("0x85")]=!1)):(this[on("0xe1")]=n,this[on("0x85")]=!1)}}else t&&(this[on("0x63")][on("0x4b")].document.history[on("0x30")]=Math[on("0x3f")](t.toVersion,this[on("0x63")][on("0x4b")][on("0x1b")].history[on("0x30")]),t[on("0x74")]===t[on("0xa4")]?(0!==t[on("0x74")]&&(this[on("0x98")][on("0x6f")]=()=>t.id),this[on("0x85")]=!1):this[on("0x85")]&&(this._source.getCurrentRevisionId=()=>t.id,this[on("0xe1")]=t[on("0x74")])),this[on("0x85")]||(this._startingVersion=this[on("0x63")].model[on("0x1b")][on("0x30")]);this[on("0x3")][on("0x88")](this._source[on("0xc5")]),this[on("0xa7")](this[on("0xe1")]),this[on("0x43")](this[on("0xe1")]),this[on("0xb3")]&&this[on("0x66")]()})),this.bind(on("0x1c")).to(this,on("0xd5"),(e=>!e))}async[on("0x42")](){if(this[on("0x29")][on("0x9a")]>0){const e=this[on("0x29")][on("0x51")](0),t=await this[on("0x59")](e);this[on("0x11")](t)}}[on("0xa2")](e){this[on("0x98")]=e}async update(){const e=await this[on("0x98")][on("0x5e")]();if(e>this[on("0x16")].toVersion){await this[on("0xcc")]();const t=this[on("0x57")]({revision:this.currentRevision,to:e});t[on("0xe2")]=t[on("0x86")][on("0x8")]((e=>this.editor[on("0xe0")][on("0x4c")](on("0xad")).getUser(e))),this[on("0x16")][on("0x40")](t)}}async _loadState(){this[on("0x85")]&&!this[on("0x25")]&&(await this._loadRevisionData(this[on("0x16")]),this[on("0x3")][on("0xf4")](this[on("0x16")]),this[on("0x25")]={fromVersion:this[on("0x16")].fromVersion,authors:this[on("0x16")][on("0xe2")].slice()})}async[on("0x19")](e={},i=null){const n=[];await this[on("0xcc")](),this[on("0x85")]=!1,i>this.currentRevision[on("0xa4")]&&(i=null),null===i&&(i=await this[on("0x98")].getLatestVersion());const r=this[on("0x54")](i),o=this.buildRevisionData({from:r,to:i});if(this[on("0x16")][on("0xa4")]<i){const e=this.buildRevisionData({revision:this[on("0x16")],from:i,to:i});e[on("0xe2")]=[],e[on("0x86")]=[],e.id=this[on("0x16")].id,this[on("0x16")][on("0x40")](e,!0),delete e[on("0xe2")],n[on("0x38")](e)}e[on("0xc7")]=this[on("0x63")][on("0xe0")][on("0x4c")](on("0xad")).me.id,e[on("0xe8")]=e[on("0xe8")]||null,e.id=e.id||(0,t.uid)(),e={...e,...o};const s=this[on("0xd")](e);n[on("0x38")](e);const a=this[on("0x29")][on("0xa3")](s);if(0!==a){const t=this[on("0x29")][on("0x51")](a-1);if(t[on("0x74")]!==i){const r=this[on("0x3")][on("0xd3")](i,t.toVersion),o={id:t.id,diffData:r[on("0xc1")],authorsIds:r[on("0x86")],authors:r.authorsIds.map((e=>this.editor[on("0xe0")][on("0x4c")](on("0xad"))[on("0x8d")](e))),fromVersion:i};t===this.currentRevision&&(o[on("0xe6")]=new Date(e[on("0xe6")][on("0x72")]()+10)),t._update(o,!0),delete o.authors,n[on("0x38")](o)}}if(this[on("0xb3")]){for(const e of n)this._bufferUpdate(e.id,e,!0);this[on("0x66")]()}return s}addRevisionData(e){const t=this[on("0x29")][on("0xb7")](e);return this.adapter&&t.on(on("0x40"),((e,t,i)=>{i||(this[on("0xe9")](t.id,t,!0),this[on("0x66")]())})),this[on("0x29")].addRevision(t,this._findInsertionIndex(t)),t}async[on("0x59")](e){await this[on("0x27")](e);const t={};for(const i in e[on("0xc1")]){const n=this[on("0xc3")](JSON[on("0x48")](e.diffData[i][on("0xdf")])),r=this[on("0x63")][on("0xaa")][on("0x5a")][on("0x1b")],s=new o.ViewDocumentFragment(r,n.map((e=>cn(e,this[on("0x63")]))));this[on("0x63")].data[on("0x6")][on("0xac")](on("0xc6")),t[i]=this.editor[on("0xba")].processor.toData(s),this[on("0x63")][on("0xba")].processor[on("0xac")](on("0x9d"))}return t}[on("0x66")](){if(0===this[on("0x24")][on("0xb9")])return;if(this[on("0xd5")])return;let e=Array.from(this._bufferedUpdates.values());this[on("0x24")][on("0x2d")]();for(let t=0;t<e.length;t++){const i=e[t];let n=!1;for(const e of Object[on("0x22")](i))void 0===i[e]?delete i[e]:"id"!==e&&(n=!0);n||(e[t]=null)}if(e=e.filter((e=>null!==e)),!e[on("0x9a")])return;for(let t=0;t<e[on("0x9a")];t++){const i=e[t];void 0!==i[on("0x74")]&&void 0===i.toVersion&&(i.toVersion=this.repository[on("0x51")](i.id)[on("0xa4")]),void 0!==i.toVersion&&void 0===i[on("0x74")]&&(i[on("0x74")]=this[on("0x29")][on("0x51")](i.id).fromVersion)}const t=this[on("0x63")][on("0xe4")][on("0x4c")](on("0x52"));this[on("0xd5")]=!0,this[on("0xdd")](),this[on("0xb3")][on("0x5c")](e,t)[on("0x2f")]((()=>{this[on("0xd5")]=!1}))[on("0x70")]((e=>{if(e)for(const t of e)this.setRevisionData({id:t.id,createdAt:t[on("0xe6")]});this[on("0xa9")](),this.sendBufferedUpdates()}))}[on("0x11")](e){let i=this[on("0x63")].config.get(on("0x8f"));if(void 0===i){i={};for(const e of this.editor[on("0x4b")][on("0x1b")][on("0x87")]())i[e]=""}on("0x13")==typeof i&&(i={main:i});let n=!1;for(const t of Object.keys(i))e[t]&&(i[t]!==e[t]&&""!==i[t][on("0x64")]()&&(n=!0),i[t]=e[t]);n&&(0,t.logWarning)(on("0x23")),this.editor.config.set("initialData",i)}[on("0xdd")](){if(!this[on("0x81")]){const e=this[on("0x63")][on("0xe0")][on("0x4c")](on("0xce"));this[on("0x81")]=e[on("0xa5")](en(this[on("0x63")][on("0x20")],on("0x4d")))}}[on("0xa9")](){this._pendingAction&&(this[on("0x63")][on("0xe0")][on("0x4c")](on("0xce"))[on("0xa6")](this[on("0x81")]),this[on("0x81")]=null)}[on("0xe")](e){const t=this.repository[on("0x3c")]();t[on("0xbe")]();let i=0;for(;i<t.length;){const n=t[i];if(n===this[on("0x16")]){i++;continue}if(n.id===this[on("0x3e")])break;const r=e[on("0xa4")]-n[on("0xa4")]||e.fromVersion-n[on("0x74")];if(r>0)break;if(r<0)i++;else{if(!e[on("0xb1")]&&n.creator)break;if(n[on("0xb1")]||!e[on("0xb1")]){if(e[on("0xe6")]>n[on("0xe6")])break;i++}else i++}}return i}[on("0xd2")](e){const t=this[on("0x29")][on("0x51")](e.id);if(e.createdAt&&(e.createdAt=new Date(e[on("0xe6")])),e[on("0x86")]){const t=this[on("0x63")][on("0xe0")][on("0x4c")](on("0xad"));e[on("0xe2")]=e[on("0x86")][on("0x8")]((e=>t[on("0x8d")](e)))}t[on("0x40")](e,!0)}[on("0x57")]({revision:e=null,from:t=null,to:i=null}){t=null!==t?t:e[on("0x74")],i=null!==i?i:e.toVersion;const n=this[on("0x3")][on("0xd3")](t,i),r={diffData:n[on("0xc1")],authorsIds:n[on("0x86")],fromVersion:t,toVersion:i};if(!e||i!==e.toVersion){const e=i-1,t=this[on("0x98")][on("0xc5")][on("0x49")](e);r[on("0xe6")]=t&&t[on("0xe6")]||new Date}if(this[on("0x25")]&&t===this._loadedStateData.fromVersion)for(const e of this[on("0x25")][on("0xe2")])r[on("0x86")][on("0x9f")](e.id)||r[on("0x86")][on("0x38")](e.id);return r}[on("0x27")](e){if(!e||e[on("0xc1")])return Promise[on("0x7a")]();{const t=this[on("0x63")][on("0xe4")][on("0x4c")]("collaboration.channelId");return this.adapter[on("0x51")]({channelId:t,revisionId:e.id})[on("0x70")]((t=>{e[on("0xc1")]=t[on("0xc1")]}))}}_bufferUpdate(e,t,i){if(this[on("0x24")][on("0x80")](e)){const n=this[on("0x24")][on("0x4c")](e);t=i?{...n,...t}:{...t,...n}}this._bufferedUpdates[on("0x8b")](e,t)}_getFromVersion(e){const t=this[on("0x29")].getRevisions();t[on("0xbe")](),t[on("0x83")]();const i=t[on("0x2e")]((t=>t[on("0xa4")]<=e))[on("0xa4")];return i<this[on("0xe1")]?this[on("0xe1")]:i}[on("0xa7")](e){const t=this[on("0x29")][on("0x51")](this[on("0x29")][on("0x9a")]-1);if(t)this[on("0x3e")]=t.id;else{const t=!this[on("0x63")][on("0x4b")].document[on("0xc4")].find((e=>this.editor.model[on("0x96")](e))),i=this.editor.plugins[on("0x4c")](on("0xad")).me.id,n=en(this[on("0x63")][on("0x20")],on(t?"0x6b":"0xf5"));this[on("0x78")]({from:e,to:e,id:this._initialRevisionId,name:n,creatorId:i})}}[on("0x43")](e){const t=this[on("0x98")][on("0x6f")]();this.currentRevision=this[on("0x29")][on("0x51")](t),this.currentRevision||(this[on("0x16")]=this[on("0x78")]({from:e,to:e,id:t,name:"",creatorId:null}))}[on("0x78")]({name:e,from:t,to:i,creatorId:n,id:r}){const o=this[on("0x57")]({from:t,to:i});o[on("0xe8")]=e,o.creatorId=n,o.id=r;const s=this[on("0xd")](o);return this[on("0xb3")]&&this[on("0xe9")](o.id,o,!0),s}[on("0x45")](){this.editor[on("0x35")][on("0x7d")](on("0x89"))[on("0x7e")]({model:on("0xda")})}[on("0xc3")](e){return(e=e[on("0x5d")]((e=>!e[on("0xe8")]||on("0x53")!==e.name&&on("0xa8")!==e[on("0xe8")])))[on("0xd7")]((e=>{on("0x13")!=typeof e&&(e[on("0x77")]=this[on("0xc3")](e[on("0x77")]),e[on("0xb")]=e[on("0xb")][on("0x5d")]((e=>!e[0][on("0x17")]("data-revision-"))))})),e}}function cn(e,t){const i=t[on("0xaa")][on("0x5a")].document;if("string"==typeof e)return new o.ViewText(i,e);{const n=e[on("0x77")][on("0x8")]((e=>cn(e,t)));return new(sn[e[on("0x4e")]]||o.ViewElement)(i,e[on("0xe8")],e.attributes,n)}}class un{constructor(e){this.editor=e,this[on("0x0")]=new Map,this[on("0xe5")]=-1,this._lastTo=-1,this[on("0x39")]=new Map,this[on("0xd1")]=new Map,this._baseRoots=new Map,this[on("0x62")]=new Map,this[on("0x67")]=new Map,this._touched=new Map,this[on("0xc8")]=new Map,this[on("0xb4")]=1,this[on("0xb6")]=this.editor.model.document[on("0x87")](),this[on("0xb6")][on("0x38")]("$graveyard")}[on("0x88")](e){this[on("0xd6")]=e;const t=new Map;for(const e of this._rootNames){const i=dn(this.editor.model.document.getRoot(e));t[on("0x8b")](e,i)}const i=Array[on("0x36")](this[on("0x63")][on("0x4b")][on("0xea")])[on("0x8")]((e=>[e[on("0xe8")],e[on("0xdc")]()])),n=this[on("0xd6")][on("0x30")];this[on("0x69")](n,t,i),this[on("0x56")]=this._revisionId}[on("0xd3")](e,t){if(this[on("0xe5")]===e&&this[on("0xbb")]<=t)this[on("0x0")].size>1&&this[on("0x3a")](this[on("0xbb")]),this[on("0xed")](this[on("0xbb")],t,!0);else{if(!this[on("0x0")].has(e)){const t=this[on("0xa0")](e);this[on("0xbc")](t,e,!1)}this._calculateMetaData(e,t,!0)}return this[on("0xe5")]=e,this[on("0xbb")]=t,this[on("0xbd")]()}loadState(e){this[on("0x9e")](),this._lastFrom=e[on("0x74")],this._lastTo=e[on("0xa4")];for(const t in e.diffData){const i=this[on("0xee")](e[on("0xc1")][t][on("0x33")]);i[on("0xe7")]=t,this._baseRoots[on("0x8b")](t,i);const n=this._makeIdsRoot(i);this[on("0x67")][on("0x8b")](t,n);for(const[e,t]of i[on("0xea")]){if(!e.startsWith(on("0x2a")))continue;const i=e.split(":")[2];for(const e of t.getWalker({singleCharacters:!0})){const t=this[on("0x76")](e),r=on("0x47")==e[on("0x4e")]?e[on("0x84")][on("0x97")].slice(0,-1):e[on("0x84")][on("0x97")],o=n[on("0x7f")](r).getAttribute(t);this._touched.set(o,{userId:i})}}}this[on("0x56")]=this[on("0xb4")];const t=[...Array(this._revisionId).keys()][on("0x31")](1)[on("0x5d")]((e=>!this._touched[on("0x80")](e)));let i=0;for(const n in e[on("0xc1")]){const r=this[on("0xee")](e[on("0xc1")][n].insertions);r[on("0xe7")]=n,this[on("0xd1")].set(n,r);const s=this._makeIdsRoot(r,Number[on("0x6e")]);this[on("0x62")][on("0x8b")](n,s);for(const[e,t]of r[on("0xea")]){if(!e[on("0x17")](on("0x2a")))continue;const i=e[on("0xa1")](":")[2];for(const e of t[on("0x9c")]({singleCharacters:!0})){const t=this[on("0x76")](e),n=this._revisionId++,r=on("0x47")==e[on("0x4e")]?e[on("0x84")].path[on("0x31")](0,-1):e.previousPosition[on("0x97")];s[on("0x7f")](r)[on("0x26")](t,n),this._touched[on("0x8b")](n,{userId:i})}}for(const e of this[on("0x63")][on("0x4b")][on("0xd8")](r)[on("0x9c")]({singleCharacters:!0})){const n=this[on("0x76")](e),r="elementEnd"==e.type?e[on("0x84")].path[on("0x31")](0,-1):e[on("0x84")][on("0x97")],o=s[on("0x7f")](r);o[on("0xb0")](n)>0||o[on("0x26")](n,t[i++])}const a=new o.DocumentFragment;a.rootName=on("0x2"),this[on("0x37")][on("0x8b")]("$graveyard",a),this[on("0x67")].set(on("0x2"),this[on("0x46")](a,1));const c=new o.DocumentFragment;c[on("0xe7")]=on("0x2"),this._diffRoots[on("0x8b")](on("0x2"),c),this[on("0x62")].set(on("0x2"),this[on("0x46")](c,1));for(const[e,t]of r[on("0xea")])e[on("0x17")](on("0x2a"))||this[on("0x39")][on("0x8b")](e,t)}const n=Array[on("0x36")](this[on("0xd1")])[on("0x8")]((([e,t])=>[e,dn(t)]));this[on("0x69")](this._lastTo,n,this[on("0x39")])}[on("0xee")](e){const t=JSON[on("0x48")](e),i=this[on("0x63")][on("0xaa")][on("0x5a")][on("0x1b")],n=new o.ViewDocumentFragment(i,t.map((e=>cn(e,this[on("0x63")]))));return this.editor[on("0xba")][on("0x1")](n)}_saveEmptyMetaData(){const e=new Map;for(const t of this[on("0xb6")]){const i=new o.DocumentFragment;i.rootName=t,e[on("0x8b")](t,i)}this._saveMetaData(Number[on("0x6e")],e,[])}_saveMetaData(e,t,i){const n=new Map(t),r=new Map;for(const[e,t]of i)r.set(e,{start:t.start[on("0x1d")](),end:t[on("0x32")][on("0x1d")](),rootName:t.root[on("0xe7")]});this[on("0x0")][on("0x8b")](e,{roots:n,markers:r})}[on("0x3a")](e){this._savedMetaData[on("0x14")](e)}reInit(){this[on("0x9e")](),this[on("0xe5")]=-1,this[on("0xbb")]=-1,this[on("0x0")][on("0x2d")](),this[on("0x88")](this[on("0xd6")])}_reset(){this[on("0x7c")][on("0x2d")](),this[on("0xc8")].clear(),this[on("0xd1")][on("0x2d")](),this[on("0x37")][on("0x2d")](),this._idsRoots[on("0x2d")](),this._baseIdsRoots[on("0x2d")](),this[on("0x39")][on("0x2d")](),this[on("0xb4")]=1,this._startingRevisionId=this[on("0xb4")]}[on("0x46")](e,t=null){let i=null;e.is(on("0x6c"))||(i=new o.Element(e[on("0xe8")],{vid_start:null===t?this._revisionId++:t++}));const n=[];for(const i of e.getChildren())if(i.is(on("0xc"))){n[on("0x38")](this[on("0x46")](i,t));const e=n[n[on("0x9a")]-1];null!==t&&(t=e.is(on("0xc"),on("0x55"))?e[on("0xb0")](on("0xdb"))+1:e[on("0xb0")]("vid_end")+1)}else for(let e=0;e<i[on("0xeb")];e++)n.push(new o.Element("$text",{vid:null===t?this._revisionId++:t++}));if(e.is("documentFragment")){const t=new o.DocumentFragment(n);return t[on("0xe7")]=e[on("0xe7")],t}return i[on("0x26")]("vid_end",null===t?this._revisionId++:t++),i[on("0x10")](0,n),i}[on("0xbc")](e,t,i){this._reset();const{roots:n,markers:r}=this._savedMetaData[on("0x4c")](e);this[on("0x37")]=new Map(n);for(const[e,t]of this[on("0x37")])if(on("0x2")!==e&&(this[on("0xd1")][on("0x8b")](e,dn(t)),i)){const i=this[on("0xb4")];this._idsRoots[on("0x8b")](e,this._makeIdsRoot(t)),this[on("0x67")][on("0x8b")](e,this[on("0x46")](t,i))}this[on("0x56")]=this._revisionId,this[on("0xd1")][on("0x8b")](on("0x2"),dn(this[on("0x37")][on("0x4c")](on("0x2")))),i&&this._idsRoots[on("0x8b")](on("0x2"),this._makeIdsRoot(this[on("0x37")][on("0x4c")](on("0x2"))));for(const[e,t]of r){const i=this[on("0x37")].get(t[on("0xe7")]),n=this[on("0xd1")].get(t.rootName),r=new o.Range(this[on("0x3b")](t[on("0x71")],i),this[on("0x3b")](t[on("0x32")],i)),s=this[on("0x99")](r,n);i.markers[on("0x8b")](e,r),this[on("0x39")][on("0x8b")](e,s)}this[on("0xed")](e,t,i)}[on("0xed")](e,t,i){for(const n of this[on("0xd6")][on("0x1e")](e,t))this._handleOperation(n,i);for(const e of this._diffRoots.values())e[on("0xea")][on("0x2d")]();for(const[e,t]of this[on("0x39")])this[on("0xd1")][on("0x4c")](t[on("0xf1")].rootName).markers.set(e,t[on("0x1d")]());this._saveMetaData(t,Array[on("0x36")](this._diffRoots).map((([e,t])=>[e,dn(t)])),this[on("0x39")])}_getPreviousFrom(e){const t=Array[on("0x36")](this[on("0x0")][on("0x22")]());t[on("0x58")](((e,t)=>e-t)),t[on("0xbe")]();for(const i of t)if(i<e)return i;return this[on("0xc0")](),Number[on("0x6e")]}[on("0xec")](e,t){const i=Array[on("0x36")](t[on("0xea")])[on("0x8")]((([t,i])=>[t,this[on("0x99")](i,e)]));e[on("0xea")]=new Map(i)}[on("0x79")](e){for(const t of this[on("0x39")][on("0x68")]()){const i=t[on("0x5f")](e),n=o.Range[on("0x6a")](i);t.start=n.start,t[on("0x32")]=n[on("0x32")]}}[on("0xf2")](e,t){const i=this._cloneOperation(e,this[on("0xd1")]);if(on("0xd0")!==e[on("0x4e")]&&(i._execute(),this[on("0x79")](i)),t)switch(i[on("0x4e")]){case on("0x8c"):this[on("0x50")](e);break;case on("0xde"):case on("0xa6"):case on("0x7"):this[on("0xf")](e);break;case"merge":this[on("0x93")](e);break;case on("0xa1"):this[on("0x28")](e);break;case"marker":this._handleMarkerOperation(e)}}[on("0x34")](e,t){const i=e[on("0x1d")]();return i[on("0x82")]=e[on("0x82")],this[on("0x2c")](i,t),i}[on("0x94")](e){return e[on("0x8")]((e=>{const t=this[on("0x76")](e);return Number(e[on("0xca")][on("0xb0")](t))}))}[on("0xd9")](e,t){if(e.is(on("0xc"),on("0x55")))t[on("0x38")]({item:e,type:on("0x12")});else{e.is("element")&&t[on("0x38")]({item:e,type:on("0x1f")});for(const i of e[on("0x91")]())this._generateTape(i,t);e.is(on("0xc"))&&t[on("0x38")]({item:e,type:"elementEnd"})}return t}_getState(){const e=this[on("0x63")].model.document.getRootNames(),t=new Map(this[on("0x7c")]),i=new Map(t),n=new Map,r={insertions:{},deletions:{}},o={insertions:{},deletions:{}},s=new Map;for(const t of e){const e=this._diffRoots.get(t),i=this._baseRoots[on("0x4c")](t);r.insertions[t]=dn(e),r[on("0x33")][t]=dn(i),this[on("0xec")](r[on("0x33")][t],i),this[on("0xec")](r.insertions[t],e),o[on("0xdf")][t]=this[on("0xd9")](this[on("0x62")][on("0x4c")](t),[]),o[on("0x33")][t]=this._generateTape(this[on("0x67")][on("0x4c")](t),[])}for(const r of e){const e=o[on("0xdf")][r];for(const r of e){const e=this[on("0x76")](r),o=r[on("0xca")].getAttribute(e);i[on("0x14")](o),o>=this[on("0x56")]&&n.set(o,t[on("0x4c")](o))}}for(const r of e){const e=o[on("0xdf")][r],a=this[on("0x94")](o[on("0x33")][r]);let c=0;for(const r of e){const e=this._getVidAttributeName(r),o=r.item.getAttribute(e);if(!n.has(o)&&!s.has(o))if(i[on("0x80")](o))c++;else{if(o!=a[c]){const e=t[on("0x4c")](o)||t[on("0x4c")](a[c]);for(;o!=a[c];)i[on("0x80")](a[c])||(s.set(a[c],e),t[on("0x8b")](a[c],e)),c++}c++}}}for(const t of e){const e=o.insertions[t];for(const t of e){const e=this._getVidAttributeName(t),r=t[on("0xca")][on("0xb0")](e);if(s[on("0x80")](r)){const e=s.get(r);i[on("0x80")](r)||i.set(r,{...e}),n[on("0x8b")](r,{...e})}}}for(const e of i[on("0x22")]())e>=this[on("0x56")]&&i[on("0x14")](e);const a=new Map;for(const t of e){let e=o.insertions[t];for(const t of e)if(t[on("0xca")].is("element",on("0xbf"))){const e=this[on("0x76")](t),i=t[on("0xca")][on("0xb0")](e);if(n.has(i)){const e=t.item[on("0x73")][on("0x73")].getAttribute(on("0xd4")),r=a[on("0x4c")](e)||new Set;r.add(n[on("0x4c")](i)[on("0x2b")]),a.set(e,r)}}e=o[on("0x33")][t];for(const t of e)if(t[on("0xca")].is(on("0xc"),on("0xbf"))){const e=this[on("0x76")](t),n=t[on("0xca")][on("0xb0")](e);if(i[on("0x80")](n)){const e=t[on("0xca")].parent[on("0x73")][on("0xb0")](on("0xd4")),r=a[on("0x4c")](e)||new Set;r[on("0xa5")](i.get(n)[on("0x2b")]),a[on("0x8b")](e,r)}}for(const e of a[on("0x22")]())(n[on("0x80")](e)||i.has(e))&&a[on("0x14")](e)}for(const t of e){const e=o[on("0xdf")][t];let r=null,s=null;for(const t of e){const e=this[on("0x76")](t),o=t[on("0xca")][on("0xb0")](e),c=a[on("0x4c")](o);c&&on("0x1f")==t[on("0x4e")]&&(r=Array[on("0x36")](c)[0],s=t[on("0xca")][on("0xb0")](on("0x41"))),r&&(i[on("0x8b")](o,{userId:r}),n[on("0x8b")](o,{userId:r})),o==s&&(r=null,s=null)}}const c={},u=new Set;for(const t of e){const e=r[on("0x33")][t],s=r.insertions[t];for(const{userId:e}of this[on("0xc8")].values())null!==e&&u[on("0xa5")](e);this._markChanges(s,o[on("0xdf")][t],n,on("0x6d"),u),this[on("0xf3")](e,o[on("0x33")][t],i,"deletion",u),c[t]={insertions:this._prepareViewToSave(s),deletions:this._prepareViewToSave(e)}}return{diffData:c,authorsIds:Array[on("0x36")](u)}}[on("0x90")](e){for(const[,t]of e[on("0xea")]){const e=t[on("0x71")].getAncestors()[on("0x5d")]((e=>on("0xbf")==e.name));for(const t of e)1==t[on("0x8e")]&&t[on("0x5b")](0).is(on("0xc"),on("0xb8"))&&t.getChild(0)[on("0x26")]("keepParagraph",!0)}}_prepareViewToSave(e){this[on("0x90")](e);const t=this[on("0x63")][on("0xba")].toView(e,{}),i=Array[on("0x36")](t[on("0x91")]())[on("0x8")]((e=>this[on("0x92")](e)));return JSON[on("0xae")](i)}[on("0x92")](e){return e.is(on("0x12"))?e.data:{type:Object[on("0x22")](sn)[on("0x2e")]((t=>e instanceof sn[t])),name:e.name,attributes:Array[on("0x36")](e.getAttributes()),children:Array[on("0x36")](e[on("0x91")]())[on("0x8")]((e=>this[on("0x92")](e)))}}[on("0xf3")](e,t,i,n,r){let o=null,s=null,a=0;const c=this.editor.model;for(let n=0;n<t.length;n++){const r=this[on("0x76")](t[n]),a=t[n].item[on("0xb0")](r),d=i[on("0x4c")](a),l=n==t[on("0x9a")]-1;!o&&d&&(o=d,s=t[n]),o&&(!d||d.userId!=o[on("0x2b")])&&(u(d,ln(s,e,c),ln(t[n],e,c)),o=d||null,s=d?t[n]:null),o&&l&&u(d,ln(s,e,c),xn(t[n],e,c))}function u(t,i,s){const u=o[on("0x2b")],d="revision:"+n+":"+u+":"+a++,l=c[on("0x18")](i,s);e[on("0xea")][on("0x8b")](d,l),null!==u&&r.add(u)}}[on("0x76")](e){switch(e[on("0x4e")]){case on("0x1f"):return"vid_start";case on("0x47"):return"vid_end";default:return"vid"}}[on("0x2c")](e,t){e.baseVersion=null;for(const i in e){if(e[i]instanceof o.Position){const n=t[on("0x4c")](e[i][on("0xf1")][on("0xe7")]);e[i]=this[on("0x3b")](e[i],n)}if(e[i]instanceof o.Range){const n=t.get(e[i].root[on("0xe7")]);e[i]=this[on("0x99")](e[i],n)}}e.root&&(e.root=t[on("0x4c")](e[on("0xf1")].rootName))}[on("0x99")](e,t){return this[on("0x63")][on("0x4b")][on("0x18")](this._fixPosition(e[on("0x71")],t),this[on("0x3b")](e[on("0x32")],t))}[on("0x3b")](e,t){return this[on("0x63")][on("0x4b")][on("0x15")](t,e.path,e[on("0xc2")])}_handleInsertOperation(e){const t=this._idsRoots[on("0x4c")](e[on("0x60")][on("0xf1")][on("0xe7")]),i=this._fixPosition(e[on("0x60")],t),n=null===e[on("0x82")]?null:e._authorId||this.editor[on("0xe0")][on("0x4c")](on("0xad")).me.id,r=i[on("0x73")],s=this._revisionId,a=[];for(const t of e[on("0x7b")])if(t.is(on("0xc")))a.push(this[on("0x46")](t));else for(let e=0;e<t.offsetSize;e++)a[on("0x38")](new o.Element("$text",{vid:this._revisionId++}));const c=this[on("0xb4")];for(let e=s;e<c;e++)this[on("0x7c")][on("0x8b")](e,{userId:n});r[on("0x10")](i[on("0x5")],a)}[on("0xf")](e){(e=this[on("0x34")](e,this._idsRoots))._execute();const t=null===e[on("0x82")]?null:e[on("0x82")]||this[on("0x63")][on("0xe0")].get("Users").me.id,i=e[on("0x4")](),n=i[on("0x73")],r=i[on("0x5")];!function e(i,n,r,o){for(let s=r;s<o;s++){const r=n[on("0x5b")](s);r.is(on("0xc"),on("0x55"))?i[on("0x8b")](r[on("0xb0")](on("0xdb")),{userId:t}):(i[on("0x8b")](r[on("0xb0")]("vid_start"),{userId:t}),e(i,r,0,r[on("0x8e")]),i.set(r[on("0xb0")](on("0x41")),{userId:t}))}}(this[on("0x7c")],n,r,r+e.howMany)}[on("0x93")](e){const t=null===(e=this[on("0x34")](e,this[on("0x62")]))[on("0x82")]?null:e._authorId||this[on("0x63")].plugins[on("0x4c")](on("0xad")).me.id,i=e[on("0x3d")][on("0x73")],n=e[on("0xcf")][on("0x73")],r=i.getAttribute(on("0x41")),o=n[on("0xb0")]("vid_start");i._setAttribute(on("0x41"),n.getAttribute(on("0x41"))),n._setAttribute(on("0x41"),r),this[on("0x7c")][on("0x8b")](o,{userId:t}),this[on("0x7c")].set(r,{userId:t}),e._execute()}[on("0x28")](e){const t=null===(e=this._cloneOperation(e,this[on("0x62")]))[on("0x82")]?null:e._authorId||this[on("0x63")][on("0xe0")][on("0x4c")](on("0xad")).me.id,i=e[on("0x9")],n=e[on("0x8a")][on("0x73")];e[on("0x61")]();const r=n.getAttribute(on("0x41")),o=e[on("0xab")][on("0xc9")];if(i){const e=o[on("0xb0")](on("0x41")),i=n[on("0xb0")](on("0x41"));n._setAttribute("vid_end",e),o[on("0x26")](on("0x41"),i),this._touched[on("0x8b")](n[on("0xb0")](on("0x41")),{userId:t}),this._touched[on("0x8b")](o[on("0xb0")](on("0xd4")),{userId:t})}else{const e=this[on("0xb4")]++,i=this[on("0xb4")]++;n[on("0x26")](on("0x41"),e),o[on("0x26")](on("0xd4"),i),o[on("0x26")](on("0x41"),r),this[on("0x7c")][on("0x8b")](e,{userId:t}),this[on("0x7c")][on("0x8b")](i,{userId:t})}}[on("0xe3")](e){if(!e[on("0x65")])return;const t=(e=this[on("0x34")](e,this[on("0xd1")]))[on("0x9b")]?e[on("0x9b")].root:null,i=e[on("0xaf")]?e[on("0xaf")][on("0xf1")]:null;t&&this._markers[on("0x14")](e.name),i&&this[on("0x39")][on("0x8b")](e[on("0xe8")],e[on("0xaf")][on("0x1d")]());const n=null===e[on("0x82")]?null:e._authorId||this.editor[on("0xe0")][on("0x4c")](on("0xad")).me.id,r=e[on("0xe8")];if(!this[on("0xc8")].has(r))return void this._touchedMarkers.set(r,{range:e[on("0x9b")],userId:n});const o=this._touchedMarkers[on("0x4c")](r),s=o.range,a=e.newRange;null==s&&null==a||s&&a&&s[on("0x44")](a)?this[on("0xc8")][on("0x14")](e[on("0xe8")]):o[on("0x2b")]=n}}function dn(e){const t=new o.DocumentFragment;t.rootName=e[on("0xe7")];for(const i of e[on("0x91")]()){const e=i[on("0xef")](!0);t[on("0xb5")](e)}return t}function ln(e,t,i){const n=on("0x47")==e.type?i[on("0xcd")](e.item,"end"):i.createPositionBefore(e[on("0xca")]);return n[on("0xf1")]=t,n}function xn(e,t,i){const n=on("0x1f")==e[on("0x4e")]?i[on("0xcd")](e[on("0xca")],0):i[on("0x1a")](e.item);return n[on("0xf1")]=t,n}var hn=i(273);var fn=i(278),vn=i.n(fn),mn=i(996),gn={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};vn()(mn.Z,gn);mn.Z.locals;var pn=i(542),yn={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};vn()(pn.Z,yn);pn.Z.locals;const bn=["setTemplate","type","ck-responsive-form","Save","focusTracker","tab","form","Cancel","arrowright","ck-button-save","fieldView","extendTemplate","set","selectstart","keystrokes","locale","cancelButtonView","ck-revision-history-save-revision-form","focusFirst","element","delegate","add","ck-button-cancel","cancel","stopPropagation","shift + tab","revisionNameInputValue","revisionNameInputView","_createButton","forEach","220","revisionName","submit","_focusCycler","render","saveButtonView","_createRevisionNameInput","value","listenTo","high","trim","execute"];var kn,_n;kn=bn,_n=319,function(e){for(;--e;)kn.push(kn.shift())}(++_n);const wn=function(e,t){return bn[e-=0]};class Sn extends hn.View{constructor(e){super(e),this[wn("0x15")]=new t.FocusTracker,this[wn("0x1f")]=new t.KeystrokeHandler,this.set(wn("0x1"),""),this[wn("0x2")]=this[wn("0xb")](),this[wn("0xa")]=this[wn("0x3")](en(e,wn("0x14")),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.972 16.615a.997.997 0 0 1-.744-.292l-4.596-4.596a1 1 0 1 1 1.414-1.414l3.926 3.926 9.937-9.937a1 1 0 0 1 1.414 1.415L7.717 16.323a.997.997 0 0 1-.745.292z"/></svg>',wn("0x1a")),this[wn("0xa")][wn("0x12")]=wn("0x7"),this[wn("0x21")]=this._createButton(en(e,wn("0x18")),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.591 10.177 4.243 4.242a1 1 0 0 1-1.415 1.415l-4.242-4.243-4.243 4.243a1 1 0 0 1-1.414-1.415l4.243-4.242L4.52 5.934A1 1 0 0 1 5.934 4.52l4.243 4.243 4.242-4.243a1 1 0 1 1 1.415 1.414l-4.243 4.243z"/></svg>',wn("0x27"),wn("0x28")),this._focusables=new hn.ViewCollection,this._focusCycler=new hn.FocusCycler({focusables:this._focusables,focusTracker:this[wn("0x15")],keystrokeHandler:this[wn("0x1f")],actions:{focusPrevious:wn("0x0"),focusNext:wn("0x16")}}),this[wn("0x11")]({tag:wn("0x17"),attributes:{class:["ck",wn("0x22"),wn("0x13")],tabindex:"-1"},children:[this[wn("0x2")],this[wn("0xa")],this.cancelButtonView]}),(0,hn.injectCssTransitionDisabler)(this)}render(){super[wn("0x9")](),(0,hn.submitHandler)({view:this}),[this[wn("0x2")],this[wn("0xa")],this.cancelButtonView][wn("0x4")]((e=>{this._focusables[wn("0x26")](e),this[wn("0x15")].add(e[wn("0x24")])})),this.keystrokes[wn("0xd")](this[wn("0x24")]);const e=e=>e[wn("0x29")]();this.keystrokes.set(wn("0x19"),e),this[wn("0x1f")][wn("0x1d")]("arrowleft",e),this[wn("0x1f")][wn("0x1d")]("arrowup",e),this[wn("0x1f")][wn("0x1d")]("arrowdown",e),this[wn("0xd")](this[wn("0x2")][wn("0x24")],wn("0x1e"),((e,t)=>{t[wn("0x29")]()}),{priority:wn("0xe")})}focus(){this[wn("0x8")][wn("0x23")]()}get[wn("0x6")](){return this[wn("0x2")].fieldView[wn("0x24")][wn("0xc")][wn("0xf")]()}set[wn("0x6")](e){this[wn("0x2")].fieldView[wn("0x24")].value=e[wn("0xf")]()}reset(){this[wn("0x2")].fieldView[wn("0x24")][wn("0xc")]=""}[wn("0xb")](){const e=new hn.LabeledFieldView(this[wn("0x20")],hn.createLabeledInputText),t=e[wn("0x1b")];return t[wn("0x1c")]({attributes:{maxlength:wn("0x5")}}),e.label=en(this.locale,"Name of the revision (optional)"),t.on("input",(()=>{this[wn("0x1")]=t[wn("0x24")][wn("0xc")][wn("0xf")]()})),e}[wn("0x3")](e,t,i,n){const r=new hn.ButtonView(this[wn("0x20")]);return r[wn("0x1d")]({label:e,icon:t,tooltip:!0}),r[wn("0x1c")]({attributes:{class:i}}),n&&r[wn("0x25")](wn("0x10")).to(this,n),r}}const Tn='<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',On=["plugins","execute","Save current revision","config","editor","componentFactory","length","panelView","init","Revision history","add","saveButtonView","isEnabled","Open revision history","set","revisionHistory","items","pluginName","RevisionTracker","submit","requires","editing","showRevisionViewerCallback","bind","isReadOnly","cancel","isReady","children","RevisionHistoryUI","get","view","remove","focus","change:isOpen","render","revisionName"];var In,Rn;In=On,Rn=232,function(e){for(;--e;)In.push(In.shift())}(++Rn);const Nn=function(e,t){return On[e-=0]};class Vn extends e.Plugin{static get[Nn("0x1")](){return Nn("0xc")}static get[Nn("0x4")](){return[an]}[Nn("0x1c")](){const e=this[Nn("0x18")],t=e[Nn("0x14")][Nn("0xd")](Nn("0x2"));e.ui[Nn("0x19")].add(Nn("0x23"),(i=>{const n=(0,hn.createDropdown)(i),r=n[Nn("0x1b")][Nn("0xb")],o=new hn.ListView(i),s=new hn.ListItemView(i),a=new hn.ButtonView(i),c=new hn.ListItemView(i),u=new hn.ButtonView(i),d=new Sn(i);function l(){r[Nn("0x1a")]&&r[Nn("0xf")](0),r[Nn("0x1e")](o)}function x(){n.isOpen=!1,e[Nn("0x5")][Nn("0xe")][Nn("0x10")]()}return n[Nn("0x7")]("isEnabled").to(t,"isReady",t,Nn("0x20"),e,Nn("0x8"),((e,t,i)=>e&&t&&!i)),n.buttonView[Nn("0x22")]({icon:Tn,label:en(i,Nn("0x1d")),tooltip:!0}),a[Nn("0x22")]({label:en(i,Nn("0x16")),withText:!0}),a[Nn("0x7")](Nn("0x20")).to(t,Nn("0xa"),t,Nn("0x20"),e,Nn("0x8"),((e,t,i)=>e&&t&&!i)),a.on(Nn("0x15"),(()=>(r.length&&r[Nn("0xf")](0),d.reset(),r[Nn("0x1e")](d),void d[Nn("0x10")]()))),u.set({label:en(i,Nn("0x21")),withText:!0}),u[Nn("0x7")](Nn("0x20")).to(t,Nn("0xa"),e,Nn("0x8"),((e,t)=>e&&!t)),u.on(Nn("0x15"),(()=>{e[Nn("0x17")].get(Nn("0x23"))[Nn("0x6")](),x()})),s[Nn("0xb")][Nn("0x1e")](a),c.children[Nn("0x1e")](u),o[Nn("0x0")].addMany([s,c]),n.on(Nn("0x11"),(()=>l())),d[Nn("0x1f")][Nn("0x7")]("isEnabled").to(t,Nn("0xa"),t,Nn("0x20"),e,Nn("0x8"),((e,t,i)=>e&&t&&!i)),d.on(Nn("0x3"),(()=>(e.plugins[Nn("0xd")](an).saveRevision({name:d[Nn("0x13")]}),void x()))),d.on(Nn("0x9"),(()=>l())),d[Nn("0x12")](),l(),n}))}}const Mn=["author","ck-revision-change__","set","isSuggestion","name","_model","type","data","add","Removed by","setTemplate","element","bindTemplate","ck-revision-change__label","focus"];var En,Dn;En=Mn,Dn=199,function(e){for(;--e;)En.push(En.shift())}(++Dn);const An=function(e,t){return Mn[e-=0]};class jn extends hn.View{constructor(e,t){super(e),this[An("0x1")]=t;const i=this[An("0x8")],n=en(e,t[An("0x3")][An("0xe")]?"Suggested by":An("0x4")==t[An("0x2")]?"Added by":An("0x5"));this[An("0xd")]("type",t[An("0x2")]),this[An("0x6")]({tag:"div",attributes:{class:["ck-annotation","ck-revision-change",i.to(An("0x2"),(e=>An("0xc")+e))],tabindex:-1},children:[{tag:"span",children:[{tag:"span",attributes:{class:[An("0x9")]},children:[{text:n}]},{text:" "+t[An("0xb")][An("0x0")]}]}]})}focus(){this[An("0x7")][An("0xa")]()}}var Cn,Fn,Ln=["data","type","createdAt","author","set"];Cn=Ln,Fn=464,function(e){for(;--e;)Cn.push(Cn.shift())}(++Fn);var Pn=function(e,t){return Ln[e-=0]};class zn{constructor(e){this.id=e.id||(0,t.uid)(),this.author=e[Pn("0x4")],this[Pn("0x2")]=e[Pn("0x2")],this[Pn("0x1")]=e[Pn("0x1")]||{},this[Pn("0x0")](Pn("0x3"),e[Pn("0x3")])}toJSON(){return{id:this.id,authorId:this[Pn("0x4")].id,type:this[Pn("0x2")],data:this[Pn("0x1")],createdAt:this.createdAt}}}(0,t.mix)(zn,t.ObservableMixin);const Zn=["changes","oldRevisionId","newRevisionId","add","_setData"];var Un,Hn;Un=Zn,Hn=330,function(e){for(;--e;)Un.push(Un.shift())}(++Hn);const qn=function(e,t){return Zn[e-=0]};class Bn{constructor(e,i){this[qn("0x2")]=e,this[qn("0x1")]=i,this[qn("0x0")]=new t.Collection}[qn("0x4")](e){for(const t of e[qn("0x0")])this[qn("0x0")][qn("0x3")](t)}}var Wn=i(288),Jn={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};vn()(Wn.Z,Jn);Wn.Z.locals;const Gn=["data","markerToData","compare","toModel","level","unshift","deletions","ck-suggestion-marker-split","isReady","isContent","pop","RevisionViewer","newRevisionId","slice","listenTo","_step","change:isEnabled","plugins","startsWith","createUIElement","config","loadRevisionData","nodeAfter","test","range","dataDowncast","isEqual","forward","elementToAttribute","revisionHistory","item","restoreRevisionCallback","bind","has","_appendChild","hasClass","destroy","_removeRevisionMarkers","upcast","catch","endIndex","ck-suggestion-marker--active","insertions","_markInsertions","_markMarkers","concat","type","_refreshStartEndIndex","uiElement","markerToHighlight","viewItem","removeMarker:revision-suggestion","addRevision","revisionHistoryLabel","dataToMarker","execute","attributes","removeMarker","_makeModelFromViewString","split","createPositionBefore","model","revision-viewer","insertion","toData","_initInteractions","target","useFillerType","unbindElementFromMarkerName","revision-comment:","backward","resolve","toViewPosition","revision-suggestion:","getRootNames","bindElementToMarker","pluginName","_setConversion","element","removeMarker:revision","_threeWayMerge","markerRange","_update","document","enableReadOnlyMode","suggestion:","low","_cleanMarkers","numberOfChanges","_markSuggestions","getRevision","_processTape","_cleanUp","parse","deletion","processor","get","name","change:activeView","markerName","editor","revision-suggestion","ck-suggestion-marker","markers","changes","schema","isBlock","length","activeChange","ck-suggestion-preview-marker-","getIndex","highest","_makeModelFromTape","removeClass","markersStart","span","_getDiff","_fixObsoleteTags","forEach","userId","children","ck-suggestion-marker-merge","set","getRoot","first","-new","_getViewForChange","vid_end","refresh","_setDistance","_findChangeIdFromDomTarget","enqueueChange","diff","oldRevisionId","values","text","isEnabled","startIndex","then","elementEnd","addClass","mapper","getChild","shift","conversion","createRange","_removeMissingPairs","getAttribute","_markMismatchedRemovedTags","getAttributes","writer","stop","ck-suggestion-marker-","index","currentChangeNumber","ck-editor__editable__overlay","delete","maxOffset","createRangeIn","abs","for","addHighlight","_setData","getWalker","revision","filter","insert","done","attribute:vid","repository","vid","roots","_getChangeFromId","editing","_revisions","modelRange","_makeTape","map","_getViewObj","createPositionFromPath","commands","previousPosition","addMarker:revision-suggestion:insertion","elementStart","setData","activeView","consumable","markerNameToElements","isAdded","setAttribute","clear","_getRevisionsRange","mousedown","readOnlyMode","showPreviousChange","downcastDispatcher","high","change:activeChange","sort","toViewElement","isIncorrect","merge","view","markersEnd","change:isReadOnly","selection","marked","distance","requires","_removeUnsupportedChanges","object","start","change:numberOfChanges","from","vid_start","data-change-id","revision:","default","diffData","keys","_changeView","isObject","clearForceDisabled","addMarker:revision","toViewRange","consume","_balloon","parent","all","collaboration.channelId","ck-suggestion-preview-marker","getCustomProperty","string","revision-start","next","isCollapsed","change","softBreak","isLimit","nextSibling","data-revision-","authors","wrap","change:isReady","isRemoved","add","comment","editingDowncast","remove","isRemoveSuggestion","_joinTapes","isAddSuggestion","_target","createRevision","end","addRevisionData","revision-end","pairId","isAfter","splice","isSuggestion","side","push","_changeIdToChange"];var Yn,$n;Yn=Gn,$n=168,function(e){for(;--e;)Yn.push(Yn.shift())}(++$n);const Kn=function(e,t){return Gn[e-=0]},Xn={c:o.ViewContainerElement,a:o.ViewAttributeElement,e:o.ViewEmptyElement,r:o.ViewRawElement,u:o.ViewUIElement};class Qn extends e.Plugin{static get[Kn("0xac")](){return Kn("0x6b")}static get[Kn("0x28")](){return[r.Users,hn.ContextualBalloon,Qi]}constructor(...e){super(...e),this[Kn("0x1")]=this.editor.plugins[Kn("0xc0")]("RevisionsRepository"),this.set(Kn("0xcc"),null),this.set(Kn("0x11"),null),this[Kn("0xda")](Kn("0xe4"),null),this.set(Kn("0x68"),!1),this.set(Kn("0xe8"),!0),this.on(Kn("0x70"),((e,t,i)=>{this[Kn("0xcc")]=null,this[Kn("0x11")]=null,this.editor.editing[Kn("0x22")][Kn("0x44")]((e=>{for(const t of this[Kn("0xc4")][Kn("0x5")][Kn("0x22")][Kn("0xb3")][Kn("0x3")])i?e[Kn("0xd1")](Kn("0xfb"),t):e.addClass("ck-editor__editable__overlay",t)}))})),this.bind("isNavigationMode").to(this,Kn("0xcc"),(e=>null!==e)),this[Kn("0x80")](Kn("0xfa")).to(this,Kn("0x68"),this,Kn("0xe4"),this,Kn("0xcc"),((e,t,i)=>e&&i?t[Kn("0xc8")].getIndex(i):0)),this[Kn("0x80")](Kn("0xb8")).to(this,Kn("0x68"),this,Kn("0xe4"),((e,t)=>e?t[Kn("0xc8")].length:0)),this._changeView=null,this[Kn("0x5f")]=new Map,this.adapter=null,this[Kn("0x3a")]=this[Kn("0xc4")][Kn("0x71")][Kn("0xc0")](hn.ContextualBalloon)}init(){const e=this.editor,t=new ir(e,{direction:Kn("0xa6")}),i=new ir(e,{direction:Kn("0x7b")});e[Kn("0xc")][Kn("0x4d")](Kn("0x1a"),t),e[Kn("0xc")][Kn("0x4d")]("showNextChange",i),e[Kn("0xc")].add("restoreRevision",new tr(e)),this.on(Kn("0x2c"),(()=>{t[Kn("0xe0")](),i.refresh()})),this[Kn("0xad")](),this._initInteractions(),e[Kn("0xb4")](Kn("0x9e"))}async getRevisionData(e){await this[Kn("0x75")](e);const t={};for(const i in e.diffData){const n=this[Kn("0x85")](JSON[Kn("0xbd")](e[Kn("0x32")][i][Kn("0x8a")])),r=this[Kn("0xc4")].editing[Kn("0x22")][Kn("0xb3")],s=new o.ViewDocumentFragment(r,n.map((e=>this[Kn("0xa")](e))));this[Kn("0xc4")].data[Kn("0xbf")][Kn("0xa3")](Kn("0x26")),t[i]=this[Kn("0xc4")][Kn("0x60")][Kn("0xbf")][Kn("0xa0")](s),this[Kn("0xc4")][Kn("0x60")][Kn("0xbf")][Kn("0xa3")](Kn("0x31"))}return t}[Kn("0x85")](e){return(e=e.filter((e=>!e[Kn("0xc1")]||Kn("0x41")!==e[Kn("0xc1")]&&Kn("0x58")!==e[Kn("0xc1")])))[Kn("0xd6")]((e=>{Kn("0x40")!=typeof e&&(e[Kn("0xd8")]=this[Kn("0x85")](e[Kn("0xd8")]),e.attributes=e[Kn("0x98")][Kn("0x105")]((e=>!e[0][Kn("0x72")](Kn("0x48")))))})),e}[Kn("0x62")](e,t,i=!1){if(!this[Kn("0xe8")])return;const n=this.diff,r=this[Kn("0x1")],o=Kn("0x40")==typeof e?r[Kn("0xba")](e):e,s=Kn("0x40")==typeof t?r[Kn("0xba")](t):t,a=o.id,c=s?s.id:null;if(!i&&this[Kn("0xe4")]&&this.diff[Kn("0x6c")]===a&&this[Kn("0xe4")][Kn("0xe5")]===c)return Promise.resolve();this.isReady=!1,this.activeView=null,this[Kn("0xcc")]=null,this.diff=new Bn(a,c);const u=this[Kn("0x17")](o,s,!0)[Kn("0x9")]((e=>this.loadRevisionData(e)));return u[Kn("0x5e")](new Promise((e=>{setTimeout(e,20)}))),Promise[Kn("0x3c")](u)[Kn("0xea")]((()=>{if(!this[Kn("0xe8")])return;this._cleanUp();const e=this[Kn("0xd4")](a,c);this[Kn("0xe4")][Kn("0x102")](e);for(const e of this[Kn("0xe4")][Kn("0xc8")])this[Kn("0x5f")][Kn("0xda")](e.id,e);this.editor[Kn("0x9d")][Kn("0xe3")]({isUndoable:!1},(t=>{for(const i of Object[Kn("0x33")](e[Kn("0x9d")])){const n=this[Kn("0xc4")][Kn("0x9d")][Kn("0xb3")][Kn("0xdb")](i);t[Kn("0x50")](t.createRangeIn(n)),t[Kn("0x106")](e.model[i],n,0)}})),this.isReady=!0}))[Kn("0x87")]((e=>{console.error(e),this[Kn("0xbc")](),n?this.diff=n:this[Kn("0xc4")][Kn("0x10")]("<p></p>"),this[Kn("0x68")]=!0}))}[Kn("0x84")](){this[Kn("0x11")]=null,this[Kn("0x34")]&&this._changeView[Kn("0x84")]()}[Kn("0x57")](e,t){const i=this.repository[Kn("0x55")](e);return i.on(Kn("0xb2"),((e,n,r)=>t(n,r,i))),this[Kn("0x1")][Kn("0x94")](i),i}loadRevisionData(e){if(!e||e.diffData)return Promise[Kn("0xa7")]();{const t=this[Kn("0xc4")][Kn("0x74")][Kn("0xc0")](Kn("0x3d"));return this.adapter[Kn("0xba")]({channelId:t,revisionId:e.id})[Kn("0xea")]((t=>{e._update({diffData:t[Kn("0x32")]},!0)}))}}_cleanUp(){this[Kn("0xcc")]=null,this[Kn("0xb7")](),this[Kn("0x34")]&&this[Kn("0x34")][Kn("0x84")](),this[Kn("0x34")]=null,this[Kn("0x5f")][Kn("0x16")]()}[Kn("0x8")](e){const t=Array[Kn("0x2d")](e.markers).filter((([e,t])=>e.startsWith(Kn("0x30"))&&!t[Kn("0x43")])),i=Array[Kn("0x2d")](this[Kn("0xc4")].model[Kn("0xfe")](e).getWalker({singleCharacters:!0}));if(0!=t[Kn("0xcb")])for(const e of i){const[i,n]=t[0],[,r,o]=i[Kn("0x9b")](":");if(n[Kn("0x56")].isEqual(e.nextPosition)&&t[Kn("0xef")](),(e[Kn("0xd")].isEqual(n[Kn("0x2b")])||e[Kn("0xd")][Kn("0x5a")](n[Kn("0x2b")]))&&(Kn("0x9f")==r?e.isAdded={userId:o}:"deletion"==r&&(e[Kn("0x4c")]={userId:o})),0==t.length)break}return i}[Kn("0x8f")](e){const t=new Map;for(let i=0;i<e[Kn("0xcb")];i++)"text"===e[i][Kn("0x8e")]?(e[i][Kn("0x7e")][Kn("0xe9")]=i,e[i][Kn("0x7e")][Kn("0x88")]=i):(Kn("0xf")===e[i][Kn("0x8e")]?e[i][Kn("0x7e")].startIndex=i:Kn("0xeb")===e[i][Kn("0x8e")]&&(e[i][Kn("0x7e")][Kn("0x88")]=i),t[Kn("0xda")](e[i].id,i));for(const i of t[Kn("0xe6")]())Kn("0xf")===e[i][Kn("0x8e")]?e[i][Kn("0x7e")][Kn("0x88")]=t[Kn("0xc0")](e[i].pairId):"elementEnd"===e[i][Kn("0x8e")]&&(e[i][Kn("0x7e")][Kn("0xe9")]=t.get(e[i][Kn("0x59")]))}_processTape(e){for(let t=0;t<e[Kn("0xcb")];t++){if(Kn("0xf")===e[t][Kn("0x8e")])e[t].item[Kn("0xe9")]=t;else if(Kn("0xeb")===e[t][Kn("0x8e")]){e[t].item[Kn("0x88")]=t;const i=e[t][Kn("0x7e")][Kn("0xe9")];e[i][Kn("0x59")]=e[t].id,e[t][Kn("0x59")]=e[i].id}else e[t].item[Kn("0xe9")]=t,e[t][Kn("0x7e")][Kn("0x88")]=t,e[t][Kn("0x59")]=null;e[t][Kn("0xd2")]||(e[t].markersStart=[],e[t][Kn("0x23")]=[])}}[Kn("0x8b")](e,t){const i=e[Kn("0x105")]((e=>!e[Kn("0x14")]));for(let e=0;e<t[Kn("0xcb")];e++)t[e].isAdded&&(i[e][Kn("0x14")]=t[e][Kn("0x14")])}[Kn("0x9a")](e){const t=JSON.parse(e),i=this.editor[Kn("0x5")][Kn("0x22")].document,n=new o.ViewDocumentFragment(i,t[Kn("0x9")]((e=>this._getViewObj(e))));return this.editor[Kn("0x60")][Kn("0x63")](n)}[Kn("0xa")](e){const t=this[Kn("0xc4")][Kn("0x5")][Kn("0x22")][Kn("0xb3")];if(Kn("0x40")==typeof e)return new o.ViewText(t,e);{const i=e[Kn("0xd8")].map((e=>this[Kn("0xa")](e)));return new(Xn[e.type]||o.ViewElement)(t,e.name,e[Kn("0x98")],i)}}[Kn("0xd4")](e,t=null){const i=this[Kn("0x1")].getRevision(e),n=t?this.repository.getRevision(t):null,r=this[Kn("0x17")](i,n),o=r[r.length-1],s=new Map;for(const e of r){e[Kn("0x9d")]={};for(const t of e[Kn("0x49")])s[Kn("0xda")](t.id,t);for(const t of this[Kn("0xc4")].model[Kn("0xb3")][Kn("0xaa")]())e[Kn("0x32")][t]||(e[Kn("0x32")][t]={insertions:"[]",deletions:"[]"}),e[Kn("0x9d")][t]={insertions:this[Kn("0x9a")](e[Kn("0x32")][t][Kn("0x8a")]),deletions:this[Kn("0x9a")](e[Kn("0x32")][t][Kn("0x66")])}}const a={model:{},changes:[]};for(const e of this[Kn("0xc4")][Kn("0x9d")][Kn("0xb3")].getRootNames()){let t=null,n=0;const c=new Map(Array[Kn("0x2d")](i[Kn("0x9d")][e].insertions[Kn("0xc7")]).filter((([e])=>!e[Kn("0x72")](Kn("0x30")))));let u=0;for(const o of r){const r=this._makeTape(o[Kn("0x9d")][e][Kn("0x8a")]);o==i?(t=r,n=t[Kn("0xcb")],t[Kn("0xd6")]((e=>{e.id=u++})),this[Kn("0xbb")](t)):this[Kn("0x8b")](t,r);const s=t.filter((e=>!e.isAdded))[Kn("0x9")]((e=>e.id));let a=0;const d=this._makeTape(o[Kn("0x9d")][e][Kn("0x66")]);d[Kn("0xd6")]((e=>{e[Kn("0x4c")]?e.id=n++:e.id=s[a++]})),this._processTape(d),this[Kn("0xe1")](t,Kn("0x14")),this._setDistance(d,Kn("0x4c")),o==i&&this[Kn("0x8c")](t,c),t=this[Kn("0x52")](t,d),this[Kn("0x8f")](t),this._setDistance(t,"isRemoved")}t=t[Kn("0x105")]((e=>!(e[Kn("0x14")]&&e.isRemoved)));const d=new Map(o[Kn("0x9d")][e][Kn("0x66")][Kn("0xc7")]),l=new Set(c[Kn("0x33")]());for(const e of d[Kn("0x33")]())l[Kn("0xfc")](e);this[Kn("0xb9")](t,l),this[Kn("0xd5")](t),t=this[Kn("0xf2")](t),t=this[Kn("0xf4")](t),t=this[Kn("0x29")](t);const{root:x,changes:h}=this[Kn("0xd0")](t,s);a[Kn("0x9d")][e]=x,a[Kn("0xc8")]=a.changes[Kn("0x8d")](h)}return a}[Kn("0x8c")](e,t){for(let i=0;i<e[Kn("0xcb")];i++)for(const[n,r]of t)r[Kn("0x2b")][Kn("0x7a")](e[i][Kn("0xd")])&&e[i][Kn("0xd2")].push(n),r[Kn("0x56")][Kn("0x7a")](e[i].nextPosition)&&e[i][Kn("0x23")][Kn("0x5e")](n)}_joinTapes(e,t){let i=[],n=0,r=0;for(;n<e[Kn("0xcb")]||r<t[Kn("0xcb")];){const o=e[n]||{},s=t[r]||{};if(o.id==s.id)n++,r++,i[Kn("0x5e")](o);else if(s[Kn("0x4c")]&&o.isAdded){const{commonTape:o,iEnd:s,jEnd:a}=this[Kn("0xb0")](e,n,t,r);i=i[Kn("0x8d")](o),n=s,r=a}else s.isRemoved?(r++,i[Kn("0x5e")](s)):(n++,i[Kn("0x5e")](o))}return i}_markSuggestions(e,t){const i=[];for(let o=0;o<e[Kn("0xcb")];o++){for(let r=0;r<e[o][Kn("0xd2")][Kn("0xcb")];r++){const s=e[o][Kn("0xd2")][r];if(!t.has(s))continue;const{group:a,type:c,authorId:u}=n(s);"revision-suggestion"!=a||Kn("0x9f")!=c&&Kn("0xbe")!=c||(i.unshift({type:c,name:s,userId:u}),e[o][Kn("0xd2")][Kn("0x5b")](r,1),r--)}r(e[o]);for(let r=0;r<e[o].markersEnd.length;r++){const s=e[o][Kn("0x23")][r];if(!t.has(s))continue;const{group:a,type:c}=n(s);if(Kn("0xc5")!=a||Kn("0x9f")!=c&&"deletion"!=c)continue;e[o][Kn("0x23")].splice(r,1),r--;const u=i.findIndex((e=>e.name==s));u>-1&&i[Kn("0x5b")](u,1)}}function n(e){const t=e[Kn("0x9b")](":");return{group:t[0],type:t[1],subType:t[Kn("0xcb")]>=5?t[2]:null,id:t[Kn("0xcb")]<5?t[2]:t[3],authorId:t[Kn("0xcb")]<5?t[3]:t[4],markerCount:6==t[Kn("0xcb")]?t[5]:null}}function r(e){for(let t=0;t<i[Kn("0xcb")];t++){if(e.isAdded&&Kn("0x9f")==i[t][Kn("0x8e")])return e.isAddSuggestion=i[t],void delete e[Kn("0x14")];if(!e[Kn("0x14")]&&!e.isRemoved&&Kn("0xbe")==i[t][Kn("0x8e")])return void(e[Kn("0x51")]=i[t])}}}[Kn("0xe1")](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[Kn("0xda")](o.id,i);for(let i=0;i<e[Kn("0xcb")];i++){if(Kn("0x4c")==t&&e[i].isAdded||"isAdded"==t&&e[i][Kn("0x4c")])continue;if(Kn("0xe7")==e[i][Kn("0x8e")]){e[i][Kn("0x27")]=0;continue}const n=r[Kn("0xc0")](e[i][Kn("0x59")]),o=r[Kn("0xc0")](e[i].id);e[i][Kn("0x27")]=n-o}}[Kn("0x17")](e,t,i=!1){const n=[];let r=this.repository[Kn("0xce")](e),o=this[Kn("0x1")].getIndex(t);for(-1==o&&(o=this.repository[Kn("0x6")].length,i=!1);r<o;)n[Kn("0x5e")](this.repository[Kn("0xba")](r)),r++;return i&&n[Kn("0x5e")](this.repository.getRevision(r)),n}[Kn("0xb0")](e,t,i,n){const r=this[Kn("0xc4")][Kn("0x9d")].schema;let o=t;for(;e[o]&&e[o][Kn("0x14")];)o++;let s=n;for(;i[s]&&i[s][Kn("0x4c")];)s++;c(e,t,o),c(i,n,s);const a=i[Kn("0x6d")](n,s).concat(e[Kn("0x6d")](t,o));return a[Kn("0x1e")](((e,t)=>e.side!=t[Kn("0x5d")]?e[Kn("0x5d")]-t[Kn("0x5d")]:e[Kn("0x64")]!=t[Kn("0x64")]?e[Kn("0x64")]-t[Kn("0x64")]:e[Kn("0x27")]!=t.distance?t[Kn("0x27")]-e.distance:!!e[Kn("0x14")]!=!!t[Kn("0x14")]?-1==e[Kn("0x5d")]||0==e[Kn("0x5d")]?e[Kn("0x14")]?-1:1:e[Kn("0x14")]?1:-1:e[Kn("0xf9")]-t.index)),{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.isInline(e[a][Kn("0x7e")])||(s=!1),e[a][Kn("0x7e")][Kn("0xe9")]<t&&(n=a),e[a][Kn("0x7e")].endIndex>=i){o=a;break}s&&(n=i-1);for(let r=t;r<i;r++)e[r].side=r<=n?-1:r<o?0:1,e[r][Kn("0xf9")]=r;let a=0;for(let i=t;i<=n;i++)0==e[i][Kn("0x27")]?e[i][Kn("0x64")]=a:(a++,e[i][Kn("0x64")]=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].distance?e[t][Kn("0x64")]=a:(a--,e[t][Kn("0x64")]=a,a--)}}[Kn("0xd5")](e){const t=new Map,i=this[Kn("0xc4")][Kn("0x9d")][Kn("0xc9")];for(let n=1;n<e.length;n++){let r,o,s;const a=e[n],c=e[n-1];if("text"==a.type)continue;if(a[Kn("0x8e")]!=c[Kn("0x8e")])continue;if(!i[Kn("0xca")](c[Kn("0x7e")])||i.isLimit(c[Kn("0x7e")]))continue;if(!i[Kn("0xca")](a.item)||i[Kn("0x46")](a.item))continue;if((e[n].isAdded||e[n][Kn("0x53")])&&e[n-1][Kn("0x4c")])r=e[n],o=e[n-1],s=n-1;else{if(!e[n].isRemoved||!e[n-1].isAdded&&!e[n-1][Kn("0x53")])continue;r=e[n-1],o=e[n],s=n}const u=r.level==o[Kn("0x64")],d=Math[Kn("0xff")](r.level)<Math.abs(o[Kn("0x64")])&&0==o[Kn("0x27")];(u||d)&&(t[Kn("0xda")](o.id,r.id),e[Kn("0x5b")](s,1),n--,r[Kn("0x14")]=!1)}for(let i=0;i<e[Kn("0xcb")];i++)t[Kn("0x81")](e[i][Kn("0x59")])&&(e[i][Kn("0x59")]=t.get(e[i][Kn("0x59")]))}[Kn("0xf2")](e){const t=new Set(e[Kn("0x9")]((e=>e.id)));for(let i=0;i<e.length;i++)t[Kn("0x81")](e[i][Kn("0x59")])||0==e[i][Kn("0x27")]||(e[i][Kn("0x20")]=!0);return e[Kn("0x105")]((e=>!e.isIncorrect))}[Kn("0xf4")](e){const t=new Set;for(let i=0;i<e[Kn("0xcb")];i++){if(t.has(e[i].id)&&e[i][Kn("0x4c")]&&(e[i].isIncorrect=!0),e[i][Kn("0x20")])continue;if(0==e[i][Kn("0x27")])continue;if("elementStart"!=e[i][Kn("0x8e")])continue;if(null==e[i].pairId)continue;let n=i+1,r=0;for(;e[n].id!=e[i].pairId;)"elementStart"==e[n][Kn("0x8e")]?r++:Kn("0xeb")==e[n][Kn("0x8e")]&&r--,n++;if(0!=r)if(e[i][Kn("0x4c")])e[i][Kn("0x20")]=!0;else for(;n!=i;)e[n].isRemoved&&0!=e[n].distance&&(e[n][Kn("0x20")]=!0,t.add(e[n].pairId)),n--}return e.filter((e=>!e[Kn("0x20")]))}[Kn("0x29")](e){const t=this[Kn("0xc4")][Kn("0x9d")][Kn("0xc9")];for(let i=0;i<e[Kn("0xcb")];i++){if(!(e[i][Kn("0x14")]||e[i][Kn("0x53")]||e[i].isRemoved||e[i][Kn("0x51")]))continue;if(0==e[i][Kn("0x27")])continue;const n=e[i][Kn("0x7e")];t.isBlock(n)||t.isLimit(n)||(e[i][Kn("0x14")]&&delete e[i][Kn("0x14")],e[i][Kn("0x53")]&&delete e[i][Kn("0x53")],e[i][Kn("0x51")]&&delete e[i].isRemoveSuggestion,e[i][Kn("0x4c")]&&(e[i][Kn("0x20")]=!0))}return e[Kn("0x105")]((e=>!e[Kn("0x20")]))}[Kn("0xd0")](e,t){const i=new o.DocumentFragment,n=[],r=new Map,s=this.editor[Kn("0x9d")],a=s[Kn("0xc9")],c=[i],u={},d={isAdded:[],isRemoved:[],isAddSuggestion:[],isRemoveSuggestion:[]};let l=null;const x=[0];for(let t=0;t<e.length;t++){let n,a;if(Kn("0xf")===e[t][Kn("0x8e")]){n=s[Kn("0xb")](i,x);const r=new o.Element(e[t].item.name,e[t].item.getAttributes());c[0]._appendChild(r),x[Kn("0x5e")](0),c[Kn("0x65")](r),a=s[Kn("0xb")](i,x),l=null}else if(Kn("0xeb")===e[t][Kn("0x8e")])c[Kn("0xef")](),n=s[Kn("0xb")](i,x),x[Kn("0x6a")](),x[x[Kn("0xcb")]-1]++,a=s[Kn("0xb")](i,x),l=null;else{if(n=s[Kn("0xb")](i,x),l&&v(l,e[t].item))l._data+=e[t][Kn("0x7e")][Kn("0x60")];else{const i=new o.Text(e[t].item[Kn("0x60")],e[t].item.getAttributes());c[0][Kn("0x82")](i),l=i}x[x.length-1]+=e[t].item.offsetSize,a=s[Kn("0xb")](i,x)}for(const i of e[t].markersStart)r[Kn("0xda")](i,{start:n,end:null});h("isRemoveSuggestion",t,n,a),h(Kn("0x53"),t,n,a),h(Kn("0x4c"),t,n,a),h(Kn("0x14"),t,n,a);for(const i of e[t][Kn("0x23")])r[Kn("0xc0")](i)[Kn("0x56")]=a}for(const[e,t]of r){const n=this[Kn("0xc4")][Kn("0x9d")][Kn("0xf1")](t[Kn("0x2b")],t[Kn("0x56")]);i.markers[Kn("0xda")](e,n)}return n.sort(((e,t)=>{const n=i[Kn("0xc7")][Kn("0xc0")]("revision:"+e.id),r=i[Kn("0xc7")][Kn("0xc0")](Kn("0x30")+t.id);return n.start.isBefore(r[Kn("0x2b")])?-1:n[Kn("0x2b")][Kn("0x5a")](r[Kn("0x2b")])?1:n.end.isBefore(r[Kn("0x56")])?-1:n[Kn("0x56")][Kn("0x5a")](r[Kn("0x56")])?1:"add"===e.type?-1:1})),{root:i,changes:n};function h(t,i,n,r){const o=!!e[i][t],s=o?e[i][t][Kn("0xd7")]:null,c=i===e[Kn("0xcb")]-1,l=d[t][0],x=a[Kn("0x35")](e[i][Kn("0x7e")]);!u[t]&&o?u[t]={start:n,tapeItem:e[i],userId:s,type:t}:u[t]&&!o?(u[t][Kn("0x56")]=n,f(u[t]),u[t]=null):u[t]&&o&&u[t][Kn("0xd7")]!==s&&(u[t][Kn("0x56")]=n,l&&l.userId===u[t].userId||f(u[t]),u[t]={start:n,tapeItem:e[i],userId:s,type:t}),u[t]&&x&&(Kn("0xf")!==e[i][Kn("0x8e")]||l&&l[Kn("0xd7")]===s||d[t][Kn("0x65")]({userId:s,object:e[i][Kn("0x7e")],change:u[t]}),Kn("0xeb")===e[i][Kn("0x8e")]&&l&&l[Kn("0x2a")]===e[i][Kn("0x7e")]&&(d[t][Kn("0xef")](),u[t]=l[Kn("0x44")])),u[t]&&c&&(u[t][Kn("0x56")]=r,f(u[t]),u[t]=null)}function f({start:e,end:r,tapeItem:o,userId:a,type:c}){const u=o[Kn("0x7e")],d=s[Kn("0xc9")][Kn("0xca")](u)&&!s[Kn("0xc9")].isLimit(u),l=e[Kn("0x76")]==r[Kn("0x3b")]&&r.isAtStart;if(d&&l)return;const x=s[Kn("0xf1")](e,r),h=t[Kn("0xc0")](a),f=new zn({author:h,type:Kn("0x14")==c||Kn("0x53")==c?Kn("0x4d"):"remove",data:{isSuggestion:Kn("0x53")==c||Kn("0x51")==c},createdAt:new Date});n[Kn("0x5e")](f),i[Kn("0xc7")][Kn("0xda")]("revision:"+f.id,x)}function v(e,t){const i=e[Kn("0xf5")](),n=t[Kn("0xf5")]();for(const e of i){if(e[1]!==t[Kn("0xf3")](e[0]))return!1;n[Kn("0x42")]()}return n[Kn("0x42")]()[Kn("0x107")]}}[Kn("0xad")](){this[Kn("0xc4")][Kn("0xf0")][Kn("0x100")](Kn("0x86"))[Kn("0x96")]({view:Kn("0x104")}),this[Kn("0xc4")][Kn("0xf0")][Kn("0x100")](Kn("0x4f"))[Kn("0x91")]({model:Kn("0x104"),view:e=>{const t=e[Kn("0xc3")][Kn("0x9b")](":")[1],i=this[Kn("0x4")](t);if(!i)return null;const n=Kn("0x4d")==i[Kn("0x8e")]?Kn("0x9f"):Kn("0xbe"),r=[Kn("0xc6"),Kn("0xf8")+n];return i[Kn("0x60")][Kn("0x5c")]&&r.push(Kn("0xf8")+n+Kn("0xdd")),this[Kn("0xcc")]==i&&r[Kn("0x5e")](Kn("0x89")),{classes:r,attributes:{"data-change-id":t}}}}),this[Kn("0xc4")][Kn("0xf0")][Kn("0x100")]("upcast")[Kn("0x4d")]((e=>{e.on("element:pre",((e,t,i)=>{const n=t[Kn("0x92")][Kn("0xee")](0);if(!n||!n.is(Kn("0xae"),"code"))return;if(!i[Kn("0x12")].consume(n,{attributes:["vid_start",Kn("0xdf")]}))return;const r=t.modelRange[Kn("0x2b")][Kn("0x76")];i[Kn("0xf6")][Kn("0x15")]("vid_start",n[Kn("0xf3")]("vid_start"),r),i[Kn("0xf6")][Kn("0x15")](Kn("0xdf"),n[Kn("0xf3")](Kn("0xdf")),r)}),{priority:Kn("0xb6")})})),this[Kn("0xc4")][Kn("0xf0")].for("upcast")[Kn("0x4d")]((e=>{e.on(Kn("0xae"),((e,t,i)=>{if(!i[Kn("0x12")].consume(t[Kn("0x92")],{attributes:[Kn("0x2e"),Kn("0xdf")]}))return;if(t[Kn("0x7")].isCollapsed)return;const n=t[Kn("0x7")][Kn("0x2b")][Kn("0x76")];n.hasAttribute(Kn("0x2e"))||n.hasAttribute(Kn("0x2"))||(i[Kn("0xf6")][Kn("0x15")](Kn("0x2e"),t[Kn("0x92")][Kn("0xf3")](Kn("0x2e")),n),i[Kn("0xf6")][Kn("0x15")](Kn("0xdf"),t[Kn("0x92")][Kn("0xf3")](Kn("0xdf")),n))}),{priority:"low"})})),this[Kn("0xc4")][Kn("0xf0")][Kn("0x100")](Kn("0x86"))[Kn("0x7c")]({view:{name:"span",attributes:{vid:!0}},model:{key:Kn("0x2"),value:e=>e[Kn("0xf3")](Kn("0x2"))}}),this[Kn("0xc4")][Kn("0x9d")][Kn("0xc9")].on("checkAttribute",((e,[,t])=>{[Kn("0x2e"),Kn("0xdf"),"vid"].includes(t)&&(e.return=!0,e[Kn("0xf7")]())}),{priority:Kn("0xcf")}),this.editor[Kn("0xf0")][Kn("0x100")]("dataDowncast").add((e=>{e.on(Kn("0x0"),((e,t,i)=>{if(" "!=t[Kn("0x7e")].data||t[Kn("0x7e")][Kn("0x3b")][Kn("0xfd")]>1)return;if(!i[Kn("0x12")][Kn("0x39")](t.item,e[Kn("0xc1")]))return;const n=i.writer,r=i.mapper[Kn("0x38")](t[Kn("0x78")]);n[Kn("0x4a")](r,n.createAttributeElement("span"))}))})),this.editor[Kn("0xf0")].for(Kn("0x79"))[Kn("0x61")]({model:"revision"}),this[Kn("0xc4")].editing[Kn("0x1b")].on(Kn("0x37"),function(e){const t=e.plugins[Kn("0xc0")](Kn("0x6b"));return(i,n,r)=>{const o=n[Kn("0xc3")][Kn("0x9b")](":")[1],s=t[Kn("0x4")](o);if(!s)return null;const a=Kn("0x4d")==s.type?Kn("0x9b"):Kn("0x21");if(!r[Kn("0x12")][Kn("0x77")](n[Kn("0xb1")],i.name))return;const c=n[Kn("0xb1")][Kn("0x103")](),u=n.markerRange[Kn("0x2b")],d=e[Kn("0x9d")][Kn("0xc9")];let l=null,x=null,h=!1,f=!1;for(const e of c){const t=e[Kn("0x7e")];h=h||d.isContent(t);const i=r.mapper[Kn("0x1f")](t);if(i&&i[Kn("0x3f")](Kn("0x101")))return;Kn("0xeb")==e.type&&d[Kn("0xca")](t)&&!d[Kn("0x46")](t)&&(t[Kn("0x47")]||u.isAtEnd?l&&l[Kn("0x3b")]==t||(l=t,v(e.previousPosition),f=!0):x=x||e[Kn("0xd")])}function v(e){const i=r[Kn("0xf6")][Kn("0x73")](Kn("0xd3"),{class:Kn("0xf8")+a}),o=r[Kn("0xed")][Kn("0xa8")](e);s.data[Kn("0x5c")]&&r[Kn("0xf6")].addClass(Kn("0xf8")+a+Kn("0xdd"),i),t[Kn("0xcc")]==s&&r.writer.addClass(Kn("0x89"),i),r.writer[Kn("0x106")](o,i),r[Kn("0xed")][Kn("0xab")](i,n[Kn("0xc3")])}h||f||!x||v(x)}}(this[Kn("0xc4")]),{priority:Kn("0x1c")}),this[Kn("0xc4")][Kn("0x5")][Kn("0x1b")].on(Kn("0xaf"),((e,t,i)=>{const n=i[Kn("0xed")][Kn("0x13")](t[Kn("0xc3")]);if(n)for(const e of n)(e[Kn("0x83")](Kn("0x67"))||e.hasClass(Kn("0xd9")))&&(i[Kn("0xed")].unbindElementFromMarkerName(e,t.markerName),i.writer[Kn("0x50")](e))}),{priority:"high"}),this[Kn("0xc4")][Kn("0x5")][Kn("0x1b")].on(Kn("0x37"),((e,t,i)=>{const n=t[Kn("0xc3")][Kn("0x9b")](":")[1],r=this[Kn("0x4")](n);if(!r)return null;const o="add"==r[Kn("0x8e")]?Kn("0x9b"):"merge";if(i.consumable[Kn("0x77")](t[Kn("0xb1")],e[Kn("0xc1")]))for(const e of t.markerRange.getItems()){if(!e.is(Kn("0xae"),Kn("0x45")))continue;const n=i.writer[Kn("0x73")](Kn("0xd3"),{class:"ck-suggestion-marker-"+o}),s=i[Kn("0xed")][Kn("0xa8")](this[Kn("0xc4")][Kn("0x9d")][Kn("0x9c")](e));r.data[Kn("0x5c")]&&i[Kn("0xf6")][Kn("0xec")](Kn("0xf8")+o+Kn("0xdd"),n),this.activeChange==r&&i[Kn("0xf6")][Kn("0xec")]("ck-suggestion-marker--active",n),i[Kn("0xf6")].insert(s,n),i.mapper[Kn("0xab")](n,t[Kn("0xc3")])}}),{priority:"high"}),this[Kn("0xc4")][Kn("0xf0")].for("upcast").dataToMarker({view:Kn("0x4e"),model:e=>Kn("0xa5")+e,converterPriority:Kn("0xcf")}),this[Kn("0xc4")][Kn("0xf0")][Kn("0x100")](Kn("0x86"))[Kn("0x96")]({view:"suggestion",model:e=>Kn("0xa9")+e,converterPriority:Kn("0xcf")}),this[Kn("0xc4")].conversion[Kn("0x100")](Kn("0x79"))[Kn("0x61")]({model:Kn("0xc5"),view:e=>Kn("0xb5")+e,converterPriority:Kn("0xcf")}),this[Kn("0xc4")][Kn("0xf0")][Kn("0x100")](Kn("0x4f"))[Kn("0x91")]({model:Kn("0xc5"),view:e=>{const t=e[Kn("0xc3")][Kn("0x9b")](":")[1];return Kn("0x9f")!=t&&"deletion"!=t?null:{classes:[Kn("0x3e"),Kn("0xcd")+t]}}}),this.editor.editing[Kn("0x1b")].on("addMarker:revision-suggestion:deletion",er(this[Kn("0xc4")],Kn("0x21")),{priority:Kn("0x1c")}),this.editor[Kn("0x5")][Kn("0x1b")].on(Kn("0xe"),er(this[Kn("0xc4")],"split"),{priority:Kn("0x1c")}),this[Kn("0xc4")][Kn("0x5")][Kn("0x1b")].on(Kn("0x93"),((e,t,i)=>{const n=i[Kn("0xed")][Kn("0x13")](t[Kn("0xc3")]);if(n)for(const e of n)e.is(Kn("0x90"))&&(i[Kn("0xed")][Kn("0xa4")](e,t[Kn("0xc3")]),i[Kn("0xf6")][Kn("0x50")](e))}),{priority:"high"})}_getChangeFromId(e){return this._changeIdToChange[Kn("0xc0")](e)}_getViewForChange(e){this._changeView&&this._changeView[Kn("0x84")](),this[Kn("0x34")]=new jn(this.editor.locale,e);const t=this[Kn("0xc4")][Kn("0x9d")][Kn("0xc7")][Kn("0xc0")](Kn("0x30")+e.id);return this[Kn("0x34")][Kn("0x54")]=()=>(0,r.getMarkerDomElement)(this[Kn("0xc4")][Kn("0x5")],t),this[Kn("0x34")]}[Kn("0xa1")](){this[Kn("0xc4")][Kn("0x9d")][Kn("0xb3")][Kn("0x25")].observeMarkers("revision"),this.on(Kn("0xc2"),((e,t,i,n)=>{n&&this[Kn("0x3a")][Kn("0x50")](n),i&&(this[Kn("0x3a")][Kn("0x4d")]({view:i,stackId:Kn("0x95"),position:{target:i[Kn("0x54")]}}),this[Kn("0x3a")].showStack(Kn("0x95")))})),this.on(Kn("0x1d"),((e,t,i,n)=>{this.activeView=i?this[Kn("0xde")](i):null,this[Kn("0xc4")][Kn("0x9d")][Kn("0x44")]((()=>{const e=this.editor.editing;n&&e.reconvertMarker(Kn("0x30")+n.id),i&&e.reconvertMarker(Kn("0x30")+i.id)}))})),this.listenTo(this[Kn("0xc4")][Kn("0x5")].view[Kn("0xb3")],"mouseover",((e,t)=>{if(this[Kn("0xcc")])return;const i=this[Kn("0xe2")](t.target),n=this._changeIdToChange[Kn("0xc0")](i);this[Kn("0x11")]=n?this._getViewForChange(n):null})),this[Kn("0x6e")](this[Kn("0xc4")][Kn("0x5")][Kn("0x22")][Kn("0xb3")],Kn("0x18"),((e,t)=>{const i=this[Kn("0xe2")](t[Kn("0xa2")]),n=this[Kn("0x5f")].get(i);this[Kn("0xcc")]=n||null}))}_findChangeIdFromDomTarget(e){do{const t=e.getAttribute(Kn("0x2f"));if(t)return t;e=e[Kn("0x3b")]}while(e);return null}[Kn("0xb7")](){this[Kn("0xc4")].model.change((e=>{for(const t of this[Kn("0xc4")][Kn("0x9d")].markers)e[Kn("0x99")](t)}))}}function er(e,t){return(i,n,r)=>{if(!r.consumable[Kn("0x77")](n[Kn("0xb1")],i.name))return;const o=n[Kn("0xb1")][Kn("0x103")](),s=n.markerRange[Kn("0x2b")],a=e[Kn("0x9d")][Kn("0xc9")];let c=null,u=null,d=!1,l=!1;for(const e of o){const t=e[Kn("0x7e")];d=d||a[Kn("0x69")](t);const i=r[Kn("0xed")].toViewElement(t);if(i&&i[Kn("0x3f")](Kn("0x101")))return;Kn("0xeb")==e[Kn("0x8e")]&&a[Kn("0xca")](t)&&!a.isLimit(t)&&(t[Kn("0x47")]||s.isAtEnd?c&&c[Kn("0x3b")]==t||(c=t,x(e.previousPosition),l=!0):u=u||e[Kn("0xd")])}function x(e){const i=r[Kn("0xed")][Kn("0xa8")](e),o=r[Kn("0xf6")][Kn("0x73")](Kn("0xd3"),{class:Kn("0xcd")+t});r[Kn("0xf6")].insert(i,o),r.mapper.bindElementToMarker(o,n[Kn("0xc3")])}d||l||!u||x(u)}}(0,t.mix)(Qn,t.ObservableMixin);class tr extends e.Command{constructor(e){super(e);const t=e.plugins[Kn("0xc0")](Qn);this.stopListening(e,"change:isReadOnly"),this.clearForceDisabled("readOnlyMode"),this[Kn("0x6e")](t,"change:isReady",(()=>this[Kn("0xe0")]())),this[Kn("0x6e")](t,"change:isEnabled",(()=>this[Kn("0xe0")]()))}[Kn("0x97")](){const e=this[Kn("0xc4")],t=e[Kn("0x71")].get(Qn),i=t[Kn("0x68")]?t.diff[Kn("0x6c")]:null;e[Kn("0x74")][Kn("0xc0")](Kn("0x7d"))[Kn("0x7f")](i)}refresh(){const{isReady:e,isEnabled:t}=this[Kn("0xc4")][Kn("0x71")].get(Qn);this[Kn("0xe8")]=e&&t}}class ir extends e.Command{constructor(e,{direction:t}){super(e);const i=e.plugins[Kn("0xc0")](Qn);this.stopListening(e,Kn("0x24")),this[Kn("0x36")](Kn("0x19")),this._step="forward"===t?1:-1,this[Kn("0x6e")](i,Kn("0x4b"),(()=>this[Kn("0xe0")]())),this[Kn("0x6e")](i,Kn("0x70"),(()=>this[Kn("0xe0")]()))}execute(){const e=this.editor,i=e[Kn("0x71")].get(Qn),{isNavigationMode:n,currentChangeNumber:o}=i;i.activeChange=n?i.diff[Kn("0xc8")].get(o+this[Kn("0x6f")]):i.diff.changes[Kn("0xdc")];const s=e.model[Kn("0xc7")][Kn("0xc0")](Kn("0x30")+i[Kn("0xcc")].id),a=(0,r.getMarkerDomElement)(e[Kn("0x5")],s);(0,t.scrollViewportToShowTarget)({target:a,viewportOffset:40})}refresh(){const{isNavigationMode:e,currentChangeNumber:t,numberOfChanges:i,isReady:n,isEnabled:r}=this.editor[Kn("0x71")][Kn("0xc0")](Qn);this[Kn("0xe8")]=!!(r&&n&&i)&&(!e||(1===this[Kn("0x6f")]?t<i-1:t>0))}}var nr=i(164),rr={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};vn()(nr.Z,rr);nr.Z.locals;const or=["isEnabled","Total","Show previous change","ck-revision-history-ui__changes-navigation__navigation","backward","ck-revision-history-ui__changes-navigation__label","ck-revision-history-ui__changes-navigation","execute","NUMBER_OF_CHANGES","X_OF_Y_CHANGES","_statusText","Loading...","Show next change","bind","set","div","isReady","isForwardNavigationEnabled","isBackwardNavigationEnabled","setTemplate","No changes","forward","ck-hidden","fire","ck-revision-history-ui","numberOfChanges","EDIT_X_OF_Y_REVISIONS","_isStatusLabelVisible","span","currentChangeNumber","isNavigationMode"];var sr,ar;sr=or,ar=209,function(e){for(;--e;)sr.push(sr.shift())}(++ar);const cr=function(e,t){return or[e-=0]};class ur extends hn.View{constructor(e){super(e);const t=this.bindTemplate,i=new hn.ButtonView(e),n=new hn.ButtonView(e);this[cr("0x16")]("isNavigationMode",!1),this[cr("0x16")](cr("0x18"),!1),this[cr("0x16")](cr("0x6"),0),this[cr("0x16")]("numberOfChanges",0),this[cr("0x16")](cr("0x19"),!1),this[cr("0x16")](cr("0x1a"),!1),this[cr("0x15")](cr("0x4")).to(this,cr("0x18"),this,cr("0x2"),((e,t)=>e&&t>0)),this[cr("0x15")](cr("0x12")).to(this,cr("0x18"),this,"currentChangeNumber",this,cr("0x2"),this,cr("0x7"),((t,i,n,r)=>{if(!t)return en(e,cr("0x13"));if(!n)return en(e,cr("0x1c"));const o=en(e,cr("0x10"),n);return r?en(e,cr("0x11"),[i+1,n]):o})),i[cr("0x16")]({label:en(e,cr("0xa")),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[cr("0x16")]({label:en(e,cr("0x14")),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[cr("0x15")](cr("0x8")).to(this,cr("0x1a")),n[cr("0x15")](cr("0x8")).to(this,cr("0x19")),i.on("execute",(()=>this[cr("0x0")]("execute",cr("0xc")))),n.on(cr("0xf"),(()=>this.fire(cr("0xf"),cr("0x1d")))),this[cr("0x1b")]({tag:cr("0x17"),attributes:{class:["ck",cr("0x1"),cr("0xe")]},children:[{tag:cr("0x5"),attributes:{class:["ck-revision-history-ui__changes-navigation__wrapper"]},children:[{tag:"span",attributes:{class:[cr("0xd"),t.if(cr("0x4"),cr("0x1e"),(e=>!e))]},children:[{text:t.to(cr("0x7"),(t=>t?en(e,cr("0x3"))+": ":en(e,cr("0x9"))+": "))}]},{text:t.to(cr("0x12"))}]},new hn.ToolbarSeparatorView,{tag:cr("0x17"),attributes:{class:[cr("0xb")]},children:[i,n]}]})}}var dr=i(368),lr={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};vn()(dr.Z,lr);dr.Z.locals;const xr=["change","addClass","hide","roots","editor","show","editing","document","ck-editor__editable__loading-overlay","pluginName","removeClass","view"];var hr,fr;hr=xr,fr=292,function(e){for(;--e;)hr.push(hr.shift())}(++fr);const vr=function(e,t){return xr[e-=0]};class mr extends e.Plugin{static get[vr("0x5")](){return"RevisionViewerLoadingOverlay"}[vr("0x1")](){const e=this[vr("0x0")][vr("0x2")][vr("0x7")];e[vr("0x8")]((t=>{for(const i of e[vr("0x3")].roots)t[vr("0x9")](vr("0x4"),i)}))}[vr("0xa")](){const e=this[vr("0x0")][vr("0x2")][vr("0x7")];e[vr("0x8")]((t=>{for(const i of e.document[vr("0xb")])t[vr("0x6")](vr("0x4"),i)}))}}const gr=["commands","init","hide","bind","add","exitToEditing","isBackwardNavigationEnabled","listenTo","currentChangeNumber","showNextChange","changesNavigation","isEnabled","show","restoreRevision","numberOfChanges","showPreviousChange","set","forward","requires","pluginName","componentFactory","isNavigationMode","isReady","plugins","Back to editing","RevisionViewerUI","get","execute","closeRevisionViewerCallback"];var pr,yr;pr=gr,yr=353,function(e){for(;--e;)pr.push(pr.shift())}(++yr);const br=function(e,t){return gr[e-=0]};class kr extends e.Plugin{static get[br("0xe")](){return br("0x14")}static get[br("0xd")](){return[Qn,mr]}[br("0x19")](){const e=this.editor,t=e.plugins[br("0x15")](Qn),i=e[br("0x12")][br("0x15")](mr);e.ui[br("0xf")][br("0x1c")](br("0x0"),(t=>{const i=new hn.ButtonView(t);return i[br("0xb")]({label:en(t,br("0x13")),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m5.042 9.367 2.189 1.837a.75.75 0 0 1-.965 1.149l-3.788-3.18a.747.747 0 0 1-.21-.284.75.75 0 0 1 .17-.945L6.23 4.762a.75.75 0 1 1 .964 1.15L4.863 7.866h8.917A.75.75 0 0 1 14 7.9a4 4 0 1 1-1.477 7.718l.344-1.489a2.5 2.5 0 1 0 1.094-4.73l.008-.032H5.042z"/></svg>',withText:!0,tooltip:!0,class:"ck-revision-history-ui__back-to-editing"}),this[br("0x2")](i,br("0x16"),(()=>{e.config[br("0x15")]("revisionHistory")[br("0x17")]()})),i})),e.ui.componentFactory.add(br("0x8"),(t=>{const i=new hn.ButtonView(t);return i[br("0xb")]({label:en(t,"Restore this revision"),withText:!0,tooltip:!0}),i[br("0x1b")]("isEnabled").to(e[br("0x18")][br("0x15")](br("0x8"))),this[br("0x2")](i,br("0x16"),(()=>e.execute(br("0x8")))),i})),e.ui[br("0xf")][br("0x1c")](br("0x5"),(i=>{const n=new ur(i),r=e.commands[br("0x15")](br("0xa")),o=e[br("0x18")][br("0x15")]("showNextChange");return n[br("0x1b")](br("0x1")).to(r,br("0x6")),n[br("0x1b")]("isForwardNavigationEnabled").to(o,"isEnabled"),n[br("0x1b")](br("0x11"),br("0x3"),br("0x9"),br("0x10")).to(t),this.listenTo(n,"execute",((t,i)=>{e[br("0x16")](br("0xc")===i?br("0x4"):br("0xa"))})),n})),i[br("0x7")](),t.on("change:isReady",((e,t,n)=>{n?i[br("0x1a")]():i[br("0x7")]()}))}}var _r=i(957),wr={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};vn()(_r.Z,wr);_r.Z.locals;var Sr,Tr,Or=["ck-revision-history-sidebar__revision-name","set","extendTemplate"];Sr=Or,Tr=361,function(e){for(;--e;)Sr.push(Sr.shift())}(++Tr);var Ir=function(e,t){return Or[e-=0]};class Rr extends hn.LabeledFieldView{constructor(e,...t){super(e,...t),this[Ir("0x0")]({label:en(e,"Revision name")}),this[Ir("0x1")]({tag:"span",attributes:{class:[Ir("0x2")]}})}}var Nr=i(522),Vr={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};vn()(Nr.Z,Vr);Nr.Z.locals;const Mr=["Revision author","ck-revision-history-sidebar__revision-author_creator","0 0 11 10","ck-revision-history-sidebar__revision-author__name","span","ck-revision-history-sidebar__revision-author","Revision creator","setTemplate","set","push"];var Er,Dr;Er=Mr,Dr=200,function(e){for(;--e;)Er.push(Er.shift())}(++Dr);const Ar=function(e,t){return Mr[e-=0]};class jr extends hn.View{constructor(e,t,i){super(e);const n=new hn.IconView(e);n[Ar("0x8")]({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:Ar("0x2")});const r=["ck",Ar("0x5")];i&&r[Ar("0x9")](Ar("0x1"));const o=[{tag:Ar("0x4"),attributes:{class:["ck",Ar("0x3")],title:en(e,Ar(i?"0x6":"0x0"))},children:[n,t.name]}];this[Ar("0x7")]({tag:"li",attributes:{class:r},children:o})}}var Cr,Fr,Lr=["long","toLocaleDateString","toLocaleTimeString"];Cr=Lr,Fr=106,function(e){for(;--e;)Cr.push(Cr.shift())}(++Fr);var Pr=function(e,t){return Lr[e-=0]};var zr=i(834),Zr={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};vn()(zr.Z,Zr);zr.Z.locals;const Ur=["ck-revision-history-sidebar__revision__actions","locale","isEnabled","isOpen","Name this revision","isVisible","source","_action","stopPropagation","name","model","bindTemplate","ck-on","class","add","panelPosition","action","isActionsDropdownOpen","map","extendTemplate","first","find","buttonView","isReady","children","set","Compare against selected","bind"];var Hr,qr;Hr=Ur,qr=192,function(e){for(;--e;)Hr.push(Hr.shift())}(++qr);const Br=function(e,t){return Ur[e-=0]};var Wr=i(525),Jr={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};vn()(Wr.Z,Jr);Wr.Z.locals;const Gr=["ck-reset","220","uiLanguage","render","fieldView","bind","unshift","ck-revision-history-sidebar__revision-authors","setTemplate","createdAt","element","length","ck-revision-history-sidebar__revision-wrapper_confirmation_visible","isReady","_createdAtFormatted","isEnabled","map","from","ck-revision-history-sidebar__revision__date","select","fire","srcElement","ck-revision-history-sidebar__revision_highlighted","bindTemplate","revisionNameView","isActionsDropdownOpen","isConfirm","setName","extendTemplate","set","creator","change","name","span","ck-revision-history-sidebar__revision__controls-wrapper","deselect","listenTo","div","isHighlighted","authors","closest","placeholder","revisionActionsView","isSelected",".ck-thread__remove-confirm"];var Yr,$r;Yr=Gr,$r=272,function(e){for(;--e;)Yr.push(Yr.shift())}(++$r);const Kr=function(e,t){return Gr[e-=0]};class Xr extends hn.View{constructor(e,i,n){super(e);const r=this[Kr("0x15")],o=function(e,t){const i=Array[Kr("0xf")](t[Kr("0x25")]).filter((e=>e!=t[Kr("0x1c")]));return t[Kr("0x1c")]&&i[Kr("0x4")](t.creator),i[Kr("0xe")]((i=>new jr(e,i,i==t[Kr("0x1c")])))}(e,i);this._revision=i,this.id=i.id,this[Kr("0x3")]("name",Kr("0x7")).to(i),this[Kr("0x1b")]("isSelected",!1),this[Kr("0x1b")](Kr("0x24"),!1),this.set(Kr("0x17"),!1),this[Kr("0x1b")](Kr("0xb"),!1),this[Kr("0x3")](Kr("0xc")).to(this,Kr("0x7"),(t=>{return t?(i=e[Kr("0x0")],(n=t)[Pr("0x0")](i,{month:Pr("0x2"),day:"numeric"})+", "+n[Pr("0x1")](i,{hour:"numeric",minute:"numeric"})):null;var i,n})),this[Kr("0x1b")](Kr("0xd"),!1),this[Kr("0x16")]=new Rr(e,hn.createLabeledInputText),this[Kr("0x16")][Kr("0x2")][Kr("0x1a")]({attributes:{maxlength:Kr("0x2c")}}),this[Kr("0x16")].fieldView.bind("value",Kr("0x27")).to(this,Kr("0x1e"),Kr("0xc")),this[Kr("0x16")][Kr("0x3")](Kr("0xd")).to(this,"isSelected",this,Kr("0xd"),((e,t)=>e&&t)),this[Kr("0x28")]=n&&n[Kr("0x9")]?function(e,i){const n=e[Br("0xf")],r=e[Br("0x5")],o=(0,hn.createDropdown)(r);o[Br("0x13")]="sw";const s=function(e,i){const n=function(e,t){const i=e[Br("0x5")],n={"Compare against selected":en(i,Br("0x2")),"Name this revision":en(i,Br("0x8")),"Restore this revision":en(i,"Restore this revision")};return t[Br("0x16")]((e=>{const t=n[e[Br("0xd")]];return t&&t!==e[Br("0xd")]&&(e[Br("0xd")]=t),e}))}(e,i),r=new t.Collection;for(const t of n){const i={type:"button",model:new hn.Model({label:t[Br("0xd")],class:t[Br("0x11")],withText:!0,_action:t[Br("0x14")]})};i[Br("0xe")].bind("isEnabled").to(e,Br("0x15"),(i=>"function"!=typeof t[Br("0x6")]||!i||t[Br("0x6")](e))),r[Br("0x12")](i)}return r}(e,i);return e[Br("0x3")](Br("0x15")).to(o,Br("0x7")),o[Br("0x1a")][Br("0x1")]({label:en(r,"Show more items"),tooltip:!0,tooltipPosition:"sw",icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="9.5" cy="4.5" r="1.5"/><circle cx="9.5" cy="10.5" r="1.5"/><circle cx="9.5" cy="16.5" r="1.5"/></svg>'}),o[Br("0x17")]({attributes:{class:[Br("0x4"),n.if("isActionsDropdownOpen",Br("0x10"))]},on:{click:n.to((e=>e[Br("0xc")]()))}}),o.on("execute",(t=>{e[Br("0x1b")]&&"function"==typeof t.source[Br("0xb")]&&t[Br("0xa")][Br("0xb")](e)})),(0,hn.addListToDropdown)(o,s),o.listenTo(e,"change:isActionsDropdownOpen",((t,n,r)=>{if(r)for(const t of o.listView.items){const n=t[Br("0x0")][Br("0x18")],r=i[Br("0x19")]((e=>e[Br("0x14")]===n[Br("0xb")]))[Br("0x9")];t[Br("0x9")]=void 0===r||r(e)}})),o}(this,n):"",this.revisionActionsView[Kr("0x3")](Kr("0xd")).to(this),this[Kr("0x6")]({tag:Kr("0x23"),attributes:{class:["ck",Kr("0x2b"),"ck-revision-history-sidebar__revision-wrapper",r.if(Kr("0x18"),Kr("0xa"))]},children:[{tag:Kr("0x23"),attributes:{class:["ck",Kr("0x2b"),"ck-revision-history-sidebar__revision",r.if(Kr("0xd"),"ck-disabled",(e=>!e)),r.if(Kr("0x29"),"ck-revision-history-sidebar__revision_selected"),r.if(Kr("0x24"),Kr("0x14")),r.if(Kr("0x17"),"ck-revision-history-sidebar__actions_dropdown_open")]},children:[this[Kr("0x16")],{tag:Kr("0x1f"),attributes:{class:["ck",Kr("0x10")]},children:[{text:r.to(Kr("0xc"))}]},{tag:"div",attributes:{class:["ck",Kr("0x20")]},children:[{tag:"ul",attributes:{class:["ck",Kr("0x5")]},children:o}]},this[Kr("0x28")]],on:{click:r.to((e=>{e[Kr("0x13")][Kr("0x26")](Kr("0x2a"))||this[Kr("0xb")]&&this[Kr("0xd")]&&this.fire(Kr("0x11"),{id:this.id})}))}}]})}[Kr("0x1")](){super[Kr("0x1")]();const e=this[Kr("0x16")].fieldView[Kr("0x8")];this[Kr("0x22")](e,Kr("0x1d"),(()=>{this[Kr("0x12")](Kr("0x19"),{id:this.id,name:e.value})}))}[Kr("0x11")](){this[Kr("0x29")]=!0}[Kr("0x21")](){this[Kr("0x29")]=!1}highlight(){this[Kr("0x24")]=!0}unhighlight(){this[Kr("0x24")]=!1}}(0,t.mix)(Xr,r.ConfirmMixin);var Qr=i(810);const eo=["hasSame","minus","year","toRelativeCalendar","monthLong","startOf","week","day","toJSDate","setLocale"];var to,io;to=eo,io=409,function(e){for(;--e;)to.push(to.shift())}(++io);const no=function(e,t){return eo[e-=0]};function ro(e,t){e=Qr.ou.fromJSDate(e)[no("0x0")](t);const i=Qr.ou.local(),n=i[no("0x2")]({days:1})[no("0x6")](no("0x8"));let r,o;return e[no("0x1")](i,no("0x8"))?(r=e.startOf(no("0x8"))[no("0x9")](),o=e.toRelativeCalendar()):e[no("0x1")](n,"day")?(r=n[no("0x9")](),o=e[no("0x4")]()):e[no("0x1")](i,no("0x7"))?(r=e[no("0x6")](no("0x7"))[no("0x9")](),o=e.weekdayLong):e.hasSame(i,no("0x3"))?(r=e[no("0x6")]("month")[no("0x9")](),o=e[no("0x5")]):(r=e[no("0x6")]("year")[no("0x9")](),o=e[no("0x3")]),{startDate:r,localizedPeriodName:o}}var oo=i(37),so={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};vn()(oo.Z,so);oo.Z.locals;const ao=["select","removeRevision","span","createCollection","uiLanguage","div","ck-revision-history-sidebar__time-period__revisions","_revisionActions","locale","revisionViews","ck-revision-history-sidebar__time-period","startDate","delegate","remove"];var co,uo;co=ao,uo=323,function(e){for(;--e;)co.push(co.shift())}(++uo);const lo=function(e,t){return ao[e-=0]};class xo extends hn.View{constructor(e,t,i){super(e);const n=ro(t,this.locale[lo("0x3")]).localizedPeriodName;this[lo("0xa")]=t,this._revisionActions=i,this[lo("0x8")]=this[lo("0x2")](),this[lo("0x8")].delegate(lo("0xd")).to(this),this[lo("0x8")][lo("0xb")]("setName").to(this),this.setTemplate({tag:lo("0x4"),attributes:{class:["ck",lo("0x9")]},children:[{tag:lo("0x1"),attributes:{class:["ck","ck-revision-history-sidebar__time-period__label"]},children:[{text:n}]},{tag:"div",attributes:{class:["ck",lo("0x5")]},children:this[lo("0x8")]}]})}addRevision(e){const t=new Xr(this[lo("0x7")],e,this[lo("0x6")]);this.revisionViews.add(t)}[lo("0x0")](e){const t=this[lo("0x8")].find((t=>t.id===e.id));this.revisionViews[lo("0xc")](t)}}var ho=i(29),fo={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};vn()(ho.Z,fo);ho.Z.locals;const vo=["ck-reset_all","ck-revision-history-sidebar__header","span","content","ck-revision-history-sidebar__header__label","Revision history","setTemplate","div"];var mo,go;mo=vo,go=402,function(e){for(;--e;)mo.push(mo.shift())}(++go);const po=function(e,t){return vo[e-=0]};class yo extends hn.View{constructor(e){super(e);const t=new hn.IconView(e);t[po("0x1")]=Tn,this[po("0x4")]({tag:po("0x5"),attributes:{class:["ck",po("0x6"),po("0x7")]},children:[t,{tag:po("0x0"),attributes:{class:["ck",po("0x2")]},children:[en(e,po("0x3"))]}]})}}var bo=i(790),ko={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};vn()(bo.Z,ko);bo.Z.locals;const _o=["timePeriodViews","map","ck-rounded-corners","_addRevision","setName","ck-reset","highlight","addRevision","some","ck-revision-history-sidebar","revisionViews","removeRevision","unhighlight","createCollection","find","startDate","revisionSelected","remove","createdAt","get","render","isEnabled","div","select","_revisions","revisionSetName","_revisionActions","set","locale","deselect","fire","_getTimePeriodViewByStartDate","selectRevision","getTime","setTemplate","_removeRevision","highlightRevisions"];var wo,So;wo=_o,So=189,function(e){for(;--e;)wo.push(wo.shift())}(++So);const To=function(e,t){return _o[e-=0]};class Oo extends hn.View{constructor(e,t,i){super(e);const n=this.bindTemplate;this[To("0x21")]=this[To("0x9")](),this[To("0x21")].delegate(To("0x13")).to(this),this.timePeriodViews.delegate(To("0x0")).to(this),this._revisions=t,this._revisionActions=i,this.on(To("0x13"),((e,t)=>{this[To("0x1a")](To("0xc"),t)})),this.on(To("0x0"),((e,t)=>{this[To("0x1a")](To("0x15"),t)})),this[To("0x17")](To("0x11"),!1),this[To("0x1e")]({tag:To("0x12"),attributes:{class:["ck",To("0x1"),To("0x23"),To("0x5")]},children:[new yo(e),{tag:"div",attributes:{class:["ck","ck-revision-history-sidebar__timeline",n.if(To("0x11"),"ck-disabled",(e=>!e))]},children:this[To("0x21")]}]})}[To("0x10")](){super[To("0x10")]();for(const e of this[To("0x14")])this[To("0x24")](e);this._revisions.on("add",((e,t)=>{this._addRevision(t)})),this[To("0x14")].on(To("0xd"),((e,t)=>{this._removeRevision(t)}))}get revisionViews(){return this.timePeriodViews[To("0x22")]((e=>e[To("0x6")].map((e=>e)))).flat()}[To("0x1c")](e){for(const t of this[To("0x6")])e&&e.id===t.id?t[To("0x13")]():t[To("0x19")]()}[To("0x20")](e){for(const t of this[To("0x6")])e[To("0x4")]((({id:e})=>e===t.id))?t[To("0x2")]():t[To("0x8")]()}[To("0x24")](e){const t=ro(e.createdAt)[To("0xb")];let i=this[To("0x21")][To("0xf")](0);i&&i.startDate[To("0x1d")]()===t[To("0x1d")]()||(i=new xo(this[To("0x18")],t,this[To("0x16")]),this.timePeriodViews.add(i)),i[To("0x3")](e)}[To("0x1f")](e){const t=ro(e[To("0xe")]).startDate;this[To("0x1b")](t)[To("0x7")](e)}[To("0x1b")](e){return this[To("0x21")][To("0xa")]((t=>t[To("0xb")].getTime()===e.getTime()))}}const Io=["string","compareAgainstSelected","config","getRevision","plugins","bind","map","_handleDiffChange","diff","RevisionsSidebar","restoreRevisionCallback","availableRevisionActions","ready","timePeriodViews","pluginName","length","element","_handleRevisionSetName","_createRevisionActions","getIndex","listenTo","_handleEditorDataReady","select","_revisions","isVisible","_revisionsRepository","getEarlierVisibleRevision","fieldView","isEnabled","locale","isSelected","destroy","change:diff","repository","get","_revisionViewer","revisionHistory.viewerSidebarContainer","getRevisionsInDiff","focus","Restore this revision","highlightRevisions","isReady","selectRevision","requires","compare","appendChild","newRevisionId","_sidebarView","getLaterVisibleRevision","assign","revisionSelected","revisionHistory.revisionActions","data","_handleRevisionSelected","action","revisionViews","nameRevision","add","defaultRevisionActions","setName"];var Ro,No;Ro=Io,No=185,function(e){for(;--e;)Ro.push(Ro.shift())}(++No);const Vo=function(e,t){return Io[e-=0]};class Mo extends e.Plugin{static get[Vo("0x9")](){return Vo("0x4")}static get[Vo("0x26")](){return[Qn]}constructor(e){super(e),this[Vo("0x1e")]=e[Vo("0x3b")][Vo("0x1d")](Qn),this._revisionsRepository=this[Vo("0x1e")][Vo("0x1c")],this[Vo("0x2a")]=null}init(){const e=this[Vo("0x14")][Vo("0x12")],t=this[Vo("0xd")](),i=this.editor[Vo("0x39")].get(Vo("0x1f"));this[Vo("0x2a")]=new Oo(this.editor[Vo("0x18")],e,t),this[Vo("0x2a")].on(Vo("0x2d"),this[Vo("0x30")][Vo("0x0")](this)),this[Vo("0x2a")].on("revisionSetName",this[Vo("0xc")][Vo("0x0")](this)),this._sidebarView[Vo("0x0")](Vo("0x17")).to(this._revisionViewer),this[Vo("0x2a")][Vo("0x8")].on(Vo("0x34"),((e,t)=>{t[Vo("0x32")].on(Vo("0x34"),((e,t)=>{t[Vo("0x0")](Vo("0x17"),Vo("0x24")).to(this[Vo("0x1e")])}))})),this[Vo("0x2a")].render(),this.listenTo(this.editor[Vo("0x2f")],Vo("0x7"),this[Vo("0x10")][Vo("0x0")](this)),this[Vo("0xf")](this[Vo("0x1e")],Vo("0x1b"),this[Vo("0x2")][Vo("0x0")](this)),i[Vo("0x28")](this[Vo("0x2a")][Vo("0xb")])}[Vo("0x1a")](){this._sidebarView.element.remove(),this._sidebarView[Vo("0x1a")]()}[Vo("0x10")](){const e=this[Vo("0x14")][Vo("0x3a")](0);if(e){const t=this[Vo("0x14")][Vo("0x15")](e.id);this[Vo("0x1e")][Vo("0x27")](e,t)}}[Vo("0x30")](e,t){const i=this[Vo("0x14")][Vo("0x3a")](t.id),n=this[Vo("0x14")][Vo("0x15")](i.id);this[Vo("0x1e")][Vo("0x27")](i,n)}[Vo("0xc")](e,t){this[Vo("0x14")][Vo("0x3a")](t.id)[Vo("0x36")](t.name)}_handleDiffChange(e,t,i){const n=this[Vo("0x14")][Vo("0x20")](i);n[Vo("0xa")]>2?(this[Vo("0x2a")][Vo("0x23")](n),this[Vo("0x2a")].selectRevision(null)):(this._sidebarView[Vo("0x23")]([]),this[Vo("0x2a")][Vo("0x25")](n[0]))}_createRevisionActions(){const e=this.editor,t=Mo[Vo("0x6")],i=e.config[Vo("0x1d")](Vo("0x2e"))||Mo[Vo("0x35")];if(i[Vo("0xa")])return i[Vo("0x1")]((i=>{const n=Vo("0x37")==typeof i?Object[Vo("0x2c")]({},t[i]):i;return n[Vo("0x31")]=n.action[Vo("0x0")](this,e),n[Vo("0x13")]&&(n[Vo("0x13")]=n.isVisible[Vo("0x0")](this,e)),n}))}}Mo[Vo("0x6")]={compareAgainstSelected:{name:"Compare against selected",action:({plugins:e},t)=>{const i=e[Vo("0x1d")](Qn),n=i[Vo("0x1c")];let r=i[Vo("0x3")][Vo("0x29")],o=t.id;n.getIndex(r)>n[Vo("0xe")](o)&&([r,o]=[o,r]),i[Vo("0x27")](r,o)},isVisible:({plugins:e},t)=>{const i=e[Vo("0x1d")](Qn);return!(i[Vo("0x1c")][Vo("0x20")](i.diff)[Vo("0xa")]>2||t[Vo("0x19")])}},restoreRevision:{name:Vo("0x22"),action:(e,{id:t})=>{e[Vo("0x39")].get("revisionHistory")[Vo("0x5")](t)},isVisible:({plugins:e},t)=>!!e[Vo("0x1d")](Qn)[Vo("0x1c")][Vo("0x2b")](t.id)},nameRevision:{name:"Name this revision",action:({plugins:e},{id:t,revisionNameView:i})=>{const n=e[Vo("0x1d")](Qn),r=n[Vo("0x1c")][Vo("0x15")](t);n[Vo("0x27")](t,r),i[Vo("0x21")](),i[Vo("0x16")][Vo("0x11")]()}}},Mo[Vo("0x35")]=[Vo("0x38"),"restoreRevision",Vo("0x33")];const Eo=["get","attachDomRoot","document","focusTracker","_toolbarConfig","name","componentFactory","stickyPanel","destroy","element","_elementReplacer","restore","detachDomRoot","fillFromConfig","replace","fire","rootName","editable","view","addToolbar","toolbar","editing","bind","viewportTopOffset","isFocused","editor","_initToolbar","ready","limiterElement"];var Do,Ao;Do=Eo,Ao=485,function(e){for(;--e;)Do.push(Do.shift())}(++Ao);const jo=function(e,t){return Eo[e-=0]};class Co extends e.EditorUI{constructor(e,i){super(e),this[jo("0x1a")]=i,this[jo("0xc")]=(0,hn.normalizeToolbarConfig)(e.config[jo("0x8")](jo("0x1c"))),this[jo("0x12")]=new t.ElementReplacer}get element(){return this.view[jo("0x11")]}init(e){const t=this[jo("0x4")],i=this.view,n=t[jo("0x0")][jo("0x1a")],r=i[jo("0x19")],o=n[jo("0xa")].getRoot();r[jo("0xd")]=o[jo("0x18")],i.render();const s=r[jo("0x11")];this.setEditableElement(r.name,s),i[jo("0x19")].bind("isFocused").to(this[jo("0xb")]),n[jo("0x9")](s),this[jo("0x12")][jo("0x16")](e,this.element),this[jo("0x5")](),this[jo("0x17")](jo("0x6"))}[jo("0x10")](){const e=this[jo("0x1a")],t=this.editor[jo("0x0")][jo("0x1a")];this[jo("0x12")][jo("0x13")](),t[jo("0x14")](e[jo("0x19")][jo("0xd")]),e[jo("0x10")](),super[jo("0x10")]()}[jo("0x5")](){const e=this[jo("0x1a")];e[jo("0xf")][jo("0x1")]("isActive").to(this.focusTracker,jo("0x3")),e[jo("0xf")][jo("0x7")]=e[jo("0x11")],e[jo("0xf")].bind(jo("0x2")).to(this,"viewportOffset",(({top:e})=>e)),e.toolbar[jo("0x15")](this[jo("0xc")],this[jo("0xe")]),this[jo("0x1b")](e[jo("0x1c")])}}var Fo=i(168),Lo={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};vn()(Fo.Z,Lo);Fo.Z.locals;var Po,zo,Zo=["render","content","shouldToolbarGroupWhenFull","editable","main","stickyPanel","toolbar","top","add"];Po=Zo,zo=359,function(e){for(;--e;)Po.push(Po.shift())}(++zo);var Uo=function(e,t){return Zo[e-=0]};class Ho extends hn.BoxedEditorUIView{constructor(e,t,i={}){super(e),this[Uo("0x6")]=new hn.StickyPanelView(e),this[Uo("0x7")]=new hn.ToolbarView(e,{shouldGroupWhenFull:i[Uo("0x3")]}),this[Uo("0x4")]=new hn.InlineEditableUIView(e,t)}[Uo("0x1")](){super[Uo("0x1")](),this[Uo("0x6")][Uo("0x2")][Uo("0x0")](this[Uo("0x7")]),this[Uo("0x8")][Uo("0x0")](this[Uo("0x6")]),this[Uo("0x5")][Uo("0x0")](this.editable)}}const qo=["sourceElement","data","locale","updateSourceElement","create","document","fire","config","initPlugins","editing","init","get","ready","view","destroy","model"];var Bo,Wo;Bo=qo,Wo=302,function(e){for(;--e;)Bo.push(Bo.shift())}(++Wo);const Jo=function(e,t){return qo[e-=0]};class Go extends e.Editor{constructor(e,t){super(t),this[Jo("0x2")]=e,this[Jo("0x1")][Jo("0x7")].createRoot();const i=new Ho(this[Jo("0x4")],this[Jo("0xb")][Jo("0xf")],{shouldToolbarGroupWhenFull:!0});this.ui=new Co(this,i)}destroy(){return this[Jo("0x5")](),this.ui[Jo("0x0")](),super[Jo("0x0")]()}static async[Jo("0x6")](e,t){const i=new this(e,t);return await i[Jo("0xa")](),await i.ui.init(e),await i[Jo("0x3")][Jo("0xc")](i[Jo("0x9")][Jo("0xd")]("initialData")),i[Jo("0x8")](Jo("0xe")),i}}(0,t.mix)(Go,e.DataApiMixin),(0,t.mix)(Go,e.ElementApiMixin);const Yo=["_update","RevisionViewer","indexOf","constructor","changesNavigation","closeRevisionViewerCallback","destroy","initialData","catch","toolbar","isReady","every","Restored","create","createdAt","get","revisionHistory","_showRevisionViewer","Users","filter","change","refreshVisibility","has","addRevisionData","exitToEditing","concat","_restoreRevision","requires","config","block","function","none","toVersion","removeMarker","Autosave","getRevisionData","extraPlugins","includes","data","toLocaleTimeString","from","getRevisions","map","RevisionHistoryUI","revisionHistory.restoreRevisionCallback","_enhanceCloseRevisionViewerCallback","plugins","style","display","commands","revision-history-viewer-opened","init","revision-history-missing-configuration","restoreRevision","pluginName","locale","revisionHistory.editorContainer","revisionHistory.viewerContainer","bind","getUser","repository","PaginationLookup","save","RevisionTracker","refreshPositioning","_viewerEditor","RevisionsRepository","_recalculatePageBreaks","uiLanguage","fromVersion","toJSON","set","error","revisionHistory.showRevisionViewerCallback","revisionHistory.closeRevisionViewerCallback","saveRevision","adapter","define","_getRevisionViewerEditorConfig","_enhanceShowRevisionViewerCallback","string","RealTimeCollaborativeComments","editor","restrictedEditingException","_closeRevisionViewer","model","push","name","Annotations","toLocaleDateString","long","numeric","RealTimeCollaborativeEditing","getMarkersGroup","builtinPlugins","then","getRevision"];var $o,Ko;$o=Yo,Ko=108,function(e){for(;--e;)$o.push($o.shift())}(++Ko);const Xo=function(e,t){return Yo[e-=0]},Qo=["context"],es=[Xo("0x34"),Xo("0x20"),Xo("0x51"),Xo("0x46"),"RealTimeCollaborativeTrackChanges","RestrictedEditingMode","Autosave"];class ts extends e.Plugin{static get[Xo("0x2b")](){return"RevisionHistory"}static get[Xo("0x10")](){return[an,Vn]}constructor(...e){if(super(...e),!this[Xo("0x47")].config[Xo("0x4")](Xo("0x5")))throw new t.CKEditorError(Xo("0x29"),this);this._viewerEditor=null,this.editor[Xo("0x11")][Xo("0x42")](Xo("0x3e"),(e=>this[Xo("0x6")](e))),this[Xo("0x47")][Xo("0x11")].define(Xo("0x3f"),(e=>this[Xo("0x49")](e))),this[Xo("0x47")][Xo("0x11")].define(Xo("0x21"),(e=>this._restoreRevision(e))),this[Xo("0x44")](),this[Xo("0x22")]()}set[Xo("0x41")](e){this[Xo("0x47")].plugins.get(Xo("0x34")).adapter=e}get[Xo("0x41")](){return this[Xo("0x47")][Xo("0x23")].get(Xo("0x34")).adapter}addRevisionData(...e){return this[Xo("0x47")].plugins[Xo("0x4")](Xo("0x34")).addRevisionData(...e)}[Xo("0x55")](...e){return this[Xo("0x47")][Xo("0x23")][Xo("0x4")](Xo("0x37"))[Xo("0x55")](...e)}[Xo("0x1e")](...e){return this.editor[Xo("0x23")].get(Xo("0x37"))[Xo("0x1e")](...e)}_getRevisionViewerEditorConfig(){const i={},n=this[Xo("0x47")],r=n[Xo("0x23")].get(Xo("0x34")),o=n[Xo("0x23")][Xo("0x4")](Xo("0x7")).users;for(const e of n[Xo("0x11")].names())Qo[Xo("0x1a")](e)||(i[e]=n.config[Xo("0x4")](e));i[Xo("0x5d")]="",i[Xo("0x5f")]=[Xo("0xd"),Xo("0x2a"),Xo("0x5a")];const s=this[Xo("0x47")][Xo("0x59")][Xo("0x53")]||[],a=i.extraPlugins||[];delete i[Xo("0x19")];const c=s[Xo("0xe")](i[Xo("0x23")]).concat(a)[Xo("0x1f")]((e=>Xo("0x45")==typeof e?s.find((t=>t[Xo("0x2b")]==e)):e));return i[Xo("0x23")]=Array[Xo("0x1d")](new Set(c))[Xo("0x8")]((e=>is(e,n.plugins,[]))),i[Xo("0x23")][Xo("0x4b")](Qn,kr,class extends e.Plugin{static get[Xo("0x10")](){return[Qn,Xo("0x7")]}[Xo("0x28")](){const e=this.editor[Xo("0x23")][Xo("0x4")]("Users");for(const t of o)t.isAnonymous||e[Xo("0x30")](t.id)||e.addUser(t);const i=r[Xo("0x31")][Xo("0x1e")]();let s=null;const a=this[Xo("0x47")][Xo("0x23")][Xo("0x4")](Xo("0x57"));a[Xo("0x41")]=r[Xo("0x41")],a[Xo("0x2f")]("isEnabled").to(r),this[Xo("0x47")][Xo("0x26")].get(Xo("0x2a"))[Xo("0x2f")]("isEnabled").to(n,"isReadOnly",(e=>!e));for(const e of i){const i=null===e.creator;if(i&&e[Xo("0x15")]===e[Xo("0x3a")])continue;const n=e[Xo("0x3b")]();a[Xo("0xc")](n,((n,o,a)=>{if(i){if(s)s._update(n,o);else if(!o){const e=a.toJSON();e.id=(0,t.uid)(),r[Xo("0x40")](e,a.toVersion)[Xo("0x54")]((e=>{s=e}))}}else e[Xo("0x56")](n,o)}))}}},Mo),i}[Xo("0x44")](){const e=this[Xo("0x47")][Xo("0x11")][Xo("0x4")](Xo("0x5")).showRevisionViewerCallback;this[Xo("0x47")][Xo("0x11")].set(Xo("0x3e"),(async()=>{this[Xo("0x47")].enableReadOnlyMode(Xo("0x27"));const t=this[Xo("0x47")].plugins[Xo("0x4")](Xo("0x34"));this.editor.plugins[Xo("0xb")](Xo("0x17"))?await this[Xo("0x47")].plugins[Xo("0x4")]("Autosave")[Xo("0x33")]():await t.update(),this[Xo("0x47")][Xo("0x23")][Xo("0xb")](Xo("0x32"))&&this[Xo("0x47")][Xo("0x23")][Xo("0x4")](Xo("0x32"))[Xo("0x38")]();const i=this[Xo("0x43")]();return e(i).then((e=>{this[Xo("0x36")]=e,this.editor.plugins[Xo("0xb")]("Annotations")&&this[Xo("0x47")][Xo("0x23")][Xo("0x4")](Xo("0x4d")).refreshVisibility()}))[Xo("0x5e")]((e=>{console.error(e),this[Xo("0x47")].disableReadOnlyMode("revision-history-viewer-opened")}))}))}_enhanceCloseRevisionViewerCallback(){const e=this[Xo("0x47")][Xo("0x11")][Xo("0x4")](Xo("0x5")).closeRevisionViewerCallback;this[Xo("0x47")][Xo("0x11")][Xo("0x3c")](Xo("0x3f"),(()=>(this.editor.plugins[Xo("0xb")](Xo("0x32"))&&this[Xo("0x47")].plugins[Xo("0x4")](Xo("0x32"))[Xo("0x38")](),e(this._viewerEditor)[Xo("0x54")]((()=>{this[Xo("0x47")].disableReadOnlyMode(Xo("0x27")),this[Xo("0x36")]=null,this[Xo("0x47")][Xo("0x23")][Xo("0xb")](Xo("0x4d"))&&(this[Xo("0x47")].plugins[Xo("0x4")]("Annotations")[Xo("0xa")](),this[Xo("0x47")].plugins[Xo("0x4")](Xo("0x4d"))[Xo("0x35")]())})))))}[Xo("0x6")](e){const t=this[Xo("0x47")][Xo("0x11")].get(Xo("0x2d")),i=this[Xo("0x47")][Xo("0x11")][Xo("0x4")]("revisionHistory.viewerContainer"),n=this.editor[Xo("0x11")][Xo("0x4")]("revisionHistory.viewerEditorElement");return Go[Xo("0x2")](n,e)[Xo("0x54")]((e=>(i[Xo("0x24")][Xo("0x25")]=Xo("0x12"),t[Xo("0x24")][Xo("0x25")]=Xo("0x14"),e)))}[Xo("0x49")](e){const t=this[Xo("0x47")][Xo("0x11")][Xo("0x4")](Xo("0x2d"));return this[Xo("0x47")][Xo("0x11")][Xo("0x4")](Xo("0x2e"))[Xo("0x24")][Xo("0x25")]=Xo("0x14"),t[Xo("0x24")][Xo("0x25")]="",e[Xo("0x5c")]()}async[Xo("0xf")](e){const t=this.editor,i=this[Xo("0x36")][Xo("0x23")].get("RevisionViewer"),n=t[Xo("0x23")].get("RevisionTracker"),r=i.repository.getRevision(e);let o,s;try{o=await i[Xo("0x18")](r)}catch(e){return void console[Xo("0x3d")](e)}t[Xo("0x4a")][Xo("0x9")]((e=>{for(const i of Array[Xo("0x1d")](t[Xo("0x4a")].markers[Xo("0x52")](Xo("0x48"))))e[Xo("0x16")](i)})),i.isReady=!1,t[Xo("0x1b")].set(o,{suppressErrorInCollaboration:!0});const a=en(t[Xo("0x2c")],Xo("0x1"));return s=r[Xo("0x4c")]?-1==r[Xo("0x4c")][Xo("0x58")](a)?a+": "+r[Xo("0x4c")]:r[Xo("0x4c")]:a+": "+r.createdAt[Xo("0x4e")](t.locale[Xo("0x39")],{month:Xo("0x4f"),day:Xo("0x50")})+", "+r[Xo("0x3")][Xo("0x1c")](t[Xo("0x2c")][Xo("0x39")],{hour:Xo("0x50"),minute:"numeric"}),await n.saveRevision({name:s}),i[Xo("0x60")]=!0,t[Xo("0x11")][Xo("0x4")](Xo("0x5"))[Xo("0x5b")]()}}function is(e,t,i){const n="function"==typeof e?e[Xo("0x2b")]||e[Xo("0x4c")]:e;if(i[Xo("0x1a")](n))return!0;if(i[Xo("0x4b")](n),es[Xo("0x1a")](n))return!1;const r=((Xo("0x13")==typeof e?e:t[Xo("0xb")](n)?t[Xo("0x4")](n):{})[Xo("0x10")]||[])[Xo("0x0")]((e=>is(e,t,i)));return r||es[Xo("0x4b")](n),r}})(),(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}',""]);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(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function c(e,t,i){return c=a()?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},c.apply(null,arguments)}function u(e){var t="function"==typeof Map?new Map:void 0;return u=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 c(e,arguments,o(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),s(n,e)},u(e)}function d(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 l(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 d(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)?d(e,t):void 0}}(e)))return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}var x=function(e){function t(){return e.apply(this,arguments)||this}return r(t,e),t}(u(Error)),h=function(e){function t(t){return e.call(this,"Invalid DateTime: "+t.toMessage())||this}return r(t,e),t}(x),f=function(e){function t(t){return e.call(this,"Invalid Interval: "+t.toMessage())||this}return r(t,e),t}(x),v=function(e){function t(t){return e.call(this,"Invalid Duration: "+t.toMessage())||this}return r(t,e),t}(x),m=function(e){function t(){return e.apply(this,arguments)||this}return r(t,e),t}(x),g=function(e){function t(t){return e.call(this,"Invalid unit "+t)||this}return r(t,e),t}(x),p=function(e){function t(){return e.apply(this,arguments)||this}return r(t,e),t}(x),y=function(e){function t(){return e.call(this,"Zone is an abstract class")||this}return r(t,e),t}(x),b="numeric",k="short",_="long",w={year:b,month:b,day:b},S={year:b,month:k,day:b},T={year:b,month:k,day:b,weekday:k},O={year:b,month:_,day:b},I={year:b,month:_,day:b,weekday:_},R={hour:b,minute:b},N={hour:b,minute:b,second:b},V={hour:b,minute:b,second:b,timeZoneName:k},E={hour:b,minute:b,second:b,timeZoneName:_},M={hour:b,minute:b,hour12:!1},A={hour:b,minute:b,second:b,hour12:!1},D={hour:b,minute:b,second:b,hour12:!1,timeZoneName:k},C={hour:b,minute:b,second:b,hour12:!1,timeZoneName:_},j={year:b,month:b,day:b,hour:b,minute:b},F={year:b,month:b,day:b,hour:b,minute:b,second:b},L={year:b,month:k,day:b,hour:b,minute:b},P={year:b,month:k,day:b,hour:b,minute:b,second:b},z={year:b,month:k,day:b,weekday:k,hour:b,minute:b},Z={year:b,month:_,day:b,hour:b,minute:b,timeZoneName:k},U={year:b,month:_,day:b,hour:b,minute:b,second:b,timeZoneName:k},H={year:b,month:_,day:b,weekday:_,hour:b,minute:b,timeZoneName:_},B={year:b,month:_,day:b,weekday:_,hour:b,minute:b,second:b,timeZoneName:_};function q(e){return void 0===e}function W(e){return"number"==typeof e}function J(e){return"number"==typeof e&&e%1==0}function G(){try{return"undefined"!=typeof Intl&&Intl.DateTimeFormat}catch(e){return!1}}function Y(){return!q(Intl.DateTimeFormat.prototype.formatToParts)}function $(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function K(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 X(e,t){return t.reduce((function(t,i){return t[i]=e[i],t}),{})}function Q(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ee(e,t,i){return J(e)&&e>=t&&e<=i}function te(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 ie(e){return q(e)||null===e||""===e?void 0:parseInt(e,10)}function ne(e){if(!q(e)&&null!==e&&""!==e){var t=1e3*parseFloat("0."+e);return Math.floor(t)}}function re(e,t,i){void 0===i&&(i=!1);var n=Math.pow(10,t);return(i?Math.trunc:Math.round)(e*n)/n}function oe(e){return e%4==0&&(e%100!=0||e%400==0)}function se(e){return oe(e)?366:365}function ae(e,t){var i=function(e,t){return e-t*Math.floor(e/t)}(t-1,12)+1;return 2===i?oe(e+(t-i)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][i-1]}function ce(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 ue(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 de(e){return e>99?e:e>60?1900+e:2e3+e}function le(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=G();if(a&&Y()){var c=new Intl.DateTimeFormat(i,s).formatToParts(r).find((function(e){return"timezonename"===e.type.toLowerCase()}));return c?c.value:null}if(a){var u=new Intl.DateTimeFormat(i,o).format(r);return new Intl.DateTimeFormat(i,s).format(r).substring(u.length).replace(/^[, \u200e]+/,"")}return null}function xe(e,t){var i=parseInt(e,10);Number.isNaN(i)&&(i=0);var n=parseInt(t,10)||0;return 60*i+(i<0||Object.is(i,-0)?-n:n)}function he(e){var t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new p("Invalid unit value "+e);return t}function fe(e,t,i){var n={};for(var r in e)if(Q(e,r)){if(i.indexOf(r)>=0)continue;var o=e[r];if(null==o)continue;n[t(r)]=he(o)}return n}function ve(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+te(i,2)+":"+te(n,2);case"narrow":return""+r+i+(n>0?":"+n:"");case"techie":return""+r+te(i,2)+te(n,2);default:throw new RangeError("Value format "+t+" is out of range for property format")}}function me(e){return X(e,["hour","minute","second","millisecond"])}var ge=/[A-Za-z_+-]{1,256}(:?\/[A-Za-z_+-]{1,256}(\/[A-Za-z_+-]{1,256})?)?/;function pe(e){return JSON.stringify(e,Object.keys(e).sort())}var ye=["January","February","March","April","May","June","July","August","September","October","November","December"],be=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ke=["J","F","M","A","M","J","J","A","S","O","N","D"];function _e(e){switch(e){case"narrow":return[].concat(ke);case"short":return[].concat(be);case"long":return[].concat(ye);case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var we=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Se=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Te=["M","T","W","T","F","S","S"];function Oe(e){switch(e){case"narrow":return[].concat(Te);case"short":return[].concat(Se);case"long":return[].concat(we);case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var Ie=["AM","PM"],Re=["Before Christ","Anno Domini"],Ne=["BC","AD"],Ve=["B","A"];function Ee(e){switch(e){case"narrow":return[].concat(Ve);case"short":return[].concat(Ne);case"long":return[].concat(Re);default:return null}}function Me(e,t){for(var i,n="",r=l(e);!(i=r()).done;){var o=i.value;o.literal?n+=o.val:n+=t(o.val)}return n}var Ae={D:w,DD:S,DDD:O,DDDD:I,t:R,tt:N,ttt:V,tttt:E,T:M,TT:A,TTT:D,TTTT:C,f:j,ff:L,fff:Z,ffff:H,F,FF:P,FFF:U,FFFF:B},De=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 te(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&&Y(),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 Ie[e.hour<12?0:1]}(t):s({hour:"numeric",hour12:!0},"dayperiod")},u=function(e,i){return r?function(e,t){return _e(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 Ee(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}(),Ce=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 y},t.formatOffset=function(e,t){throw new y},t.offset=function(e){throw new y},t.equals=function(e){throw new y},n(e,[{key:"type",get:function(){throw new y}},{key:"name",get:function(){throw new y}},{key:"universal",get:function(){throw new y}},{key:"isValid",get:function(){throw new y}}]),e}(),Fe=null,Le=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var i=t.prototype;return i.offsetName=function(e,t){return le(e,t.format,t.locale)},i.formatOffset=function(e,t){return ve(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 G()?(new Intl.DateTimeFormat).resolvedOptions().timeZone:"local"}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return!0}}],[{key:"instance",get:function(){return null===Fe&&(Fe=new t),Fe}}]),t}(je),Pe=RegExp("^"+ge.source+"$"),ze={};var Ze={year:0,month:1,day:2,hour:3,minute:4,second:5};var Ue={},He=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 Ue[e]||(Ue[e]=new t(e)),Ue[e]},t.resetCache=function(){Ue={},ze={}},t.isValidSpecifier=function(e){return!(!e||!e.match(Pe))},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 le(e,t.format,t.locale,this.name)},i.formatOffset=function(e,t){return ve(this.offset(e),t)},i.offset=function(e){var t=new Date(e);if(isNaN(t))return NaN;var i,n=(i=this.name,ze[i]||(ze[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"})),ze[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(ce({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),Be=null,qe=function(e){function t(t){var i;return(i=e.call(this)||this).fixed=t,i}r(t,e),t.instance=function(e){return 0===e?t.utcInstance:new t(e)},t.parseSpecifier=function(e){if(e){var i=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(i)return new t(xe(i[1],i[2]))}return null},n(t,null,[{key:"utcInstance",get:function(){return null===Be&&(Be=new t(0)),Be}}]);var i=t.prototype;return i.offsetName=function(){return this.name},i.formatOffset=function(e,t){return ve(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"+ve(this.fixed,"narrow")}},{key:"universal",get:function(){return!0}},{key:"isValid",get:function(){return!0}}]),t}(je),We=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 Je(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=He.parseGMTOffset(e))?qe.instance(i):He.isValidSpecifier(n)?He.create(e):qe.parseSpecifier(n)||new We(e)}return W(e)?qe.instance(e):"object"==typeof e&&e.offset&&"number"==typeof e.offset?e:new We(e)}var Ge=function(){return Date.now()},Ye=null,$e=null,Ke=null,Xe=null,Qe=!1,et=function(){function e(){}return e.resetCaches=function(){lt.resetCache(),He.resetCache()},n(e,null,[{key:"now",get:function(){return Ge},set:function(e){Ge=e}},{key:"defaultZoneName",get:function(){return e.defaultZone.name},set:function(e){Ye=e?Je(e):null}},{key:"defaultZone",get:function(){return Ye||Le.instance}},{key:"defaultLocale",get:function(){return $e},set:function(e){$e=e}},{key:"defaultNumberingSystem",get:function(){return Ke},set:function(e){Ke=e}},{key:"defaultOutputCalendar",get:function(){return Xe},set:function(e){Xe=e}},{key:"throwOnInvalid",get:function(){return Qe},set:function(e){Qe=e}}]),e}(),tt={};function it(e,t){void 0===t&&(t={});var i=JSON.stringify([e,t]),n=tt[i];return n||(n=new Intl.DateTimeFormat(e,t),tt[i]=n),n}var nt={};var rt={};function ot(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=rt[r];return o||(o=new Intl.RelativeTimeFormat(e,t),rt[r]=o),o}var st=null;function at(e,t,i,n,r){var o=e.listingMode(i);return"error"===o?null:"en"===o?n(t):r(t)}var ct=function(){function e(e,t,i){if(this.padTo=i.padTo||0,this.floor=i.floor||!1,!t&&G()){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=nt[i];return n||(n=new Intl.NumberFormat(e,t),nt[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 te(this.floor?Math.floor(e):re(e,3),this.padTo)},e}(),ut=function(){function e(e,t,i){var n;if(this.opts=i,this.hasIntl=G(),e.zone.universal&&this.hasIntl){var r=e.offset/60*-1,o=r>=0?"Etc/GMT+"+r:"Etc/GMT"+r,s=He.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=it(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(pe(X(e,["weekday","era","year","month","day","hour","minute","second","timeZoneName","hour12"]))){case pe(w):return"M/d/yyyy";case pe(S):return"LLL d, yyyy";case pe(T):return"EEE, LLL d, yyyy";case pe(O):return"LLLL d, yyyy";case pe(I):return"EEEE, LLLL d, yyyy";case pe(R):return"h:mm a";case pe(N):return"h:mm:ss a";case pe(V):case pe(E):return"h:mm a";case pe(M):return"HH:mm";case pe(A):return"HH:mm:ss";case pe(D):case pe(C):return"HH:mm";case pe(j):return"M/d/yyyy, h:mm a";case pe(L):return"LLL d, yyyy, h:mm a";case pe(Z):return"LLLL d, yyyy, h:mm a";case pe(H):return t;case pe(F):return"M/d/yyyy, h:mm:ss a";case pe(P):return"LLL d, yyyy, h:mm:ss a";case pe(z):return"EEE, d LLL yyyy, h:mm a";case pe(U):return"LLLL d, yyyy, h:mm:ss a";case pe(B):return"EEEE, LLLL d, yyyy, h:mm:ss a";default:return t}}(this.opts),t=lt.create("en-US");return De.create(t).formatDateTimeFromString(this.dt,e)},t.formatToParts=function(){return this.hasIntl&&Y()?this.dtf.formatToParts(this.dt.toJSDate()):[]},t.resolvedOptions=function(){return this.hasIntl?this.dtf.resolvedOptions():{locale:"en-US",numberingSystem:"latn",outputCalendar:"gregory"}},e}(),dt=function(){function e(e,t,i){this.opts=Object.assign({style:"long"},i),!t&&$()&&(this.rtf=ot(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}(),lt=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=it(e).resolvedOptions()}catch(e){i=it(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 G()?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||et.defaultLocale;return new e(o||(r?"en-US":function(){if(st)return st;if(G()){var e=(new Intl.DateTimeFormat).resolvedOptions().locale;return st=e&&"und"!==e?e:"en-US"}return st="en-US"}()),i||et.defaultNumberingSystem,n||et.defaultOutputCalendar,o)},e.resetCache=function(){st=null,tt={},nt={},rt={}},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=G()&&Y(),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),at(this,e,i,_e,(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),at(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),at(this,void 0,e,(function(){return Ie}),(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),at(this,e,t,Ee,(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 ct(this.intl,e.forceSimple||this.fastNumbers,e)},t.dtFormatter=function(e,t){return void 0===t&&(t={}),new ut(e,this.intl,t)},t.relFormatter=function(e){return void 0===e&&(e={}),new dt(this.intl,this.isEnglish(),e)},t.isEnglish=function(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||G()&&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")||G()&&"latn"===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}}]),e}();function xt(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var n=t.reduce((function(e,t){return e+t.source}),"");return RegExp("^"+n+"$")}function ht(){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 ft(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 vt(){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]]=ie(e[i+n]);return[r,null,i+n]}}var mt=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,gt=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,pt=RegExp(""+gt.source+mt.source+"?"),yt=RegExp("(?:T"+pt.source+")?"),bt=vt("weekYear","weekNumber","weekDay"),kt=vt("year","ordinal"),_t=RegExp(gt.source+" ?(?:"+mt.source+"|("+ge.source+"))?"),wt=RegExp("(?: "+_t.source+")?");function St(e,t,i){var n=e[t];return q(n)?i:ie(n)}function Tt(e,t){return[{year:St(e,t),month:St(e,t+1,1),day:St(e,t+2,1)},null,t+3]}function Ot(e,t){return[{hours:St(e,t,0),minutes:St(e,t+1,0),seconds:St(e,t+2,0),milliseconds:ne(e[t+3])},null,t+4]}function It(e,t){var i=!e[t]&&!e[t+1],n=xe(e[t+1],e[t+2]);return[{},i?null:qe.instance(n),t+3]}function Rt(e,t){return[{},e[t]?He.create(e[t]):null,t+1]}var Nt=RegExp("^T?"+gt.source+"$"),Vt=/^-?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 Et(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(ie(i)),months:x(ie(n)),weeks:x(ie(r)),days:x(ie(o)),hours:x(ie(s)),minutes:x(ie(a)),seconds:x(ie(c),"-0"===c),milliseconds:x(ne(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?de(ie(t)):ie(t),month:be.indexOf(i)+1,day:ie(n),hour:ie(r),minute:ie(o)};return s&&(a.second=ie(s)),e&&(a.weekday=e.length>3?we.indexOf(e)+1:Se.indexOf(e)+1),a}var Dt=/^(?:(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 Ct(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:xe(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$/,Ft=/^(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$/,Lt=/^(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 Pt(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 zt(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=xt(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,yt),Ut=xt(/(\d{4})-?W(\d\d)(?:-?(\d))?/,yt),Ht=xt(/(\d{4})-?(\d{3})/,yt),Bt=xt(pt),qt=ht(Tt,Ot,It),Wt=ht(bt,Ot,It),Jt=ht(kt,Ot,It),Gt=ht(Ot,It);var Yt=ht(Ot);var $t=xt(/(\d{4})-(\d\d)-(\d\d)/,wt),Kt=xt(_t),Xt=ht(Tt,Ot,It,Rt),Qt=ht(Ot,It,Rt);var ei={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}},ti=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}},ei),ii=365.2425,ni=30.436875,ri=Object.assign({years:{quarters:4,months:12,weeks:52.1775,days:ii,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:ni,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3}},ei),oi=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],si=oi.slice(0).reverse();function ai(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 ui(n)}function ci(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 ui=function(){function e(e){var t="longterm"===e.conversionAccuracy||!1;this.values=e.values,this.loc=e.loc||lt.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=t?ri:ti,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 p("Duration.fromObject: argument expected to be an object, got "+(null===t?"null":typeof t));return new e({values:fe(t,e.normalizeUnit,["locale","numberingSystem","conversionAccuracy","zone"]),loc:lt.fromObject(t),conversionAccuracy:t.conversionAccuracy})},e.fromISO=function(t,i){var n=function(e){return ft(e,[Vt,Et])}(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 ft(e,[Nt,Yt])}(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 p("need to specify a reason the Duration is invalid");var n=t instanceof Ce?t:new Ce(t,i);if(et.throwOnInvalid)throw new v(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 g(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?De.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+=re(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=di(e),n={},r=l(oi);!(t=r()).done;){var o=t.value;(Q(i.values,o)||Q(this.values,o))&&(n[o]=i.get(o)+this.get(o))}return ai(this,{values:n},!0)},t.minus=function(e){if(!this.isValid)return this;var t=di(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]=he(e(this.values[r],r))}return ai(this,{values:t},!0)},t.get=function(t){return this[e.normalizeUnit(t)]},t.set=function(t){return this.isValid?ai(this,{values:Object.assign(this.values,fe(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),ai(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){si.reduce((function(i,n){return q(t[n])?i:(i&&ci(e,t,i,t,n),n)}),null)}(this.matrix,e),ai(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=l(oi);!(o=u()).done;){var d=o.value;if(i.indexOf(d)>=0){r=d;var x=0;for(var h in a)x+=this.matrix[h][d]*a[h],a[h]=0;W(c[d])&&(x+=c[d]);var f=Math.trunc(x);for(var v in s[d]=f,a[d]=x-f,c)oi.indexOf(v)>oi.indexOf(d)&&ci(this.matrix,c,v,s,d)}else W(c[d])&&(a[d]=c[d])}for(var m in a)0!==a[m]&&(s[r]+=m===r?a[m]:a[m]/this.matrix[r][m]);return ai(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 ai(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=l(oi);!(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 di(e){if(W(e))return ui.fromMillis(e);if(ui.isDuration(e))return e;if("object"==typeof e)return ui.fromObject(e);throw new p("Unknown duration argument "+e+" of type "+typeof e)}var li="Invalid Interval";function xi(e,t){return e&&e.isValid?t&&t.isValid?t<e?hi.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:hi.invalid("missing or invalid end"):hi.invalid("missing or invalid start")}var hi=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 p("need to specify a reason the Interval is invalid");var n=t instanceof Ce?t:new Ce(t,i);if(et.throwOnInvalid)throw new f(n);return new e({invalid:n})},e.fromDateTimes=function(t,i){var n=fn(t),r=fn(i),o=xi(n,r);return null==o?new e({start:n,end:r}):o},e.after=function(t,i){var n=di(i),r=fn(t);return e.fromDateTimes(r,r.plus(n))},e.before=function(t,i){var n=di(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=ui.fromISO(o,i);if(d.isValid)return e.after(s,d)}else if(u){var l=ui.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=di(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=l((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()+")":li},t.toISO=function(e){return this.isValid?this.s.toISO(e)+"/"+this.e.toISO(e):li},t.toISODate=function(){return this.isValid?this.s.toISODate()+"/"+this.e.toISODate():li},t.toISOTime=function(e){return this.isValid?this.s.toISOTime(e)+"/"+this.e.toISOTime(e):li},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):li},t.toDuration=function(e,t){return this.isValid?this.e.diff(this.s,e,t):ui.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}(),fi=function(){function e(){}return e.hasDST=function(e){void 0===e&&(e=et.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 He.isValidSpecifier(e)&&He.isValidZone(e)},e.normalizeZone=function(e){return Je(e,et.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||lt.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||lt.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)||lt.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)||lt.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 lt.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 lt.create(n,null,"gregory").eras(e)},e.features=function(){var e=!1,t=!1,i=!1,n=!1;if(G()){e=!0,t=Y(),n=$();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 vi(e,t){var i=function(e){return e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf()},n=i(t)-i(e);return Math.floor(ui.fromMillis(n).as("days"))}function mi(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=vi(e,t);return(i-i%7)/7}],["days",vi]];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=ui.fromObject(Object.assign(s,n));return d.length>0?(x=ui.fromMillis(u,n)).shiftTo.apply(x,d).plus(h):h}var gi={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},pi={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},yi=gi.hanidec.replace(/[\[|\]]/g,"").split("");function bi(e,t){var i=e.numberingSystem;return void 0===t&&(t=""),new RegExp(""+gi[i||"latn"]+t)}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(gi.hanidec))t+=yi.indexOf(e[i]);else for(var r in pi){var o=pi[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 Ti(e){return e.replace(/\./g,"").replace(wi," ").toLowerCase()}function Oi(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 Ti(n)===Ti(e)}))+t}}}function Ii(e,t){return{regex:e,deser:function(e){return xe(e[1],e[2])},groups:t}}function Ri(e){return{regex:e,deser:function(e){return e[0]}}}var Ni={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}};var Vi=null;function Ei(e,t){if(e.literal)return e;var i=De.macroTokenToFormatOpts(e.val);if(!i)return e;var n=De.create(t,i).formatDateTimeParts((Vi||(Vi=hn.fromMillis(1555555555555)),Vi)).map((function(e){return function(e,t,i){var n=e.type,r=e.value;if("literal"===n)return{literal:!0,val:r};var o=i[n],s=Ni[n];return"object"==typeof s&&(s=s[o]),s?{literal:!1,val:s}:void 0}(e,0,i)}));return n.includes(void 0)?e:n}function Mi(e,t,i){var n=function(e,t){var i;return(i=Array.prototype).concat.apply(i,e.map((function(e){return Ei(e,t)})))}(De.parseFormat(i),e),r=n.map((function(t){return i=t,r=bi(n=e),o=bi(n,"{2}"),s=bi(n,"{3}"),a=bi(n,"{4}"),c=bi(n,"{6}"),u=bi(n,"{1,2}"),d=bi(n,"{1,3}"),l=bi(n,"{1,6}"),x=bi(n,"{1,9}"),h=bi(n,"{2,4}"),f=bi(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 Oi(n.eras("short",!1),0);case"GG":return Oi(n.eras("long",!1),0);case"y":return ki(l);case"yy":case"kk":return ki(h,de);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 Oi(n.months("short",!0,!1),1);case"MMMM":return Oi(n.months("long",!0,!1),1);case"LLL":return Oi(n.months("short",!1,!1),1);case"LLLL":return Oi(n.months("long",!1,!1),1);case"o":case"S":return ki(d);case"ooo":case"SSS":return ki(s);case"u":return Ri(x);case"a":return Oi(n.meridiems(),0);case"E":case"c":return ki(r);case"EEE":return Oi(n.weekdays("short",!1,!1),1);case"EEEE":return Oi(n.weekdays("long",!1,!1),1);case"ccc":return Oi(n.weekdays("short",!0,!1),1);case"cccc":return Oi(n.weekdays("long",!0,!1),1);case"Z":case"ZZ":return Ii(new RegExp("([+-]"+u.source+")(?::("+o.source+"))?"),2);case"ZZZ":return Ii(new RegExp("([+-]"+u.source+")("+o.source+")?"),2);case"z":return Ri(/[a-z_+-/]{1,256}?/i);default:return v(e)}}(i)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"},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(Q(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:He.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=ne(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],v=h[1];if(Q(x,"a")&&Q(x,"H"))throw new m("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:n,regex:u,rawMatches:l,matches:x,result:f,zone:v}}var Ai=[0,31,59,90,120,151,181,212,243,273,304,334],Di=[0,31,60,91,121,152,182,213,244,274,305,335];function Ci(e,t){return new Ce("unit out of range","you specified "+t+" (of type "+typeof t+") as a "+e+", which is invalid")}function ji(e,t,i){var n=new Date(Date.UTC(e,t-1,i)).getUTCDay();return 0===n?7:n}function Fi(e,t,i){return i+(oe(e)?Di:Ai)[t-1]}function Li(e,t){var i=oe(e)?Di:Ai,n=i.findIndex((function(e){return e<t}));return{month:n+1,day:t-i[n]}}function Pi(e){var t,i=e.year,n=e.month,r=e.day,o=Fi(i,n,r),s=ji(i,n,r),a=Math.floor((o-s+10)/7);return a<1?a=ue(t=i-1):a>ue(i)?(t=i+1,a=1):t=i,Object.assign({weekYear:t,weekNumber:a,weekday:s},me(e))}function zi(e){var t,i=e.weekYear,n=e.weekNumber,r=e.weekday,o=ji(i,1,4),s=se(i),a=7*n+r-o-3;a<1?a+=se(t=i-1):a>s?(t=i+1,a-=se(i)):t=i;var c=Li(t,a),u=c.month,d=c.day;return Object.assign({year:t,month:u,day:d},me(e))}function Zi(e){var t=e.year,i=Fi(t,e.month,e.day);return Object.assign({year:t,ordinal:i},me(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},me(e))}function Hi(e){var t=J(e.year),i=ee(e.month,1,12),n=ee(e.day,1,ae(e.year,e.month));return t?i?!n&&Ci("day",e.day):Ci("month",e.month):Ci("year",e.year)}function Bi(e){var t=e.hour,i=e.minute,n=e.second,r=e.millisecond,o=ee(t,0,23)||24===t&&0===i&&0===n&&0===r,s=ee(i,0,59),a=ee(n,0,59),c=ee(r,0,999);return o?s?a?!c&&Ci("millisecond",r):Ci("second",n):Ci("minute",i):Ci("hour",t)}var qi="Invalid DateTime",Wi=864e13;function Ji(e){return new Ce("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(ce(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,ae(n,r))+Math.trunc(t.days)+7*Math.trunc(t.weeks)}),s=ui.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(ce(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 Ce("unparsable",'the input "'+r+"\" can't be parsed as "+n))}function tn(e,t,i){return void 0===i&&(i=!0),e.isValid?De.create(lt.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 g(e);return t}function ln(e,t){for(var i,n=l(an);!(i=n()).done;){var r=i.value;q(e[r])&&(e[r]=rn[r])}var o=Hi(e)||Bi(e);if(o)return hn.invalid(o);var s=et.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=re(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=l(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||et.defaultZone,i=e.invalid||(Number.isNaN(e.ts)?new Ce("invalid input"):null)||(t.isValid?null:Ji(t));this.ts=q(e.ts)?et.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 Ce("invalid input"):null)?null:n,r=i?null:s}this._zone=t,this.loc=e.loc||lt.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},et.defaultZone)},e.utc=function(t,i,n,r,o,s,a){return q(t)?new e({ts:et.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=Je(i.zone,et.defaultZone);return o.isValid?new e({ts:r,zone:o,loc:lt.fromObject(i)}):e.invalid(Ji(o))},e.fromMillis=function(t,i){if(void 0===i&&(i={}),W(t))return t<-Wi||t>Wi?e.invalid("Timestamp out of range"):new e({ts:t,zone:Je(i.zone,et.defaultZone),loc:lt.fromObject(i)});throw new p("fromMillis requires a numerical input, but received a "+typeof t+" with value "+t)},e.fromSeconds=function(t,i){if(void 0===i&&(i={}),W(t))return new e({ts:1e3*t,zone:Je(i.zone,et.defaultZone),loc:lt.fromObject(i)});throw new p("fromSeconds requires a numerical input")},e.fromObject=function(t){var i=Je(t.zone,et.defaultZone);if(!i.isValid)return e.invalid(Ji(i));var n=et.now(),r=i.offset(n),o=fe(t,dn,["zone","locale","outputCalendar","numberingSystem"]),s=!q(o.ordinal),a=!q(o.year),c=!q(o.month)||!q(o.day),u=a||c,d=o.weekYear||o.weekNumber,x=lt.fromObject(t);if((u||s)&&d)throw new m("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&s)throw new m("Can't mix ordinal dates with month/day");var h,f,v=d||o.weekday&&!u,g=Ki(n,r);v?(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=l(h);!(p=b()).done;){var k=p.value;q(o[k])?o[k]=y?f[k]:g[k]:y=!0}var _=v?function(e){var t=J(e.weekYear),i=ee(e.weekNumber,1,ue(e.weekYear)),n=ee(e.weekday,1,7);return t?i?!n&&Ci("weekday",e.weekday):Ci("week",e.week):Ci("weekYear",e.weekYear)}(o):s?function(e){var t=J(e.year),i=ee(e.ordinal,1,se(e.year));return t?!i&&Ci("ordinal",e.ordinal):Ci("year",e.year)}(o):Hi(o),w=_||Bi(o);if(w)return e.invalid(w);var S=Xi(v?zi(o):s?Ui(o):o,r,i),T=new e({ts:S[0],zone:i,o:S[1],loc:x});return o.weekday&&u&&t.weekday!==T.weekday?e.invalid("mismatched weekday","you can't specify both a weekday of "+o.weekday+" and a date of "+T.toISO()):T},e.fromISO=function(e,t){void 0===t&&(t={});var i=function(e){return ft(e,[Zt,qt],[Ut,Wt],[Ht,Jt],[Bt,Gt])}(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 ft(function(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e),[Dt,Ct])}(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 ft(e,[jt,Pt],[Ft,Pt],[Lt,zt])}(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 p("fromFormat requires an input string and a format");var r=n,o=r.locale,s=void 0===o?null:o,a=r.numberingSystem,c=void 0===a?null:a,u=function(e,t,i){var n=Mi(e,t,i);return[n.result,n.zone,n.invalidReason]}(lt.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 ft(e,[$t,Xt],[Kt,Qt])}(e);return en(i[0],i[1],t,"SQL",e)},e.invalid=function(t,i){if(void 0===i&&(i=null),!t)throw new p("need to specify a reason the DateTime is invalid");var n=t instanceof Ce?t:new Ce(t,i);if(et.throwOnInvalid)throw new h(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=De.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(et.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=Je(t,et.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=fe(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 m("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(s&&r)throw new m("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(ae(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,di(e))):this},t.minus=function(e){return this.isValid?Yi(this,Qi(this,di(e).negate())):this},t.startOf=function(e){if(!this.isValid)return this;var t={},i=ui.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?De.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):qi},t.toLocaleString=function(e){return void 0===e&&(e=w),this.isValid?De.create(this.loc.clone(e),e).formatDateTime(this):qi},t.toLocaleParts=function(e){return void 0===e&&(e={}),this.isValid?De.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():qi},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 ui.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(ui.normalizeUnit),s=e.valueOf()>this.valueOf(),a=mi(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?hi.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 p("min requires all arguments be DateTimes");return K(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 p("max requires all arguments be DateTimes");return K(i,(function(e){return e.valueOf()}),Math.max)},e.fromFormatExplain=function(e,t,i){void 0===i&&(i={});var n=i,r=n.locale,o=void 0===r?null:r,s=n.numberingSystem,a=void 0===s?null:s;return Mi(lt.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?fi.months("short",{locObj:this.loc})[this.month-1]:null}},{key:"monthLong",get:function(){return this.isValid?fi.months("long",{locObj:this.loc})[this.month-1]:null}},{key:"weekdayShort",get:function(){return this.isValid?fi.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}},{key:"weekdayLong",get:function(){return this.isValid?fi.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 oe(this.year)}},{key:"daysInMonth",get:function(){return ae(this.year,this.month)}},{key:"daysInYear",get:function(){return this.isValid?se(this.year):NaN}},{key:"weeksInWeekYear",get:function(){return this.isValid?ue(this.weekYear):NaN}}],[{key:"DATE_SHORT",get:function(){return w}},{key:"DATE_MED",get:function(){return S}},{key:"DATE_MED_WITH_WEEKDAY",get:function(){return T}},{key:"DATE_FULL",get:function(){return O}},{key:"DATE_HUGE",get:function(){return I}},{key:"TIME_SIMPLE",get:function(){return R}},{key:"TIME_WITH_SECONDS",get:function(){return N}},{key:"TIME_WITH_SHORT_OFFSET",get:function(){return V}},{key:"TIME_WITH_LONG_OFFSET",get:function(){return E}},{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 D}},{key:"TIME_24_WITH_LONG_OFFSET",get:function(){return C}},{key:"DATETIME_SHORT",get:function(){return j}},{key:"DATETIME_SHORT_WITH_SECONDS",get:function(){return F}},{key:"DATETIME_MED",get:function(){return L}},{key:"DATETIME_MED_WITH_SECONDS",get:function(){return P}},{key:"DATETIME_MED_WITH_WEEKDAY",get:function(){return z}},{key:"DATETIME_FULL",get:function(){return Z}},{key:"DATETIME_FULL_WITH_SECONDS",get:function(){return U}},{key:"DATETIME_HUGE",get:function(){return H}},{key:"DATETIME_HUGE_WITH_SECONDS",get:function(){return B}}]),e}();function fn(e){if(hn.isDateTime(e))return e;if(e&&e.valueOf&&W(e.valueOf()))return hn.fromJSDate(e);if(e&&"object"==typeof e)return hn.fromObject(e);throw new p("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:()=>ts,RevisionTracker:()=>an});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,T=S.hasOwnProperty,O=S.toString,I=w?w.toStringTag:void 0;const R=function(e){var t=T.call(e,I),i=e[I];try{e[I]=void 0;var n=!0}catch(e){}var r=O.call(e);return n&&(t?e[I]=i:delete e[I]),r};var N=Object.prototype.toString;const V=function(e){return N.call(e)};var E=w?w.toStringTag:void 0;const M=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":E&&E in Object(e)?R(e):V(e)};const A=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};const D=function(e){if(!A(e))return!1;var t=M(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};const C=_["__core-js_shared__"];var j,F=(j=/[^.]+$/.exec(C&&C.keys&&C.keys.IE_PROTO||""))?"Symbol(src)_1."+j:"";const L=function(e){return!!F&&F in e};var P=Function.prototype.toString;const z=function(e){if(null!=e){try{return P.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var Z=/^\[object .+?Constructor\]$/,U=Function.prototype,H=Object.prototype,B=U.toString,q=H.hasOwnProperty,W=RegExp("^"+B.call(q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const J=function(e){return!(!A(e)||L(e))&&(D(e)?W:Z).test(z(e))};const G=function(e,t){return null==e?void 0:e[t]};const Y=function(e,t){var i=G(e,t);return J(i)?i:void 0};const $=Y(_,"Map");const K=Y(Object,"create");const X=function(){this.__data__=K?K(null):{},this.size=0};const Q=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t};var ee=Object.prototype.hasOwnProperty;const te=function(e){var t=this.__data__;if(K){var i=t[e];return"__lodash_hash_undefined__"===i?void 0:i}return ee.call(t,e)?t[e]:void 0};var ie=Object.prototype.hasOwnProperty;const ne=function(e){var t=this.__data__;return K?void 0!==t[e]:ie.call(t,e)};const re=function(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=K&&void 0===t?"__lodash_hash_undefined__":t,this};function oe(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}oe.prototype.clear=X,oe.prototype.delete=Q,oe.prototype.get=te,oe.prototype.has=ne,oe.prototype.set=re;const se=oe;const ae=function(){this.size=0,this.__data__={hash:new se,map:new($||v),string:new se}};const ce=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};const ue=function(e,t){var i=e.__data__;return ce(t)?i["string"==typeof t?"string":"hash"]:i.map};const de=function(e){var t=ue(this,e).delete(e);return this.size-=t?1:0,t};const 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 Te=function(e,t){for(var i=-1,n=Array(e);++i<e;)n[i]=t(i);return n};const Oe=function(e){return null!=e&&"object"==typeof e};const Ie=function(e){return Oe(e)&&"[object Arguments]"==M(e)};var Re=Object.prototype,Ne=Re.hasOwnProperty,Ve=Re.propertyIsEnumerable;const Ee=Ie(function(){return arguments}())?Ie:function(e){return Oe(e)&&Ne.call(e,"callee")&&!Ve.call(e,"callee")};const Me=Array.isArray;const Ae=function(){return!1};var De="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ce=De&&"object"==typeof module&&module&&!module.nodeType&&module,je=Ce&&Ce.exports===De?_.Buffer:void 0;const Fe=(je?je.isBuffer:void 0)||Ae;var Le=/^(?:0|[1-9]\d*)$/;const Pe=function(e,t){var i=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==i||"symbol"!=i&&Le.test(e))&&e>-1&&e%1==0&&e<t};const ze=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var Ze={};Ze["[object Float32Array]"]=Ze["[object Float64Array]"]=Ze["[object Int8Array]"]=Ze["[object Int16Array]"]=Ze["[object Int32Array]"]=Ze["[object Uint8Array]"]=Ze["[object Uint8ClampedArray]"]=Ze["[object Uint16Array]"]=Ze["[object Uint32Array]"]=!0,Ze["[object Arguments]"]=Ze["[object Array]"]=Ze["[object ArrayBuffer]"]=Ze["[object Boolean]"]=Ze["[object DataView]"]=Ze["[object Date]"]=Ze["[object Error]"]=Ze["[object Function]"]=Ze["[object Map]"]=Ze["[object Number]"]=Ze["[object Object]"]=Ze["[object RegExp]"]=Ze["[object Set]"]=Ze["[object String]"]=Ze["[object WeakMap]"]=!1;const Ue=function(e){return Oe(e)&&ze(e.length)&&!!Ze[M(e)]};const He=function(e){return function(t){return e(t)}};var Be="object"==typeof exports&&exports&&!exports.nodeType&&exports,qe=Be&&"object"==typeof module&&module&&!module.nodeType&&module,We=qe&&qe.exports===Be&&b.process;const Je=function(){try{var e=qe&&qe.require&&qe.require("util").types;return e||We&&We.binding&&We.binding("util")}catch(e){}}();var Ge=Je&&Je.isTypedArray;const Ye=Ge?He(Ge):Ue;var $e=Object.prototype.hasOwnProperty;const Ke=function(e,t){var i=Me(e),n=!i&&Ee(e),r=!i&&!n&&Fe(e),o=!i&&!n&&!r&&Ye(e),s=i||n||r||o,a=s?Te(e.length,String):[],c=a.length;for(var u in e)!t&&!$e.call(e,u)||s&&("length"==u||r&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Pe(u,c))||a.push(u);return a};var Xe=Object.prototype;const Qe=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Xe)};const et=function(e,t){return function(i){return e(t(i))}};const tt=et(Object.keys,Object);var it=Object.prototype.hasOwnProperty;const nt=function(e){if(!Qe(e))return tt(e);var t=[];for(var i in Object(e))it.call(e,i)&&"constructor"!=i&&t.push(i);return t};const rt=function(e){return null!=e&&ze(e.length)&&!D(e)};const ot=function(e){return rt(e)?Ke(e):nt(e)};const st=function(e,t){return e&&Se(t,ot(t),e)};const at=function(e){var t=[];if(null!=e)for(var i in Object(e))t.push(i);return t};var ct=Object.prototype.hasOwnProperty;const ut=function(e){if(!A(e))return at(e);var t=Qe(e),i=[];for(var n in e)("constructor"!=n||!t&&ct.call(e,n))&&i.push(n);return i};const dt=function(e){return rt(e)?Ke(e,!0):ut(e)};const 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 Tt=et(Object.getPrototypeOf,Object);const Ot=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)St(t,_t(e)),e=Tt(e);return t}:yt;const It=function(e,t){return Se(e,Ot(e),t)};const Rt=function(e,t,i){var n=t(e);return Me(e)?n:St(n,i(e))};const Nt=function(e){return Rt(e,ot,_t)};const Vt=function(e){return Rt(e,dt,Ot)};const Et=Y(_,"DataView");const Mt=Y(_,"Promise");const At=Y(_,"Set");const Dt=Y(_,"WeakMap");var Ct="[object Map]",jt="[object Promise]",Ft="[object Set]",Lt="[object WeakMap]",Pt="[object DataView]",zt=z(Et),Zt=z($),Ut=z(Mt),Ht=z(At),Bt=z(Dt),qt=M;(Et&&qt(new Et(new ArrayBuffer(1)))!=Pt||$&&qt(new $)!=Ct||Mt&&qt(Mt.resolve())!=jt||At&&qt(new At)!=Ft||Dt&&qt(new Dt)!=Lt)&&(qt=function(e){var t=M(e),i="[object Object]"==t?e.constructor:void 0,n=i?z(i):"";if(n)switch(n){case zt:return Pt;case Zt:return Ct;case Ut:return jt;case Ht:return Ft;case Bt:return Lt}return t});const Wt=qt;var Jt=Object.prototype.hasOwnProperty;const Gt=function(e){var t=e.length,i=new e.constructor(t);return t&&"string"==typeof e[0]&&Jt.call(e,"index")&&(i.index=e.index,i.input=e.input),i};const Yt=_.Uint8Array;const $t=function(e){var t=new e.constructor(e.byteLength);return new Yt(t).set(new Yt(e)),t};const Kt=function(e,t){var i=t?$t(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)};var Xt=/\w*$/;const Qt=function(e){var t=new e.constructor(e.source,Xt.exec(e));return t.lastIndex=e.lastIndex,t};var ei=w?w.prototype:void 0,ti=ei?ei.valueOf:void 0;const ii=function(e){return ti?Object(ti.call(e)):{}};const ni=function(e,t){var i=t?$t(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)};const ri=function(e,t,i){var n=e.constructor;switch(t){case"[object ArrayBuffer]":return $t(e);case"[object Boolean]":case"[object Date]":return new n(+e);case"[object DataView]":return Kt(e,i);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return ni(e,i);case"[object Map]":case"[object Set]":return new n;case"[object Number]":case"[object String]":return new n(e);case"[object RegExp]":return Qt(e);case"[object Symbol]":return ii(e)}};var oi=Object.create;const si=function(){function e(){}return function(t){if(!A(t))return{};if(oi)return oi(t);e.prototype=t;var i=new e;return e.prototype=void 0,i}}();const ai=function(e){return"function"!=typeof e.constructor||Qe(e)?{}:si(Tt(e))};const ci=function(e){return Oe(e)&&"[object Map]"==Wt(e)};var ui=Je&&Je.isMap;const di=ui?He(ui):ci;const li=function(e){return Oe(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["[object Object]"]=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(!A(t))return t;var l=Me(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?It(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||Oe(e)&&"[object Symbol]"==M(e)};var ki=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_i=/^\w*$/;const wi=function(e,t){if(Me(e))return!1;var i=typeof e;return!("number"!=i&&"symbol"!=i&&"boolean"!=i&&null!=e&&!bi(e))||(_i.test(e)||!ki.test(e)||null!=t&&e in Object(t))};function Si(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var i=function(){var n=arguments,r=t?t.apply(this,n):n[0],o=i.cache;if(o.has(r))return o.get(r);var s=e.apply(this,n);return i.cache=o.set(r,s)||o,s};return i.cache=new(Si.Cache||ve),i}Si.Cache=ve;const Ti=Si;var Oi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ii=/\\(\\)?/g;const Ri=function(e){var t=Ti(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(Oi,(function(e,i,n,r){t.push(n?r.replace(Ii,"$1"):i||e)})),t}));const Ni=function(e,t){for(var i=-1,n=null==e?0:e.length,r=Array(n);++i<n;)r[i]=t(e[i],i,e);return r};var Vi=w?w.prototype:void 0,Ei=Vi?Vi.toString:void 0;const Mi=function e(t){if("string"==typeof t)return t;if(Me(t))return Ni(t,e)+"";if(bi(t))return Ei?Ei.call(t):"";var i=t+"";return"0"==i&&1/t==-Infinity?"-0":i};const Ai=function(e){return null==e?"":Mi(e)};const Di=function(e,t){return Me(e)?e:wi(e,t)?[e]:Ri(Ai(e))};const Ci=function(e){if("string"==typeof e||bi(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};const ji=function(e,t,i,n){if(!A(e))return e;for(var r=-1,o=(t=Di(t,e)).length,s=o-1,a=e;null!=a&&++r<o;){var c=Ci(t[r]),u=i;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(r!=s){var d=a[c];void 0===(u=n?n(d,c,a):void 0)&&(u=A(d)?d:Pe(t[r+1])?[]:{})}we(a,c,u),a=a[c]}return e};const Fi=function(e,t,i){return null==e?e:ji(e,t,i)};const Li=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0};const Pi=function(e,t){for(var i=0,n=(t=Di(t,e)).length;null!=e&&i<n;)e=e[Ci(t[i++])];return i&&i==n?e:void 0};const zi=function(e,t,i){var n=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(i=i>r?r:i)<0&&(i+=r),r=t>i?0:i-t>>>0,t>>>=0;for(var o=Array(r);++n<r;)o[n]=e[n+t];return o};const Zi=function(e,t){return t.length<2?e:Pi(e,zi(t,0,-1))};const Ui=function(e,t){return t=Di(t,e),null==(e=Zi(e,t))||delete e[Ci(Li(t))]};const Hi=function(e,t){return null==e||Ui(e,t)},Bi=["authors","_update","name","creatorId","toVersion","attributes","fromVersion","creator","set","createdAt","diffData","map","setAttribute"];var qi,Wi;qi=Bi,Wi=191,function(e){for(;--e;)qi.push(qi.shift())}(++Wi);const Ji=function(e,t){return Bi[e-=0]};class Gi{constructor(e){this.id=e.id||(0,t.uid)(),this[Ji("0xc")]("name",e[Ji("0x6")]||""),this[Ji("0xb")]=e.creator||null,this.authors=e[Ji("0x4")]||[],this.set(Ji("0x0"),e[Ji("0x0")]||new Date),this[Ji("0x1")]=e[Ji("0x1")]||null,this[Ji("0xc")](Ji("0x9"),e[Ji("0x9")]||{}),this[Ji("0x8")]=e[Ji("0x8")]||0,this[Ji("0xa")]=e.fromVersion||0}setName(e){this[Ji("0x5")]({name:e})}[Ji("0x3")](e,t){const i=yi(this[Ji("0x9")]);Fi(i,e,t),this[Ji("0x5")]({attributes:i})}removeAttribute(e){const t=yi(this[Ji("0x9")]);Hi(t,e),this[Ji("0x5")]({attributes:t})}_update(e,t=!1){let i=!1;const n={id:this.id};for(const t of[Ji("0x6"),"createdAt","diffData",Ji("0x4"),Ji("0x9"),"toVersion","fromVersion",Ji("0x7")]){const r=e[t];void 0!==r&&r!==this[t]&&(this[t]=r,n[t]=r,i=!0)}i&&(n[Ji("0x4")]&&(n.authorsIds=n[Ji("0x4")].map((e=>e.id)),delete n.authors),this.fire(Ji("0x5"),n,t))}toJSON(){return{id:this.id,name:this[Ji("0x6")],creatorId:this[Ji("0xb")]?this[Ji("0xb")].id:null,authorsIds:this[Ji("0x4")][Ji("0x2")]((e=>e.id)),diffData:this[Ji("0x1")],createdAt:this[Ji("0x0")],attributes:this[Ji("0x9")],fromVersion:this.fromVersion,toVersion:this.toVersion}}}(0,t.mix)(Gi,t.ObservableMixin);const Yi=["afterInit","toVersion","pop","getRevisionsIterator","getRevision","slice","RevisionsRepository","createRevision","fromVersion","get","plugins","reverse","data","newRevisionId","add","earlier","isNaN","charCodeAt","addRevision","join","getRevisionsInDiff","getEarlierVisibleRevision","oldRevisionId","substring","_revisions","getIndex","getRevisions","push","map","length","config","replace","editor","creatorId","getUser","fromCharCode","later","toJSON"];var $i,Ki;$i=Yi,Ki=152,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 pluginName(){return Xi("0x6")}constructor(...e){super(...e),this[Xi("0x18")]=new t.Collection}get[Xi("0x1d")](){return this[Xi("0x18")][Xi("0x1d")]}[Xi("0x0")](){!function(e){const t=[1,85,78,115,198,255,50,112,83,87,161],i=f([52,48,52,52,50,48,50,50]),n=[127,34,6,211,167,86,146,199,132,160,18],r=n[0]*t[1],o=n[0]*t[2],s=n[2]*t[2],a=f([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]),c=function(r){if(function(){if(!e[f([112,108,117,103,105,110,115])][f([104,97,115])](f([82,101,118,105,115,105,111,110,86,105,101,119,101,114])))return!1;for(const e in window)if(Number[Xi("0x10")](Number(e))&&window[e]===s)return!0;return!1}())return d(f([108,105,99,101,110,115,101,75,101,121,86,97,108,105,100]));if(e[f([112,108,117,103,105,110,115])][f([104,97,115])](f([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))&&e[f([112,108,117,103,105,110,115])][f([103,101,116])](f([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))[f([115,116,97,116,101])]==f([99,111,110,110,101,99,116,101,100]))return window[l()]=s,d(f([108,105,99,101,110,115,101,75,101,121,86,97,108,105,100]));if(e[f([112,108,117,103,105,110,115])][f([104,97,115])](f([84,114,97,99,107,67,104,97,110,103,101,115,68,97,116,97,71,101,116,116,101,114]))&&e[f([112,108,117,103,105,110,115])][f([103,101,116])](f([84,114,97,99,107,67,104,97,110,103,101,115,68,97,116,97,71,101,116,116,101,114]))[f([114,101,115,117,108,116])]==f([101,110,100]))return d(f([108,105,99,101,110,115,101,75,101,121,86,97,108,105,100]));try{const e=function(e){const i=[29,221,175,90,231,133,239,240,75,180];return function(e,t){const i=atob(e),n=Array.from(function(e){const t=new Uint8Array(e[Xi("0x1d")]);for(let i=0;i<e[Xi("0x1d")];i++)t[i]=e[Xi("0x11")](i);return t}(i)),r=n[Xi("0x2")](),o=n.pop();return function(e){let t="";for(const i of e)t+=String.fromCharCode(i);return t}(function(e,t,i){const n={};n[f([110,117,109,98,101,114,79,102,82,111,117,110,100,115])]={16:10,24:12,32:14},n[f([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],n[f([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],n[f([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],n[f([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],n[f([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],n[f([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],n[f([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],n[f([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],n[f([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],n[f([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 r=new Uint8Array(16);for(let e=15;e>=0;--e)r[e]=i%256,i=parseInt(i/256);let o=null,s=16;const a=new Uint8Array(t),c=[],u=[];h();for(let t=0;t<e.length;t++)16===s&&(o=x(r),s=0,l(r)),e[t]^=o[s++];return e;function d(e){const t=[];for(let i=0;i<e[Xi("0x1d")];i+=4)t.push(e[i]<<24|e[i+1]<<16|e[i+2]<<8|e[i+3]);return t}function l(e){for(let t=15;t>=0;t--){if(255!==e[t]){e[t]++;break}e[t]=0}}function x(e){const t=c.length-1,i=[0,0,0,0];let r=d(e);for(let e=0;e<4;e++)r[e]^=c[0][e];for(let e=1;e<t;e++){for(let t=0;t<4;t++)i[t]=n[f([84,49])][r[t]>>24&255]^n[f([84,50])][r[(t+1)%4]>>16&255]^n[f([84,51])][r[(t+2)%4]>>8&255]^n[f([84,52])][255&r[(t+3)%4]]^c[e][t];r=i[Xi("0x5")]()}const o=new Uint8Array(16);let s;for(let e=0;e<4;e++)s=c[t][e],o[4*e]=255&(n[f([83])][r[e]>>24&255]^s>>24),o[4*e+1]=255&(n[f([83])][r[(e+1)%4]>>16&255]^s>>16),o[4*e+2]=255&(n[f([83])][r[(e+2)%4]>>8&255]^s>>8),o[4*e+3]=255&(n[f([83])][255&r[(e+3)%4]]^s);return o}function h(){const e=n[f([110,117,109,98,101,114,79,102,82,111,117,110,100,115])][a[Xi("0x1d")]];for(let t=0;t<=e;t++)c[Xi("0x1b")]([0,0,0,0]),u.push([0,0,0,0]);const t=4*(e+1),i=a[Xi("0x1d")]/4,r=d(a);let o;for(let t=0;t<i;t++)o=t>>2,c[o][t%4]=r[t],u[e-o][t%4]=r[t];let s,l=0,x=i;for(;x<t;){s=r[i-1],r[0]^=n[f([83])][s>>16&255]<<24^n[f([83])][s>>8&255]<<16^n[f([83])][255&s]<<8^n[f([83])][s>>24&255]^n[f([114,99,111,110])][l]<<24,l+=1;for(let e=1;e<i/2;e++)r[e]^=r[e-1];s=r[i/2-1],r[i/2]^=n[f([83])][255&s]^n[f([83])][s>>8&255]<<8^n[f([83])][s>>16&255]<<16^n[f([83])][s>>24&255]<<24;for(let e=i/2+1;e<i;e++)r[e]^=r[e-1];let o,a,d=0;for(;d<i&&x<t;)o=x>>2,a=x%4,c[o][a]=r[d],u[e-o][a]=r[d++],x++}for(let t=1;t<e;t++)for(let e=0;e<4;e++)s=u[t][e],u[t][e]=n[f([85,49])][s>>24&255]^n[f([85,50])][s>>16&255]^n[f([85,51])][s>>8&255]^n[f([85,52])][255&s]}}(n,t,o+256*r))}(e,new(window[f([85,105,110,116,56,65,114,114,97,121])])([...t,...i,...n]))}(r),o=JSON.parse(e),s=parseInt(o[f([49])]),a=parseInt(o[f([51])]),c=parseInt(o[f([52])])||0,u=parseInt(o[f([53])])||0;return 8&c?u&&!window[f([111,112,101,110])][f([99,108,111,115,101,100])]||parseInt(i)/2>s?d(f([108,105,99,101,110,115,101,75,101,121,73,110,118,97,108,105,100])):d(f(a?[108,105,99,101,110,115,101,75,101,121,84,114,105,97,108]:[108,105,99,101,110,115,101,75,101,121,86,97,108,105,100])):d(f([108,105,99,101,110,115,101,75,101,121,73,110,118,97,108,105,100]))}catch(e){return d(f([108,105,99,101,110,115,101,75,101,121,73,110,118,97,108,105,100]))}}(e[Xi("0x1e")][Xi("0x9")](f([108,105,99,101,110,115,101,75,101,121])));if(c==f([108,105,99,101,110,115,101,75,101,121,73,110,118,97,108,105,100]))x(e);else if(c==f([108,105,99,101,110,115,101,75,101,121,84,114,105,97,108])){const i=function(){if(!e[f([112,108,117,103,105,110,115])][f([104,97,115])](f([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))){if(window[e]===r)return f([116,105,109,101]);if(window[e]===o)return f([114,101,118,105,115,105,111,110,115])}return!1}();i&&u(e,i);const s=function(){let i=n[6]*t[8]*t[6];return e[f([112,108,117,103,105,110,115])][f([104,97,115])](f([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))&&(i/=10),i}();window[f([115,101,116,84,105,109,101,111,117,116])]((()=>{u(e,f([116,105,109,101]))}),s);const a=e[f([112,108,117,103,105,110,115])][f([103,101,116])](f([82,101,118,105,115,105,111,110,115,82,101,112,111,115,105,116,111,114,121]))[f([95,114,101,118,105,115,105,111,110,115])];a[Xi("0x1d")]>=7?u(e,f([114,101,118,105,115,105,111,110,115])):a.on(f([97,100,100]),(()=>{a.length>=7&&u(e,f([114,101,118,105,115,105,111,110,115]))}))}function u(e,t){x(e),d(f([108,105,99,101,110,115,101,75,101,121,84,114,105,97,108,76,105,109,105,116,58])+t),window[l()]=t===f([116,105,109,101])?r:o}function d(t){const i=l();return e[i]=t,t}function l(){const e=String(window[f([112,101,114,102,111,114,109,97,110,99,101])][f([110,111,119])]())[Xi("0x1f")](f([46]),"");let t="";for(let i=0;i<e[Xi("0x1d")];i+=2){const n=parseInt(e[Xi("0x17")](i,i+2))%a[Xi("0x1d")];t+=a[n]}return t}function x(e){function t(){e[f([112,108,117,103,105,110,115])][f([104,97,115])](f([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))&&(e[f([112,108,117,103,105,110,115])][f([103,101,116])](f([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[f([117,110,98,105,110,100])](f([105,115,69,110,97,98,108,101,100])),e[f([112,108,117,103,105,110,115])][f([103,101,116])](f([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[f([105,115,69,110,97,98,108,101,100])]=!1,e[f([112,108,117,103,105,110,115])][f([103,101,116])](f([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[f([117,112,100,97,116,101])]=h,e[f([112,108,117,103,105,110,115])][f([103,101,116])](f([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))[f([115,97,118,101,82,101,118,105,115,105,111,110])]=h,e[f([109,111,100,101,108])][f([99,104,97,110,103,101])]=h,e[f([109,111,100,101,108])][f([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,e[f([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](f([109,111,100,101,108]))),e[f([112,108,117,103,105,110,115])][f([104,97,115])](f([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))&&(e[f([112,108,117,103,105,110,115])][f([103,101,116])](f([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[f([117,110,98,105,110,100])](f([105,115,69,110,97,98,108,101,100])),e[f([112,108,117,103,105,110,115])][f([103,101,116])](f([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[f([105,115,69,110,97,98,108,101,100])]=!1,e[f([112,108,117,103,105,110,115])][f([103,101,116])](f([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[f([99,111,109,112,97,114,101])]=h,e[f([112,108,117,103,105,110,115])][f([103,101,116])](f([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[f([95,103,101,116,68,105,102,102])]=h)}e[f([115,116,97,116,101])]==f([114,101,97,100,121])?t():e[f([111,110,99,101])](f([114,101,97,100,121]),(()=>{if(e[f([112,108,117,103,105,110,115])][f([104,97,115])](f([82,101,118,105,115,105,111,110,84,114,97,99,107,101,114]))&&t(),e[f([112,108,117,103,105,110,115])][f([104,97,115])](f([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))){const i=e[f([112,108,117,103,105,110,115])][f([103,101,116])](f([82,101,118,105,115,105,111,110,115,82,101,112,111,115,105,116,111,114,121])),n=i.getRevision(0),r=i[Xi("0x15")](n.id);e[f([112,108,117,103,105,110,115])][f([103,101,116])](f([82,101,118,105,115,105,111,110,86,105,101,119,101,114]))[f([99,111,109,112,97,114,101])](n.id,r?r.id:null,1).then((()=>t()))}}))}function h(){return null}function f(e){return e[Xi("0x1c")]((e=>String[Xi("0x23")](e)))[Xi("0x13")]("")}}(this[Xi("0x20")])}[Xi("0x7")](e){const t=this[Xi("0x20")][Xi("0xa")][Xi("0x9")]("Users");return new Gi({id:e.id,name:e.name,creator:e[Xi("0x21")]?t.getUser(e[Xi("0x21")]):null,diffData:e.diffData||e[Xi("0xc")],authors:e.authorsIds[Xi("0x1c")]((e=>t[Xi("0x22")](e))),createdAt:new Date(e.createdAt),attributes:e.attributes,fromVersion:e[Xi("0x8")],toVersion:e[Xi("0x1")]})}[Xi("0x12")](e,t=0){this[Xi("0x18")][Xi("0xe")](e,t)}[Xi("0x4")](e){return this[Xi("0x18")][Xi("0x9")](e)}[Xi("0x1a")]({toJSON:e=!1}={}){const t=Array.from(this[Xi("0x18")]);return t[Xi("0xb")](),e?t[Xi("0x1c")]((e=>e[Xi("0x25")]())):t}getIndex(e){return this[Xi("0x18")][Xi("0x19")](e)}[Xi("0x15")](e){const[,t]=this[Xi("0x3")](e,{direction:Xi("0xf")});return t}getLaterVisibleRevision(e){const[,t]=this.getRevisionsIterator(e,{direction:Xi("0x24")});return t}[Xi("0x14")](e){const t=[];for(const i of this[Xi("0x3")](e[Xi("0xd")]))if(t[Xi("0x1b")](i),i.id===e[Xi("0x16")])break;return t}*[Xi("0x3")](e,{direction:t="earlier",filter:i=(()=>!0)}={}){const n=Xi("0xf")===t?1:-1;let r=this[Xi("0x18")][Xi("0x9")](e),o=this[Xi("0x19")](r);for(yield r;r;){if(o+=n,r=this[Xi("0x4")](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"})}}const tn=["root","_fixRange","_isInit","requires","insertion","_loadRevisionData","getChild","PendingActions","collaboration.channelId","_continueCurrentRevision","_saveMetaData","insertions","_startingRevisionId","createRange","Empty document","paragraph","buildRevisionData","range","_fixOperation","affectsData","name","map","_removePendingAction","graveyardPosition","repository","editing","getRootNames","data","_applyOperations","_findInsertionIndex","_prepareViewToSave","_handleMoveOperation","_startingVersion","toModel","authorsIds","revision-end","getWalker","_cloneOperation","startsWith","isReady","_bufferedUpdates","length","_calculateMetaData","createRevision","finally","tableCell","_execute","_markers","_operations","define","parse","initialData","_makeModelFromViewString","_transformMarkers","addRevisionData","userId","version","element","markers","set","max","revisionHistory.resumeUnsavedRevision","getRevisions","roots","_createCurrentRevision","marker","createRangeIn","diffData","config","default","saveRevision","_touchedMarkers","view","updateRevisions","data-revision-","_diffRoots","fromVersion","update","reInit","RealTimeCollaborationClient","_bufferUpdate","plugins","oldRange","push","vid","_markChanges","for","getData","sendBufferedUpdates","document","_createFromRanges","getOperations","toData","nodeAfter","getRange","_baseIdsRoots","howMany","getUser","getRevisionDocumentData","createPositionFromPath","targetPosition","locale","keepParagraph","offsetSize","_revisionDataBuilder","_addPendingAction","_loadedStateData","_source","processor","source","toView","_getViewJson","_baseRoots","conversion","find","_saveEmptyMetaData","vid_start","_clone","_getVidAttributeName","splitPosition","size","_lastTo","getAttributes","rootName","isPendingUpdate","offset","creator","string","getAncestors","setRevisionData","pluginName","isEnabled","_revisionId","getAttribute","clone","reverse","keys","_replaceEditorDataWithRevisionData","get","filter","_lastFrom","from","_appendChild","getRevision","_processRootBeforeSave","dataToMarker","init","addRevision","add","_getState","deletions","PENDING_ACTION_REVISION_HISTORY","_copyMarkers","_savedMetaData","type","documentFragment","_authorId","childCount","editor","forEach","getCurrentRevisionId","start","clear","isEqual","_generateTape","_handleMarkerOperation","text","toVersion","_getPreviousFrom","elementEnd","_getFromVersion","parent","revision","getChildren","_getBaseVids","_isPendingUpdate","_handleMergeOperation","NEGATIVE_INFINITY","path","setSource","deletion","createPositionBefore","dataDowncast","previousPosition","afterInit","_makeRevision","vid_end","_idsRoots","_handleOperation","history","_update","position","slice","_loadState","_handleSplitOperation","children","merge","_setAttribute","stickiness","adapter","has","split","insertionPosition","revision:","RevisionsRepository","attributes","getLatestVersion","reinsert","getMovedRangeStart","createdAt","createPositionAt","_touched","Users","_initialRevisionId","item","_rootNames","getRoot","createPositionAfter","_pendingAction","newRange","_reset","baseVersion","loadState","_makeIdsRoot","model","values","initial","delete","end","_removeMetaData","remove","_removeRevisionMarkers","$text","_insertChild","sort","getNodeByPath","then","editor-initial-data-replaced-with-revision-data","elementStart","_setConversion","$graveyard","authors","includes","currentRevision","creatorId","insert","resolve","getOperation","_fixPosition","_handleInsertOperation"];var nn,rn;nn=tn,rn=297,function(e){for(;--e;)nn.push(nn.shift())}(++rn);const on=function(e,t){return tn[e-=0]},sn={c:o.ViewContainerElement,a:o.ViewAttributeElement,e:o.ViewEmptyElement,r:o.ViewRawElement,u:o.ViewUIElement};class an extends e.Plugin{static get[on("0x53")](){return"RevisionTracker"}static get[on("0xce")](){return[r.Users,Qi,e.PendingActions]}constructor(...e){super(...e),this[on("0x98")]=null,this.set("isReady",!1),this[on("0xc")](on("0x54"),!0),this[on("0xc4")]=null;const i=(0,t.uid)();this[on("0x3c")]={history:this[on("0x6f")][on("0xb1")][on("0x2a")].history,getLatestVersion:()=>Promise.resolve(this[on("0x6f")][on("0xb1")][on("0x2a")][on("0x9")]),getCurrentRevisionId:()=>i},this[on("0x39")]=new un(this[on("0x6f")]),this[on("0xa6")]=this[on("0x6f")].config[on("0x5b")](on("0xd3"))||on("0xb3"),this[on("0xc")](on("0x4d"),!1),this[on("0xf3")]=new Map,this.editor[on("0x15")][on("0x2")]("revisionHistory.resumeUnsavedRevision",!0),this[on("0x3b")]=null,this[on("0x6f")][on("0x42")][on("0x27")]("upcast")[on("0x62")]({view:"revision"})}init(){this[on("0xe3")]=this.editor[on("0x22")][on("0x5b")](on("0x9d")),this[on("0xc0")](),this.editor[on("0xe6")].on("ready",(()=>{const e=this[on("0xe3")][on("0x60")](0),t=e&&null===e[on("0x4f")]?e:null;if(this[on("0xd4")]=!!t&&this[on("0x6f")][on("0x15")][on("0x5b")](on("0xe")),this.editor.plugins[on("0x99")](on("0x20"))){const i=this[on("0x3c")].getCurrentRevisionId(),n=this[on("0xe3")][on("0x60")](i);if(n)this[on("0xeb")]=n[on("0x1d")],this[on("0xd4")]=!1;else{const i=this[on("0x3c")].history[on("0x1")][on("0x43")]((e=>!e[on("0xcd")])),n=i?i[on("0xae")]:this._source[on("0x8e")][on("0x9")];e?(e.toVersion<n&&e._update({toVersion:n}),this[on("0xd4")]?(this[on("0x3c")].getCurrentRevisionId=()=>t.id,this[on("0xeb")]=t[on("0x1d")]):(this._startingVersion=e[on("0x78")],this._continueCurrentRevision=!1)):(this[on("0xeb")]=n,this[on("0xd4")]=!1)}}else t&&(this.editor[on("0xb1")][on("0x2a")].history[on("0x9")]=Math[on("0xd")](t.toVersion,this[on("0x6f")][on("0xb1")][on("0x2a")][on("0x8e")].version),t[on("0x1d")]===t[on("0x78")]?(0!==t[on("0x1d")]&&(this._source[on("0x71")]=()=>t.id),this[on("0xd4")]=!1):this[on("0xd4")]&&(this[on("0x3c")][on("0x71")]=()=>t.id,this._startingVersion=t[on("0x1d")])),this[on("0xd4")]||(this[on("0xeb")]=this[on("0x6f")].model.document[on("0x9")]);this[on("0x39")].init(this._source.history),this._createInitialRevision(this._startingVersion),this._createCurrentRevision(this[on("0xeb")]),this.adapter&&this.sendBufferedUpdates()})),this.bind(on("0xf2")).to(this,"_isPendingUpdate",(e=>!e))}async[on("0x89")](){if(this[on("0xe3")].length>0){const e=this.repository.getRevision(0),t=await this.getRevisionDocumentData(e);this[on("0x5a")](t)}}[on("0x84")](e){this[on("0x3c")]=e}async[on("0x1e")](){const e=await this[on("0x3c")][on("0x9f")]();if(e>this[on("0xc4")][on("0x78")]){await this[on("0x92")]();const t=this[on("0xdb")]({revision:this.currentRevision,to:e});t.authors=t.authorsIds.map((e=>this[on("0x6f")][on("0x22")][on("0x5b")](on("0xa5"))[on("0x32")](e))),this[on("0xc4")][on("0x8f")](t)}}async[on("0x92")](){this._continueCurrentRevision&&!this[on("0x3b")]&&(await this[on("0xd0")](this[on("0xc4")]),this[on("0x39")][on("0xaf")](this[on("0xc4")]),this._loadedStateData={fromVersion:this.currentRevision.fromVersion,authors:this[on("0xc4")][on("0xc2")][on("0x91")]()})}async[on("0x17")](e={},i=null){const n=[];await this._loadState(),this[on("0xd4")]=!1,i>this[on("0xc4")][on("0x78")]&&(i=null),null===i&&(i=await this[on("0x3c")][on("0x9f")]());const r=this[on("0x7b")](i),o=this.buildRevisionData({from:r,to:i});if(this[on("0xc4")][on("0x78")]<i){const e=this.buildRevisionData({revision:this[on("0xc4")],from:i,to:i});e[on("0xc2")]=[],e[on("0xed")]=[],e.id=this[on("0xc4")].id,this[on("0xc4")][on("0x8f")](e,!0),delete e.authors,n[on("0x24")](e)}e[on("0xc5")]=this.editor.plugins[on("0x5b")]("Users").me.id,e.name=e.name||null,e.id=e.id||(0,t.uid)(),e={...e,...o};const s=this[on("0x7")](e);n[on("0x24")](e);const a=this.repository.getIndex(s);if(0!==a){const t=this[on("0xe3")][on("0x60")](a-1);if(t.fromVersion!==i){const r=this[on("0x39")][on("0x28")](i,t[on("0x78")]),o={id:t.id,diffData:r[on("0x14")],authorsIds:r[on("0xed")],authors:r.authorsIds[on("0xe0")]((e=>this[on("0x6f")][on("0x22")].get("Users")[on("0x32")](e))),fromVersion:i};t===this[on("0xc4")]&&(o[on("0xa2")]=new Date(e.createdAt.getTime()+10)),t[on("0x8f")](o,!0),delete o.authors,n.push(o)}}if(this[on("0x98")]){for(const e of n)this[on("0x21")](e.id,e,!0);this.sendBufferedUpdates()}return s}[on("0x7")](e){const t=this[on("0xe3")][on("0xf6")](e);return this[on("0x98")]&&t.on("_update",((e,t,i)=>{i||(this[on("0x21")](t.id,t,!0),this.sendBufferedUpdates())})),this[on("0xe3")][on("0x64")](t,this[on("0xe8")](t)),t}async[on("0x33")](e){await this[on("0xd0")](e);const t={};for(const i in e[on("0x14")]){const n=this[on("0xb8")](JSON[on("0x3")](e[on("0x14")][i].insertions)),r=this[on("0x6f")].editing.view[on("0x2a")],s=new o.ViewDocumentFragment(r,n[on("0xe0")]((e=>cn(e,this.editor))));this.editor[on("0xe6")][on("0x3d")].useFillerType("marked"),t[i]=this.editor[on("0xe6")][on("0x3d")][on("0x2d")](s),this[on("0x6f")][on("0xe6")].processor.useFillerType(on("0x16"))}return t}sendBufferedUpdates(){if(0===this[on("0xf3")][on("0x49")])return;if(this[on("0x80")])return;let e=Array[on("0x5e")](this[on("0xf3")].values());this[on("0xf3")][on("0x73")]();for(let t=0;t<e[on("0xf4")];t++){const i=e[t];let n=!1;for(const e of Object.keys(i))void 0===i[e]?delete i[e]:"id"!==e&&(n=!0);n||(e[t]=null)}if(e=e[on("0x5c")]((e=>null!==e)),!e[on("0xf4")])return;for(let t=0;t<e[on("0xf4")];t++){const i=e[t];void 0!==i.fromVersion&&void 0===i.toVersion&&(i.toVersion=this.repository[on("0x60")](i.id).toVersion),void 0!==i[on("0x78")]&&void 0===i[on("0x1d")]&&(i[on("0x1d")]=this[on("0xe3")].getRevision(i.id)[on("0x1d")])}const t=this[on("0x6f")][on("0x15")].get("collaboration.channelId");this[on("0x80")]=!0,this._addPendingAction(),this[on("0x98")][on("0x1a")](e,t)[on("0xf7")]((()=>{this[on("0x80")]=!1}))[on("0xbd")]((e=>{if(e)for(const t of e)this.setRevisionData({id:t.id,createdAt:t[on("0xa2")]});this[on("0xe1")](),this[on("0x29")]()}))}[on("0x5a")](e){let i=this[on("0x6f")].config.get("initialData");if(void 0===i){i={};for(const e of this[on("0x6f")][on("0xb1")][on("0x2a")][on("0xe5")]())i[e]=""}on("0x50")==typeof i&&(i={main:i});let n=!1;for(const t of Object[on("0x59")](i))e[t]&&(i[t]!==e[t]&&""!==i[t].trim()&&(n=!0),i[t]=e[t]);n&&(0,t.logWarning)(on("0xbe")),this[on("0x6f")].config[on("0xc")](on("0x4"),i)}[on("0x3a")](){if(!this[on("0xab")]){const e=this[on("0x6f")][on("0x22")][on("0x5b")](on("0xd2"));this[on("0xab")]=e[on("0x65")](en(this[on("0x6f")].locale,on("0x68")))}}[on("0xe1")](){this[on("0xab")]&&(this[on("0x6f")].plugins[on("0x5b")](on("0xd2"))[on("0xb7")](this._pendingAction),this._pendingAction=null)}[on("0xe8")](e){const t=this[on("0xe3")][on("0xf")]();t.reverse();let i=0;for(;i<t[on("0xf4")];){const n=t[i];if(n===this.currentRevision){i++;continue}if(n.id===this._initialRevisionId)break;const r=e[on("0x78")]-n[on("0x78")]||e[on("0x1d")]-n[on("0x1d")];if(r>0)break;if(r<0)i++;else{if(!e[on("0x4f")]&&n[on("0x4f")])break;if(n[on("0x4f")]||!e[on("0x4f")]){if(e.createdAt>n[on("0xa2")])break;i++}else i++}}return i}[on("0x52")](e){const t=this[on("0xe3")][on("0x60")](e.id);if(e[on("0xa2")]&&(e[on("0xa2")]=new Date(e[on("0xa2")])),e[on("0xed")]){const t=this.editor[on("0x22")].get(on("0xa5"));e[on("0xc2")]=e.authorsIds.map((e=>t.getUser(e)))}t[on("0x8f")](e,!0)}[on("0xdb")]({revision:e=null,from:t=null,to:i=null}){t=null!==t?t:e[on("0x1d")],i=null!==i?i:e[on("0x78")];const n=this[on("0x39")][on("0x28")](t,i),r={diffData:n.diffData,authorsIds:n[on("0xed")],fromVersion:t,toVersion:i};if(!e||i!==e[on("0x78")]){const e=i-1,t=this[on("0x3c")][on("0x8e")][on("0xc8")](e);r[on("0xa2")]=t&&t.createdAt||new Date}if(this[on("0x3b")]&&t===this[on("0x3b")][on("0x1d")])for(const e of this._loadedStateData[on("0xc2")])r[on("0xed")][on("0xc3")](e.id)||r[on("0xed")][on("0x24")](e.id);return r}[on("0xd0")](e){if(!e||e[on("0x14")])return Promise[on("0xc7")]();{const t=this[on("0x6f")][on("0x15")][on("0x5b")](on("0xd3"));return this[on("0x98")][on("0x60")]({channelId:t,revisionId:e.id}).then((t=>{e[on("0x14")]=t[on("0x14")]}))}}[on("0x21")](e,t,i){if(this[on("0xf3")][on("0x99")](e)){const n=this[on("0xf3")][on("0x5b")](e);t=i?{...n,...t}:{...t,...n}}this[on("0xf3")][on("0xc")](e,t)}[on("0x7b")](e){const t=this[on("0xe3")][on("0xf")]();t[on("0x58")](),t.shift();const i=t[on("0x43")]((t=>t.toVersion<=e))[on("0x78")];return i<this._startingVersion?this[on("0xeb")]:i}_createInitialRevision(e){const t=this[on("0xe3")].getRevision(this[on("0xe3")].length-1);if(t)this[on("0xa6")]=t.id;else{const t=!this.editor[on("0xb1")][on("0x2a")][on("0x10")][on("0x43")]((e=>this[on("0x6f")][on("0xb1")].hasContent(e))),i=this[on("0x6f")][on("0x22")][on("0x5b")](on("0xa5")).me.id,n=en(this[on("0x6f")][on("0x36")],t?on("0xd9"):"Initial revision");this[on("0x8a")]({from:e,to:e,id:this[on("0xa6")],name:n,creatorId:i})}}[on("0x11")](e){const t=this._source[on("0x71")]();this[on("0xc4")]=this[on("0xe3")][on("0x60")](t),this[on("0xc4")]||(this[on("0xc4")]=this[on("0x8a")]({from:e,to:e,id:t,name:"",creatorId:null}))}[on("0x8a")]({name:e,from:t,to:i,creatorId:n,id:r}){const o=this[on("0xdb")]({from:t,to:i});o[on("0xdf")]=e,o[on("0xc5")]=n,o.id=r;const s=this[on("0x7")](o);return this[on("0x98")]&&this[on("0x21")](o.id,o,!0),s}_setConversion(){this[on("0x6f")].conversion.for(on("0x87")).markerToData({model:on("0x7d")})}[on("0xb8")](e){return(e=e[on("0x5c")]((e=>!e.name||"revision-start"!==e[on("0xdf")]&&on("0xee")!==e.name)))[on("0x70")]((e=>{"string"!=typeof e&&(e[on("0x94")]=this[on("0xb8")](e[on("0x94")]),e[on("0x9e")]=e[on("0x9e")][on("0x5c")]((e=>!e[0].startsWith(on("0x1b")))))})),e}}function cn(e,t){const i=t[on("0xe4")].view.document;if(on("0x50")==typeof e)return new o.ViewText(i,e);{const n=e[on("0x94")].map((e=>cn(e,t)));return new(sn[e[on("0x6b")]]||o.ViewElement)(i,e[on("0xdf")],e[on("0x9e")],n)}}class un{constructor(e){this[on("0x6f")]=e,this[on("0x6a")]=new Map,this[on("0x5d")]=-1,this[on("0x4a")]=-1,this._markers=new Map,this[on("0x1c")]=new Map,this[on("0x41")]=new Map,this[on("0x8c")]=new Map,this[on("0x30")]=new Map,this[on("0xa4")]=new Map,this[on("0x18")]=new Map,this[on("0x55")]=1,this[on("0xa8")]=this[on("0x6f")][on("0xb1")][on("0x2a")][on("0xe5")](),this._rootNames[on("0x24")](on("0xc1"))}[on("0x63")](e){this[on("0x3e")]=e;const t=new Map;for(const e of this[on("0xa8")]){const i=dn(this.editor[on("0xb1")].document[on("0xa9")](e));t[on("0xc")](e,i)}const i=Array[on("0x5e")](this[on("0x6f")].model[on("0xb")])[on("0xe0")]((e=>[e[on("0xdf")],e[on("0x2f")]()])),n=this[on("0x3e")][on("0x9")];this[on("0xd5")](n,t,i),this[on("0xd7")]=this[on("0x55")]}[on("0x28")](e,t){if(this._lastFrom===e&&this._lastTo<=t)this[on("0x6a")][on("0x49")]>1&&this[on("0xb6")](this._lastTo),this._applyOperations(this[on("0x4a")],t,!0);else{if(!this[on("0x6a")][on("0x99")](e)){const t=this._getPreviousFrom(e);this._calculateMetaData(t,e,!1)}this[on("0xf5")](e,t,!0)}return this._lastFrom=e,this[on("0x4a")]=t,this[on("0x66")]()}loadState(e){this[on("0xad")](),this[on("0x5d")]=e[on("0x1d")],this[on("0x4a")]=e[on("0x78")];for(const t in e[on("0x14")]){const i=this[on("0x5")](e[on("0x14")][t][on("0x67")]);i[on("0x4c")]=t,this[on("0x41")][on("0xc")](t,i);const n=this[on("0xb0")](i);this[on("0x30")][on("0xc")](t,n);for(const[e,t]of i.markers){if(!e.startsWith(on("0x9c")))continue;const i=e.split(":")[2];for(const e of t[on("0xef")]({singleCharacters:!0})){const t=this._getVidAttributeName(e),r=on("0x7a")==e.type?e.previousPosition.path[on("0x91")](0,-1):e[on("0x88")][on("0x83")],o=n[on("0xbc")](r)[on("0x56")](t);this[on("0xa4")][on("0xc")](o,{userId:i})}}}this[on("0xd7")]=this[on("0x55")];const t=[...Array(this[on("0x55")])[on("0x59")]()].slice(1)[on("0x5c")]((e=>!this[on("0xa4")][on("0x99")](e)));let i=0;for(const n in e[on("0x14")]){const r=this[on("0x5")](e[on("0x14")][n][on("0xd6")]);r[on("0x4c")]=n,this[on("0x1c")][on("0xc")](n,r);const s=this._makeIdsRoot(r,Number[on("0x82")]);this[on("0x8c")].set(n,s);for(const[e,t]of r[on("0xb")]){if(!e.startsWith("revision:"))continue;const i=e[on("0x9a")](":")[2];for(const e of t[on("0xef")]({singleCharacters:!0})){const t=this[on("0x47")](e),n=this[on("0x55")]++,r=on("0x7a")==e[on("0x6b")]?e[on("0x88")].path[on("0x91")](0,-1):e[on("0x88")].path;s[on("0xbc")](r)[on("0x96")](t,n),this._touched[on("0xc")](n,{userId:i})}}for(const e of this[on("0x6f")][on("0xb1")][on("0x13")](r)[on("0xef")]({singleCharacters:!0})){const n=this[on("0x47")](e),r="elementEnd"==e[on("0x6b")]?e[on("0x88")][on("0x83")].slice(0,-1):e[on("0x88")].path,o=s[on("0xbc")](r);o[on("0x56")](n)>0||o._setAttribute(n,t[i++])}const a=new o.DocumentFragment;a[on("0x4c")]="$graveyard",this[on("0x41")][on("0xc")](on("0xc1"),a),this[on("0x30")].set(on("0xc1"),this[on("0xb0")](a,1));const c=new o.DocumentFragment;c[on("0x4c")]=on("0xc1"),this._diffRoots.set(on("0xc1"),c),this._idsRoots[on("0xc")]("$graveyard",this._makeIdsRoot(c,1));for(const[e,t]of r[on("0xb")])e[on("0xf1")](on("0x9c"))||this[on("0x0")].set(e,t)}const n=Array[on("0x5e")](this[on("0x1c")])[on("0xe0")]((([e,t])=>[e,dn(t)]));this._saveMetaData(this._lastTo,n,this[on("0x0")])}_makeModelFromViewString(e){const t=JSON[on("0x3")](e),i=this[on("0x6f")][on("0xe4")][on("0x19")][on("0x2a")],n=new o.ViewDocumentFragment(i,t[on("0xe0")]((e=>cn(e,this[on("0x6f")]))));return this.editor[on("0xe6")][on("0xec")](n)}[on("0x44")](){const e=new Map;for(const t of this[on("0xa8")]){const i=new o.DocumentFragment;i[on("0x4c")]=t,e[on("0xc")](t,i)}this[on("0xd5")](Number.NEGATIVE_INFINITY,e,[])}[on("0xd5")](e,t,i){const n=new Map(t),r=new Map;for(const[e,t]of i)r[on("0xc")](e,{start:t.start.clone(),end:t[on("0xb5")].clone(),rootName:t[on("0xcb")][on("0x4c")]});this[on("0x6a")][on("0xc")](e,{roots:n,markers:r})}[on("0xb6")](e){this[on("0x6a")][on("0xb4")](e)}[on("0x1f")](){this[on("0xad")](),this[on("0x5d")]=-1,this[on("0x4a")]=-1,this[on("0x6a")][on("0x73")](),this.init(this.source)}[on("0xad")](){this[on("0xa4")][on("0x73")](),this[on("0x18")][on("0x73")](),this[on("0x1c")].clear(),this[on("0x41")][on("0x73")](),this[on("0x8c")][on("0x73")](),this[on("0x30")][on("0x73")](),this[on("0x0")][on("0x73")](),this[on("0x55")]=1,this._startingRevisionId=this[on("0x55")]}[on("0xb0")](e,t=null){let i=null;e.is("documentFragment")||(i=new o.Element(e[on("0xdf")],{vid_start:null===t?this._revisionId++:t++}));const n=[];for(const i of e[on("0x7e")]())if(i.is(on("0xa"))){n[on("0x24")](this[on("0xb0")](i,t));const e=n[n[on("0xf4")]-1];null!==t&&(t=e.is("element",on("0xb9"))?e[on("0x56")](on("0x25"))+1:e.getAttribute(on("0x8b"))+1)}else for(let e=0;e<i[on("0x38")];e++)n[on("0x24")](new o.Element(on("0xb9"),{vid:null===t?this[on("0x55")]++:t++}));if(e.is(on("0x6c"))){const t=new o.DocumentFragment(n);return t[on("0x4c")]=e[on("0x4c")],t}return i._setAttribute(on("0x8b"),null===t?this[on("0x55")]++:t++),i[on("0xba")](0,n),i}[on("0xf5")](e,t,i){this._reset();const{roots:n,markers:r}=this[on("0x6a")][on("0x5b")](e);this[on("0x41")]=new Map(n);for(const[e,t]of this[on("0x41")])if(on("0xc1")!==e&&(this[on("0x1c")][on("0xc")](e,dn(t)),i)){const i=this._revisionId;this[on("0x8c")][on("0xc")](e,this[on("0xb0")](t)),this[on("0x30")][on("0xc")](e,this[on("0xb0")](t,i))}this[on("0xd7")]=this[on("0x55")],this[on("0x1c")][on("0xc")](on("0xc1"),dn(this[on("0x41")][on("0x5b")](on("0xc1")))),i&&this._idsRoots[on("0xc")](on("0xc1"),this._makeIdsRoot(this[on("0x41")][on("0x5b")](on("0xc1"))));for(const[e,t]of r){const i=this[on("0x41")][on("0x5b")](t[on("0x4c")]),n=this._diffRoots[on("0x5b")](t[on("0x4c")]),r=new o.Range(this[on("0xc9")](t[on("0x72")],i),this[on("0xc9")](t[on("0xb5")],i)),s=this[on("0xcc")](r,n);i[on("0xb")][on("0xc")](e,r),this[on("0x0")][on("0xc")](e,s)}this[on("0xe7")](e,t,i)}[on("0xe7")](e,t,i){for(const n of this.source[on("0x2c")](e,t))this[on("0x8d")](n,i);for(const e of this[on("0x1c")][on("0xb2")]())e.markers[on("0x73")]();for(const[e,t]of this[on("0x0")])this[on("0x1c")][on("0x5b")](t.root[on("0x4c")])[on("0xb")][on("0xc")](e,t.clone());this[on("0xd5")](t,Array.from(this[on("0x1c")])[on("0xe0")]((([e,t])=>[e,dn(t)])),this._markers)}[on("0x79")](e){const t=Array.from(this._savedMetaData.keys());t[on("0xbb")](((e,t)=>e-t)),t[on("0x58")]();for(const i of t)if(i<e)return i;return this[on("0x44")](),Number[on("0x82")]}[on("0x69")](e,t){const i=Array[on("0x5e")](t[on("0xb")])[on("0xe0")]((([t,i])=>[t,this._fixRange(i,e)]));e[on("0xb")]=new Map(i)}[on("0x6")](e){for(const t of this[on("0x0")][on("0xb2")]()){const i=t.getTransformedByOperation(e),n=o.Range[on("0x2b")](i);t[on("0x72")]=n[on("0x72")],t[on("0xb5")]=n[on("0xb5")]}}_handleOperation(e,t){const i=this[on("0xf0")](e,this._diffRoots);if(on("0x12")!==e[on("0x6b")]&&(i._execute(),this[on("0x6")](i)),t)switch(i[on("0x6b")]){case on("0xc6"):this[on("0xca")](e);break;case"move":case on("0xb7"):case on("0xa0"):this._handleMoveOperation(e);break;case on("0x95"):this._handleMergeOperation(e);break;case on("0x9a"):this[on("0x93")](e);break;case"marker":this[on("0x76")](e)}}[on("0xf0")](e,t){const i=e[on("0x57")]();return i[on("0x6d")]=e._authorId,this[on("0xdd")](i,t),i}[on("0x7f")](e){return e[on("0xe0")]((e=>{const t=this._getVidAttributeName(e);return Number(e[on("0xa7")][on("0x56")](t))}))}[on("0x75")](e,t){if(e.is("element",on("0xb9")))t[on("0x24")]({item:e,type:on("0x77")});else{e.is(on("0xa"))&&t[on("0x24")]({item:e,type:on("0xbf")});for(const i of e[on("0x7e")]())this[on("0x75")](i,t);e.is(on("0xa"))&&t.push({item:e,type:"elementEnd"})}return t}[on("0x66")](){const e=this[on("0x6f")][on("0xb1")][on("0x2a")][on("0xe5")](),t=new Map(this[on("0xa4")]),i=new Map(t),n=new Map,r={insertions:{},deletions:{}},o={insertions:{},deletions:{}},s=new Map;for(const t of e){const e=this[on("0x1c")].get(t),i=this._baseRoots[on("0x5b")](t);r[on("0xd6")][t]=dn(e),r[on("0x67")][t]=dn(i),this[on("0x69")](r.deletions[t],i),this[on("0x69")](r[on("0xd6")][t],e),o[on("0xd6")][t]=this[on("0x75")](this._idsRoots.get(t),[]),o.deletions[t]=this[on("0x75")](this[on("0x30")].get(t),[])}for(const r of e){const e=o.insertions[r];for(const r of e){const e=this[on("0x47")](r),o=r[on("0xa7")][on("0x56")](e);i[on("0xb4")](o),o>=this._startingRevisionId&&n[on("0xc")](o,t[on("0x5b")](o))}}for(const r of e){const e=o.insertions[r],a=this[on("0x7f")](o.deletions[r]);let c=0;for(const r of e){const e=this._getVidAttributeName(r),o=r.item[on("0x56")](e);if(!n.has(o)&&!s[on("0x99")](o))if(i.has(o))c++;else{if(o!=a[c]){const e=t[on("0x5b")](o)||t[on("0x5b")](a[c]);for(;o!=a[c];)i[on("0x99")](a[c])||(s[on("0xc")](a[c],e),t.set(a[c],e)),c++}c++}}}for(const t of e){const e=o[on("0xd6")][t];for(const t of e){const e=this._getVidAttributeName(t),r=t[on("0xa7")][on("0x56")](e);if(s.has(r)){const e=s[on("0x5b")](r);i[on("0x99")](r)||i[on("0xc")](r,{...e}),n.set(r,{...e})}}}for(const e of i[on("0x59")]())e>=this[on("0xd7")]&&i.delete(e);const a=new Map;for(const t of e){let e=o[on("0xd6")][t];for(const t of e)if(t[on("0xa7")].is(on("0xa"),on("0xf8"))){const e=this[on("0x47")](t),i=t.item[on("0x56")](e);if(n[on("0x99")](i)){const e=t[on("0xa7")].parent[on("0x7c")][on("0x56")]("vid_start"),r=a[on("0x5b")](e)||new Set;r[on("0x65")](n.get(i).userId),a.set(e,r)}}e=o[on("0x67")][t];for(const t of e)if(t[on("0xa7")].is(on("0xa"),on("0xf8"))){const e=this[on("0x47")](t),n=t.item[on("0x56")](e);if(i[on("0x99")](n)){const e=t.item[on("0x7c")].parent[on("0x56")](on("0x45")),r=a[on("0x5b")](e)||new Set;r[on("0x65")](i[on("0x5b")](n).userId),a[on("0xc")](e,r)}}for(const e of a[on("0x59")]())(n.has(e)||i[on("0x99")](e))&&a.delete(e)}for(const t of e){const e=o.insertions[t];let r=null,s=null;for(const t of e){const e=this[on("0x47")](t),o=t[on("0xa7")].getAttribute(e),c=a[on("0x5b")](o);c&&on("0xbf")==t[on("0x6b")]&&(r=Array[on("0x5e")](c)[0],s=t[on("0xa7")][on("0x56")]("vid_end")),r&&(i.set(o,{userId:r}),n.set(o,{userId:r})),o==s&&(r=null,s=null)}}const c={},u=new Set;for(const t of e){const e=r[on("0x67")][t],s=r[on("0xd6")][t];for(const{userId:e}of this[on("0x18")][on("0xb2")]())null!==e&&u.add(e);this[on("0x26")](s,o[on("0xd6")][t],n,on("0xcf"),u),this[on("0x26")](e,o[on("0x67")][t],i,on("0x85"),u),c[t]={insertions:this[on("0xe9")](s),deletions:this._prepareViewToSave(e)}}return{diffData:c,authorsIds:Array[on("0x5e")](u)}}[on("0x61")](e){for(const[,t]of e.markers){const e=t[on("0x72")][on("0x51")]().filter((e=>on("0xf8")==e[on("0xdf")]));for(const t of e)1==t[on("0x6e")]&&t[on("0xd1")](0).is(on("0xa"),on("0xda"))&&t.getChild(0)[on("0x96")](on("0x37"),!0)}}[on("0xe9")](e){this[on("0x61")](e);const t=this[on("0x6f")][on("0xe6")][on("0x3f")](e,{}),i=Array[on("0x5e")](t.getChildren())[on("0xe0")]((e=>this[on("0x40")](e)));return JSON.stringify(i)}[on("0x40")](e){return e.is(on("0x77"))?e[on("0xe6")]:{type:Object[on("0x59")](sn)[on("0x43")]((t=>e instanceof sn[t])),name:e.name,attributes:Array.from(e[on("0x4b")]()),children:Array[on("0x5e")](e[on("0x7e")]()).map((e=>this[on("0x40")](e)))}}_markChanges(e,t,i,n,r){let o=null,s=null,a=0;const c=this[on("0x6f")][on("0xb1")];for(let n=0;n<t[on("0xf4")];n++){const r=this._getVidAttributeName(t[n]),a=t[n].item[on("0x56")](r),d=i[on("0x5b")](a),l=n==t[on("0xf4")]-1;!o&&d&&(o=d,s=t[n]),o&&(!d||d[on("0x8")]!=o[on("0x8")])&&(u(d,ln(s,e,c),ln(t[n],e,c)),o=d||null,s=d?t[n]:null),o&&l&&u(d,ln(s,e,c),xn(t[n],e,c))}function u(t,i,s){const u=o[on("0x8")],d=on("0x9c")+n+":"+u+":"+a++,l=c.createRange(i,s);e[on("0xb")][on("0xc")](d,l),null!==u&&r[on("0x65")](u)}}[on("0x47")](e){switch(e.type){case"elementStart":return"vid_start";case"elementEnd":return on("0x8b");default:return on("0x25")}}_fixOperation(e,t){e[on("0xae")]=null;for(const i in e){if(e[i]instanceof o.Position){const n=t.get(e[i][on("0xcb")][on("0x4c")]);e[i]=this._fixPosition(e[i],n)}if(e[i]instanceof o.Range){const n=t[on("0x5b")](e[i][on("0xcb")][on("0x4c")]);e[i]=this[on("0xcc")](e[i],n)}}e[on("0xcb")]&&(e[on("0xcb")]=t[on("0x5b")](e[on("0xcb")].rootName))}_fixRange(e,t){return this[on("0x6f")][on("0xb1")][on("0xd8")](this[on("0xc9")](e[on("0x72")],t),this[on("0xc9")](e[on("0xb5")],t))}[on("0xc9")](e,t){return this[on("0x6f")][on("0xb1")][on("0x34")](t,e[on("0x83")],e[on("0x97")])}_handleInsertOperation(e){const t=this._idsRoots[on("0x5b")](e[on("0x90")][on("0xcb")][on("0x4c")]),i=this[on("0xc9")](e[on("0x90")],t),n=null===e._authorId?null:e[on("0x6d")]||this[on("0x6f")].plugins[on("0x5b")]("Users").me.id,r=i[on("0x7c")],s=this._revisionId,a=[];for(const t of e.nodes)if(t.is(on("0xa")))a.push(this._makeIdsRoot(t));else for(let e=0;e<t[on("0x38")];e++)a[on("0x24")](new o.Element(on("0xb9"),{vid:this._revisionId++}));const c=this._revisionId;for(let e=s;e<c;e++)this[on("0xa4")][on("0xc")](e,{userId:n});r[on("0xba")](i[on("0x4e")],a)}[on("0xea")](e){(e=this[on("0xf0")](e,this._idsRoots))[on("0xf9")]();const t=null===e[on("0x6d")]?null:e[on("0x6d")]||this[on("0x6f")][on("0x22")][on("0x5b")](on("0xa5")).me.id,i=e[on("0xa1")](),n=i[on("0x7c")],r=i[on("0x4e")];!function e(i,n,r,o){for(let s=r;s<o;s++){const r=n.getChild(s);r.is(on("0xa"),on("0xb9"))?i[on("0xc")](r[on("0x56")](on("0x25")),{userId:t}):(i.set(r[on("0x56")](on("0x45")),{userId:t}),e(i,r,0,r[on("0x6e")]),i[on("0xc")](r.getAttribute(on("0x8b")),{userId:t}))}}(this[on("0xa4")],n,r,r+e[on("0x31")])}[on("0x81")](e){const t=null===(e=this._cloneOperation(e,this[on("0x8c")]))._authorId?null:e[on("0x6d")]||this.editor[on("0x22")][on("0x5b")](on("0xa5")).me.id,i=e[on("0x35")][on("0x7c")],n=e.sourcePosition[on("0x7c")],r=i[on("0x56")](on("0x8b")),o=n[on("0x56")](on("0x45"));i[on("0x96")]("vid_end",n[on("0x56")](on("0x8b"))),n[on("0x96")](on("0x8b"),r),this[on("0xa4")].set(o,{userId:t}),this._touched[on("0xc")](r,{userId:t}),e[on("0xf9")]()}[on("0x93")](e){const t=null===(e=this._cloneOperation(e,this[on("0x8c")]))._authorId?null:e[on("0x6d")]||this[on("0x6f")].plugins[on("0x5b")](on("0xa5")).me.id,i=e[on("0xe2")],n=e[on("0x48")][on("0x7c")];e._execute();const r=n[on("0x56")](on("0x8b")),o=e[on("0x9b")][on("0x2e")];if(i){const e=o[on("0x56")]("vid_end"),i=n[on("0x56")]("vid_end");n[on("0x96")](on("0x8b"),e),o._setAttribute(on("0x8b"),i),this._touched[on("0xc")](n.getAttribute(on("0x8b")),{userId:t}),this[on("0xa4")].set(o.getAttribute(on("0x45")),{userId:t})}else{const e=this[on("0x55")]++,i=this[on("0x55")]++;n._setAttribute("vid_end",e),o._setAttribute("vid_start",i),o[on("0x96")](on("0x8b"),r),this[on("0xa4")][on("0xc")](e,{userId:t}),this._touched[on("0xc")](i,{userId:t})}}[on("0x76")](e){if(!e[on("0xde")])return;const t=(e=this[on("0xf0")](e,this[on("0x1c")]))[on("0x23")]?e[on("0x23")][on("0xcb")]:null,i=e[on("0xac")]?e.newRange[on("0xcb")]:null;t&&this[on("0x0")][on("0xb4")](e[on("0xdf")]),i&&this[on("0x0")][on("0xc")](e[on("0xdf")],e.newRange[on("0x57")]());const n=null===e[on("0x6d")]?null:e._authorId||this.editor[on("0x22")].get("Users").me.id,r=e.name;if(!this._touchedMarkers[on("0x99")](r))return void this[on("0x18")][on("0xc")](r,{range:e.oldRange,userId:n});const o=this._touchedMarkers[on("0x5b")](r),s=o[on("0xdc")],a=e[on("0xac")];null==s&&null==a||s&&a&&s[on("0x74")](a)?this[on("0x18")][on("0xb4")](e[on("0xdf")]):o[on("0x8")]=n}}function dn(e){const t=new o.DocumentFragment;t[on("0x4c")]=e[on("0x4c")];for(const i of e[on("0x7e")]()){const e=i[on("0x46")](!0);t[on("0x5f")](e)}return t}function ln(e,t,i){const n=on("0x7a")==e[on("0x6b")]?i[on("0xa3")](e[on("0xa7")],"end"):i[on("0x86")](e[on("0xa7")]);return n[on("0xcb")]=t,n}function xn(e,t,i){const n=on("0xbf")==e.type?i.createPositionAt(e[on("0xa7")],0):i[on("0xaa")](e[on("0xa7")]);return n[on("0xcb")]=t,n}var hn=i(273);var fn=i(278),vn=i.n(fn),mn=i(996),gn={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};vn()(mn.Z,gn);mn.Z.locals;var pn=i(542),yn={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};vn()(pn.Z,yn);pn.Z.locals;const bn=["delegate","extendTemplate","label","_createRevisionNameInput","focusTracker","execute","setTemplate","keystrokes","reset","add","revisionNameInputValue","render","forEach","ck-revision-history-save-revision-form","form","listenTo","type","Name of the revision (optional)","focus","revisionName","_focusCycler","shift + tab","stopPropagation","arrowleft","set","220","trim","fieldView","_focusables","Save","input","_createButton","cancel","ck-button-cancel","high","revisionNameInputView","value","locale","saveButtonView","arrowright","element","cancelButtonView","ck-button-save"];var kn,_n;kn=bn,_n=177,function(e){for(;--e;)kn.push(kn.shift())}(++_n);const wn=function(e,t){return bn[e-=0]};class Sn extends hn.View{constructor(e){super(e),this[wn("0x2a")]=new t.FocusTracker,this.keystrokes=new t.KeystrokeHandler,this[wn("0x13")]("revisionNameInputValue",""),this.revisionNameInputView=this[wn("0x29")](),this[wn("0x21")]=this[wn("0x1a")](en(e,wn("0x18")),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.972 16.615a.997.997 0 0 1-.744-.292l-4.596-4.596a1 1 0 1 1 1.414-1.414l3.926 3.926 9.937-9.937a1 1 0 0 1 1.414 1.415L7.717 16.323a.997.997 0 0 1-.745.292z"/></svg>',wn("0x25")),this.saveButtonView[wn("0xb")]="submit",this[wn("0x24")]=this._createButton(en(e,"Cancel"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.591 10.177 4.243 4.242a1 1 0 0 1-1.415 1.415l-4.242-4.243-4.243 4.243a1 1 0 0 1-1.414-1.415l4.243-4.242L4.52 5.934A1 1 0 0 1 5.934 4.52l4.243 4.243 4.242-4.243a1 1 0 1 1 1.415 1.414l-4.243 4.243z"/></svg>',wn("0x1c"),wn("0x1b")),this[wn("0x17")]=new hn.ViewCollection,this[wn("0xf")]=new hn.FocusCycler({focusables:this[wn("0x17")],focusTracker:this[wn("0x2a")],keystrokeHandler:this[wn("0x2")],actions:{focusPrevious:wn("0x10"),focusNext:"tab"}}),this[wn("0x1")]({tag:wn("0x9"),attributes:{class:["ck",wn("0x8"),"ck-responsive-form"],tabindex:"-1"},children:[this.revisionNameInputView,this[wn("0x21")],this[wn("0x24")]]}),(0,hn.injectCssTransitionDisabler)(this)}[wn("0x6")](){super[wn("0x6")](),(0,hn.submitHandler)({view:this}),[this.revisionNameInputView,this.saveButtonView,this.cancelButtonView][wn("0x7")]((e=>{this[wn("0x17")][wn("0x4")](e),this.focusTracker[wn("0x4")](e[wn("0x23")])})),this[wn("0x2")].listenTo(this.element);const e=e=>e[wn("0x11")]();this[wn("0x2")].set(wn("0x22"),e),this.keystrokes.set(wn("0x12"),e),this[wn("0x2")][wn("0x13")]("arrowup",e),this[wn("0x2")][wn("0x13")]("arrowdown",e),this[wn("0xa")](this[wn("0x1e")][wn("0x23")],"selectstart",((e,t)=>{t[wn("0x11")]()}),{priority:wn("0x1d")})}[wn("0xd")](){this[wn("0xf")].focusFirst()}get revisionName(){return this.revisionNameInputView[wn("0x16")][wn("0x23")][wn("0x1f")][wn("0x15")]()}set[wn("0xe")](e){this[wn("0x1e")].fieldView[wn("0x23")].value=e[wn("0x15")]()}[wn("0x3")](){this[wn("0x1e")][wn("0x16")][wn("0x23")].value=""}_createRevisionNameInput(){const e=new hn.LabeledFieldView(this[wn("0x20")],hn.createLabeledInputText),t=e.fieldView;return t[wn("0x27")]({attributes:{maxlength:wn("0x14")}}),e[wn("0x28")]=en(this[wn("0x20")],wn("0xc")),t.on(wn("0x19"),(()=>{this[wn("0x5")]=t[wn("0x23")][wn("0x1f")].trim()})),e}_createButton(e,t,i,n){const r=new hn.ButtonView(this.locale);return r[wn("0x13")]({label:e,icon:t,tooltip:!0}),r.extendTemplate({attributes:{class:i}}),n&&r[wn("0x26")](wn("0x0")).to(this,n),r}}const Tn='<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',On=["add","buttonView","items","isEnabled","submit","Revision history","revisionHistory","isReadOnly","addMany","Open revision history","render","view","config","Save current revision","cancel","isOpen","saveButtonView","isReady","execute","componentFactory","set","get","saveRevision","children","editor","length","focus","bind","change:isOpen"];var In,Rn;In=On,Rn=109,function(e){for(;--e;)In.push(In.shift())}(++Rn);const Nn=function(e,t){return On[e-=0]};class Vn extends e.Plugin{static get pluginName(){return"RevisionHistoryUI"}static get requires(){return[an]}init(){const e=this[Nn("0x2")],t=e.plugins[Nn("0x1c")]("RevisionTracker");e.ui[Nn("0x1a")][Nn("0x7")](Nn("0xd"),(i=>{const n=(0,hn.createDropdown)(i),r=n.panelView.children,o=new hn.ListView(i),s=new hn.ListItemView(i),a=new hn.ButtonView(i),c=new hn.ListItemView(i),u=new hn.ButtonView(i),d=new Sn(i);function l(){r[Nn("0x3")]&&r.remove(0),r[Nn("0x7")](o)}function x(){n[Nn("0x16")]=!1,e.editing[Nn("0x12")][Nn("0x4")]()}return n.bind(Nn("0xa")).to(t,"isReady",t,Nn("0xa"),e,Nn("0xe"),((e,t,i)=>e&&t&&!i)),n[Nn("0x8")][Nn("0x1b")]({icon:Tn,label:en(i,Nn("0xc")),tooltip:!0}),a[Nn("0x1b")]({label:en(i,Nn("0x14")),withText:!0}),a.bind(Nn("0xa")).to(t,Nn("0x18"),t,Nn("0xa"),e,Nn("0xe"),((e,t,i)=>e&&t&&!i)),a.on(Nn("0x19"),(()=>(r[Nn("0x3")]&&r.remove(0),d.reset(),r[Nn("0x7")](d),void d[Nn("0x4")]()))),u[Nn("0x1b")]({label:en(i,Nn("0x10")),withText:!0}),u[Nn("0x5")](Nn("0xa")).to(t,Nn("0x18"),e,Nn("0xe"),((e,t)=>e&&!t)),u.on("execute",(()=>{e[Nn("0x13")].get(Nn("0xd")).showRevisionViewerCallback(),x()})),s.children[Nn("0x7")](a),c[Nn("0x1")][Nn("0x7")](u),o[Nn("0x9")][Nn("0xf")]([s,c]),n.on(Nn("0x6"),(()=>l())),d[Nn("0x17")].bind(Nn("0xa")).to(t,Nn("0x18"),t,"isEnabled",e,Nn("0xe"),((e,t,i)=>e&&t&&!i)),d.on(Nn("0xb"),(()=>(e.plugins[Nn("0x1c")](an)[Nn("0x0")]({name:d.revisionName}),void x()))),d.on(Nn("0x15"),(()=>l())),d[Nn("0x11")](),l(),n}))}}const En=["Added by","ck-revision-change","Removed by","focus","add","setTemplate","name","div","ck-annotation","_model","isSuggestion","data","span","set","element","type","ck-revision-change__label"];var Mn,An;Mn=En,An=439,function(e){for(;--e;)Mn.push(Mn.shift())}(++An);const Dn=function(e,t){return En[e-=0]};class Cn extends hn.View{constructor(e,t){super(e),this[Dn("0xc")]=t;const i=this.bindTemplate,n=en(e,t[Dn("0xe")][Dn("0xd")]?"Suggested by":Dn("0x7")==t[Dn("0x1")]?Dn("0x3"):Dn("0x5"));this[Dn("0x10")](Dn("0x1"),t.type),this[Dn("0x8")]({tag:Dn("0xa"),attributes:{class:[Dn("0xb"),Dn("0x4"),i.to(Dn("0x1"),(e=>"ck-revision-change__"+e))],tabindex:-1},children:[{tag:Dn("0xf"),children:[{tag:"span",attributes:{class:[Dn("0x2")]},children:[{text:n}]},{text:" "+t.author[Dn("0x9")]}]}]})}[Dn("0x6")](){this[Dn("0x0")][Dn("0x6")]()}}var jn,Fn,Ln=["author","createdAt","type","data"];jn=Ln,Fn=165,function(e){for(;--e;)jn.push(jn.shift())}(++Fn);var Pn=function(e,t){return Ln[e-=0]};class zn{constructor(e){this.id=e.id||(0,t.uid)(),this.author=e[Pn("0x3")],this[Pn("0x1")]=e[Pn("0x1")],this[Pn("0x2")]=e[Pn("0x2")]||{},this.set("createdAt",e[Pn("0x0")])}toJSON(){return{id:this.id,authorId:this[Pn("0x3")].id,type:this.type,data:this[Pn("0x2")],createdAt:this[Pn("0x0")]}}}(0,t.mix)(zn,t.ObservableMixin);const Zn=["oldRevisionId","add","newRevisionId","changes","_setData"];var Un,Hn;Un=Zn,Hn=134,function(e){for(;--e;)Un.push(Un.shift())}(++Hn);const Bn=function(e,t){return Zn[e-=0]};class qn{constructor(e,i){this[Bn("0x3")]=e,this[Bn("0x1")]=i,this.changes=new t.Collection}[Bn("0x0")](e){for(const t of e[Bn("0x4")])this.changes[Bn("0x2")](t)}}var Wn=i(288),Jn={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};vn()(Wn.Z,Jn);Wn.Z.locals;const Gn=["revisionHistoryLabel","marked","consumable","isAtStart","stop","data","start","loadRevisionData","POSITIVE_INFINITY","newRevisionId","addRevisionData","error","change:numberOfChanges","commands","_refreshStartEndIndex","destroy","elementEnd","revision-start","values","deletions","document","changes","vid_end","remove","_initInteractions","_cleanMarkers","keys","activeView","set","diff","side","end","next","revision-suggestion","comment","length","_findChangeIdFromDomTarget","_getRevisionsRange","getRevision","revision-viewer","-new","shift","listenTo","low","data-change-id","getItems","createRange","toModel","isIncorrect","_threeWayMerge","forward","model","oldRevisionId","setAttribute","viewItem","slice","isAtEnd","merge","clearForceDisabled","isContent","parse","range","config","mapper","markerToHighlight","isNavigationMode","maxOffset","add","filter","getRevisionData","removeMarker:revision-suggestion","bind","_setData","_appendChild","_removeMissingPairs","markerName","element","concat","vid","attributes","insert","nextSibling","insertion","level","done","pairId","_step","hasAttribute","upcast","userId","readOnlyMode","writer","index","_processTape","isInline","from","showStack","adapter","mousedown","repository","revision","editor","markerRange","change:activeChange","observeMarkers","addHighlight","isLimit","offsetSize","activeChange","authors","high","code","parent","ck-suggestion-marker--active","getChild","getIndex","removeMarker:revision","createAttributeElement","_makeModelFromViewString","plugins","createRangeIn","addMarker:revision","ck-suggestion-marker-merge","map","children","schema","_target","ck-suggestion-marker-split","markers","default","enqueueChange","delete","string","then","span","_removeUnsupportedChanges","_makeModelFromTape","pop","processor","_makeTape","distance","getAttributes","isAddSuggestion","editingDowncast","useFillerType","reconvertMarker","markerToData","previousPosition","elementToAttribute","revision:","change:isEnabled","change:isReadOnly","showPreviousChange","type","backward","_getChangeFromId","requires","bindElementToMarker","stopListening","isAfter","split","isBlock","test","attribute:vid","_joinTapes","consume","forEach","push","getRootNames","for","ck-suggestion-preview-marker-","diffData","nodeAfter","removeClass","hasClass","isRemoveSuggestion","conversion","markerNameToElements","change","toViewElement","isSuggestion","_markMismatchedRemovedTags","item","_balloon","isBefore","_update","setData","<p></p>","change:isReady","addMarker:revision-suggestion:deletion","compare","return","_markInsertions","_cleanUp","all","RevisionViewer","downcastDispatcher","name","pluginName","getWalker","_setConversion","target","isRemoved","clear","splice","text","unbindElementFromMarkerName","elementStart","deletion","mouseover","_markSuggestions","_getViewForChange","addClass","_changeIdToChange","init","createPositionFromPath","checkAttribute","_revisions","get","_changeView","uiElement","toData","isEqual","isAdded","view","vid_start","_fixObsoleteTags","markersStart","dataDowncast","data-revision-","has","ck-editor__editable__overlay","insertions","first","startsWith","collaboration.channelId","sort","_getViewObj","nextPosition","createUIElement","refresh","ck-suggestion-preview-marker","_setDistance","_getDiff","revisionHistory","_removeRevisionMarkers","element:pre","getAttribute","getRoot","endIndex","abs","toViewPosition","markersEnd","isEnabled","dataToMarker","editing","currentChangeNumber","isReady","modelRange","ck-suggestion-marker-","startIndex"];var Yn,$n;Yn=Gn,$n=342,function(e){for(;--e;)Yn.push(Yn.shift())}(++$n);const Kn=function(e,t){return Gn[e-=0]},Xn={c:o.ViewContainerElement,a:o.ViewAttributeElement,e:o.ViewEmptyElement,r:o.ViewRawElement,u:o.ViewUIElement};class Qn extends e.Plugin{static get[Kn("0x75")](){return Kn("0x72")}static get[Kn("0x4b")](){return[r.Users,hn.ContextualBalloon,Qi]}constructor(...e){super(...e),this[Kn("0x12")]=this[Kn("0x14")][Kn("0x26")][Kn("0x89")]("RevisionsRepository"),this[Kn("0xd0")]("activeChange",null),this[Kn("0xd0")](Kn("0xcf"),null),this[Kn("0xd0")]("diff",null),this[Kn("0xd0")]("isReady",!1),this[Kn("0xd0")](Kn("0xac"),!0),this.on("change:isEnabled",((e,t,i)=>{this[Kn("0x1b")]=null,this[Kn("0xcf")]=null,this.editor[Kn("0xae")].view[Kn("0x61")]((e=>{for(const t of this[Kn("0x14")][Kn("0xae")][Kn("0x8f")][Kn("0xc8")].roots)i?e[Kn("0x5c")](Kn("0x96"),t):e[Kn("0x83")](Kn("0x96"),t)}))})),this[Kn("0xfb")](Kn("0xf5")).to(this,Kn("0x1b"),(e=>null!==e)),this[Kn("0xfb")](Kn("0xaf")).to(this,Kn("0xb0"),this,Kn("0xd1"),this,Kn("0x1b"),((e,t,i)=>e&&i?t[Kn("0xc9")].getIndex(i):0)),this[Kn("0xfb")]("numberOfChanges").to(this,Kn("0xb0"),this,Kn("0xd1"),((e,t)=>e?t[Kn("0xc9")][Kn("0xd7")]:0)),this[Kn("0x8a")]=null,this[Kn("0x84")]=new Map,this[Kn("0x10")]=null,this[Kn("0x66")]=this[Kn("0x14")].plugins[Kn("0x89")](hn.ContextualBalloon)}[Kn("0x85")](){const e=this[Kn("0x14")],t=new ir(e,{direction:Kn("0x49")}),i=new ir(e,{direction:Kn("0xe6")});e[Kn("0xc1")][Kn("0xf7")](Kn("0x47"),t),e[Kn("0xc1")].add("showNextChange",i),e[Kn("0xc1")].add("restoreRevision",new tr(e)),this.on(Kn("0xc0"),(()=>{t[Kn("0x9f")](),i[Kn("0x9f")]()})),this[Kn("0x77")](),this[Kn("0xcc")](),e.enableReadOnlyMode(Kn("0xdb"))}async[Kn("0xf9")](e){await this[Kn("0xbb")](e);const t={};for(const i in e[Kn("0x5a")]){const n=this[Kn("0xa4")](JSON[Kn("0xf0")](e[Kn("0x5a")][i][Kn("0x97")])),r=this.editor.editing.view[Kn("0xc8")],s=new o.ViewDocumentFragment(r,n[Kn("0x2a")]((e=>this._getViewObj(e))));this[Kn("0x14")][Kn("0xb9")][Kn("0x39")][Kn("0x3f")](Kn("0xb5")),t[i]=this[Kn("0x14")][Kn("0xb9")][Kn("0x39")][Kn("0x8c")](s),this[Kn("0x14")].data[Kn("0x39")].useFillerType(Kn("0x30"))}return t}[Kn("0xa4")](e){return(e=e.filter((e=>!e[Kn("0x74")]||Kn("0xc5")!==e[Kn("0x74")]&&"revision-end"!==e[Kn("0x74")])))[Kn("0x55")]((e=>{Kn("0x33")!=typeof e&&(e[Kn("0x2b")]=this._removeRevisionMarkers(e[Kn("0x2b")]),e[Kn("0x103")]=e.attributes[Kn("0xf8")]((e=>!e[0].startsWith(Kn("0x94")))))})),e}[Kn("0x6d")](e,t,i=!1){if(!this[Kn("0xac")])return;const n=this[Kn("0xd1")],r=this[Kn("0x12")],o="string"==typeof e?r[Kn("0xda")](e):e,s=Kn("0x33")==typeof t?r[Kn("0xda")](t):t,a=o.id,c=s?s.id:null;if(!i&&this[Kn("0xd1")]&&this[Kn("0xd1")].newRevisionId===a&&this[Kn("0xd1")][Kn("0xe8")]===c)return Promise.resolve();this[Kn("0xb0")]=!1,this[Kn("0xcf")]=null,this.activeChange=null,this[Kn("0xd1")]=new qn(a,c);const u=this[Kn("0xd9")](o,s,!0)[Kn("0x2a")]((e=>this[Kn("0xbb")](e)));return u[Kn("0x56")](new Promise((e=>{setTimeout(e,20)}))),Promise[Kn("0x71")](u)[Kn("0x34")]((()=>{if(!this[Kn("0xac")])return;this[Kn("0x70")]();const e=this[Kn("0xa2")](a,c);this[Kn("0xd1")][Kn("0xfc")](e);for(const e of this[Kn("0xd1")].changes)this[Kn("0x84")][Kn("0xd0")](e.id,e);this[Kn("0x14")][Kn("0xe7")][Kn("0x31")]({isUndoable:!1},(t=>{for(const i of Object[Kn("0xce")](e[Kn("0xe7")])){const n=this[Kn("0x14")].model[Kn("0xc8")][Kn("0xa7")](i);t[Kn("0xcb")](t[Kn("0x27")](n)),t.insert(e[Kn("0xe7")][i],n,0)}})),this[Kn("0xb0")]=!0})).catch((e=>{console[Kn("0xbf")](e),this[Kn("0x70")](),n?this[Kn("0xd1")]=n:this[Kn("0x14")][Kn("0x69")](Kn("0x6a")),this[Kn("0xb0")]=!0}))}[Kn("0xc3")](){this.activeView=null,this[Kn("0x8a")]&&this._changeView[Kn("0xc3")]()}[Kn("0xbe")](e,t){const i=this[Kn("0x12")].createRevision(e);return i.on(Kn("0x68"),((e,n,r)=>t(n,r,i))),this[Kn("0x12")].addRevision(i),i}[Kn("0xbb")](e){if(!e||e.diffData)return Promise.resolve();{const t=this[Kn("0x14")][Kn("0xf2")][Kn("0x89")](Kn("0x9a"));return this.adapter[Kn("0xda")]({channelId:t,revisionId:e.id})[Kn("0x34")]((t=>{e[Kn("0x68")]({diffData:t[Kn("0x5a")]},!0)}))}}_cleanUp(){this[Kn("0x1b")]=null,this[Kn("0xcd")](),this[Kn("0x8a")]&&this._changeView[Kn("0xc3")](),this[Kn("0x8a")]=null,this[Kn("0x84")][Kn("0x7a")]()}[Kn("0x3a")](e){const t=Array[Kn("0xe")](e.markers)[Kn("0xf8")]((([e,t])=>e[Kn("0x99")]("revision:")&&!t.isCollapsed)),i=Array[Kn("0xe")](this.editor[Kn("0xe7")][Kn("0x27")](e)[Kn("0x76")]({singleCharacters:!0}));if(0!=t[Kn("0xd7")])for(const e of i){const[i,n]=t[0],[,r,o]=i[Kn("0x4f")](":");if(n.end[Kn("0x8d")](e[Kn("0x9d")])&&t[Kn("0xdd")](),(e.previousPosition.isEqual(n[Kn("0xba")])||e.previousPosition[Kn("0x4e")](n[Kn("0xba")]))&&("insertion"==r?e[Kn("0x8e")]={userId:o}:Kn("0x7f")==r&&(e[Kn("0x79")]={userId:o})),0==t.length)break}return i}[Kn("0xc2")](e){const t=new Map;for(let i=0;i<e[Kn("0xd7")];i++)Kn("0x7c")===e[i][Kn("0x48")]?(e[i][Kn("0x65")].startIndex=i,e[i][Kn("0x65")].endIndex=i):(Kn("0x7e")===e[i].type?e[i][Kn("0x65")][Kn("0xb3")]=i:"elementEnd"===e[i][Kn("0x48")]&&(e[i].item[Kn("0xa8")]=i),t[Kn("0xd0")](e[i].id,i));for(const i of t[Kn("0xc6")]())Kn("0x7e")===e[i].type?e[i][Kn("0x65")].endIndex=t[Kn("0x89")](e[i][Kn("0x4")]):Kn("0xc4")===e[i][Kn("0x48")]&&(e[i][Kn("0x65")][Kn("0xb3")]=t[Kn("0x89")](e[i].pairId))}[Kn("0xc")](e){for(let t=0;t<e[Kn("0xd7")];t++){if(Kn("0x7e")===e[t][Kn("0x48")])e[t][Kn("0x65")][Kn("0xb3")]=t;else if(Kn("0xc4")===e[t][Kn("0x48")]){e[t].item[Kn("0xa8")]=t;const i=e[t][Kn("0x65")][Kn("0xb3")];e[i][Kn("0x4")]=e[t].id,e[t][Kn("0x4")]=e[i].id}else e[t].item[Kn("0xb3")]=t,e[t][Kn("0x65")].endIndex=t,e[t][Kn("0x4")]=null;e[t][Kn("0x92")]||(e[t][Kn("0x92")]=[],e[t][Kn("0xab")]=[])}}[Kn("0x6f")](e,t){const i=e.filter((e=>!e[Kn("0x8e")]));for(let e=0;e<t[Kn("0xd7")];e++)t[e][Kn("0x8e")]&&(i[e].isAdded=t[e][Kn("0x8e")])}[Kn("0x25")](e){const t=JSON.parse(e),i=this.editor[Kn("0xae")][Kn("0x8f")][Kn("0xc8")],n=new o.ViewDocumentFragment(i,t[Kn("0x2a")]((e=>this[Kn("0x9c")](e))));return this[Kn("0x14")].data[Kn("0xe3")](n)}_getViewObj(e){const t=this[Kn("0x14")][Kn("0xae")][Kn("0x8f")][Kn("0xc8")];if(Kn("0x33")==typeof e)return new o.ViewText(t,e);{const i=e.children[Kn("0x2a")]((e=>this[Kn("0x9c")](e)));return new(Xn[e[Kn("0x48")]]||o.ViewElement)(t,e[Kn("0x74")],e[Kn("0x103")],i)}}_getDiff(e,t=null){const i=this.repository[Kn("0xda")](e),n=t?this.repository.getRevision(t):null,r=this[Kn("0xd9")](i,n),o=r[r[Kn("0xd7")]-1],s=new Map;for(const e of r){e.model={};for(const t of e[Kn("0x1c")])s.set(t.id,t);for(const t of this[Kn("0x14")][Kn("0xe7")][Kn("0xc8")].getRootNames())e[Kn("0x5a")][t]||(e[Kn("0x5a")][t]={insertions:"[]",deletions:"[]"}),e[Kn("0xe7")][t]={insertions:this[Kn("0x25")](e[Kn("0x5a")][t].insertions),deletions:this[Kn("0x25")](e[Kn("0x5a")][t][Kn("0xc7")])}}const a={model:{},changes:[]};for(const e of this[Kn("0x14")][Kn("0xe7")][Kn("0xc8")][Kn("0x57")]()){let t=null,n=0;const c=new Map(Array[Kn("0xe")](i[Kn("0xe7")][e][Kn("0x97")][Kn("0x2f")])[Kn("0xf8")]((([e])=>!e[Kn("0x99")](Kn("0x44")))));let u=0;for(const o of r){const r=this[Kn("0x3a")](o.model[e][Kn("0x97")]);o==i?(t=r,n=t.length,t[Kn("0x55")]((e=>{e.id=u++})),this[Kn("0xc")](t)):this[Kn("0x6f")](t,r);const s=t[Kn("0xf8")]((e=>!e.isAdded)).map((e=>e.id));let a=0;const d=this[Kn("0x3a")](o[Kn("0xe7")][e][Kn("0xc7")]);d.forEach((e=>{e[Kn("0x79")]?e.id=n++:e.id=s[a++]})),this._processTape(d),this._setDistance(t,Kn("0x8e")),this._setDistance(d,"isRemoved"),o==i&&this._markMarkers(t,c),t=this[Kn("0x53")](t,d),this[Kn("0xc2")](t),this[Kn("0xa1")](t,Kn("0x79"))}t=t.filter((e=>!(e.isAdded&&e[Kn("0x79")])));const d=new Map(o[Kn("0xe7")][e].deletions[Kn("0x2f")]),l=new Set(c.keys());for(const e of d[Kn("0xce")]())l[Kn("0x32")](e);this[Kn("0x81")](t,l),this[Kn("0x91")](t),t=this[Kn("0xfe")](t),t=this[Kn("0x64")](t),t=this[Kn("0x36")](t);const{root:x,changes:h}=this._makeModelFromTape(t,s);a[Kn("0xe7")][e]=x,a.changes=a[Kn("0xc9")][Kn("0x101")](h)}return a}_markMarkers(e,t){for(let i=0;i<e.length;i++)for(const[n,r]of t)r.start[Kn("0x8d")](e[i].previousPosition)&&e[i].markersStart[Kn("0x56")](n),r[Kn("0xd3")].isEqual(e[i][Kn("0x9d")])&&e[i][Kn("0xab")][Kn("0x56")](n)}[Kn("0x53")](e,t){let i=[],n=0,r=0;for(;n<e[Kn("0xd7")]||r<t[Kn("0xd7")];){const o=e[n]||{},s=t[r]||{};if(o.id==s.id)n++,r++,i[Kn("0x56")](o);else if(s[Kn("0x79")]&&o.isAdded){const{commonTape:o,iEnd:s,jEnd:a}=this._threeWayMerge(e,n,t,r);i=i.concat(o),n=s,r=a}else s[Kn("0x79")]?(r++,i[Kn("0x56")](s)):(n++,i.push(o))}return i}[Kn("0x81")](e,t){const i=[];for(let o=0;o<e[Kn("0xd7")];o++){for(let r=0;r<e[o][Kn("0x92")].length;r++){const s=e[o][Kn("0x92")][r];if(!t[Kn("0x95")](s))continue;const{group:a,type:c,authorId:u}=n(s);Kn("0xd5")!=a||Kn("0x1")!=c&&Kn("0x7f")!=c||(i.unshift({type:c,name:s,userId:u}),e[o].markersStart[Kn("0x7b")](r,1),r--)}r(e[o]);for(let r=0;r<e[o].markersEnd[Kn("0xd7")];r++){const s=e[o][Kn("0xab")][r];if(!t.has(s))continue;const{group:a,type:c}=n(s);if(Kn("0xd5")!=a||Kn("0x1")!=c&&Kn("0x7f")!=c)continue;e[o].markersEnd[Kn("0x7b")](r,1),r--;const u=i.findIndex((e=>e[Kn("0x74")]==s));u>-1&&i.splice(u,1)}}function n(e){const t=e[Kn("0x4f")](":");return{group:t[0],type:t[1],subType:t[Kn("0xd7")]>=5?t[2]:null,id:t[Kn("0xd7")]<5?t[2]:t[3],authorId:t.length<5?t[3]:t[4],markerCount:6==t[Kn("0xd7")]?t[5]:null}}function r(e){for(let t=0;t<i.length;t++){if(e.isAdded&&"insertion"==i[t][Kn("0x48")])return e[Kn("0x3d")]=i[t],void delete e[Kn("0x8e")];if(!e.isAdded&&!e[Kn("0x79")]&&Kn("0x7f")==i[t][Kn("0x48")])return void(e[Kn("0x5e")]=i[t])}}}[Kn("0xa1")](e,t){let i=0,n=!1;const r=new Map;for(const o of e)o[t]?n&&(i++,n=!1):(i++,n=!0),r.set(o.id,i);for(let i=0;i<e[Kn("0xd7")];i++){if(Kn("0x79")==t&&e[i].isAdded||Kn("0x8e")==t&&e[i][Kn("0x79")])continue;if(Kn("0x7c")==e[i][Kn("0x48")]){e[i][Kn("0x3b")]=0;continue}const n=r[Kn("0x89")](e[i][Kn("0x4")]),o=r[Kn("0x89")](e[i].id);e[i][Kn("0x3b")]=n-o}}_getRevisionsRange(e,t,i=!1){const n=[];let r=this[Kn("0x12")][Kn("0x22")](e),o=this[Kn("0x12")].getIndex(t);for(-1==o&&(o=this.repository[Kn("0x88")][Kn("0xd7")],i=!1);r<o;)n[Kn("0x56")](this[Kn("0x12")][Kn("0xda")](r)),r++;return i&&n[Kn("0x56")](this[Kn("0x12")][Kn("0xda")](r)),n}[Kn("0xe5")](e,t,i,n){const r=this.editor.model.schema;let o=t;for(;e[o]&&e[o][Kn("0x8e")];)o++;let s=n;for(;i[s]&&i[s].isRemoved;)s++;c(e,t,o),c(i,n,s);const a=i[Kn("0xeb")](n,s)[Kn("0x101")](e[Kn("0xeb")](t,o));return a.sort(((e,t)=>e[Kn("0xd2")]!=t.side?e.side-t.side:e.level!=t.level?e[Kn("0x2")]-t[Kn("0x2")]:e[Kn("0x3b")]!=t.distance?t[Kn("0x3b")]-e[Kn("0x3b")]:!!e.isAdded!=!!t.isAdded?-1==e.side||0==e[Kn("0xd2")]?e.isAdded?-1:1:e[Kn("0x8e")]?1:-1:e[Kn("0xb")]-t[Kn("0xb")])),{commonTape:a,iEnd:o,jEnd:s};function c(e,t,i){let n=-1,o=Number[Kn("0xbc")],s=!0;for(let a=t;a<i;a++)if(r[Kn("0xd")](e[a][Kn("0x65")])||(s=!1),e[a][Kn("0x65")][Kn("0xb3")]<t&&(n=a),e[a].item[Kn("0xa8")]>=i){o=a;break}s&&(n=i-1);for(let r=t;r<i;r++)e[r][Kn("0xd2")]=r<=n?-1:r<o?0:1,e[r][Kn("0xb")]=r;let a=0;for(let i=t;i<=n;i++)0==e[i][Kn("0x3b")]?e[i].level=a:(a++,e[i][Kn("0x2")]=a,a++);for(let n=t;n<i;n++)0==e[n].side&&(e[n][Kn("0x2")]=a);a=0;for(let t=i-1;t>=o;t--)0==e[t].distance?e[t][Kn("0x2")]=a:(a--,e[t].level=a,a--)}}_fixObsoleteTags(e){const t=new Map,i=this[Kn("0x14")][Kn("0xe7")][Kn("0x2c")];for(let n=1;n<e[Kn("0xd7")];n++){let r,o,s;const a=e[n],c=e[n-1];if(Kn("0x7c")==a.type)continue;if(a[Kn("0x48")]!=c[Kn("0x48")])continue;if(!i[Kn("0x50")](c[Kn("0x65")])||i.isLimit(c[Kn("0x65")]))continue;if(!i[Kn("0x50")](a[Kn("0x65")])||i[Kn("0x19")](a[Kn("0x65")]))continue;if((e[n][Kn("0x8e")]||e[n][Kn("0x3d")])&&e[n-1][Kn("0x79")])r=e[n],o=e[n-1],s=n-1;else{if(!e[n].isRemoved||!e[n-1][Kn("0x8e")]&&!e[n-1].isAddSuggestion)continue;r=e[n-1],o=e[n],s=n}const u=r[Kn("0x2")]==o[Kn("0x2")],d=Math[Kn("0xa9")](r.level)<Math.abs(o[Kn("0x2")])&&0==o[Kn("0x3b")];(u||d)&&(t[Kn("0xd0")](o.id,r.id),e[Kn("0x7b")](s,1),n--,r[Kn("0x8e")]=!1)}for(let i=0;i<e[Kn("0xd7")];i++)t[Kn("0x95")](e[i].pairId)&&(e[i][Kn("0x4")]=t.get(e[i].pairId))}[Kn("0xfe")](e){const t=new Set(e.map((e=>e.id)));for(let i=0;i<e.length;i++)t[Kn("0x95")](e[i][Kn("0x4")])||0==e[i][Kn("0x3b")]||(e[i].isIncorrect=!0);return e.filter((e=>!e[Kn("0xe4")]))}[Kn("0x64")](e){const t=new Set;for(let i=0;i<e[Kn("0xd7")];i++){if(t[Kn("0x95")](e[i].id)&&e[i][Kn("0x79")]&&(e[i].isIncorrect=!0),e[i][Kn("0xe4")])continue;if(0==e[i][Kn("0x3b")])continue;if(Kn("0x7e")!=e[i].type)continue;if(null==e[i][Kn("0x4")])continue;let n=i+1,r=0;for(;e[n].id!=e[i][Kn("0x4")];)"elementStart"==e[n].type?r++:Kn("0xc4")==e[n][Kn("0x48")]&&r--,n++;if(0!=r)if(e[i].isRemoved)e[i][Kn("0xe4")]=!0;else for(;n!=i;)e[n][Kn("0x79")]&&0!=e[n].distance&&(e[n][Kn("0xe4")]=!0,t[Kn("0xf7")](e[n].pairId)),n--}return e[Kn("0xf8")]((e=>!e[Kn("0xe4")]))}[Kn("0x36")](e){const t=this[Kn("0x14")][Kn("0xe7")][Kn("0x2c")];for(let i=0;i<e[Kn("0xd7")];i++){if(!(e[i][Kn("0x8e")]||e[i][Kn("0x3d")]||e[i].isRemoved||e[i][Kn("0x5e")]))continue;if(0==e[i][Kn("0x3b")])continue;const n=e[i][Kn("0x65")];t[Kn("0x50")](n)||t[Kn("0x19")](n)||(e[i][Kn("0x8e")]&&delete e[i].isAdded,e[i].isAddSuggestion&&delete e[i][Kn("0x3d")],e[i].isRemoveSuggestion&&delete e[i][Kn("0x5e")],e[i][Kn("0x79")]&&(e[i].isIncorrect=!0))}return e[Kn("0xf8")]((e=>!e[Kn("0xe4")]))}[Kn("0x37")](e,t){const i=new o.DocumentFragment,n=[],r=new Map,s=this[Kn("0x14")][Kn("0xe7")],a=s[Kn("0x2c")],c=[i],u={},d={isAdded:[],isRemoved:[],isAddSuggestion:[],isRemoveSuggestion:[]};let l=null;const x=[0];for(let t=0;t<e[Kn("0xd7")];t++){let n,a;if(Kn("0x7e")===e[t][Kn("0x48")]){n=s[Kn("0x86")](i,x);const r=new o.Element(e[t][Kn("0x65")][Kn("0x74")],e[t][Kn("0x65")].getAttributes());c[0]._appendChild(r),x.push(0),c.unshift(r),a=s[Kn("0x86")](i,x),l=null}else if("elementEnd"===e[t][Kn("0x48")])c[Kn("0xdd")](),n=s[Kn("0x86")](i,x),x[Kn("0x38")](),x[x[Kn("0xd7")]-1]++,a=s[Kn("0x86")](i,x),l=null;else{if(n=s[Kn("0x86")](i,x),l&&v(l,e[t][Kn("0x65")]))l._data+=e[t][Kn("0x65")][Kn("0xb9")];else{const i=new o.Text(e[t][Kn("0x65")].data,e[t][Kn("0x65")][Kn("0x3c")]());c[0][Kn("0xfd")](i),l=i}x[x[Kn("0xd7")]-1]+=e[t][Kn("0x65")][Kn("0x1a")],a=s.createPositionFromPath(i,x)}for(const i of e[t].markersStart)r[Kn("0xd0")](i,{start:n,end:null});h(Kn("0x5e"),t,n,a),h("isAddSuggestion",t,n,a),h(Kn("0x79"),t,n,a),h(Kn("0x8e"),t,n,a);for(const i of e[t][Kn("0xab")])r[Kn("0x89")](i)[Kn("0xd3")]=a}for(const[e,t]of r){const n=this[Kn("0x14")][Kn("0xe7")].createRange(t[Kn("0xba")],t[Kn("0xd3")]);i[Kn("0x2f")].set(e,n)}return n[Kn("0x9b")](((e,t)=>{const n=i[Kn("0x2f")][Kn("0x89")]("revision:"+e.id),r=i[Kn("0x2f")][Kn("0x89")](Kn("0x44")+t.id);return n[Kn("0xba")][Kn("0x67")](r[Kn("0xba")])?-1:n[Kn("0xba")].isAfter(r[Kn("0xba")])?1:n[Kn("0xd3")].isBefore(r[Kn("0xd3")])?-1:n[Kn("0xd3")][Kn("0x4e")](r[Kn("0xd3")])?1:Kn("0xf7")===e[Kn("0x48")]?-1:1})),{root:i,changes:n};function h(t,i,n,r){const o=!!e[i][t],s=o?e[i][t][Kn("0x8")]:null,c=i===e.length-1,l=d[t][0],x=a.isObject(e[i].item);!u[t]&&o?u[t]={start:n,tapeItem:e[i],userId:s,type:t}:u[t]&&!o?(u[t][Kn("0xd3")]=n,f(u[t]),u[t]=null):u[t]&&o&&u[t].userId!==s&&(u[t].end=n,l&&l[Kn("0x8")]===u[t][Kn("0x8")]||f(u[t]),u[t]={start:n,tapeItem:e[i],userId:s,type:t}),u[t]&&x&&(Kn("0x7e")!==e[i][Kn("0x48")]||l&&l[Kn("0x8")]===s||d[t].unshift({userId:s,object:e[i][Kn("0x65")],change:u[t]}),Kn("0xc4")===e[i][Kn("0x48")]&&l&&l.object===e[i][Kn("0x65")]&&(d[t][Kn("0xdd")](),u[t]=l[Kn("0x61")])),u[t]&&c&&(u[t].end=r,f(u[t]),u[t]=null)}function f({start:e,end:r,tapeItem:o,userId:a,type:c}){const u=o[Kn("0x65")],d=s[Kn("0x2c")].isBlock(u)&&!s[Kn("0x2c")][Kn("0x19")](u),l=e[Kn("0x5b")]==r.parent&&r[Kn("0xb7")];if(d&&l)return;const x=s[Kn("0xe2")](e,r),h=t[Kn("0x89")](a),f=new zn({author:h,type:Kn("0x8e")==c||"isAddSuggestion"==c?Kn("0xf7"):Kn("0xcb"),data:{isSuggestion:"isAddSuggestion"==c||Kn("0x5e")==c},createdAt:new Date});n[Kn("0x56")](f),i[Kn("0x2f")][Kn("0xd0")](Kn("0x44")+f.id,x)}function v(e,t){const i=e[Kn("0x3c")](),n=t[Kn("0x3c")]();for(const e of i){if(e[1]!==t[Kn("0xa6")](e[0]))return!1;n[Kn("0xd4")]()}return n[Kn("0xd4")]()[Kn("0x3")]}}[Kn("0x77")](){this[Kn("0x14")].conversion[Kn("0x58")](Kn("0x7")).dataToMarker({view:Kn("0x13")}),this.editor[Kn("0x5f")][Kn("0x58")](Kn("0x3e"))[Kn("0xf4")]({model:"revision",view:e=>{const t=e.markerName[Kn("0x4f")](":")[1],i=this[Kn("0x4a")](t);if(!i)return null;const n=Kn("0xf7")==i.type?Kn("0x1"):Kn("0x7f"),r=["ck-suggestion-marker",Kn("0xb2")+n];return i.data[Kn("0x63")]&&r[Kn("0x56")]("ck-suggestion-marker-"+n+"-new"),this[Kn("0x1b")]==i&&r[Kn("0x56")](Kn("0x20")),{classes:r,attributes:{"data-change-id":t}}}}),this.editor[Kn("0x5f")][Kn("0x58")](Kn("0x7"))[Kn("0xf7")]((e=>{e.on(Kn("0xa5"),((e,t,i)=>{const n=t.viewItem[Kn("0x21")](0);if(!n||!n.is(Kn("0x100"),Kn("0x1e")))return;if(!i.consumable[Kn("0x54")](n,{attributes:["vid_start","vid_end"]}))return;const r=t.modelRange[Kn("0xba")][Kn("0x5b")];i[Kn("0xa")][Kn("0xe9")](Kn("0x90"),n[Kn("0xa6")]("vid_start"),r),i[Kn("0xa")].setAttribute(Kn("0xca"),n.getAttribute(Kn("0xca")),r)}),{priority:Kn("0xdf")})})),this.editor[Kn("0x5f")][Kn("0x58")](Kn("0x7"))[Kn("0xf7")]((e=>{e.on(Kn("0x100"),((e,t,i)=>{if(!i.consumable[Kn("0x54")](t.viewItem,{attributes:[Kn("0x90"),"vid_end"]}))return;if(t[Kn("0xb1")].isCollapsed)return;const n=t.modelRange[Kn("0xba")][Kn("0x5b")];n[Kn("0x6")](Kn("0x90"))||n[Kn("0x6")]("vid")||(i[Kn("0xa")][Kn("0xe9")](Kn("0x90"),t[Kn("0xea")][Kn("0xa6")](Kn("0x90")),n),i.writer[Kn("0xe9")](Kn("0xca"),t.viewItem[Kn("0xa6")](Kn("0xca")),n))}),{priority:Kn("0xdf")})})),this[Kn("0x14")][Kn("0x5f")][Kn("0x58")](Kn("0x7"))[Kn("0x43")]({view:{name:Kn("0x35"),attributes:{vid:!0}},model:{key:Kn("0x102"),value:e=>e[Kn("0xa6")]("vid")}}),this[Kn("0x14")][Kn("0xe7")][Kn("0x2c")].on(Kn("0x87"),((e,[,t])=>{[Kn("0x90"),Kn("0xca"),Kn("0x102")].includes(t)&&(e[Kn("0x6e")]=!0,e[Kn("0xb8")]())}),{priority:"highest"}),this[Kn("0x14")][Kn("0x5f")][Kn("0x58")]("dataDowncast")[Kn("0xf7")]((e=>{e.on(Kn("0x52"),((e,t,i)=>{if(" "!=t.item[Kn("0xb9")]||t[Kn("0x65")].parent[Kn("0xf6")]>1)return;if(!i[Kn("0xb6")][Kn("0x54")](t[Kn("0x65")],e[Kn("0x74")]))return;const n=i[Kn("0xa")],r=i[Kn("0xf3")].toViewRange(t[Kn("0xf1")]);n.wrap(r,n[Kn("0x24")](Kn("0x35")))}))})),this[Kn("0x14")][Kn("0x5f")][Kn("0x58")]("dataDowncast").markerToData({model:"revision"}),this[Kn("0x14")][Kn("0xae")][Kn("0x73")].on("addMarker:revision",function(e){const t=e.plugins[Kn("0x89")]("RevisionViewer");return(i,n,r)=>{const o=n[Kn("0xff")][Kn("0x4f")](":")[1],s=t[Kn("0x4a")](o);if(!s)return null;const a=Kn("0xf7")==s.type?"split":"merge";if(!r[Kn("0xb6")][Kn("0x51")](n[Kn("0x15")],i[Kn("0x74")]))return;const c=n[Kn("0x15")][Kn("0x76")](),u=n[Kn("0x15")][Kn("0xba")],d=e[Kn("0xe7")][Kn("0x2c")];let l=null,x=null,h=!1,f=!1;for(const e of c){const t=e[Kn("0x65")];h=h||d[Kn("0xef")](t);const i=r.mapper[Kn("0x62")](t);if(i&&i.getCustomProperty("addHighlight"))return;Kn("0xc4")==e[Kn("0x48")]&&d[Kn("0x50")](t)&&!d[Kn("0x19")](t)&&(t.nextSibling||u[Kn("0xec")]?l&&l.parent==t||(l=t,v(e[Kn("0x42")]),f=!0):x=x||e[Kn("0x42")])}function v(e){const i=r.writer[Kn("0x9e")](Kn("0x35"),{class:"ck-suggestion-marker-"+a}),o=r.mapper[Kn("0xaa")](e);s[Kn("0xb9")][Kn("0x63")]&&r[Kn("0xa")][Kn("0x83")](Kn("0xb2")+a+Kn("0xdc"),i),t[Kn("0x1b")]==s&&r[Kn("0xa")][Kn("0x83")](Kn("0x20"),i),r.writer[Kn("0x104")](o,i),r[Kn("0xf3")][Kn("0x4c")](i,n[Kn("0xff")])}h||f||!x||v(x)}}(this[Kn("0x14")]),{priority:Kn("0x1d")}),this[Kn("0x14")].editing[Kn("0x73")].on(Kn("0x23"),((e,t,i)=>{const n=i[Kn("0xf3")][Kn("0x60")](t[Kn("0xff")]);if(n)for(const e of n)(e[Kn("0x5d")](Kn("0x2e"))||e.hasClass(Kn("0x29")))&&(i[Kn("0xf3")][Kn("0x7d")](e,t.markerName),i[Kn("0xa")][Kn("0xcb")](e))}),{priority:"high"}),this.editor.editing.downcastDispatcher.on(Kn("0x28"),((e,t,i)=>{const n=t[Kn("0xff")][Kn("0x4f")](":")[1],r=this[Kn("0x4a")](n);if(!r)return null;const o=Kn("0xf7")==r[Kn("0x48")]?Kn("0x4f"):Kn("0xed");if(i.consumable.test(t[Kn("0x15")],e[Kn("0x74")]))for(const e of t[Kn("0x15")][Kn("0xe1")]()){if(!e.is("element","softBreak"))continue;const n=i[Kn("0xa")][Kn("0x9e")](Kn("0x35"),{class:Kn("0xb2")+o}),s=i[Kn("0xf3")][Kn("0xaa")](this[Kn("0x14")].model.createPositionBefore(e));r[Kn("0xb9")][Kn("0x63")]&&i[Kn("0xa")][Kn("0x83")](Kn("0xb2")+o+Kn("0xdc"),n),this[Kn("0x1b")]==r&&i[Kn("0xa")][Kn("0x83")]("ck-suggestion-marker--active",n),i[Kn("0xa")][Kn("0x104")](s,n),i[Kn("0xf3")].bindElementToMarker(n,t.markerName)}}),{priority:Kn("0x1d")}),this[Kn("0x14")][Kn("0x5f")][Kn("0x58")](Kn("0x7"))[Kn("0xad")]({view:Kn("0xd6"),model:e=>"revision-comment:"+e,converterPriority:"highest"}),this[Kn("0x14")][Kn("0x5f")][Kn("0x58")](Kn("0x7"))[Kn("0xad")]({view:"suggestion",model:e=>"revision-suggestion:"+e,converterPriority:"highest"}),this[Kn("0x14")][Kn("0x5f")][Kn("0x58")](Kn("0x93"))[Kn("0x41")]({model:Kn("0xd5"),view:e=>"suggestion:"+e,converterPriority:"highest"}),this[Kn("0x14")][Kn("0x5f")][Kn("0x58")]("editingDowncast")[Kn("0xf4")]({model:Kn("0xd5"),view:e=>{const t=e[Kn("0xff")][Kn("0x4f")](":")[1];return Kn("0x1")!=t&&Kn("0x7f")!=t?null:{classes:[Kn("0xa0"),"ck-suggestion-preview-marker-"+t]}}}),this.editor[Kn("0xae")][Kn("0x73")].on(Kn("0x6c"),er(this[Kn("0x14")],Kn("0xed")),{priority:Kn("0x1d")}),this[Kn("0x14")][Kn("0xae")].downcastDispatcher.on("addMarker:revision-suggestion:insertion",er(this[Kn("0x14")],Kn("0x4f")),{priority:Kn("0x1d")}),this.editor[Kn("0xae")][Kn("0x73")].on(Kn("0xfa"),((e,t,i)=>{const n=i[Kn("0xf3")][Kn("0x60")](t[Kn("0xff")]);if(n)for(const e of n)e.is(Kn("0x8b"))&&(i[Kn("0xf3")][Kn("0x7d")](e,t[Kn("0xff")]),i.writer[Kn("0xcb")](e))}),{priority:Kn("0x1d")})}[Kn("0x4a")](e){return this[Kn("0x84")][Kn("0x89")](e)}_getViewForChange(e){this._changeView&&this[Kn("0x8a")][Kn("0xc3")](),this._changeView=new Cn(this[Kn("0x14")].locale,e);const t=this[Kn("0x14")][Kn("0xe7")][Kn("0x2f")][Kn("0x89")](Kn("0x44")+e.id);return this[Kn("0x8a")][Kn("0x2d")]=()=>(0,r.getMarkerDomElement)(this.editor.editing,t),this._changeView}_initInteractions(){this[Kn("0x14")][Kn("0xe7")][Kn("0xc8")].selection[Kn("0x17")]("revision"),this.on("change:activeView",((e,t,i,n)=>{n&&this[Kn("0x66")][Kn("0xcb")](n),i&&(this[Kn("0x66")][Kn("0xf7")]({view:i,stackId:Kn("0xb4"),position:{target:i[Kn("0x2d")]}}),this[Kn("0x66")][Kn("0xf")](Kn("0xb4")))})),this.on(Kn("0x16"),((e,t,i,n)=>{this[Kn("0xcf")]=i?this._getViewForChange(i):null,this.editor[Kn("0xe7")][Kn("0x61")]((()=>{const e=this[Kn("0x14")].editing;n&&e[Kn("0x40")](Kn("0x44")+n.id),i&&e[Kn("0x40")]("revision:"+i.id)}))})),this.listenTo(this[Kn("0x14")][Kn("0xae")][Kn("0x8f")][Kn("0xc8")],Kn("0x80"),((e,t)=>{if(this.activeChange)return;const i=this[Kn("0xd8")](t[Kn("0x78")]),n=this._changeIdToChange[Kn("0x89")](i);this[Kn("0xcf")]=n?this[Kn("0x82")](n):null})),this[Kn("0xde")](this[Kn("0x14")].editing[Kn("0x8f")].document,Kn("0x11"),((e,t)=>{const i=this[Kn("0xd8")](t[Kn("0x78")]),n=this[Kn("0x84")].get(i);this.activeChange=n||null}))}_findChangeIdFromDomTarget(e){do{const t=e.getAttribute(Kn("0xe0"));if(t)return t;e=e.parent}while(e);return null}[Kn("0xcd")](){this[Kn("0x14")][Kn("0xe7")][Kn("0x61")]((e=>{for(const t of this[Kn("0x14")].model[Kn("0x2f")])e.removeMarker(t)}))}}function er(e,t){return(i,n,r)=>{if(!r[Kn("0xb6")][Kn("0x51")](n[Kn("0x15")],i[Kn("0x74")]))return;const o=n[Kn("0x15")][Kn("0x76")](),s=n.markerRange.start,a=e[Kn("0xe7")].schema;let c=null,u=null,d=!1,l=!1;for(const e of o){const t=e[Kn("0x65")];d=d||a.isContent(t);const i=r[Kn("0xf3")][Kn("0x62")](t);if(i&&i.getCustomProperty(Kn("0x18")))return;Kn("0xc4")==e[Kn("0x48")]&&a[Kn("0x50")](t)&&!a[Kn("0x19")](t)&&(t[Kn("0x0")]||s[Kn("0xec")]?c&&c[Kn("0x1f")]==t||(c=t,x(e[Kn("0x42")]),l=!0):u=u||e.previousPosition)}function x(e){const i=r[Kn("0xf3")][Kn("0xaa")](e),o=r[Kn("0xa")][Kn("0x9e")](Kn("0x35"),{class:Kn("0x59")+t});r.writer[Kn("0x104")](i,o),r[Kn("0xf3")][Kn("0x4c")](o,n[Kn("0xff")])}d||l||!u||x(u)}}(0,t.mix)(Qn,t.ObservableMixin);class tr extends e.Command{constructor(e){super(e);const t=e[Kn("0x26")].get(Qn);this[Kn("0x4d")](e,Kn("0x46")),this[Kn("0xee")]("readOnlyMode"),this[Kn("0xde")](t,Kn("0x6b"),(()=>this[Kn("0x9f")]())),this.listenTo(t,Kn("0x45"),(()=>this.refresh()))}execute(){const e=this.editor,t=e[Kn("0x26")][Kn("0x89")](Qn),i=t.isReady?t[Kn("0xd1")][Kn("0xbd")]:null;e[Kn("0xf2")].get(Kn("0xa3")).restoreRevisionCallback(i)}[Kn("0x9f")](){const{isReady:e,isEnabled:t}=this[Kn("0x14")][Kn("0x26")][Kn("0x89")](Qn);this[Kn("0xac")]=e&&t}}class ir extends e.Command{constructor(e,{direction:t}){super(e);const i=e[Kn("0x26")][Kn("0x89")](Qn);this[Kn("0x4d")](e,Kn("0x46")),this[Kn("0xee")](Kn("0x9")),this[Kn("0x5")]=Kn("0xe6")===t?1:-1,this[Kn("0xde")](i,Kn("0x6b"),(()=>this[Kn("0x9f")]())),this.listenTo(i,Kn("0x45"),(()=>this[Kn("0x9f")]()))}execute(){const e=this[Kn("0x14")],i=e[Kn("0x26")].get(Qn),{isNavigationMode:n,currentChangeNumber:o}=i;i[Kn("0x1b")]=n?i[Kn("0xd1")][Kn("0xc9")][Kn("0x89")](o+this[Kn("0x5")]):i[Kn("0xd1")][Kn("0xc9")][Kn("0x98")];const s=e[Kn("0xe7")][Kn("0x2f")][Kn("0x89")](Kn("0x44")+i[Kn("0x1b")].id),a=(0,r.getMarkerDomElement)(e[Kn("0xae")],s);(0,t.scrollViewportToShowTarget)({target:a,viewportOffset:40})}[Kn("0x9f")](){const{isNavigationMode:e,currentChangeNumber:t,numberOfChanges:i,isReady:n,isEnabled:r}=this[Kn("0x14")][Kn("0x26")][Kn("0x89")](Qn);this[Kn("0xac")]=!!(r&&n&&i)&&(!e||(1===this[Kn("0x5")]?t<i-1:t>0))}}var nr=i(164),rr={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};vn()(nr.Z,rr);nr.Z.locals;const or=["span","execute","_statusText","fire","_isStatusLabelVisible","Total","ck-revision-history-ui","bind","ck-revision-history-ui__changes-navigation__navigation","isNavigationMode","Show previous change","EDIT_X_OF_Y_REVISIONS","numberOfChanges","forward","NUMBER_OF_CHANGES","ck-hidden","set","No changes","isBackwardNavigationEnabled","isEnabled","setTemplate","isReady","ck-revision-history-ui__changes-navigation__wrapper","bindTemplate","div"];var sr,ar;sr=or,ar=461,function(e){for(;--e;)sr.push(sr.shift())}(++ar);const cr=function(e,t){return or[e-=0]};class ur extends hn.View{constructor(e){super(e);const t=this[cr("0xc")],i=new hn.ButtonView(e),n=new hn.ButtonView(e);this[cr("0x5")]("isNavigationMode",!1),this[cr("0x5")](cr("0xa"),!1),this[cr("0x5")]("currentChangeNumber",0),this.set(cr("0x1"),0),this[cr("0x5")]("isForwardNavigationEnabled",!1),this[cr("0x5")](cr("0x7"),!1),this.bind(cr("0x12")).to(this,cr("0xa"),this,cr("0x1"),((e,t)=>e&&t>0)),this[cr("0x15")]("_statusText").to(this,"isReady",this,"currentChangeNumber",this,cr("0x1"),this,cr("0x17"),((t,i,n,r)=>{if(!t)return en(e,"Loading...");if(!n)return en(e,cr("0x6"));const o=en(e,cr("0x3"),n);return r?en(e,"X_OF_Y_CHANGES",[i+1,n]):o})),i.set({label:en(e,cr("0x18")),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[cr("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[cr("0x15")]("isEnabled").to(this,"isBackwardNavigationEnabled"),n[cr("0x15")](cr("0x8")).to(this,"isForwardNavigationEnabled"),i.on(cr("0xf"),(()=>this.fire(cr("0xf"),"backward"))),n.on(cr("0xf"),(()=>this[cr("0x11")]("execute",cr("0x2")))),this[cr("0x9")]({tag:cr("0xd"),attributes:{class:["ck",cr("0x14"),"ck-revision-history-ui__changes-navigation"]},children:[{tag:cr("0xe"),attributes:{class:[cr("0xb")]},children:[{tag:cr("0xe"),attributes:{class:["ck-revision-history-ui__changes-navigation__label",t.if(cr("0x12"),cr("0x4"),(e=>!e))]},children:[{text:t.to(cr("0x17"),(t=>t?en(e,cr("0x0"))+": ":en(e,cr("0x13"))+": "))}]},{text:t.to(cr("0x10"))}]},new hn.ToolbarSeparatorView,{tag:cr("0xd"),attributes:{class:[cr("0x16")]},children:[i,n]}]})}}var dr=i(368),lr={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};vn()(dr.Z,lr);dr.Z.locals;const xr=["editor","removeClass","editing","view","roots","ck-editor__editable__loading-overlay","RevisionViewerLoadingOverlay","document","show","change","pluginName"];var hr,fr;hr=xr,fr=287,function(e){for(;--e;)hr.push(hr.shift())}(++fr);const vr=function(e,t){return xr[e-=0]};class mr extends e.Plugin{static get[vr("0x9")](){return vr("0x5")}[vr("0x7")](){const e=this.editor[vr("0x1")][vr("0x2")];e.change((t=>{for(const i of e.document.roots)t.addClass(vr("0x4"),i)}))}hide(){const e=this[vr("0xa")].editing.view;e[vr("0x8")]((t=>{for(const i of e[vr("0x6")][vr("0x3")])t[vr("0x0")](vr("0x4"),i)}))}}const gr=["get","ck-revision-history-ui__back-to-editing","add","set","execute","restoreRevision","RevisionViewerUI","isReady","listenTo","commands","changesNavigation","componentFactory","isBackwardNavigationEnabled","showPreviousChange","requires","show","change:isReady","isNavigationMode","revisionHistory","hide","forward","isEnabled","plugins","Restore this revision","currentChangeNumber","Back to editing","bind","showNextChange","init"];var pr,yr;pr=gr,yr=113,function(e){for(;--e;)pr.push(pr.shift())}(++yr);const br=function(e,t){return gr[e-=0]};class kr extends e.Plugin{static get pluginName(){return br("0x9")}static get[br("0x11")](){return[Qn,mr]}[br("0x2")](){const e=this.editor,t=e[br("0x19")][br("0x3")](Qn),i=e[br("0x19")][br("0x3")](mr);e.ui[br("0xe")].add("exitToEditing",(t=>{const i=new hn.ButtonView(t);return i[br("0x6")]({label:en(t,br("0x1c")),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:br("0x4")}),this[br("0xb")](i,br("0x7"),(()=>{e.config[br("0x3")](br("0x15")).closeRevisionViewerCallback()})),i})),e.ui.componentFactory[br("0x5")](br("0x8"),(t=>{const i=new hn.ButtonView(t);return i[br("0x6")]({label:en(t,br("0x1a")),withText:!0,tooltip:!0}),i[br("0x0")](br("0x18")).to(e.commands[br("0x3")](br("0x8"))),this.listenTo(i,"execute",(()=>e.execute(br("0x8")))),i})),e.ui[br("0xe")][br("0x5")](br("0xd"),(i=>{const n=new ur(i),r=e[br("0xc")][br("0x3")](br("0x10")),o=e[br("0xc")].get(br("0x1"));return n[br("0x0")](br("0xf")).to(r,"isEnabled"),n.bind("isForwardNavigationEnabled").to(o,br("0x18")),n.bind(br("0xa"),br("0x1b"),"numberOfChanges",br("0x14")).to(t),this[br("0xb")](n,br("0x7"),((t,i)=>{e[br("0x7")](br("0x17")===i?br("0x1"):br("0x10"))})),n})),i[br("0x12")](),t.on(br("0x13"),((e,t,n)=>{n?i[br("0x16")]():i.show()}))}}var _r=i(957),wr={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};vn()(_r.Z,wr);_r.Z.locals;var Sr,Tr,Or=["set","span"];Sr=Or,Tr=249,function(e){for(;--e;)Sr.push(Sr.shift())}(++Tr);var Ir=function(e,t){return Or[e-=0]};class Rr extends hn.LabeledFieldView{constructor(e,...t){super(e,...t),this[Ir("0x1")]({label:en(e,"Revision name")}),this.extendTemplate({tag:Ir("0x0"),attributes:{class:["ck-revision-history-sidebar__revision-name"]}})}}var Nr=i(522),Vr={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};vn()(Nr.Z,Vr);Nr.Z.locals;const Er=["set","ck-revision-history-sidebar__revision-author__name","setTemplate","name","ck-revision-history-sidebar__revision-author_creator","Revision author","0 0 11 10","span"];var Mr,Ar;Mr=Er,Ar=436,function(e){for(;--e;)Mr.push(Mr.shift())}(++Ar);const Dr=function(e,t){return Er[e-=0]};class Cr extends hn.View{constructor(e,t,i){super(e);const n=new hn.IconView(e);n[Dr("0x4")]({content:'<svg viewBox="0 0 11 10" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M5.5 5C8.538 5 11 7.015 11 9.5c0 .17-.011.336-.034.5H.034A3.732 3.732 0 0 1 0 9.5C0 7.015 2.462 5 5.5 5zm0-5a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5z" /></svg>\n',viewBox:Dr("0x2")});const r=["ck","ck-revision-history-sidebar__revision-author"];i&&r.push(Dr("0x0"));const o=[{tag:Dr("0x3"),attributes:{class:["ck",Dr("0x5")],title:en(e,i?"Revision creator":Dr("0x1"))},children:[n,t[Dr("0x7")]]}];this[Dr("0x6")]({tag:"li",attributes:{class:r},children:o})}}var jr,Fr,Lr=["toLocaleTimeString","long","numeric"];jr=Lr,Fr=489,function(e){for(;--e;)jr.push(jr.shift())}(++Fr);var Pr=function(e,t){return Lr[e-=0]};var zr=i(834),Zr={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};vn()(zr.Z,Zr);zr.Z.locals;const Ur=["ck-on","panelPosition","model","Show more items","first","locale","listenTo","button","isOpen","class","stopPropagation","bindTemplate","map","children","find","items","bind","function","action","isVisible","add","Name this revision","buttonView","isEnabled","_action","name","source","isReady","isActionsDropdownOpen","ck-revision-history-sidebar__revision__actions"];var Hr,Br;Hr=Ur,Br=129,function(e){for(;--e;)Hr.push(Hr.shift())}(++Br);const qr=function(e,t){return Ur[e-=0]};var Wr=i(525),Jr={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};vn()(Wr.Z,Jr);Wr.Z.locals;const Gr=["value","ck-reset","fieldView","set","deselect","revisionNameView","authors","ck-revision-history-sidebar__revision","uiLanguage","change","isReady","highlight","setTemplate","ck-revision-history-sidebar__revision-wrapper_confirmation_visible","length","isActionsDropdownOpen","span","ck-disabled","name","fire","ck-revision-history-sidebar__revision_highlighted","bind","render","ck-revision-history-sidebar__revision-wrapper","ck-revision-history-sidebar__revision__controls-wrapper","revisionActionsView","map",".ck-thread__remove-confirm","srcElement","closest","isHighlighted","isConfirm","div","unshift","creator","isSelected","createdAt","unhighlight","_createdAtFormatted","setName","bindTemplate","ck-revision-history-sidebar__revision-authors","filter","isEnabled","ck-revision-history-sidebar__revision_selected","ck-revision-history-sidebar__revision__date","select","ck-revision-history-sidebar__actions_dropdown_open"];var Yr,$r;Yr=Gr,$r=188,function(e){for(;--e;)Yr.push(Yr.shift())}(++$r);const Kr=function(e,t){return Gr[e-=0]};class Xr extends hn.View{constructor(e,i,n){super(e);const r=this[Kr("0x2c")],o=function(e,t){const i=Array.from(t[Kr("0xa")])[Kr("0x2e")]((e=>e!=t[Kr("0x26")]));return t[Kr("0x26")]&&i[Kr("0x25")](t[Kr("0x26")]),i[Kr("0x1e")]((i=>new Cr(e,i,i==t[Kr("0x26")])))}(e,i);this._revision=i,this.id=i.id,this[Kr("0x19")](Kr("0x16"),Kr("0x28")).to(i),this[Kr("0x7")](Kr("0x27"),!1),this[Kr("0x7")]("isHighlighted",!1),this[Kr("0x7")](Kr("0x13"),!1),this[Kr("0x7")](Kr("0xe"),!1),this.bind("_createdAtFormatted").to(this,"createdAt",(t=>{return t?(i=e[Kr("0xc")],(n=t).toLocaleDateString(i,{month:Pr("0x1"),day:Pr("0x2")})+", "+n[Pr("0x0")](i,{hour:Pr("0x2"),minute:"numeric"})):null;var i,n})),this[Kr("0x7")](Kr("0x2f"),!1),this[Kr("0x9")]=new Rr(e,hn.createLabeledInputText),this[Kr("0x9")].fieldView.extendTemplate({attributes:{maxlength:"220"}}),this.revisionNameView[Kr("0x6")][Kr("0x19")](Kr("0x4"),"placeholder").to(this,Kr("0x16"),Kr("0x2a")),this[Kr("0x9")][Kr("0x19")]("isEnabled").to(this,Kr("0x27"),this,Kr("0x2f"),((e,t)=>e&&t)),this[Kr("0x1d")]=n&&n[Kr("0x12")]?function(e,i){const n=e[qr("0x2")],r=e[qr("0x1a")],o=(0,hn.createDropdown)(r);o[qr("0x16")]="sw";const s=function(e,i){const n=function(e,t){const i=e[qr("0x1a")],n={"Compare against selected":en(i,"Compare against selected"),"Name this revision":en(i,qr("0xc")),"Restore this revision":en(i,"Restore this revision")};return t[qr("0x3")]((e=>{const t=n[e[qr("0x10")]];return t&&t!==e[qr("0x10")]&&(e.name=t),e}))}(e,i),r=new t.Collection;for(const t of n){const i={type:qr("0x1c"),model:new hn.Model({label:t[qr("0x10")],class:t[qr("0x0")],withText:!0,_action:t[qr("0x9")]})};i[qr("0x17")][qr("0x7")](qr("0xe")).to(e,qr("0x13"),(i=>"function"!=typeof t[qr("0xe")]||!i||t[qr("0xe")](e))),r[qr("0xb")](i)}return r}(e,i);return e[qr("0x7")](qr("0x13")).to(o,qr("0x1d")),o[qr("0xd")].set({label:en(r,qr("0x18")),tooltip:!0,tooltipPosition:"sw",icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="9.5" cy="4.5" r="1.5"/><circle cx="9.5" cy="10.5" r="1.5"/><circle cx="9.5" cy="16.5" r="1.5"/></svg>'}),o.extendTemplate({attributes:{class:[qr("0x14"),n.if(qr("0x13"),qr("0x15"))]},on:{click:n.to((e=>e[qr("0x1")]()))}}),o.on("execute",(t=>{e[qr("0x12")]&&qr("0x8")==typeof t[qr("0x11")][qr("0xf")]&&t.source[qr("0xf")](e)})),(0,hn.addListToDropdown)(o,s),o[qr("0x1b")](e,"change:isActionsDropdownOpen",((t,n,r)=>{if(r)for(const t of o.listView[qr("0x6")]){const n=t[qr("0x4")][qr("0x19")],r=i[qr("0x5")]((e=>e[qr("0x9")]===n[qr("0xf")]))[qr("0xa")];t.isVisible=void 0===r||r(e)}})),o}(this,n):"",this[Kr("0x1d")].bind("isEnabled").to(this),this[Kr("0x10")]({tag:Kr("0x24"),attributes:{class:["ck",Kr("0x5"),Kr("0x1b"),r.if(Kr("0x23"),Kr("0x11"))]},children:[{tag:"div",attributes:{class:["ck",Kr("0x5"),Kr("0xb"),r.if(Kr("0x2f"),Kr("0x15"),(e=>!e)),r.if("isSelected",Kr("0x0")),r.if(Kr("0x22"),Kr("0x18")),r.if("isActionsDropdownOpen",Kr("0x3"))]},children:[this[Kr("0x9")],{tag:Kr("0x14"),attributes:{class:["ck",Kr("0x1")]},children:[{text:r.to(Kr("0x2a"))}]},{tag:"div",attributes:{class:["ck",Kr("0x1c")]},children:[{tag:"ul",attributes:{class:["ck",Kr("0x2d")]},children:o}]},this[Kr("0x1d")]],on:{click:r.to((e=>{e[Kr("0x20")][Kr("0x21")](Kr("0x1f"))||this[Kr("0xe")]&&this.isEnabled&&this[Kr("0x17")](Kr("0x2"),{id:this.id})}))}}]})}[Kr("0x1a")](){super.render();const e=this[Kr("0x9")].fieldView.element;this.listenTo(e,Kr("0xd"),(()=>{this[Kr("0x17")](Kr("0x2b"),{id:this.id,name:e[Kr("0x4")]})}))}[Kr("0x2")](){this[Kr("0x27")]=!0}[Kr("0x8")](){this[Kr("0x27")]=!1}[Kr("0xf")](){this[Kr("0x22")]=!0}[Kr("0x29")](){this[Kr("0x22")]=!1}}(0,t.mix)(Xr,r.ConfirmMixin);var Qr=i(810);const eo=["year","weekdayLong","minus","monthLong","week","toRelativeCalendar","setLocale","toJSDate","fromJSDate","startOf","hasSame","day"];var to,io;to=eo,io=190,function(e){for(;--e;)to.push(to.shift())}(++io);const no=function(e,t){return eo[e-=0]};function ro(e,t){e=Qr.ou[no("0xa")](e)[no("0x8")](t);const i=Qr.ou.local(),n=i[no("0x4")]({days:1}).startOf(no("0x1"));let r,o;return e[no("0x0")](i,"day")?(r=e[no("0xb")](no("0x1"))[no("0x9")](),o=e[no("0x7")]()):e[no("0x0")](n,no("0x1"))?(r=n[no("0x9")](),o=e.toRelativeCalendar()):e[no("0x0")](i,"week")?(r=e[no("0xb")](no("0x6"))[no("0x9")](),o=e[no("0x3")]):e[no("0x0")](i,no("0x2"))?(r=e[no("0xb")]("month")[no("0x9")](),o=e[no("0x5")]):(r=e[no("0xb")](no("0x2")).toJSDate(),o=e[no("0x2")]),{startDate:r,localizedPeriodName:o}}var oo=i(37),so={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};vn()(oo.Z,so);oo.Z.locals;const ao=["setName","_revisionActions","locale","span","add","delegate","createCollection","ck-revision-history-sidebar__time-period","localizedPeriodName","uiLanguage","remove","find","startDate","div","revisionViews","removeRevision","addRevision","setTemplate","ck-revision-history-sidebar__time-period__label","select"];var co,uo;co=ao,uo=401,function(e){for(;--e;)co.push(co.shift())}(++uo);const lo=function(e,t){return ao[e-=0]};class xo extends hn.View{constructor(e,t,i){super(e);const n=ro(t,this[lo("0x1")][lo("0x8")])[lo("0x7")];this[lo("0xb")]=t,this[lo("0x0")]=i,this[lo("0xd")]=this[lo("0x5")](),this.revisionViews[lo("0x4")](lo("0x12")).to(this),this[lo("0xd")][lo("0x4")](lo("0x13")).to(this),this[lo("0x10")]({tag:lo("0xc"),attributes:{class:["ck",lo("0x6")]},children:[{tag:lo("0x2"),attributes:{class:["ck",lo("0x11")]},children:[{text:n}]},{tag:lo("0xc"),attributes:{class:["ck","ck-revision-history-sidebar__time-period__revisions"]},children:this[lo("0xd")]}]})}[lo("0xf")](e){const t=new Xr(this[lo("0x1")],e,this[lo("0x0")]);this.revisionViews[lo("0x3")](t)}[lo("0xe")](e){const t=this[lo("0xd")][lo("0xa")]((t=>t.id===e.id));this[lo("0xd")][lo("0x9")](t)}}var ho=i(29),fo={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};vn()(ho.Z,fo);ho.Z.locals;const vo=["Revision history","content","span"];var mo,go;mo=vo,go=465,function(e){for(;--e;)mo.push(mo.shift())}(++go);const po=function(e,t){return vo[e-=0]};class yo extends hn.View{constructor(e){super(e);const t=new hn.IconView(e);t[po("0x1")]=Tn,this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset_all","ck-revision-history-sidebar__header"]},children:[t,{tag:po("0x2"),attributes:{class:["ck","ck-revision-history-sidebar__header__label"]},children:[en(e,po("0x0"))]}]})}}var bo=i(790),ko={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};vn()(bo.Z,ko);bo.Z.locals;const _o=["selectRevision","ck-disabled","_addRevision","flat","locale","revisionSelected","get","map","addRevision","createCollection","highlight","render","set","ck-revision-history-sidebar__timeline","_revisionActions","highlightRevisions","some","revisionSetName","delegate","_getTimePeriodViewByStartDate","_removeRevision","timePeriodViews","isEnabled","getTime","createdAt","setTemplate","fire","startDate","_revisions","unhighlight","div","add","setName","select","revisionViews"];var wo,So;wo=_o,So=474,function(e){for(;--e;)wo.push(wo.shift())}(++So);const To=function(e,t){return _o[e-=0]};class Oo extends hn.View{constructor(e,t,i){super(e);const n=this.bindTemplate;this.timePeriodViews=this[To("0x19")](),this[To("0x2")][To("0x22")](To("0xe")).to(this),this[To("0x2")][To("0x22")](To("0xd")).to(this),this[To("0x9")]=t,this[To("0x1e")]=i,this.on(To("0xe"),((e,t)=>{this[To("0x7")](To("0x15"),t)})),this.on("setName",((e,t)=>{this[To("0x7")](To("0x21"),t)})),this[To("0x1c")](To("0x3"),!1),this[To("0x6")]({tag:"div",attributes:{class:["ck","ck-reset","ck-rounded-corners","ck-revision-history-sidebar"]},children:[new yo(e),{tag:To("0xb"),attributes:{class:["ck",To("0x1d"),n.if(To("0x3"),To("0x11"),(e=>!e))]},children:this[To("0x2")]}]})}[To("0x1b")](){super[To("0x1b")]();for(const e of this[To("0x9")])this[To("0x12")](e);this[To("0x9")].on("add",((e,t)=>{this._addRevision(t)})),this._revisions.on("remove",((e,t)=>{this[To("0x1")](t)}))}get[To("0xf")](){return this[To("0x2")][To("0x17")]((e=>e[To("0xf")][To("0x17")]((e=>e))))[To("0x13")]()}[To("0x10")](e){for(const t of this[To("0xf")])e&&e.id===t.id?t.select():t.deselect()}[To("0x1f")](e){for(const t of this[To("0xf")])e[To("0x20")]((({id:e})=>e===t.id))?t[To("0x1a")]():t[To("0xa")]()}[To("0x12")](e){const t=ro(e[To("0x5")])[To("0x8")];let i=this[To("0x2")][To("0x16")](0);i&&i[To("0x8")][To("0x4")]()===t[To("0x4")]()||(i=new xo(this[To("0x14")],t,this[To("0x1e")]),this[To("0x2")][To("0xc")](i)),i[To("0x18")](e)}[To("0x1")](e){const t=ro(e[To("0x5")])[To("0x8")];this[To("0x0")](t).removeRevision(e)}_getTimePeriodViewByStartDate(e){return this[To("0x2")].find((t=>t[To("0x8")][To("0x4")]()===e.getTime()))}}const Io=["selectRevision","isVisible","appendChild","compareAgainstSelected","requires","newRevisionId","listenTo","defaultRevisionActions","restoreRevisionCallback","revisionViews","length","repository","select","getRevision","timePeriodViews","_revisionsRepository","add","setName","_revisionViewer","restoreRevision","compare","Name this revision","getIndex","RevisionsSidebar","isEnabled","getEarlierVisibleRevision","element","action","isSelected","availableRevisionActions","getRevisionsInDiff","revisionSetName","render","highlightRevisions","editor","_createRevisionActions","locale","change:diff","_handleDiffChange","Restore this revision","remove","bind","string","destroy","init","config","revisionHistory.viewerSidebarContainer","nameRevision","plugins","_handleRevisionSelected","_sidebarView","assign","name","get","fieldView","revisionHistory.revisionActions","diff"];var Ro,No;Ro=Io,No=372,function(e){for(;--e;)Ro.push(Ro.shift())}(++No);const Vo=function(e,t){return Io[e-=0]};class Eo extends e.Plugin{static get pluginName(){return Vo("0x32")}static get[Vo("0x1f")](){return[Qn]}constructor(e){super(e),this[Vo("0x2d")]=e[Vo("0x12")][Vo("0x17")](Qn),this[Vo("0x2a")]=this[Vo("0x2d")].repository,this[Vo("0x14")]=null}[Vo("0xe")](){const e=this[Vo("0x2a")]._revisions,t=this._createRevisionActions(),i=this[Vo("0x4")][Vo("0xf")][Vo("0x17")](Vo("0x10"));this[Vo("0x14")]=new Oo(this.editor[Vo("0x6")],e,t),this[Vo("0x14")].on("revisionSelected",this[Vo("0x13")][Vo("0xb")](this)),this[Vo("0x14")].on(Vo("0x1"),this._handleRevisionSetName.bind(this)),this[Vo("0x14")].bind(Vo("0x33")).to(this[Vo("0x2d")]),this[Vo("0x14")][Vo("0x29")].on("add",((e,t)=>{t[Vo("0x24")].on(Vo("0x2b"),((e,t)=>{t[Vo("0xb")](Vo("0x33"),"isReady").to(this[Vo("0x2d")])}))})),this[Vo("0x14")][Vo("0x2")](),this.listenTo(this[Vo("0x4")].data,"ready",this._handleEditorDataReady[Vo("0xb")](this)),this[Vo("0x21")](this[Vo("0x2d")],Vo("0x7"),this[Vo("0x8")][Vo("0xb")](this)),i[Vo("0x1d")](this[Vo("0x14")][Vo("0x35")])}[Vo("0xd")](){this[Vo("0x14")][Vo("0x35")][Vo("0xa")](),this._sidebarView.destroy()}_handleEditorDataReady(){const e=this[Vo("0x2a")][Vo("0x28")](0);if(e){const t=this[Vo("0x2a")][Vo("0x34")](e.id);this[Vo("0x2d")][Vo("0x2f")](e,t)}}[Vo("0x13")](e,t){const i=this._revisionsRepository.getRevision(t.id),n=this._revisionsRepository[Vo("0x34")](i.id);this[Vo("0x2d")][Vo("0x2f")](i,n)}_handleRevisionSetName(e,t){this[Vo("0x2a")][Vo("0x28")](t.id)[Vo("0x2c")](t[Vo("0x16")])}_handleDiffChange(e,t,i){const n=this[Vo("0x2a")][Vo("0x0")](i);n[Vo("0x25")]>2?(this[Vo("0x14")].highlightRevisions(n),this[Vo("0x14")][Vo("0x1b")](null)):(this[Vo("0x14")][Vo("0x3")]([]),this[Vo("0x14")][Vo("0x1b")](n[0]))}[Vo("0x5")](){const e=this[Vo("0x4")],t=Eo[Vo("0x38")],i=e[Vo("0xf")].get(Vo("0x19"))||Eo.defaultRevisionActions;if(i.length)return i.map((i=>{const n=Vo("0xc")==typeof i?Object[Vo("0x15")]({},t[i]):i;return n[Vo("0x36")]=n[Vo("0x36")][Vo("0xb")](this,e),n[Vo("0x1c")]&&(n.isVisible=n[Vo("0x1c")][Vo("0xb")](this,e)),n}))}}Eo[Vo("0x38")]={compareAgainstSelected:{name:"Compare against selected",action:({plugins:e},t)=>{const i=e[Vo("0x17")](Qn),n=i[Vo("0x26")];let r=i[Vo("0x1a")][Vo("0x20")],o=t.id;n[Vo("0x31")](r)>n[Vo("0x31")](o)&&([r,o]=[o,r]),i.compare(r,o)},isVisible:({plugins:e},t)=>{const i=e[Vo("0x17")](Qn);return!(i[Vo("0x26")][Vo("0x0")](i[Vo("0x1a")]).length>2||t[Vo("0x37")])}},restoreRevision:{name:Vo("0x9"),action:(e,{id:t})=>{e.config.get("revisionHistory")[Vo("0x23")](t)},isVisible:({plugins:e},t)=>!!e[Vo("0x17")](Qn)[Vo("0x26")].getLaterVisibleRevision(t.id)},nameRevision:{name:Vo("0x30"),action:({plugins:e},{id:t,revisionNameView:i})=>{const n=e[Vo("0x17")](Qn),r=n[Vo("0x26")][Vo("0x34")](t);n[Vo("0x2f")](t,r),i.focus(),i[Vo("0x18")][Vo("0x27")]()}}},Eo[Vo("0x22")]=[Vo("0x1e"),Vo("0x2e"),Vo("0x11")];const Mo=["element","view","ready","_elementReplacer","toolbar","name","init","focusTracker","_toolbarConfig","bind","get","componentFactory","viewportTopOffset","fillFromConfig","document","fire","limiterElement","config","viewportOffset","isActive","addToolbar","detachDomRoot","render","setEditableElement","attachDomRoot","isFocused","stickyPanel","editor","editing","destroy","editable","getRoot","_initToolbar","rootName"];var Ao,Do;Ao=Mo,Do=103,function(e){for(;--e;)Ao.push(Ao.shift())}(++Do);const Co=function(e,t){return Mo[e-=0]};class jo extends e.EditorUI{constructor(e,i){super(e),this.view=i,this[Co("0x7")]=(0,hn.normalizeToolbarConfig)(e[Co("0x10")][Co("0x9")](Co("0x3"))),this[Co("0x2")]=new t.ElementReplacer}get element(){return this.view.element}[Co("0x5")](e){const t=this.editor,i=this[Co("0x0")],n=t[Co("0x1b")][Co("0x0")],r=i[Co("0x1d")],o=n[Co("0xd")][Co("0x1e")]();r[Co("0x4")]=o[Co("0x20")],i[Co("0x15")]();const s=r[Co("0x21")];this[Co("0x16")](r[Co("0x4")],s),i[Co("0x1d")][Co("0x8")](Co("0x18")).to(this[Co("0x6")]),n[Co("0x17")](s),this._elementReplacer.replace(e,this[Co("0x21")]),this[Co("0x1f")](),this[Co("0xe")](Co("0x1"))}[Co("0x1c")](){const e=this[Co("0x0")],t=this[Co("0x1a")][Co("0x1b")][Co("0x0")];this[Co("0x2")].restore(),t[Co("0x14")](e[Co("0x1d")].name),e.destroy(),super[Co("0x1c")]()}_initToolbar(){const e=this[Co("0x0")];e.stickyPanel.bind(Co("0x12")).to(this[Co("0x6")],Co("0x18")),e[Co("0x19")][Co("0xf")]=e[Co("0x21")],e.stickyPanel[Co("0x8")](Co("0xb")).to(this,Co("0x11"),(({top:e})=>e)),e[Co("0x3")][Co("0xc")](this[Co("0x7")],this[Co("0xa")]),this[Co("0x13")](e[Co("0x3")])}}var Fo=i(168),Lo={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};vn()(Fo.Z,Lo);Fo.Z.locals;var Po,zo,Zo=["stickyPanel","top","content","shouldToolbarGroupWhenFull","toolbar","editable","main","render"];Po=Zo,zo=422,function(e){for(;--e;)Po.push(Po.shift())}(++zo);var Uo=function(e,t){return Zo[e-=0]};class Ho extends hn.BoxedEditorUIView{constructor(e,t,i={}){super(e),this[Uo("0x2")]=new hn.StickyPanelView(e),this.toolbar=new hn.ToolbarView(e,{shouldGroupWhenFull:i[Uo("0x5")]}),this[Uo("0x7")]=new hn.InlineEditableUIView(e,t)}[Uo("0x1")](){super[Uo("0x1")](),this[Uo("0x2")][Uo("0x4")].add(this[Uo("0x6")]),this[Uo("0x3")].add(this[Uo("0x2")]),this[Uo("0x0")].add(this[Uo("0x7")])}}const Bo=["document","initPlugins","updateSourceElement","editing","locale","initialData","destroy","sourceElement","init","get","view","model","config","create"];var qo,Wo;qo=Bo,Wo=261,function(e){for(;--e;)qo.push(qo.shift())}(++Wo);const Jo=function(e,t){return Bo[e-=0]};class Go extends e.Editor{constructor(e,t){super(t),this[Jo("0xc")]=e,this[Jo("0x2")][Jo("0x5")].createRoot();const i=new Ho(this[Jo("0x9")],this[Jo("0x8")][Jo("0x1")],{shouldToolbarGroupWhenFull:!0});this.ui=new jo(this,i)}[Jo("0xb")](){return this[Jo("0x7")](),this.ui[Jo("0xb")](),super[Jo("0xb")]()}static async[Jo("0x4")](e,t){const i=new this(e,t);return await i[Jo("0x6")](),await i.ui.init(e),await i.data[Jo("0xd")](i[Jo("0x3")][Jo("0x0")](Jo("0xa"))),i.fire("ready"),i}}(0,t.mix)(Go,e.DataApiMixin),(0,t.mix)(Go,e.ElementApiMixin);const Yo=["none","Autosave","changesNavigation","model","uiLanguage","addUser","RevisionHistory","toJSON","init","revisionHistory.restoreRevisionCallback","toolbar","find","_restoreRevision","_closeRevisionViewer","editor","revisionHistory.showRevisionViewerCallback","createdAt","revisionHistory.closeRevisionViewerCallback","revisionHistory","plugins","RevisionViewer","numeric","_recalculatePageBreaks","isEnabled","getRevisionData","RevisionTracker","requires","destroy","revisionHistory.editorContainer","every","names","pluginName","includes","long","Users","map","revisionHistory.viewerEditorElement","adapter","revision-history-missing-configuration","function","update","context","revisionHistory.viewerContainer","RealTimeCollaborativeTrackChanges","refreshPositioning","get","define","getRevision","data","markers","addRevisionData","locale","Restored","getRevisions","concat","RestrictedEditingMode","_enhanceCloseRevisionViewerCallback","restoreRevision","getUser","change","filter","RealTimeCollaborativeEditing","disableReadOnlyMode","showRevisionViewerCallback","isReady","refreshVisibility","toVersion","revision-history-viewer-opened","RevisionsRepository","config","Annotations","_showRevisionViewer","restrictedEditingException","removeMarker","_enhanceShowRevisionViewerCallback","initialData","repository","builtinPlugins","creator","extraPlugins","style","toLocaleTimeString","isAnonymous","bind","commands","from","_getRevisionViewerEditorConfig","_update","PaginationLookup","push","then","isReadOnly","set","name","getMarkersGroup","indexOf","has","error","display","_viewerEditor","RealTimeCollaborativeComments"];var $o,Ko;$o=Yo,Ko=474,function(e){for(;--e;)$o.push($o.shift())}(++Ko);const Xo=function(e,t){return Yo[e-=0]},Qo=[Xo("0x48")],es=["RevisionTracker","RevisionHistoryUI",Xo("0x5c"),Xo("0x1e"),Xo("0x4a"),Xo("0x56"),Xo("0x20")];class ts extends e.Plugin{static get[Xo("0x3e")](){return Xo("0x25")}static get[Xo("0x39")](){return[an,Vn]}constructor(...e){if(super(...e),!this[Xo("0x2d")][Xo("0x64")].get(Xo("0x31")))throw new t.CKEditorError(Xo("0x45"),this);this._viewerEditor=null,this[Xo("0x2d")][Xo("0x64")][Xo("0x4d")](Xo("0x2e"),(e=>this[Xo("0x1")](e))),this.editor[Xo("0x64")].define(Xo("0x30"),(e=>this[Xo("0x2c")](e))),this[Xo("0x2d")][Xo("0x64")][Xo("0x4d")](Xo("0x28"),(e=>this[Xo("0x2b")](e))),this[Xo("0x4")](),this[Xo("0x57")]()}set[Xo("0x44")](e){this.editor[Xo("0x32")][Xo("0x4c")](Xo("0x38"))[Xo("0x44")]=e}get[Xo("0x44")](){return this[Xo("0x2d")][Xo("0x32")].get("RevisionTracker")[Xo("0x44")]}[Xo("0x51")](...e){return this[Xo("0x2d")][Xo("0x32")][Xo("0x4c")]("RevisionTracker")[Xo("0x51")](...e)}[Xo("0x4e")](...e){return this[Xo("0x2d")][Xo("0x32")].get(Xo("0x63"))[Xo("0x4e")](...e)}[Xo("0x54")](...e){return this[Xo("0x2d")][Xo("0x32")][Xo("0x4c")](Xo("0x63"))[Xo("0x54")](...e)}[Xo("0x10")](){const i={},n=this[Xo("0x2d")],r=n[Xo("0x32")][Xo("0x4c")]("RevisionTracker"),o=n.plugins[Xo("0x4c")](Xo("0x41")).users;for(const e of n[Xo("0x64")][Xo("0x3d")]())Qo[Xo("0x3f")](e)||(i[e]=n[Xo("0x64")][Xo("0x4c")](e));i[Xo("0x5")]="",i[Xo("0x29")]=["exitToEditing","restoreRevision",Xo("0x21")];const s=this.editor.constructor[Xo("0x7")]||[],a=i[Xo("0x9")]||[];delete i[Xo("0x9")];const c=s[Xo("0x55")](i[Xo("0x32")])[Xo("0x55")](a)[Xo("0x42")]((e=>"string"==typeof e?s[Xo("0x2a")]((t=>t[Xo("0x3e")]==e)):e));return i[Xo("0x32")]=Array[Xo("0xf")](new Set(c))[Xo("0x5b")]((e=>is(e,n[Xo("0x32")],[]))),i[Xo("0x32")][Xo("0x13")](Qn,kr,class extends e.Plugin{static get[Xo("0x39")](){return[Qn,Xo("0x41")]}[Xo("0x27")](){const e=this[Xo("0x2d")][Xo("0x32")][Xo("0x4c")](Xo("0x41"));for(const t of o)t[Xo("0xc")]||e[Xo("0x59")](t.id)||e[Xo("0x24")](t);const i=r.repository[Xo("0x54")]();let s=null;const a=this[Xo("0x2d")][Xo("0x32")][Xo("0x4c")](Xo("0x33"));a[Xo("0x44")]=r[Xo("0x44")],a[Xo("0xd")](Xo("0x36")).to(r),this[Xo("0x2d")][Xo("0xe")][Xo("0x4c")](Xo("0x58"))[Xo("0xd")]("isEnabled").to(n,Xo("0x15"),(e=>!e));for(const e of i){const i=null===e[Xo("0x8")];if(i&&e[Xo("0x61")]===e.fromVersion)continue;const n=e[Xo("0x26")]();a[Xo("0x51")](n,((n,o,a)=>{if(i){if(s)s[Xo("0x11")](n,o);else if(!o){const e=a.toJSON();e.id=(0,t.uid)(),r.saveRevision(e,a[Xo("0x61")]).then((e=>{s=e}))}}else e[Xo("0x11")](n,o)}))}}},Eo),i}_enhanceShowRevisionViewerCallback(){const e=this[Xo("0x2d")][Xo("0x64")].get(Xo("0x31"))[Xo("0x5e")];this[Xo("0x2d")].config[Xo("0x16")](Xo("0x2e"),(async()=>{this[Xo("0x2d")].enableReadOnlyMode(Xo("0x62"));const t=this.editor[Xo("0x32")][Xo("0x4c")](Xo("0x38"));this[Xo("0x2d")].plugins[Xo("0x1a")]("Autosave")?await this.editor[Xo("0x32")][Xo("0x4c")](Xo("0x20")).save():await t[Xo("0x47")](),this[Xo("0x2d")][Xo("0x32")].has(Xo("0x12"))&&this.editor[Xo("0x32")].get(Xo("0x12"))[Xo("0x35")]();const i=this[Xo("0x10")]();return e(i).then((e=>{this[Xo("0x1d")]=e,this.editor.plugins[Xo("0x1a")](Xo("0x0"))&&this[Xo("0x2d")].plugins[Xo("0x4c")](Xo("0x0"))[Xo("0x60")]()})).catch((e=>{console[Xo("0x1b")](e),this[Xo("0x2d")][Xo("0x5d")](Xo("0x62"))}))}))}_enhanceCloseRevisionViewerCallback(){const e=this[Xo("0x2d")][Xo("0x64")][Xo("0x4c")]("revisionHistory").closeRevisionViewerCallback;this.editor[Xo("0x64")][Xo("0x16")](Xo("0x30"),(()=>(this.editor[Xo("0x32")][Xo("0x1a")](Xo("0x12"))&&this[Xo("0x2d")].plugins[Xo("0x4c")](Xo("0x12"))._recalculatePageBreaks(),e(this[Xo("0x1d")])[Xo("0x14")]((()=>{this[Xo("0x2d")][Xo("0x5d")](Xo("0x62")),this[Xo("0x1d")]=null,this[Xo("0x2d")][Xo("0x32")].has(Xo("0x0"))&&(this[Xo("0x2d")].plugins.get(Xo("0x0"))[Xo("0x60")](),this[Xo("0x2d")].plugins[Xo("0x4c")]("Annotations")[Xo("0x4b")]())})))))}[Xo("0x1")](e){const t=this[Xo("0x2d")][Xo("0x64")][Xo("0x4c")]("revisionHistory.editorContainer"),i=this.editor[Xo("0x64")][Xo("0x4c")](Xo("0x49")),n=this[Xo("0x2d")][Xo("0x64")].get(Xo("0x43"));return Go.create(n,e)[Xo("0x14")]((e=>(i[Xo("0xa")][Xo("0x1c")]="block",t[Xo("0xa")][Xo("0x1c")]=Xo("0x1f"),e)))}_closeRevisionViewer(e){const t=this[Xo("0x2d")].config.get(Xo("0x3b"));return this[Xo("0x2d")][Xo("0x64")].get(Xo("0x49")).style[Xo("0x1c")]=Xo("0x1f"),t.style[Xo("0x1c")]="",e[Xo("0x3a")]()}async _restoreRevision(e){const t=this[Xo("0x2d")],i=this[Xo("0x1d")].plugins[Xo("0x4c")]("RevisionViewer"),n=t[Xo("0x32")].get("RevisionTracker"),r=i[Xo("0x6")][Xo("0x4e")](e);let o,s;try{o=await i[Xo("0x37")](r)}catch(e){return void console.error(e)}t[Xo("0x22")][Xo("0x5a")]((e=>{for(const i of Array[Xo("0xf")](t[Xo("0x22")][Xo("0x50")][Xo("0x18")](Xo("0x2"))))e[Xo("0x3")](i)})),i[Xo("0x5f")]=!1,t[Xo("0x4f")][Xo("0x16")](o,{suppressErrorInCollaboration:!0});const a=en(t.locale,Xo("0x53"));return s=r[Xo("0x17")]?-1==r.name[Xo("0x19")](a)?a+": "+r[Xo("0x17")]:r[Xo("0x17")]:a+": "+r[Xo("0x2f")].toLocaleDateString(t[Xo("0x52")][Xo("0x23")],{month:Xo("0x40"),day:"numeric"})+", "+r[Xo("0x2f")][Xo("0xb")](t[Xo("0x52")][Xo("0x23")],{hour:Xo("0x34"),minute:Xo("0x34")}),await n.saveRevision({name:s}),i[Xo("0x5f")]=!0,t[Xo("0x64")][Xo("0x4c")](Xo("0x31")).closeRevisionViewerCallback()}}function is(e,t,i){const n=Xo("0x46")==typeof e?e.pluginName||e[Xo("0x17")]:e;if(i.includes(n))return!0;if(i[Xo("0x13")](n),es[Xo("0x3f")](n))return!1;const r=((Xo("0x46")==typeof e?e:t[Xo("0x1a")](n)?t[Xo("0x4c")](n):{})[Xo("0x39")]||[])[Xo("0x3c")]((e=>is(e,t,i)));return r||es[Xo("0x13")](n),r}})(),(window.CKEditor5=window.CKEditor5||{}).revisionHistory=n})();
|