diff --git a/js/Activity-99285c4a.mjs b/js/Activity-9797d778.mjs similarity index 65% rename from js/Activity-99285c4a.mjs rename to js/Activity-9797d778.mjs index d91978018..7369dfcb2 100644 --- a/js/Activity-99285c4a.mjs +++ b/js/Activity-9797d778.mjs @@ -1,4 +1,4 @@ -(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(`@charset "UTF-8";.material-design-icon[data-v-eb1078f7]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.content[data-v-eb1078f7]{box-sizing:border-box;margin:var(--body-container-margin);margin-top:50px;display:flex;width:calc(100% - var(--body-container-margin) * 2);border-radius:var(--body-container-radius);height:var(--body-height);overflow:hidden;padding:0}.content[data-v-eb1078f7]:not(.with-sidebar--full){position:fixed}.content[data-v-eb1078f7] *{box-sizing:border-box}.material-design-icon[data-v-5244e83e]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.app-details-toggle[data-v-5244e83e]{position:fixed;width:44px;height:44px;padding:14px;cursor:pointer;opacity:.6;transform:rotate(180deg);background-color:var(--color-main-background);z-index:2000}.app-details-toggle[data-v-5244e83e]:active,.app-details-toggle[data-v-5244e83e]:hover,.app-details-toggle[data-v-5244e83e]:focus{opacity:1}.material-design-icon[data-v-424ef3d1]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.app-content[data-v-424ef3d1]{position:initial;z-index:1000;flex-basis:100vw;height:100%;margin:0!important;background-color:var(--color-main-background);min-width:0}.app-content[data-v-424ef3d1]:not(.app-content--has-list){overflow:auto}.app-content-wrapper[data-v-424ef3d1]{position:relative;width:100%;height:100%}.app-content-wrapper--mobile.app-content-wrapper--show-list[data-v-424ef3d1] .app-content-list{display:flex}.app-content-wrapper--mobile.app-content-wrapper--show-list[data-v-424ef3d1] .app-content-details,.app-content-wrapper--mobile.app-content-wrapper--show-details[data-v-424ef3d1] .app-content-list{display:none}.app-content-wrapper--mobile.app-content-wrapper--show-details[data-v-424ef3d1] .app-content-details{display:block}[data-v-424ef3d1] .splitpanes.default-theme .app-content-list{max-width:none;scrollbar-width:auto}[data-v-424ef3d1] .splitpanes.default-theme .splitpanes__pane{background-color:transparent;transition:none}[data-v-424ef3d1] .splitpanes.default-theme .splitpanes__pane-list{min-width:300px;position:-webkit-sticky;position:sticky;top:var(--header-height)}@media only screen and (width < 1024px){[data-v-424ef3d1] .splitpanes.default-theme .splitpanes__pane-list{display:none}}[data-v-424ef3d1] .splitpanes.default-theme .splitpanes__pane-details{overflow-y:auto}@media only screen and (width < 1024px){[data-v-424ef3d1] .splitpanes.default-theme .splitpanes__pane-details{min-width:100%}}[data-v-424ef3d1] .splitpanes.default-theme .splitpanes__splitter{width:9px;margin-left:-5px;background-color:transparent;border-left:none}[data-v-424ef3d1] .splitpanes.default-theme .splitpanes__splitter:before,[data-v-424ef3d1] .splitpanes.default-theme .splitpanes__splitter:after{display:none}.material-design-icon[data-v-f507b497]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.button-vue[data-v-f507b497]{position:relative;width:fit-content;overflow:hidden;border:0;padding:0;font-size:var(--default-font-size);font-weight:700;min-height:44px;min-width:44px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:22px;transition-property:color,border-color,background-color;transition-duration:.1s;transition-timing-function:linear;color:var(--color-primary-element-light-text);background-color:var(--color-primary-element-light)}.button-vue *[data-v-f507b497],.button-vue span[data-v-f507b497]{cursor:pointer}.button-vue[data-v-f507b497]:focus{outline:none}.button-vue[data-v-f507b497]:disabled{cursor:default;opacity:.5;filter:saturate(.7)}.button-vue:disabled *[data-v-f507b497]{cursor:default}.button-vue[data-v-f507b497]:hover:not(:disabled){background-color:var(--color-primary-element-light-hover)}.button-vue[data-v-f507b497]:active{background-color:var(--color-primary-element-light)}.button-vue__wrapper[data-v-f507b497]{display:inline-flex;align-items:center;justify-content:center;width:100%}.button-vue--end .button-vue__wrapper[data-v-f507b497]{justify-content:end}.button-vue--start .button-vue__wrapper[data-v-f507b497]{justify-content:start}.button-vue--reverse .button-vue__wrapper[data-v-f507b497]{flex-direction:row-reverse}.button-vue--reverse.button-vue--icon-and-text[data-v-f507b497]{padding-inline:calc(var(--default-grid-baseline) * 4) var(--default-grid-baseline)}.button-vue__icon[data-v-f507b497]{height:44px;width:44px;min-height:44px;min-width:44px;display:flex;justify-content:center;align-items:center}.button-vue__text[data-v-f507b497]{font-weight:700;margin-bottom:1px;padding:2px 0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.button-vue--icon-only[data-v-f507b497]{width:44px!important}.button-vue--text-only[data-v-f507b497]{padding:0 12px}.button-vue--text-only .button-vue__text[data-v-f507b497]{margin-left:4px;margin-right:4px}.button-vue--icon-and-text[data-v-f507b497]{padding-block:0;padding-inline:var(--default-grid-baseline) calc(var(--default-grid-baseline) * 4)}.button-vue--wide[data-v-f507b497]{width:100%}.button-vue[data-v-f507b497]:focus-visible{outline:2px solid var(--color-main-text)!important;box-shadow:0 0 0 4px var(--color-main-background)!important}.button-vue:focus-visible.button-vue--vue-tertiary-on-primary[data-v-f507b497]{outline:2px solid var(--color-primary-element-text);border-radius:var(--border-radius);background-color:transparent}.button-vue--vue-primary[data-v-f507b497]{background-color:var(--color-primary-element);color:var(--color-primary-element-text)}.button-vue--vue-primary[data-v-f507b497]:hover:not(:disabled){background-color:var(--color-primary-element-hover)}.button-vue--vue-primary[data-v-f507b497]:active{background-color:var(--color-primary-element)}.button-vue--vue-secondary[data-v-f507b497]{color:var(--color-primary-element-light-text);background-color:var(--color-primary-element-light)}.button-vue--vue-secondary[data-v-f507b497]:hover:not(:disabled){color:var(--color-primary-element-light-text);background-color:var(--color-primary-element-light-hover)}.button-vue--vue-tertiary[data-v-f507b497]{color:var(--color-main-text);background-color:transparent}.button-vue--vue-tertiary[data-v-f507b497]:hover:not(:disabled){background-color:var(--color-background-hover)}.button-vue--vue-tertiary-no-background[data-v-f507b497]{color:var(--color-main-text);background-color:transparent}.button-vue--vue-tertiary-no-background[data-v-f507b497]:hover:not(:disabled){background-color:transparent}.button-vue--vue-tertiary-on-primary[data-v-f507b497]{color:var(--color-primary-element-text);background-color:transparent}.button-vue--vue-tertiary-on-primary[data-v-f507b497]:hover:not(:disabled){background-color:transparent}.button-vue--vue-success[data-v-f507b497]{background-color:var(--color-success);color:#fff}.button-vue--vue-success[data-v-f507b497]:hover:not(:disabled){background-color:var(--color-success-hover)}.button-vue--vue-success[data-v-f507b497]:active{background-color:var(--color-success)}.button-vue--vue-warning[data-v-f507b497]{background-color:var(--color-warning);color:#fff}.button-vue--vue-warning[data-v-f507b497]:hover:not(:disabled){background-color:var(--color-warning-hover)}.button-vue--vue-warning[data-v-f507b497]:active{background-color:var(--color-warning)}.button-vue--vue-error[data-v-f507b497]{background-color:var(--color-error);color:#fff}.button-vue--vue-error[data-v-f507b497]:hover:not(:disabled){background-color:var(--color-error-hover)}.button-vue--vue-error[data-v-f507b497]:active{background-color:var(--color-error)}.v-popper--theme-tooltip.v-popper__popper{position:absolute;z-index:100000;top:0;right:auto;left:auto;display:block;margin:0;padding:0;text-align:left;text-align:start;opacity:0;line-height:1.6;line-break:auto;filter:drop-shadow(0 1px 10px var(--color-box-shadow))}.v-popper--theme-tooltip.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-container{bottom:-10px;border-bottom-width:0;border-top-color:var(--color-main-background)}.v-popper--theme-tooltip.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-container{top:-10px;border-top-width:0;border-bottom-color:var(--color-main-background)}.v-popper--theme-tooltip.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-container{right:100%;border-left-width:0;border-right-color:var(--color-main-background)}.v-popper--theme-tooltip.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-container{left:100%;border-right-width:0;border-left-color:var(--color-main-background)}.v-popper--theme-tooltip.v-popper__popper[aria-hidden=true]{visibility:hidden;transition:opacity .15s,visibility .15s;opacity:0}.v-popper--theme-tooltip.v-popper__popper[aria-hidden=false]{visibility:visible;transition:opacity .15s;opacity:1}.v-popper--theme-tooltip .v-popper__inner{max-width:350px;padding:5px 8px;text-align:center;color:var(--color-main-text);border-radius:var(--border-radius);background-color:var(--color-main-background)}.v-popper--theme-tooltip .v-popper__arrow-container{position:absolute;z-index:1;width:0;height:0;margin:0;border-style:solid;border-color:transparent;border-width:10px}.splitpanes{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;height:100%}.splitpanes--vertical{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.splitpanes--horizontal{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.splitpanes--dragging *{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.splitpanes__pane{width:100%;height:100%;overflow:hidden}.splitpanes--vertical .splitpanes__pane{-webkit-transition:width .2s ease-out;-o-transition:width .2s ease-out;transition:width .2s ease-out}.splitpanes--horizontal .splitpanes__pane{-webkit-transition:height .2s ease-out;-o-transition:height .2s ease-out;transition:height .2s ease-out}.splitpanes--dragging .splitpanes__pane{-webkit-transition:none;-o-transition:none;transition:none}.splitpanes__splitter{-ms-touch-action:none;touch-action:none}.splitpanes--vertical>.splitpanes__splitter{min-width:1px;cursor:col-resize}.splitpanes--horizontal>.splitpanes__splitter{min-height:1px;cursor:row-resize}.splitpanes.default-theme .splitpanes__pane{background-color:#f2f2f2}.splitpanes.default-theme .splitpanes__splitter{background-color:#fff;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;-ms-flex-negative:0;flex-shrink:0}.splitpanes.default-theme .splitpanes__splitter:before,.splitpanes.default-theme .splitpanes__splitter:after{content:"";position:absolute;top:50%;left:50%;background-color:#00000026;-webkit-transition:background-color .3s;-o-transition:background-color .3s;transition:background-color .3s}.splitpanes.default-theme .splitpanes__splitter:hover:before,.splitpanes.default-theme .splitpanes__splitter:hover:after{background-color:#00000040}.splitpanes.default-theme .splitpanes__splitter:first-child{cursor:auto}.default-theme.splitpanes .splitpanes .splitpanes__splitter{z-index:1}.default-theme.splitpanes--vertical>.splitpanes__splitter,.default-theme .splitpanes--vertical>.splitpanes__splitter{width:7px;border-left:1px solid #eee;margin-left:-1px}.default-theme.splitpanes--vertical>.splitpanes__splitter:before,.default-theme.splitpanes--vertical>.splitpanes__splitter:after,.default-theme .splitpanes--vertical>.splitpanes__splitter:before,.default-theme .splitpanes--vertical>.splitpanes__splitter:after{-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:1px;height:30px}.default-theme.splitpanes--vertical>.splitpanes__splitter:before,.default-theme .splitpanes--vertical>.splitpanes__splitter:before{margin-left:-2px}.default-theme.splitpanes--vertical>.splitpanes__splitter:after,.default-theme .splitpanes--vertical>.splitpanes__splitter:after{margin-left:1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter,.default-theme .splitpanes--horizontal>.splitpanes__splitter{height:7px;border-top:1px solid #eee;margin-top:-1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:before,.default-theme.splitpanes--horizontal>.splitpanes__splitter:after,.default-theme .splitpanes--horizontal>.splitpanes__splitter:before,.default-theme .splitpanes--horizontal>.splitpanes__splitter:after{-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translate(-50%);width:30px;height:1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:before,.default-theme .splitpanes--horizontal>.splitpanes__splitter:before{margin-top:-2px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:after,.default-theme .splitpanes--horizontal>.splitpanes__splitter:after{margin-top:1px}.material-design-icon[data-v-6176f396]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.icon-vue[data-v-6176f396]{display:flex;justify-content:center;align-items:center;min-width:44px;min-height:44px;opacity:1}.icon-vue[data-v-6176f396] svg{fill:currentColor;width:20px;height:20px;max-width:20px;max-height:20px}.material-design-icon[data-v-458108e7]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.empty-content[data-v-458108e7]{display:flex;align-items:center;flex-direction:column;justify-content:center;flex-grow:1}.modal-wrapper .empty-content[data-v-458108e7]{margin-top:5vh;margin-bottom:5vh}.empty-content__icon[data-v-458108e7]{display:flex;align-items:center;justify-content:center;width:64px;height:64px;margin:0 auto 15px;opacity:.4;background-repeat:no-repeat;background-position:center;background-size:64px}.empty-content__icon[data-v-458108e7] svg{width:64px!important;height:64px!important;max-width:64px!important;max-height:64px!important}.empty-content__name[data-v-458108e7]{margin-bottom:10px;text-align:center;font-weight:700;font-size:20px;line-height:30px}.empty-content__description[data-v-458108e7]{color:var(--color-text-maxcontrast)}.empty-content__action[data-v-458108e7]{margin-top:8px}.modal-wrapper .empty-content__action[data-v-458108e7]{margin-top:20px;display:flex}.material-design-icon[data-v-4ad257bb]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}li.active[data-v-4ad257bb]{background-color:var(--color-background-hover);border-radius:6px;padding:0}.action--disabled[data-v-4ad257bb]{pointer-events:none;opacity:.5}.action--disabled[data-v-4ad257bb]:hover,.action--disabled[data-v-4ad257bb]:focus{cursor:default;opacity:.5}.action--disabled *[data-v-4ad257bb]{opacity:1!important}.action-button[data-v-4ad257bb]{display:flex;align-items:flex-start;width:100%;height:auto;margin:0;padding:0 14px 0 0;box-sizing:border-box;cursor:pointer;white-space:nowrap;color:var(--color-main-text);border:0;border-radius:0;background-color:transparent;box-shadow:none;font-weight:400;font-size:var(--default-font-size);line-height:44px}.action-button>span[data-v-4ad257bb]{cursor:pointer;white-space:nowrap}.action-button__icon[data-v-4ad257bb]{width:44px;height:44px;opacity:1;background-position:14px center;background-size:16px;background-repeat:no-repeat}.action-button[data-v-4ad257bb] .material-design-icon{width:44px;height:44px;opacity:1}.action-button[data-v-4ad257bb] .material-design-icon .material-design-icon__svg{vertical-align:middle}.action-button__longtext-wrapper[data-v-4ad257bb],.action-button__longtext[data-v-4ad257bb]{max-width:220px;line-height:1.6em;padding:10.8px 0;cursor:pointer;text-align:left;overflow:hidden;text-overflow:ellipsis}.action-button__longtext[data-v-4ad257bb]{cursor:pointer;white-space:pre-wrap!important}.action-button__name[data-v-4ad257bb]{font-weight:700;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;max-width:100%;display:inline-block}.action-button__menu-icon[data-v-4ad257bb]{margin-left:auto;margin-right:-14px}.nc-button-group-base>div{text-align:center;color:var(--color-text-maxcontrast)}.nc-button-group-base ul.nc-button-group-content{display:flex;justify-content:space-between}.nc-button-group-base ul.nc-button-group-content li{flex:1 1}.nc-button-group-base ul.nc-button-group-content .action-button{padding:0!important;width:100%;display:flex;justify-content:center}.material-design-icon[data-v-325a2ae8]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.app-navigation-caption[data-v-325a2ae8]{color:var(--color-text-maxcontrast);line-height:44px;white-space:nowrap;text-overflow:ellipsis;box-shadow:none!important;-webkit-user-select:none;user-select:none;pointer-events:none;margin-left:12px;padding-right:14px;height:44px;display:flex;align-items:center}.material-design-icon[data-v-1aa9466c]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}li.active[data-v-1aa9466c]{background-color:var(--color-background-hover);border-radius:6px;padding:0}.action--disabled[data-v-1aa9466c]{pointer-events:none;opacity:.5}.action--disabled[data-v-1aa9466c]:hover,.action--disabled[data-v-1aa9466c]:focus{cursor:default;opacity:.5}.action--disabled *[data-v-1aa9466c]{opacity:1!important}.action-checkbox[data-v-1aa9466c]{display:flex;align-items:flex-start;width:100%;height:auto;margin:0;padding:0;cursor:pointer;white-space:nowrap;color:var(--color-main-text);border:0;border-radius:0;background-color:transparent;box-shadow:none;font-weight:400;line-height:44px}.action-checkbox__checkbox[data-v-1aa9466c]{position:absolute;top:auto;left:-10000px;overflow:hidden;width:1px;height:1px}.action-checkbox__label[data-v-1aa9466c]{display:flex;align-items:center;width:100%;padding:0 14px 0 0!important}.action-checkbox__label[data-v-1aa9466c]:before{margin:0 14px!important}.action-checkbox--disabled[data-v-1aa9466c],.action-checkbox--disabled .action-checkbox__label[data-v-1aa9466c]{cursor:pointer}.material-design-icon[data-v-7412a2c7]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}button[data-v-7412a2c7]:not(.button-vue),input[data-v-7412a2c7]:not([type=range]),textarea[data-v-7412a2c7]{margin:0;padding:7px 6px;cursor:text;color:var(--color-text-lighter);border:1px solid var(--color-border-dark);border-radius:var(--border-radius);outline:none;background-color:var(--color-main-background);font-size:13px}button[data-v-7412a2c7]:not(.button-vue):not(:disabled):not(.primary):hover,button[data-v-7412a2c7]:not(.button-vue):not(:disabled):not(.primary):focus,button:not(.button-vue):not(:disabled):not(.primary).active[data-v-7412a2c7],input[data-v-7412a2c7]:not([type=range]):not(:disabled):not(.primary):hover,input[data-v-7412a2c7]:not([type=range]):not(:disabled):not(.primary):focus,input:not([type=range]):not(:disabled):not(.primary).active[data-v-7412a2c7],textarea[data-v-7412a2c7]:not(:disabled):not(.primary):hover,textarea[data-v-7412a2c7]:not(:disabled):not(.primary):focus,textarea:not(:disabled):not(.primary).active[data-v-7412a2c7]{border-color:var(--color-primary-element);outline:none}button[data-v-7412a2c7]:not(.button-vue):not(:disabled):not(.primary):active,input[data-v-7412a2c7]:not([type=range]):not(:disabled):not(.primary):active,textarea[data-v-7412a2c7]:not(:disabled):not(.primary):active{color:var(--color-text-light);outline:none;background-color:var(--color-main-background)}button[data-v-7412a2c7]:not(.button-vue):disabled,input[data-v-7412a2c7]:not([type=range]):disabled,textarea[data-v-7412a2c7]:disabled{cursor:default;opacity:.5;color:var(--color-text-maxcontrast);background-color:var(--color-background-dark)}button[data-v-7412a2c7]:not(.button-vue):required,input[data-v-7412a2c7]:not([type=range]):required,textarea[data-v-7412a2c7]:required{box-shadow:none}button[data-v-7412a2c7]:not(.button-vue):invalid,input[data-v-7412a2c7]:not([type=range]):invalid,textarea[data-v-7412a2c7]:invalid{border-color:var(--color-error);box-shadow:none!important}button:not(.button-vue).primary[data-v-7412a2c7],input:not([type=range]).primary[data-v-7412a2c7],textarea.primary[data-v-7412a2c7]{cursor:pointer;color:var(--color-primary-element-text);border-color:var(--color-primary-element);background-color:var(--color-primary-element)}button:not(.button-vue).primary[data-v-7412a2c7]:not(:disabled):hover,button:not(.button-vue).primary[data-v-7412a2c7]:not(:disabled):focus,button:not(.button-vue).primary[data-v-7412a2c7]:not(:disabled):active,input:not([type=range]).primary[data-v-7412a2c7]:not(:disabled):hover,input:not([type=range]).primary[data-v-7412a2c7]:not(:disabled):focus,input:not([type=range]).primary[data-v-7412a2c7]:not(:disabled):active,textarea.primary[data-v-7412a2c7]:not(:disabled):hover,textarea.primary[data-v-7412a2c7]:not(:disabled):focus,textarea.primary[data-v-7412a2c7]:not(:disabled):active{border-color:var(--color-primary-element-light);background-color:var(--color-primary-element-light)}button:not(.button-vue).primary[data-v-7412a2c7]:not(:disabled):active,input:not([type=range]).primary[data-v-7412a2c7]:not(:disabled):active,textarea.primary[data-v-7412a2c7]:not(:disabled):active{color:var(--color-primary-element-text-dark)}button:not(.button-vue).primary[data-v-7412a2c7]:disabled,input:not([type=range]).primary[data-v-7412a2c7]:disabled,textarea.primary[data-v-7412a2c7]:disabled{cursor:default;color:var(--color-primary-element-text-dark);background-color:var(--color-primary-element)}li.active[data-v-7412a2c7]{background-color:var(--color-background-hover);border-radius:6px;padding:0}.action--disabled[data-v-7412a2c7]{pointer-events:none;opacity:.5}.action--disabled[data-v-7412a2c7]:hover,.action--disabled[data-v-7412a2c7]:focus{cursor:default;opacity:.5}.action--disabled *[data-v-7412a2c7]{opacity:1!important}.action-input[data-v-7412a2c7]{display:flex;align-items:flex-start;width:100%;height:auto;margin:0;padding:0;cursor:pointer;white-space:nowrap;color:var(--color-main-text);border:0;border-radius:0;background-color:transparent;box-shadow:none;font-weight:400}.action-input__icon-wrapper[data-v-7412a2c7]{display:flex;align-self:center;align-items:center;justify-content:center}.action-input__icon-wrapper[data-v-7412a2c7] .material-design-icon{width:44px;height:44px;opacity:1}.action-input__icon-wrapper[data-v-7412a2c7] .material-design-icon .material-design-icon__svg{vertical-align:middle}.action-input>span[data-v-7412a2c7]{cursor:pointer;white-space:nowrap}.action-input__icon[data-v-7412a2c7]{min-width:0;min-height:0;padding:22px 0 22px 44px;background-position:14px center;background-size:16px}.action-input__form[data-v-7412a2c7]{display:flex;align-items:center;flex:1 1 auto;margin:4px 0;padding-right:14px}.action-input__container[data-v-7412a2c7]{width:100%}.action-input__input-container[data-v-7412a2c7]{display:flex}.action-input__input-container .colorpicker__trigger[data-v-7412a2c7],.action-input__input-container .colorpicker__preview[data-v-7412a2c7]{width:100%}.action-input__input-container .colorpicker__preview[data-v-7412a2c7]{width:100%;height:36px;border-radius:var(--border-radius-large);border:2px solid var(--color-border-maxcontrast);box-shadow:none!important}.action-input__text-label[data-v-7412a2c7]{padding:4px 0;display:block}.action-input__text-label--hidden[data-v-7412a2c7]{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}.action-input__datetimepicker[data-v-7412a2c7]{width:100%}.action-input__datetimepicker[data-v-7412a2c7] .mx-input{margin:0}.action-input__multi[data-v-7412a2c7]{width:100%}li:last-child>.action-input[data-v-7412a2c7]{padding-bottom:10px}li:first-child>.action-input[data-v-7412a2c7]:not(.action-input--visible-label){padding-top:10px}.mx-icon-left:before,.mx-icon-right:before,.mx-icon-double-left:before,.mx-icon-double-right:before,.mx-icon-double-left:after,.mx-icon-double-right:after{content:"";position:relative;top:-1px;display:inline-block;width:10px;height:10px;vertical-align:middle;border-style:solid;border-color:currentColor;border-width:2px 0 0 2px;border-radius:1px;box-sizing:border-box;transform-origin:center;transform:rotate(-45deg) scale(.7)}.mx-icon-double-left:after{left:-4px}.mx-icon-double-right:before{left:4px}.mx-icon-right:before,.mx-icon-double-right:before,.mx-icon-double-right:after{transform:rotate(135deg) scale(.7)}.mx-btn{box-sizing:border-box;line-height:1;font-size:14px;font-weight:500;padding:7px 15px;margin:0;cursor:pointer;background-color:transparent;outline:none;border:1px solid rgba(0,0,0,.1);border-radius:4px;color:#73879c;white-space:nowrap}.mx-btn:hover{border-color:#1284e7;color:#1284e7}.mx-btn:disabled,.mx-btn.disabled{color:#ccc;cursor:not-allowed}.mx-btn-text{border:0;padding:0 4px;text-align:left;line-height:inherit}.mx-scrollbar{height:100%}.mx-scrollbar:hover .mx-scrollbar-track{opacity:1}.mx-scrollbar-wrap{height:100%;overflow-x:hidden;overflow-y:auto}.mx-scrollbar-track{position:absolute;top:2px;right:2px;bottom:2px;width:6px;z-index:1;border-radius:4px;opacity:0;transition:opacity .24s ease-out}.mx-scrollbar-track .mx-scrollbar-thumb{position:absolute;width:100%;height:0;cursor:pointer;border-radius:inherit;background-color:#9093994d;transition:background-color .3s}.mx-zoom-in-down-enter-active,.mx-zoom-in-down-leave-active{opacity:1;transform:scaleY(1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transform-origin:center top}.mx-zoom-in-down-enter,.mx-zoom-in-down-enter-from,.mx-zoom-in-down-leave-to{opacity:0;transform:scaleY(0)}.mx-datepicker{position:relative;display:inline-block;width:210px}.mx-datepicker svg{width:1em;height:1em;vertical-align:-.15em;fill:currentColor;overflow:hidden}.mx-datepicker-range{width:320px}.mx-datepicker-inline{width:auto}.mx-input-wrapper{position:relative}.mx-input{display:inline-block;box-sizing:border-box;width:100%;height:34px;padding:6px 30px 6px 10px;font-size:14px;line-height:1.4;color:#555;background-color:#fff;border:1px solid #ccc;border-radius:4px;box-shadow:inset 0 1px 1px #00000013}.mx-input:hover,.mx-input:focus{border-color:#409aff}.mx-input:disabled,.mx-input.disabled{color:#ccc;background-color:#f3f3f3;border-color:#ccc;cursor:not-allowed}.mx-input:focus{outline:none}.mx-input::-ms-clear{display:none}.mx-icon-calendar,.mx-icon-clear{position:absolute;top:50%;right:8px;transform:translateY(-50%);font-size:16px;line-height:1;color:#00000080;vertical-align:middle}.mx-icon-clear{cursor:pointer}.mx-icon-clear:hover{color:#000c}.mx-datepicker-main{font:14px/1.5 Helvetica Neue,Helvetica,Arial,Microsoft Yahei,sans-serif;color:#73879c;background-color:#fff;border:1px solid #e8e8e8}.mx-datepicker-popup{position:absolute;margin-top:1px;margin-bottom:1px;box-shadow:0 6px 12px #0000002d;z-index:2001}.mx-datepicker-sidebar{float:left;box-sizing:border-box;width:100px;padding:6px;overflow:auto}.mx-datepicker-sidebar+.mx-datepicker-content{margin-left:100px;border-left:1px solid #e8e8e8}.mx-datepicker-body{position:relative;-webkit-user-select:none;user-select:none}.mx-btn-shortcut{display:block;padding:0 6px;line-height:24px}.mx-range-wrapper{display:flex}@media (max-width: 750px){.mx-range-wrapper{flex-direction:column}}.mx-datepicker-header{padding:6px 8px;border-bottom:1px solid #e8e8e8}.mx-datepicker-footer{padding:6px 8px;text-align:right;border-top:1px solid #e8e8e8}.mx-calendar{box-sizing:border-box;width:248px;padding:6px 12px}.mx-calendar+.mx-calendar{border-left:1px solid #e8e8e8}.mx-calendar-header,.mx-time-header{box-sizing:border-box;height:34px;line-height:34px;text-align:center;overflow:hidden}.mx-btn-icon-left,.mx-btn-icon-double-left{float:left}.mx-btn-icon-right,.mx-btn-icon-double-right{float:right}.mx-calendar-header-label{font-size:14px}.mx-calendar-decade-separator{margin:0 2px}.mx-calendar-decade-separator:after{content:"~"}.mx-calendar-content{position:relative;height:224px;box-sizing:border-box}.mx-calendar-content .cell{cursor:pointer}.mx-calendar-content .cell:hover{color:#73879c;background-color:#f3f9fe}.mx-calendar-content .cell.active{color:#fff;background-color:#1284e7}.mx-calendar-content .cell.in-range,.mx-calendar-content .cell.hover-in-range{color:#73879c;background-color:#dbedfb}.mx-calendar-content .cell.disabled{cursor:not-allowed;color:#ccc;background-color:#f3f3f3}.mx-calendar-week-mode .mx-date-row{cursor:pointer}.mx-calendar-week-mode .mx-date-row:hover{background-color:#f3f9fe}.mx-calendar-week-mode .mx-date-row.mx-active-week{background-color:#dbedfb}.mx-calendar-week-mode .mx-date-row .cell:hover,.mx-calendar-week-mode .mx-date-row .cell.active{color:inherit;background-color:transparent}.mx-week-number{opacity:.5}.mx-table{table-layout:fixed;border-collapse:separate;border-spacing:0;width:100%;height:100%;box-sizing:border-box;text-align:center}.mx-table th{padding:0;font-weight:500;vertical-align:middle}.mx-table td{padding:0;vertical-align:middle}.mx-table-date td,.mx-table-date th{height:32px;font-size:12px}.mx-table-date .today{color:#2a90e9}.mx-table-date .cell.not-current-month{color:#ccc;background:none}.mx-time{flex:1;width:224px;background:#fff}.mx-time+.mx-time{border-left:1px solid #e8e8e8}.mx-calendar-time{position:absolute;top:0;left:0;width:100%;height:100%}.mx-time-header{border-bottom:1px solid #e8e8e8}.mx-time-content{height:224px;box-sizing:border-box;overflow:hidden}.mx-time-columns{display:flex;width:100%;height:100%;overflow:hidden}.mx-time-column{flex:1;position:relative;border-left:1px solid #e8e8e8;text-align:center}.mx-time-column:first-child{border-left:0}.mx-time-column .mx-time-list{margin:0;padding:0;list-style:none}.mx-time-column .mx-time-list:after{content:"";display:block;height:192px}.mx-time-column .mx-time-item{cursor:pointer;font-size:12px;height:32px;line-height:32px}.mx-time-column .mx-time-item:hover{color:#73879c;background-color:#f3f9fe}.mx-time-column .mx-time-item.active{color:#1284e7;background-color:transparent;font-weight:700}.mx-time-column .mx-time-item.disabled{cursor:not-allowed;color:#ccc;background-color:#f3f3f3}.mx-time-option{cursor:pointer;padding:8px 10px;font-size:14px;line-height:20px}.mx-time-option:hover{color:#73879c;background-color:#f3f9fe}.mx-time-option.active{color:#1284e7;background-color:transparent;font-weight:700}.mx-time-option.disabled{cursor:not-allowed;color:#ccc;background-color:#f3f3f3}.mx-datepicker[data-v-cfad8df]{-webkit-user-select:none;user-select:none;color:var(--color-main-text)}.mx-datepicker[data-v-cfad8df] svg{fill:var(--color-main-text)}.mx-datepicker[data-v-cfad8df] .mx-input-wrapper .mx-input{width:100%;border:2px solid var(--color-border-maxcontrast);background-color:var(--color-main-background);background-clip:content-box}.mx-datepicker[data-v-cfad8df] .mx-input-wrapper .mx-input:active:not(.disabled),.mx-datepicker[data-v-cfad8df] .mx-input-wrapper .mx-input:hover:not(.disabled),.mx-datepicker[data-v-cfad8df] .mx-input-wrapper .mx-input:focus:not(.disabled){border-color:var(--color-primary-element)}.mx-datepicker[data-v-cfad8df] .mx-input-wrapper:disabled,.mx-datepicker[data-v-cfad8df] .mx-input-wrapper.disabled{cursor:not-allowed;opacity:.7}.mx-datepicker[data-v-cfad8df] .mx-input-wrapper .mx-icon-calendar,.mx-datepicker[data-v-cfad8df] .mx-input-wrapper .mx-icon-clear{color:var(--color-text-lighter)}.mx-datepicker-main{color:var(--color-main-text);border:1px solid var(--color-border);background-color:var(--color-main-background);font-family:var(--font-face)!important;line-height:1.5}.mx-datepicker-main svg{fill:var(--color-main-text)}.mx-datepicker-main.mx-datepicker-popup{z-index:2000;box-shadow:none}.mx-datepicker-main.mx-datepicker-popup .mx-datepicker-sidebar+.mx-datepicker-content{border-left:1px solid var(--color-border)}.mx-datepicker-main.show-week-number .mx-calendar{width:296px}.mx-datepicker-main .mx-datepicker-header{border-bottom:1px solid var(--color-border)}.mx-datepicker-main .mx-datepicker-footer{border-top:1px solid var(--color-border)}.mx-datepicker-main .mx-datepicker-btn-confirm{background-color:var(--color-primary-element);border-color:var(--color-primary-element);color:var(--color-primary-element-text)!important;opacity:1!important}.mx-datepicker-main .mx-datepicker-btn-confirm:hover{background-color:var(--color-primary-element-light)!important;border-color:var(--color-primary-element-light)!important}.mx-datepicker-main .mx-calendar{width:264px;padding:5px}.mx-datepicker-main .mx-calendar.mx-calendar-week-mode{width:296px}.mx-datepicker-main .mx-time+.mx-time,.mx-datepicker-main .mx-calendar+.mx-calendar{border-left:1px solid var(--color-border)}.mx-datepicker-main .mx-range-wrapper{display:flex;overflow:hidden}.mx-datepicker-main .mx-range-wrapper .mx-calendar-content .mx-table-date .cell.active{border-radius:var(--border-radius) 0 0 var(--border-radius)}.mx-datepicker-main .mx-range-wrapper .mx-calendar-content .mx-table-date .cell.in-range+.cell.active{border-radius:0 var(--border-radius) var(--border-radius) 0}.mx-datepicker-main .mx-table{text-align:center}.mx-datepicker-main .mx-table thead>tr>th{text-align:center;opacity:.5;color:var(--color-text-lighter)}.mx-datepicker-main .mx-table tr:focus,.mx-datepicker-main .mx-table tr:hover,.mx-datepicker-main .mx-table tr:active{background-color:transparent}.mx-datepicker-main .mx-table .cell{transition:all .1s ease-in-out;text-align:center;opacity:.7;border-radius:50px}.mx-datepicker-main .mx-table .cell>*{cursor:pointer}.mx-datepicker-main .mx-table .cell.today{opacity:1;color:var(--color-primary-element);font-weight:700}.mx-datepicker-main .mx-table .cell.today:hover,.mx-datepicker-main .mx-table .cell.today:focus{color:var(--color-primary-element-text)}.mx-datepicker-main .mx-table .cell.in-range,.mx-datepicker-main .mx-table .cell.disabled{border-radius:0;font-weight:400}.mx-datepicker-main .mx-table .cell.in-range{opacity:.7}.mx-datepicker-main .mx-table .cell.not-current-month{opacity:.5;color:var(--color-text-lighter)}.mx-datepicker-main .mx-table .cell.not-current-month:hover,.mx-datepicker-main .mx-table .cell.not-current-month:focus{opacity:1}.mx-datepicker-main .mx-table .cell:hover,.mx-datepicker-main .mx-table .cell:focus,.mx-datepicker-main .mx-table .cell.actived,.mx-datepicker-main .mx-table .cell.active,.mx-datepicker-main .mx-table .cell.in-range{opacity:1;color:var(--color-primary-element-text);background-color:var(--color-primary-element);font-weight:700}.mx-datepicker-main .mx-table .cell.disabled{opacity:.5;color:var(--color-text-lighter);border-radius:0;background-color:var(--color-background-darker)}.mx-datepicker-main .mx-table .mx-week-number{text-align:center;opacity:.7;border-radius:50px}.mx-datepicker-main .mx-table span.mx-week-number,.mx-datepicker-main .mx-table li.mx-week-number,.mx-datepicker-main .mx-table span.cell,.mx-datepicker-main .mx-table li.cell{min-height:32px}.mx-datepicker-main .mx-table.mx-table-date thead,.mx-datepicker-main .mx-table.mx-table-date tbody,.mx-datepicker-main .mx-table.mx-table-year,.mx-datepicker-main .mx-table.mx-table-month{display:flex;flex-direction:column;justify-content:space-around}.mx-datepicker-main .mx-table.mx-table-date thead tr,.mx-datepicker-main .mx-table.mx-table-date tbody tr,.mx-datepicker-main .mx-table.mx-table-year tr,.mx-datepicker-main .mx-table.mx-table-month tr{display:inline-flex;align-items:center;flex:1 1 32px;justify-content:space-around;min-height:32px}.mx-datepicker-main .mx-table.mx-table-date thead th,.mx-datepicker-main .mx-table.mx-table-date thead td,.mx-datepicker-main .mx-table.mx-table-date tbody th,.mx-datepicker-main .mx-table.mx-table-date tbody td,.mx-datepicker-main .mx-table.mx-table-year th,.mx-datepicker-main .mx-table.mx-table-year td,.mx-datepicker-main .mx-table.mx-table-month th,.mx-datepicker-main .mx-table.mx-table-month td{display:flex;align-items:center;flex:0 1 32%;justify-content:center;min-width:32px;height:95%;min-height:32px;transition:background .1s ease-in-out}.mx-datepicker-main .mx-table.mx-table-year tr th,.mx-datepicker-main .mx-table.mx-table-year tr td{flex-basis:48%}.mx-datepicker-main .mx-table.mx-table-date tr th,.mx-datepicker-main .mx-table.mx-table-date tr td{flex-basis:32px}.mx-datepicker-main .mx-btn{min-width:32px;height:32px;margin:0 2px!important;padding:7px 10px;cursor:pointer;text-decoration:none;opacity:.5;color:var(--color-text-lighter);border-radius:32px;line-height:20px}.mx-datepicker-main .mx-btn:hover,.mx-datepicker-main .mx-btn:focus{opacity:1;color:var(--color-main-text);background-color:var(--color-background-darker)}.mx-datepicker-main .mx-calendar-header,.mx-datepicker-main .mx-time-header{display:inline-flex;align-items:center;justify-content:space-between;width:100%;height:44px;margin-bottom:4px}.mx-datepicker-main .mx-calendar-header button,.mx-datepicker-main .mx-time-header button{min-width:32px;min-height:32px;margin:0;cursor:pointer;text-align:center;text-decoration:none;opacity:.7;color:var(--color-main-text);border-radius:32px;line-height:20px}.mx-datepicker-main .mx-calendar-header button:hover,.mx-datepicker-main .mx-time-header button:hover,.mx-datepicker-main .mx-calendar-header button:focus,.mx-datepicker-main .mx-time-header button:focus{opacity:1;color:var(--color-main-text);background-color:var(--color-background-darker)}.mx-datepicker-main .mx-calendar-header button.mx-btn-icon-double-left,.mx-datepicker-main .mx-time-header button.mx-btn-icon-double-left,.mx-datepicker-main .mx-calendar-header button.mx-btn-icon-left,.mx-datepicker-main .mx-time-header button.mx-btn-icon-left,.mx-datepicker-main .mx-calendar-header button.mx-btn-icon-right,.mx-datepicker-main .mx-time-header button.mx-btn-icon-right,.mx-datepicker-main .mx-calendar-header button.mx-btn-icon-double-right,.mx-datepicker-main .mx-time-header button.mx-btn-icon-double-right{align-items:center;justify-content:center;width:32px;padding:0}.mx-datepicker-main .mx-calendar-header button.mx-btn-icon-double-left>i,.mx-datepicker-main .mx-time-header button.mx-btn-icon-double-left>i,.mx-datepicker-main .mx-calendar-header button.mx-btn-icon-left>i,.mx-datepicker-main .mx-time-header button.mx-btn-icon-left>i,.mx-datepicker-main .mx-calendar-header button.mx-btn-icon-right>i,.mx-datepicker-main .mx-time-header button.mx-btn-icon-right>i,.mx-datepicker-main .mx-calendar-header button.mx-btn-icon-double-right>i,.mx-datepicker-main .mx-time-header button.mx-btn-icon-double-right>i{background-repeat:no-repeat;background-size:16px;background-position:center;filter:var(--background-invert-if-dark);display:inline-block;width:32px;height:32px}.mx-datepicker-main .mx-calendar-header button.mx-btn-icon-double-left>i:after,.mx-datepicker-main .mx-time-header button.mx-btn-icon-double-left>i:after,.mx-datepicker-main .mx-calendar-header button.mx-btn-icon-double-left>i:before,.mx-datepicker-main .mx-time-header button.mx-btn-icon-double-left>i:before,.mx-datepicker-main .mx-calendar-header button.mx-btn-icon-left>i:after,.mx-datepicker-main .mx-time-header button.mx-btn-icon-left>i:after,.mx-datepicker-main .mx-calendar-header button.mx-btn-icon-left>i:before,.mx-datepicker-main .mx-time-header button.mx-btn-icon-left>i:before,.mx-datepicker-main .mx-calendar-header button.mx-btn-icon-right>i:after,.mx-datepicker-main .mx-time-header button.mx-btn-icon-right>i:after,.mx-datepicker-main .mx-calendar-header button.mx-btn-icon-right>i:before,.mx-datepicker-main .mx-time-header button.mx-btn-icon-right>i:before,.mx-datepicker-main .mx-calendar-header button.mx-btn-icon-double-right>i:after,.mx-datepicker-main .mx-time-header button.mx-btn-icon-double-right>i:after,.mx-datepicker-main .mx-calendar-header button.mx-btn-icon-double-right>i:before,.mx-datepicker-main .mx-time-header button.mx-btn-icon-double-right>i:before{content:none}.mx-datepicker-main .mx-calendar-header button.mx-btn-text,.mx-datepicker-main .mx-time-header button.mx-btn-text{line-height:initial}.mx-datepicker-main .mx-calendar-header .mx-calendar-header-label,.mx-datepicker-main .mx-time-header .mx-calendar-header-label{display:flex}.mx-datepicker-main .mx-calendar-header .mx-btn-icon-double-left>i,.mx-datepicker-main .mx-time-header .mx-btn-icon-double-left>i{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0iIzIyMiI+PHBhdGggZD0iTTE4LjQgNy40TDE3IDZsLTYgNiA2IDYgMS40LTEuNC00LjYtNC42IDQuNi00LjZtLTYgMEwxMSA2bC02IDYgNiA2IDEuNC0xLjRMNy44IDEybDQuNi00LjZ6Ii8+PC9zdmc+)}.mx-datepicker-main .mx-calendar-header .mx-btn-icon-left>i,.mx-datepicker-main .mx-time-header .mx-btn-icon-left>i{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0iIzIyMiI+PHBhdGggZD0iTTE1LjQgMTYuNkwxMC44IDEybDQuNi00LjZMMTQgNmwtNiA2IDYgNiAxLjQtMS40eiIvPjwvc3ZnPg==)}.mx-datepicker-main .mx-calendar-header .mx-btn-icon-right>i,.mx-datepicker-main .mx-time-header .mx-btn-icon-right>i{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0iIzIyMiI+PHBhdGggZD0iTTguNiAxNi42bDQuNi00LjYtNC42LTQuNkwxMCA2bDYgNi02IDYtMS40LTEuNHoiLz48L3N2Zz4=)}.mx-datepicker-main .mx-calendar-header .mx-btn-icon-double-right>i,.mx-datepicker-main .mx-time-header .mx-btn-icon-double-right>i{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0iIzIyMiI+PHBhdGggZD0iTTUuNiA3LjRMNyA2bDYgNi02IDYtMS40LTEuNCA0LjYtNC42LTQuNi00LjZtNiAwTDEzIDZsNiA2LTYgNi0xLjQtMS40IDQuNi00LjYtNC42LTQuNnoiLz48L3N2Zz4=)}.mx-datepicker-main .mx-calendar-header button.mx-btn-icon-right,.mx-datepicker-main .mx-time-header button.mx-btn-icon-right{order:2}.mx-datepicker-main .mx-calendar-header button.mx-btn-icon-double-right,.mx-datepicker-main .mx-time-header button.mx-btn-icon-double-right{order:3}.mx-datepicker-main .mx-calendar-week-mode .mx-date-row .mx-week-number{font-weight:700}.mx-datepicker-main .mx-calendar-week-mode .mx-date-row:hover,.mx-datepicker-main .mx-calendar-week-mode .mx-date-row.mx-active-week{opacity:1;border-radius:50px;background-color:var(--color-background-dark)}.mx-datepicker-main .mx-calendar-week-mode .mx-date-row:hover td,.mx-datepicker-main .mx-calendar-week-mode .mx-date-row.mx-active-week td{background-color:transparent}.mx-datepicker-main .mx-calendar-week-mode .mx-date-row:hover td,.mx-datepicker-main .mx-calendar-week-mode .mx-date-row:hover td:hover,.mx-datepicker-main .mx-calendar-week-mode .mx-date-row:hover td:focus,.mx-datepicker-main .mx-calendar-week-mode .mx-date-row.mx-active-week td,.mx-datepicker-main .mx-calendar-week-mode .mx-date-row.mx-active-week td:hover,.mx-datepicker-main .mx-calendar-week-mode .mx-date-row.mx-active-week td:focus{color:inherit}.mx-datepicker-main .mx-calendar-week-mode .mx-date-row.mx-active-week{color:var(--color-primary-element-text);background-color:var(--color-primary-element)}.mx-datepicker-main .mx-calendar-week-mode .mx-date-row.mx-active-week td{opacity:.7;font-weight:400}.mx-datepicker-main .mx-time{background-color:var(--color-main-background)}.mx-datepicker-main .mx-time .mx-time-header{justify-content:center;border-bottom:1px solid var(--color-border)}.mx-datepicker-main .mx-time .mx-time-column{border-left:1px solid var(--color-border)}.mx-datepicker-main .mx-time .mx-time-option.active,.mx-datepicker-main .mx-time .mx-time-option:hover,.mx-datepicker-main .mx-time .mx-time-item.active,.mx-datepicker-main .mx-time .mx-time-item:hover{color:var(--color-primary-element-text);background-color:var(--color-primary-element)}.mx-datepicker-main .mx-time .mx-time-option.disabled,.mx-datepicker-main .mx-time .mx-time-item.disabled{cursor:not-allowed;opacity:.5;color:var(--color-main-text);background-color:var(--color-main-background)}.material-design-icon[data-v-26676d3b]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.mx-datepicker[data-v-26676d3b] .mx-input-wrapper .mx-input{background-clip:border-box}.datetime-picker-inline-icon[data-v-26676d3b]{opacity:.3;border:none;background-color:transparent;border-radius:0;padding:0!important;margin:0}.datetime-picker-inline-icon--highlighted[data-v-26676d3b]{opacity:.7}.datetime-picker-inline-icon[data-v-26676d3b]:focus,.datetime-picker-inline-icon[data-v-26676d3b]:hover{opacity:1}.v-popper--theme-dropdown.v-popper__popper.timezone-select__popper .v-popper__wrapper{border-radius:var(--border-radius-large)}.v-popper--theme-dropdown.v-popper__popper.timezone-select__popper .v-popper__wrapper .v-popper__inner{padding:4px;border-radius:var(--border-radius-large)}.v-popper--theme-dropdown.v-popper__popper.timezone-select__popper .v-popper__wrapper .v-popper__inner .timezone-popover-wrapper__label{padding:4px 0 4px 14px}.v-popper--theme-dropdown.v-popper__popper.timezone-select__popper .v-popper__wrapper .v-popper__inner .timezone-popover-wrapper__timezone-select.v-select .vs__dropdown-toggle{border-radius:calc(var(--border-radius-large) - 4px)}.v-popper--theme-dropdown.v-popper__popper.timezone-select__popper .v-popper__wrapper .v-popper__inner .timezone-popover-wrapper__timezone-select.v-select.vs--open .vs__dropdown-toggle{border-bottom-left-radius:0;border-bottom-right-radius:0}.v-popper--theme-dropdown.v-popper__popper.timezone-select__popper .v-popper__wrapper .v-popper__inner .timezone-popover-wrapper__timezone-select.v-select.vs--open.select--drop-up .vs__dropdown-toggle{border-radius:0 0 calc(var(--border-radius-large) - 4px) calc(var(--border-radius-large) - 4px)}.vs__dropdown-menu--floating{z-index:100001}body{--vs-search-input-color: var(--color-main-text);--vs-search-input-bg: var(--color-main-background);--vs-search-input-placeholder-color: var(--color-text-maxcontrast);--vs-font-size: var(--default-font-size);--vs-line-height: var(--default-line-height);--vs-state-disabled-bg: var(--color-background-hover);--vs-state-disabled-color: var(--color-text-maxcontrast);--vs-state-disabled-controls-color: var(--color-text-maxcontrast);--vs-state-disabled-cursor: not-allowed;--vs-disabled-bg: var(--color-background-hover);--vs-disabled-color: var(--color-text-maxcontrast);--vs-disabled-cursor: not-allowed;--vs-border-color: var(--color-border-maxcontrast);--vs-border-width: 2px;--vs-border-style: solid;--vs-border-radius: var(--border-radius-large);--vs-controls-color: var(--color-main-text);--vs-selected-bg: var(--color-background-hover);--vs-selected-color: var(--color-main-text);--vs-selected-border-color: var(--vs-border-color);--vs-selected-border-style: var(--vs-border-style);--vs-selected-border-width: var(--vs-border-width);--vs-dropdown-bg: var(--color-main-background);--vs-dropdown-color: var(--color-main-text);--vs-dropdown-z-index: 9999;--vs-dropdown-box-shadow: 0px 2px 2px 0px var(--color-box-shadow);--vs-dropdown-option-padding: 8px 20px;--vs-dropdown-option--active-bg: var(--color-background-hover);--vs-dropdown-option--active-color: var(--color-main-text);--vs-dropdown-option--kb-focus-box-shadow: inset 0px 0px 0px 2px var(--vs-border-color);--vs-dropdown-option--deselect-bg: var(--color-error);--vs-dropdown-option--deselect-color: #fff;--vs-transition-duration: 0ms;--vs-actions-padding: 0 8px 0 4px}.v-select.select{min-height:44px;min-width:260px;margin:0}.v-select.select .vs__selected{height:32px;padding:0 8px 0 12px;border-radius:18px!important;background:var(--color-primary-element-light);border:none}.v-select.select .vs__search,.v-select.select .vs__search:focus{margin:2px 0 0}.v-select.select .vs__dropdown-toggle{padding:0}.v-select.select .vs__clear{margin-right:2px}.v-select.select.vs--open .vs__dropdown-toggle{outline:2px solid var(--color-main-background);border-color:var(--color-main-text);border-bottom-color:transparent}.v-select.select:not(.vs--disabled,.vs--open) .vs__dropdown-toggle:hover{outline:2px solid var(--color-main-background);border-color:var(--color-main-text)}.v-select.select.vs--disabled .vs__search,.v-select.select.vs--disabled .vs__selected{color:var(--color-text-maxcontrast)}.v-select.select.vs--disabled .vs__clear,.v-select.select.vs--disabled .vs__deselect{display:none}.v-select.select--no-wrap .vs__selected-options{flex-wrap:nowrap;overflow:auto;min-width:unset}.v-select.select--no-wrap .vs__selected-options .vs__selected{min-width:unset}.v-select.select--drop-up.vs--open .vs__dropdown-toggle{border-radius:0 0 var(--vs-border-radius) var(--vs-border-radius);border-top-color:transparent;border-bottom-color:var(--color-main-text)}.v-select.select .vs__selected-options{min-height:40px}.v-select.select .vs__selected-options .vs__selected~.vs__search[readonly]{position:absolute}.v-select.select.vs--single.vs--loading .vs__selected,.v-select.select.vs--single.vs--open .vs__selected{max-width:100%;opacity:1;color:var(--color-text-maxcontrast)}.v-select.select.vs--single .vs__selected-options{flex-wrap:nowrap}.vs__dropdown-menu{border-color:var(--color-main-text)!important;outline:2px solid var(--color-main-background);padding:4px!important;box-shadow:none}.vs__dropdown-menu--floating{width:max-content;position:absolute;top:0;left:0}.vs__dropdown-menu--floating-placement-top{border-radius:var(--vs-border-radius) var(--vs-border-radius) 0 0!important;border-top-style:var(--vs-border-style)!important;border-bottom-style:none!important}.vs__dropdown-menu .vs__dropdown-option{border-radius:6px!important}.vs__dropdown-menu .vs__no-options{color:var(--color-text-lighter)!important}.user-select .vs__selected{padding:0 2px!important}:root{--vs-colors--lightest:rgba(60,60,60,.26);--vs-colors--light:rgba(60,60,60,.5);--vs-colors--dark:#333;--vs-colors--darkest:rgba(0,0,0,.15);--vs-search-input-color:inherit;--vs-search-input-bg:#fff;--vs-search-input-placeholder-color:inherit;--vs-font-size:1rem;--vs-line-height:1.4;--vs-state-disabled-bg:#f8f8f8;--vs-state-disabled-color:var(--vs-colors--light);--vs-state-disabled-controls-color:var(--vs-colors--light);--vs-state-disabled-cursor:not-allowed;--vs-border-color:var(--vs-colors--lightest);--vs-border-width:1px;--vs-border-style:solid;--vs-border-radius:4px;--vs-actions-padding:4px 6px 0 3px;--vs-controls-color:var(--vs-colors--light);--vs-controls-size:1;--vs-controls--deselect-text-shadow:0 1px 0 #fff;--vs-selected-bg:#f0f0f0;--vs-selected-color:var(--vs-colors--dark);--vs-selected-border-color:var(--vs-border-color);--vs-selected-border-style:var(--vs-border-style);--vs-selected-border-width:var(--vs-border-width);--vs-dropdown-bg:#fff;--vs-dropdown-color:inherit;--vs-dropdown-z-index:1000;--vs-dropdown-min-width:160px;--vs-dropdown-max-height:350px;--vs-dropdown-box-shadow:0px 3px 6px 0px var(--vs-colors--darkest);--vs-dropdown-option-bg:#000;--vs-dropdown-option-color:var(--vs-dropdown-color);--vs-dropdown-option-padding:3px 20px;--vs-dropdown-option--active-bg:#136cfb;--vs-dropdown-option--active-color:#fff;--vs-dropdown-option--kb-focus-box-shadow:inset 0px 0px 0px 2px #949494;--vs-dropdown-option--deselect-bg:#fb5858;--vs-dropdown-option--deselect-color:#fff;--vs-transition-timing-function:cubic-bezier(1,-.115,.975,.855);--vs-transition-duration:.15s}.v-select{font-family:inherit;position:relative}.v-select,.v-select *{box-sizing:border-box}:root{--vs-transition-timing-function:cubic-bezier(1,.5,.8,1);--vs-transition-duration:.15s}@-webkit-keyframes vSelectSpinner{0%{transform:rotate(0)}to{transform:rotate(1turn)}}@keyframes vSelectSpinner{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.vs__fade-enter-active,.vs__fade-leave-active{pointer-events:none;transition:opacity var(--vs-transition-duration) var(--vs-transition-timing-function)}.vs__fade-enter,.vs__fade-leave-to{opacity:0}:root{--vs-disabled-bg:var(--vs-state-disabled-bg);--vs-disabled-color:var(--vs-state-disabled-color);--vs-disabled-cursor:var(--vs-state-disabled-cursor)}.vs--disabled .vs__clear,.vs--disabled .vs__dropdown-toggle,.vs--disabled .vs__open-indicator,.vs--disabled .vs__search,.vs--disabled .vs__selected{background-color:var(--vs-disabled-bg);cursor:var(--vs-disabled-cursor)}.v-select[dir=rtl] .vs__actions{padding:0 3px 0 6px}.v-select[dir=rtl] .vs__clear{margin-left:6px;margin-right:0}.v-select[dir=rtl] .vs__deselect{margin-left:0;margin-right:2px}.v-select[dir=rtl] .vs__dropdown-menu{text-align:right}.vs__dropdown-toggle{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--vs-search-input-bg);border:var(--vs-border-width) var(--vs-border-style) var(--vs-border-color);border-radius:var(--vs-border-radius);display:flex;padding:0 0 4px;white-space:normal}.vs__selected-options{display:flex;flex-basis:100%;flex-grow:1;flex-wrap:wrap;min-width:0;padding:0 2px;position:relative}.vs__actions{align-items:center;display:flex;padding:var(--vs-actions-padding)}.vs--searchable .vs__dropdown-toggle{cursor:text}.vs--unsearchable .vs__dropdown-toggle{cursor:pointer}.vs--open .vs__dropdown-toggle{border-bottom-color:transparent;border-bottom-left-radius:0;border-bottom-right-radius:0}.vs__open-indicator{fill:var(--vs-controls-color);transform:scale(var(--vs-controls-size));transition:transform var(--vs-transition-duration) var(--vs-transition-timing-function);transition-timing-function:var(--vs-transition-timing-function)}.vs--open .vs__open-indicator{transform:rotate(180deg) scale(var(--vs-controls-size))}.vs--loading .vs__open-indicator{opacity:0}.vs__clear{fill:var(--vs-controls-color);background-color:transparent;border:0;cursor:pointer;margin-right:8px;padding:0}.vs__dropdown-menu{background:var(--vs-dropdown-bg);border:var(--vs-border-width) var(--vs-border-style) var(--vs-border-color);border-radius:0 0 var(--vs-border-radius) var(--vs-border-radius);border-top-style:none;box-shadow:var(--vs-dropdown-box-shadow);box-sizing:border-box;color:var(--vs-dropdown-color);display:block;left:0;list-style:none;margin:0;max-height:var(--vs-dropdown-max-height);min-width:var(--vs-dropdown-min-width);overflow-y:auto;padding:5px 0;position:absolute;text-align:left;top:calc(100% - var(--vs-border-width));width:100%;z-index:var(--vs-dropdown-z-index)}.vs__no-options{text-align:center}.vs__dropdown-option{clear:both;color:var(--vs-dropdown-option-color);cursor:pointer;display:block;line-height:1.42857143;padding:var(--vs-dropdown-option-padding);white-space:nowrap}.vs__dropdown-option--highlight{background:var(--vs-dropdown-option--active-bg);color:var(--vs-dropdown-option--active-color)}.vs__dropdown-option--kb-focus{box-shadow:var(--vs-dropdown-option--kb-focus-box-shadow)}.vs__dropdown-option--deselect{background:var(--vs-dropdown-option--deselect-bg);color:var(--vs-dropdown-option--deselect-color)}.vs__dropdown-option--disabled{background:var(--vs-state-disabled-bg);color:var(--vs-state-disabled-color);cursor:var(--vs-state-disabled-cursor)}.vs__selected{align-items:center;background-color:var(--vs-selected-bg);border:var(--vs-selected-border-width) var(--vs-selected-border-style) var(--vs-selected-border-color);border-radius:var(--vs-border-radius);color:var(--vs-selected-color);display:flex;line-height:var(--vs-line-height);margin:4px 2px 0;min-width:0;padding:0 .25em;z-index:0}.vs__deselect{fill:var(--vs-controls-color);-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;cursor:pointer;display:inline-flex;margin-left:4px;padding:0;text-shadow:var(--vs-controls--deselect-text-shadow)}.vs--single .vs__selected{background-color:transparent;border-color:transparent}.vs--single.vs--loading .vs__selected,.vs--single.vs--open .vs__selected{max-width:100%;opacity:.4;position:absolute}.vs--single.vs--searching .vs__selected{display:none}.vs__search::-webkit-search-cancel-button{display:none}.vs__search::-ms-clear,.vs__search::-webkit-search-decoration,.vs__search::-webkit-search-results-button,.vs__search::-webkit-search-results-decoration{display:none}.vs__search,.vs__search:focus{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:1px solid transparent;border-left:none;box-shadow:none;color:var(--vs-search-input-color);flex-grow:1;font-size:var(--vs-font-size);line-height:var(--vs-line-height);margin:4px 0 0;max-width:100%;outline:none;padding:0 7px;width:0;z-index:1}.vs__search::-moz-placeholder{color:var(--vs-search-input-placeholder-color)}.vs__search:-ms-input-placeholder{color:var(--vs-search-input-placeholder-color)}.vs__search::placeholder{color:var(--vs-search-input-placeholder-color)}.vs--unsearchable .vs__search{opacity:1}.vs--unsearchable:not(.vs--disabled) .vs__search{cursor:pointer}.vs--single.vs--searching:not(.vs--open):not(.vs--loading) .vs__search{opacity:.2}.vs__spinner{align-self:center;-webkit-animation:vSelectSpinner 1.1s linear infinite;animation:vSelectSpinner 1.1s linear infinite;border:.9em solid hsla(0,0%,39%,.1);border-left-color:#3c3c3c73;font-size:5px;opacity:0;overflow:hidden;text-indent:-9999em;transform:translateZ(0) scale(var(--vs-controls--spinner-size,var(--vs-controls-size)));transition:opacity .1s}.vs__spinner,.vs__spinner:after{border-radius:50%;height:5em;transform:scale(var(--vs-controls--spinner-size,var(--vs-controls-size)));width:5em}.vs--loading .vs__spinner{opacity:1}.material-design-icon[data-v-08c4259e]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.name-parts[data-v-08c4259e]{display:flex;max-width:100%;cursor:inherit}.name-parts__first[data-v-08c4259e]{overflow:hidden;text-overflow:ellipsis}.name-parts__first[data-v-08c4259e],.name-parts__last[data-v-08c4259e]{white-space:pre;cursor:inherit}.name-parts__first strong[data-v-08c4259e],.name-parts__last strong[data-v-08c4259e]{font-weight:700}.material-design-icon[data-v-562c32c6]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.option[data-v-562c32c6]{display:flex;align-items:center;width:100%;height:var(--height);cursor:inherit}.option__avatar[data-v-562c32c6]{margin-right:var(--margin)}.option__details[data-v-562c32c6]{display:flex;flex:1 1;flex-direction:column;justify-content:center;min-width:0}.option__lineone[data-v-562c32c6]{color:var(--color-main-text)}.option__linetwo[data-v-562c32c6]{color:var(--color-text-maxcontrast)}.option__lineone[data-v-562c32c6],.option__linetwo[data-v-562c32c6]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;line-height:1.1em}.option__lineone strong[data-v-562c32c6],.option__linetwo strong[data-v-562c32c6]{font-weight:700}.option__icon[data-v-562c32c6]{width:44px;height:44px;color:var(--color-text-maxcontrast)}.option__icon.icon[data-v-562c32c6]{flex:0 0 44px;opacity:.7;background-position:center;background-size:16px}.option__details[data-v-562c32c6],.option__lineone[data-v-562c32c6],.option__linetwo[data-v-562c32c6],.option__icon[data-v-562c32c6]{cursor:inherit}.material-design-icon[data-v-b9bda6c2]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.avatardiv[data-v-b9bda6c2]{position:relative;display:inline-block;width:var(--size);height:var(--size)}.avatardiv--unknown[data-v-b9bda6c2]{position:relative;background-color:var(--color-main-background);white-space:normal}.avatardiv[data-v-b9bda6c2]:not(.avatardiv--unknown){background-color:var(--color-main-background)!important;box-shadow:0 0 5px #0000000d inset}.avatardiv--with-menu[data-v-b9bda6c2]{cursor:pointer}.avatardiv--with-menu .action-item[data-v-b9bda6c2]{position:absolute;top:0;left:0}.avatardiv--with-menu[data-v-b9bda6c2] .action-item__menutoggle{cursor:pointer;opacity:0}.avatardiv--with-menu[data-v-b9bda6c2]:focus .action-item__menutoggle,.avatardiv--with-menu[data-v-b9bda6c2]:hover .action-item__menutoggle,.avatardiv--with-menu.avatardiv--with-menu-loading[data-v-b9bda6c2] .action-item__menutoggle{opacity:1}.avatardiv--with-menu:focus img[data-v-b9bda6c2],.avatardiv--with-menu:hover img[data-v-b9bda6c2],.avatardiv--with-menu.avatardiv--with-menu-loading img[data-v-b9bda6c2]{opacity:.3}.avatardiv--with-menu[data-v-b9bda6c2] .action-item__menutoggle,.avatardiv--with-menu img[data-v-b9bda6c2]{transition:opacity var(--animation-quick)}.avatardiv--with-menu[data-v-b9bda6c2] .button-vue,.avatardiv--with-menu[data-v-b9bda6c2] .button-vue__icon{height:var(--size);min-height:var(--size);width:var(--size)!important;min-width:var(--size)}.avatardiv .avatardiv__initials-wrapper[data-v-b9bda6c2]{display:block;height:var(--size);width:var(--size);background-color:var(--color-main-background);border-radius:50%}.avatardiv .avatardiv__initials-wrapper .avatardiv__initials[data-v-b9bda6c2]{position:absolute;top:0;left:0;display:block;width:100%;text-align:center;font-weight:400}.avatardiv img[data-v-b9bda6c2]{width:100%;height:100%;object-fit:cover}.avatardiv .material-design-icon[data-v-b9bda6c2]{width:var(--size);height:var(--size)}.avatardiv .avatardiv__user-status[data-v-b9bda6c2]{position:absolute;right:-4px;bottom:-4px;max-height:18px;max-width:18px;height:40%;width:40%;line-height:15px;font-size:var(--default-font-size);border:2px solid var(--color-main-background);background-color:var(--color-main-background);background-repeat:no-repeat;background-size:16px;background-position:center;border-radius:50%}.acli:hover .avatardiv .avatardiv__user-status[data-v-b9bda6c2]{border-color:var(--color-background-hover);background-color:var(--color-background-hover)}.acli.active .avatardiv .avatardiv__user-status[data-v-b9bda6c2]{border-color:var(--color-primary-element-light);background-color:var(--color-primary-element-light)}.avatardiv .avatardiv__user-status--online[data-v-b9bda6c2]{background-image:url(data:image/svg+xml;base64,PCEtLSBUaGlzIGljb24gaXMgcGFydCBvZiBNYXRlcmlhbCBVSSBJY29ucy4gQ29weXJpZ2h0IDIwMjAgR29vZ2xlIEluYy4sIEFwYWNoZS0yLjAgTGljZW5zZSAtLT4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZD0iTTQuOCAxMS4yaDYuNFY0LjhINC44djYuNHpNOCAwQzMuNiAwIDAgMy42IDAgOHMzLjYgOCA4IDggOC0zLjYgOC04LTMuNi04LTgtOHoiIGZpbGw9IiM0OWIzODIiLz48L3N2Zz4K)}.avatardiv .avatardiv__user-status--dnd[data-v-b9bda6c2]{background-image:url(data:image/svg+xml;base64,PCEtLSBUaGlzIGljb24gaXMgcGFydCBvZiBNYXRlcmlhbCBVSSBJY29ucy4gQ29weXJpZ2h0IDIwMjAgR29vZ2xlIEluYy4sIEFwYWNoZS0yLjAgTGljZW5zZSAtLT4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZD0iTS00LTRoMjR2MjRILTRWLTR6IiBmaWxsPSJub25lIi8+PHBhdGggZD0iTTggMEMzLjYgMCAwIDMuNiAwIDhzMy42IDggOCA4IDgtMy42IDgtOC0zLjYtOC04LTh6IiBmaWxsPSIjZWQ0ODRjIi8+PHBhdGggZD0iTTUgNi41aDZjLjggMCAxLjUuNyAxLjUgMS41cy0uNyAxLjUtMS41IDEuNUg1Yy0uOCAwLTEuNS0uNy0xLjUtMS41UzQuMiA2LjUgNSA2LjV6IiBmaWxsPSIjZmRmZmZmIi8+PC9zdmc+Cg==);background-color:#fff}.avatardiv .avatardiv__user-status--away[data-v-b9bda6c2]{background-image:url(data:image/svg+xml;base64,PCEtLSBUaGlzIGljb24gaXMgcGFydCBvZiBNYXRlcmlhbCBVSSBJY29ucy4gQ29weXJpZ2h0IDIwMjAgR29vZ2xlIEluYy4sIEFwYWNoZS0yLjAgTGljZW5zZSAtLT4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTS00LTRoMjR2MjRILTR6Ii8+PHBhdGggZD0iTTYuOS4xQzMgLjYtLjEgNC0uMSA4YzAgNC40IDMuNiA4IDggOCA0IDAgNy40LTMgOC02LjktMS4yIDEuMy0yLjkgMi4xLTQuNyAyLjEtMy41IDAtNi40LTIuOS02LjQtNi40IDAtMS45LjgtMy42IDIuMS00Ljd6IiBmaWxsPSIjZjRhMzMxIi8+PC9zdmc+Cg==)}.avatardiv .avatardiv__user-status--icon[data-v-b9bda6c2]{border:none;background-color:transparent}.avatardiv .popovermenu-wrapper[data-v-b9bda6c2]{position:relative;display:inline-block}.avatar-class-icon[data-v-b9bda6c2]{display:block;border-radius:50%;background-color:var(--color-background-darker);height:100%}.material-design-icon[data-v-f797c400]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.action-items[data-v-f797c400]{display:flex;align-items:center}.action-items>button[data-v-f797c400]{margin-right:7px}.action-item[data-v-f797c400]{--open-background-color: var(--color-background-hover, $action-background-hover);position:relative;display:inline-block}.action-item.action-item--primary[data-v-f797c400]{--open-background-color: var(--color-primary-element-hover)}.action-item.action-item--secondary[data-v-f797c400]{--open-background-color: var(--color-primary-element-light-hover)}.action-item.action-item--error[data-v-f797c400]{--open-background-color: var(--color-error-hover)}.action-item.action-item--warning[data-v-f797c400]{--open-background-color: var(--color-warning-hover)}.action-item.action-item--success[data-v-f797c400]{--open-background-color: var(--color-success-hover)}.action-item.action-item--tertiary-no-background[data-v-f797c400]{--open-background-color: transparent}.action-item.action-item--open .action-item__menutoggle[data-v-f797c400]{background-color:var(--open-background-color)}.v-popper--theme-dropdown.v-popper__popper.action-item__popper .v-popper__wrapper{border-radius:var(--border-radius-large);overflow:hidden}.v-popper--theme-dropdown.v-popper__popper.action-item__popper .v-popper__wrapper .v-popper__inner{border-radius:var(--border-radius-large);padding:4px;max-height:calc(50vh - 16px);overflow:auto}.resize-observer{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;border:none;background-color:transparent;pointer-events:none;display:block;overflow:hidden;opacity:0}.resize-observer object{display:block;position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1}.v-popper--theme-dropdown.v-popper__popper{z-index:100000;top:0;left:0;display:block!important;filter:drop-shadow(0 1px 10px var(--color-box-shadow))}.v-popper--theme-dropdown.v-popper__popper .v-popper__inner{padding:0;color:var(--color-main-text);border-radius:var(--border-radius-large);overflow:hidden;background:var(--color-main-background)}.v-popper--theme-dropdown.v-popper__popper .v-popper__arrow-container{position:absolute;z-index:1;width:0;height:0;border-style:solid;border-color:transparent;border-width:10px}.v-popper--theme-dropdown.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-container{bottom:-10px;border-bottom-width:0;border-top-color:var(--color-main-background)}.v-popper--theme-dropdown.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-container{top:-10px;border-top-width:0;border-bottom-color:var(--color-main-background)}.v-popper--theme-dropdown.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-container{left:-10px;border-left-width:0;border-right-color:var(--color-main-background)}.v-popper--theme-dropdown.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-container{right:-10px;border-right-width:0;border-left-color:var(--color-main-background)}.v-popper--theme-dropdown.v-popper__popper[aria-hidden=true]{visibility:hidden;transition:opacity var(--animation-quick),visibility var(--animation-quick);opacity:0}.v-popper--theme-dropdown.v-popper__popper[aria-hidden=false]{visibility:visible;transition:opacity var(--animation-quick);opacity:1}.material-design-icon[data-v-979f3026]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}li.active[data-v-979f3026]{background-color:var(--color-background-hover);border-radius:6px;padding:0}.action-link[data-v-979f3026]{display:flex;align-items:flex-start;width:100%;height:auto;margin:0;padding:0 14px 0 0;box-sizing:border-box;cursor:pointer;white-space:nowrap;color:var(--color-main-text);border:0;border-radius:0;background-color:transparent;box-shadow:none;font-weight:400;font-size:var(--default-font-size);line-height:44px}.action-link>span[data-v-979f3026]{cursor:pointer;white-space:nowrap}.action-link__icon[data-v-979f3026]{width:44px;height:44px;opacity:1;background-position:14px center;background-size:16px;background-repeat:no-repeat}.action-link[data-v-979f3026] .material-design-icon{width:44px;height:44px;opacity:1}.action-link[data-v-979f3026] .material-design-icon .material-design-icon__svg{vertical-align:middle}.action-link__longtext-wrapper[data-v-979f3026],.action-link__longtext[data-v-979f3026]{max-width:220px;line-height:1.6em;padding:10.8px 0;cursor:pointer;text-align:left;overflow:hidden;text-overflow:ellipsis}.action-link__longtext[data-v-979f3026]{cursor:pointer;white-space:pre-wrap!important}.action-link__name[data-v-979f3026]{font-weight:700;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;max-width:100%;display:inline-block}.action-link__menu-icon[data-v-979f3026]{margin-left:auto;margin-right:-14px}.material-design-icon[data-v-22982259]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.native-datetime-picker[data-v-22982259]{display:flex;flex-direction:column}.native-datetime-picker .native-datetime-picker--input[data-v-22982259]{width:100%;flex:0 0 auto;padding-right:4px}.material-design-icon[data-v-31a36009]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.input-field[data-v-31a36009]{position:relative;width:100%;border-radius:var(--border-radius-large);margin-block-start:6px}.input-field__main-wrapper[data-v-31a36009]{height:var(--default-clickable-area);position:relative}.input-field--disabled[data-v-31a36009]{opacity:.7;filter:saturate(.7)}.input-field__input[data-v-31a36009]{margin:0;padding-inline:12px 6px;height:var(--default-clickable-area)!important;width:100%;font-size:var(--default-font-size);text-overflow:ellipsis;background-color:var(--color-main-background);color:var(--color-main-text);border:2px solid var(--color-border-maxcontrast);border-radius:var(--border-radius-large);cursor:pointer;-webkit-appearance:textfield!important;-moz-appearance:textfield!important}.input-field__input--label-outside[data-v-31a36009]{padding-block:0}.input-field__input[data-v-31a36009]:active:not([disabled]),.input-field__input[data-v-31a36009]:hover:not([disabled]),.input-field__input[data-v-31a36009]:focus:not([disabled]){border-color:2px solid var(--color-main-text)!important;box-shadow:0 0 0 2px var(--color-main-background)!important}.input-field__input:focus+.input-field__label[data-v-31a36009],.input-field__input:hover:not(:placeholder-shown)+.input-field__label[data-v-31a36009]{color:var(--color-main-text)}.input-field__input[data-v-31a36009]:not(:focus,.input-field__input--label-outside)::placeholder{opacity:0}.input-field__input[data-v-31a36009]:focus{cursor:text}.input-field__input[data-v-31a36009]:disabled{cursor:default}.input-field__input[data-v-31a36009]:focus-visible{box-shadow:unset!important}.input-field__input--leading-icon[data-v-31a36009]{padding-inline-start:var(--default-clickable-area)}.input-field__input--trailing-icon[data-v-31a36009]{padding-inline-end:var(--default-clickable-area)}.input-field__input--success[data-v-31a36009]{border-color:var(--color-success)!important}.input-field__input--success[data-v-31a36009]:focus-visible{box-shadow:#f8fafc 0 0 0 2px,var(--color-primary-element) 0 0 0 4px,#0000000d 0 1px 2px}.input-field__input--error[data-v-31a36009]{border-color:var(--color-error)!important}.input-field__input--error[data-v-31a36009]:focus-visible{box-shadow:#f8fafc 0 0 0 2px,var(--color-primary-element) 0 0 0 4px,#0000000d 0 1px 2px}.input-field__label[data-v-31a36009]{position:absolute;margin-inline:14px 0;max-width:fit-content;inset-block-start:11px;inset-inline:0;color:var(--color-text-maxcontrast);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none;transition:height var(--animation-quick),inset-block-start var(--animation-quick),font-size var(--animation-quick),color var(--animation-quick),background-color var(--animation-quick) var(--animation-slow)}.input-field__label--leading-icon[data-v-31a36009]{margin-inline-start:var(--default-clickable-area)}.input-field__label--trailing-icon[data-v-31a36009]{margin-inline-end:var(--default-clickable-area)}.input-field__input:focus+.input-field__label[data-v-31a36009],.input-field__input:not(:placeholder-shown)+.input-field__label[data-v-31a36009]{inset-block-start:-10px;font-size:13px;font-weight:500;border-radius:var(--default-grid-baseline) var(--default-grid-baseline) 0 0;background-color:var(--color-main-background);padding-inline:5px;margin-inline-start:9px;transition:height var(--animation-quick),inset-block-start var(--animation-quick),font-size var(--animation-quick),color var(--animation-quick)}.input-field__input:focus+.input-field__label--leading-icon[data-v-31a36009],.input-field__input:not(:placeholder-shown)+.input-field__label--leading-icon[data-v-31a36009]{margin-inline-start:41px}.input-field__icon[data-v-31a36009]{position:absolute;height:var(--default-clickable-area);width:var(--default-clickable-area);display:flex;align-items:center;justify-content:center;opacity:.7}.input-field__icon--leading[data-v-31a36009]{inset-block-end:0;inset-inline-start:2px}.input-field__icon--trailing[data-v-31a36009]{inset-block-end:0;inset-inline-end:2px}.input-field__trailing-button.button-vue[data-v-31a36009]{position:absolute;top:0;right:0;border-radius:var(--border-radius-large)}.input-field__helper-text-message[data-v-31a36009]{padding-block:4px;display:flex;align-items:center}.input-field__helper-text-message__icon[data-v-31a36009]{margin-inline-end:8px}.input-field__helper-text-message--error[data-v-31a36009]{color:var(--color-error-text)}.input-field__helper-text-message--success[data-v-31a36009]{color:var(--color-success-text)}.material-design-icon[data-v-b5f9046e]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}li.active[data-v-b5f9046e]{background-color:var(--color-background-hover);border-radius:6px;padding:0}.action--disabled[data-v-b5f9046e]{pointer-events:none;opacity:.5}.action--disabled[data-v-b5f9046e]:hover,.action--disabled[data-v-b5f9046e]:focus{cursor:default;opacity:.5}.action--disabled *[data-v-b5f9046e]{opacity:1!important}.action-radio[data-v-b5f9046e]{display:flex;align-items:flex-start;width:100%;height:auto;margin:0;padding:0;cursor:pointer;white-space:nowrap;color:var(--color-main-text);border:0;border-radius:0;background-color:transparent;box-shadow:none;font-weight:400;line-height:44px}.action-radio__radio[data-v-b5f9046e]{position:absolute;top:auto;left:-10000px;overflow:hidden;width:1px;height:1px}.action-radio__label[data-v-b5f9046e]{display:flex;align-items:center;width:100%;padding:0 14px 0 0!important}.action-radio__label[data-v-b5f9046e]:before{margin:0 14px!important}.action-radio--disabled[data-v-b5f9046e],.action-radio--disabled .action-radio__label[data-v-b5f9046e]{cursor:pointer}.material-design-icon[data-v-bfe3e3d6]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}li.active[data-v-bfe3e3d6]{background-color:var(--color-background-hover);border-radius:6px;padding:0}.action-router[data-v-bfe3e3d6]{display:flex;align-items:flex-start;width:100%;height:auto;margin:0;padding:0 14px 0 0;box-sizing:border-box;cursor:pointer;white-space:nowrap;color:var(--color-main-text);border:0;border-radius:0;background-color:transparent;box-shadow:none;font-weight:400;font-size:var(--default-font-size);line-height:44px}.action-router>span[data-v-bfe3e3d6]{cursor:pointer;white-space:nowrap}.action-router__icon[data-v-bfe3e3d6]{width:44px;height:44px;opacity:1;background-position:14px center;background-size:16px;background-repeat:no-repeat}.action-router[data-v-bfe3e3d6] .material-design-icon{width:44px;height:44px;opacity:1}.action-router[data-v-bfe3e3d6] .material-design-icon .material-design-icon__svg{vertical-align:middle}.action-router__longtext-wrapper[data-v-bfe3e3d6],.action-router__longtext[data-v-bfe3e3d6]{max-width:220px;line-height:1.6em;padding:10.8px 0;cursor:pointer;text-align:left;overflow:hidden;text-overflow:ellipsis}.action-router__longtext[data-v-bfe3e3d6]{cursor:pointer;white-space:pre-wrap!important}.action-router__name[data-v-bfe3e3d6]{font-weight:700;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;max-width:100%;display:inline-block}.action-router__menu-icon[data-v-bfe3e3d6]{margin-left:auto;margin-right:-14px}.action--disabled[data-v-bfe3e3d6]{pointer-events:none;opacity:.5}.action--disabled[data-v-bfe3e3d6]:hover,.action--disabled[data-v-bfe3e3d6]:focus{cursor:default;opacity:.5}.action--disabled *[data-v-bfe3e3d6]{opacity:1!important}.material-design-icon[data-v-66fbe6db]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.action-separator[data-v-66fbe6db]{height:0;margin:5px 10px 5px 15px;border-bottom:1px solid var(--color-border-dark);cursor:default}.material-design-icon[data-v-c788d299]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}li.active[data-v-c788d299]{background-color:var(--color-background-hover);border-radius:6px;padding:0}.action-text[data-v-c788d299]{display:flex;align-items:flex-start;width:100%;height:auto;margin:0;padding:0 14px 0 0;box-sizing:border-box;cursor:pointer;white-space:nowrap;color:var(--color-main-text);border:0;border-radius:0;background-color:transparent;box-shadow:none;font-weight:400;font-size:var(--default-font-size);line-height:44px}.action-text>span[data-v-c788d299]{cursor:pointer;white-space:nowrap}.action-text__icon[data-v-c788d299]{width:44px;height:44px;opacity:1;background-position:14px center;background-size:16px;background-repeat:no-repeat}.action-text[data-v-c788d299] .material-design-icon{width:44px;height:44px;opacity:1}.action-text[data-v-c788d299] .material-design-icon .material-design-icon__svg{vertical-align:middle}.action-text__longtext-wrapper[data-v-c788d299],.action-text__longtext[data-v-c788d299]{max-width:220px;line-height:1.6em;padding:10.8px 0;cursor:pointer;text-align:left;overflow:hidden;text-overflow:ellipsis}.action-text__longtext[data-v-c788d299]{cursor:pointer;white-space:pre-wrap!important}.action-text__name[data-v-c788d299]{font-weight:700;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;max-width:100%;display:inline-block}.action-text__menu-icon[data-v-c788d299]{margin-left:auto;margin-right:-14px}.action--disabled[data-v-c788d299]{pointer-events:none;opacity:.5}.action--disabled[data-v-c788d299]:hover,.action--disabled[data-v-c788d299]:focus{cursor:default;opacity:.5}.action--disabled *[data-v-c788d299]{opacity:1!important}.action-text[data-v-c788d299],.action-text span[data-v-c788d299]{cursor:default}.material-design-icon[data-v-b0b05af8]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}button[data-v-b0b05af8]:not(.button-vue),input[data-v-b0b05af8]:not([type=range]),textarea[data-v-b0b05af8]{margin:0;padding:7px 6px;cursor:text;color:var(--color-text-lighter);border:1px solid var(--color-border-dark);border-radius:var(--border-radius);outline:none;background-color:var(--color-main-background);font-size:13px}button[data-v-b0b05af8]:not(.button-vue):not(:disabled):not(.primary):hover,button[data-v-b0b05af8]:not(.button-vue):not(:disabled):not(.primary):focus,button:not(.button-vue):not(:disabled):not(.primary).active[data-v-b0b05af8],input[data-v-b0b05af8]:not([type=range]):not(:disabled):not(.primary):hover,input[data-v-b0b05af8]:not([type=range]):not(:disabled):not(.primary):focus,input:not([type=range]):not(:disabled):not(.primary).active[data-v-b0b05af8],textarea[data-v-b0b05af8]:not(:disabled):not(.primary):hover,textarea[data-v-b0b05af8]:not(:disabled):not(.primary):focus,textarea:not(:disabled):not(.primary).active[data-v-b0b05af8]{border-color:var(--color-primary-element);outline:none}button[data-v-b0b05af8]:not(.button-vue):not(:disabled):not(.primary):active,input[data-v-b0b05af8]:not([type=range]):not(:disabled):not(.primary):active,textarea[data-v-b0b05af8]:not(:disabled):not(.primary):active{color:var(--color-text-light);outline:none;background-color:var(--color-main-background)}button[data-v-b0b05af8]:not(.button-vue):disabled,input[data-v-b0b05af8]:not([type=range]):disabled,textarea[data-v-b0b05af8]:disabled{cursor:default;opacity:.5;color:var(--color-text-maxcontrast);background-color:var(--color-background-dark)}button[data-v-b0b05af8]:not(.button-vue):required,input[data-v-b0b05af8]:not([type=range]):required,textarea[data-v-b0b05af8]:required{box-shadow:none}button[data-v-b0b05af8]:not(.button-vue):invalid,input[data-v-b0b05af8]:not([type=range]):invalid,textarea[data-v-b0b05af8]:invalid{border-color:var(--color-error);box-shadow:none!important}button:not(.button-vue).primary[data-v-b0b05af8],input:not([type=range]).primary[data-v-b0b05af8],textarea.primary[data-v-b0b05af8]{cursor:pointer;color:var(--color-primary-element-text);border-color:var(--color-primary-element);background-color:var(--color-primary-element)}button:not(.button-vue).primary[data-v-b0b05af8]:not(:disabled):hover,button:not(.button-vue).primary[data-v-b0b05af8]:not(:disabled):focus,button:not(.button-vue).primary[data-v-b0b05af8]:not(:disabled):active,input:not([type=range]).primary[data-v-b0b05af8]:not(:disabled):hover,input:not([type=range]).primary[data-v-b0b05af8]:not(:disabled):focus,input:not([type=range]).primary[data-v-b0b05af8]:not(:disabled):active,textarea.primary[data-v-b0b05af8]:not(:disabled):hover,textarea.primary[data-v-b0b05af8]:not(:disabled):focus,textarea.primary[data-v-b0b05af8]:not(:disabled):active{border-color:var(--color-primary-element-light);background-color:var(--color-primary-element-light)}button:not(.button-vue).primary[data-v-b0b05af8]:not(:disabled):active,input:not([type=range]).primary[data-v-b0b05af8]:not(:disabled):active,textarea.primary[data-v-b0b05af8]:not(:disabled):active{color:var(--color-primary-element-text-dark)}button:not(.button-vue).primary[data-v-b0b05af8]:disabled,input:not([type=range]).primary[data-v-b0b05af8]:disabled,textarea.primary[data-v-b0b05af8]:disabled{cursor:default;color:var(--color-primary-element-text-dark);background-color:var(--color-primary-element)}/** +(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(`@charset "UTF-8";.material-design-icon[data-v-eb1078f7]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.content[data-v-eb1078f7]{box-sizing:border-box;margin:var(--body-container-margin);margin-top:50px;display:flex;width:calc(100% - var(--body-container-margin) * 2);border-radius:var(--body-container-radius);height:var(--body-height);overflow:hidden;padding:0}.content[data-v-eb1078f7]:not(.with-sidebar--full){position:fixed}.content[data-v-eb1078f7] *{box-sizing:border-box}.material-design-icon[data-v-5244e83e]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.app-details-toggle[data-v-5244e83e]{position:fixed;width:44px;height:44px;padding:14px;cursor:pointer;opacity:.6;transform:rotate(180deg);background-color:var(--color-main-background);z-index:2000}.app-details-toggle[data-v-5244e83e]:active,.app-details-toggle[data-v-5244e83e]:hover,.app-details-toggle[data-v-5244e83e]:focus{opacity:1}.material-design-icon[data-v-424ef3d1]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.app-content[data-v-424ef3d1]{position:initial;z-index:1000;flex-basis:100vw;height:100%;margin:0!important;background-color:var(--color-main-background);min-width:0}.app-content[data-v-424ef3d1]:not(.app-content--has-list){overflow:auto}.app-content-wrapper[data-v-424ef3d1]{position:relative;width:100%;height:100%}.app-content-wrapper--mobile.app-content-wrapper--show-list[data-v-424ef3d1] .app-content-list{display:flex}.app-content-wrapper--mobile.app-content-wrapper--show-list[data-v-424ef3d1] .app-content-details,.app-content-wrapper--mobile.app-content-wrapper--show-details[data-v-424ef3d1] .app-content-list{display:none}.app-content-wrapper--mobile.app-content-wrapper--show-details[data-v-424ef3d1] .app-content-details{display:block}[data-v-424ef3d1] .splitpanes.default-theme .app-content-list{max-width:none;scrollbar-width:auto}[data-v-424ef3d1] .splitpanes.default-theme .splitpanes__pane{background-color:transparent;transition:none}[data-v-424ef3d1] .splitpanes.default-theme .splitpanes__pane-list{min-width:300px;position:-webkit-sticky;position:sticky;top:var(--header-height)}@media only screen and (width < 1024px){[data-v-424ef3d1] .splitpanes.default-theme .splitpanes__pane-list{display:none}}[data-v-424ef3d1] .splitpanes.default-theme .splitpanes__pane-details{overflow-y:auto}@media only screen and (width < 1024px){[data-v-424ef3d1] .splitpanes.default-theme .splitpanes__pane-details{min-width:100%}}[data-v-424ef3d1] .splitpanes.default-theme .splitpanes__splitter{width:9px;margin-left:-5px;background-color:transparent;border-left:none}[data-v-424ef3d1] .splitpanes.default-theme .splitpanes__splitter:before,[data-v-424ef3d1] .splitpanes.default-theme .splitpanes__splitter:after{display:none}.material-design-icon[data-v-f507b497]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.button-vue[data-v-f507b497]{position:relative;width:fit-content;overflow:hidden;border:0;padding:0;font-size:var(--default-font-size);font-weight:700;min-height:44px;min-width:44px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:22px;transition-property:color,border-color,background-color;transition-duration:.1s;transition-timing-function:linear;color:var(--color-primary-element-light-text);background-color:var(--color-primary-element-light)}.button-vue *[data-v-f507b497],.button-vue span[data-v-f507b497]{cursor:pointer}.button-vue[data-v-f507b497]:focus{outline:none}.button-vue[data-v-f507b497]:disabled{cursor:default;opacity:.5;filter:saturate(.7)}.button-vue:disabled *[data-v-f507b497]{cursor:default}.button-vue[data-v-f507b497]:hover:not(:disabled){background-color:var(--color-primary-element-light-hover)}.button-vue[data-v-f507b497]:active{background-color:var(--color-primary-element-light)}.button-vue__wrapper[data-v-f507b497]{display:inline-flex;align-items:center;justify-content:center;width:100%}.button-vue--end .button-vue__wrapper[data-v-f507b497]{justify-content:end}.button-vue--start .button-vue__wrapper[data-v-f507b497]{justify-content:start}.button-vue--reverse .button-vue__wrapper[data-v-f507b497]{flex-direction:row-reverse}.button-vue--reverse.button-vue--icon-and-text[data-v-f507b497]{padding-inline:calc(var(--default-grid-baseline) * 4) var(--default-grid-baseline)}.button-vue__icon[data-v-f507b497]{height:44px;width:44px;min-height:44px;min-width:44px;display:flex;justify-content:center;align-items:center}.button-vue__text[data-v-f507b497]{font-weight:700;margin-bottom:1px;padding:2px 0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.button-vue--icon-only[data-v-f507b497]{width:44px!important}.button-vue--text-only[data-v-f507b497]{padding:0 12px}.button-vue--text-only .button-vue__text[data-v-f507b497]{margin-left:4px;margin-right:4px}.button-vue--icon-and-text[data-v-f507b497]{padding-block:0;padding-inline:var(--default-grid-baseline) calc(var(--default-grid-baseline) * 4)}.button-vue--wide[data-v-f507b497]{width:100%}.button-vue[data-v-f507b497]:focus-visible{outline:2px solid var(--color-main-text)!important;box-shadow:0 0 0 4px var(--color-main-background)!important}.button-vue:focus-visible.button-vue--vue-tertiary-on-primary[data-v-f507b497]{outline:2px solid var(--color-primary-element-text);border-radius:var(--border-radius);background-color:transparent}.button-vue--vue-primary[data-v-f507b497]{background-color:var(--color-primary-element);color:var(--color-primary-element-text)}.button-vue--vue-primary[data-v-f507b497]:hover:not(:disabled){background-color:var(--color-primary-element-hover)}.button-vue--vue-primary[data-v-f507b497]:active{background-color:var(--color-primary-element)}.button-vue--vue-secondary[data-v-f507b497]{color:var(--color-primary-element-light-text);background-color:var(--color-primary-element-light)}.button-vue--vue-secondary[data-v-f507b497]:hover:not(:disabled){color:var(--color-primary-element-light-text);background-color:var(--color-primary-element-light-hover)}.button-vue--vue-tertiary[data-v-f507b497]{color:var(--color-main-text);background-color:transparent}.button-vue--vue-tertiary[data-v-f507b497]:hover:not(:disabled){background-color:var(--color-background-hover)}.button-vue--vue-tertiary-no-background[data-v-f507b497]{color:var(--color-main-text);background-color:transparent}.button-vue--vue-tertiary-no-background[data-v-f507b497]:hover:not(:disabled){background-color:transparent}.button-vue--vue-tertiary-on-primary[data-v-f507b497]{color:var(--color-primary-element-text);background-color:transparent}.button-vue--vue-tertiary-on-primary[data-v-f507b497]:hover:not(:disabled){background-color:transparent}.button-vue--vue-success[data-v-f507b497]{background-color:var(--color-success);color:#fff}.button-vue--vue-success[data-v-f507b497]:hover:not(:disabled){background-color:var(--color-success-hover)}.button-vue--vue-success[data-v-f507b497]:active{background-color:var(--color-success)}.button-vue--vue-warning[data-v-f507b497]{background-color:var(--color-warning);color:#fff}.button-vue--vue-warning[data-v-f507b497]:hover:not(:disabled){background-color:var(--color-warning-hover)}.button-vue--vue-warning[data-v-f507b497]:active{background-color:var(--color-warning)}.button-vue--vue-error[data-v-f507b497]{background-color:var(--color-error);color:#fff}.button-vue--vue-error[data-v-f507b497]:hover:not(:disabled){background-color:var(--color-error-hover)}.button-vue--vue-error[data-v-f507b497]:active{background-color:var(--color-error)}.v-popper--theme-tooltip.v-popper__popper{position:absolute;z-index:100000;top:0;right:auto;left:auto;display:block;margin:0;padding:0;text-align:left;text-align:start;opacity:0;line-height:1.6;line-break:auto;filter:drop-shadow(0 1px 10px var(--color-box-shadow))}.v-popper--theme-tooltip.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-container{bottom:-10px;border-bottom-width:0;border-top-color:var(--color-main-background)}.v-popper--theme-tooltip.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-container{top:-10px;border-top-width:0;border-bottom-color:var(--color-main-background)}.v-popper--theme-tooltip.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-container{right:100%;border-left-width:0;border-right-color:var(--color-main-background)}.v-popper--theme-tooltip.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-container{left:100%;border-right-width:0;border-left-color:var(--color-main-background)}.v-popper--theme-tooltip.v-popper__popper[aria-hidden=true]{visibility:hidden;transition:opacity .15s,visibility .15s;opacity:0}.v-popper--theme-tooltip.v-popper__popper[aria-hidden=false]{visibility:visible;transition:opacity .15s;opacity:1}.v-popper--theme-tooltip .v-popper__inner{max-width:350px;padding:5px 8px;text-align:center;color:var(--color-main-text);border-radius:var(--border-radius);background-color:var(--color-main-background)}.v-popper--theme-tooltip .v-popper__arrow-container{position:absolute;z-index:1;width:0;height:0;margin:0;border-style:solid;border-color:transparent;border-width:10px}.splitpanes{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;height:100%}.splitpanes--vertical{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.splitpanes--horizontal{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.splitpanes--dragging *{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.splitpanes__pane{width:100%;height:100%;overflow:hidden}.splitpanes--vertical .splitpanes__pane{-webkit-transition:width .2s ease-out;-o-transition:width .2s ease-out;transition:width .2s ease-out}.splitpanes--horizontal .splitpanes__pane{-webkit-transition:height .2s ease-out;-o-transition:height .2s ease-out;transition:height .2s ease-out}.splitpanes--dragging .splitpanes__pane{-webkit-transition:none;-o-transition:none;transition:none}.splitpanes__splitter{-ms-touch-action:none;touch-action:none}.splitpanes--vertical>.splitpanes__splitter{min-width:1px;cursor:col-resize}.splitpanes--horizontal>.splitpanes__splitter{min-height:1px;cursor:row-resize}.splitpanes.default-theme .splitpanes__pane{background-color:#f2f2f2}.splitpanes.default-theme .splitpanes__splitter{background-color:#fff;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;-ms-flex-negative:0;flex-shrink:0}.splitpanes.default-theme .splitpanes__splitter:before,.splitpanes.default-theme .splitpanes__splitter:after{content:"";position:absolute;top:50%;left:50%;background-color:#00000026;-webkit-transition:background-color .3s;-o-transition:background-color .3s;transition:background-color .3s}.splitpanes.default-theme .splitpanes__splitter:hover:before,.splitpanes.default-theme .splitpanes__splitter:hover:after{background-color:#00000040}.splitpanes.default-theme .splitpanes__splitter:first-child{cursor:auto}.default-theme.splitpanes .splitpanes .splitpanes__splitter{z-index:1}.default-theme.splitpanes--vertical>.splitpanes__splitter,.default-theme .splitpanes--vertical>.splitpanes__splitter{width:7px;border-left:1px solid #eee;margin-left:-1px}.default-theme.splitpanes--vertical>.splitpanes__splitter:before,.default-theme.splitpanes--vertical>.splitpanes__splitter:after,.default-theme .splitpanes--vertical>.splitpanes__splitter:before,.default-theme .splitpanes--vertical>.splitpanes__splitter:after{-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:1px;height:30px}.default-theme.splitpanes--vertical>.splitpanes__splitter:before,.default-theme .splitpanes--vertical>.splitpanes__splitter:before{margin-left:-2px}.default-theme.splitpanes--vertical>.splitpanes__splitter:after,.default-theme .splitpanes--vertical>.splitpanes__splitter:after{margin-left:1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter,.default-theme .splitpanes--horizontal>.splitpanes__splitter{height:7px;border-top:1px solid #eee;margin-top:-1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:before,.default-theme.splitpanes--horizontal>.splitpanes__splitter:after,.default-theme .splitpanes--horizontal>.splitpanes__splitter:before,.default-theme .splitpanes--horizontal>.splitpanes__splitter:after{-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translate(-50%);width:30px;height:1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:before,.default-theme .splitpanes--horizontal>.splitpanes__splitter:before{margin-top:-2px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:after,.default-theme .splitpanes--horizontal>.splitpanes__splitter:after{margin-top:1px}.material-design-icon[data-v-6176f396]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.icon-vue[data-v-6176f396]{display:flex;justify-content:center;align-items:center;min-width:44px;min-height:44px;opacity:1}.icon-vue[data-v-6176f396] svg{fill:currentColor;width:20px;height:20px;max-width:20px;max-height:20px}.material-design-icon[data-v-458108e7]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.empty-content[data-v-458108e7]{display:flex;align-items:center;flex-direction:column;justify-content:center;flex-grow:1}.modal-wrapper .empty-content[data-v-458108e7]{margin-top:5vh;margin-bottom:5vh}.empty-content__icon[data-v-458108e7]{display:flex;align-items:center;justify-content:center;width:64px;height:64px;margin:0 auto 15px;opacity:.4;background-repeat:no-repeat;background-position:center;background-size:64px}.empty-content__icon[data-v-458108e7] svg{width:64px!important;height:64px!important;max-width:64px!important;max-height:64px!important}.empty-content__name[data-v-458108e7]{margin-bottom:10px;text-align:center;font-weight:700;font-size:20px;line-height:30px}.empty-content__description[data-v-458108e7]{color:var(--color-text-maxcontrast)}.empty-content__action[data-v-458108e7]{margin-top:8px}.modal-wrapper .empty-content__action[data-v-458108e7]{margin-top:20px;display:flex}.material-design-icon[data-v-b9bda6c2]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.avatardiv[data-v-b9bda6c2]{position:relative;display:inline-block;width:var(--size);height:var(--size)}.avatardiv--unknown[data-v-b9bda6c2]{position:relative;background-color:var(--color-main-background);white-space:normal}.avatardiv[data-v-b9bda6c2]:not(.avatardiv--unknown){background-color:var(--color-main-background)!important;box-shadow:0 0 5px #0000000d inset}.avatardiv--with-menu[data-v-b9bda6c2]{cursor:pointer}.avatardiv--with-menu .action-item[data-v-b9bda6c2]{position:absolute;top:0;left:0}.avatardiv--with-menu[data-v-b9bda6c2] .action-item__menutoggle{cursor:pointer;opacity:0}.avatardiv--with-menu[data-v-b9bda6c2]:focus .action-item__menutoggle,.avatardiv--with-menu[data-v-b9bda6c2]:hover .action-item__menutoggle,.avatardiv--with-menu.avatardiv--with-menu-loading[data-v-b9bda6c2] .action-item__menutoggle{opacity:1}.avatardiv--with-menu:focus img[data-v-b9bda6c2],.avatardiv--with-menu:hover img[data-v-b9bda6c2],.avatardiv--with-menu.avatardiv--with-menu-loading img[data-v-b9bda6c2]{opacity:.3}.avatardiv--with-menu[data-v-b9bda6c2] .action-item__menutoggle,.avatardiv--with-menu img[data-v-b9bda6c2]{transition:opacity var(--animation-quick)}.avatardiv--with-menu[data-v-b9bda6c2] .button-vue,.avatardiv--with-menu[data-v-b9bda6c2] .button-vue__icon{height:var(--size);min-height:var(--size);width:var(--size)!important;min-width:var(--size)}.avatardiv .avatardiv__initials-wrapper[data-v-b9bda6c2]{display:block;height:var(--size);width:var(--size);background-color:var(--color-main-background);border-radius:50%}.avatardiv .avatardiv__initials-wrapper .avatardiv__initials[data-v-b9bda6c2]{position:absolute;top:0;left:0;display:block;width:100%;text-align:center;font-weight:400}.avatardiv img[data-v-b9bda6c2]{width:100%;height:100%;object-fit:cover}.avatardiv .material-design-icon[data-v-b9bda6c2]{width:var(--size);height:var(--size)}.avatardiv .avatardiv__user-status[data-v-b9bda6c2]{position:absolute;right:-4px;bottom:-4px;max-height:18px;max-width:18px;height:40%;width:40%;line-height:15px;font-size:var(--default-font-size);border:2px solid var(--color-main-background);background-color:var(--color-main-background);background-repeat:no-repeat;background-size:16px;background-position:center;border-radius:50%}.acli:hover .avatardiv .avatardiv__user-status[data-v-b9bda6c2]{border-color:var(--color-background-hover);background-color:var(--color-background-hover)}.acli.active .avatardiv .avatardiv__user-status[data-v-b9bda6c2]{border-color:var(--color-primary-element-light);background-color:var(--color-primary-element-light)}.avatardiv .avatardiv__user-status--online[data-v-b9bda6c2]{background-image:url(data:image/svg+xml;base64,PCEtLSBUaGlzIGljb24gaXMgcGFydCBvZiBNYXRlcmlhbCBVSSBJY29ucy4gQ29weXJpZ2h0IDIwMjAgR29vZ2xlIEluYy4sIEFwYWNoZS0yLjAgTGljZW5zZSAtLT4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZD0iTTQuOCAxMS4yaDYuNFY0LjhINC44djYuNHpNOCAwQzMuNiAwIDAgMy42IDAgOHMzLjYgOCA4IDggOC0zLjYgOC04LTMuNi04LTgtOHoiIGZpbGw9IiM0OWIzODIiLz48L3N2Zz4K)}.avatardiv .avatardiv__user-status--dnd[data-v-b9bda6c2]{background-image:url(data:image/svg+xml;base64,PCEtLSBUaGlzIGljb24gaXMgcGFydCBvZiBNYXRlcmlhbCBVSSBJY29ucy4gQ29weXJpZ2h0IDIwMjAgR29vZ2xlIEluYy4sIEFwYWNoZS0yLjAgTGljZW5zZSAtLT4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZD0iTS00LTRoMjR2MjRILTRWLTR6IiBmaWxsPSJub25lIi8+PHBhdGggZD0iTTggMEMzLjYgMCAwIDMuNiAwIDhzMy42IDggOCA4IDgtMy42IDgtOC0zLjYtOC04LTh6IiBmaWxsPSIjZWQ0ODRjIi8+PHBhdGggZD0iTTUgNi41aDZjLjggMCAxLjUuNyAxLjUgMS41cy0uNyAxLjUtMS41IDEuNUg1Yy0uOCAwLTEuNS0uNy0xLjUtMS41UzQuMiA2LjUgNSA2LjV6IiBmaWxsPSIjZmRmZmZmIi8+PC9zdmc+Cg==);background-color:#fff}.avatardiv .avatardiv__user-status--away[data-v-b9bda6c2]{background-image:url(data:image/svg+xml;base64,PCEtLSBUaGlzIGljb24gaXMgcGFydCBvZiBNYXRlcmlhbCBVSSBJY29ucy4gQ29weXJpZ2h0IDIwMjAgR29vZ2xlIEluYy4sIEFwYWNoZS0yLjAgTGljZW5zZSAtLT4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTS00LTRoMjR2MjRILTR6Ii8+PHBhdGggZD0iTTYuOS4xQzMgLjYtLjEgNC0uMSA4YzAgNC40IDMuNiA4IDggOCA0IDAgNy40LTMgOC02LjktMS4yIDEuMy0yLjkgMi4xLTQuNyAyLjEtMy41IDAtNi40LTIuOS02LjQtNi40IDAtMS45LjgtMy42IDIuMS00Ljd6IiBmaWxsPSIjZjRhMzMxIi8+PC9zdmc+Cg==)}.avatardiv .avatardiv__user-status--icon[data-v-b9bda6c2]{border:none;background-color:transparent}.avatardiv .popovermenu-wrapper[data-v-b9bda6c2]{position:relative;display:inline-block}.avatar-class-icon[data-v-b9bda6c2]{display:block;border-radius:50%;background-color:var(--color-background-darker);height:100%}.material-design-icon[data-v-f797c400]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.action-items[data-v-f797c400]{display:flex;align-items:center}.action-items>button[data-v-f797c400]{margin-right:7px}.action-item[data-v-f797c400]{--open-background-color: var(--color-background-hover, $action-background-hover);position:relative;display:inline-block}.action-item.action-item--primary[data-v-f797c400]{--open-background-color: var(--color-primary-element-hover)}.action-item.action-item--secondary[data-v-f797c400]{--open-background-color: var(--color-primary-element-light-hover)}.action-item.action-item--error[data-v-f797c400]{--open-background-color: var(--color-error-hover)}.action-item.action-item--warning[data-v-f797c400]{--open-background-color: var(--color-warning-hover)}.action-item.action-item--success[data-v-f797c400]{--open-background-color: var(--color-success-hover)}.action-item.action-item--tertiary-no-background[data-v-f797c400]{--open-background-color: transparent}.action-item.action-item--open .action-item__menutoggle[data-v-f797c400]{background-color:var(--open-background-color)}.v-popper--theme-dropdown.v-popper__popper.action-item__popper .v-popper__wrapper{border-radius:var(--border-radius-large);overflow:hidden}.v-popper--theme-dropdown.v-popper__popper.action-item__popper .v-popper__wrapper .v-popper__inner{border-radius:var(--border-radius-large);padding:4px;max-height:calc(50vh - 16px);overflow:auto}.resize-observer{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;border:none;background-color:transparent;pointer-events:none;display:block;overflow:hidden;opacity:0}.resize-observer object{display:block;position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1}.v-popper--theme-dropdown.v-popper__popper{z-index:100000;top:0;left:0;display:block!important;filter:drop-shadow(0 1px 10px var(--color-box-shadow))}.v-popper--theme-dropdown.v-popper__popper .v-popper__inner{padding:0;color:var(--color-main-text);border-radius:var(--border-radius-large);overflow:hidden;background:var(--color-main-background)}.v-popper--theme-dropdown.v-popper__popper .v-popper__arrow-container{position:absolute;z-index:1;width:0;height:0;border-style:solid;border-color:transparent;border-width:10px}.v-popper--theme-dropdown.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-container{bottom:-10px;border-bottom-width:0;border-top-color:var(--color-main-background)}.v-popper--theme-dropdown.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-container{top:-10px;border-top-width:0;border-bottom-color:var(--color-main-background)}.v-popper--theme-dropdown.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-container{left:-10px;border-left-width:0;border-right-color:var(--color-main-background)}.v-popper--theme-dropdown.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-container{right:-10px;border-right-width:0;border-left-color:var(--color-main-background)}.v-popper--theme-dropdown.v-popper__popper[aria-hidden=true]{visibility:hidden;transition:opacity var(--animation-quick),visibility var(--animation-quick);opacity:0}.v-popper--theme-dropdown.v-popper__popper[aria-hidden=false]{visibility:visible;transition:opacity var(--animation-quick);opacity:1}.material-design-icon[data-v-979f3026]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}li.active[data-v-979f3026]{background-color:var(--color-background-hover);border-radius:6px;padding:0}.action-link[data-v-979f3026]{display:flex;align-items:flex-start;width:100%;height:auto;margin:0;padding:0 14px 0 0;box-sizing:border-box;cursor:pointer;white-space:nowrap;color:var(--color-main-text);border:0;border-radius:0;background-color:transparent;box-shadow:none;font-weight:400;font-size:var(--default-font-size);line-height:44px}.action-link>span[data-v-979f3026]{cursor:pointer;white-space:nowrap}.action-link__icon[data-v-979f3026]{width:44px;height:44px;opacity:1;background-position:14px center;background-size:16px;background-repeat:no-repeat}.action-link[data-v-979f3026] .material-design-icon{width:44px;height:44px;opacity:1}.action-link[data-v-979f3026] .material-design-icon .material-design-icon__svg{vertical-align:middle}.action-link__longtext-wrapper[data-v-979f3026],.action-link__longtext[data-v-979f3026]{max-width:220px;line-height:1.6em;padding:10.8px 0;cursor:pointer;text-align:left;overflow:hidden;text-overflow:ellipsis}.action-link__longtext[data-v-979f3026]{cursor:pointer;white-space:pre-wrap!important}.action-link__name[data-v-979f3026]{font-weight:700;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;max-width:100%;display:inline-block}.action-link__menu-icon[data-v-979f3026]{margin-left:auto;margin-right:-14px}.material-design-icon[data-v-b1c5a80f]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.widget-custom[data-v-b1c5a80f]{width:100%;margin:auto;margin-bottom:calc(var(--default-grid-baseline, 4px) * 3);margin-top:calc(var(--default-grid-baseline, 4px) * 3);overflow:hidden;border:2px solid var(--color-border);border-radius:var(--border-radius-large);background-color:transparent;display:flex}.widget-access[data-v-b1c5a80f]{width:100%;margin:auto;margin-bottom:calc(var(--default-grid-baseline, 4px) * 3);margin-top:calc(var(--default-grid-baseline, 4px) * 3);overflow:hidden;border:2px solid var(--color-border);border-radius:var(--border-radius-large);background-color:transparent;display:flex;padding:calc(var(--default-grid-baseline, 4px) * 3)}.widget-default[data-v-b1c5a80f]{width:100%;margin:auto;margin-bottom:calc(var(--default-grid-baseline, 4px) * 3);margin-top:calc(var(--default-grid-baseline, 4px) * 3);overflow:hidden;border:2px solid var(--color-border);border-radius:var(--border-radius-large);background-color:transparent;display:flex}.widget-default--compact[data-v-b1c5a80f]{flex-direction:column}.widget-default--compact .widget-default--image[data-v-b1c5a80f]{width:100%;height:150px}.widget-default--compact .widget-default--details[data-v-b1c5a80f]{width:100%;padding-top:calc(var(--default-grid-baseline, 4px) * 2);padding-bottom:calc(var(--default-grid-baseline, 4px) * 2)}.widget-default--compact .widget-default--description[data-v-b1c5a80f]{display:none}.widget-default--image[data-v-b1c5a80f]{width:40%;background-position:center;background-size:cover;background-repeat:no-repeat}.widget-default--name[data-v-b1c5a80f]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700}.widget-default--details[data-v-b1c5a80f]{padding:calc(var(--default-grid-baseline, 4px) * 3);width:60%}.widget-default--details p[data-v-b1c5a80f]{margin:0;padding:0}.widget-default--description[data-v-b1c5a80f]{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;-webkit-box-orient:vertical}.widget-default--link[data-v-b1c5a80f]{color:var(--color-text-maxcontrast);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.material-design-icon[data-v-bd1fbb02]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.widgets--list.icon-loading[data-v-bd1fbb02]{min-height:44px}.material-design-icon[data-v-5f33f45b]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.rich-text--wrapper[data-v-5f33f45b]{word-break:break-word;line-height:1.5}.rich-text--wrapper .rich-text--fallback[data-v-5f33f45b],.rich-text--wrapper .rich-text-component[data-v-5f33f45b]{display:inline}.rich-text--wrapper .rich-text--external-link[data-v-5f33f45b]{text-decoration:underline}.rich-text--wrapper .rich-text--external-link[data-v-5f33f45b]:after{content:" ↗"}.rich-text--wrapper .rich-text--ordered-list .rich-text--list-item[data-v-5f33f45b]{list-style:decimal}.rich-text--wrapper .rich-text--un-ordered-list .rich-text--list-item[data-v-5f33f45b]{list-style:initial}.rich-text--wrapper .rich-text--list-item[data-v-5f33f45b]{white-space:initial;color:var(--color-text-light);padding:initial;margin-left:20px}.rich-text--wrapper .rich-text--list-item.task-list-item[data-v-5f33f45b]{list-style:none;white-space:initial;color:var(--color-text-light)}.rich-text--wrapper .rich-text--list-item.task-list-item input[data-v-5f33f45b]{min-height:initial}.rich-text--wrapper .rich-text--strong[data-v-5f33f45b]{white-space:initial;font-weight:700;color:var(--color-text-light)}.rich-text--wrapper .rich-text--italic[data-v-5f33f45b]{white-space:initial;font-style:italic;color:var(--color-text-light)}.rich-text--wrapper .rich-text--heading[data-v-5f33f45b]{white-space:initial;font-size:initial;color:var(--color-text-light);margin-bottom:5px;margin-top:5px;font-weight:700}.rich-text--wrapper .rich-text--heading.rich-text--heading-1[data-v-5f33f45b]{font-size:20px}.rich-text--wrapper .rich-text--heading.rich-text--heading-2[data-v-5f33f45b]{font-size:19px}.rich-text--wrapper .rich-text--heading.rich-text--heading-3[data-v-5f33f45b]{font-size:18px}.rich-text--wrapper .rich-text--heading.rich-text--heading-4[data-v-5f33f45b]{font-size:17px}.rich-text--wrapper .rich-text--heading.rich-text--heading-5[data-v-5f33f45b]{font-size:16px}.rich-text--wrapper .rich-text--heading.rich-text--heading-6[data-v-5f33f45b]{font-size:15px}.rich-text--wrapper .rich-text--hr[data-v-5f33f45b]{border-top:1px solid var(--color-border-dark);border-bottom:0}.rich-text--wrapper .rich-text--pre[data-v-5f33f45b]{border:1px solid var(--color-border-dark);background-color:var(--color-background-dark);padding:5px}.rich-text--wrapper .rich-text--code[data-v-5f33f45b]{background-color:var(--color-background-dark)}.rich-text--wrapper .rich-text--blockquote[data-v-5f33f45b]{border-left:3px solid var(--color-border-dark);padding-left:5px}.rich-text--wrapper .rich-text--table[data-v-5f33f45b]{border-collapse:collapse}.rich-text--wrapper .rich-text--table thead tr th[data-v-5f33f45b]{border:1px solid var(--color-border-dark);font-weight:700;padding:6px 13px}.rich-text--wrapper .rich-text--table tbody tr td[data-v-5f33f45b]{border:1px solid var(--color-border-dark);padding:6px 13px}.rich-text--wrapper .rich-text--table tbody tr[data-v-5f33f45b]:nth-child(2n){background-color:var(--color-background-dark)}.rich-text--wrapper-markdown div>*[data-v-5f33f45b]:first-child,.rich-text--wrapper-markdown blockquote>*[data-v-5f33f45b]:first-child{margin-top:0!important}.rich-text--wrapper-markdown div>*[data-v-5f33f45b]:last-child,.rich-text--wrapper-markdown blockquote>*[data-v-5f33f45b]:last-child{margin-bottom:0!important}.rich-text--wrapper-markdown h1[data-v-5f33f45b],.rich-text--wrapper-markdown h2[data-v-5f33f45b],.rich-text--wrapper-markdown h3[data-v-5f33f45b],.rich-text--wrapper-markdown h4[data-v-5f33f45b],.rich-text--wrapper-markdown h5[data-v-5f33f45b],.rich-text--wrapper-markdown h6[data-v-5f33f45b],.rich-text--wrapper-markdown p[data-v-5f33f45b],.rich-text--wrapper-markdown ul[data-v-5f33f45b],.rich-text--wrapper-markdown ol[data-v-5f33f45b],.rich-text--wrapper-markdown blockquote[data-v-5f33f45b],.rich-text--wrapper-markdown pre[data-v-5f33f45b]{margin-top:0;margin-bottom:1em}.rich-text--wrapper-markdown h1[data-v-5f33f45b],.rich-text--wrapper-markdown h2[data-v-5f33f45b],.rich-text--wrapper-markdown h3[data-v-5f33f45b],.rich-text--wrapper-markdown h4[data-v-5f33f45b],.rich-text--wrapper-markdown h5[data-v-5f33f45b],.rich-text--wrapper-markdown h6[data-v-5f33f45b]{font-weight:700}.rich-text--wrapper-markdown h1[data-v-5f33f45b]{font-size:30px}.rich-text--wrapper-markdown ul[data-v-5f33f45b],.rich-text--wrapper-markdown ol[data-v-5f33f45b]{padding-left:15px}.rich-text--wrapper-markdown ul[data-v-5f33f45b]{list-style-type:disc}.rich-text--wrapper-markdown blockquote[data-v-5f33f45b]{padding-left:13px;border-left:2px solid var(--color-border-dark);color:var(--color-text-lighter)}a[data-v-5f33f45b]:not(.rich-text--component){text-decoration:underline}.material-design-icon[data-v-cf695ff9],.material-design-icon[data-v-9d850ea5]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.provider-list[data-v-9d850ea5]{width:100%;min-height:400px;padding:0 16px 16px;display:flex;flex-direction:column}.provider-list--select[data-v-9d850ea5]{width:100%}.provider-list--select .provider[data-v-9d850ea5]{display:flex;align-items:center;height:28px;overflow:hidden}.provider-list--select .provider .link-icon[data-v-9d850ea5]{margin-right:8px}.provider-list--select .provider .provider-icon[data-v-9d850ea5]{width:20px;height:20px;object-fit:contain;margin-right:8px;filter:var(--background-invert-if-dark)}.provider-list--select .provider .option-text[data-v-9d850ea5]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.material-design-icon[data-v-d0ba247a]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.raw-link[data-v-d0ba247a]{width:100%;min-height:350px;display:flex;flex-direction:column;overflow-y:auto;padding:0 16px 16px}.raw-link .input-wrapper[data-v-d0ba247a]{width:100%}.raw-link .reference-widget[data-v-d0ba247a]{display:flex}.raw-link--empty-content .provider-icon[data-v-d0ba247a]{width:150px;height:150px;object-fit:contain;filter:var(--background-invert-if-dark)}.raw-link--input[data-v-d0ba247a]{width:99%}.material-design-icon[data-v-7a394a58]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.result[data-v-7a394a58]{display:flex;align-items:center;height:44px;overflow:hidden}.result--icon-class[data-v-7a394a58],.result--image[data-v-7a394a58]{width:40px;min-width:40px;height:40px;object-fit:contain}.result--icon-class.rounded[data-v-7a394a58],.result--image.rounded[data-v-7a394a58]{border-radius:50%}.result--content[data-v-7a394a58]{display:flex;flex-direction:column;padding-left:10px;overflow:hidden}.result--content--name[data-v-7a394a58],.result--content--subline[data-v-7a394a58]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.material-design-icon[data-v-97d196f0]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.smart-picker-search[data-v-97d196f0]{width:100%;display:flex;flex-direction:column;padding:0 16px 16px}.smart-picker-search.with-empty-content[data-v-97d196f0]{min-height:400px}.smart-picker-search .provider-icon[data-v-97d196f0]{width:150px;height:150px;object-fit:contain;filter:var(--background-invert-if-dark)}.smart-picker-search--select[data-v-97d196f0],.smart-picker-search--select .search-result[data-v-97d196f0]{width:100%}.smart-picker-search--select .group-name-icon[data-v-97d196f0],.smart-picker-search--select .option-simple-icon[data-v-97d196f0]{width:20px;height:20px;margin:0 20px 0 10px}.smart-picker-search--select .custom-option[data-v-97d196f0]{height:44px;display:flex;align-items:center;overflow:hidden}.smart-picker-search--select .option-text[data-v-97d196f0]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.material-design-icon[data-v-aa77d0d3]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.reference-picker[data-v-aa77d0d3],.reference-picker .custom-element-wrapper[data-v-aa77d0d3]{display:flex;overflow-y:auto;width:100%}.reference-picker-modal .modal-container{display:flex!important}.material-design-icon[data-v-3f1a4ac7]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.reference-picker-modal--content[data-v-3f1a4ac7]{width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow-y:auto}.reference-picker-modal--content .close-button[data-v-3f1a4ac7],.reference-picker-modal--content .back-button[data-v-3f1a4ac7]{position:absolute;top:4px}.reference-picker-modal--content .back-button[data-v-3f1a4ac7]{left:4px}.reference-picker-modal--content .close-button[data-v-3f1a4ac7]{right:4px}.reference-picker-modal--content>h2[data-v-3f1a4ac7]{display:flex;margin:12px 0 20px}.reference-picker-modal--content>h2 .icon[data-v-3f1a4ac7]{margin-right:8px}body{--vs-search-input-color: var(--color-main-text);--vs-search-input-bg: var(--color-main-background);--vs-search-input-placeholder-color: var(--color-text-maxcontrast);--vs-font-size: var(--default-font-size);--vs-line-height: var(--default-line-height);--vs-state-disabled-bg: var(--color-background-hover);--vs-state-disabled-color: var(--color-text-maxcontrast);--vs-state-disabled-controls-color: var(--color-text-maxcontrast);--vs-state-disabled-cursor: not-allowed;--vs-disabled-bg: var(--color-background-hover);--vs-disabled-color: var(--color-text-maxcontrast);--vs-disabled-cursor: not-allowed;--vs-border-color: var(--color-border-maxcontrast);--vs-border-width: 2px;--vs-border-style: solid;--vs-border-radius: var(--border-radius-large);--vs-controls-color: var(--color-main-text);--vs-selected-bg: var(--color-background-hover);--vs-selected-color: var(--color-main-text);--vs-selected-border-color: var(--vs-border-color);--vs-selected-border-style: var(--vs-border-style);--vs-selected-border-width: var(--vs-border-width);--vs-dropdown-bg: var(--color-main-background);--vs-dropdown-color: var(--color-main-text);--vs-dropdown-z-index: 9999;--vs-dropdown-box-shadow: 0px 2px 2px 0px var(--color-box-shadow);--vs-dropdown-option-padding: 8px 20px;--vs-dropdown-option--active-bg: var(--color-background-hover);--vs-dropdown-option--active-color: var(--color-main-text);--vs-dropdown-option--kb-focus-box-shadow: inset 0px 0px 0px 2px var(--vs-border-color);--vs-dropdown-option--deselect-bg: var(--color-error);--vs-dropdown-option--deselect-color: #fff;--vs-transition-duration: 0ms;--vs-actions-padding: 0 8px 0 4px}.v-select.select{min-height:44px;min-width:260px;margin:0}.v-select.select .vs__selected{height:32px;padding:0 8px 0 12px;border-radius:18px!important;background:var(--color-primary-element-light);border:none}.v-select.select .vs__search,.v-select.select .vs__search:focus{margin:2px 0 0}.v-select.select .vs__dropdown-toggle{padding:0}.v-select.select .vs__clear{margin-right:2px}.v-select.select.vs--open .vs__dropdown-toggle{outline:2px solid var(--color-main-background);border-color:var(--color-main-text);border-bottom-color:transparent}.v-select.select:not(.vs--disabled,.vs--open) .vs__dropdown-toggle:hover{outline:2px solid var(--color-main-background);border-color:var(--color-main-text)}.v-select.select.vs--disabled .vs__search,.v-select.select.vs--disabled .vs__selected{color:var(--color-text-maxcontrast)}.v-select.select.vs--disabled .vs__clear,.v-select.select.vs--disabled .vs__deselect{display:none}.v-select.select--no-wrap .vs__selected-options{flex-wrap:nowrap;overflow:auto;min-width:unset}.v-select.select--no-wrap .vs__selected-options .vs__selected{min-width:unset}.v-select.select--drop-up.vs--open .vs__dropdown-toggle{border-radius:0 0 var(--vs-border-radius) var(--vs-border-radius);border-top-color:transparent;border-bottom-color:var(--color-main-text)}.v-select.select .vs__selected-options{min-height:40px}.v-select.select .vs__selected-options .vs__selected~.vs__search[readonly]{position:absolute}.v-select.select.vs--single.vs--loading .vs__selected,.v-select.select.vs--single.vs--open .vs__selected{max-width:100%;opacity:1;color:var(--color-text-maxcontrast)}.v-select.select.vs--single .vs__selected-options{flex-wrap:nowrap}.vs__dropdown-menu{border-color:var(--color-main-text)!important;outline:2px solid var(--color-main-background);padding:4px!important;box-shadow:none}.vs__dropdown-menu--floating{width:max-content;position:absolute;top:0;left:0}.vs__dropdown-menu--floating-placement-top{border-radius:var(--vs-border-radius) var(--vs-border-radius) 0 0!important;border-top-style:var(--vs-border-style)!important;border-bottom-style:none!important}.vs__dropdown-menu .vs__dropdown-option{border-radius:6px!important}.vs__dropdown-menu .vs__no-options{color:var(--color-text-lighter)!important}.user-select .vs__selected{padding:0 2px!important}:root{--vs-colors--lightest:rgba(60,60,60,.26);--vs-colors--light:rgba(60,60,60,.5);--vs-colors--dark:#333;--vs-colors--darkest:rgba(0,0,0,.15);--vs-search-input-color:inherit;--vs-search-input-bg:#fff;--vs-search-input-placeholder-color:inherit;--vs-font-size:1rem;--vs-line-height:1.4;--vs-state-disabled-bg:#f8f8f8;--vs-state-disabled-color:var(--vs-colors--light);--vs-state-disabled-controls-color:var(--vs-colors--light);--vs-state-disabled-cursor:not-allowed;--vs-border-color:var(--vs-colors--lightest);--vs-border-width:1px;--vs-border-style:solid;--vs-border-radius:4px;--vs-actions-padding:4px 6px 0 3px;--vs-controls-color:var(--vs-colors--light);--vs-controls-size:1;--vs-controls--deselect-text-shadow:0 1px 0 #fff;--vs-selected-bg:#f0f0f0;--vs-selected-color:var(--vs-colors--dark);--vs-selected-border-color:var(--vs-border-color);--vs-selected-border-style:var(--vs-border-style);--vs-selected-border-width:var(--vs-border-width);--vs-dropdown-bg:#fff;--vs-dropdown-color:inherit;--vs-dropdown-z-index:1000;--vs-dropdown-min-width:160px;--vs-dropdown-max-height:350px;--vs-dropdown-box-shadow:0px 3px 6px 0px var(--vs-colors--darkest);--vs-dropdown-option-bg:#000;--vs-dropdown-option-color:var(--vs-dropdown-color);--vs-dropdown-option-padding:3px 20px;--vs-dropdown-option--active-bg:#136cfb;--vs-dropdown-option--active-color:#fff;--vs-dropdown-option--kb-focus-box-shadow:inset 0px 0px 0px 2px #949494;--vs-dropdown-option--deselect-bg:#fb5858;--vs-dropdown-option--deselect-color:#fff;--vs-transition-timing-function:cubic-bezier(1,-.115,.975,.855);--vs-transition-duration:.15s}.v-select{font-family:inherit;position:relative}.v-select,.v-select *{box-sizing:border-box}:root{--vs-transition-timing-function:cubic-bezier(1,.5,.8,1);--vs-transition-duration:.15s}@-webkit-keyframes vSelectSpinner{0%{transform:rotate(0)}to{transform:rotate(1turn)}}@keyframes vSelectSpinner{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.vs__fade-enter-active,.vs__fade-leave-active{pointer-events:none;transition:opacity var(--vs-transition-duration) var(--vs-transition-timing-function)}.vs__fade-enter,.vs__fade-leave-to{opacity:0}:root{--vs-disabled-bg:var(--vs-state-disabled-bg);--vs-disabled-color:var(--vs-state-disabled-color);--vs-disabled-cursor:var(--vs-state-disabled-cursor)}.vs--disabled .vs__clear,.vs--disabled .vs__dropdown-toggle,.vs--disabled .vs__open-indicator,.vs--disabled .vs__search,.vs--disabled .vs__selected{background-color:var(--vs-disabled-bg);cursor:var(--vs-disabled-cursor)}.v-select[dir=rtl] .vs__actions{padding:0 3px 0 6px}.v-select[dir=rtl] .vs__clear{margin-left:6px;margin-right:0}.v-select[dir=rtl] .vs__deselect{margin-left:0;margin-right:2px}.v-select[dir=rtl] .vs__dropdown-menu{text-align:right}.vs__dropdown-toggle{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--vs-search-input-bg);border:var(--vs-border-width) var(--vs-border-style) var(--vs-border-color);border-radius:var(--vs-border-radius);display:flex;padding:0 0 4px;white-space:normal}.vs__selected-options{display:flex;flex-basis:100%;flex-grow:1;flex-wrap:wrap;min-width:0;padding:0 2px;position:relative}.vs__actions{align-items:center;display:flex;padding:var(--vs-actions-padding)}.vs--searchable .vs__dropdown-toggle{cursor:text}.vs--unsearchable .vs__dropdown-toggle{cursor:pointer}.vs--open .vs__dropdown-toggle{border-bottom-color:transparent;border-bottom-left-radius:0;border-bottom-right-radius:0}.vs__open-indicator{fill:var(--vs-controls-color);transform:scale(var(--vs-controls-size));transition:transform var(--vs-transition-duration) var(--vs-transition-timing-function);transition-timing-function:var(--vs-transition-timing-function)}.vs--open .vs__open-indicator{transform:rotate(180deg) scale(var(--vs-controls-size))}.vs--loading .vs__open-indicator{opacity:0}.vs__clear{fill:var(--vs-controls-color);background-color:transparent;border:0;cursor:pointer;margin-right:8px;padding:0}.vs__dropdown-menu{background:var(--vs-dropdown-bg);border:var(--vs-border-width) var(--vs-border-style) var(--vs-border-color);border-radius:0 0 var(--vs-border-radius) var(--vs-border-radius);border-top-style:none;box-shadow:var(--vs-dropdown-box-shadow);box-sizing:border-box;color:var(--vs-dropdown-color);display:block;left:0;list-style:none;margin:0;max-height:var(--vs-dropdown-max-height);min-width:var(--vs-dropdown-min-width);overflow-y:auto;padding:5px 0;position:absolute;text-align:left;top:calc(100% - var(--vs-border-width));width:100%;z-index:var(--vs-dropdown-z-index)}.vs__no-options{text-align:center}.vs__dropdown-option{clear:both;color:var(--vs-dropdown-option-color);cursor:pointer;display:block;line-height:1.42857143;padding:var(--vs-dropdown-option-padding);white-space:nowrap}.vs__dropdown-option--highlight{background:var(--vs-dropdown-option--active-bg);color:var(--vs-dropdown-option--active-color)}.vs__dropdown-option--kb-focus{box-shadow:var(--vs-dropdown-option--kb-focus-box-shadow)}.vs__dropdown-option--deselect{background:var(--vs-dropdown-option--deselect-bg);color:var(--vs-dropdown-option--deselect-color)}.vs__dropdown-option--disabled{background:var(--vs-state-disabled-bg);color:var(--vs-state-disabled-color);cursor:var(--vs-state-disabled-cursor)}.vs__selected{align-items:center;background-color:var(--vs-selected-bg);border:var(--vs-selected-border-width) var(--vs-selected-border-style) var(--vs-selected-border-color);border-radius:var(--vs-border-radius);color:var(--vs-selected-color);display:flex;line-height:var(--vs-line-height);margin:4px 2px 0;min-width:0;padding:0 .25em;z-index:0}.vs__deselect{fill:var(--vs-controls-color);-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;cursor:pointer;display:inline-flex;margin-left:4px;padding:0;text-shadow:var(--vs-controls--deselect-text-shadow)}.vs--single .vs__selected{background-color:transparent;border-color:transparent}.vs--single.vs--loading .vs__selected,.vs--single.vs--open .vs__selected{max-width:100%;opacity:.4;position:absolute}.vs--single.vs--searching .vs__selected{display:none}.vs__search::-webkit-search-cancel-button{display:none}.vs__search::-ms-clear,.vs__search::-webkit-search-decoration,.vs__search::-webkit-search-results-button,.vs__search::-webkit-search-results-decoration{display:none}.vs__search,.vs__search:focus{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:1px solid transparent;border-left:none;box-shadow:none;color:var(--vs-search-input-color);flex-grow:1;font-size:var(--vs-font-size);line-height:var(--vs-line-height);margin:4px 0 0;max-width:100%;outline:none;padding:0 7px;width:0;z-index:1}.vs__search::-moz-placeholder{color:var(--vs-search-input-placeholder-color)}.vs__search:-ms-input-placeholder{color:var(--vs-search-input-placeholder-color)}.vs__search::placeholder{color:var(--vs-search-input-placeholder-color)}.vs--unsearchable .vs__search{opacity:1}.vs--unsearchable:not(.vs--disabled) .vs__search{cursor:pointer}.vs--single.vs--searching:not(.vs--open):not(.vs--loading) .vs__search{opacity:.2}.vs__spinner{align-self:center;-webkit-animation:vSelectSpinner 1.1s linear infinite;animation:vSelectSpinner 1.1s linear infinite;border:.9em solid hsla(0,0%,39%,.1);border-left-color:#3c3c3c73;font-size:5px;opacity:0;overflow:hidden;text-indent:-9999em;transform:translateZ(0) scale(var(--vs-controls--spinner-size,var(--vs-controls-size)));transition:opacity .1s}.vs__spinner,.vs__spinner:after{border-radius:50%;height:5em;transform:scale(var(--vs-controls--spinner-size,var(--vs-controls-size)));width:5em}.vs--loading .vs__spinner{opacity:1}.material-design-icon[data-v-08c4259e]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.name-parts[data-v-08c4259e]{display:flex;max-width:100%;cursor:inherit}.name-parts__first[data-v-08c4259e]{overflow:hidden;text-overflow:ellipsis}.name-parts__first[data-v-08c4259e],.name-parts__last[data-v-08c4259e]{white-space:pre;cursor:inherit}.name-parts__first strong[data-v-08c4259e],.name-parts__last strong[data-v-08c4259e]{font-weight:700}.material-design-icon[data-v-562c32c6]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.option[data-v-562c32c6]{display:flex;align-items:center;width:100%;height:var(--height);cursor:inherit}.option__avatar[data-v-562c32c6]{margin-right:var(--margin)}.option__details[data-v-562c32c6]{display:flex;flex:1 1;flex-direction:column;justify-content:center;min-width:0}.option__lineone[data-v-562c32c6]{color:var(--color-main-text)}.option__linetwo[data-v-562c32c6]{color:var(--color-text-maxcontrast)}.option__lineone[data-v-562c32c6],.option__linetwo[data-v-562c32c6]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;line-height:1.1em}.option__lineone strong[data-v-562c32c6],.option__linetwo strong[data-v-562c32c6]{font-weight:700}.option__icon[data-v-562c32c6]{width:44px;height:44px;color:var(--color-text-maxcontrast)}.option__icon.icon[data-v-562c32c6]{flex:0 0 44px;opacity:.7;background-position:center;background-size:16px}.option__details[data-v-562c32c6],.option__lineone[data-v-562c32c6],.option__linetwo[data-v-562c32c6],.option__icon[data-v-562c32c6]{cursor:inherit}.material-design-icon[data-v-31a36009]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.input-field[data-v-31a36009]{position:relative;width:100%;border-radius:var(--border-radius-large);margin-block-start:6px}.input-field__main-wrapper[data-v-31a36009]{height:var(--default-clickable-area);position:relative}.input-field--disabled[data-v-31a36009]{opacity:.7;filter:saturate(.7)}.input-field__input[data-v-31a36009]{margin:0;padding-inline:12px 6px;height:var(--default-clickable-area)!important;width:100%;font-size:var(--default-font-size);text-overflow:ellipsis;background-color:var(--color-main-background);color:var(--color-main-text);border:2px solid var(--color-border-maxcontrast);border-radius:var(--border-radius-large);cursor:pointer;-webkit-appearance:textfield!important;-moz-appearance:textfield!important}.input-field__input--label-outside[data-v-31a36009]{padding-block:0}.input-field__input[data-v-31a36009]:active:not([disabled]),.input-field__input[data-v-31a36009]:hover:not([disabled]),.input-field__input[data-v-31a36009]:focus:not([disabled]){border-color:2px solid var(--color-main-text)!important;box-shadow:0 0 0 2px var(--color-main-background)!important}.input-field__input:focus+.input-field__label[data-v-31a36009],.input-field__input:hover:not(:placeholder-shown)+.input-field__label[data-v-31a36009]{color:var(--color-main-text)}.input-field__input[data-v-31a36009]:not(:focus,.input-field__input--label-outside)::placeholder{opacity:0}.input-field__input[data-v-31a36009]:focus{cursor:text}.input-field__input[data-v-31a36009]:disabled{cursor:default}.input-field__input[data-v-31a36009]:focus-visible{box-shadow:unset!important}.input-field__input--leading-icon[data-v-31a36009]{padding-inline-start:var(--default-clickable-area)}.input-field__input--trailing-icon[data-v-31a36009]{padding-inline-end:var(--default-clickable-area)}.input-field__input--success[data-v-31a36009]{border-color:var(--color-success)!important}.input-field__input--success[data-v-31a36009]:focus-visible{box-shadow:#f8fafc 0 0 0 2px,var(--color-primary-element) 0 0 0 4px,#0000000d 0 1px 2px}.input-field__input--error[data-v-31a36009]{border-color:var(--color-error)!important}.input-field__input--error[data-v-31a36009]:focus-visible{box-shadow:#f8fafc 0 0 0 2px,var(--color-primary-element) 0 0 0 4px,#0000000d 0 1px 2px}.input-field__label[data-v-31a36009]{position:absolute;margin-inline:14px 0;max-width:fit-content;inset-block-start:11px;inset-inline:0;color:var(--color-text-maxcontrast);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none;transition:height var(--animation-quick),inset-block-start var(--animation-quick),font-size var(--animation-quick),color var(--animation-quick),background-color var(--animation-quick) var(--animation-slow)}.input-field__label--leading-icon[data-v-31a36009]{margin-inline-start:var(--default-clickable-area)}.input-field__label--trailing-icon[data-v-31a36009]{margin-inline-end:var(--default-clickable-area)}.input-field__input:focus+.input-field__label[data-v-31a36009],.input-field__input:not(:placeholder-shown)+.input-field__label[data-v-31a36009]{inset-block-start:-10px;font-size:13px;font-weight:500;border-radius:var(--default-grid-baseline) var(--default-grid-baseline) 0 0;background-color:var(--color-main-background);padding-inline:5px;margin-inline-start:9px;transition:height var(--animation-quick),inset-block-start var(--animation-quick),font-size var(--animation-quick),color var(--animation-quick)}.input-field__input:focus+.input-field__label--leading-icon[data-v-31a36009],.input-field__input:not(:placeholder-shown)+.input-field__label--leading-icon[data-v-31a36009]{margin-inline-start:41px}.input-field__icon[data-v-31a36009]{position:absolute;height:var(--default-clickable-area);width:var(--default-clickable-area);display:flex;align-items:center;justify-content:center;opacity:.7}.input-field__icon--leading[data-v-31a36009]{inset-block-end:0;inset-inline-start:2px}.input-field__icon--trailing[data-v-31a36009]{inset-block-end:0;inset-inline-end:2px}.input-field__trailing-button.button-vue[data-v-31a36009]{position:absolute;top:0;right:0;border-radius:var(--border-radius-large)}.input-field__helper-text-message[data-v-31a36009]{padding-block:4px;display:flex;align-items:center}.input-field__helper-text-message__icon[data-v-31a36009]{margin-inline-end:8px}.input-field__helper-text-message--error[data-v-31a36009]{color:var(--color-error-text)}.input-field__helper-text-message--success[data-v-31a36009]{color:var(--color-success-text)}.material-design-icon[data-v-45e668d9]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.modal-mask[data-v-45e668d9]{position:fixed;z-index:9998;top:0;left:0;display:block;width:100%;height:100%;background-color:#00000080}.modal-mask--dark[data-v-45e668d9]{background-color:#000000eb}.modal-header[data-v-45e668d9]{position:absolute;z-index:10001;top:0;right:0;left:0;display:flex!important;align-items:center;justify-content:center;width:100%;height:50px;overflow:hidden;transition:opacity .25s,visibility .25s}.modal-header .modal-name[data-v-45e668d9]{overflow-x:hidden;box-sizing:border-box;width:100%;padding:0 132px 0 12px;transition:padding ease .1s;white-space:nowrap;text-overflow:ellipsis;color:#fff;font-size:14px;margin-bottom:0}@media only screen and (min-width: 1024px){.modal-header .modal-name[data-v-45e668d9]{padding-left:132px;text-align:center}}.modal-header .icons-menu[data-v-45e668d9]{position:absolute;right:0;display:flex;align-items:center;justify-content:flex-end}.modal-header .icons-menu .header-close[data-v-45e668d9]{display:flex;align-items:center;justify-content:center;box-sizing:border-box;margin:3px;padding:0}.modal-header .icons-menu .play-pause-icons[data-v-45e668d9]{position:relative;width:50px;height:50px;margin:0;padding:0;cursor:pointer;border:none;background-color:transparent}.modal-header .icons-menu .play-pause-icons:hover .play-pause-icons__play[data-v-45e668d9],.modal-header .icons-menu .play-pause-icons:hover .play-pause-icons__pause[data-v-45e668d9],.modal-header .icons-menu .play-pause-icons:focus .play-pause-icons__play[data-v-45e668d9],.modal-header .icons-menu .play-pause-icons:focus .play-pause-icons__pause[data-v-45e668d9]{opacity:1;border-radius:22px;background-color:#7f7f7f40}.modal-header .icons-menu .play-pause-icons__play[data-v-45e668d9],.modal-header .icons-menu .play-pause-icons__pause[data-v-45e668d9]{box-sizing:border-box;width:44px;height:44px;margin:3px;cursor:pointer;opacity:.7}.modal-header .icons-menu .header-actions[data-v-45e668d9]{color:#fff}.modal-header .icons-menu[data-v-45e668d9] .action-item{margin:3px}.modal-header .icons-menu[data-v-45e668d9] .action-item--single{box-sizing:border-box;width:44px;height:44px;cursor:pointer;background-position:center;background-size:22px}.modal-header .icons-menu[data-v-45e668d9] button{color:#fff}.modal-header .icons-menu[data-v-45e668d9] .action-item__menutoggle{padding:0}.modal-header .icons-menu[data-v-45e668d9] .action-item__menutoggle span,.modal-header .icons-menu[data-v-45e668d9] .action-item__menutoggle svg{width:var(--icon-size);height:var(--icon-size)}.modal-wrapper[data-v-45e668d9]{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%}.modal-wrapper .prev[data-v-45e668d9],.modal-wrapper .next[data-v-45e668d9]{z-index:10000;height:35vh;min-height:300px;position:absolute;transition:opacity .25s;color:#fff}.modal-wrapper .prev[data-v-45e668d9]:focus-visible,.modal-wrapper .next[data-v-45e668d9]:focus-visible{box-shadow:0 0 0 2px var(--color-primary-element-text);background-color:var(--color-box-shadow)}.modal-wrapper .prev[data-v-45e668d9]{left:2px}.modal-wrapper .next[data-v-45e668d9]{right:2px}.modal-wrapper .modal-container[data-v-45e668d9]{position:relative;display:flex;padding:0;transition:transform .3s ease;border-radius:var(--border-radius-large);background-color:var(--color-main-background);color:var(--color-main-text);box-shadow:0 0 40px #0003}.modal-wrapper .modal-container__close[data-v-45e668d9]{z-index:1;position:absolute;top:4px;right:4px}.modal-wrapper .modal-container__content[data-v-45e668d9]{width:100%;min-height:52px;overflow:auto}.modal-wrapper--small .modal-container[data-v-45e668d9]{width:400px;max-width:90%;max-height:min(90%,100% - 100px)}.modal-wrapper--normal .modal-container[data-v-45e668d9]{max-width:90%;width:600px;max-height:min(90%,100% - 100px)}.modal-wrapper--large .modal-container[data-v-45e668d9]{max-width:90%;width:900px;max-height:min(90%,100% - 100px)}.modal-wrapper--full .modal-container[data-v-45e668d9]{width:100%;height:calc(100% - var(--header-height));position:absolute;top:50px;border-radius:0}@media only screen and (max-width: 512px){.modal-wrapper .modal-container[data-v-45e668d9]{max-width:initial;width:100%;max-height:initial;height:calc(100% - var(--header-height));position:absolute;top:50px;border-radius:0}}.fade-enter-active[data-v-45e668d9],.fade-leave-active[data-v-45e668d9]{transition:opacity .25s}.fade-enter[data-v-45e668d9],.fade-leave-to[data-v-45e668d9]{opacity:0}.fade-visibility-enter[data-v-45e668d9],.fade-visibility-leave-to[data-v-45e668d9]{visibility:hidden;opacity:0}.modal-in-enter-active[data-v-45e668d9],.modal-in-leave-active[data-v-45e668d9],.modal-out-enter-active[data-v-45e668d9],.modal-out-leave-active[data-v-45e668d9]{transition:opacity .25s}.modal-in-enter[data-v-45e668d9],.modal-in-leave-to[data-v-45e668d9],.modal-out-enter[data-v-45e668d9],.modal-out-leave-to[data-v-45e668d9]{opacity:0}.modal-in-enter .modal-container[data-v-45e668d9],.modal-in-leave-to .modal-container[data-v-45e668d9]{transform:scale(.9)}.modal-out-enter .modal-container[data-v-45e668d9],.modal-out-leave-to .modal-container[data-v-45e668d9]{transform:scale(1.1)}.modal-mask .play-pause-icons .progress-ring[data-v-45e668d9]{position:absolute;top:0;left:0;transform:rotate(-90deg)}.modal-mask .play-pause-icons .progress-ring .progress-ring__circle[data-v-45e668d9]{transition:.1s stroke-dashoffset;transform-origin:50% 50%;animation:progressring-45e668d9 linear var(--slideshow-duration) infinite;stroke-linecap:round;stroke-dashoffset:94.2477796077;stroke-dasharray:94.2477796077}.modal-mask .play-pause-icons--paused .icon-pause[data-v-45e668d9]{animation:breath-45e668d9 2s cubic-bezier(.4,0,.2,1) infinite}.modal-mask .play-pause-icons--paused .progress-ring__circle[data-v-45e668d9]{animation-play-state:paused!important}@keyframes progressring-45e668d9{0%{stroke-dashoffset:94.2477796077}to{stroke-dashoffset:0}}@keyframes breath-45e668d9{0%{opacity:1}50%{opacity:0}to{opacity:1}}.material-design-icon[data-v-4ad257bb]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}li.active[data-v-4ad257bb]{background-color:var(--color-background-hover);border-radius:6px;padding:0}.action--disabled[data-v-4ad257bb]{pointer-events:none;opacity:.5}.action--disabled[data-v-4ad257bb]:hover,.action--disabled[data-v-4ad257bb]:focus{cursor:default;opacity:.5}.action--disabled *[data-v-4ad257bb]{opacity:1!important}.action-button[data-v-4ad257bb]{display:flex;align-items:flex-start;width:100%;height:auto;margin:0;padding:0 14px 0 0;box-sizing:border-box;cursor:pointer;white-space:nowrap;color:var(--color-main-text);border:0;border-radius:0;background-color:transparent;box-shadow:none;font-weight:400;font-size:var(--default-font-size);line-height:44px}.action-button>span[data-v-4ad257bb]{cursor:pointer;white-space:nowrap}.action-button__icon[data-v-4ad257bb]{width:44px;height:44px;opacity:1;background-position:14px center;background-size:16px;background-repeat:no-repeat}.action-button[data-v-4ad257bb] .material-design-icon{width:44px;height:44px;opacity:1}.action-button[data-v-4ad257bb] .material-design-icon .material-design-icon__svg{vertical-align:middle}.action-button__longtext-wrapper[data-v-4ad257bb],.action-button__longtext[data-v-4ad257bb]{max-width:220px;line-height:1.6em;padding:10.8px 0;cursor:pointer;text-align:left;overflow:hidden;text-overflow:ellipsis}.action-button__longtext[data-v-4ad257bb]{cursor:pointer;white-space:pre-wrap!important}.action-button__name[data-v-4ad257bb]{font-weight:700;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;max-width:100%;display:inline-block}.action-button__menu-icon[data-v-4ad257bb]{margin-left:auto;margin-right:-14px}.nc-button-group-base>div{text-align:center;color:var(--color-text-maxcontrast)}.nc-button-group-base ul.nc-button-group-content{display:flex;justify-content:space-between}.nc-button-group-base ul.nc-button-group-content li{flex:1 1}.nc-button-group-base ul.nc-button-group-content .action-button{padding:0!important;width:100%;display:flex;justify-content:center}.material-design-icon[data-v-325a2ae8]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.app-navigation-caption[data-v-325a2ae8]{color:var(--color-text-maxcontrast);line-height:44px;white-space:nowrap;text-overflow:ellipsis;box-shadow:none!important;-webkit-user-select:none;user-select:none;pointer-events:none;margin-left:12px;padding-right:14px;height:44px;display:flex;align-items:center}.material-design-icon[data-v-1aa9466c]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}li.active[data-v-1aa9466c]{background-color:var(--color-background-hover);border-radius:6px;padding:0}.action--disabled[data-v-1aa9466c]{pointer-events:none;opacity:.5}.action--disabled[data-v-1aa9466c]:hover,.action--disabled[data-v-1aa9466c]:focus{cursor:default;opacity:.5}.action--disabled *[data-v-1aa9466c]{opacity:1!important}.action-checkbox[data-v-1aa9466c]{display:flex;align-items:flex-start;width:100%;height:auto;margin:0;padding:0;cursor:pointer;white-space:nowrap;color:var(--color-main-text);border:0;border-radius:0;background-color:transparent;box-shadow:none;font-weight:400;line-height:44px}.action-checkbox__checkbox[data-v-1aa9466c]{position:absolute;top:auto;left:-10000px;overflow:hidden;width:1px;height:1px}.action-checkbox__label[data-v-1aa9466c]{display:flex;align-items:center;width:100%;padding:0 14px 0 0!important}.action-checkbox__label[data-v-1aa9466c]:before{margin:0 14px!important}.action-checkbox--disabled[data-v-1aa9466c],.action-checkbox--disabled .action-checkbox__label[data-v-1aa9466c]{cursor:pointer}.material-design-icon[data-v-7412a2c7]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}button[data-v-7412a2c7]:not(.button-vue),input[data-v-7412a2c7]:not([type=range]),textarea[data-v-7412a2c7]{margin:0;padding:7px 6px;cursor:text;color:var(--color-text-lighter);border:1px solid var(--color-border-dark);border-radius:var(--border-radius);outline:none;background-color:var(--color-main-background);font-size:13px}button[data-v-7412a2c7]:not(.button-vue):not(:disabled):not(.primary):hover,button[data-v-7412a2c7]:not(.button-vue):not(:disabled):not(.primary):focus,button:not(.button-vue):not(:disabled):not(.primary).active[data-v-7412a2c7],input[data-v-7412a2c7]:not([type=range]):not(:disabled):not(.primary):hover,input[data-v-7412a2c7]:not([type=range]):not(:disabled):not(.primary):focus,input:not([type=range]):not(:disabled):not(.primary).active[data-v-7412a2c7],textarea[data-v-7412a2c7]:not(:disabled):not(.primary):hover,textarea[data-v-7412a2c7]:not(:disabled):not(.primary):focus,textarea:not(:disabled):not(.primary).active[data-v-7412a2c7]{border-color:var(--color-primary-element);outline:none}button[data-v-7412a2c7]:not(.button-vue):not(:disabled):not(.primary):active,input[data-v-7412a2c7]:not([type=range]):not(:disabled):not(.primary):active,textarea[data-v-7412a2c7]:not(:disabled):not(.primary):active{color:var(--color-text-light);outline:none;background-color:var(--color-main-background)}button[data-v-7412a2c7]:not(.button-vue):disabled,input[data-v-7412a2c7]:not([type=range]):disabled,textarea[data-v-7412a2c7]:disabled{cursor:default;opacity:.5;color:var(--color-text-maxcontrast);background-color:var(--color-background-dark)}button[data-v-7412a2c7]:not(.button-vue):required,input[data-v-7412a2c7]:not([type=range]):required,textarea[data-v-7412a2c7]:required{box-shadow:none}button[data-v-7412a2c7]:not(.button-vue):invalid,input[data-v-7412a2c7]:not([type=range]):invalid,textarea[data-v-7412a2c7]:invalid{border-color:var(--color-error);box-shadow:none!important}button:not(.button-vue).primary[data-v-7412a2c7],input:not([type=range]).primary[data-v-7412a2c7],textarea.primary[data-v-7412a2c7]{cursor:pointer;color:var(--color-primary-element-text);border-color:var(--color-primary-element);background-color:var(--color-primary-element)}button:not(.button-vue).primary[data-v-7412a2c7]:not(:disabled):hover,button:not(.button-vue).primary[data-v-7412a2c7]:not(:disabled):focus,button:not(.button-vue).primary[data-v-7412a2c7]:not(:disabled):active,input:not([type=range]).primary[data-v-7412a2c7]:not(:disabled):hover,input:not([type=range]).primary[data-v-7412a2c7]:not(:disabled):focus,input:not([type=range]).primary[data-v-7412a2c7]:not(:disabled):active,textarea.primary[data-v-7412a2c7]:not(:disabled):hover,textarea.primary[data-v-7412a2c7]:not(:disabled):focus,textarea.primary[data-v-7412a2c7]:not(:disabled):active{border-color:var(--color-primary-element-light);background-color:var(--color-primary-element-light)}button:not(.button-vue).primary[data-v-7412a2c7]:not(:disabled):active,input:not([type=range]).primary[data-v-7412a2c7]:not(:disabled):active,textarea.primary[data-v-7412a2c7]:not(:disabled):active{color:var(--color-primary-element-text-dark)}button:not(.button-vue).primary[data-v-7412a2c7]:disabled,input:not([type=range]).primary[data-v-7412a2c7]:disabled,textarea.primary[data-v-7412a2c7]:disabled{cursor:default;color:var(--color-primary-element-text-dark);background-color:var(--color-primary-element)}li.active[data-v-7412a2c7]{background-color:var(--color-background-hover);border-radius:6px;padding:0}.action--disabled[data-v-7412a2c7]{pointer-events:none;opacity:.5}.action--disabled[data-v-7412a2c7]:hover,.action--disabled[data-v-7412a2c7]:focus{cursor:default;opacity:.5}.action--disabled *[data-v-7412a2c7]{opacity:1!important}.action-input[data-v-7412a2c7]{display:flex;align-items:flex-start;width:100%;height:auto;margin:0;padding:0;cursor:pointer;white-space:nowrap;color:var(--color-main-text);border:0;border-radius:0;background-color:transparent;box-shadow:none;font-weight:400}.action-input__icon-wrapper[data-v-7412a2c7]{display:flex;align-self:center;align-items:center;justify-content:center}.action-input__icon-wrapper[data-v-7412a2c7] .material-design-icon{width:44px;height:44px;opacity:1}.action-input__icon-wrapper[data-v-7412a2c7] .material-design-icon .material-design-icon__svg{vertical-align:middle}.action-input>span[data-v-7412a2c7]{cursor:pointer;white-space:nowrap}.action-input__icon[data-v-7412a2c7]{min-width:0;min-height:0;padding:22px 0 22px 44px;background-position:14px center;background-size:16px}.action-input__form[data-v-7412a2c7]{display:flex;align-items:center;flex:1 1 auto;margin:4px 0;padding-right:14px}.action-input__container[data-v-7412a2c7]{width:100%}.action-input__input-container[data-v-7412a2c7]{display:flex}.action-input__input-container .colorpicker__trigger[data-v-7412a2c7],.action-input__input-container .colorpicker__preview[data-v-7412a2c7]{width:100%}.action-input__input-container .colorpicker__preview[data-v-7412a2c7]{width:100%;height:36px;border-radius:var(--border-radius-large);border:2px solid var(--color-border-maxcontrast);box-shadow:none!important}.action-input__text-label[data-v-7412a2c7]{padding:4px 0;display:block}.action-input__text-label--hidden[data-v-7412a2c7]{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}.action-input__datetimepicker[data-v-7412a2c7]{width:100%}.action-input__datetimepicker[data-v-7412a2c7] .mx-input{margin:0}.action-input__multi[data-v-7412a2c7]{width:100%}li:last-child>.action-input[data-v-7412a2c7]{padding-bottom:10px}li:first-child>.action-input[data-v-7412a2c7]:not(.action-input--visible-label){padding-top:10px}.mx-icon-left:before,.mx-icon-right:before,.mx-icon-double-left:before,.mx-icon-double-right:before,.mx-icon-double-left:after,.mx-icon-double-right:after{content:"";position:relative;top:-1px;display:inline-block;width:10px;height:10px;vertical-align:middle;border-style:solid;border-color:currentColor;border-width:2px 0 0 2px;border-radius:1px;box-sizing:border-box;transform-origin:center;transform:rotate(-45deg) scale(.7)}.mx-icon-double-left:after{left:-4px}.mx-icon-double-right:before{left:4px}.mx-icon-right:before,.mx-icon-double-right:before,.mx-icon-double-right:after{transform:rotate(135deg) scale(.7)}.mx-btn{box-sizing:border-box;line-height:1;font-size:14px;font-weight:500;padding:7px 15px;margin:0;cursor:pointer;background-color:transparent;outline:none;border:1px solid rgba(0,0,0,.1);border-radius:4px;color:#73879c;white-space:nowrap}.mx-btn:hover{border-color:#1284e7;color:#1284e7}.mx-btn:disabled,.mx-btn.disabled{color:#ccc;cursor:not-allowed}.mx-btn-text{border:0;padding:0 4px;text-align:left;line-height:inherit}.mx-scrollbar{height:100%}.mx-scrollbar:hover .mx-scrollbar-track{opacity:1}.mx-scrollbar-wrap{height:100%;overflow-x:hidden;overflow-y:auto}.mx-scrollbar-track{position:absolute;top:2px;right:2px;bottom:2px;width:6px;z-index:1;border-radius:4px;opacity:0;transition:opacity .24s ease-out}.mx-scrollbar-track .mx-scrollbar-thumb{position:absolute;width:100%;height:0;cursor:pointer;border-radius:inherit;background-color:#9093994d;transition:background-color .3s}.mx-zoom-in-down-enter-active,.mx-zoom-in-down-leave-active{opacity:1;transform:scaleY(1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transform-origin:center top}.mx-zoom-in-down-enter,.mx-zoom-in-down-enter-from,.mx-zoom-in-down-leave-to{opacity:0;transform:scaleY(0)}.mx-datepicker{position:relative;display:inline-block;width:210px}.mx-datepicker svg{width:1em;height:1em;vertical-align:-.15em;fill:currentColor;overflow:hidden}.mx-datepicker-range{width:320px}.mx-datepicker-inline{width:auto}.mx-input-wrapper{position:relative}.mx-input{display:inline-block;box-sizing:border-box;width:100%;height:34px;padding:6px 30px 6px 10px;font-size:14px;line-height:1.4;color:#555;background-color:#fff;border:1px solid #ccc;border-radius:4px;box-shadow:inset 0 1px 1px #00000013}.mx-input:hover,.mx-input:focus{border-color:#409aff}.mx-input:disabled,.mx-input.disabled{color:#ccc;background-color:#f3f3f3;border-color:#ccc;cursor:not-allowed}.mx-input:focus{outline:none}.mx-input::-ms-clear{display:none}.mx-icon-calendar,.mx-icon-clear{position:absolute;top:50%;right:8px;transform:translateY(-50%);font-size:16px;line-height:1;color:#00000080;vertical-align:middle}.mx-icon-clear{cursor:pointer}.mx-icon-clear:hover{color:#000c}.mx-datepicker-main{font:14px/1.5 Helvetica Neue,Helvetica,Arial,Microsoft Yahei,sans-serif;color:#73879c;background-color:#fff;border:1px solid #e8e8e8}.mx-datepicker-popup{position:absolute;margin-top:1px;margin-bottom:1px;box-shadow:0 6px 12px #0000002d;z-index:2001}.mx-datepicker-sidebar{float:left;box-sizing:border-box;width:100px;padding:6px;overflow:auto}.mx-datepicker-sidebar+.mx-datepicker-content{margin-left:100px;border-left:1px solid #e8e8e8}.mx-datepicker-body{position:relative;-webkit-user-select:none;user-select:none}.mx-btn-shortcut{display:block;padding:0 6px;line-height:24px}.mx-range-wrapper{display:flex}@media (max-width: 750px){.mx-range-wrapper{flex-direction:column}}.mx-datepicker-header{padding:6px 8px;border-bottom:1px solid #e8e8e8}.mx-datepicker-footer{padding:6px 8px;text-align:right;border-top:1px solid #e8e8e8}.mx-calendar{box-sizing:border-box;width:248px;padding:6px 12px}.mx-calendar+.mx-calendar{border-left:1px solid #e8e8e8}.mx-calendar-header,.mx-time-header{box-sizing:border-box;height:34px;line-height:34px;text-align:center;overflow:hidden}.mx-btn-icon-left,.mx-btn-icon-double-left{float:left}.mx-btn-icon-right,.mx-btn-icon-double-right{float:right}.mx-calendar-header-label{font-size:14px}.mx-calendar-decade-separator{margin:0 2px}.mx-calendar-decade-separator:after{content:"~"}.mx-calendar-content{position:relative;height:224px;box-sizing:border-box}.mx-calendar-content .cell{cursor:pointer}.mx-calendar-content .cell:hover{color:#73879c;background-color:#f3f9fe}.mx-calendar-content .cell.active{color:#fff;background-color:#1284e7}.mx-calendar-content .cell.in-range,.mx-calendar-content .cell.hover-in-range{color:#73879c;background-color:#dbedfb}.mx-calendar-content .cell.disabled{cursor:not-allowed;color:#ccc;background-color:#f3f3f3}.mx-calendar-week-mode .mx-date-row{cursor:pointer}.mx-calendar-week-mode .mx-date-row:hover{background-color:#f3f9fe}.mx-calendar-week-mode .mx-date-row.mx-active-week{background-color:#dbedfb}.mx-calendar-week-mode .mx-date-row .cell:hover,.mx-calendar-week-mode .mx-date-row .cell.active{color:inherit;background-color:transparent}.mx-week-number{opacity:.5}.mx-table{table-layout:fixed;border-collapse:separate;border-spacing:0;width:100%;height:100%;box-sizing:border-box;text-align:center}.mx-table th{padding:0;font-weight:500;vertical-align:middle}.mx-table td{padding:0;vertical-align:middle}.mx-table-date td,.mx-table-date th{height:32px;font-size:12px}.mx-table-date .today{color:#2a90e9}.mx-table-date .cell.not-current-month{color:#ccc;background:none}.mx-time{flex:1;width:224px;background:#fff}.mx-time+.mx-time{border-left:1px solid #e8e8e8}.mx-calendar-time{position:absolute;top:0;left:0;width:100%;height:100%}.mx-time-header{border-bottom:1px solid #e8e8e8}.mx-time-content{height:224px;box-sizing:border-box;overflow:hidden}.mx-time-columns{display:flex;width:100%;height:100%;overflow:hidden}.mx-time-column{flex:1;position:relative;border-left:1px solid #e8e8e8;text-align:center}.mx-time-column:first-child{border-left:0}.mx-time-column .mx-time-list{margin:0;padding:0;list-style:none}.mx-time-column .mx-time-list:after{content:"";display:block;height:192px}.mx-time-column .mx-time-item{cursor:pointer;font-size:12px;height:32px;line-height:32px}.mx-time-column .mx-time-item:hover{color:#73879c;background-color:#f3f9fe}.mx-time-column .mx-time-item.active{color:#1284e7;background-color:transparent;font-weight:700}.mx-time-column .mx-time-item.disabled{cursor:not-allowed;color:#ccc;background-color:#f3f3f3}.mx-time-option{cursor:pointer;padding:8px 10px;font-size:14px;line-height:20px}.mx-time-option:hover{color:#73879c;background-color:#f3f9fe}.mx-time-option.active{color:#1284e7;background-color:transparent;font-weight:700}.mx-time-option.disabled{cursor:not-allowed;color:#ccc;background-color:#f3f3f3}.mx-datepicker[data-v-cfad8df]{-webkit-user-select:none;user-select:none;color:var(--color-main-text)}.mx-datepicker[data-v-cfad8df] svg{fill:var(--color-main-text)}.mx-datepicker[data-v-cfad8df] .mx-input-wrapper .mx-input{width:100%;border:2px solid var(--color-border-maxcontrast);background-color:var(--color-main-background);background-clip:content-box}.mx-datepicker[data-v-cfad8df] .mx-input-wrapper .mx-input:active:not(.disabled),.mx-datepicker[data-v-cfad8df] .mx-input-wrapper .mx-input:hover:not(.disabled),.mx-datepicker[data-v-cfad8df] .mx-input-wrapper .mx-input:focus:not(.disabled){border-color:var(--color-primary-element)}.mx-datepicker[data-v-cfad8df] .mx-input-wrapper:disabled,.mx-datepicker[data-v-cfad8df] .mx-input-wrapper.disabled{cursor:not-allowed;opacity:.7}.mx-datepicker[data-v-cfad8df] .mx-input-wrapper .mx-icon-calendar,.mx-datepicker[data-v-cfad8df] .mx-input-wrapper .mx-icon-clear{color:var(--color-text-lighter)}.mx-datepicker-main{color:var(--color-main-text);border:1px solid var(--color-border);background-color:var(--color-main-background);font-family:var(--font-face)!important;line-height:1.5}.mx-datepicker-main svg{fill:var(--color-main-text)}.mx-datepicker-main.mx-datepicker-popup{z-index:2000;box-shadow:none}.mx-datepicker-main.mx-datepicker-popup .mx-datepicker-sidebar+.mx-datepicker-content{border-left:1px solid var(--color-border)}.mx-datepicker-main.show-week-number .mx-calendar{width:296px}.mx-datepicker-main .mx-datepicker-header{border-bottom:1px solid var(--color-border)}.mx-datepicker-main .mx-datepicker-footer{border-top:1px solid var(--color-border)}.mx-datepicker-main .mx-datepicker-btn-confirm{background-color:var(--color-primary-element);border-color:var(--color-primary-element);color:var(--color-primary-element-text)!important;opacity:1!important}.mx-datepicker-main .mx-datepicker-btn-confirm:hover{background-color:var(--color-primary-element-light)!important;border-color:var(--color-primary-element-light)!important}.mx-datepicker-main .mx-calendar{width:264px;padding:5px}.mx-datepicker-main .mx-calendar.mx-calendar-week-mode{width:296px}.mx-datepicker-main .mx-time+.mx-time,.mx-datepicker-main .mx-calendar+.mx-calendar{border-left:1px solid var(--color-border)}.mx-datepicker-main .mx-range-wrapper{display:flex;overflow:hidden}.mx-datepicker-main .mx-range-wrapper .mx-calendar-content .mx-table-date .cell.active{border-radius:var(--border-radius) 0 0 var(--border-radius)}.mx-datepicker-main .mx-range-wrapper .mx-calendar-content .mx-table-date .cell.in-range+.cell.active{border-radius:0 var(--border-radius) var(--border-radius) 0}.mx-datepicker-main .mx-table{text-align:center}.mx-datepicker-main .mx-table thead>tr>th{text-align:center;opacity:.5;color:var(--color-text-lighter)}.mx-datepicker-main .mx-table tr:focus,.mx-datepicker-main .mx-table tr:hover,.mx-datepicker-main .mx-table tr:active{background-color:transparent}.mx-datepicker-main .mx-table .cell{transition:all .1s ease-in-out;text-align:center;opacity:.7;border-radius:50px}.mx-datepicker-main .mx-table .cell>*{cursor:pointer}.mx-datepicker-main .mx-table .cell.today{opacity:1;color:var(--color-primary-element);font-weight:700}.mx-datepicker-main .mx-table .cell.today:hover,.mx-datepicker-main .mx-table .cell.today:focus{color:var(--color-primary-element-text)}.mx-datepicker-main .mx-table .cell.in-range,.mx-datepicker-main .mx-table .cell.disabled{border-radius:0;font-weight:400}.mx-datepicker-main .mx-table .cell.in-range{opacity:.7}.mx-datepicker-main .mx-table .cell.not-current-month{opacity:.5;color:var(--color-text-lighter)}.mx-datepicker-main .mx-table .cell.not-current-month:hover,.mx-datepicker-main .mx-table .cell.not-current-month:focus{opacity:1}.mx-datepicker-main .mx-table .cell:hover,.mx-datepicker-main .mx-table .cell:focus,.mx-datepicker-main .mx-table .cell.actived,.mx-datepicker-main .mx-table .cell.active,.mx-datepicker-main .mx-table .cell.in-range{opacity:1;color:var(--color-primary-element-text);background-color:var(--color-primary-element);font-weight:700}.mx-datepicker-main .mx-table .cell.disabled{opacity:.5;color:var(--color-text-lighter);border-radius:0;background-color:var(--color-background-darker)}.mx-datepicker-main .mx-table .mx-week-number{text-align:center;opacity:.7;border-radius:50px}.mx-datepicker-main .mx-table span.mx-week-number,.mx-datepicker-main .mx-table li.mx-week-number,.mx-datepicker-main .mx-table span.cell,.mx-datepicker-main .mx-table li.cell{min-height:32px}.mx-datepicker-main .mx-table.mx-table-date thead,.mx-datepicker-main .mx-table.mx-table-date tbody,.mx-datepicker-main .mx-table.mx-table-year,.mx-datepicker-main .mx-table.mx-table-month{display:flex;flex-direction:column;justify-content:space-around}.mx-datepicker-main .mx-table.mx-table-date thead tr,.mx-datepicker-main .mx-table.mx-table-date tbody tr,.mx-datepicker-main .mx-table.mx-table-year tr,.mx-datepicker-main .mx-table.mx-table-month tr{display:inline-flex;align-items:center;flex:1 1 32px;justify-content:space-around;min-height:32px}.mx-datepicker-main .mx-table.mx-table-date thead th,.mx-datepicker-main .mx-table.mx-table-date thead td,.mx-datepicker-main .mx-table.mx-table-date tbody th,.mx-datepicker-main .mx-table.mx-table-date tbody td,.mx-datepicker-main .mx-table.mx-table-year th,.mx-datepicker-main .mx-table.mx-table-year td,.mx-datepicker-main .mx-table.mx-table-month th,.mx-datepicker-main .mx-table.mx-table-month td{display:flex;align-items:center;flex:0 1 32%;justify-content:center;min-width:32px;height:95%;min-height:32px;transition:background .1s ease-in-out}.mx-datepicker-main .mx-table.mx-table-year tr th,.mx-datepicker-main .mx-table.mx-table-year tr td{flex-basis:48%}.mx-datepicker-main .mx-table.mx-table-date tr th,.mx-datepicker-main .mx-table.mx-table-date tr td{flex-basis:32px}.mx-datepicker-main .mx-btn{min-width:32px;height:32px;margin:0 2px!important;padding:7px 10px;cursor:pointer;text-decoration:none;opacity:.5;color:var(--color-text-lighter);border-radius:32px;line-height:20px}.mx-datepicker-main .mx-btn:hover,.mx-datepicker-main .mx-btn:focus{opacity:1;color:var(--color-main-text);background-color:var(--color-background-darker)}.mx-datepicker-main .mx-calendar-header,.mx-datepicker-main .mx-time-header{display:inline-flex;align-items:center;justify-content:space-between;width:100%;height:44px;margin-bottom:4px}.mx-datepicker-main .mx-calendar-header button,.mx-datepicker-main .mx-time-header button{min-width:32px;min-height:32px;margin:0;cursor:pointer;text-align:center;text-decoration:none;opacity:.7;color:var(--color-main-text);border-radius:32px;line-height:20px}.mx-datepicker-main .mx-calendar-header button:hover,.mx-datepicker-main .mx-time-header button:hover,.mx-datepicker-main .mx-calendar-header button:focus,.mx-datepicker-main .mx-time-header button:focus{opacity:1;color:var(--color-main-text);background-color:var(--color-background-darker)}.mx-datepicker-main .mx-calendar-header button.mx-btn-icon-double-left,.mx-datepicker-main .mx-time-header button.mx-btn-icon-double-left,.mx-datepicker-main .mx-calendar-header button.mx-btn-icon-left,.mx-datepicker-main .mx-time-header button.mx-btn-icon-left,.mx-datepicker-main .mx-calendar-header button.mx-btn-icon-right,.mx-datepicker-main .mx-time-header button.mx-btn-icon-right,.mx-datepicker-main .mx-calendar-header button.mx-btn-icon-double-right,.mx-datepicker-main .mx-time-header button.mx-btn-icon-double-right{align-items:center;justify-content:center;width:32px;padding:0}.mx-datepicker-main .mx-calendar-header button.mx-btn-icon-double-left>i,.mx-datepicker-main .mx-time-header button.mx-btn-icon-double-left>i,.mx-datepicker-main .mx-calendar-header button.mx-btn-icon-left>i,.mx-datepicker-main .mx-time-header button.mx-btn-icon-left>i,.mx-datepicker-main .mx-calendar-header button.mx-btn-icon-right>i,.mx-datepicker-main .mx-time-header button.mx-btn-icon-right>i,.mx-datepicker-main .mx-calendar-header button.mx-btn-icon-double-right>i,.mx-datepicker-main .mx-time-header button.mx-btn-icon-double-right>i{background-repeat:no-repeat;background-size:16px;background-position:center;filter:var(--background-invert-if-dark);display:inline-block;width:32px;height:32px}.mx-datepicker-main .mx-calendar-header button.mx-btn-icon-double-left>i:after,.mx-datepicker-main .mx-time-header button.mx-btn-icon-double-left>i:after,.mx-datepicker-main .mx-calendar-header button.mx-btn-icon-double-left>i:before,.mx-datepicker-main .mx-time-header button.mx-btn-icon-double-left>i:before,.mx-datepicker-main .mx-calendar-header button.mx-btn-icon-left>i:after,.mx-datepicker-main .mx-time-header button.mx-btn-icon-left>i:after,.mx-datepicker-main .mx-calendar-header button.mx-btn-icon-left>i:before,.mx-datepicker-main .mx-time-header button.mx-btn-icon-left>i:before,.mx-datepicker-main .mx-calendar-header button.mx-btn-icon-right>i:after,.mx-datepicker-main .mx-time-header button.mx-btn-icon-right>i:after,.mx-datepicker-main .mx-calendar-header button.mx-btn-icon-right>i:before,.mx-datepicker-main .mx-time-header button.mx-btn-icon-right>i:before,.mx-datepicker-main .mx-calendar-header button.mx-btn-icon-double-right>i:after,.mx-datepicker-main .mx-time-header button.mx-btn-icon-double-right>i:after,.mx-datepicker-main .mx-calendar-header button.mx-btn-icon-double-right>i:before,.mx-datepicker-main .mx-time-header button.mx-btn-icon-double-right>i:before{content:none}.mx-datepicker-main .mx-calendar-header button.mx-btn-text,.mx-datepicker-main .mx-time-header button.mx-btn-text{line-height:initial}.mx-datepicker-main .mx-calendar-header .mx-calendar-header-label,.mx-datepicker-main .mx-time-header .mx-calendar-header-label{display:flex}.mx-datepicker-main .mx-calendar-header .mx-btn-icon-double-left>i,.mx-datepicker-main .mx-time-header .mx-btn-icon-double-left>i{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0iIzIyMiI+PHBhdGggZD0iTTE4LjQgNy40TDE3IDZsLTYgNiA2IDYgMS40LTEuNC00LjYtNC42IDQuNi00LjZtLTYgMEwxMSA2bC02IDYgNiA2IDEuNC0xLjRMNy44IDEybDQuNi00LjZ6Ii8+PC9zdmc+)}.mx-datepicker-main .mx-calendar-header .mx-btn-icon-left>i,.mx-datepicker-main .mx-time-header .mx-btn-icon-left>i{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0iIzIyMiI+PHBhdGggZD0iTTE1LjQgMTYuNkwxMC44IDEybDQuNi00LjZMMTQgNmwtNiA2IDYgNiAxLjQtMS40eiIvPjwvc3ZnPg==)}.mx-datepicker-main .mx-calendar-header .mx-btn-icon-right>i,.mx-datepicker-main .mx-time-header .mx-btn-icon-right>i{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0iIzIyMiI+PHBhdGggZD0iTTguNiAxNi42bDQuNi00LjYtNC42LTQuNkwxMCA2bDYgNi02IDYtMS40LTEuNHoiLz48L3N2Zz4=)}.mx-datepicker-main .mx-calendar-header .mx-btn-icon-double-right>i,.mx-datepicker-main .mx-time-header .mx-btn-icon-double-right>i{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0iIzIyMiI+PHBhdGggZD0iTTUuNiA3LjRMNyA2bDYgNi02IDYtMS40LTEuNCA0LjYtNC42LTQuNi00LjZtNiAwTDEzIDZsNiA2LTYgNi0xLjQtMS40IDQuNi00LjYtNC42LTQuNnoiLz48L3N2Zz4=)}.mx-datepicker-main .mx-calendar-header button.mx-btn-icon-right,.mx-datepicker-main .mx-time-header button.mx-btn-icon-right{order:2}.mx-datepicker-main .mx-calendar-header button.mx-btn-icon-double-right,.mx-datepicker-main .mx-time-header button.mx-btn-icon-double-right{order:3}.mx-datepicker-main .mx-calendar-week-mode .mx-date-row .mx-week-number{font-weight:700}.mx-datepicker-main .mx-calendar-week-mode .mx-date-row:hover,.mx-datepicker-main .mx-calendar-week-mode .mx-date-row.mx-active-week{opacity:1;border-radius:50px;background-color:var(--color-background-dark)}.mx-datepicker-main .mx-calendar-week-mode .mx-date-row:hover td,.mx-datepicker-main .mx-calendar-week-mode .mx-date-row.mx-active-week td{background-color:transparent}.mx-datepicker-main .mx-calendar-week-mode .mx-date-row:hover td,.mx-datepicker-main .mx-calendar-week-mode .mx-date-row:hover td:hover,.mx-datepicker-main .mx-calendar-week-mode .mx-date-row:hover td:focus,.mx-datepicker-main .mx-calendar-week-mode .mx-date-row.mx-active-week td,.mx-datepicker-main .mx-calendar-week-mode .mx-date-row.mx-active-week td:hover,.mx-datepicker-main .mx-calendar-week-mode .mx-date-row.mx-active-week td:focus{color:inherit}.mx-datepicker-main .mx-calendar-week-mode .mx-date-row.mx-active-week{color:var(--color-primary-element-text);background-color:var(--color-primary-element)}.mx-datepicker-main .mx-calendar-week-mode .mx-date-row.mx-active-week td{opacity:.7;font-weight:400}.mx-datepicker-main .mx-time{background-color:var(--color-main-background)}.mx-datepicker-main .mx-time .mx-time-header{justify-content:center;border-bottom:1px solid var(--color-border)}.mx-datepicker-main .mx-time .mx-time-column{border-left:1px solid var(--color-border)}.mx-datepicker-main .mx-time .mx-time-option.active,.mx-datepicker-main .mx-time .mx-time-option:hover,.mx-datepicker-main .mx-time .mx-time-item.active,.mx-datepicker-main .mx-time .mx-time-item:hover{color:var(--color-primary-element-text);background-color:var(--color-primary-element)}.mx-datepicker-main .mx-time .mx-time-option.disabled,.mx-datepicker-main .mx-time .mx-time-item.disabled{cursor:not-allowed;opacity:.5;color:var(--color-main-text);background-color:var(--color-main-background)}.material-design-icon[data-v-26676d3b]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.mx-datepicker[data-v-26676d3b] .mx-input-wrapper .mx-input{background-clip:border-box}.datetime-picker-inline-icon[data-v-26676d3b]{opacity:.3;border:none;background-color:transparent;border-radius:0;padding:0!important;margin:0}.datetime-picker-inline-icon--highlighted[data-v-26676d3b]{opacity:.7}.datetime-picker-inline-icon[data-v-26676d3b]:focus,.datetime-picker-inline-icon[data-v-26676d3b]:hover{opacity:1}.v-popper--theme-dropdown.v-popper__popper.timezone-select__popper .v-popper__wrapper{border-radius:var(--border-radius-large)}.v-popper--theme-dropdown.v-popper__popper.timezone-select__popper .v-popper__wrapper .v-popper__inner{padding:4px;border-radius:var(--border-radius-large)}.v-popper--theme-dropdown.v-popper__popper.timezone-select__popper .v-popper__wrapper .v-popper__inner .timezone-popover-wrapper__label{padding:4px 0 4px 14px}.v-popper--theme-dropdown.v-popper__popper.timezone-select__popper .v-popper__wrapper .v-popper__inner .timezone-popover-wrapper__timezone-select.v-select .vs__dropdown-toggle{border-radius:calc(var(--border-radius-large) - 4px)}.v-popper--theme-dropdown.v-popper__popper.timezone-select__popper .v-popper__wrapper .v-popper__inner .timezone-popover-wrapper__timezone-select.v-select.vs--open .vs__dropdown-toggle{border-bottom-left-radius:0;border-bottom-right-radius:0}.v-popper--theme-dropdown.v-popper__popper.timezone-select__popper .v-popper__wrapper .v-popper__inner .timezone-popover-wrapper__timezone-select.v-select.vs--open.select--drop-up .vs__dropdown-toggle{border-radius:0 0 calc(var(--border-radius-large) - 4px) calc(var(--border-radius-large) - 4px)}.vs__dropdown-menu--floating{z-index:100001}.material-design-icon[data-v-22982259]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.native-datetime-picker[data-v-22982259]{display:flex;flex-direction:column}.native-datetime-picker .native-datetime-picker--input[data-v-22982259]{width:100%;flex:0 0 auto;padding-right:4px}.material-design-icon[data-v-b5f9046e]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}li.active[data-v-b5f9046e]{background-color:var(--color-background-hover);border-radius:6px;padding:0}.action--disabled[data-v-b5f9046e]{pointer-events:none;opacity:.5}.action--disabled[data-v-b5f9046e]:hover,.action--disabled[data-v-b5f9046e]:focus{cursor:default;opacity:.5}.action--disabled *[data-v-b5f9046e]{opacity:1!important}.action-radio[data-v-b5f9046e]{display:flex;align-items:flex-start;width:100%;height:auto;margin:0;padding:0;cursor:pointer;white-space:nowrap;color:var(--color-main-text);border:0;border-radius:0;background-color:transparent;box-shadow:none;font-weight:400;line-height:44px}.action-radio__radio[data-v-b5f9046e]{position:absolute;top:auto;left:-10000px;overflow:hidden;width:1px;height:1px}.action-radio__label[data-v-b5f9046e]{display:flex;align-items:center;width:100%;padding:0 14px 0 0!important}.action-radio__label[data-v-b5f9046e]:before{margin:0 14px!important}.action-radio--disabled[data-v-b5f9046e],.action-radio--disabled .action-radio__label[data-v-b5f9046e]{cursor:pointer}.material-design-icon[data-v-bfe3e3d6]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}li.active[data-v-bfe3e3d6]{background-color:var(--color-background-hover);border-radius:6px;padding:0}.action-router[data-v-bfe3e3d6]{display:flex;align-items:flex-start;width:100%;height:auto;margin:0;padding:0 14px 0 0;box-sizing:border-box;cursor:pointer;white-space:nowrap;color:var(--color-main-text);border:0;border-radius:0;background-color:transparent;box-shadow:none;font-weight:400;font-size:var(--default-font-size);line-height:44px}.action-router>span[data-v-bfe3e3d6]{cursor:pointer;white-space:nowrap}.action-router__icon[data-v-bfe3e3d6]{width:44px;height:44px;opacity:1;background-position:14px center;background-size:16px;background-repeat:no-repeat}.action-router[data-v-bfe3e3d6] .material-design-icon{width:44px;height:44px;opacity:1}.action-router[data-v-bfe3e3d6] .material-design-icon .material-design-icon__svg{vertical-align:middle}.action-router__longtext-wrapper[data-v-bfe3e3d6],.action-router__longtext[data-v-bfe3e3d6]{max-width:220px;line-height:1.6em;padding:10.8px 0;cursor:pointer;text-align:left;overflow:hidden;text-overflow:ellipsis}.action-router__longtext[data-v-bfe3e3d6]{cursor:pointer;white-space:pre-wrap!important}.action-router__name[data-v-bfe3e3d6]{font-weight:700;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;max-width:100%;display:inline-block}.action-router__menu-icon[data-v-bfe3e3d6]{margin-left:auto;margin-right:-14px}.action--disabled[data-v-bfe3e3d6]{pointer-events:none;opacity:.5}.action--disabled[data-v-bfe3e3d6]:hover,.action--disabled[data-v-bfe3e3d6]:focus{cursor:default;opacity:.5}.action--disabled *[data-v-bfe3e3d6]{opacity:1!important}.material-design-icon[data-v-66fbe6db]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.action-separator[data-v-66fbe6db]{height:0;margin:5px 10px 5px 15px;border-bottom:1px solid var(--color-border-dark);cursor:default}.material-design-icon[data-v-c788d299]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}li.active[data-v-c788d299]{background-color:var(--color-background-hover);border-radius:6px;padding:0}.action-text[data-v-c788d299]{display:flex;align-items:flex-start;width:100%;height:auto;margin:0;padding:0 14px 0 0;box-sizing:border-box;cursor:pointer;white-space:nowrap;color:var(--color-main-text);border:0;border-radius:0;background-color:transparent;box-shadow:none;font-weight:400;font-size:var(--default-font-size);line-height:44px}.action-text>span[data-v-c788d299]{cursor:pointer;white-space:nowrap}.action-text__icon[data-v-c788d299]{width:44px;height:44px;opacity:1;background-position:14px center;background-size:16px;background-repeat:no-repeat}.action-text[data-v-c788d299] .material-design-icon{width:44px;height:44px;opacity:1}.action-text[data-v-c788d299] .material-design-icon .material-design-icon__svg{vertical-align:middle}.action-text__longtext-wrapper[data-v-c788d299],.action-text__longtext[data-v-c788d299]{max-width:220px;line-height:1.6em;padding:10.8px 0;cursor:pointer;text-align:left;overflow:hidden;text-overflow:ellipsis}.action-text__longtext[data-v-c788d299]{cursor:pointer;white-space:pre-wrap!important}.action-text__name[data-v-c788d299]{font-weight:700;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;max-width:100%;display:inline-block}.action-text__menu-icon[data-v-c788d299]{margin-left:auto;margin-right:-14px}.action--disabled[data-v-c788d299]{pointer-events:none;opacity:.5}.action--disabled[data-v-c788d299]:hover,.action--disabled[data-v-c788d299]:focus{cursor:default;opacity:.5}.action--disabled *[data-v-c788d299]{opacity:1!important}.action-text[data-v-c788d299],.action-text span[data-v-c788d299]{cursor:default}.material-design-icon[data-v-b0b05af8]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}button[data-v-b0b05af8]:not(.button-vue),input[data-v-b0b05af8]:not([type=range]),textarea[data-v-b0b05af8]{margin:0;padding:7px 6px;cursor:text;color:var(--color-text-lighter);border:1px solid var(--color-border-dark);border-radius:var(--border-radius);outline:none;background-color:var(--color-main-background);font-size:13px}button[data-v-b0b05af8]:not(.button-vue):not(:disabled):not(.primary):hover,button[data-v-b0b05af8]:not(.button-vue):not(:disabled):not(.primary):focus,button:not(.button-vue):not(:disabled):not(.primary).active[data-v-b0b05af8],input[data-v-b0b05af8]:not([type=range]):not(:disabled):not(.primary):hover,input[data-v-b0b05af8]:not([type=range]):not(:disabled):not(.primary):focus,input:not([type=range]):not(:disabled):not(.primary).active[data-v-b0b05af8],textarea[data-v-b0b05af8]:not(:disabled):not(.primary):hover,textarea[data-v-b0b05af8]:not(:disabled):not(.primary):focus,textarea:not(:disabled):not(.primary).active[data-v-b0b05af8]{border-color:var(--color-primary-element);outline:none}button[data-v-b0b05af8]:not(.button-vue):not(:disabled):not(.primary):active,input[data-v-b0b05af8]:not([type=range]):not(:disabled):not(.primary):active,textarea[data-v-b0b05af8]:not(:disabled):not(.primary):active{color:var(--color-text-light);outline:none;background-color:var(--color-main-background)}button[data-v-b0b05af8]:not(.button-vue):disabled,input[data-v-b0b05af8]:not([type=range]):disabled,textarea[data-v-b0b05af8]:disabled{cursor:default;opacity:.5;color:var(--color-text-maxcontrast);background-color:var(--color-background-dark)}button[data-v-b0b05af8]:not(.button-vue):required,input[data-v-b0b05af8]:not([type=range]):required,textarea[data-v-b0b05af8]:required{box-shadow:none}button[data-v-b0b05af8]:not(.button-vue):invalid,input[data-v-b0b05af8]:not([type=range]):invalid,textarea[data-v-b0b05af8]:invalid{border-color:var(--color-error);box-shadow:none!important}button:not(.button-vue).primary[data-v-b0b05af8],input:not([type=range]).primary[data-v-b0b05af8],textarea.primary[data-v-b0b05af8]{cursor:pointer;color:var(--color-primary-element-text);border-color:var(--color-primary-element);background-color:var(--color-primary-element)}button:not(.button-vue).primary[data-v-b0b05af8]:not(:disabled):hover,button:not(.button-vue).primary[data-v-b0b05af8]:not(:disabled):focus,button:not(.button-vue).primary[data-v-b0b05af8]:not(:disabled):active,input:not([type=range]).primary[data-v-b0b05af8]:not(:disabled):hover,input:not([type=range]).primary[data-v-b0b05af8]:not(:disabled):focus,input:not([type=range]).primary[data-v-b0b05af8]:not(:disabled):active,textarea.primary[data-v-b0b05af8]:not(:disabled):hover,textarea.primary[data-v-b0b05af8]:not(:disabled):focus,textarea.primary[data-v-b0b05af8]:not(:disabled):active{border-color:var(--color-primary-element-light);background-color:var(--color-primary-element-light)}button:not(.button-vue).primary[data-v-b0b05af8]:not(:disabled):active,input:not([type=range]).primary[data-v-b0b05af8]:not(:disabled):active,textarea.primary[data-v-b0b05af8]:not(:disabled):active{color:var(--color-primary-element-text-dark)}button:not(.button-vue).primary[data-v-b0b05af8]:disabled,input:not([type=range]).primary[data-v-b0b05af8]:disabled,textarea.primary[data-v-b0b05af8]:disabled{cursor:default;color:var(--color-primary-element-text-dark);background-color:var(--color-primary-element)}/** * @copyright Copyright (c) 2019 John Molakvoæ * * @author John Molakvoæ @@ -19,7 +19,7 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . * - */li.active[data-v-b0b05af8]{background-color:var(--color-background-hover);border-radius:6px;padding:0}.action--disabled[data-v-b0b05af8]{pointer-events:none;opacity:.5}.action--disabled[data-v-b0b05af8]:hover,.action--disabled[data-v-b0b05af8]:focus{cursor:default;opacity:.5}.action--disabled *[data-v-b0b05af8]{opacity:1!important}.action-text-editable[data-v-b0b05af8]{display:flex;align-items:flex-start;width:100%;height:auto;margin:0;padding:0;cursor:pointer;white-space:nowrap;color:var(--color-main-text);border:0;border-radius:0;background-color:transparent;box-shadow:none;font-weight:400;line-height:44px}.action-text-editable>span[data-v-b0b05af8]{cursor:pointer;white-space:nowrap}.action-text-editable__icon[data-v-b0b05af8]{min-width:0;min-height:0;padding:22px 0 22px 44px;background-position:14px center;background-size:16px}.action-text-editable[data-v-b0b05af8] .material-design-icon{width:44px;height:44px;opacity:1}.action-text-editable[data-v-b0b05af8] .material-design-icon .material-design-icon__svg{vertical-align:middle}.action-text-editable__form[data-v-b0b05af8]{display:flex;flex:1 1 auto;flex-direction:column;position:relative;margin:4px 0;padding-right:14px}.action-text-editable__submit[data-v-b0b05af8]{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}.action-text-editable__label[data-v-b0b05af8]{display:flex;align-items:center;justify-content:center;position:absolute;right:15px;bottom:1px;width:36px;height:36px;box-sizing:border-box;margin:0;padding:7px 6px;border:0;border-radius:50%;background-color:var(--color-main-background);background-clip:padding-box}.action-text-editable__label[data-v-b0b05af8],.action-text-editable__label *[data-v-b0b05af8]{cursor:pointer}.action-text-editable__textarea[data-v-b0b05af8]{flex:1 1 auto;color:inherit;border-color:var(--color-border-maxcontrast);min-height:80px;max-height:124px;min-width:176px;width:100%!important;margin:0}.action-text-editable__textarea[data-v-b0b05af8]:disabled{cursor:default}.action-text-editable__textarea:not(:active):not(:hover):not(:focus):invalid+.action-text-editable__label[data-v-b0b05af8]{background-color:var(--color-error)}.action-text-editable__textarea:not(:active):not(:hover):not(:focus):not(:disabled)+.action-text-editable__label[data-v-b0b05af8]:active,.action-text-editable__textarea:not(:active):not(:hover):not(:focus):not(:disabled)+.action-text-editable__label[data-v-b0b05af8]:hover,.action-text-editable__textarea:not(:active):not(:hover):not(:focus):not(:disabled)+.action-text-editable__label[data-v-b0b05af8]:focus{background-color:var(--color-primary-element);color:var(--color-primary-element-text)}.action-text-editable__textarea:active:not(:disabled)+.action-text-editable__label[data-v-b0b05af8],.action-text-editable__textarea:hover:not(:disabled)+.action-text-editable__label[data-v-b0b05af8],.action-text-editable__textarea:focus:not(:disabled)+.action-text-editable__label[data-v-b0b05af8]{z-index:2;border-color:var(--color-primary-element);border-left-color:transparent}li:last-child>.action-text-editable[data-v-b0b05af8]{margin-bottom:10px}li:first-child>.action-text-editable[data-v-b0b05af8]{margin-top:10px}.app-navigation,.app-content{--app-navigation-padding: calc(var(--default-grid-baseline, 4px) * 2)}.material-design-icon[data-v-fd869d62]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.app-navigation[data-v-fd869d62]{--color-text-maxcontrast: var(--color-text-maxcontrast-background-blur, var(--color-text-maxcontrast-default));transition:transform var(--animation-quick),margin var(--animation-quick);width:300px;max-width:calc(100vw - (var(--app-navigation-padding) + var(--default-clickable-area) + var(--default-grid-baseline)));position:relative;top:0;left:0;padding:0;z-index:1800;height:100%;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;flex-grow:0;flex-shrink:0;background-color:var(--color-main-background-blur, var(--color-main-background));-webkit-backdrop-filter:var(--filter-background-blur, none);backdrop-filter:var(--filter-background-blur, none)}.app-navigation--close[data-v-fd869d62]{transform:translate(-100%);position:absolute}.app-navigation__content>ul[data-v-fd869d62],.app-navigation__list[data-v-fd869d62]{position:relative;height:100%;width:100%;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;display:flex;flex-direction:column;gap:var(--default-grid-baseline, 4px);padding:var(--app-navigation-padding)}.app-navigation__content[data-v-fd869d62]{height:100%;display:flex;flex-direction:column}[data-themes*=highcontrast] .app-navigation[data-v-fd869d62]{border-right:1px solid var(--color-border)}@media only screen and (max-width: 1024px){.app-navigation[data-v-fd869d62]:not(.app-navigation--close){position:absolute}}.material-design-icon[data-v-13b4f13a]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}button.app-navigation-toggle[data-v-13b4f13a]{position:absolute;top:var(--app-navigation-padding);right:calc(0px - var(--app-navigation-padding));margin-right:-44px;background-color:var(--color-main-background)}.material-design-icon[data-v-f01eb538]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.app-navigation-caption[data-v-f01eb538]{display:flex;justify-content:space-between}.app-navigation-caption__name[data-v-f01eb538]{font-weight:700;color:var(--color-primary-element);font-size:var(--default-font-size);line-height:44px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:.7;box-shadow:none!important;flex-shrink:0;padding:0 calc(var(--default-grid-baseline, 4px) * 2) 0 calc(var(--default-grid-baseline, 4px) * 3)}.app-navigation-caption__actions[data-v-f01eb538]{flex:0 0 44px}.app-navigation-caption[data-v-f01eb538]:not(:first-child){margin-top:22px}.material-design-icon[data-v-91580127]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.app-navigation-entry__icon-bullet[data-v-91580127]{display:block;padding:15px}.app-navigation-entry__icon-bullet div[data-v-91580127]{width:14px;height:14px;cursor:pointer;transition:background .1s ease-in-out;border:none;border-radius:50%}.material-design-icon[data-v-07582bf6]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.button-vue.icon-collapse[data-v-07582bf6]{position:relative;z-index:105;color:var(--color-main-text);right:0}.button-vue.icon-collapse--open[data-v-07582bf6]{color:var(--color-main-text)}.button-vue.icon-collapse--open[data-v-07582bf6]:hover{color:var(--color-primary-element)}.material-design-icon[data-v-d7365865]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.app-navigation-entry[data-v-d7365865]{position:relative;display:flex;flex-shrink:0;flex-wrap:wrap;box-sizing:border-box;width:100%;min-height:44px;transition:background-color var(--animation-quick) ease-in-out;transition:background-color .2s ease-in-out;border-radius:var(--border-radius-pill)}.app-navigation-entry-wrapper[data-v-d7365865]{position:relative;display:flex;flex-shrink:0;flex-wrap:wrap;box-sizing:border-box;width:100%}.app-navigation-entry-wrapper.app-navigation-entry--collapsible:not(.app-navigation-entry--opened)>ul[data-v-d7365865]{display:none}.app-navigation-entry.active[data-v-d7365865]{background-color:var(--color-primary-element)!important}.app-navigation-entry.active .app-navigation-entry-link[data-v-d7365865],.app-navigation-entry.active .app-navigation-entry-button[data-v-d7365865]{color:var(--color-primary-element-text)!important}.app-navigation-entry[data-v-d7365865]:focus-within,.app-navigation-entry[data-v-d7365865]:hover{background-color:var(--color-background-hover)}.app-navigation-entry.active .app-navigation-entry__children[data-v-d7365865],.app-navigation-entry:focus-within .app-navigation-entry__children[data-v-d7365865],.app-navigation-entry:hover .app-navigation-entry__children[data-v-d7365865]{background-color:var(--color-main-background)}.app-navigation-entry.active .app-navigation-entry__utils .app-navigation-entry__actions[data-v-d7365865],.app-navigation-entry.app-navigation-entry--deleted .app-navigation-entry__utils .app-navigation-entry__actions[data-v-d7365865],.app-navigation-entry:focus .app-navigation-entry__utils .app-navigation-entry__actions[data-v-d7365865],.app-navigation-entry:focus-within .app-navigation-entry__utils .app-navigation-entry__actions[data-v-d7365865],.app-navigation-entry:hover .app-navigation-entry__utils .app-navigation-entry__actions[data-v-d7365865]{display:inline-block}.app-navigation-entry.app-navigation-entry--deleted>ul[data-v-d7365865]{display:none}.app-navigation-entry:not(.app-navigation-entry--editing) .app-navigation-entry-link[data-v-d7365865],.app-navigation-entry:not(.app-navigation-entry--editing) .app-navigation-entry-button[data-v-d7365865]{padding-right:14px}.app-navigation-entry .app-navigation-entry-link[data-v-d7365865],.app-navigation-entry .app-navigation-entry-button[data-v-d7365865]{z-index:100;display:flex;overflow:hidden;flex:1 1 0;box-sizing:border-box;min-height:44px;padding:0;white-space:nowrap;color:var(--color-main-text);background-repeat:no-repeat;background-position:14px center;background-size:16px 16px;line-height:44px}.app-navigation-entry .app-navigation-entry-link .app-navigation-entry-icon[data-v-d7365865],.app-navigation-entry .app-navigation-entry-button .app-navigation-entry-icon[data-v-d7365865]{display:flex;align-items:center;flex:0 0 44px;justify-content:center;width:44px;height:44px;background-size:16px 16px;background-repeat:no-repeat;background-position:14px center}.app-navigation-entry .app-navigation-entry-link .app-navigation-entry__name[data-v-d7365865],.app-navigation-entry .app-navigation-entry-button .app-navigation-entry__name[data-v-d7365865]{overflow:hidden;max-width:100%;white-space:nowrap;text-overflow:ellipsis}.app-navigation-entry .app-navigation-entry-link .editingContainer[data-v-d7365865],.app-navigation-entry .app-navigation-entry-button .editingContainer[data-v-d7365865]{width:calc(100% - 44px);margin:auto}.app-navigation-entry__children[data-v-d7365865]{position:relative;display:flex;flex:0 1 auto;flex-direction:column;width:100%;gap:var(--default-grid-baseline, 4px)}.app-navigation-entry__children .app-navigation-entry[data-v-d7365865]{display:inline-flex;flex-wrap:wrap;padding-left:16px}.app-navigation-entry__deleted[data-v-d7365865]{display:inline-flex;flex:1 1 0;padding-left:30px!important}.app-navigation-entry__deleted .app-navigation-entry__deleted-description[data-v-d7365865]{position:relative;overflow:hidden;flex:1 1 0;white-space:nowrap;text-overflow:ellipsis;line-height:44px}.app-navigation-entry__utils[data-v-d7365865]{display:flex;min-width:44px;align-items:center;flex:0 1 auto;justify-content:flex-end}.app-navigation-entry__utils.app-navigation-entry__utils--display-actions .action-item.app-navigation-entry__actions[data-v-d7365865]{display:inline-block}.app-navigation-entry__utils .app-navigation-entry__counter-wrapper[data-v-d7365865]{margin-right:calc(var(--default-grid-baseline) * 3);display:flex;align-items:center;flex:0 1 auto}.app-navigation-entry__utils .action-item.app-navigation-entry__actions[data-v-d7365865]{display:none}.app-navigation-entry--editing .app-navigation-entry-edit[data-v-d7365865]{z-index:250;opacity:1}.app-navigation-entry--deleted .app-navigation-entry-deleted[data-v-d7365865]{z-index:250;transform:translate(0)}.app-navigation-entry--pinned[data-v-d7365865]{order:2;margin-top:auto}.app-navigation-entry--pinned~.app-navigation-entry--pinned[data-v-d7365865]{margin-top:0}[data-themes*=highcontrast] .app-navigation-entry[data-v-d7365865]:active{background-color:var(--color-primary-element-light-hover)!important}.material-design-icon[data-v-dcf0becf]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.app-navigation-input-confirm[data-v-dcf0becf]{flex:1 0 100%;width:100%}.app-navigation-input-confirm form[data-v-dcf0becf]{display:flex}.app-navigation-input-confirm__input[data-v-dcf0becf]{height:34px;flex:1 1 100%;font-size:100%!important;margin:5px 5px 5px -8px!important;padding:7px!important}.app-navigation-input-confirm__input[data-v-dcf0becf]:active,.app-navigation-input-confirm__input[data-v-dcf0becf]:focus,.app-navigation-input-confirm__input[data-v-dcf0becf]:hover{outline:none;background-color:var(--color-main-background);color:var(--color-main-text);border-color:var(--color-primary-element)}.material-design-icon[data-v-c47dc611]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.app-navigation-new[data-v-c47dc611]{display:block;padding:calc(var(--default-grid-baseline, 4px) * 2)}.app-navigation-new button[data-v-c47dc611]{width:100%}.material-design-icon[data-v-8950be04]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.app-navigation-entry[data-v-8950be04]{position:relative;display:flex;flex-shrink:0;flex-wrap:wrap;box-sizing:border-box;width:100%;min-height:44px;transition:background-color var(--animation-quick) ease-in-out;transition:background-color .2s ease-in-out;border-radius:var(--border-radius-pill)}.app-navigation-entry-wrapper[data-v-8950be04]{position:relative;display:flex;flex-shrink:0;flex-wrap:wrap;box-sizing:border-box;width:100%}.app-navigation-entry-wrapper.app-navigation-entry--collapsible:not(.app-navigation-entry--opened)>ul[data-v-8950be04]{display:none}.app-navigation-entry.active[data-v-8950be04]{background-color:var(--color-primary-element)!important}.app-navigation-entry.active .app-navigation-entry-link[data-v-8950be04],.app-navigation-entry.active .app-navigation-entry-button[data-v-8950be04]{color:var(--color-primary-element-text)!important}.app-navigation-entry[data-v-8950be04]:focus-within,.app-navigation-entry[data-v-8950be04]:hover{background-color:var(--color-background-hover)}.app-navigation-entry.active .app-navigation-entry__children[data-v-8950be04],.app-navigation-entry:focus-within .app-navigation-entry__children[data-v-8950be04],.app-navigation-entry:hover .app-navigation-entry__children[data-v-8950be04]{background-color:var(--color-main-background)}.app-navigation-entry.active .app-navigation-entry__utils .app-navigation-entry__actions[data-v-8950be04],.app-navigation-entry.app-navigation-entry--deleted .app-navigation-entry__utils .app-navigation-entry__actions[data-v-8950be04],.app-navigation-entry:focus .app-navigation-entry__utils .app-navigation-entry__actions[data-v-8950be04],.app-navigation-entry:focus-within .app-navigation-entry__utils .app-navigation-entry__actions[data-v-8950be04],.app-navigation-entry:hover .app-navigation-entry__utils .app-navigation-entry__actions[data-v-8950be04]{display:inline-block}.app-navigation-entry.app-navigation-entry--deleted>ul[data-v-8950be04]{display:none}.app-navigation-entry:not(.app-navigation-entry--editing) .app-navigation-entry-link[data-v-8950be04],.app-navigation-entry:not(.app-navigation-entry--editing) .app-navigation-entry-button[data-v-8950be04]{padding-right:14px}.app-navigation-entry .app-navigation-entry-link[data-v-8950be04],.app-navigation-entry .app-navigation-entry-button[data-v-8950be04]{z-index:100;display:flex;overflow:hidden;flex:1 1 0;box-sizing:border-box;min-height:44px;padding:0;white-space:nowrap;color:var(--color-main-text);background-repeat:no-repeat;background-position:14px center;background-size:16px 16px;line-height:44px}.app-navigation-entry .app-navigation-entry-link .app-navigation-entry-icon[data-v-8950be04],.app-navigation-entry .app-navigation-entry-button .app-navigation-entry-icon[data-v-8950be04]{display:flex;align-items:center;flex:0 0 44px;justify-content:center;width:44px;height:44px;background-size:16px 16px;background-repeat:no-repeat;background-position:14px center}.app-navigation-entry .app-navigation-entry-link .app-navigation-entry__name[data-v-8950be04],.app-navigation-entry .app-navigation-entry-button .app-navigation-entry__name[data-v-8950be04]{overflow:hidden;max-width:100%;white-space:nowrap;text-overflow:ellipsis}.app-navigation-entry .app-navigation-entry-link .editingContainer[data-v-8950be04],.app-navigation-entry .app-navigation-entry-button .editingContainer[data-v-8950be04]{width:calc(100% - 44px);margin:auto}.app-navigation-entry__children[data-v-8950be04]{position:relative;display:flex;flex:0 1 auto;flex-direction:column;width:100%;gap:var(--default-grid-baseline, 4px)}.app-navigation-entry__children .app-navigation-entry[data-v-8950be04]{display:inline-flex;flex-wrap:wrap;padding-left:16px}.app-navigation-entry__deleted[data-v-8950be04]{display:inline-flex;flex:1 1 0;padding-left:30px!important}.app-navigation-entry__deleted .app-navigation-entry__deleted-description[data-v-8950be04]{position:relative;overflow:hidden;flex:1 1 0;white-space:nowrap;text-overflow:ellipsis;line-height:44px}.app-navigation-entry__utils[data-v-8950be04]{display:flex;min-width:44px;align-items:center;flex:0 1 auto;justify-content:flex-end}.app-navigation-entry__utils.app-navigation-entry__utils--display-actions .action-item.app-navigation-entry__actions[data-v-8950be04]{display:inline-block}.app-navigation-entry__utils .app-navigation-entry__counter-wrapper[data-v-8950be04]{margin-right:calc(var(--default-grid-baseline) * 3);display:flex;align-items:center;flex:0 1 auto}.app-navigation-entry__utils .action-item.app-navigation-entry__actions[data-v-8950be04]{display:none}.app-navigation-entry--editing .app-navigation-entry-edit[data-v-8950be04]{z-index:250;opacity:1}.app-navigation-entry--deleted .app-navigation-entry-deleted[data-v-8950be04]{z-index:250;transform:translate(0)}.app-navigation-entry--pinned[data-v-8950be04]{order:2;margin-top:auto}.app-navigation-entry--pinned~.app-navigation-entry--pinned[data-v-8950be04]{margin-top:0}[data-themes*=highcontrast] .app-navigation-entry[data-v-8950be04]:active{background-color:var(--color-primary-element-light-hover)!important}.app-navigation-new-item__name[data-v-8950be04]{overflow:hidden;max-width:100%;white-space:nowrap;text-overflow:ellipsis;padding-left:7px;font-size:14px}.newItemContainer[data-v-8950be04]{width:calc(100% - 44px);margin:auto}.material-design-icon[data-v-db4cc195]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}#app-settings[data-v-db4cc195]{margin-top:auto;padding:3px}#app-settings__header[data-v-db4cc195]{box-sizing:border-box;margin:0 3px 3px}#app-settings__header .settings-button[data-v-db4cc195]{display:flex;flex:1 1 0;height:44px;width:100%;padding:0 14px 0 0;margin:0;background-color:var(--color-main-background);box-shadow:none;border:0;border-radius:var(--border-radius-pill);text-align:left;font-weight:400;font-size:100%;color:var(--color-main-text);line-height:44px}#app-settings__header .settings-button[data-v-db4cc195]:hover,#app-settings__header .settings-button[data-v-db4cc195]:focus{background-color:var(--color-background-hover)}#app-settings__header .settings-button__icon[data-v-db4cc195]{width:44px;height:44px;min-width:44px}#app-settings__header .settings-button__label[data-v-db4cc195]{overflow:hidden;max-width:100%;white-space:nowrap;text-overflow:ellipsis}#app-settings__content[data-v-db4cc195]{display:block;padding:10px;margin-bottom:-3px;max-height:300px;overflow-y:auto;box-sizing:border-box}.slide-up-leave-active[data-v-db4cc195],.slide-up-enter-active[data-v-db4cc195]{transition-duration:var(--animation-slow);transition-property:max-height,padding;overflow-y:hidden!important}.slide-up-enter[data-v-db4cc195],.slide-up-leave-to[data-v-db4cc195]{max-height:0!important;padding:0 10px!important}.app-navigation-spacer[data-v-c8233ec5]{flex-shrink:0;order:1;height:22px}.material-design-icon[data-v-b5b2caa2]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.app-settings__navigation[data-v-b5b2caa2]{min-width:200px;margin-right:20px;overflow-x:hidden;overflow-y:auto;position:relative;height:100%}.app-settings__content[data-v-b5b2caa2]{max-width:100vw;overflow-y:auto;overflow-x:hidden;padding:24px;width:100%}.navigation-list[data-v-b5b2caa2]{height:100%;box-sizing:border-box;overflow-y:auto;padding:12px}.navigation-list--collapsed[data-v-b5b2caa2]{display:flex;flex-direction:row;gap:6px}.navigation-list__link[data-v-b5b2caa2]{display:flex;align-content:center;font-size:16px;height:44px;margin:4px 0;line-height:44px;border-radius:var(--border-radius-pill);font-weight:700;padding:0 20px;cursor:pointer;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;background-color:transparent;border:none}.navigation-list__link[data-v-b5b2caa2]:hover,.navigation-list__link[data-v-b5b2caa2]:focus{background-color:var(--color-background-hover)}.navigation-list__link--active[data-v-b5b2caa2]{background-color:var(--color-primary-element-light)!important}.navigation-list__link--icon[data-v-b5b2caa2]{padding-inline-start:8px;gap:4px}.navigation-list__link-icon[data-v-b5b2caa2]{display:flex;justify-content:center;align-content:center;width:36px;max-width:36px}@media only screen and (max-width: 512px){.dialog__modal .modal-wrapper--small .modal-container{width:fit-content;height:unset;max-height:90%;position:relative;top:unset;border-radius:var(--border-radius-large)}}.material-design-icon[data-v-cf1c45bf]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.dialog[data-v-cf1c45bf]{height:100%;width:100%;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden}.dialog__modal[data-v-cf1c45bf] .modal-container{display:flex!important;padding-block:4px 8px;padding-inline:12px 8px}.dialog__modal[data-v-cf1c45bf] .modal-container__content{display:flex;flex-direction:column}.dialog__wrapper[data-v-cf1c45bf]{display:flex;flex-direction:row;flex:1;min-height:0;overflow:hidden;padding-inline-end:4px}.dialog__wrapper--collapsed[data-v-cf1c45bf]{flex-direction:column}.dialog__navigation[data-v-cf1c45bf]{display:flex;flex-shrink:0}.dialog__wrapper:not(.dialog__wrapper--collapsed) .dialog__navigation[data-v-cf1c45bf]{flex-direction:column;overflow:hidden auto;height:100%;min-width:200px;margin-inline-end:20px}.dialog__wrapper.dialog__wrapper--collapsed .dialog__navigation[data-v-cf1c45bf]{flex-direction:row;justify-content:space-between;overflow:auto hidden;width:100%;min-width:100%}.dialog__name[data-v-cf1c45bf]{text-align:center;height:var(--default-clickable-area);min-height:var(--default-clickable-area);line-height:var(--default-clickable-area);margin-block-end:12px}.dialog__content[data-v-cf1c45bf]{flex:1;min-height:0;overflow:auto}.dialog__actions[data-v-cf1c45bf]{display:flex;gap:6px;align-content:center;width:fit-content;margin-inline:auto 4px;margin-block:6px 4px}.material-design-icon[data-v-45e668d9]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.modal-mask[data-v-45e668d9]{position:fixed;z-index:9998;top:0;left:0;display:block;width:100%;height:100%;background-color:#00000080}.modal-mask--dark[data-v-45e668d9]{background-color:#000000eb}.modal-header[data-v-45e668d9]{position:absolute;z-index:10001;top:0;right:0;left:0;display:flex!important;align-items:center;justify-content:center;width:100%;height:50px;overflow:hidden;transition:opacity .25s,visibility .25s}.modal-header .modal-name[data-v-45e668d9]{overflow-x:hidden;box-sizing:border-box;width:100%;padding:0 132px 0 12px;transition:padding ease .1s;white-space:nowrap;text-overflow:ellipsis;color:#fff;font-size:14px;margin-bottom:0}@media only screen and (min-width: 1024px){.modal-header .modal-name[data-v-45e668d9]{padding-left:132px;text-align:center}}.modal-header .icons-menu[data-v-45e668d9]{position:absolute;right:0;display:flex;align-items:center;justify-content:flex-end}.modal-header .icons-menu .header-close[data-v-45e668d9]{display:flex;align-items:center;justify-content:center;box-sizing:border-box;margin:3px;padding:0}.modal-header .icons-menu .play-pause-icons[data-v-45e668d9]{position:relative;width:50px;height:50px;margin:0;padding:0;cursor:pointer;border:none;background-color:transparent}.modal-header .icons-menu .play-pause-icons:hover .play-pause-icons__play[data-v-45e668d9],.modal-header .icons-menu .play-pause-icons:hover .play-pause-icons__pause[data-v-45e668d9],.modal-header .icons-menu .play-pause-icons:focus .play-pause-icons__play[data-v-45e668d9],.modal-header .icons-menu .play-pause-icons:focus .play-pause-icons__pause[data-v-45e668d9]{opacity:1;border-radius:22px;background-color:#7f7f7f40}.modal-header .icons-menu .play-pause-icons__play[data-v-45e668d9],.modal-header .icons-menu .play-pause-icons__pause[data-v-45e668d9]{box-sizing:border-box;width:44px;height:44px;margin:3px;cursor:pointer;opacity:.7}.modal-header .icons-menu .header-actions[data-v-45e668d9]{color:#fff}.modal-header .icons-menu[data-v-45e668d9] .action-item{margin:3px}.modal-header .icons-menu[data-v-45e668d9] .action-item--single{box-sizing:border-box;width:44px;height:44px;cursor:pointer;background-position:center;background-size:22px}.modal-header .icons-menu[data-v-45e668d9] button{color:#fff}.modal-header .icons-menu[data-v-45e668d9] .action-item__menutoggle{padding:0}.modal-header .icons-menu[data-v-45e668d9] .action-item__menutoggle span,.modal-header .icons-menu[data-v-45e668d9] .action-item__menutoggle svg{width:var(--icon-size);height:var(--icon-size)}.modal-wrapper[data-v-45e668d9]{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%}.modal-wrapper .prev[data-v-45e668d9],.modal-wrapper .next[data-v-45e668d9]{z-index:10000;height:35vh;min-height:300px;position:absolute;transition:opacity .25s;color:#fff}.modal-wrapper .prev[data-v-45e668d9]:focus-visible,.modal-wrapper .next[data-v-45e668d9]:focus-visible{box-shadow:0 0 0 2px var(--color-primary-element-text);background-color:var(--color-box-shadow)}.modal-wrapper .prev[data-v-45e668d9]{left:2px}.modal-wrapper .next[data-v-45e668d9]{right:2px}.modal-wrapper .modal-container[data-v-45e668d9]{position:relative;display:flex;padding:0;transition:transform .3s ease;border-radius:var(--border-radius-large);background-color:var(--color-main-background);color:var(--color-main-text);box-shadow:0 0 40px #0003}.modal-wrapper .modal-container__close[data-v-45e668d9]{z-index:1;position:absolute;top:4px;right:4px}.modal-wrapper .modal-container__content[data-v-45e668d9]{width:100%;min-height:52px;overflow:auto}.modal-wrapper--small .modal-container[data-v-45e668d9]{width:400px;max-width:90%;max-height:min(90%,100% - 100px)}.modal-wrapper--normal .modal-container[data-v-45e668d9]{max-width:90%;width:600px;max-height:min(90%,100% - 100px)}.modal-wrapper--large .modal-container[data-v-45e668d9]{max-width:90%;width:900px;max-height:min(90%,100% - 100px)}.modal-wrapper--full .modal-container[data-v-45e668d9]{width:100%;height:calc(100% - var(--header-height));position:absolute;top:50px;border-radius:0}@media only screen and (max-width: 512px){.modal-wrapper .modal-container[data-v-45e668d9]{max-width:initial;width:100%;max-height:initial;height:calc(100% - var(--header-height));position:absolute;top:50px;border-radius:0}}.fade-enter-active[data-v-45e668d9],.fade-leave-active[data-v-45e668d9]{transition:opacity .25s}.fade-enter[data-v-45e668d9],.fade-leave-to[data-v-45e668d9]{opacity:0}.fade-visibility-enter[data-v-45e668d9],.fade-visibility-leave-to[data-v-45e668d9]{visibility:hidden;opacity:0}.modal-in-enter-active[data-v-45e668d9],.modal-in-leave-active[data-v-45e668d9],.modal-out-enter-active[data-v-45e668d9],.modal-out-leave-active[data-v-45e668d9]{transition:opacity .25s}.modal-in-enter[data-v-45e668d9],.modal-in-leave-to[data-v-45e668d9],.modal-out-enter[data-v-45e668d9],.modal-out-leave-to[data-v-45e668d9]{opacity:0}.modal-in-enter .modal-container[data-v-45e668d9],.modal-in-leave-to .modal-container[data-v-45e668d9]{transform:scale(.9)}.modal-out-enter .modal-container[data-v-45e668d9],.modal-out-leave-to .modal-container[data-v-45e668d9]{transform:scale(1.1)}.modal-mask .play-pause-icons .progress-ring[data-v-45e668d9]{position:absolute;top:0;left:0;transform:rotate(-90deg)}.modal-mask .play-pause-icons .progress-ring .progress-ring__circle[data-v-45e668d9]{transition:.1s stroke-dashoffset;transform-origin:50% 50%;animation:progressring-45e668d9 linear var(--slideshow-duration) infinite;stroke-linecap:round;stroke-dashoffset:94.2477796077;stroke-dasharray:94.2477796077}.modal-mask .play-pause-icons--paused .icon-pause[data-v-45e668d9]{animation:breath-45e668d9 2s cubic-bezier(.4,0,.2,1) infinite}.modal-mask .play-pause-icons--paused .progress-ring__circle[data-v-45e668d9]{animation-play-state:paused!important}@keyframes progressring-45e668d9{0%{stroke-dashoffset:94.2477796077}to{stroke-dashoffset:0}}@keyframes breath-45e668d9{0%{opacity:1}50%{opacity:0}to{opacity:1}}.material-design-icon[data-v-5162e6df]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.app-settings-section[data-v-5162e6df]{margin-bottom:80px}.app-settings-section__name[data-v-5162e6df]{font-size:20px;margin:0;padding:20px 0;font-weight:700;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.material-design-icon[data-v-c682268d]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.app-sidebar-tabs[data-v-c682268d]{display:flex;flex-direction:column;min-height:0;flex:1 1 100%}.app-sidebar-tabs__nav[data-v-c682268d]{display:flex;justify-content:stretch;margin-top:10px;padding:0 4px}.app-sidebar-tabs__tab[data-v-c682268d]{flex:1 1}.app-sidebar-tabs__tab.active[data-v-c682268d]{color:var(--color-primary-element)}.app-sidebar-tabs__tab-caption[data-v-c682268d]{flex:0 1 100%;width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:center}.app-sidebar-tabs__tab-icon[data-v-c682268d]{display:flex;align-items:center;justify-content:center;background-size:20px}.app-sidebar-tabs__tab[data-v-c682268d] .checkbox-radio-switch__content{max-width:unset}.app-sidebar-tabs__content[data-v-c682268d]{position:relative;min-height:0;height:100%}.app-sidebar-tabs__content--multiple[data-v-c682268d]>:not(section){display:none}[data-v-c682268d] .checkbox-radio-switch--button-variant.checkbox-radio-switch{border:unset}.material-design-icon[data-v-90858b97]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.app-sidebar[data-v-90858b97]{z-index:1500;top:0;right:0;display:flex;overflow-x:hidden;overflow-y:auto;flex-direction:column;flex-shrink:0;width:27vw;min-width:300px;max-width:500px;height:100%;border-left:1px solid var(--color-border);background:var(--color-main-background)}.app-sidebar .app-sidebar-header>.app-sidebar__close[data-v-90858b97]{position:absolute;z-index:100;top:6px;right:6px;width:44px;height:44px;opacity:.7;border-radius:22px}.app-sidebar .app-sidebar-header>.app-sidebar__close[data-v-90858b97]:hover,.app-sidebar .app-sidebar-header>.app-sidebar__close[data-v-90858b97]:active,.app-sidebar .app-sidebar-header>.app-sidebar__close[data-v-90858b97]:focus{opacity:1;background-color:#7f7f7f40}.app-sidebar .app-sidebar-header--compact.app-sidebar-header--with-figure .app-sidebar-header__info[data-v-90858b97]{flex-direction:row}.app-sidebar .app-sidebar-header--compact.app-sidebar-header--with-figure .app-sidebar-header__info .app-sidebar-header__figure[data-v-90858b97]{z-index:2;width:70px;height:70px;margin:9px;border-radius:3px;flex:0 0 auto}.app-sidebar .app-sidebar-header--compact.app-sidebar-header--with-figure .app-sidebar-header__info .app-sidebar-header__desc[data-v-90858b97]{padding-left:0;flex:1 1 auto;min-width:0;padding-right:94px;padding-top:10px}.app-sidebar .app-sidebar-header--compact.app-sidebar-header--with-figure .app-sidebar-header__info .app-sidebar-header__desc.app-sidebar-header__desc--without-actions[data-v-90858b97]{padding-right:50px}.app-sidebar .app-sidebar-header--compact.app-sidebar-header--with-figure .app-sidebar-header__info .app-sidebar-header__desc .app-sidebar-header__tertiary-actions[data-v-90858b97]{z-index:3;position:absolute;top:9px;left:-44px;gap:0}.app-sidebar .app-sidebar-header--compact.app-sidebar-header--with-figure .app-sidebar-header__info .app-sidebar-header__desc .app-sidebar-header__menu[data-v-90858b97]{top:6px;right:50px;background-color:transparent;position:absolute}.app-sidebar .app-sidebar-header:not(.app-sidebar-header--with-figure) .app-sidebar-header__menu[data-v-90858b97]{position:absolute;top:6px;right:50px}.app-sidebar .app-sidebar-header:not(.app-sidebar-header--with-figure) .app-sidebar-header__desc[data-v-90858b97]{padding-right:94px}.app-sidebar .app-sidebar-header:not(.app-sidebar-header--with-figure) .app-sidebar-header__desc.app-sidebar-header__desc--without-actions[data-v-90858b97]{padding-right:50px}.app-sidebar .app-sidebar-header .app-sidebar-header__info[data-v-90858b97]{display:flex;flex-direction:column}.app-sidebar .app-sidebar-header__figure[data-v-90858b97]{width:100%;height:250px;max-height:250px;background-repeat:no-repeat;background-position:center;background-size:contain}.app-sidebar .app-sidebar-header__figure--with-action[data-v-90858b97]{cursor:pointer}.app-sidebar .app-sidebar-header__desc[data-v-90858b97]{position:relative;display:flex;flex-direction:row;justify-content:center;align-items:center;padding:18px 6px 18px 9px;gap:0 4px}.app-sidebar .app-sidebar-header__desc--with-tertiary-action[data-v-90858b97]{padding-left:6px}.app-sidebar .app-sidebar-header__desc--editable .app-sidebar-header__mainname-form[data-v-90858b97],.app-sidebar .app-sidebar-header__desc--with-subname--editable .app-sidebar-header__mainname-form[data-v-90858b97]{margin-top:-2px;margin-bottom:-2px}.app-sidebar .app-sidebar-header__desc--with-subname--editable .app-sidebar-header__subname[data-v-90858b97]{margin-top:-2px}.app-sidebar .app-sidebar-header__desc .app-sidebar-header__tertiary-actions[data-v-90858b97]{display:flex;height:44px;width:44px;justify-content:center;flex:0 0 auto}.app-sidebar .app-sidebar-header__desc .app-sidebar-header__tertiary-actions .app-sidebar-header__star[data-v-90858b97]{box-shadow:none}.app-sidebar .app-sidebar-header__desc .app-sidebar-header__tertiary-actions .app-sidebar-header__star[data-v-90858b97]:not([aria-pressed=true]):hover{box-shadow:none;background-color:var(--color-background-hover)}.app-sidebar .app-sidebar-header__desc .app-sidebar-header__name-container[data-v-90858b97]{flex:1 1 auto;display:flex;flex-direction:column;justify-content:center;min-width:0}.app-sidebar .app-sidebar-header__desc .app-sidebar-header__name-container .app-sidebar-header__mainname-container[data-v-90858b97]{display:flex;align-items:center;min-height:44px}.app-sidebar .app-sidebar-header__desc .app-sidebar-header__name-container .app-sidebar-header__mainname-container .app-sidebar-header__mainname[data-v-90858b97]{padding:0;min-height:30px;font-size:20px;line-height:30px}.app-sidebar .app-sidebar-header__desc .app-sidebar-header__name-container .app-sidebar-header__mainname-container .app-sidebar-header__mainname[data-v-90858b97] .linkified{cursor:pointer;text-decoration:underline;margin:0}.app-sidebar .app-sidebar-header__desc .app-sidebar-header__name-container .app-sidebar-header__mainname-container .app-sidebar-header__mainname-form[data-v-90858b97]{display:flex;flex:1 1 auto;align-items:center}.app-sidebar .app-sidebar-header__desc .app-sidebar-header__name-container .app-sidebar-header__mainname-container .app-sidebar-header__mainname-form input.app-sidebar-header__mainname-input[data-v-90858b97]{flex:1 1 auto;margin:0;padding:7px;font-size:20px;font-weight:700}.app-sidebar .app-sidebar-header__desc .app-sidebar-header__name-container .app-sidebar-header__mainname-container .app-sidebar-header__menu[data-v-90858b97]{height:44px;width:44px;border-radius:22px;background-color:#7f7f7f40;margin-left:5px}.app-sidebar .app-sidebar-header__desc .app-sidebar-header__name-container .app-sidebar-header__mainname[data-v-90858b97],.app-sidebar .app-sidebar-header__desc .app-sidebar-header__name-container .app-sidebar-header__subname[data-v-90858b97]{overflow:hidden;width:100%;margin:0;white-space:nowrap;text-overflow:ellipsis}.app-sidebar .app-sidebar-header__desc .app-sidebar-header__name-container .app-sidebar-header__subname[data-v-90858b97]{padding:0;opacity:.7;font-size:var(--default-font-size)}.app-sidebar .app-sidebar-header__description[data-v-90858b97]{display:flex;align-items:center;margin:0 10px}@media only screen and (max-width: 768px){.app-sidebar[data-v-90858b97]{width:100vw;max-width:100vw}}.slide-right-leave-active[data-v-90858b97],.slide-right-enter-active[data-v-90858b97]{transition-duration:var(--animation-quick);transition-property:max-width,min-width}.slide-right-enter-to[data-v-90858b97],.slide-right-leave[data-v-90858b97]{min-width:300px;max-width:500px}.slide-right-enter[data-v-90858b97],.slide-right-leave-to[data-v-90858b97]{min-width:0!important;max-width:0!important}.app-sidebar-header__description button,.app-sidebar-header__description .button,.app-sidebar-header__description input[type=button],.app-sidebar-header__description input[type=submit],.app-sidebar-header__description input[type=reset]{padding:6px 22px}.material-design-icon[data-v-95b458cc]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.app-sidebar__tab[data-v-95b458cc]{display:none;padding:10px;min-height:100%;max-height:100%;height:100%;overflow:auto}.app-sidebar__tab[data-v-95b458cc]:focus{border-color:var(--color-primary-element);box-shadow:0 0 .2em var(--color-primary-element);outline:0}.app-sidebar__tab--active[data-v-95b458cc]{display:block}.material-design-icon[data-v-2e235682]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.vue-crumb[data-v-2e235682]{background-image:none;display:inline-flex;height:44px;padding:0}.vue-crumb[data-v-2e235682]:last-child{max-width:210px;font-weight:700}.vue-crumb:last-child .vue-crumb__separator[data-v-2e235682]{display:none}.vue-crumb>a[data-v-2e235682]:hover,.vue-crumb>a[data-v-2e235682]:focus{background-color:var(--color-background-dark);color:var(--color-main-text)}.vue-crumb--hidden[data-v-2e235682]{display:none}.vue-crumb.vue-crumb--hovered>a[data-v-2e235682]{background-color:var(--color-background-dark);color:var(--color-main-text)}.vue-crumb__separator[data-v-2e235682]{padding:0;color:var(--color-text-maxcontrast)}.vue-crumb>a[data-v-2e235682]{overflow:hidden;color:var(--color-text-maxcontrast);padding:12px;min-width:44px;max-width:100%;border-radius:var(--border-radius-pill);align-items:center;display:inline-flex;justify-content:center}.vue-crumb>a>span[data-v-2e235682]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vue-crumb[data-v-2e235682]:not(.dropdown) .action-item{max-width:100%}.vue-crumb[data-v-2e235682]:not(.dropdown) .action-item .button-vue{padding:0 4px 0 16px}.vue-crumb[data-v-2e235682]:not(.dropdown) .action-item .button-vue__wrapper{flex-direction:row-reverse}.vue-crumb[data-v-2e235682]:not(.dropdown) .action-item.action-item--open .action-item__menutoggle{background-color:var(--color-background-dark);color:var(--color-main-text)}.material-design-icon[data-v-acf0dd35]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.breadcrumb[data-v-acf0dd35]{width:100%;flex-grow:1;display:inline-flex;align-items:center}.breadcrumb--collapsed[data-v-acf0dd35] .vue-crumb:last-child{min-width:100px;flex-shrink:1}.breadcrumb nav[data-v-acf0dd35]{flex-shrink:1;min-width:0}.breadcrumb .breadcrumb__crumbs[data-v-acf0dd35]{max-width:100%}.breadcrumb .breadcrumb__crumbs[data-v-acf0dd35],.breadcrumb .breadcrumb__actions[data-v-acf0dd35]{display:inline-flex}.material-design-icon[data-v-c959ec5a]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.color-picker[data-v-c959ec5a]{display:flex;overflow:hidden;align-content:flex-end;flex-direction:column;justify-content:space-between;box-sizing:content-box!important;width:176px;padding:8px;border-radius:3px}.color-picker--advanced-fields[data-v-c959ec5a]{width:264px}.color-picker__simple[data-v-c959ec5a]{display:grid;grid-template-columns:repeat(auto-fit,44px);grid-auto-rows:44px}.color-picker__simple-color-circle[data-v-c959ec5a]{display:flex;align-items:center;justify-content:center;width:34px;height:34px;min-height:34px;margin:auto;padding:0;color:#fff;border:1px solid rgba(0,0,0,.25);border-radius:50%;font-size:16px}.color-picker__simple-color-circle[data-v-c959ec5a]:hover{opacity:.6}.color-picker__simple-color-circle--active[data-v-c959ec5a]{width:38px;height:38px;min-height:38px;transition:all .1s ease-in-out;opacity:1!important}.color-picker__advanced[data-v-c959ec5a]{box-shadow:none!important}.color-picker__navigation[data-v-c959ec5a]{display:flex;flex-direction:row;justify-content:space-between;margin-top:10px}[data-v-c959ec5a] .vc-chrome{width:unset;background-color:var(--color-main-background)}[data-v-c959ec5a] .vc-chrome-color-wrap{width:30px;height:30px}[data-v-c959ec5a] .vc-chrome-active-color{width:34px;height:34px;border-radius:17px}[data-v-c959ec5a] .vc-chrome-body{padding:14px 0 0;background-color:var(--color-main-background)}[data-v-c959ec5a] .vc-chrome-body .vc-input__input{box-shadow:none}[data-v-c959ec5a] .vc-chrome-toggle-btn{filter:var(--background-invert-if-dark)}[data-v-c959ec5a] .vc-chrome-saturation-wrap{border-radius:3px}[data-v-c959ec5a] .vc-chrome-saturation-circle{width:20px;height:20px}.slide-enter[data-v-c959ec5a]{transform:translate(-50%);opacity:0}.slide-enter-to[data-v-c959ec5a],.slide-leave[data-v-c959ec5a]{transform:translate(0);opacity:1}.slide-leave-to[data-v-c959ec5a]{transform:translate(-50%);opacity:0}.slide-enter-active[data-v-c959ec5a],.slide-leave-active[data-v-c959ec5a]{transition:all 50ms ease-in-out}.material-design-icon[data-v-d96bcd79]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.counter-bubble__counter[data-v-d96bcd79]{font-size:calc(var(--default-font-size) * .8);overflow:hidden;width:fit-content;max-width:44px;text-align:center;text-overflow:ellipsis;line-height:1em;padding:4px 6px;border-radius:var(--border-radius-pill);background-color:var(--color-primary-element-light);font-weight:700;color:var(--color-primary-element-light-text)}.counter-bubble__counter .active[data-v-d96bcd79]{color:var(--color-main-background);background-color:var(--color-primary-element-light)}.counter-bubble__counter--highlighted[data-v-d96bcd79]{color:var(--color-primary-element-text);background-color:var(--color-primary-element)}.counter-bubble__counter--highlighted[data-v-d96bcd79],.counter-bubble__counter .active[data-v-d96bcd79]{color:var(--color-primary-element);background-color:var(--color-main-background)}.counter-bubble__counter--outlined[data-v-d96bcd79]{color:var(--color-primary-element);background:transparent;box-shadow:inset 0 0 0 2px}.counter-bubble__counter--outlined[data-v-d96bcd79],.counter-bubble__counter .active[data-v-d96bcd79]{color:var(--color-main-background);box-shadow:inset 0 0 0 2px}.material-design-icon[data-v-1efcbeee]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.dashboard-widget[data-v-1efcbeee] .empty-content{text-align:center;padding-top:5vh}.dashboard-widget[data-v-1efcbeee] .empty-content.half-screen{padding-top:0;margin-bottom:1vh}.more[data-v-1efcbeee]{display:block;text-align:center;color:var(--color-text-maxcontrast);line-height:60px;cursor:pointer}.more[data-v-1efcbeee]:hover,.more[data-v-1efcbeee]:focus{background-color:var(--color-background-hover);border-radius:var(--border-radius-large);color:var(--color-main-text)}.item-list__entry[data-v-1efcbeee]{display:flex;align-items:flex-start;padding:8px}.item-list__entry .item-avatar[data-v-1efcbeee]{position:relative;margin-top:auto;margin-bottom:auto;background-color:var(--color-background-dark)!important}.item-list__entry .item__details[data-v-1efcbeee]{padding-left:8px;max-height:44px;flex-grow:1;overflow:hidden;display:flex;flex-direction:column}.item-list__entry .item__details h3[data-v-1efcbeee],.item-list__entry .item__details .message[data-v-1efcbeee]{white-space:nowrap;background-color:var(--color-background-dark)}.item-list__entry .item__details h3[data-v-1efcbeee]{font-size:100%;margin:0}.item-list__entry .item__details .message[data-v-1efcbeee]{width:80%;height:15px;margin-top:5px}.material-design-icon[data-v-00e861ef]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.item-list__entry[data-v-00e861ef]{display:flex;align-items:flex-start;position:relative;padding:8px}.item-list__entry[data-v-00e861ef]:hover,.item-list__entry[data-v-00e861ef]:focus{background-color:var(--color-background-hover);border-radius:var(--border-radius-large)}.item-list__entry .item-avatar[data-v-00e861ef]{position:relative;margin-top:auto;margin-bottom:auto}.item-list__entry .item__details[data-v-00e861ef]{padding-left:8px;max-height:44px;flex-grow:1;overflow:hidden;display:flex;flex-direction:column}.item-list__entry .item__details h3[data-v-00e861ef],.item-list__entry .item__details .message[data-v-00e861ef]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.item-list__entry .item__details .message span[data-v-00e861ef]{width:10px;display:inline-block;margin-bottom:-3px}.item-list__entry .item__details h3[data-v-00e861ef]{font-size:100%;margin:0}.item-list__entry .item__details .message[data-v-00e861ef]{width:100%;color:var(--color-text-maxcontrast)}.item-list__entry .item-icon[data-v-00e861ef]{position:relative;width:14px;height:14px;margin:27px -3px 0 -7px}.item-list__entry button.primary[data-v-00e861ef]{padding:21px;margin:0}.emoji-mart,.emoji-mart *{box-sizing:border-box;line-height:1.15}.emoji-mart{font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,sans-serif;font-size:16px;display:flex;flex-direction:column;height:420px;color:#222427;border:1px solid #d9d9d9;border-radius:5px;background:#fff}.emoji-mart-emoji{padding:6px;position:relative;display:inline-block;font-size:0;border:none;background:none;box-shadow:none}.emoji-mart-emoji span{display:inline-block}.emoji-mart-preview-emoji .emoji-mart-emoji span{width:38px;height:38px;font-size:32px}.emoji-type-native{font-family:"Segoe UI Emoji",Segoe UI Symbol,Segoe UI,"Apple Color Emoji",Twemoji Mozilla,"Noto Color Emoji",EmojiOne Color,"Android Emoji";word-break:keep-all}.emoji-type-image{background-size:6100%}.emoji-type-image.emoji-set-apple{background-image:url(https://unpkg.com/emoji-datasource-apple@15.0.1/img/apple/sheets-256/64.png)}.emoji-type-image.emoji-set-facebook{background-image:url(https://unpkg.com/emoji-datasource-facebook@15.0.1/img/facebook/sheets-256/64.png)}.emoji-type-image.emoji-set-google{background-image:url(https://unpkg.com/emoji-datasource-google@15.0.1/img/google/sheets-256/64.png)}.emoji-type-image.emoji-set-twitter{background-image:url(https://unpkg.com/emoji-datasource-twitter@15.0.1/img/twitter/sheets-256/64.png)}.emoji-mart-bar{border:0 solid #d9d9d9}.emoji-mart-bar:first-child{border-bottom-width:1px;border-top-left-radius:5px;border-top-right-radius:5px}.emoji-mart-bar:last-child{border-top-width:1px;border-bottom-left-radius:5px;border-bottom-right-radius:5px}.emoji-mart-scroll{position:relative;overflow-y:scroll;flex:1;padding:0 6px 6px;z-index:0;will-change:transform;-webkit-overflow-scrolling:touch}.emoji-mart-anchors{display:flex;flex-direction:row;justify-content:space-between;padding:0 6px;color:#858585;line-height:0}.emoji-mart-anchor{position:relative;display:block;flex:1 1 auto;text-align:center;padding:12px 4px;overflow:hidden;transition:color .1s ease-out;border:none;background:none;box-shadow:none}.emoji-mart-anchor:hover,.emoji-mart-anchor-selected{color:#464646}.emoji-mart-anchor-selected .emoji-mart-anchor-bar{bottom:0}.emoji-mart-anchor-bar{position:absolute;bottom:-3px;left:0;width:100%;height:3px;background-color:#464646}.emoji-mart-anchors i{display:inline-block;width:100%;max-width:22px}.emoji-mart-anchors svg{fill:currentColor;max-height:18px}.emoji-mart .scroller{height:250px;position:relative;flex:1;padding:0 6px 6px;z-index:0;will-change:transform;-webkit-overflow-scrolling:touch}.emoji-mart-search{margin-top:6px;padding:0 6px}.emoji-mart-search input{font-size:16px;display:block;width:100%;padding:.2em .6em;border-radius:25px;border:1px solid #d9d9d9;outline:0}.emoji-mart-search-results{height:250px;overflow-y:scroll}.emoji-mart-category{position:relative}.emoji-mart-category .emoji-mart-emoji span{z-index:1;position:relative;text-align:center;cursor:default}.emoji-mart-category .emoji-mart-emoji:hover:before,.emoji-mart-emoji-selected:before{z-index:0;content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:#f4f4f4;border-radius:100%;opacity:0}.emoji-mart-category .emoji-mart-emoji:hover:before,.emoji-mart-emoji-selected:before{opacity:1}.emoji-mart-category-label{position:-webkit-sticky;position:sticky;top:0}.emoji-mart-static .emoji-mart-category-label{z-index:2;position:relative}.emoji-mart-category-label h3{display:block;font-size:16px;width:100%;font-weight:500;padding:5px 6px;background-color:#fff;background-color:#fffffff2}.emoji-mart-emoji{position:relative;display:inline-block;font-size:0}.emoji-mart-no-results{font-size:14px;text-align:center;padding-top:70px;color:#858585}.emoji-mart-no-results .emoji-mart-category-label{display:none}.emoji-mart-no-results .emoji-mart-no-results-label{margin-top:.2em}.emoji-mart-no-results .emoji-mart-emoji:hover:before{content:none}.emoji-mart-preview{position:relative;height:70px}.emoji-mart-preview-emoji,.emoji-mart-preview-data,.emoji-mart-preview-skins{position:absolute;top:50%;transform:translateY(-50%)}.emoji-mart-preview-emoji{left:12px}.emoji-mart-preview-data{left:68px;right:12px;word-break:break-all}.emoji-mart-preview-skins{right:30px;text-align:right}.emoji-mart-preview-name{font-size:14px}.emoji-mart-preview-shortname{font-size:12px;color:#888}.emoji-mart-preview-shortname+.emoji-mart-preview-shortname,.emoji-mart-preview-shortname+.emoji-mart-preview-emoticon,.emoji-mart-preview-emoticon+.emoji-mart-preview-emoticon{margin-left:.5em}.emoji-mart-preview-emoticon{font-size:11px;color:#bbb}.emoji-mart-title span{display:inline-block;vertical-align:middle}.emoji-mart-title .emoji-mart-emoji{padding:0}.emoji-mart-title-label{color:#999a9c;font-size:21px;font-weight:300}.emoji-mart-skin-swatches{font-size:0;padding:2px 0;border:1px solid #d9d9d9;border-radius:12px;background-color:#fff}.emoji-mart-skin-swatches-opened .emoji-mart-skin-swatch{width:16px;padding:0 2px}.emoji-mart-skin-swatches-opened .emoji-mart-skin-swatch-selected:after{opacity:.75}.emoji-mart-skin-swatch{display:inline-block;width:0;vertical-align:middle;transition-property:width,padding;transition-duration:.125s;transition-timing-function:ease-out}.emoji-mart-skin-swatch:nth-child(1){transition-delay:0s}.emoji-mart-skin-swatch:nth-child(2){transition-delay:.03s}.emoji-mart-skin-swatch:nth-child(3){transition-delay:.06s}.emoji-mart-skin-swatch:nth-child(4){transition-delay:.09s}.emoji-mart-skin-swatch:nth-child(5){transition-delay:.12s}.emoji-mart-skin-swatch:nth-child(6){transition-delay:.15s}.emoji-mart-skin-swatch-selected{position:relative;width:16px;padding:0 2px}.emoji-mart-skin-swatch-selected:after{content:"";position:absolute;top:50%;left:50%;width:4px;height:4px;margin:-2px 0 0 -2px;background-color:#fff;border-radius:100%;pointer-events:none;opacity:0;transition:opacity .2s ease-out}.emoji-mart-skin{display:inline-block;width:100%;padding-top:100%;max-width:12px;border-radius:100%}.emoji-mart-skin-tone-1{background-color:#ffc93a}.emoji-mart-skin-tone-2{background-color:#fadcbc}.emoji-mart-skin-tone-3{background-color:#e0bb95}.emoji-mart-skin-tone-4{background-color:#bf8f68}.emoji-mart-skin-tone-5{background-color:#9b643d}.emoji-mart-skin-tone-6{background-color:#594539}.emoji-mart .vue-recycle-scroller{position:relative}.emoji-mart .vue-recycle-scroller.direction-vertical:not(.page-mode){overflow-y:auto}.emoji-mart .vue-recycle-scroller.direction-horizontal:not(.page-mode){overflow-x:auto}.emoji-mart .vue-recycle-scroller.direction-horizontal{display:flex}.emoji-mart .vue-recycle-scroller__slot{flex:auto 0 0}.emoji-mart .vue-recycle-scroller__item-wrapper{flex:1;box-sizing:border-box;overflow:hidden;position:relative}.emoji-mart .vue-recycle-scroller.ready .vue-recycle-scroller__item-view{position:absolute;top:0;left:0;will-change:transform}.emoji-mart .vue-recycle-scroller.direction-vertical .vue-recycle-scroller__item-wrapper{width:100%}.emoji-mart .vue-recycle-scroller.direction-horizontal .vue-recycle-scroller__item-wrapper{height:100%}.emoji-mart .vue-recycle-scroller.ready.direction-vertical .vue-recycle-scroller__item-view{width:100%}.emoji-mart .vue-recycle-scroller.ready.direction-horizontal .vue-recycle-scroller__item-view{height:100%}.emoji-mart .resize-observer[data-v-b329ee4c]{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;border:none;background-color:transparent;pointer-events:none;display:block;overflow:hidden;opacity:0}.emoji-mart .resize-observer[data-v-b329ee4c] object{display:block;position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1}.emoji-mart-search .hidden{display:none;visibility:hidden}.emoji-mart{background-color:var(--color-main-background)!important;border:0;color:var(--color-main-text)!important}.emoji-mart button{margin:0;padding:0;border:none;background:transparent;font-size:inherit;height:36px;width:auto}.emoji-mart button *{cursor:pointer!important}.emoji-mart .emoji-mart-bar,.emoji-mart .emoji-mart-anchors,.emoji-mart .emoji-mart-search,.emoji-mart .emoji-mart-search input,.emoji-mart .emoji-mart-category,.emoji-mart .emoji-mart-category-label,.emoji-mart .emoji-mart-category-label span,.emoji-mart .emoji-mart-skin-swatches{background-color:transparent!important;border-color:var(--color-border)!important;color:inherit!important}.emoji-mart .emoji-mart-search input:focus-visible{box-shadow:inset 0 0 0 2px var(--color-primary-element);outline:none}.emoji-mart .emoji-mart-bar:first-child{border-top-left-radius:var(--border-radius)!important;border-top-right-radius:var(--border-radius)!important}.emoji-mart .emoji-mart-anchors button{border-radius:0;padding:12px 4px;height:auto}.emoji-mart .emoji-mart-anchors button:focus-visible{outline:2px solid var(--color-primary-element)}.emoji-mart .emoji-mart-category{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:start}.emoji-mart .emoji-mart-category .emoji-mart-category-label,.emoji-mart .emoji-mart-category .emoji-mart-emoji{-webkit-user-select:none;user-select:none;flex-grow:0;flex-shrink:0}.emoji-mart .emoji-mart-category .emoji-mart-category-label{flex-basis:100%;margin:0}.emoji-mart .emoji-mart-category .emoji-mart-emoji{flex-basis:12.5%;text-align:center}.emoji-mart .emoji-mart-category .emoji-mart-emoji:hover:before,.emoji-mart .emoji-mart-category .emoji-mart-emoji.emoji-mart-emoji-selected:before{background-color:var(--color-background-hover)!important;outline:2px solid var(--color-primary-element)}.emoji-mart .emoji-mart-category button:focus-visible{background-color:var(--color-background-hover);border:2px solid var(--color-primary-element)!important;border-radius:50%}.search{padding:4px 8px}.row-selected span[data-v-4d56e499],.row-selected button[data-v-4d56e499]{vertical-align:middle}.emoji-delete[data-v-4d56e499]{vertical-align:top;margin-left:-21px;margin-top:-3px}.material-design-icon[data-v-36ad47ca]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}#guest-content-vue[data-v-36ad47ca]{color:var(--color-main-text);background-color:var(--color-main-background);min-width:0;border-radius:var(--border-radius-large);box-shadow:0 0 10px var(--color-box-shadow);height:fit-content;padding:15px;margin:20px auto}#content.nc-guest-content{overflow:auto;margin-bottom:0;height:calc(var(--body-height) + var(--body-container-margin))}.material-design-icon[data-v-d93df21d]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.header-menu[data-v-d93df21d]{position:relative;width:var(--header-height);height:var(--header-height)}.header-menu__trigger[data-v-d93df21d]{display:flex;align-items:center;justify-content:center;width:var(--header-height);height:var(--header-height);margin:0;padding:0;cursor:pointer;opacity:.85;background-color:transparent;border:none;filter:none!important;color:var(--color-primary-text)!important}.header-menu--opened .header-menu__trigger[data-v-d93df21d],.header-menu__trigger[data-v-d93df21d]:hover,.header-menu__trigger[data-v-d93df21d]:focus,.header-menu__trigger[data-v-d93df21d]:active{opacity:1}.header-menu__trigger[data-v-d93df21d]:focus-visible{outline:none}.header-menu__wrapper[data-v-d93df21d]{position:fixed;z-index:2000;top:50px;right:0;box-sizing:border-box;margin:0 8px;padding:8px;border-radius:0 0 var(--border-radius) var(--border-radius);border-radius:var(--border-radius-large);background-color:var(--color-main-background);filter:drop-shadow(0 1px 5px var(--color-box-shadow))}.header-menu__carret[data-v-d93df21d]{position:absolute;z-index:2001;bottom:0;left:calc(50% - 10px);width:0;height:0;content:" ";pointer-events:none;border:10px solid transparent;border-bottom-color:var(--color-main-background)}.header-menu__content[data-v-d93df21d]{overflow:auto;width:350px;max-width:calc(100vw - 16px);min-height:66px;max-height:calc(100vh - 100px)}.header-menu__content[data-v-d93df21d] .empty-content{margin:12vh 10px}@media only screen and (max-width: 512px){.header-menu[data-v-d93df21d],.header-menu__trigger[data-v-d93df21d]{width:44px}}.material-design-icon[data-v-9db3a32a]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.list-item__wrapper[data-v-9db3a32a]{position:relative;width:100%}.list-item__wrapper--active .list-item[data-v-9db3a32a],.list-item__wrapper:active .list-item[data-v-9db3a32a],.list-item__wrapper.active .list-item[data-v-9db3a32a]{background-color:var(--color-primary-element)}.list-item__wrapper--active .list-item[data-v-9db3a32a]:active,.list-item__wrapper--active .list-item[data-v-9db3a32a]:hover,.list-item__wrapper--active .list-item[data-v-9db3a32a]:focus,.list-item__wrapper--active .list-item[data-v-9db3a32a]:focus-visible,.list-item__wrapper:active .list-item[data-v-9db3a32a]:active,.list-item__wrapper:active .list-item[data-v-9db3a32a]:hover,.list-item__wrapper:active .list-item[data-v-9db3a32a]:focus,.list-item__wrapper:active .list-item[data-v-9db3a32a]:focus-visible,.list-item__wrapper.active .list-item[data-v-9db3a32a]:active,.list-item__wrapper.active .list-item[data-v-9db3a32a]:hover,.list-item__wrapper.active .list-item[data-v-9db3a32a]:focus,.list-item__wrapper.active .list-item[data-v-9db3a32a]:focus-visible{background-color:var(--color-primary-element-hover)}.list-item__wrapper--active .line-one__name[data-v-9db3a32a],.list-item__wrapper--active .line-one__details[data-v-9db3a32a],.list-item__wrapper:active .line-one__name[data-v-9db3a32a],.list-item__wrapper:active .line-one__details[data-v-9db3a32a],.list-item__wrapper.active .line-one__name[data-v-9db3a32a],.list-item__wrapper.active .line-one__details[data-v-9db3a32a],.list-item__wrapper--active .line-two__subname[data-v-9db3a32a],.list-item__wrapper:active .line-two__subname[data-v-9db3a32a],.list-item__wrapper.active .line-two__subname[data-v-9db3a32a]{color:var(--color-primary-element-text)!important}.list-item[data-v-9db3a32a]{display:block;position:relative;flex:0 0 auto;justify-content:flex-start;padding:8px 10px;border-radius:32px;margin:2px 0;width:100%;cursor:pointer;transition:background-color var(--animation-quick) ease-in-out;list-style:none}.list-item[data-v-9db3a32a]:active,.list-item[data-v-9db3a32a]:hover,.list-item[data-v-9db3a32a]:focus,.list-item[data-v-9db3a32a]:focus-visible{background-color:var(--color-background-hover)}.list-item-content__wrapper[data-v-9db3a32a]{display:flex;align-items:center;height:48px}.list-item-content__wrapper--compact[data-v-9db3a32a]{height:36px}.list-item-content__wrapper--compact .line-one[data-v-9db3a32a],.list-item-content__wrapper--compact .line-two[data-v-9db3a32a]{margin-top:-4px;margin-bottom:-4px}.list-item-content[data-v-9db3a32a]{display:flex;flex:1 1 auto;justify-content:space-between;padding-left:8px}.list-item-content__main[data-v-9db3a32a]{flex:1 1 auto;width:0;margin:auto 0}.list-item-content__main--oneline[data-v-9db3a32a]{display:flex}.list-item-content__actions[data-v-9db3a32a]{flex:0 0 auto;align-self:center;justify-content:center;margin-left:4px}.list-item__extra[data-v-9db3a32a]{margin-top:4px}.line-one[data-v-9db3a32a]{display:flex;align-items:center;justify-content:space-between;white-space:nowrap;margin:0 auto 0 0;overflow:hidden}.line-one__name[data-v-9db3a32a]{overflow:hidden;flex-grow:1;cursor:pointer;text-overflow:ellipsis;color:var(--color-main-text);font-weight:700}.line-one__details[data-v-9db3a32a]{color:var(--color-text-maxcontrast);margin:0 8px;font-weight:400}.line-two[data-v-9db3a32a]{display:flex;align-items:flex-start;justify-content:space-between;white-space:nowrap}.line-two--bold[data-v-9db3a32a]{font-weight:700}.line-two__subname[data-v-9db3a32a]{overflow:hidden;flex-grow:1;cursor:pointer;white-space:nowrap;text-overflow:ellipsis;color:var(--color-text-maxcontrast)}.line-two__additional_elements[data-v-9db3a32a]{margin:2px 4px 0;display:flex;align-items:center}.line-two__indicator[data-v-9db3a32a]{margin:0 5px}.material-design-icon[data-v-3a409988]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.notecard[data-v-3a409988]{color:var(--color-main-text)!important;background-color:var(--note-background)!important;border-inline-start:4px solid var(--note-theme);border-radius:var(--border-radius);margin:1rem 0;padding:1rem;display:flex;flex-direction:row;gap:1rem}.notecard__icon--heading[data-v-3a409988]{margin-bottom:auto;margin-top:.3rem}.notecard--success[data-v-3a409988]{--note-background: rgba(var(--color-success-rgb), .1);--note-theme: var(--color-success)}.notecard--info[data-v-3a409988]{--note-background: rgba(var(--color-info-rgb), .1);--note-theme: var(--color-info)}.notecard--error[data-v-3a409988]{--note-background: rgba(var(--color-error-rgb), .1);--note-theme: var(--color-error)}.notecard--warning[data-v-3a409988]{--note-background: rgba(var(--color-warning-rgb), .1);--note-theme: var(--color-warning)}.material-design-icon[data-v-b171a315]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.progress-bar[data-v-b171a315]{display:block;height:var(--progress-bar-height);width:100%;overflow:hidden;border:0;padding:0;background:var(--color-background-dark);border-radius:calc(var(--progress-bar-height) / 2)}.progress-bar[data-v-b171a315]::-webkit-progress-bar{height:var(--progress-bar-height);background-color:transparent}.progress-bar[data-v-b171a315]::-webkit-progress-value{background:var(--gradient-primary-background);border-radius:calc(var(--progress-bar-height) / 2)}.progress-bar[data-v-b171a315]::-moz-progress-bar{background:var(--gradient-primary-background);border-radius:calc(var(--progress-bar-height) / 2)}.progress-bar--error[data-v-b171a315]::-moz-progress-bar{background:var(--color-error)!important}.progress-bar--error[data-v-b171a315]::-webkit-progress-value{background:var(--color-error)!important}.material-design-icon[data-v-1a960bef]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.resource[data-v-1a960bef]{display:flex;align-items:center;height:44px}.resource__button[data-v-1a960bef]{width:100%!important;justify-content:flex-start!important;padding:0!important}.resource__button[data-v-1a960bef] .button-vue__wrapper{justify-content:flex-start!important}.resource__button[data-v-1a960bef] .button-vue__wrapper .button-vue__text{font-weight:400!important;margin-left:2px!important}.resource__icon[data-v-1a960bef]{width:32px;height:32px;background-color:var(--color-text-maxcontrast);border-radius:50%;display:flex;align-items:center;justify-content:center}.resource__icon img[data-v-1a960bef]{width:16px;height:16px;filter:var(--background-invert-if-dark)}.material-design-icon[data-v-19300848]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.related-resources__header[data-v-19300848]{margin:0 0 10px 46px}.related-resources__header h5[data-v-19300848]{font-weight:700}.related-resources__header p[data-v-19300848]{color:var(--color-text-maxcontrast)}.material-design-icon[data-v-25cf09d8]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.autocomplete-result[data-v-25cf09d8]{display:flex;height:44px;padding:10px}.highlight .autocomplete-result[data-v-25cf09d8]{color:var(--color-primary-element-light-text);background:var(--color-primary-element-light)}.highlight .autocomplete-result[data-v-25cf09d8],.highlight .autocomplete-result *[data-v-25cf09d8]{cursor:pointer}.autocomplete-result__icon[data-v-25cf09d8]{position:relative;flex:0 0 44px;width:44px;min-width:44px;height:44px;border-radius:44px;background-color:var(--color-background-darker);background-repeat:no-repeat;background-position:center;background-size:24px}.autocomplete-result__icon--with-avatar[data-v-25cf09d8]{color:inherit;background-size:cover}.autocomplete-result__status[data-v-25cf09d8]{position:absolute;right:-4px;bottom:-4px;box-sizing:border-box;width:18px;height:18px;border:2px solid var(--color-main-background);border-radius:50%;background-color:var(--color-main-background);font-size:var(--default-font-size);line-height:15px;background-repeat:no-repeat;background-size:16px;background-position:center}.autocomplete-result__status--online[data-v-25cf09d8]{background-image:url(data:image/svg+xml;base64,PCEtLSBUaGlzIGljb24gaXMgcGFydCBvZiBNYXRlcmlhbCBVSSBJY29ucy4gQ29weXJpZ2h0IDIwMjAgR29vZ2xlIEluYy4sIEFwYWNoZS0yLjAgTGljZW5zZSAtLT4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZD0iTTQuOCAxMS4yaDYuNFY0LjhINC44djYuNHpNOCAwQzMuNiAwIDAgMy42IDAgOHMzLjYgOCA4IDggOC0zLjYgOC04LTMuNi04LTgtOHoiIGZpbGw9IiM0OWIzODIiLz48L3N2Zz4K)}.autocomplete-result__status--dnd[data-v-25cf09d8]{background-image:url(data:image/svg+xml;base64,PCEtLSBUaGlzIGljb24gaXMgcGFydCBvZiBNYXRlcmlhbCBVSSBJY29ucy4gQ29weXJpZ2h0IDIwMjAgR29vZ2xlIEluYy4sIEFwYWNoZS0yLjAgTGljZW5zZSAtLT4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZD0iTS00LTRoMjR2MjRILTRWLTR6IiBmaWxsPSJub25lIi8+PHBhdGggZD0iTTggMEMzLjYgMCAwIDMuNiAwIDhzMy42IDggOCA4IDgtMy42IDgtOC0zLjYtOC04LTh6IiBmaWxsPSIjZWQ0ODRjIi8+PHBhdGggZD0iTTUgNi41aDZjLjggMCAxLjUuNyAxLjUgMS41cy0uNyAxLjUtMS41IDEuNUg1Yy0uOCAwLTEuNS0uNy0xLjUtMS41UzQuMiA2LjUgNSA2LjV6IiBmaWxsPSIjZmRmZmZmIi8+PC9zdmc+Cg==);background-color:#fff}.autocomplete-result__status--away[data-v-25cf09d8]{background-image:url(data:image/svg+xml;base64,PCEtLSBUaGlzIGljb24gaXMgcGFydCBvZiBNYXRlcmlhbCBVSSBJY29ucy4gQ29weXJpZ2h0IDIwMjAgR29vZ2xlIEluYy4sIEFwYWNoZS0yLjAgTGljZW5zZSAtLT4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTS00LTRoMjR2MjRILTR6Ii8+PHBhdGggZD0iTTYuOS4xQzMgLjYtLjEgNC0uMSA4YzAgNC40IDMuNiA4IDggOCA0IDAgNy40LTMgOC02LjktMS4yIDEuMy0yLjkgMi4xLTQuNyAyLjEtMy41IDAtNi40LTIuOS02LjQtNi40IDAtMS45LjgtMy42IDIuMS00Ljd6IiBmaWxsPSIjZjRhMzMxIi8+PC9zdmc+Cg==)}.autocomplete-result__status--icon[data-v-25cf09d8]{border:none;background-color:transparent}.autocomplete-result__content[data-v-25cf09d8]{display:flex;flex:1 1 100%;flex-direction:column;justify-content:center;min-width:0;padding-left:10px}.autocomplete-result__title[data-v-25cf09d8],.autocomplete-result__subline[data-v-25cf09d8]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.autocomplete-result__subline[data-v-25cf09d8]{color:var(--color-text-maxcontrast)}.material-design-icon[data-v-599f92d5]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.rich-contenteditable__input[data-v-599f92d5]{overflow-y:auto;width:auto;margin:0;padding:8px;cursor:text;white-space:pre-wrap;word-break:break-word;color:var(--color-main-text);border:2px solid var(--color-border-dark);border-radius:var(--border-radius-large);outline:none;background-color:var(--color-main-background);font-family:var(--font-face);font-size:inherit;min-height:44px;max-height:242px}.rich-contenteditable__input--empty[data-v-599f92d5]:before{content:attr(placeholder);color:var(--color-text-maxcontrast);position:absolute}.rich-contenteditable__input[contenteditable=false][data-v-599f92d5]:not(.rich-contenteditable__input--disabled){cursor:default;background-color:transparent;color:var(--color-main-text);border-color:transparent;opacity:1;border-radius:0}.rich-contenteditable__input--multiline[data-v-599f92d5]{min-height:132px;max-height:none}.rich-contenteditable__input--disabled[data-v-599f92d5]{opacity:.5;color:var(--color-text-maxcontrast);border:2px solid var(--color-background-darker);border-radius:var(--border-radius);background-color:var(--color-background-dark)}.tribute-container,.tribute-container-emoji,.tribute-container-link{z-index:9000;overflow:auto;min-width:250px;max-width:300px;max-height:288px;margin:5px 0;color:var(--color-main-text);border-radius:var(--border-radius);background:var(--color-main-background);box-shadow:0 1px 5px var(--color-box-shadow)}.tribute-container-emoji,.tribute-container-link{min-width:200px;max-width:200px;padding:4px;max-height:192.5px!important}.tribute-container-emoji__item,.tribute-container-link__item{border-radius:8px;padding:4px 8px;margin-bottom:4px;opacity:.8;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tribute-container-emoji__item:last-child,.tribute-container-link__item:last-child{margin-bottom:0}.tribute-container-emoji__item__emoji,.tribute-container-link__item__emoji{padding-right:8px}.tribute-container-emoji .highlight,.tribute-container-link .highlight{opacity:1;color:var(--color-primary-element-light-text);background:var(--color-primary-element-light)}.tribute-container-emoji .highlight,.tribute-container-emoji .highlight *,.tribute-container-link .highlight,.tribute-container-link .highlight *{cursor:pointer}.tribute-container-link{min-width:200px;max-width:300px}.tribute-container-link__item{display:flex;align-items:center}.tribute-container-link__item__title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tribute-container-link__item__icon{margin:auto 0;width:20px;height:20px;object-fit:contain;padding-right:8px;filter:var(--background-invert-if-dark)}.material-design-icon[data-v-b1c5a80f]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.widget-custom[data-v-b1c5a80f]{width:100%;margin:auto;margin-bottom:calc(var(--default-grid-baseline, 4px) * 3);margin-top:calc(var(--default-grid-baseline, 4px) * 3);overflow:hidden;border:2px solid var(--color-border);border-radius:var(--border-radius-large);background-color:transparent;display:flex}.widget-access[data-v-b1c5a80f]{width:100%;margin:auto;margin-bottom:calc(var(--default-grid-baseline, 4px) * 3);margin-top:calc(var(--default-grid-baseline, 4px) * 3);overflow:hidden;border:2px solid var(--color-border);border-radius:var(--border-radius-large);background-color:transparent;display:flex;padding:calc(var(--default-grid-baseline, 4px) * 3)}.widget-default[data-v-b1c5a80f]{width:100%;margin:auto;margin-bottom:calc(var(--default-grid-baseline, 4px) * 3);margin-top:calc(var(--default-grid-baseline, 4px) * 3);overflow:hidden;border:2px solid var(--color-border);border-radius:var(--border-radius-large);background-color:transparent;display:flex}.widget-default--compact[data-v-b1c5a80f]{flex-direction:column}.widget-default--compact .widget-default--image[data-v-b1c5a80f]{width:100%;height:150px}.widget-default--compact .widget-default--details[data-v-b1c5a80f]{width:100%;padding-top:calc(var(--default-grid-baseline, 4px) * 2);padding-bottom:calc(var(--default-grid-baseline, 4px) * 2)}.widget-default--compact .widget-default--description[data-v-b1c5a80f]{display:none}.widget-default--image[data-v-b1c5a80f]{width:40%;background-position:center;background-size:cover;background-repeat:no-repeat}.widget-default--name[data-v-b1c5a80f]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700}.widget-default--details[data-v-b1c5a80f]{padding:calc(var(--default-grid-baseline, 4px) * 3);width:60%}.widget-default--details p[data-v-b1c5a80f]{margin:0;padding:0}.widget-default--description[data-v-b1c5a80f]{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;-webkit-box-orient:vertical}.widget-default--link[data-v-b1c5a80f]{color:var(--color-text-maxcontrast);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.material-design-icon[data-v-bd1fbb02]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.widgets--list.icon-loading[data-v-bd1fbb02]{min-height:44px}.material-design-icon[data-v-5f33f45b]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.rich-text--wrapper[data-v-5f33f45b]{word-break:break-word;line-height:1.5}.rich-text--wrapper .rich-text--fallback[data-v-5f33f45b],.rich-text--wrapper .rich-text-component[data-v-5f33f45b]{display:inline}.rich-text--wrapper .rich-text--external-link[data-v-5f33f45b]{text-decoration:underline}.rich-text--wrapper .rich-text--external-link[data-v-5f33f45b]:after{content:" ↗"}.rich-text--wrapper .rich-text--ordered-list .rich-text--list-item[data-v-5f33f45b]{list-style:decimal}.rich-text--wrapper .rich-text--un-ordered-list .rich-text--list-item[data-v-5f33f45b]{list-style:initial}.rich-text--wrapper .rich-text--list-item[data-v-5f33f45b]{white-space:initial;color:var(--color-text-light);padding:initial;margin-left:20px}.rich-text--wrapper .rich-text--list-item.task-list-item[data-v-5f33f45b]{list-style:none;white-space:initial;color:var(--color-text-light)}.rich-text--wrapper .rich-text--list-item.task-list-item input[data-v-5f33f45b]{min-height:initial}.rich-text--wrapper .rich-text--strong[data-v-5f33f45b]{white-space:initial;font-weight:700;color:var(--color-text-light)}.rich-text--wrapper .rich-text--italic[data-v-5f33f45b]{white-space:initial;font-style:italic;color:var(--color-text-light)}.rich-text--wrapper .rich-text--heading[data-v-5f33f45b]{white-space:initial;font-size:initial;color:var(--color-text-light);margin-bottom:5px;margin-top:5px;font-weight:700}.rich-text--wrapper .rich-text--heading.rich-text--heading-1[data-v-5f33f45b]{font-size:20px}.rich-text--wrapper .rich-text--heading.rich-text--heading-2[data-v-5f33f45b]{font-size:19px}.rich-text--wrapper .rich-text--heading.rich-text--heading-3[data-v-5f33f45b]{font-size:18px}.rich-text--wrapper .rich-text--heading.rich-text--heading-4[data-v-5f33f45b]{font-size:17px}.rich-text--wrapper .rich-text--heading.rich-text--heading-5[data-v-5f33f45b]{font-size:16px}.rich-text--wrapper .rich-text--heading.rich-text--heading-6[data-v-5f33f45b]{font-size:15px}.rich-text--wrapper .rich-text--hr[data-v-5f33f45b]{border-top:1px solid var(--color-border-dark);border-bottom:0}.rich-text--wrapper .rich-text--pre[data-v-5f33f45b]{border:1px solid var(--color-border-dark);background-color:var(--color-background-dark);padding:5px}.rich-text--wrapper .rich-text--code[data-v-5f33f45b]{background-color:var(--color-background-dark)}.rich-text--wrapper .rich-text--blockquote[data-v-5f33f45b]{border-left:3px solid var(--color-border-dark);padding-left:5px}.rich-text--wrapper .rich-text--table[data-v-5f33f45b]{border-collapse:collapse}.rich-text--wrapper .rich-text--table thead tr th[data-v-5f33f45b]{border:1px solid var(--color-border-dark);font-weight:700;padding:6px 13px}.rich-text--wrapper .rich-text--table tbody tr td[data-v-5f33f45b]{border:1px solid var(--color-border-dark);padding:6px 13px}.rich-text--wrapper .rich-text--table tbody tr[data-v-5f33f45b]:nth-child(2n){background-color:var(--color-background-dark)}.rich-text--wrapper-markdown div>*[data-v-5f33f45b]:first-child,.rich-text--wrapper-markdown blockquote>*[data-v-5f33f45b]:first-child{margin-top:0!important}.rich-text--wrapper-markdown div>*[data-v-5f33f45b]:last-child,.rich-text--wrapper-markdown blockquote>*[data-v-5f33f45b]:last-child{margin-bottom:0!important}.rich-text--wrapper-markdown h1[data-v-5f33f45b],.rich-text--wrapper-markdown h2[data-v-5f33f45b],.rich-text--wrapper-markdown h3[data-v-5f33f45b],.rich-text--wrapper-markdown h4[data-v-5f33f45b],.rich-text--wrapper-markdown h5[data-v-5f33f45b],.rich-text--wrapper-markdown h6[data-v-5f33f45b],.rich-text--wrapper-markdown p[data-v-5f33f45b],.rich-text--wrapper-markdown ul[data-v-5f33f45b],.rich-text--wrapper-markdown ol[data-v-5f33f45b],.rich-text--wrapper-markdown blockquote[data-v-5f33f45b],.rich-text--wrapper-markdown pre[data-v-5f33f45b]{margin-top:0;margin-bottom:1em}.rich-text--wrapper-markdown h1[data-v-5f33f45b],.rich-text--wrapper-markdown h2[data-v-5f33f45b],.rich-text--wrapper-markdown h3[data-v-5f33f45b],.rich-text--wrapper-markdown h4[data-v-5f33f45b],.rich-text--wrapper-markdown h5[data-v-5f33f45b],.rich-text--wrapper-markdown h6[data-v-5f33f45b]{font-weight:700}.rich-text--wrapper-markdown h1[data-v-5f33f45b]{font-size:30px}.rich-text--wrapper-markdown ul[data-v-5f33f45b],.rich-text--wrapper-markdown ol[data-v-5f33f45b]{padding-left:15px}.rich-text--wrapper-markdown ul[data-v-5f33f45b]{list-style-type:disc}.rich-text--wrapper-markdown blockquote[data-v-5f33f45b]{padding-left:13px;border-left:2px solid var(--color-border-dark);color:var(--color-text-lighter)}a[data-v-5f33f45b]:not(.rich-text--component){text-decoration:underline}.material-design-icon[data-v-cf695ff9],.material-design-icon[data-v-9d850ea5]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.provider-list[data-v-9d850ea5]{width:100%;min-height:400px;padding:0 16px 16px;display:flex;flex-direction:column}.provider-list--select[data-v-9d850ea5]{width:100%}.provider-list--select .provider[data-v-9d850ea5]{display:flex;align-items:center;height:28px;overflow:hidden}.provider-list--select .provider .link-icon[data-v-9d850ea5]{margin-right:8px}.provider-list--select .provider .provider-icon[data-v-9d850ea5]{width:20px;height:20px;object-fit:contain;margin-right:8px;filter:var(--background-invert-if-dark)}.provider-list--select .provider .option-text[data-v-9d850ea5]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.material-design-icon[data-v-d0ba247a]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.raw-link[data-v-d0ba247a]{width:100%;min-height:350px;display:flex;flex-direction:column;overflow-y:auto;padding:0 16px 16px}.raw-link .input-wrapper[data-v-d0ba247a]{width:100%}.raw-link .reference-widget[data-v-d0ba247a]{display:flex}.raw-link--empty-content .provider-icon[data-v-d0ba247a]{width:150px;height:150px;object-fit:contain;filter:var(--background-invert-if-dark)}.raw-link--input[data-v-d0ba247a]{width:99%}.material-design-icon[data-v-7a394a58]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.result[data-v-7a394a58]{display:flex;align-items:center;height:44px;overflow:hidden}.result--icon-class[data-v-7a394a58],.result--image[data-v-7a394a58]{width:40px;min-width:40px;height:40px;object-fit:contain}.result--icon-class.rounded[data-v-7a394a58],.result--image.rounded[data-v-7a394a58]{border-radius:50%}.result--content[data-v-7a394a58]{display:flex;flex-direction:column;padding-left:10px;overflow:hidden}.result--content--name[data-v-7a394a58],.result--content--subline[data-v-7a394a58]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.material-design-icon[data-v-97d196f0]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.smart-picker-search[data-v-97d196f0]{width:100%;display:flex;flex-direction:column;padding:0 16px 16px}.smart-picker-search.with-empty-content[data-v-97d196f0]{min-height:400px}.smart-picker-search .provider-icon[data-v-97d196f0]{width:150px;height:150px;object-fit:contain;filter:var(--background-invert-if-dark)}.smart-picker-search--select[data-v-97d196f0],.smart-picker-search--select .search-result[data-v-97d196f0]{width:100%}.smart-picker-search--select .group-name-icon[data-v-97d196f0],.smart-picker-search--select .option-simple-icon[data-v-97d196f0]{width:20px;height:20px;margin:0 20px 0 10px}.smart-picker-search--select .custom-option[data-v-97d196f0]{height:44px;display:flex;align-items:center;overflow:hidden}.smart-picker-search--select .option-text[data-v-97d196f0]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.material-design-icon[data-v-aa77d0d3]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.reference-picker[data-v-aa77d0d3],.reference-picker .custom-element-wrapper[data-v-aa77d0d3]{display:flex;overflow-y:auto;width:100%}.material-design-icon{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.reference-picker-modal .modal-container{display:flex!important}.material-design-icon[data-v-3f1a4ac7]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.reference-picker-modal--content[data-v-3f1a4ac7]{width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow-y:auto}.reference-picker-modal--content .close-button[data-v-3f1a4ac7],.reference-picker-modal--content .back-button[data-v-3f1a4ac7]{position:absolute;top:4px}.reference-picker-modal--content .back-button[data-v-3f1a4ac7]{left:4px}.reference-picker-modal--content .close-button[data-v-3f1a4ac7]{right:4px}.reference-picker-modal--content>h2[data-v-3f1a4ac7]{display:flex;margin:12px 0 20px}.reference-picker-modal--content>h2 .icon[data-v-3f1a4ac7]{margin-right:8px}.material-design-icon[data-v-5b140fb6]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.input-wrapper[data-v-5b140fb6]{display:flex;align-items:center;flex-wrap:wrap;width:100%;max-width:400px}.input-wrapper .action-input__label[data-v-5b140fb6]{margin-right:12px}.input-wrapper[data-v-5b140fb6]:disabled{cursor:default}.input-wrapper .hint[data-v-5b140fb6]{color:var(--color-text-maxcontrast);margin-left:8px}.material-design-icon[data-v-5a35ccce]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.select-group-error[data-v-5a35ccce]{color:var(--color-error);font-size:13px;padding-inline-start:var(--border-radius-large)}.material-design-icon[data-v-55ab76f1]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.user-bubble__wrapper[data-v-55ab76f1]{display:inline-block;vertical-align:middle;min-width:0;max-width:100%}.user-bubble__content[data-v-55ab76f1]{display:inline-flex;max-width:100%;background-color:var(--color-background-dark)}.user-bubble__content--primary[data-v-55ab76f1]{color:var(--color-primary-element-text);background-color:var(--color-primary-element)}.user-bubble__content[data-v-55ab76f1]>:last-child{padding-right:8px}.user-bubble__avatar[data-v-55ab76f1]{align-self:center}.user-bubble__name[data-v-55ab76f1]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.user-bubble__name[data-v-55ab76f1],.user-bubble__secondary[data-v-55ab76f1]{padding:0 0 0 4px}/** + */li.active[data-v-b0b05af8]{background-color:var(--color-background-hover);border-radius:6px;padding:0}.action--disabled[data-v-b0b05af8]{pointer-events:none;opacity:.5}.action--disabled[data-v-b0b05af8]:hover,.action--disabled[data-v-b0b05af8]:focus{cursor:default;opacity:.5}.action--disabled *[data-v-b0b05af8]{opacity:1!important}.action-text-editable[data-v-b0b05af8]{display:flex;align-items:flex-start;width:100%;height:auto;margin:0;padding:0;cursor:pointer;white-space:nowrap;color:var(--color-main-text);border:0;border-radius:0;background-color:transparent;box-shadow:none;font-weight:400;line-height:44px}.action-text-editable>span[data-v-b0b05af8]{cursor:pointer;white-space:nowrap}.action-text-editable__icon[data-v-b0b05af8]{min-width:0;min-height:0;padding:22px 0 22px 44px;background-position:14px center;background-size:16px}.action-text-editable[data-v-b0b05af8] .material-design-icon{width:44px;height:44px;opacity:1}.action-text-editable[data-v-b0b05af8] .material-design-icon .material-design-icon__svg{vertical-align:middle}.action-text-editable__form[data-v-b0b05af8]{display:flex;flex:1 1 auto;flex-direction:column;position:relative;margin:4px 0;padding-right:14px}.action-text-editable__submit[data-v-b0b05af8]{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}.action-text-editable__label[data-v-b0b05af8]{display:flex;align-items:center;justify-content:center;position:absolute;right:15px;bottom:1px;width:36px;height:36px;box-sizing:border-box;margin:0;padding:7px 6px;border:0;border-radius:50%;background-color:var(--color-main-background);background-clip:padding-box}.action-text-editable__label[data-v-b0b05af8],.action-text-editable__label *[data-v-b0b05af8]{cursor:pointer}.action-text-editable__textarea[data-v-b0b05af8]{flex:1 1 auto;color:inherit;border-color:var(--color-border-maxcontrast);min-height:80px;max-height:124px;min-width:176px;width:100%!important;margin:0}.action-text-editable__textarea[data-v-b0b05af8]:disabled{cursor:default}.action-text-editable__textarea:not(:active):not(:hover):not(:focus):invalid+.action-text-editable__label[data-v-b0b05af8]{background-color:var(--color-error)}.action-text-editable__textarea:not(:active):not(:hover):not(:focus):not(:disabled)+.action-text-editable__label[data-v-b0b05af8]:active,.action-text-editable__textarea:not(:active):not(:hover):not(:focus):not(:disabled)+.action-text-editable__label[data-v-b0b05af8]:hover,.action-text-editable__textarea:not(:active):not(:hover):not(:focus):not(:disabled)+.action-text-editable__label[data-v-b0b05af8]:focus{background-color:var(--color-primary-element);color:var(--color-primary-element-text)}.action-text-editable__textarea:active:not(:disabled)+.action-text-editable__label[data-v-b0b05af8],.action-text-editable__textarea:hover:not(:disabled)+.action-text-editable__label[data-v-b0b05af8],.action-text-editable__textarea:focus:not(:disabled)+.action-text-editable__label[data-v-b0b05af8]{z-index:2;border-color:var(--color-primary-element);border-left-color:transparent}li:last-child>.action-text-editable[data-v-b0b05af8]{margin-bottom:10px}li:first-child>.action-text-editable[data-v-b0b05af8]{margin-top:10px}.app-navigation,.app-content{--app-navigation-padding: calc(var(--default-grid-baseline, 4px) * 2)}.material-design-icon[data-v-fd869d62]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.app-navigation[data-v-fd869d62]{--color-text-maxcontrast: var(--color-text-maxcontrast-background-blur, var(--color-text-maxcontrast-default));transition:transform var(--animation-quick),margin var(--animation-quick);width:300px;max-width:calc(100vw - (var(--app-navigation-padding) + var(--default-clickable-area) + var(--default-grid-baseline)));position:relative;top:0;left:0;padding:0;z-index:1800;height:100%;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;flex-grow:0;flex-shrink:0;background-color:var(--color-main-background-blur, var(--color-main-background));-webkit-backdrop-filter:var(--filter-background-blur, none);backdrop-filter:var(--filter-background-blur, none)}.app-navigation--close[data-v-fd869d62]{transform:translate(-100%);position:absolute}.app-navigation__content>ul[data-v-fd869d62],.app-navigation__list[data-v-fd869d62]{position:relative;height:100%;width:100%;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;display:flex;flex-direction:column;gap:var(--default-grid-baseline, 4px);padding:var(--app-navigation-padding)}.app-navigation__content[data-v-fd869d62]{height:100%;display:flex;flex-direction:column}[data-themes*=highcontrast] .app-navigation[data-v-fd869d62]{border-right:1px solid var(--color-border)}@media only screen and (max-width: 1024px){.app-navigation[data-v-fd869d62]:not(.app-navigation--close){position:absolute}}.material-design-icon[data-v-13b4f13a]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}button.app-navigation-toggle[data-v-13b4f13a]{position:absolute;top:var(--app-navigation-padding);right:calc(0px - var(--app-navigation-padding));margin-right:-44px;background-color:var(--color-main-background)}.material-design-icon[data-v-f01eb538]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.app-navigation-caption[data-v-f01eb538]{display:flex;justify-content:space-between}.app-navigation-caption__name[data-v-f01eb538]{font-weight:700;color:var(--color-primary-element);font-size:var(--default-font-size);line-height:44px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:.7;box-shadow:none!important;flex-shrink:0;padding:0 calc(var(--default-grid-baseline, 4px) * 2) 0 calc(var(--default-grid-baseline, 4px) * 3)}.app-navigation-caption__actions[data-v-f01eb538]{flex:0 0 44px}.app-navigation-caption[data-v-f01eb538]:not(:first-child){margin-top:22px}.material-design-icon[data-v-91580127]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.app-navigation-entry__icon-bullet[data-v-91580127]{display:block;padding:15px}.app-navigation-entry__icon-bullet div[data-v-91580127]{width:14px;height:14px;cursor:pointer;transition:background .1s ease-in-out;border:none;border-radius:50%}.material-design-icon[data-v-07582bf6]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.button-vue.icon-collapse[data-v-07582bf6]{position:relative;z-index:105;color:var(--color-main-text);right:0}.button-vue.icon-collapse--open[data-v-07582bf6]{color:var(--color-main-text)}.button-vue.icon-collapse--open[data-v-07582bf6]:hover{color:var(--color-primary-element)}.material-design-icon[data-v-d7365865]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.app-navigation-entry[data-v-d7365865]{position:relative;display:flex;flex-shrink:0;flex-wrap:wrap;box-sizing:border-box;width:100%;min-height:44px;transition:background-color var(--animation-quick) ease-in-out;transition:background-color .2s ease-in-out;border-radius:var(--border-radius-pill)}.app-navigation-entry-wrapper[data-v-d7365865]{position:relative;display:flex;flex-shrink:0;flex-wrap:wrap;box-sizing:border-box;width:100%}.app-navigation-entry-wrapper.app-navigation-entry--collapsible:not(.app-navigation-entry--opened)>ul[data-v-d7365865]{display:none}.app-navigation-entry.active[data-v-d7365865]{background-color:var(--color-primary-element)!important}.app-navigation-entry.active .app-navigation-entry-link[data-v-d7365865],.app-navigation-entry.active .app-navigation-entry-button[data-v-d7365865]{color:var(--color-primary-element-text)!important}.app-navigation-entry[data-v-d7365865]:focus-within,.app-navigation-entry[data-v-d7365865]:hover{background-color:var(--color-background-hover)}.app-navigation-entry.active .app-navigation-entry__children[data-v-d7365865],.app-navigation-entry:focus-within .app-navigation-entry__children[data-v-d7365865],.app-navigation-entry:hover .app-navigation-entry__children[data-v-d7365865]{background-color:var(--color-main-background)}.app-navigation-entry.active .app-navigation-entry__utils .app-navigation-entry__actions[data-v-d7365865],.app-navigation-entry.app-navigation-entry--deleted .app-navigation-entry__utils .app-navigation-entry__actions[data-v-d7365865],.app-navigation-entry:focus .app-navigation-entry__utils .app-navigation-entry__actions[data-v-d7365865],.app-navigation-entry:focus-within .app-navigation-entry__utils .app-navigation-entry__actions[data-v-d7365865],.app-navigation-entry:hover .app-navigation-entry__utils .app-navigation-entry__actions[data-v-d7365865]{display:inline-block}.app-navigation-entry.app-navigation-entry--deleted>ul[data-v-d7365865]{display:none}.app-navigation-entry:not(.app-navigation-entry--editing) .app-navigation-entry-link[data-v-d7365865],.app-navigation-entry:not(.app-navigation-entry--editing) .app-navigation-entry-button[data-v-d7365865]{padding-right:14px}.app-navigation-entry .app-navigation-entry-link[data-v-d7365865],.app-navigation-entry .app-navigation-entry-button[data-v-d7365865]{z-index:100;display:flex;overflow:hidden;flex:1 1 0;box-sizing:border-box;min-height:44px;padding:0;white-space:nowrap;color:var(--color-main-text);background-repeat:no-repeat;background-position:14px center;background-size:16px 16px;line-height:44px}.app-navigation-entry .app-navigation-entry-link .app-navigation-entry-icon[data-v-d7365865],.app-navigation-entry .app-navigation-entry-button .app-navigation-entry-icon[data-v-d7365865]{display:flex;align-items:center;flex:0 0 44px;justify-content:center;width:44px;height:44px;background-size:16px 16px;background-repeat:no-repeat;background-position:14px center}.app-navigation-entry .app-navigation-entry-link .app-navigation-entry__name[data-v-d7365865],.app-navigation-entry .app-navigation-entry-button .app-navigation-entry__name[data-v-d7365865]{overflow:hidden;max-width:100%;white-space:nowrap;text-overflow:ellipsis}.app-navigation-entry .app-navigation-entry-link .editingContainer[data-v-d7365865],.app-navigation-entry .app-navigation-entry-button .editingContainer[data-v-d7365865]{width:calc(100% - 44px);margin:auto}.app-navigation-entry__children[data-v-d7365865]{position:relative;display:flex;flex:0 1 auto;flex-direction:column;width:100%;gap:var(--default-grid-baseline, 4px)}.app-navigation-entry__children .app-navigation-entry[data-v-d7365865]{display:inline-flex;flex-wrap:wrap;padding-left:16px}.app-navigation-entry__deleted[data-v-d7365865]{display:inline-flex;flex:1 1 0;padding-left:30px!important}.app-navigation-entry__deleted .app-navigation-entry__deleted-description[data-v-d7365865]{position:relative;overflow:hidden;flex:1 1 0;white-space:nowrap;text-overflow:ellipsis;line-height:44px}.app-navigation-entry__utils[data-v-d7365865]{display:flex;min-width:44px;align-items:center;flex:0 1 auto;justify-content:flex-end}.app-navigation-entry__utils.app-navigation-entry__utils--display-actions .action-item.app-navigation-entry__actions[data-v-d7365865]{display:inline-block}.app-navigation-entry__utils .app-navigation-entry__counter-wrapper[data-v-d7365865]{margin-right:calc(var(--default-grid-baseline) * 3);display:flex;align-items:center;flex:0 1 auto}.app-navigation-entry__utils .action-item.app-navigation-entry__actions[data-v-d7365865]{display:none}.app-navigation-entry--editing .app-navigation-entry-edit[data-v-d7365865]{z-index:250;opacity:1}.app-navigation-entry--deleted .app-navigation-entry-deleted[data-v-d7365865]{z-index:250;transform:translate(0)}.app-navigation-entry--pinned[data-v-d7365865]{order:2;margin-top:auto}.app-navigation-entry--pinned~.app-navigation-entry--pinned[data-v-d7365865]{margin-top:0}[data-themes*=highcontrast] .app-navigation-entry[data-v-d7365865]:active{background-color:var(--color-primary-element-light-hover)!important}.material-design-icon[data-v-dcf0becf]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.app-navigation-input-confirm[data-v-dcf0becf]{flex:1 0 100%;width:100%}.app-navigation-input-confirm form[data-v-dcf0becf]{display:flex}.app-navigation-input-confirm__input[data-v-dcf0becf]{height:34px;flex:1 1 100%;font-size:100%!important;margin:5px 5px 5px -8px!important;padding:7px!important}.app-navigation-input-confirm__input[data-v-dcf0becf]:active,.app-navigation-input-confirm__input[data-v-dcf0becf]:focus,.app-navigation-input-confirm__input[data-v-dcf0becf]:hover{outline:none;background-color:var(--color-main-background);color:var(--color-main-text);border-color:var(--color-primary-element)}.material-design-icon[data-v-c47dc611]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.app-navigation-new[data-v-c47dc611]{display:block;padding:calc(var(--default-grid-baseline, 4px) * 2)}.app-navigation-new button[data-v-c47dc611]{width:100%}.material-design-icon[data-v-8950be04]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.app-navigation-entry[data-v-8950be04]{position:relative;display:flex;flex-shrink:0;flex-wrap:wrap;box-sizing:border-box;width:100%;min-height:44px;transition:background-color var(--animation-quick) ease-in-out;transition:background-color .2s ease-in-out;border-radius:var(--border-radius-pill)}.app-navigation-entry-wrapper[data-v-8950be04]{position:relative;display:flex;flex-shrink:0;flex-wrap:wrap;box-sizing:border-box;width:100%}.app-navigation-entry-wrapper.app-navigation-entry--collapsible:not(.app-navigation-entry--opened)>ul[data-v-8950be04]{display:none}.app-navigation-entry.active[data-v-8950be04]{background-color:var(--color-primary-element)!important}.app-navigation-entry.active .app-navigation-entry-link[data-v-8950be04],.app-navigation-entry.active .app-navigation-entry-button[data-v-8950be04]{color:var(--color-primary-element-text)!important}.app-navigation-entry[data-v-8950be04]:focus-within,.app-navigation-entry[data-v-8950be04]:hover{background-color:var(--color-background-hover)}.app-navigation-entry.active .app-navigation-entry__children[data-v-8950be04],.app-navigation-entry:focus-within .app-navigation-entry__children[data-v-8950be04],.app-navigation-entry:hover .app-navigation-entry__children[data-v-8950be04]{background-color:var(--color-main-background)}.app-navigation-entry.active .app-navigation-entry__utils .app-navigation-entry__actions[data-v-8950be04],.app-navigation-entry.app-navigation-entry--deleted .app-navigation-entry__utils .app-navigation-entry__actions[data-v-8950be04],.app-navigation-entry:focus .app-navigation-entry__utils .app-navigation-entry__actions[data-v-8950be04],.app-navigation-entry:focus-within .app-navigation-entry__utils .app-navigation-entry__actions[data-v-8950be04],.app-navigation-entry:hover .app-navigation-entry__utils .app-navigation-entry__actions[data-v-8950be04]{display:inline-block}.app-navigation-entry.app-navigation-entry--deleted>ul[data-v-8950be04]{display:none}.app-navigation-entry:not(.app-navigation-entry--editing) .app-navigation-entry-link[data-v-8950be04],.app-navigation-entry:not(.app-navigation-entry--editing) .app-navigation-entry-button[data-v-8950be04]{padding-right:14px}.app-navigation-entry .app-navigation-entry-link[data-v-8950be04],.app-navigation-entry .app-navigation-entry-button[data-v-8950be04]{z-index:100;display:flex;overflow:hidden;flex:1 1 0;box-sizing:border-box;min-height:44px;padding:0;white-space:nowrap;color:var(--color-main-text);background-repeat:no-repeat;background-position:14px center;background-size:16px 16px;line-height:44px}.app-navigation-entry .app-navigation-entry-link .app-navigation-entry-icon[data-v-8950be04],.app-navigation-entry .app-navigation-entry-button .app-navigation-entry-icon[data-v-8950be04]{display:flex;align-items:center;flex:0 0 44px;justify-content:center;width:44px;height:44px;background-size:16px 16px;background-repeat:no-repeat;background-position:14px center}.app-navigation-entry .app-navigation-entry-link .app-navigation-entry__name[data-v-8950be04],.app-navigation-entry .app-navigation-entry-button .app-navigation-entry__name[data-v-8950be04]{overflow:hidden;max-width:100%;white-space:nowrap;text-overflow:ellipsis}.app-navigation-entry .app-navigation-entry-link .editingContainer[data-v-8950be04],.app-navigation-entry .app-navigation-entry-button .editingContainer[data-v-8950be04]{width:calc(100% - 44px);margin:auto}.app-navigation-entry__children[data-v-8950be04]{position:relative;display:flex;flex:0 1 auto;flex-direction:column;width:100%;gap:var(--default-grid-baseline, 4px)}.app-navigation-entry__children .app-navigation-entry[data-v-8950be04]{display:inline-flex;flex-wrap:wrap;padding-left:16px}.app-navigation-entry__deleted[data-v-8950be04]{display:inline-flex;flex:1 1 0;padding-left:30px!important}.app-navigation-entry__deleted .app-navigation-entry__deleted-description[data-v-8950be04]{position:relative;overflow:hidden;flex:1 1 0;white-space:nowrap;text-overflow:ellipsis;line-height:44px}.app-navigation-entry__utils[data-v-8950be04]{display:flex;min-width:44px;align-items:center;flex:0 1 auto;justify-content:flex-end}.app-navigation-entry__utils.app-navigation-entry__utils--display-actions .action-item.app-navigation-entry__actions[data-v-8950be04]{display:inline-block}.app-navigation-entry__utils .app-navigation-entry__counter-wrapper[data-v-8950be04]{margin-right:calc(var(--default-grid-baseline) * 3);display:flex;align-items:center;flex:0 1 auto}.app-navigation-entry__utils .action-item.app-navigation-entry__actions[data-v-8950be04]{display:none}.app-navigation-entry--editing .app-navigation-entry-edit[data-v-8950be04]{z-index:250;opacity:1}.app-navigation-entry--deleted .app-navigation-entry-deleted[data-v-8950be04]{z-index:250;transform:translate(0)}.app-navigation-entry--pinned[data-v-8950be04]{order:2;margin-top:auto}.app-navigation-entry--pinned~.app-navigation-entry--pinned[data-v-8950be04]{margin-top:0}[data-themes*=highcontrast] .app-navigation-entry[data-v-8950be04]:active{background-color:var(--color-primary-element-light-hover)!important}.app-navigation-new-item__name[data-v-8950be04]{overflow:hidden;max-width:100%;white-space:nowrap;text-overflow:ellipsis;padding-left:7px;font-size:14px}.newItemContainer[data-v-8950be04]{width:calc(100% - 44px);margin:auto}.material-design-icon[data-v-db4cc195]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}#app-settings[data-v-db4cc195]{margin-top:auto;padding:3px}#app-settings__header[data-v-db4cc195]{box-sizing:border-box;margin:0 3px 3px}#app-settings__header .settings-button[data-v-db4cc195]{display:flex;flex:1 1 0;height:44px;width:100%;padding:0 14px 0 0;margin:0;background-color:var(--color-main-background);box-shadow:none;border:0;border-radius:var(--border-radius-pill);text-align:left;font-weight:400;font-size:100%;color:var(--color-main-text);line-height:44px}#app-settings__header .settings-button[data-v-db4cc195]:hover,#app-settings__header .settings-button[data-v-db4cc195]:focus{background-color:var(--color-background-hover)}#app-settings__header .settings-button__icon[data-v-db4cc195]{width:44px;height:44px;min-width:44px}#app-settings__header .settings-button__label[data-v-db4cc195]{overflow:hidden;max-width:100%;white-space:nowrap;text-overflow:ellipsis}#app-settings__content[data-v-db4cc195]{display:block;padding:10px;margin-bottom:-3px;max-height:300px;overflow-y:auto;box-sizing:border-box}.slide-up-leave-active[data-v-db4cc195],.slide-up-enter-active[data-v-db4cc195]{transition-duration:var(--animation-slow);transition-property:max-height,padding;overflow-y:hidden!important}.slide-up-enter[data-v-db4cc195],.slide-up-leave-to[data-v-db4cc195]{max-height:0!important;padding:0 10px!important}.app-navigation-spacer[data-v-c8233ec5]{flex-shrink:0;order:1;height:22px}.material-design-icon[data-v-b5b2caa2]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.app-settings__navigation[data-v-b5b2caa2]{min-width:200px;margin-right:20px;overflow-x:hidden;overflow-y:auto;position:relative;height:100%}.app-settings__content[data-v-b5b2caa2]{max-width:100vw;overflow-y:auto;overflow-x:hidden;padding:24px;width:100%}.navigation-list[data-v-b5b2caa2]{height:100%;box-sizing:border-box;overflow-y:auto;padding:12px}.navigation-list--collapsed[data-v-b5b2caa2]{display:flex;flex-direction:row;gap:6px}.navigation-list__link[data-v-b5b2caa2]{display:flex;align-content:center;font-size:16px;height:44px;margin:4px 0;line-height:44px;border-radius:var(--border-radius-pill);font-weight:700;padding:0 20px;cursor:pointer;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;background-color:transparent;border:none}.navigation-list__link[data-v-b5b2caa2]:hover,.navigation-list__link[data-v-b5b2caa2]:focus{background-color:var(--color-background-hover)}.navigation-list__link--active[data-v-b5b2caa2]{background-color:var(--color-primary-element-light)!important}.navigation-list__link--icon[data-v-b5b2caa2]{padding-inline-start:8px;gap:4px}.navigation-list__link-icon[data-v-b5b2caa2]{display:flex;justify-content:center;align-content:center;width:36px;max-width:36px}@media only screen and (max-width: 512px){.dialog__modal .modal-wrapper--small .modal-container{width:fit-content;height:unset;max-height:90%;position:relative;top:unset;border-radius:var(--border-radius-large)}}.material-design-icon[data-v-cf1c45bf]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.dialog[data-v-cf1c45bf]{height:100%;width:100%;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden}.dialog__modal[data-v-cf1c45bf] .modal-container{display:flex!important;padding-block:4px 8px;padding-inline:12px 8px}.dialog__modal[data-v-cf1c45bf] .modal-container__content{display:flex;flex-direction:column}.dialog__wrapper[data-v-cf1c45bf]{display:flex;flex-direction:row;flex:1;min-height:0;overflow:hidden;padding-inline-end:4px}.dialog__wrapper--collapsed[data-v-cf1c45bf]{flex-direction:column}.dialog__navigation[data-v-cf1c45bf]{display:flex;flex-shrink:0}.dialog__wrapper:not(.dialog__wrapper--collapsed) .dialog__navigation[data-v-cf1c45bf]{flex-direction:column;overflow:hidden auto;height:100%;min-width:200px;margin-inline-end:20px}.dialog__wrapper.dialog__wrapper--collapsed .dialog__navigation[data-v-cf1c45bf]{flex-direction:row;justify-content:space-between;overflow:auto hidden;width:100%;min-width:100%}.dialog__name[data-v-cf1c45bf]{text-align:center;height:var(--default-clickable-area);min-height:var(--default-clickable-area);line-height:var(--default-clickable-area);margin-block-end:12px}.dialog__content[data-v-cf1c45bf]{flex:1;min-height:0;overflow:auto}.dialog__actions[data-v-cf1c45bf]{display:flex;gap:6px;align-content:center;width:fit-content;margin-inline:auto 4px;margin-block:6px 4px}.material-design-icon[data-v-5162e6df]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.app-settings-section[data-v-5162e6df]{margin-bottom:80px}.app-settings-section__name[data-v-5162e6df]{font-size:20px;margin:0;padding:20px 0;font-weight:700;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.material-design-icon[data-v-c682268d]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.app-sidebar-tabs[data-v-c682268d]{display:flex;flex-direction:column;min-height:0;flex:1 1 100%}.app-sidebar-tabs__nav[data-v-c682268d]{display:flex;justify-content:stretch;margin-top:10px;padding:0 4px}.app-sidebar-tabs__tab[data-v-c682268d]{flex:1 1}.app-sidebar-tabs__tab.active[data-v-c682268d]{color:var(--color-primary-element)}.app-sidebar-tabs__tab-caption[data-v-c682268d]{flex:0 1 100%;width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:center}.app-sidebar-tabs__tab-icon[data-v-c682268d]{display:flex;align-items:center;justify-content:center;background-size:20px}.app-sidebar-tabs__tab[data-v-c682268d] .checkbox-radio-switch__content{max-width:unset}.app-sidebar-tabs__content[data-v-c682268d]{position:relative;min-height:0;height:100%}.app-sidebar-tabs__content--multiple[data-v-c682268d]>:not(section){display:none}[data-v-c682268d] .checkbox-radio-switch--button-variant.checkbox-radio-switch{border:unset}.material-design-icon[data-v-90858b97]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.app-sidebar[data-v-90858b97]{z-index:1500;top:0;right:0;display:flex;overflow-x:hidden;overflow-y:auto;flex-direction:column;flex-shrink:0;width:27vw;min-width:300px;max-width:500px;height:100%;border-left:1px solid var(--color-border);background:var(--color-main-background)}.app-sidebar .app-sidebar-header>.app-sidebar__close[data-v-90858b97]{position:absolute;z-index:100;top:6px;right:6px;width:44px;height:44px;opacity:.7;border-radius:22px}.app-sidebar .app-sidebar-header>.app-sidebar__close[data-v-90858b97]:hover,.app-sidebar .app-sidebar-header>.app-sidebar__close[data-v-90858b97]:active,.app-sidebar .app-sidebar-header>.app-sidebar__close[data-v-90858b97]:focus{opacity:1;background-color:#7f7f7f40}.app-sidebar .app-sidebar-header--compact.app-sidebar-header--with-figure .app-sidebar-header__info[data-v-90858b97]{flex-direction:row}.app-sidebar .app-sidebar-header--compact.app-sidebar-header--with-figure .app-sidebar-header__info .app-sidebar-header__figure[data-v-90858b97]{z-index:2;width:70px;height:70px;margin:9px;border-radius:3px;flex:0 0 auto}.app-sidebar .app-sidebar-header--compact.app-sidebar-header--with-figure .app-sidebar-header__info .app-sidebar-header__desc[data-v-90858b97]{padding-left:0;flex:1 1 auto;min-width:0;padding-right:94px;padding-top:10px}.app-sidebar .app-sidebar-header--compact.app-sidebar-header--with-figure .app-sidebar-header__info .app-sidebar-header__desc.app-sidebar-header__desc--without-actions[data-v-90858b97]{padding-right:50px}.app-sidebar .app-sidebar-header--compact.app-sidebar-header--with-figure .app-sidebar-header__info .app-sidebar-header__desc .app-sidebar-header__tertiary-actions[data-v-90858b97]{z-index:3;position:absolute;top:9px;left:-44px;gap:0}.app-sidebar .app-sidebar-header--compact.app-sidebar-header--with-figure .app-sidebar-header__info .app-sidebar-header__desc .app-sidebar-header__menu[data-v-90858b97]{top:6px;right:50px;background-color:transparent;position:absolute}.app-sidebar .app-sidebar-header:not(.app-sidebar-header--with-figure) .app-sidebar-header__menu[data-v-90858b97]{position:absolute;top:6px;right:50px}.app-sidebar .app-sidebar-header:not(.app-sidebar-header--with-figure) .app-sidebar-header__desc[data-v-90858b97]{padding-right:94px}.app-sidebar .app-sidebar-header:not(.app-sidebar-header--with-figure) .app-sidebar-header__desc.app-sidebar-header__desc--without-actions[data-v-90858b97]{padding-right:50px}.app-sidebar .app-sidebar-header .app-sidebar-header__info[data-v-90858b97]{display:flex;flex-direction:column}.app-sidebar .app-sidebar-header__figure[data-v-90858b97]{width:100%;height:250px;max-height:250px;background-repeat:no-repeat;background-position:center;background-size:contain}.app-sidebar .app-sidebar-header__figure--with-action[data-v-90858b97]{cursor:pointer}.app-sidebar .app-sidebar-header__desc[data-v-90858b97]{position:relative;display:flex;flex-direction:row;justify-content:center;align-items:center;padding:18px 6px 18px 9px;gap:0 4px}.app-sidebar .app-sidebar-header__desc--with-tertiary-action[data-v-90858b97]{padding-left:6px}.app-sidebar .app-sidebar-header__desc--editable .app-sidebar-header__mainname-form[data-v-90858b97],.app-sidebar .app-sidebar-header__desc--with-subname--editable .app-sidebar-header__mainname-form[data-v-90858b97]{margin-top:-2px;margin-bottom:-2px}.app-sidebar .app-sidebar-header__desc--with-subname--editable .app-sidebar-header__subname[data-v-90858b97]{margin-top:-2px}.app-sidebar .app-sidebar-header__desc .app-sidebar-header__tertiary-actions[data-v-90858b97]{display:flex;height:44px;width:44px;justify-content:center;flex:0 0 auto}.app-sidebar .app-sidebar-header__desc .app-sidebar-header__tertiary-actions .app-sidebar-header__star[data-v-90858b97]{box-shadow:none}.app-sidebar .app-sidebar-header__desc .app-sidebar-header__tertiary-actions .app-sidebar-header__star[data-v-90858b97]:not([aria-pressed=true]):hover{box-shadow:none;background-color:var(--color-background-hover)}.app-sidebar .app-sidebar-header__desc .app-sidebar-header__name-container[data-v-90858b97]{flex:1 1 auto;display:flex;flex-direction:column;justify-content:center;min-width:0}.app-sidebar .app-sidebar-header__desc .app-sidebar-header__name-container .app-sidebar-header__mainname-container[data-v-90858b97]{display:flex;align-items:center;min-height:44px}.app-sidebar .app-sidebar-header__desc .app-sidebar-header__name-container .app-sidebar-header__mainname-container .app-sidebar-header__mainname[data-v-90858b97]{padding:0;min-height:30px;font-size:20px;line-height:30px}.app-sidebar .app-sidebar-header__desc .app-sidebar-header__name-container .app-sidebar-header__mainname-container .app-sidebar-header__mainname[data-v-90858b97] .linkified{cursor:pointer;text-decoration:underline;margin:0}.app-sidebar .app-sidebar-header__desc .app-sidebar-header__name-container .app-sidebar-header__mainname-container .app-sidebar-header__mainname-form[data-v-90858b97]{display:flex;flex:1 1 auto;align-items:center}.app-sidebar .app-sidebar-header__desc .app-sidebar-header__name-container .app-sidebar-header__mainname-container .app-sidebar-header__mainname-form input.app-sidebar-header__mainname-input[data-v-90858b97]{flex:1 1 auto;margin:0;padding:7px;font-size:20px;font-weight:700}.app-sidebar .app-sidebar-header__desc .app-sidebar-header__name-container .app-sidebar-header__mainname-container .app-sidebar-header__menu[data-v-90858b97]{height:44px;width:44px;border-radius:22px;background-color:#7f7f7f40;margin-left:5px}.app-sidebar .app-sidebar-header__desc .app-sidebar-header__name-container .app-sidebar-header__mainname[data-v-90858b97],.app-sidebar .app-sidebar-header__desc .app-sidebar-header__name-container .app-sidebar-header__subname[data-v-90858b97]{overflow:hidden;width:100%;margin:0;white-space:nowrap;text-overflow:ellipsis}.app-sidebar .app-sidebar-header__desc .app-sidebar-header__name-container .app-sidebar-header__subname[data-v-90858b97]{padding:0;opacity:.7;font-size:var(--default-font-size)}.app-sidebar .app-sidebar-header__description[data-v-90858b97]{display:flex;align-items:center;margin:0 10px}@media only screen and (max-width: 768px){.app-sidebar[data-v-90858b97]{width:100vw;max-width:100vw}}.slide-right-leave-active[data-v-90858b97],.slide-right-enter-active[data-v-90858b97]{transition-duration:var(--animation-quick);transition-property:max-width,min-width}.slide-right-enter-to[data-v-90858b97],.slide-right-leave[data-v-90858b97]{min-width:300px;max-width:500px}.slide-right-enter[data-v-90858b97],.slide-right-leave-to[data-v-90858b97]{min-width:0!important;max-width:0!important}.app-sidebar-header__description button,.app-sidebar-header__description .button,.app-sidebar-header__description input[type=button],.app-sidebar-header__description input[type=submit],.app-sidebar-header__description input[type=reset]{padding:6px 22px}.material-design-icon[data-v-95b458cc]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.app-sidebar__tab[data-v-95b458cc]{display:none;padding:10px;min-height:100%;max-height:100%;height:100%;overflow:auto}.app-sidebar__tab[data-v-95b458cc]:focus{border-color:var(--color-primary-element);box-shadow:0 0 .2em var(--color-primary-element);outline:0}.app-sidebar__tab--active[data-v-95b458cc]{display:block}.material-design-icon[data-v-2e235682]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.vue-crumb[data-v-2e235682]{background-image:none;display:inline-flex;height:44px;padding:0}.vue-crumb[data-v-2e235682]:last-child{max-width:210px;font-weight:700}.vue-crumb:last-child .vue-crumb__separator[data-v-2e235682]{display:none}.vue-crumb>a[data-v-2e235682]:hover,.vue-crumb>a[data-v-2e235682]:focus{background-color:var(--color-background-dark);color:var(--color-main-text)}.vue-crumb--hidden[data-v-2e235682]{display:none}.vue-crumb.vue-crumb--hovered>a[data-v-2e235682]{background-color:var(--color-background-dark);color:var(--color-main-text)}.vue-crumb__separator[data-v-2e235682]{padding:0;color:var(--color-text-maxcontrast)}.vue-crumb>a[data-v-2e235682]{overflow:hidden;color:var(--color-text-maxcontrast);padding:12px;min-width:44px;max-width:100%;border-radius:var(--border-radius-pill);align-items:center;display:inline-flex;justify-content:center}.vue-crumb>a>span[data-v-2e235682]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vue-crumb[data-v-2e235682]:not(.dropdown) .action-item{max-width:100%}.vue-crumb[data-v-2e235682]:not(.dropdown) .action-item .button-vue{padding:0 4px 0 16px}.vue-crumb[data-v-2e235682]:not(.dropdown) .action-item .button-vue__wrapper{flex-direction:row-reverse}.vue-crumb[data-v-2e235682]:not(.dropdown) .action-item.action-item--open .action-item__menutoggle{background-color:var(--color-background-dark);color:var(--color-main-text)}.material-design-icon[data-v-acf0dd35]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.breadcrumb[data-v-acf0dd35]{width:100%;flex-grow:1;display:inline-flex;align-items:center}.breadcrumb--collapsed[data-v-acf0dd35] .vue-crumb:last-child{min-width:100px;flex-shrink:1}.breadcrumb nav[data-v-acf0dd35]{flex-shrink:1;min-width:0}.breadcrumb .breadcrumb__crumbs[data-v-acf0dd35]{max-width:100%}.breadcrumb .breadcrumb__crumbs[data-v-acf0dd35],.breadcrumb .breadcrumb__actions[data-v-acf0dd35]{display:inline-flex}.material-design-icon[data-v-c959ec5a]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.color-picker[data-v-c959ec5a]{display:flex;overflow:hidden;align-content:flex-end;flex-direction:column;justify-content:space-between;box-sizing:content-box!important;width:176px;padding:8px;border-radius:3px}.color-picker--advanced-fields[data-v-c959ec5a]{width:264px}.color-picker__simple[data-v-c959ec5a]{display:grid;grid-template-columns:repeat(auto-fit,44px);grid-auto-rows:44px}.color-picker__simple-color-circle[data-v-c959ec5a]{display:flex;align-items:center;justify-content:center;width:34px;height:34px;min-height:34px;margin:auto;padding:0;color:#fff;border:1px solid rgba(0,0,0,.25);border-radius:50%;font-size:16px}.color-picker__simple-color-circle[data-v-c959ec5a]:hover{opacity:.6}.color-picker__simple-color-circle--active[data-v-c959ec5a]{width:38px;height:38px;min-height:38px;transition:all .1s ease-in-out;opacity:1!important}.color-picker__advanced[data-v-c959ec5a]{box-shadow:none!important}.color-picker__navigation[data-v-c959ec5a]{display:flex;flex-direction:row;justify-content:space-between;margin-top:10px}[data-v-c959ec5a] .vc-chrome{width:unset;background-color:var(--color-main-background)}[data-v-c959ec5a] .vc-chrome-color-wrap{width:30px;height:30px}[data-v-c959ec5a] .vc-chrome-active-color{width:34px;height:34px;border-radius:17px}[data-v-c959ec5a] .vc-chrome-body{padding:14px 0 0;background-color:var(--color-main-background)}[data-v-c959ec5a] .vc-chrome-body .vc-input__input{box-shadow:none}[data-v-c959ec5a] .vc-chrome-toggle-btn{filter:var(--background-invert-if-dark)}[data-v-c959ec5a] .vc-chrome-saturation-wrap{border-radius:3px}[data-v-c959ec5a] .vc-chrome-saturation-circle{width:20px;height:20px}.slide-enter[data-v-c959ec5a]{transform:translate(-50%);opacity:0}.slide-enter-to[data-v-c959ec5a],.slide-leave[data-v-c959ec5a]{transform:translate(0);opacity:1}.slide-leave-to[data-v-c959ec5a]{transform:translate(-50%);opacity:0}.slide-enter-active[data-v-c959ec5a],.slide-leave-active[data-v-c959ec5a]{transition:all 50ms ease-in-out}.material-design-icon[data-v-d96bcd79]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.counter-bubble__counter[data-v-d96bcd79]{font-size:calc(var(--default-font-size) * .8);overflow:hidden;width:fit-content;max-width:44px;text-align:center;text-overflow:ellipsis;line-height:1em;padding:4px 6px;border-radius:var(--border-radius-pill);background-color:var(--color-primary-element-light);font-weight:700;color:var(--color-primary-element-light-text)}.counter-bubble__counter .active[data-v-d96bcd79]{color:var(--color-main-background);background-color:var(--color-primary-element-light)}.counter-bubble__counter--highlighted[data-v-d96bcd79]{color:var(--color-primary-element-text);background-color:var(--color-primary-element)}.counter-bubble__counter--highlighted[data-v-d96bcd79],.counter-bubble__counter .active[data-v-d96bcd79]{color:var(--color-primary-element);background-color:var(--color-main-background)}.counter-bubble__counter--outlined[data-v-d96bcd79]{color:var(--color-primary-element);background:transparent;box-shadow:inset 0 0 0 2px}.counter-bubble__counter--outlined[data-v-d96bcd79],.counter-bubble__counter .active[data-v-d96bcd79]{color:var(--color-main-background);box-shadow:inset 0 0 0 2px}.material-design-icon[data-v-1efcbeee]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.dashboard-widget[data-v-1efcbeee] .empty-content{text-align:center;padding-top:5vh}.dashboard-widget[data-v-1efcbeee] .empty-content.half-screen{padding-top:0;margin-bottom:1vh}.more[data-v-1efcbeee]{display:block;text-align:center;color:var(--color-text-maxcontrast);line-height:60px;cursor:pointer}.more[data-v-1efcbeee]:hover,.more[data-v-1efcbeee]:focus{background-color:var(--color-background-hover);border-radius:var(--border-radius-large);color:var(--color-main-text)}.item-list__entry[data-v-1efcbeee]{display:flex;align-items:flex-start;padding:8px}.item-list__entry .item-avatar[data-v-1efcbeee]{position:relative;margin-top:auto;margin-bottom:auto;background-color:var(--color-background-dark)!important}.item-list__entry .item__details[data-v-1efcbeee]{padding-left:8px;max-height:44px;flex-grow:1;overflow:hidden;display:flex;flex-direction:column}.item-list__entry .item__details h3[data-v-1efcbeee],.item-list__entry .item__details .message[data-v-1efcbeee]{white-space:nowrap;background-color:var(--color-background-dark)}.item-list__entry .item__details h3[data-v-1efcbeee]{font-size:100%;margin:0}.item-list__entry .item__details .message[data-v-1efcbeee]{width:80%;height:15px;margin-top:5px}.material-design-icon[data-v-00e861ef]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.item-list__entry[data-v-00e861ef]{display:flex;align-items:flex-start;position:relative;padding:8px}.item-list__entry[data-v-00e861ef]:hover,.item-list__entry[data-v-00e861ef]:focus{background-color:var(--color-background-hover);border-radius:var(--border-radius-large)}.item-list__entry .item-avatar[data-v-00e861ef]{position:relative;margin-top:auto;margin-bottom:auto}.item-list__entry .item__details[data-v-00e861ef]{padding-left:8px;max-height:44px;flex-grow:1;overflow:hidden;display:flex;flex-direction:column}.item-list__entry .item__details h3[data-v-00e861ef],.item-list__entry .item__details .message[data-v-00e861ef]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.item-list__entry .item__details .message span[data-v-00e861ef]{width:10px;display:inline-block;margin-bottom:-3px}.item-list__entry .item__details h3[data-v-00e861ef]{font-size:100%;margin:0}.item-list__entry .item__details .message[data-v-00e861ef]{width:100%;color:var(--color-text-maxcontrast)}.item-list__entry .item-icon[data-v-00e861ef]{position:relative;width:14px;height:14px;margin:27px -3px 0 -7px}.item-list__entry button.primary[data-v-00e861ef]{padding:21px;margin:0}.emoji-mart,.emoji-mart *{box-sizing:border-box;line-height:1.15}.emoji-mart{font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,sans-serif;font-size:16px;display:flex;flex-direction:column;height:420px;color:#222427;border:1px solid #d9d9d9;border-radius:5px;background:#fff}.emoji-mart-emoji{padding:6px;position:relative;display:inline-block;font-size:0;border:none;background:none;box-shadow:none}.emoji-mart-emoji span{display:inline-block}.emoji-mart-preview-emoji .emoji-mart-emoji span{width:38px;height:38px;font-size:32px}.emoji-type-native{font-family:"Segoe UI Emoji",Segoe UI Symbol,Segoe UI,"Apple Color Emoji",Twemoji Mozilla,"Noto Color Emoji",EmojiOne Color,"Android Emoji";word-break:keep-all}.emoji-type-image{background-size:6100%}.emoji-type-image.emoji-set-apple{background-image:url(https://unpkg.com/emoji-datasource-apple@15.0.1/img/apple/sheets-256/64.png)}.emoji-type-image.emoji-set-facebook{background-image:url(https://unpkg.com/emoji-datasource-facebook@15.0.1/img/facebook/sheets-256/64.png)}.emoji-type-image.emoji-set-google{background-image:url(https://unpkg.com/emoji-datasource-google@15.0.1/img/google/sheets-256/64.png)}.emoji-type-image.emoji-set-twitter{background-image:url(https://unpkg.com/emoji-datasource-twitter@15.0.1/img/twitter/sheets-256/64.png)}.emoji-mart-bar{border:0 solid #d9d9d9}.emoji-mart-bar:first-child{border-bottom-width:1px;border-top-left-radius:5px;border-top-right-radius:5px}.emoji-mart-bar:last-child{border-top-width:1px;border-bottom-left-radius:5px;border-bottom-right-radius:5px}.emoji-mart-scroll{position:relative;overflow-y:scroll;flex:1;padding:0 6px 6px;z-index:0;will-change:transform;-webkit-overflow-scrolling:touch}.emoji-mart-anchors{display:flex;flex-direction:row;justify-content:space-between;padding:0 6px;color:#858585;line-height:0}.emoji-mart-anchor{position:relative;display:block;flex:1 1 auto;text-align:center;padding:12px 4px;overflow:hidden;transition:color .1s ease-out;border:none;background:none;box-shadow:none}.emoji-mart-anchor:hover,.emoji-mart-anchor-selected{color:#464646}.emoji-mart-anchor-selected .emoji-mart-anchor-bar{bottom:0}.emoji-mart-anchor-bar{position:absolute;bottom:-3px;left:0;width:100%;height:3px;background-color:#464646}.emoji-mart-anchors i{display:inline-block;width:100%;max-width:22px}.emoji-mart-anchors svg{fill:currentColor;max-height:18px}.emoji-mart .scroller{height:250px;position:relative;flex:1;padding:0 6px 6px;z-index:0;will-change:transform;-webkit-overflow-scrolling:touch}.emoji-mart-search{margin-top:6px;padding:0 6px}.emoji-mart-search input{font-size:16px;display:block;width:100%;padding:.2em .6em;border-radius:25px;border:1px solid #d9d9d9;outline:0}.emoji-mart-search-results{height:250px;overflow-y:scroll}.emoji-mart-category{position:relative}.emoji-mart-category .emoji-mart-emoji span{z-index:1;position:relative;text-align:center;cursor:default}.emoji-mart-category .emoji-mart-emoji:hover:before,.emoji-mart-emoji-selected:before{z-index:0;content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:#f4f4f4;border-radius:100%;opacity:0}.emoji-mart-category .emoji-mart-emoji:hover:before,.emoji-mart-emoji-selected:before{opacity:1}.emoji-mart-category-label{position:-webkit-sticky;position:sticky;top:0}.emoji-mart-static .emoji-mart-category-label{z-index:2;position:relative}.emoji-mart-category-label h3{display:block;font-size:16px;width:100%;font-weight:500;padding:5px 6px;background-color:#fff;background-color:#fffffff2}.emoji-mart-emoji{position:relative;display:inline-block;font-size:0}.emoji-mart-no-results{font-size:14px;text-align:center;padding-top:70px;color:#858585}.emoji-mart-no-results .emoji-mart-category-label{display:none}.emoji-mart-no-results .emoji-mart-no-results-label{margin-top:.2em}.emoji-mart-no-results .emoji-mart-emoji:hover:before{content:none}.emoji-mart-preview{position:relative;height:70px}.emoji-mart-preview-emoji,.emoji-mart-preview-data,.emoji-mart-preview-skins{position:absolute;top:50%;transform:translateY(-50%)}.emoji-mart-preview-emoji{left:12px}.emoji-mart-preview-data{left:68px;right:12px;word-break:break-all}.emoji-mart-preview-skins{right:30px;text-align:right}.emoji-mart-preview-name{font-size:14px}.emoji-mart-preview-shortname{font-size:12px;color:#888}.emoji-mart-preview-shortname+.emoji-mart-preview-shortname,.emoji-mart-preview-shortname+.emoji-mart-preview-emoticon,.emoji-mart-preview-emoticon+.emoji-mart-preview-emoticon{margin-left:.5em}.emoji-mart-preview-emoticon{font-size:11px;color:#bbb}.emoji-mart-title span{display:inline-block;vertical-align:middle}.emoji-mart-title .emoji-mart-emoji{padding:0}.emoji-mart-title-label{color:#999a9c;font-size:21px;font-weight:300}.emoji-mart-skin-swatches{font-size:0;padding:2px 0;border:1px solid #d9d9d9;border-radius:12px;background-color:#fff}.emoji-mart-skin-swatches-opened .emoji-mart-skin-swatch{width:16px;padding:0 2px}.emoji-mart-skin-swatches-opened .emoji-mart-skin-swatch-selected:after{opacity:.75}.emoji-mart-skin-swatch{display:inline-block;width:0;vertical-align:middle;transition-property:width,padding;transition-duration:.125s;transition-timing-function:ease-out}.emoji-mart-skin-swatch:nth-child(1){transition-delay:0s}.emoji-mart-skin-swatch:nth-child(2){transition-delay:.03s}.emoji-mart-skin-swatch:nth-child(3){transition-delay:.06s}.emoji-mart-skin-swatch:nth-child(4){transition-delay:.09s}.emoji-mart-skin-swatch:nth-child(5){transition-delay:.12s}.emoji-mart-skin-swatch:nth-child(6){transition-delay:.15s}.emoji-mart-skin-swatch-selected{position:relative;width:16px;padding:0 2px}.emoji-mart-skin-swatch-selected:after{content:"";position:absolute;top:50%;left:50%;width:4px;height:4px;margin:-2px 0 0 -2px;background-color:#fff;border-radius:100%;pointer-events:none;opacity:0;transition:opacity .2s ease-out}.emoji-mart-skin{display:inline-block;width:100%;padding-top:100%;max-width:12px;border-radius:100%}.emoji-mart-skin-tone-1{background-color:#ffc93a}.emoji-mart-skin-tone-2{background-color:#fadcbc}.emoji-mart-skin-tone-3{background-color:#e0bb95}.emoji-mart-skin-tone-4{background-color:#bf8f68}.emoji-mart-skin-tone-5{background-color:#9b643d}.emoji-mart-skin-tone-6{background-color:#594539}.emoji-mart .vue-recycle-scroller{position:relative}.emoji-mart .vue-recycle-scroller.direction-vertical:not(.page-mode){overflow-y:auto}.emoji-mart .vue-recycle-scroller.direction-horizontal:not(.page-mode){overflow-x:auto}.emoji-mart .vue-recycle-scroller.direction-horizontal{display:flex}.emoji-mart .vue-recycle-scroller__slot{flex:auto 0 0}.emoji-mart .vue-recycle-scroller__item-wrapper{flex:1;box-sizing:border-box;overflow:hidden;position:relative}.emoji-mart .vue-recycle-scroller.ready .vue-recycle-scroller__item-view{position:absolute;top:0;left:0;will-change:transform}.emoji-mart .vue-recycle-scroller.direction-vertical .vue-recycle-scroller__item-wrapper{width:100%}.emoji-mart .vue-recycle-scroller.direction-horizontal .vue-recycle-scroller__item-wrapper{height:100%}.emoji-mart .vue-recycle-scroller.ready.direction-vertical .vue-recycle-scroller__item-view{width:100%}.emoji-mart .vue-recycle-scroller.ready.direction-horizontal .vue-recycle-scroller__item-view{height:100%}.emoji-mart .resize-observer[data-v-b329ee4c]{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;border:none;background-color:transparent;pointer-events:none;display:block;overflow:hidden;opacity:0}.emoji-mart .resize-observer[data-v-b329ee4c] object{display:block;position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1}.emoji-mart-search .hidden{display:none;visibility:hidden}.emoji-mart{background-color:var(--color-main-background)!important;border:0;color:var(--color-main-text)!important}.emoji-mart button{margin:0;padding:0;border:none;background:transparent;font-size:inherit;height:36px;width:auto}.emoji-mart button *{cursor:pointer!important}.emoji-mart .emoji-mart-bar,.emoji-mart .emoji-mart-anchors,.emoji-mart .emoji-mart-search,.emoji-mart .emoji-mart-search input,.emoji-mart .emoji-mart-category,.emoji-mart .emoji-mart-category-label,.emoji-mart .emoji-mart-category-label span,.emoji-mart .emoji-mart-skin-swatches{background-color:transparent!important;border-color:var(--color-border)!important;color:inherit!important}.emoji-mart .emoji-mart-search input:focus-visible{box-shadow:inset 0 0 0 2px var(--color-primary-element);outline:none}.emoji-mart .emoji-mart-bar:first-child{border-top-left-radius:var(--border-radius)!important;border-top-right-radius:var(--border-radius)!important}.emoji-mart .emoji-mart-anchors button{border-radius:0;padding:12px 4px;height:auto}.emoji-mart .emoji-mart-anchors button:focus-visible{outline:2px solid var(--color-primary-element)}.emoji-mart .emoji-mart-category{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:start}.emoji-mart .emoji-mart-category .emoji-mart-category-label,.emoji-mart .emoji-mart-category .emoji-mart-emoji{-webkit-user-select:none;user-select:none;flex-grow:0;flex-shrink:0}.emoji-mart .emoji-mart-category .emoji-mart-category-label{flex-basis:100%;margin:0}.emoji-mart .emoji-mart-category .emoji-mart-emoji{flex-basis:12.5%;text-align:center}.emoji-mart .emoji-mart-category .emoji-mart-emoji:hover:before,.emoji-mart .emoji-mart-category .emoji-mart-emoji.emoji-mart-emoji-selected:before{background-color:var(--color-background-hover)!important;outline:2px solid var(--color-primary-element)}.emoji-mart .emoji-mart-category button:focus-visible{background-color:var(--color-background-hover);border:2px solid var(--color-primary-element)!important;border-radius:50%}.search{padding:4px 8px}.row-selected span[data-v-4d56e499],.row-selected button[data-v-4d56e499]{vertical-align:middle}.emoji-delete[data-v-4d56e499]{vertical-align:top;margin-left:-21px;margin-top:-3px}.material-design-icon[data-v-36ad47ca]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}#guest-content-vue[data-v-36ad47ca]{color:var(--color-main-text);background-color:var(--color-main-background);min-width:0;border-radius:var(--border-radius-large);box-shadow:0 0 10px var(--color-box-shadow);height:fit-content;padding:15px;margin:20px auto}#content.nc-guest-content{overflow:auto;margin-bottom:0;height:calc(var(--body-height) + var(--body-container-margin))}.material-design-icon[data-v-d93df21d]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.header-menu[data-v-d93df21d]{position:relative;width:var(--header-height);height:var(--header-height)}.header-menu__trigger[data-v-d93df21d]{display:flex;align-items:center;justify-content:center;width:var(--header-height);height:var(--header-height);margin:0;padding:0;cursor:pointer;opacity:.85;background-color:transparent;border:none;filter:none!important;color:var(--color-primary-text)!important}.header-menu--opened .header-menu__trigger[data-v-d93df21d],.header-menu__trigger[data-v-d93df21d]:hover,.header-menu__trigger[data-v-d93df21d]:focus,.header-menu__trigger[data-v-d93df21d]:active{opacity:1}.header-menu__trigger[data-v-d93df21d]:focus-visible{outline:none}.header-menu__wrapper[data-v-d93df21d]{position:fixed;z-index:2000;top:50px;right:0;box-sizing:border-box;margin:0 8px;padding:8px;border-radius:0 0 var(--border-radius) var(--border-radius);border-radius:var(--border-radius-large);background-color:var(--color-main-background);filter:drop-shadow(0 1px 5px var(--color-box-shadow))}.header-menu__carret[data-v-d93df21d]{position:absolute;z-index:2001;bottom:0;left:calc(50% - 10px);width:0;height:0;content:" ";pointer-events:none;border:10px solid transparent;border-bottom-color:var(--color-main-background)}.header-menu__content[data-v-d93df21d]{overflow:auto;width:350px;max-width:calc(100vw - 16px);min-height:66px;max-height:calc(100vh - 100px)}.header-menu__content[data-v-d93df21d] .empty-content{margin:12vh 10px}@media only screen and (max-width: 512px){.header-menu[data-v-d93df21d],.header-menu__trigger[data-v-d93df21d]{width:44px}}.material-design-icon[data-v-9db3a32a]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.list-item__wrapper[data-v-9db3a32a]{position:relative;width:100%}.list-item__wrapper--active .list-item[data-v-9db3a32a],.list-item__wrapper:active .list-item[data-v-9db3a32a],.list-item__wrapper.active .list-item[data-v-9db3a32a]{background-color:var(--color-primary-element)}.list-item__wrapper--active .list-item[data-v-9db3a32a]:active,.list-item__wrapper--active .list-item[data-v-9db3a32a]:hover,.list-item__wrapper--active .list-item[data-v-9db3a32a]:focus,.list-item__wrapper--active .list-item[data-v-9db3a32a]:focus-visible,.list-item__wrapper:active .list-item[data-v-9db3a32a]:active,.list-item__wrapper:active .list-item[data-v-9db3a32a]:hover,.list-item__wrapper:active .list-item[data-v-9db3a32a]:focus,.list-item__wrapper:active .list-item[data-v-9db3a32a]:focus-visible,.list-item__wrapper.active .list-item[data-v-9db3a32a]:active,.list-item__wrapper.active .list-item[data-v-9db3a32a]:hover,.list-item__wrapper.active .list-item[data-v-9db3a32a]:focus,.list-item__wrapper.active .list-item[data-v-9db3a32a]:focus-visible{background-color:var(--color-primary-element-hover)}.list-item__wrapper--active .line-one__name[data-v-9db3a32a],.list-item__wrapper--active .line-one__details[data-v-9db3a32a],.list-item__wrapper:active .line-one__name[data-v-9db3a32a],.list-item__wrapper:active .line-one__details[data-v-9db3a32a],.list-item__wrapper.active .line-one__name[data-v-9db3a32a],.list-item__wrapper.active .line-one__details[data-v-9db3a32a],.list-item__wrapper--active .line-two__subname[data-v-9db3a32a],.list-item__wrapper:active .line-two__subname[data-v-9db3a32a],.list-item__wrapper.active .line-two__subname[data-v-9db3a32a]{color:var(--color-primary-element-text)!important}.list-item[data-v-9db3a32a]{display:block;position:relative;flex:0 0 auto;justify-content:flex-start;padding:8px 10px;border-radius:32px;margin:2px 0;width:100%;cursor:pointer;transition:background-color var(--animation-quick) ease-in-out;list-style:none}.list-item[data-v-9db3a32a]:active,.list-item[data-v-9db3a32a]:hover,.list-item[data-v-9db3a32a]:focus,.list-item[data-v-9db3a32a]:focus-visible{background-color:var(--color-background-hover)}.list-item-content__wrapper[data-v-9db3a32a]{display:flex;align-items:center;height:48px}.list-item-content__wrapper--compact[data-v-9db3a32a]{height:36px}.list-item-content__wrapper--compact .line-one[data-v-9db3a32a],.list-item-content__wrapper--compact .line-two[data-v-9db3a32a]{margin-top:-4px;margin-bottom:-4px}.list-item-content[data-v-9db3a32a]{display:flex;flex:1 1 auto;justify-content:space-between;padding-left:8px}.list-item-content__main[data-v-9db3a32a]{flex:1 1 auto;width:0;margin:auto 0}.list-item-content__main--oneline[data-v-9db3a32a]{display:flex}.list-item-content__actions[data-v-9db3a32a]{flex:0 0 auto;align-self:center;justify-content:center;margin-left:4px}.list-item__extra[data-v-9db3a32a]{margin-top:4px}.line-one[data-v-9db3a32a]{display:flex;align-items:center;justify-content:space-between;white-space:nowrap;margin:0 auto 0 0;overflow:hidden}.line-one__name[data-v-9db3a32a]{overflow:hidden;flex-grow:1;cursor:pointer;text-overflow:ellipsis;color:var(--color-main-text);font-weight:700}.line-one__details[data-v-9db3a32a]{color:var(--color-text-maxcontrast);margin:0 8px;font-weight:400}.line-two[data-v-9db3a32a]{display:flex;align-items:flex-start;justify-content:space-between;white-space:nowrap}.line-two--bold[data-v-9db3a32a]{font-weight:700}.line-two__subname[data-v-9db3a32a]{overflow:hidden;flex-grow:1;cursor:pointer;white-space:nowrap;text-overflow:ellipsis;color:var(--color-text-maxcontrast)}.line-two__additional_elements[data-v-9db3a32a]{margin:2px 4px 0;display:flex;align-items:center}.line-two__indicator[data-v-9db3a32a]{margin:0 5px}.material-design-icon[data-v-3a409988]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.notecard[data-v-3a409988]{color:var(--color-main-text)!important;background-color:var(--note-background)!important;border-inline-start:4px solid var(--note-theme);border-radius:var(--border-radius);margin:1rem 0;padding:1rem;display:flex;flex-direction:row;gap:1rem}.notecard__icon--heading[data-v-3a409988]{margin-bottom:auto;margin-top:.3rem}.notecard--success[data-v-3a409988]{--note-background: rgba(var(--color-success-rgb), .1);--note-theme: var(--color-success)}.notecard--info[data-v-3a409988]{--note-background: rgba(var(--color-info-rgb), .1);--note-theme: var(--color-info)}.notecard--error[data-v-3a409988]{--note-background: rgba(var(--color-error-rgb), .1);--note-theme: var(--color-error)}.notecard--warning[data-v-3a409988]{--note-background: rgba(var(--color-warning-rgb), .1);--note-theme: var(--color-warning)}.material-design-icon[data-v-b171a315]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.progress-bar[data-v-b171a315]{display:block;height:var(--progress-bar-height);width:100%;overflow:hidden;border:0;padding:0;background:var(--color-background-dark);border-radius:calc(var(--progress-bar-height) / 2)}.progress-bar[data-v-b171a315]::-webkit-progress-bar{height:var(--progress-bar-height);background-color:transparent}.progress-bar[data-v-b171a315]::-webkit-progress-value{background:var(--gradient-primary-background);border-radius:calc(var(--progress-bar-height) / 2)}.progress-bar[data-v-b171a315]::-moz-progress-bar{background:var(--gradient-primary-background);border-radius:calc(var(--progress-bar-height) / 2)}.progress-bar--error[data-v-b171a315]::-moz-progress-bar{background:var(--color-error)!important}.progress-bar--error[data-v-b171a315]::-webkit-progress-value{background:var(--color-error)!important}.material-design-icon[data-v-1a960bef]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.resource[data-v-1a960bef]{display:flex;align-items:center;height:44px}.resource__button[data-v-1a960bef]{width:100%!important;justify-content:flex-start!important;padding:0!important}.resource__button[data-v-1a960bef] .button-vue__wrapper{justify-content:flex-start!important}.resource__button[data-v-1a960bef] .button-vue__wrapper .button-vue__text{font-weight:400!important;margin-left:2px!important}.resource__icon[data-v-1a960bef]{width:32px;height:32px;background-color:var(--color-text-maxcontrast);border-radius:50%;display:flex;align-items:center;justify-content:center}.resource__icon img[data-v-1a960bef]{width:16px;height:16px;filter:var(--background-invert-if-dark)}.material-design-icon[data-v-19300848]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.related-resources__header[data-v-19300848]{margin:0 0 10px 46px}.related-resources__header h5[data-v-19300848]{font-weight:700}.related-resources__header p[data-v-19300848]{color:var(--color-text-maxcontrast)}.material-design-icon[data-v-25cf09d8]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.autocomplete-result[data-v-25cf09d8]{display:flex;height:44px;padding:10px}.highlight .autocomplete-result[data-v-25cf09d8]{color:var(--color-primary-element-light-text);background:var(--color-primary-element-light)}.highlight .autocomplete-result[data-v-25cf09d8],.highlight .autocomplete-result *[data-v-25cf09d8]{cursor:pointer}.autocomplete-result__icon[data-v-25cf09d8]{position:relative;flex:0 0 44px;width:44px;min-width:44px;height:44px;border-radius:44px;background-color:var(--color-background-darker);background-repeat:no-repeat;background-position:center;background-size:24px}.autocomplete-result__icon--with-avatar[data-v-25cf09d8]{color:inherit;background-size:cover}.autocomplete-result__status[data-v-25cf09d8]{position:absolute;right:-4px;bottom:-4px;box-sizing:border-box;width:18px;height:18px;border:2px solid var(--color-main-background);border-radius:50%;background-color:var(--color-main-background);font-size:var(--default-font-size);line-height:15px;background-repeat:no-repeat;background-size:16px;background-position:center}.autocomplete-result__status--online[data-v-25cf09d8]{background-image:url(data:image/svg+xml;base64,PCEtLSBUaGlzIGljb24gaXMgcGFydCBvZiBNYXRlcmlhbCBVSSBJY29ucy4gQ29weXJpZ2h0IDIwMjAgR29vZ2xlIEluYy4sIEFwYWNoZS0yLjAgTGljZW5zZSAtLT4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZD0iTTQuOCAxMS4yaDYuNFY0LjhINC44djYuNHpNOCAwQzMuNiAwIDAgMy42IDAgOHMzLjYgOCA4IDggOC0zLjYgOC04LTMuNi04LTgtOHoiIGZpbGw9IiM0OWIzODIiLz48L3N2Zz4K)}.autocomplete-result__status--dnd[data-v-25cf09d8]{background-image:url(data:image/svg+xml;base64,PCEtLSBUaGlzIGljb24gaXMgcGFydCBvZiBNYXRlcmlhbCBVSSBJY29ucy4gQ29weXJpZ2h0IDIwMjAgR29vZ2xlIEluYy4sIEFwYWNoZS0yLjAgTGljZW5zZSAtLT4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZD0iTS00LTRoMjR2MjRILTRWLTR6IiBmaWxsPSJub25lIi8+PHBhdGggZD0iTTggMEMzLjYgMCAwIDMuNiAwIDhzMy42IDggOCA4IDgtMy42IDgtOC0zLjYtOC04LTh6IiBmaWxsPSIjZWQ0ODRjIi8+PHBhdGggZD0iTTUgNi41aDZjLjggMCAxLjUuNyAxLjUgMS41cy0uNyAxLjUtMS41IDEuNUg1Yy0uOCAwLTEuNS0uNy0xLjUtMS41UzQuMiA2LjUgNSA2LjV6IiBmaWxsPSIjZmRmZmZmIi8+PC9zdmc+Cg==);background-color:#fff}.autocomplete-result__status--away[data-v-25cf09d8]{background-image:url(data:image/svg+xml;base64,PCEtLSBUaGlzIGljb24gaXMgcGFydCBvZiBNYXRlcmlhbCBVSSBJY29ucy4gQ29weXJpZ2h0IDIwMjAgR29vZ2xlIEluYy4sIEFwYWNoZS0yLjAgTGljZW5zZSAtLT4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTS00LTRoMjR2MjRILTR6Ii8+PHBhdGggZD0iTTYuOS4xQzMgLjYtLjEgNC0uMSA4YzAgNC40IDMuNiA4IDggOCA0IDAgNy40LTMgOC02LjktMS4yIDEuMy0yLjkgMi4xLTQuNyAyLjEtMy41IDAtNi40LTIuOS02LjQtNi40IDAtMS45LjgtMy42IDIuMS00Ljd6IiBmaWxsPSIjZjRhMzMxIi8+PC9zdmc+Cg==)}.autocomplete-result__status--icon[data-v-25cf09d8]{border:none;background-color:transparent}.autocomplete-result__content[data-v-25cf09d8]{display:flex;flex:1 1 100%;flex-direction:column;justify-content:center;min-width:0;padding-left:10px}.autocomplete-result__title[data-v-25cf09d8],.autocomplete-result__subline[data-v-25cf09d8]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.autocomplete-result__subline[data-v-25cf09d8]{color:var(--color-text-maxcontrast)}.material-design-icon[data-v-599f92d5]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.rich-contenteditable__input[data-v-599f92d5]{overflow-y:auto;width:auto;margin:0;padding:8px;cursor:text;white-space:pre-wrap;word-break:break-word;color:var(--color-main-text);border:2px solid var(--color-border-dark);border-radius:var(--border-radius-large);outline:none;background-color:var(--color-main-background);font-family:var(--font-face);font-size:inherit;min-height:44px;max-height:242px}.rich-contenteditable__input--empty[data-v-599f92d5]:before{content:attr(placeholder);color:var(--color-text-maxcontrast);position:absolute}.rich-contenteditable__input[contenteditable=false][data-v-599f92d5]:not(.rich-contenteditable__input--disabled){cursor:default;background-color:transparent;color:var(--color-main-text);border-color:transparent;opacity:1;border-radius:0}.rich-contenteditable__input--multiline[data-v-599f92d5]{min-height:132px;max-height:none}.rich-contenteditable__input--disabled[data-v-599f92d5]{opacity:.5;color:var(--color-text-maxcontrast);border:2px solid var(--color-background-darker);border-radius:var(--border-radius);background-color:var(--color-background-dark)}.material-design-icon{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.tribute-container,.tribute-container-emoji,.tribute-container-link{z-index:9000;overflow:auto;min-width:250px;max-width:300px;max-height:288px;margin:5px 0;color:var(--color-main-text);border-radius:var(--border-radius);background:var(--color-main-background);box-shadow:0 1px 5px var(--color-box-shadow)}.tribute-container-emoji,.tribute-container-link{min-width:200px;max-width:200px;padding:4px;max-height:192.5px!important}.tribute-container-emoji__item,.tribute-container-link__item{border-radius:8px;padding:4px 8px;margin-bottom:4px;opacity:.8;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tribute-container-emoji__item:last-child,.tribute-container-link__item:last-child{margin-bottom:0}.tribute-container-emoji__item__emoji,.tribute-container-link__item__emoji{padding-right:8px}.tribute-container-emoji .highlight,.tribute-container-link .highlight{opacity:1;color:var(--color-primary-element-light-text);background:var(--color-primary-element-light)}.tribute-container-emoji .highlight,.tribute-container-emoji .highlight *,.tribute-container-link .highlight,.tribute-container-link .highlight *{cursor:pointer}.tribute-container-link{min-width:200px;max-width:300px}.tribute-container-link__item{display:flex;align-items:center}.tribute-container-link__item__title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tribute-container-link__item__icon{margin:auto 0;width:20px;height:20px;object-fit:contain;padding-right:8px;filter:var(--background-invert-if-dark)}.material-design-icon[data-v-5b140fb6]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.input-wrapper[data-v-5b140fb6]{display:flex;align-items:center;flex-wrap:wrap;width:100%;max-width:400px}.input-wrapper .action-input__label[data-v-5b140fb6]{margin-right:12px}.input-wrapper[data-v-5b140fb6]:disabled{cursor:default}.input-wrapper .hint[data-v-5b140fb6]{color:var(--color-text-maxcontrast);margin-left:8px}.material-design-icon[data-v-5a35ccce]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.select-group-error[data-v-5a35ccce]{color:var(--color-error);font-size:13px;padding-inline-start:var(--border-radius-large)}.material-design-icon[data-v-55ab76f1]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.user-bubble__wrapper[data-v-55ab76f1]{display:inline-block;vertical-align:middle;min-width:0;max-width:100%}.user-bubble__content[data-v-55ab76f1]{display:inline-flex;max-width:100%;background-color:var(--color-background-dark)}.user-bubble__content--primary[data-v-55ab76f1]{color:var(--color-primary-element-text);background-color:var(--color-primary-element)}.user-bubble__content[data-v-55ab76f1]>:last-child{padding-right:8px}.user-bubble__avatar[data-v-55ab76f1]{align-self:center}.user-bubble__name[data-v-55ab76f1]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.user-bubble__name[data-v-55ab76f1],.user-bubble__secondary[data-v-55ab76f1]{padding:0 0 0 4px}/** * @copyright Copyright (c) 2019 John Molakvoæ * * @author John Molakvoæ @@ -39,12 +39,12 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . * - */.material-design-icon[data-v-44bb430a]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.textarea[data-v-44bb430a]{position:relative;width:100%;border-radius:var(--border-radius-large);margin-block-start:6px;resize:vertical}.textarea__main-wrapper[data-v-44bb430a]{position:relative}.textarea--disabled[data-v-44bb430a]{opacity:.7;filter:saturate(.7)}.textarea__input[data-v-44bb430a]{margin:0;padding-inline:10px 6px;width:100%;font-size:var(--default-font-size);text-overflow:ellipsis;background-color:var(--color-main-background);color:var(--color-main-text);border:2px solid var(--color-border-maxcontrast);border-radius:var(--border-radius-large);cursor:pointer}.textarea__input[data-v-44bb430a]:active:not([disabled]),.textarea__input[data-v-44bb430a]:hover:not([disabled]),.textarea__input[data-v-44bb430a]:focus:not([disabled]){border-color:var(--color-primary-element)}.textarea__input[data-v-44bb430a]:not(:focus,.textarea__input--label-outside)::placeholder{opacity:0}.textarea__input[data-v-44bb430a]:focus{cursor:text}.textarea__input[data-v-44bb430a]:disabled{cursor:default}.textarea__input[data-v-44bb430a]:focus-visible{box-shadow:unset!important}.textarea__input--success[data-v-44bb430a]{border-color:var(--color-success)!important}.textarea__input--success[data-v-44bb430a]:focus-visible{box-shadow:#f8fafc 0 0 0 2px,var(--color-primary-element) 0 0 0 4px,#0000000d 0 1px 2px}.textarea__input--success:focus+.textarea__label[data-v-44bb430a],.textarea__input--success:hover:not(:placeholder-shown)+.textarea__label[data-v-44bb430a]{color:var(--color-success-text)}.textarea__input--error[data-v-44bb430a]{border-color:var(--color-error)!important}.textarea__input--error[data-v-44bb430a]:focus-visible{box-shadow:#f8fafc 0 0 0 2px,var(--color-primary-element) 0 0 0 4px,#0000000d 0 1px 2px}.textarea__input--error:focus+.textarea__label[data-v-44bb430a],.textarea__input--error:hover:not(:placeholder-shown)+.textarea__label[data-v-44bb430a]{color:var(--color-error-text)}.textarea__input:not(.textarea__input--success,.textarea__input--error):focus+.textarea__label[data-v-44bb430a],.textarea__input:not(.textarea__input--success,.textarea__input--error):hover:not(:placeholder-shown)+.textarea__label[data-v-44bb430a]{color:var(--color-primary-element)}.textarea__label[data-v-44bb430a]{position:absolute;margin-inline:12px 0;height:17px;max-width:fit-content;line-height:1;inset-block-start:12px;inset-inline:0;color:var(--color-text-maxcontrast);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none;transition:height var(--animation-quick),inset-block-start var(--animation-quick),font-size var(--animation-quick),color var(--animation-quick),background-color var(--animation-quick) var(--animation-slow)}.textarea__input:focus+.textarea__label[data-v-44bb430a],.textarea__input:not(:placeholder-shown)+.textarea__label[data-v-44bb430a]{inset-block-start:-6px;font-size:13px;background-color:var(--color-main-background);height:14px;padding-inline:4px;margin-inline-start:8px;transition:height var(--animation-quick),inset-block-start var(--animation-quick),font-size var(--animation-quick),color var(--animation-quick)}.textarea__helper-text-message[data-v-44bb430a]{padding-block:4px;display:flex;align-items:center}.textarea__helper-text-message__icon[data-v-44bb430a]{margin-inline-end:8px}.textarea__helper-text-message--error[data-v-44bb430a]{color:var(--color-error-text)}.textarea__helper-text-message--success[data-v-44bb430a]{color:var(--color-success-text)}.rich-text-file .icon-home[data-v-f30ef6d6]{display:inline-block;vertical-align:text-top}strong[data-v-b8794790]{padding:2px 5px;border-radius:3px;background-color:var(--color-background-darker);font-weight:400}.activity-entry[data-v-7cfe8c52]{display:flex;flex-wrap:wrap;align-items:flex-start;width:100%;height:var(--height);min-height:32px;padding:8px 0}.activity-entry__icon[data-v-7cfe8c52]{opacity:.5;margin-top:2px;margin-right:8px}.activity-entry .avatardiv[data-v-7cfe8c52]{background-color:unset!important}.activity-entry__content[data-v-7cfe8c52]{display:flex;flex-basis:min-content;flex-direction:column;flex-grow:1;overflow-wrap:break-word;white-space:pre-wrap;word-break:break-word;overflow:hidden}.activity-entry__content__message[data-v-7cfe8c52]{color:var(--color-text-lighter)}.activity-entry__content[data-v-7cfe8c52] a{font-weight:700}.activity-entry__content[data-v-7cfe8c52] a:hover{opacity:.7;text-decoration:underline}.activity-entry__date[data-v-7cfe8c52]{color:var(--color-text-lighter);margin-left:5px;flex-shrink:0}.activity-entry__preview-wrapper[data-v-7cfe8c52]{flex:0 0 100%;gap:12px;margin-inline-start:24px}.activity-entry__preview[data-v-7cfe8c52]:hover{opacity:.75}.activity-entry__preview-image[data-v-7cfe8c52]{height:50px;width:50px}.activity-entry__preview-image[data-v-7cfe8c52]:not(.activity-entry__preview-mimetype){border:2px solid var(--color-border);border-radius:var(--border-radius-large)}.activity-entry__preview-image[data-v-7cfe8c52]:not(.activity-entry__preview-mimetype):hover{border-color:var(--color-main-text);outline:2px solid var(--color-main-background)}`)),document.head.appendChild(e)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})(); + */.material-design-icon[data-v-44bb430a]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.textarea[data-v-44bb430a]{position:relative;width:100%;border-radius:var(--border-radius-large);margin-block-start:6px;resize:vertical}.textarea__main-wrapper[data-v-44bb430a]{position:relative}.textarea--disabled[data-v-44bb430a]{opacity:.7;filter:saturate(.7)}.textarea__input[data-v-44bb430a]{margin:0;padding-inline:10px 6px;width:100%;font-size:var(--default-font-size);text-overflow:ellipsis;background-color:var(--color-main-background);color:var(--color-main-text);border:2px solid var(--color-border-maxcontrast);border-radius:var(--border-radius-large);cursor:pointer}.textarea__input[data-v-44bb430a]:active:not([disabled]),.textarea__input[data-v-44bb430a]:hover:not([disabled]),.textarea__input[data-v-44bb430a]:focus:not([disabled]){border-color:var(--color-primary-element)}.textarea__input[data-v-44bb430a]:not(:focus,.textarea__input--label-outside)::placeholder{opacity:0}.textarea__input[data-v-44bb430a]:focus{cursor:text}.textarea__input[data-v-44bb430a]:disabled{cursor:default}.textarea__input[data-v-44bb430a]:focus-visible{box-shadow:unset!important}.textarea__input--success[data-v-44bb430a]{border-color:var(--color-success)!important}.textarea__input--success[data-v-44bb430a]:focus-visible{box-shadow:#f8fafc 0 0 0 2px,var(--color-primary-element) 0 0 0 4px,#0000000d 0 1px 2px}.textarea__input--success:focus+.textarea__label[data-v-44bb430a],.textarea__input--success:hover:not(:placeholder-shown)+.textarea__label[data-v-44bb430a]{color:var(--color-success-text)}.textarea__input--error[data-v-44bb430a]{border-color:var(--color-error)!important}.textarea__input--error[data-v-44bb430a]:focus-visible{box-shadow:#f8fafc 0 0 0 2px,var(--color-primary-element) 0 0 0 4px,#0000000d 0 1px 2px}.textarea__input--error:focus+.textarea__label[data-v-44bb430a],.textarea__input--error:hover:not(:placeholder-shown)+.textarea__label[data-v-44bb430a]{color:var(--color-error-text)}.textarea__input:not(.textarea__input--success,.textarea__input--error):focus+.textarea__label[data-v-44bb430a],.textarea__input:not(.textarea__input--success,.textarea__input--error):hover:not(:placeholder-shown)+.textarea__label[data-v-44bb430a]{color:var(--color-primary-element)}.textarea__label[data-v-44bb430a]{position:absolute;margin-inline:12px 0;height:17px;max-width:fit-content;line-height:1;inset-block-start:12px;inset-inline:0;color:var(--color-text-maxcontrast);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none;transition:height var(--animation-quick),inset-block-start var(--animation-quick),font-size var(--animation-quick),color var(--animation-quick),background-color var(--animation-quick) var(--animation-slow)}.textarea__input:focus+.textarea__label[data-v-44bb430a],.textarea__input:not(:placeholder-shown)+.textarea__label[data-v-44bb430a]{inset-block-start:-6px;font-size:13px;background-color:var(--color-main-background);height:14px;padding-inline:4px;margin-inline-start:8px;transition:height var(--animation-quick),inset-block-start var(--animation-quick),font-size var(--animation-quick),color var(--animation-quick)}.textarea__helper-text-message[data-v-44bb430a]{padding-block:4px;display:flex;align-items:center}.textarea__helper-text-message__icon[data-v-44bb430a]{margin-inline-end:8px}.textarea__helper-text-message--error[data-v-44bb430a]{color:var(--color-error-text)}.textarea__helper-text-message--success[data-v-44bb430a]{color:var(--color-success-text)}.rich-text-file .icon-home[data-v-f30ef6d6]{display:inline-block;vertical-align:text-top}strong[data-v-b8794790]{padding:2px 5px;border-radius:3px;background-color:var(--color-background-darker);font-weight:400}.comments-activity[data-v-d0df7393]{display:flex;flex-wrap:nowrap;align-items:flex-start;width:100%;min-height:32px;padding:8px 0;gap:8px}.comments-activity__icon[data-v-d0df7393]{flex:0 0 fit-content}.comments-activity__content[data-v-d0df7393]{flex:1 0;display:flex;flex-direction:column;width:100%}.comments-activity__title[data-v-d0df7393]{color:var(--color-text-maxcontrast);display:flex;flex-direction:row;justify-content:space-between}.comments-activity__date[data-v-d0df7393]{color:var(--color-text-maxcontrast)}.activity-entry[data-v-d3cd8992]{display:flex;flex-wrap:wrap;align-items:flex-start;width:100%;height:var(--height);min-height:32px;padding:8px 0}.activity-entry__icon[data-v-d3cd8992]{opacity:.5;margin-top:2px;margin-right:8px}.activity-entry .avatardiv[data-v-d3cd8992]{padding-inline:calc((32px - var(--size)) / 2);box-sizing:content-box!important}.activity-entry__content[data-v-d3cd8992]{display:flex;flex-basis:min-content;flex-direction:column;flex-grow:1;overflow-wrap:break-word;white-space:pre-wrap;word-break:break-word;overflow:hidden}.activity-entry__content__message[data-v-d3cd8992]{color:var(--color-text-lighter)}.activity-entry__content[data-v-d3cd8992] a{font-weight:700}.activity-entry__content[data-v-d3cd8992] a:hover{opacity:.7;text-decoration:underline}.activity-entry__actions[data-v-d3cd8992]{inset-block:-8px}.activity-entry__date[data-v-d3cd8992]{color:var(--color-text-lighter);margin-left:5px;flex-shrink:0}.activity-entry__preview-wrapper[data-v-d3cd8992]{flex:0 0 100%;gap:12px;margin-inline-start:24px}.activity-entry__preview[data-v-d3cd8992]:hover{opacity:.75}.activity-entry__preview-image[data-v-d3cd8992]{height:50px;width:50px}.activity-entry__preview-image[data-v-d3cd8992]:not(.activity-entry__preview-mimetype){border:2px solid var(--color-border);border-radius:var(--border-radius-large)}.activity-entry__preview-image[data-v-d3cd8992]:not(.activity-entry__preview-mimetype):hover{border-color:var(--color-main-text);outline:2px solid var(--color-main-background)}`)),document.head.appendChild(e)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})(); /*! third party licenses: js/vendor.LICENSE.txt */ -import{i as Ml,j as x_,g as Xa,a as fr,V as Aa,k as B_,l as C_,m as M_,r as gt,n as Y_,p as L_,u as Z_,q as i0,c as st,w as ei,s as I_,v as j_,o as P_,x as G_,h as Ia,e as gr,b as Va,y as U_,z as q_,A as H_,B as z_,C as V_,D as $_,d as Yl,E as MM,F as W_,G as YM,t as Vc}from"./index-a6a8c3a6.mjs";import{r as Q_,v as ce,e as _r,l as ie,i as J_,a as g0,j as K_,d as Ll,k as Ys,s as zo,u as Vo,c as $a,g as so,f as Ls,w as Tn,m as Sa,o as Zl,p as $c,_ as _0,q as F0,t as lo,x as X_,y as uo,z as co,A as eF,B as Il,C as tF,D as aF,E as iF,F as nF,G as Wc,H as jl,I as rF,J as oF,K as Pl,L as sF,M as Qc,N as Jc,O as Kc,P as Xc,Q as eh,R as lF,S as Gl,T as uF,U as dF,V as cF,W as th,X as hF,Y as fF,Z as gF,n as ti,b as _F}from"./logger-dfe58565.mjs";const O_="activity";var ah={exports:{}},ih;function ae(){return ih.apply(null,arguments)}function FF(e){ih=e}function Ut(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Ei(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function xe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ul(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(xe(e,t))return!1;return!0}function mt(e){return e===void 0}function Ta(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function m0(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function nh(e,t){var a=[],i,n=e.length;for(i=0;i>>0,i;for(i=0;i0)for(a=0;a>>0,i;for(i=0;i0)for(a=0;a=0;return(r?a?"+":"":"-")+Math.pow(10,Math.max(0,n)).toString().substr(1)+i}var Vl=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,v0=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Wo={},Ki={};function _e(e,t,a,i){var n=i;typeof i=="string"&&(n=function(){return this[i]()}),e&&(Ki[e]=n),t&&(Ki[t[0]]=function(){return Xt(n.apply(this,arguments),t[1],t[2])}),a&&(Ki[a]=function(){return this.localeData().ordinal(n.apply(this,arguments),e)})}function EF(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function bF(e){var t=e.match(Vl),a,i;for(a=0,i=t.length;a=0&&v0.test(e);)e=e.replace(v0,i),v0.lastIndex=0,a-=1;return e}var yF={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function AF(e){var t=this._longDateFormat[e],a=this._longDateFormat[e.toUpperCase()];return t||!a?t:(this._longDateFormat[e]=a.match(Vl).map(function(i){return i==="MMMM"||i==="MM"||i==="DD"||i==="dddd"?i.slice(1):i}).join(""),this._longDateFormat[e])}var SF="Invalid date";function kF(){return this._invalidDate}var vF="%d",RF=/\d{1,2}/;function NF(e){return this._ordinal.replace("%d",e)}var wF={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function OF(e,t,a,i){var n=this._relativeTime[a];return ua(n)?n(e,t,a,i):n.replace(/%d/i,e)}function xF(e,t){var a=this._relativeTime[e>0?"future":"past"];return ua(a)?a(t):a.replace(/%s/i,t)}var Mn={};function ut(e,t){var a=e.toLowerCase();Mn[a]=Mn[a+"s"]=Mn[t]=e}function It(e){return typeof e=="string"?Mn[e]||Mn[e.toLowerCase()]:void 0}function $l(e){var t={},a,i;for(i in e)xe(e,i)&&(a=It(i),a&&(t[a]=e[i]));return t}var lh={};function dt(e,t){lh[e]=t}function BF(e){var t=[],a;for(a in e)xe(e,a)&&t.push({unit:a,priority:lh[a]});return t.sort(function(i,n){return i.priority-n.priority}),t}function fo(e){return e%4===0&&e%100!==0||e%400===0}function Bt(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Ae(e){var t=+e,a=0;return t!==0&&isFinite(t)&&(a=Bt(t)),a}function Dn(e,t){return function(a){return a!=null?(uh(this,e,a),ae.updateOffset(this,t),this):Fr(this,e)}}function Fr(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function uh(e,t,a){e.isValid()&&!isNaN(a)&&(t==="FullYear"&&fo(e.year())&&e.month()===1&&e.date()===29?(a=Ae(a),e._d["set"+(e._isUTC?"UTC":"")+t](a,e.month(),go(a,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](a))}function CF(e){return e=It(e),ua(this[e])?this[e]():this}function MF(e,t){if(typeof e=="object"){e=$l(e);var a=BF(e),i,n=a.length;for(i=0;i68?1900:2e3)};var ld=Dn("FullYear",!0);function em(){return fo(this.year())}function tm(e,t,a,i,n,r,o){var s;return e<100&&e>=0?(s=new Date(e+400,t,a,i,n,r,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,a,i,n,r,o),s}function r0(e){var t,a;return e<100&&e>=0?(a=Array.prototype.slice.call(arguments),a[0]=e+400,t=new Date(Date.UTC.apply(null,a)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Er(e,t,a){var i=7+t-a,n=(7+r0(e,0,i).getUTCDay()-t)%7;return-n+i-1}function Fh(e,t,a,i,n){var r=(7+a-i)%7,o=Er(e,i,n),s=1+7*(t-1)+r+o,l,d;return s<=0?(l=e-1,d=Yn(l)+s):s>Yn(e)?(l=e+1,d=s-Yn(e)):(l=e,d=s),{year:l,dayOfYear:d}}function o0(e,t,a){var i=Er(e.year(),t,a),n=Math.floor((e.dayOfYear()-i-1)/7)+1,r,o;return n<1?(o=e.year()-1,r=n+ma(o,t,a)):n>ma(e.year(),t,a)?(r=n-ma(e.year(),t,a),o=e.year()+1):(o=e.year(),r=n),{week:r,year:o}}function ma(e,t,a){var i=Er(e,t,a),n=Er(e+1,t,a);return(Yn(e)-i+n)/7}_e("w",["ww",2],"wo","week"),_e("W",["WW",2],"Wo","isoWeek"),ut("week","w"),ut("isoWeek","W"),dt("week",5),dt("isoWeek",5),oe("w",Ge),oe("ww",Ge,Rt),oe("W",Ge),oe("WW",Ge,Rt),n0(["w","ww","W","WW"],function(e,t,a,i){t[i.substr(0,1)]=Ae(e)});function am(e){return o0(e,this._week.dow,this._week.doy).week}var im={dow:0,doy:6};function nm(){return this._week.dow}function rm(){return this._week.doy}function om(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function sm(e){var t=o0(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}_e("d",0,"do","day"),_e("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),_e("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),_e("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),_e("e",0,0,"weekday"),_e("E",0,0,"isoWeekday"),ut("day","d"),ut("weekday","e"),ut("isoWeekday","E"),dt("day",11),dt("weekday",11),dt("isoWeekday",11),oe("d",Ge),oe("e",Ge),oe("E",Ge),oe("dd",function(e,t){return t.weekdaysMinRegex(e)}),oe("ddd",function(e,t){return t.weekdaysShortRegex(e)}),oe("dddd",function(e,t){return t.weekdaysRegex(e)}),n0(["dd","ddd","dddd"],function(e,t,a,i){var n=a._locale.weekdaysParse(e,i,a._strict);n!=null?t.d=n:Ee(a).invalidWeekday=e}),n0(["d","e","E"],function(e,t,a,i){t[i]=Ae(e)});function lm(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function um(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Wl(e,t){return e.slice(t,7).concat(e.slice(0,t))}var dm="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),mh="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),cm="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),hm=T0,fm=T0,gm=T0;function _m(e,t){var a=Ut(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Wl(a,this._week.dow):e?a[e.day()]:a}function Fm(e){return e===!0?Wl(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function mm(e){return e===!0?Wl(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function pm(e,t,a){var i,n,r,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)r=la([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(r,"").toLocaleLowerCase();return a?t==="dddd"?(n=Qe.call(this._weekdaysParse,o),n!==-1?n:null):t==="ddd"?(n=Qe.call(this._shortWeekdaysParse,o),n!==-1?n:null):(n=Qe.call(this._minWeekdaysParse,o),n!==-1?n:null):t==="dddd"?(n=Qe.call(this._weekdaysParse,o),n!==-1||(n=Qe.call(this._shortWeekdaysParse,o),n!==-1)?n:(n=Qe.call(this._minWeekdaysParse,o),n!==-1?n:null)):t==="ddd"?(n=Qe.call(this._shortWeekdaysParse,o),n!==-1||(n=Qe.call(this._weekdaysParse,o),n!==-1)?n:(n=Qe.call(this._minWeekdaysParse,o),n!==-1?n:null)):(n=Qe.call(this._minWeekdaysParse,o),n!==-1||(n=Qe.call(this._weekdaysParse,o),n!==-1)?n:(n=Qe.call(this._shortWeekdaysParse,o),n!==-1?n:null))}function Tm(e,t,a){var i,n,r;if(this._weekdaysParseExact)return pm.call(this,e,t,a);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++)if(n=la([2e3,1]).day(i),a&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(n,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(n,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(n,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(r="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[i]=new RegExp(r.replace(".",""),"i")),a&&t==="dddd"&&this._fullWeekdaysParse[i].test(e)||a&&t==="ddd"&&this._shortWeekdaysParse[i].test(e)||a&&t==="dd"&&this._minWeekdaysParse[i].test(e)||!a&&this._weekdaysParse[i].test(e))return i}function Dm(e){if(!this.isValid())return e!=null?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return e!=null?(e=lm(e,this.localeData()),this.add(e-t,"d")):t}function Em(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function bm(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=um(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function ym(e){return this._weekdaysParseExact?(xe(this,"_weekdaysRegex")||Ql.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(xe(this,"_weekdaysRegex")||(this._weekdaysRegex=hm),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Am(e){return this._weekdaysParseExact?(xe(this,"_weekdaysRegex")||Ql.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(xe(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=fm),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Sm(e){return this._weekdaysParseExact?(xe(this,"_weekdaysRegex")||Ql.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(xe(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=gm),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ql(){function e(u,c){return c.length-u.length}var t=[],a=[],i=[],n=[],r,o,s,l,d;for(r=0;r<7;r++)o=la([2e3,1]).day(r),s=St(this.weekdaysMin(o,"")),l=St(this.weekdaysShort(o,"")),d=St(this.weekdays(o,"")),t.push(s),a.push(l),i.push(d),n.push(s),n.push(l),n.push(d);t.sort(e),a.sort(e),i.sort(e),n.sort(e),this._weekdaysRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Qo(){return this.hours()%12||12}function km(){return this.hours()||24}_e("H",["HH",2],0,"hour"),_e("h",["hh",2],0,Qo),_e("k",["kk",2],0,km),_e("hmm",0,0,function(){return""+Qo.apply(this)+Xt(this.minutes(),2)}),_e("hmmss",0,0,function(){return""+Qo.apply(this)+Xt(this.minutes(),2)+Xt(this.seconds(),2)}),_e("Hmm",0,0,function(){return""+this.hours()+Xt(this.minutes(),2)}),_e("Hmmss",0,0,function(){return""+this.hours()+Xt(this.minutes(),2)+Xt(this.seconds(),2)});function ud(e,t){_e(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}ud("a",!0),ud("A",!1),ut("hour","h"),dt("hour",13);function dd(e,t){return t._meridiemParse}oe("a",dd),oe("A",dd),oe("H",Ge),oe("h",Ge),oe("k",Ge),oe("HH",Ge,Rt),oe("hh",Ge,Rt),oe("kk",Ge,Rt),oe("hmm",rd),oe("hmmss",od),oe("Hmm",rd),oe("Hmmss",od),Le(["H","HH"],tt),Le(["k","kk"],function(e,t,a){var i=Ae(e);t[tt]=i===24?0:i}),Le(["a","A"],function(e,t,a){a._isPm=a._locale.isPM(e),a._meridiem=e}),Le(["h","hh"],function(e,t,a){t[tt]=Ae(e),Ee(a).bigHour=!0}),Le("hmm",function(e,t,a){var i=e.length-2;t[tt]=Ae(e.substr(0,i)),t[Gt]=Ae(e.substr(i)),Ee(a).bigHour=!0}),Le("hmmss",function(e,t,a){var i=e.length-4,n=e.length-2;t[tt]=Ae(e.substr(0,i)),t[Gt]=Ae(e.substr(i,2)),t[_a]=Ae(e.substr(n)),Ee(a).bigHour=!0}),Le("Hmm",function(e,t,a){var i=e.length-2;t[tt]=Ae(e.substr(0,i)),t[Gt]=Ae(e.substr(i))}),Le("Hmmss",function(e,t,a){var i=e.length-4,n=e.length-2;t[tt]=Ae(e.substr(0,i)),t[Gt]=Ae(e.substr(i,2)),t[_a]=Ae(e.substr(n))});function vm(e){return(e+"").toLowerCase().charAt(0)==="p"}var Rm=/[ap]\.?m?\.?/i,Nm=Dn("Hours",!0);function wm(e,t,a){return e>11?a?"pm":"PM":a?"am":"AM"}var ph={calendar:TF,longDateFormat:yF,invalidDate:SF,ordinal:vF,dayOfMonthOrdinalParse:RF,relativeTime:wF,months:qF,monthsShort:hh,week:im,weekdays:dm,weekdaysMin:cm,weekdaysShort:mh,meridiemParse:Rm},He={},An={},s0;function Om(e,t){var a,i=Math.min(e.length,t.length);for(a=0;a0;){if(n=_o(r.slice(0,a).join("-")),n)return n;if(i&&i.length>=a&&Om(r,i)>=a-1)break;a--}t++}return s0}function Bm(e){return e.match("^[^/\\\\]*$")!=null}function _o(e){var t=null,a;if(He[e]===void 0&&typeof module<"u"&&module&&module.exports&&Bm(e))try{t=s0._abbr,a=require,a("./locale/"+e),Ha(t)}catch{He[e]=null}return He[e]}function Ha(e,t){var a;return e&&(mt(t)?a=ka(e):a=Jl(e,t),a?s0=a:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),s0._abbr}function Jl(e,t){if(t!==null){var a,i=ph;if(t.abbr=e,He[e]!=null)oh("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=He[e]._config;else if(t.parentLocale!=null)if(He[t.parentLocale]!=null)i=He[t.parentLocale]._config;else if(a=_o(t.parentLocale),a!=null)i=a._config;else return An[t.parentLocale]||(An[t.parentLocale]=[]),An[t.parentLocale].push({name:e,config:t}),null;return He[e]=new zl(Is(i,t)),An[e]&&An[e].forEach(function(n){Jl(n.name,n.config)}),Ha(e),He[e]}else return delete He[e],null}function Cm(e,t){if(t!=null){var a,i,n=ph;He[e]!=null&&He[e].parentLocale!=null?He[e].set(Is(He[e]._config,t)):(i=_o(e),i!=null&&(n=i._config),t=Is(n,t),i==null&&(t.abbr=e),a=new zl(t),a.parentLocale=He[e],He[e]=a),Ha(e)}else He[e]!=null&&(He[e].parentLocale!=null?(He[e]=He[e].parentLocale,e===Ha()&&Ha(e)):He[e]!=null&&delete He[e]);return He[e]}function ka(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return s0;if(!Ut(e)){if(t=_o(e),t)return t;e=[e]}return xm(e)}function Mm(){return js(He)}function Kl(e){var t,a=e._a;return a&&Ee(e).overflow===-2&&(t=a[ga]<0||a[ga]>11?ga:a[ea]<1||a[ea]>go(a[lt],a[ga])?ea:a[tt]<0||a[tt]>24||a[tt]===24&&(a[Gt]!==0||a[_a]!==0||a[pi]!==0)?tt:a[Gt]<0||a[Gt]>59?Gt:a[_a]<0||a[_a]>59?_a:a[pi]<0||a[pi]>999?pi:-1,Ee(e)._overflowDayOfYear&&(tea)&&(t=ea),Ee(e)._overflowWeeks&&t===-1&&(t=PF),Ee(e)._overflowWeekday&&t===-1&&(t=GF),Ee(e).overflow=t),e}var Ym=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Lm=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Zm=/Z|[+-]\d\d(?::?\d\d)?/,R0=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Jo=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Im=/^\/?Date\((-?\d+)/i,jm=/^(?:(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{4}))$/,Pm={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Th(e){var t,a,i=e._i,n=Ym.exec(i)||Lm.exec(i),r,o,s,l,d=R0.length,u=Jo.length;if(n){for(Ee(e).iso=!0,t=0,a=d;tYn(o)||e._dayOfYear===0)&&(Ee(e)._overflowDayOfYear=!0),a=r0(o,0,e._dayOfYear),e._a[ga]=a.getUTCMonth(),e._a[ea]=a.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=i[t]=n[t];for(;t<7;t++)e._a[t]=i[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[tt]===24&&e._a[Gt]===0&&e._a[_a]===0&&e._a[pi]===0&&(e._nextDay=!0,e._a[tt]=0),e._d=(e._useUTC?r0:tm).apply(null,i),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[tt]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==r&&(Ee(e).weekdayMismatch=!0)}}function Wm(e){var t,a,i,n,r,o,s,l,d;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(r=1,o=4,a=ji(t.GG,e._a[lt],o0(Ue(),1,4).year),i=ji(t.W,1),n=ji(t.E,1),(n<1||n>7)&&(l=!0)):(r=e._locale._week.dow,o=e._locale._week.doy,d=o0(Ue(),r,o),a=ji(t.gg,e._a[lt],d.year),i=ji(t.w,d.week),t.d!=null?(n=t.d,(n<0||n>6)&&(l=!0)):t.e!=null?(n=t.e+r,(t.e<0||t.e>6)&&(l=!0)):n=r),i<1||i>ma(a,r,o)?Ee(e)._overflowWeeks=!0:l!=null?Ee(e)._overflowWeekday=!0:(s=Fh(a,i,n,r,o),e._a[lt]=s.year,e._dayOfYear=s.dayOfYear)}ae.ISO_8601=function(){},ae.RFC_2822=function(){};function eu(e){if(e._f===ae.ISO_8601){Th(e);return}if(e._f===ae.RFC_2822){Dh(e);return}e._a=[],Ee(e).empty=!0;var t=""+e._i,a,i,n,r,o,s=t.length,l=0,d,u;for(n=sh(e._f,e._locale).match(Vl)||[],u=n.length,a=0;a0&&Ee(e).unusedInput.push(o),t=t.slice(t.indexOf(i)+i.length),l+=i.length),Ki[r]?(i?Ee(e).empty=!1:Ee(e).unusedTokens.push(r),jF(r,i,e)):e._strict&&!i&&Ee(e).unusedTokens.push(r);Ee(e).charsLeftOver=s-l,t.length>0&&Ee(e).unusedInput.push(t),e._a[tt]<=12&&Ee(e).bigHour===!0&&e._a[tt]>0&&(Ee(e).bigHour=void 0),Ee(e).parsedDateParts=e._a.slice(0),Ee(e).meridiem=e._meridiem,e._a[tt]=Qm(e._locale,e._a[tt],e._meridiem),d=Ee(e).era,d!==null&&(e._a[lt]=e._locale.erasConvertYear(d,e._a[lt])),Xl(e),Kl(e)}function Qm(e,t,a){var i;return a==null?t:e.meridiemHour!=null?e.meridiemHour(t,a):(e.isPM!=null&&(i=e.isPM(a),i&&t<12&&(t+=12),!i&&t===12&&(t=0)),t)}function Jm(e){var t,a,i,n,r,o,s=!1,l=e._f.length;if(l===0){Ee(e).invalidFormat=!0,e._d=new Date(NaN);return}for(n=0;nthis?this:e:ho()});function yh(e,t){var a,i;if(t.length===1&&Ut(t[0])&&(t=t[0]),!t.length)return Ue();for(a=t[0],i=1;ithis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function pp(){if(!mt(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Hl(e,this),e=Eh(e),e._a?(t=e._isUTC?la(e._a):Ue(e._a),this._isDSTShifted=this.isValid()&&up(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Tp(){return this.isValid()?!this._isUTC:!1}function Dp(){return this.isValid()?this._isUTC:!1}function fd(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Ep=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,bp=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ht(e,t){var a=e,i=null,n,r,o;return K0(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:Ta(e)||!isNaN(+e)?(a={},t?a[t]=+e:a.milliseconds=+e):(i=Ep.exec(e))?(n=i[1]==="-"?-1:1,a={y:0,d:Ae(i[ea])*n,h:Ae(i[tt])*n,m:Ae(i[Gt])*n,s:Ae(i[_a])*n,ms:Ae(qs(i[pi]*1e3))*n}):(i=bp.exec(e))?(n=i[1]==="-"?-1:1,a={y:si(i[2],n),M:si(i[3],n),w:si(i[4],n),d:si(i[5],n),h:si(i[6],n),m:si(i[7],n),s:si(i[8],n)}):a==null?a={}:typeof a=="object"&&("from"in a||"to"in a)&&(o=yp(Ue(a.from),Ue(a.to)),a={},a.ms=o.milliseconds,a.M=o.months),r=new Fo(a),K0(e)&&xe(e,"_locale")&&(r._locale=e._locale),K0(e)&&xe(e,"_isValid")&&(r._isValid=e._isValid),r}Ht.fn=Fo.prototype,Ht.invalid=lp;function si(e,t){var a=e&&parseFloat(e.replace(",","."));return(isNaN(a)?0:a)*t}function gd(e,t){var a={};return a.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(a.months,"M").isAfter(t)&&--a.months,a.milliseconds=+t-+e.clone().add(a.months,"M"),a}function yp(e,t){var a;return e.isValid()&&t.isValid()?(t=au(t,e),e.isBefore(t)?a=gd(e,t):(a=gd(t,e),a.milliseconds=-a.milliseconds,a.months=-a.months),a):{milliseconds:0,months:0}}function Ah(e,t){return function(a,i){var n,r;return i!==null&&!isNaN(+i)&&(oh(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=a,a=i,i=r),n=Ht(a,i),Sh(this,n,e),this}}function Sh(e,t,a,i){var n=t._milliseconds,r=qs(t._days),o=qs(t._months);e.isValid()&&(i=i??!0,o&&gh(e,Fr(e,"Month")+o*a),r&&uh(e,"Date",Fr(e,"Date")+r*a),n&&e._d.setTime(e._d.valueOf()+n*a),i&&ae.updateOffset(e,r||o))}var Ap=Ah(1,"add"),Sp=Ah(-1,"subtract");function kh(e){return typeof e=="string"||e instanceof String}function kp(e){return qt(e)||m0(e)||kh(e)||Ta(e)||Rp(e)||vp(e)||e===null||e===void 0}function vp(e){var t=Ei(e)&&!Ul(e),a=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],n,r,o=i.length;for(n=0;na.valueOf():a.valueOf()9999?W0(a,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):ua(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",W0(a,"Z")):W0(a,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Gp(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",a,i,n,r;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),a="["+e+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=t+'[")]',this.format(a+i+n+r)}function Up(e){e||(e=this.isUtc()?ae.defaultFormatUtc:ae.defaultFormat);var t=W0(this,e);return this.localeData().postformat(t)}function qp(e,t){return this.isValid()&&(qt(e)&&e.isValid()||Ue(e).isValid())?Ht({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Hp(e){return this.from(Ue(),e)}function zp(e,t){return this.isValid()&&(qt(e)&&e.isValid()||Ue(e).isValid())?Ht({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Vp(e){return this.to(Ue(),e)}function vh(e){var t;return e===void 0?this._locale._abbr:(t=ka(e),t!=null&&(this._locale=t),this)}var Rh=Mt("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function Nh(){return this._locale}var br=1e3,Xi=60*br,yr=60*Xi,wh=(365*400+97)*24*yr;function en(e,t){return(e%t+t)%t}function Oh(e,t,a){return e<100&&e>=0?new Date(e+400,t,a)-wh:new Date(e,t,a).valueOf()}function xh(e,t,a){return e<100&&e>=0?Date.UTC(e+400,t,a)-wh:Date.UTC(e,t,a)}function $p(e){var t,a;if(e=It(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(a=this._isUTC?xh:Oh,e){case"year":t=a(this.year(),0,1);break;case"quarter":t=a(this.year(),this.month()-this.month()%3,1);break;case"month":t=a(this.year(),this.month(),1);break;case"week":t=a(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=a(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=a(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=en(t+(this._isUTC?0:this.utcOffset()*Xi),yr);break;case"minute":t=this._d.valueOf(),t-=en(t,Xi);break;case"second":t=this._d.valueOf(),t-=en(t,br);break}return this._d.setTime(t),ae.updateOffset(this,!0),this}function Wp(e){var t,a;if(e=It(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(a=this._isUTC?xh:Oh,e){case"year":t=a(this.year()+1,0,1)-1;break;case"quarter":t=a(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=a(this.year(),this.month()+1,1)-1;break;case"week":t=a(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=a(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=a(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=yr-en(t+(this._isUTC?0:this.utcOffset()*Xi),yr)-1;break;case"minute":t=this._d.valueOf(),t+=Xi-en(t,Xi)-1;break;case"second":t=this._d.valueOf(),t+=br-en(t,br)-1;break}return this._d.setTime(t),ae.updateOffset(this,!0),this}function Qp(){return this._d.valueOf()-(this._offset||0)*6e4}function Jp(){return Math.floor(this.valueOf()/1e3)}function Kp(){return new Date(this.valueOf())}function Xp(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function eT(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function tT(){return this.isValid()?this.toISOString():null}function aT(){return ql(this)}function iT(){return Ua({},Ee(this))}function nT(){return Ee(this).overflow}function rT(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}_e("N",0,0,"eraAbbr"),_e("NN",0,0,"eraAbbr"),_e("NNN",0,0,"eraAbbr"),_e("NNNN",0,0,"eraName"),_e("NNNNN",0,0,"eraNarrow"),_e("y",["y",1],"yo","eraYear"),_e("y",["yy",2],0,"eraYear"),_e("y",["yyy",3],0,"eraYear"),_e("y",["yyyy",4],0,"eraYear"),oe("N",Ko),oe("NN",Ko),oe("NNN",Ko),oe("NNNN",FT),oe("NNNNN",mT),Le(["N","NN","NNN","NNNN","NNNNN"],function(e,t,a,i){var n=a._locale.erasParse(e,i,a._strict);n?Ee(a).era=n:Ee(a).invalidEra=e}),oe("y",qi),oe("yy",qi),oe("yyy",qi),oe("yyyy",qi),oe("yo",pT),Le(["y","yy","yyy","yyyy"],lt),Le(["yo"],function(e,t,a,i){var n;a._locale._eraYearOrdinalRegex&&(n=e.match(a._locale._eraYearOrdinalRegex)),a._locale.eraYearOrdinalParse?t[lt]=a._locale.eraYearOrdinalParse(e,n):t[lt]=parseInt(e,10)});function oT(e,t){var a,i,n,r=this._eras||ka("en")._eras;for(a=0,i=r.length;a=0)return r[i]}function lT(e,t){var a=e.since<=e.until?1:-1;return t===void 0?ae(e.since).year():ae(e.since).year()+(t-e.offset)*a}function uT(){var e,t,a,i=this.localeData().eras();for(e=0,t=i.length;er&&(t=r),ST.call(this,e,t,a,i,n))}function ST(e,t,a,i,n){var r=Fh(e,t,a,i,n),o=r0(r.year,0,r.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}_e("Q",0,"Qo","quarter"),ut("quarter","Q"),dt("quarter",7),oe("Q",dh),Le("Q",function(e,t){t[ga]=(Ae(e)-1)*3});function kT(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}_e("D",["DD",2],"Do","date"),ut("date","D"),dt("date",9),oe("D",Ge),oe("DD",Ge,Rt),oe("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),Le(["D","DD"],ea),Le("Do",function(e,t){t[ea]=Ae(e.match(Ge)[0])});var _d=Dn("Date",!0);_e("DDD",["DDDD",3],"DDDo","dayOfYear"),ut("dayOfYear","DDD"),dt("dayOfYear",4),oe("DDD",Q0),oe("DDDD",ch),Le(["DDD","DDDD"],function(e,t,a){a._dayOfYear=Ae(e)});function vT(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}_e("m",["mm",2],0,"minute"),ut("minute","m"),dt("minute",14),oe("m",Ge),oe("mm",Ge,Rt),Le(["m","mm"],Gt);var RT=Dn("Minutes",!1);_e("s",["ss",2],0,"second"),ut("second","s"),dt("second",15),oe("s",Ge),oe("ss",Ge,Rt),Le(["s","ss"],_a);var NT=Dn("Seconds",!1);_e("S",0,0,function(){return~~(this.millisecond()/100)}),_e(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),_e(0,["SSS",3],0,"millisecond"),_e(0,["SSSS",4],0,function(){return this.millisecond()*10}),_e(0,["SSSSS",5],0,function(){return this.millisecond()*100}),_e(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),_e(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),_e(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),_e(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),ut("millisecond","ms"),dt("millisecond",16),oe("S",Q0,dh),oe("SS",Q0,Rt),oe("SSS",Q0,ch);var qa,Ch;for(qa="SSSS";qa.length<=9;qa+="S")oe(qa,qi);function wT(e,t){t[pi]=Ae(("0."+e)*1e3)}for(qa="S";qa.length<=9;qa+="S")Le(qa,wT);Ch=Dn("Milliseconds",!1),_e("z",0,0,"zoneAbbr"),_e("zz",0,0,"zoneName");function OT(){return this._isUTC?"UTC":""}function xT(){return this._isUTC?"Coordinated Universal Time":""}var Q=p0.prototype;Q.add=Ap,Q.calendar=Op,Q.clone=xp,Q.diff=Ip,Q.endOf=Wp,Q.format=Up,Q.from=qp,Q.fromNow=Hp,Q.to=zp,Q.toNow=Vp,Q.get=CF,Q.invalidAt=nT,Q.isAfter=Bp,Q.isBefore=Cp,Q.isBetween=Mp,Q.isSame=Yp,Q.isSameOrAfter=Lp,Q.isSameOrBefore=Zp,Q.isValid=aT,Q.lang=Rh,Q.locale=vh,Q.localeData=Nh,Q.max=ap,Q.min=tp,Q.parsingFlags=iT,Q.set=MF,Q.startOf=$p,Q.subtract=Sp,Q.toArray=Xp,Q.toObject=eT,Q.toDate=Kp,Q.toISOString=Pp,Q.inspect=Gp,typeof Symbol<"u"&&Symbol.for!=null&&(Q[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Q.toJSON=tT,Q.toString=jp,Q.unix=Jp,Q.valueOf=Qp,Q.creationData=rT,Q.eraName=uT,Q.eraNarrow=dT,Q.eraAbbr=cT,Q.eraYear=hT,Q.year=ld,Q.isLeapYear=em,Q.weekYear=TT,Q.isoWeekYear=DT,Q.quarter=Q.quarters=kT,Q.month=sd,Q.daysInMonth=JF,Q.week=Q.weeks=om,Q.isoWeek=Q.isoWeeks=sm,Q.weeksInYear=yT,Q.weeksInWeekYear=AT,Q.isoWeeksInYear=ET,Q.isoWeeksInISOWeekYear=bT,Q.date=_d,Q.day=Q.days=Dm,Q.weekday=Em,Q.isoWeekday=bm,Q.dayOfYear=vT,Q.hour=Q.hours=Nm,Q.minute=Q.minutes=RT,Q.second=Q.seconds=NT,Q.millisecond=Q.milliseconds=Ch,Q.utcOffset=cp,Q.utc=fp,Q.local=gp,Q.parseZone=_p,Q.hasAlignedHourOffset=Fp,Q.isDST=mp,Q.isLocal=Tp,Q.isUtcOffset=Dp,Q.isUtc=fd,Q.isUTC=fd,Q.zoneAbbr=OT,Q.zoneName=xT,Q.dates=Mt("dates accessor is deprecated. Use date instead.",_d),Q.months=Mt("months accessor is deprecated. Use month instead",sd),Q.years=Mt("years accessor is deprecated. Use year instead",ld),Q.zone=Mt("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",hp),Q.isDSTShifted=Mt("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",pp);function BT(e){return Ue(e*1e3)}function CT(){return Ue.apply(null,arguments).parseZone()}function Fd(e){return e}var Oe=zl.prototype;Oe.calendar=DF,Oe.longDateFormat=AF,Oe.invalidDate=kF,Oe.ordinal=NF,Oe.preparse=Fd,Oe.postformat=Fd,Oe.relativeTime=OF,Oe.pastFuture=xF,Oe.set=pF,Oe.eras=oT,Oe.erasParse=sT,Oe.erasConvertYear=lT,Oe.erasAbbrRegex=gT,Oe.erasNameRegex=fT,Oe.erasNarrowRegex=_T,Oe.months=VF,Oe.monthsShort=$F,Oe.monthsParse=QF,Oe.monthsRegex=XF,Oe.monthsShortRegex=KF,Oe.week=am,Oe.firstDayOfYear=rm,Oe.firstDayOfWeek=nm,Oe.weekdays=_m,Oe.weekdaysMin=mm,Oe.weekdaysShort=Fm,Oe.weekdaysParse=Tm,Oe.weekdaysRegex=ym,Oe.weekdaysShortRegex=Am,Oe.weekdaysMinRegex=Sm,Oe.isPM=vm,Oe.meridiem=wm;function Ar(e,t,a,i){var n=ka(),r=la().set(i,t);return n[a](r,e)}function Mh(e,t,a){if(Ta(e)&&(t=e,e=void 0),e=e||"",t!=null)return Ar(e,t,a,"month");var i,n=[];for(i=0;i<12;i++)n[i]=Ar(e,i,a,"month");return n}function nu(e,t,a,i){typeof e=="boolean"?(Ta(t)&&(a=t,t=void 0),t=t||""):(t=e,a=t,e=!1,Ta(t)&&(a=t,t=void 0),t=t||"");var n=ka(),r=e?n._week.dow:0,o,s=[];if(a!=null)return Ar(t,(a+r)%7,i,"day");for(o=0;o<7;o++)s[o]=Ar(t,(o+r)%7,i,"day");return s}function MT(e,t){return Mh(e,t,"months")}function YT(e,t){return Mh(e,t,"monthsShort")}function LT(e,t,a){return nu(e,t,a,"weekdays")}function ZT(e,t,a){return nu(e,t,a,"weekdaysShort")}function IT(e,t,a){return nu(e,t,a,"weekdaysMin")}Ha("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,a=Ae(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+a}}),ae.lang=Mt("moment.lang is deprecated. Use moment.locale instead.",Ha),ae.langData=Mt("moment.langData is deprecated. Use moment.localeData instead.",ka);var ca=Math.abs;function jT(){var e=this._data;return this._milliseconds=ca(this._milliseconds),this._days=ca(this._days),this._months=ca(this._months),e.milliseconds=ca(e.milliseconds),e.seconds=ca(e.seconds),e.minutes=ca(e.minutes),e.hours=ca(e.hours),e.months=ca(e.months),e.years=ca(e.years),this}function Yh(e,t,a,i){var n=Ht(t,a);return e._milliseconds+=i*n._milliseconds,e._days+=i*n._days,e._months+=i*n._months,e._bubble()}function PT(e,t){return Yh(this,e,t,1)}function GT(e,t){return Yh(this,e,t,-1)}function md(e){return e<0?Math.floor(e):Math.ceil(e)}function UT(){var e=this._milliseconds,t=this._days,a=this._months,i=this._data,n,r,o,s,l;return e>=0&&t>=0&&a>=0||e<=0&&t<=0&&a<=0||(e+=md(zs(a)+t)*864e5,t=0,a=0),i.milliseconds=e%1e3,n=Bt(e/1e3),i.seconds=n%60,r=Bt(n/60),i.minutes=r%60,o=Bt(r/60),i.hours=o%24,t+=Bt(o/24),l=Bt(Lh(t)),a+=l,t-=md(zs(l)),s=Bt(a/12),a%=12,i.days=t,i.months=a,i.years=s,this}function Lh(e){return e*4800/146097}function zs(e){return e*146097/4800}function qT(e){if(!this.isValid())return NaN;var t,a,i=this._milliseconds;if(e=It(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+i/864e5,a=this._months+Lh(t),e){case"month":return a;case"quarter":return a/3;case"year":return a/12}else switch(t=this._days+Math.round(zs(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return t*24+i/36e5;case"minute":return t*1440+i/6e4;case"second":return t*86400+i/1e3;case"millisecond":return Math.floor(t*864e5)+i;default:throw new Error("Unknown unit "+e)}}function HT(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+Ae(this._months/12)*31536e6:NaN}function va(e){return function(){return this.as(e)}}var zT=va("ms"),VT=va("s"),$T=va("m"),WT=va("h"),QT=va("d"),JT=va("w"),KT=va("M"),XT=va("Q"),e2=va("y");function t2(){return Ht(this)}function a2(e){return e=It(e),this.isValid()?this[e+"s"]():NaN}function Ni(e){return function(){return this.isValid()?this._data[e]:NaN}}var i2=Ni("milliseconds"),n2=Ni("seconds"),r2=Ni("minutes"),o2=Ni("hours"),s2=Ni("days"),l2=Ni("months"),u2=Ni("years");function d2(){return Bt(this.days()/7)}var fa=Math.round,Hi={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function c2(e,t,a,i,n){return n.relativeTime(t||1,!!a,e,i)}function h2(e,t,a,i){var n=Ht(e).abs(),r=fa(n.as("s")),o=fa(n.as("m")),s=fa(n.as("h")),l=fa(n.as("d")),d=fa(n.as("M")),u=fa(n.as("w")),c=fa(n.as("y")),f=r<=a.ss&&["s",r]||r0,f[4]=i,c2.apply(null,f)}function f2(e){return e===void 0?fa:typeof e=="function"?(fa=e,!0):!1}function g2(e,t){return Hi[e]===void 0?!1:t===void 0?Hi[e]:(Hi[e]=t,e==="s"&&(Hi.ss=t-1),!0)}function _2(e,t){if(!this.isValid())return this.localeData().invalidDate();var a=!1,i=Hi,n,r;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(a=e),typeof t=="object"&&(i=Object.assign({},Hi,t),t.s!=null&&t.ss==null&&(i.ss=t.s-1)),n=this.localeData(),r=h2(this,!a,i,n),a&&(r=n.pastFuture(+this,r)),n.postformat(r)}var Xo=Math.abs;function xi(e){return(e>0)-(e<0)||+e}function w0(){if(!this.isValid())return this.localeData().invalidDate();var e=Xo(this._milliseconds)/1e3,t=Xo(this._days),a=Xo(this._months),i,n,r,o,s=this.asSeconds(),l,d,u,c;return s?(i=Bt(e/60),n=Bt(i/60),e%=60,i%=60,r=Bt(a/12),a%=12,o=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",d=xi(this._months)!==xi(s)?"-":"",u=xi(this._days)!==xi(s)?"-":"",c=xi(this._milliseconds)!==xi(s)?"-":"",l+"P"+(r?d+r+"Y":"")+(a?d+a+"M":"")+(t?u+t+"D":"")+(n||i||e?"T":"")+(n?c+n+"H":"")+(i?c+i+"M":"")+(e?c+o+"S":"")):"P0D"}var Ne=Fo.prototype;Ne.isValid=sp,Ne.abs=jT,Ne.add=PT,Ne.subtract=GT,Ne.as=qT,Ne.asMilliseconds=zT,Ne.asSeconds=VT,Ne.asMinutes=$T,Ne.asHours=WT,Ne.asDays=QT,Ne.asWeeks=JT,Ne.asMonths=KT,Ne.asQuarters=XT,Ne.asYears=e2,Ne.valueOf=HT,Ne._bubble=UT,Ne.clone=t2,Ne.get=a2,Ne.milliseconds=i2,Ne.seconds=n2,Ne.minutes=r2,Ne.hours=o2,Ne.days=s2,Ne.weeks=d2,Ne.months=l2,Ne.years=u2,Ne.humanize=_2,Ne.toISOString=w0,Ne.toString=w0,Ne.toJSON=w0,Ne.locale=vh,Ne.localeData=Nh,Ne.toIsoString=Mt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",w0),Ne.lang=Rh,_e("X",0,0,"unix"),_e("x",0,0,"valueOf"),oe("x",Tr),oe("X",LF),Le("X",function(e,t,a){a._d=new Date(parseFloat(e)*1e3)}),Le("x",function(e,t,a){a._d=new Date(Ae(e))});ae.version="2.29.4",FF(Ue),ae.fn=Q,ae.min=ip,ae.max=np,ae.now=rp,ae.utc=la,ae.unix=BT,ae.months=MT,ae.isDate=m0,ae.locale=Ha,ae.invalid=ho,ae.duration=Ht,ae.isMoment=qt,ae.weekdays=LT,ae.parseZone=CT,ae.localeData=ka,ae.isDuration=K0,ae.monthsShort=YT,ae.weekdaysMin=IT,ae.defineLocale=Jl,ae.updateLocale=Cm,ae.locales=Mm,ae.weekdaysShort=ZT,ae.normalizeUnits=It,ae.relativeTimeRounding=f2,ae.relativeTimeThreshold=g2,ae.calendarFormat=wp,ae.prototype=Q,ae.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const F2=Object.freeze(Object.defineProperty({__proto__:null,default:ae},Symbol.toStringTag,{value:"Module"})),m2=Ml(F2),p2=Ml(x_);(function(e,t){(function(a,i){e.exports=i()})(self,function(){return function(){var a={n:function(f){var h=f&&f.__esModule?function(){return f.default}:function(){return f};return a.d(h,{a:h}),h},d:function(f,h){for(var _ in h)a.o(h,_)&&!a.o(f,_)&&Object.defineProperty(f,_,{enumerable:!0,get:h[_]})},o:function(f,h){return Object.prototype.hasOwnProperty.call(f,h)},r:function(f){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(f,"__esModule",{value:!0})}},i={};a.r(i),a.d(i,{default:function(){return c}});var n=m2,r=a.n(n),o=Q_(),s=a.n(o),l=p2,d=new(s()),u=(0,l.getLocale)();[{locale:"ar",json:{charset:"utf-8",headers:{"Last-Translator":"Ali , 2023","Language-Team":"Arabic (https://app.transifex.com/nextcloud/teams/64236/ar/)","Content-Type":"text/plain; charset=UTF-8",Language:"ar","Plural-Forms":"nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;"},translations:{"":{"":{msgid:"",comments:{translator:` +`+new Error().stack),a=!1}return t.apply(this,arguments)},t)}var sd={};function dh(e,t){ae.deprecationHandler!=null&&ae.deprecationHandler(e,t),sd[e]||(uh(t),sd[e]=!0)}ae.suppressDeprecationWarnings=!1,ae.deprecationHandler=null;function da(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function AF(e){var t,a;for(a in e)xe(e,a)&&(t=e[a],da(t)?this[a]=t:this["_"+a]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Ps(e,t){var a=qa({},e),i;for(i in t)xe(t,i)&&(Ei(e[i])&&Ei(t[i])?(a[i]={},qa(a[i],e[i]),qa(a[i],t[i])):t[i]!=null?a[i]=t[i]:delete a[i]);for(i in e)xe(e,i)&&!xe(t,i)&&Ei(e[i])&&(a[i]=qa({},a[i]));return a}function $l(e){e!=null&&this.set(e)}var Gs;Object.keys?Gs=Object.keys:Gs=function(e){var t,a=[];for(t in e)xe(e,t)&&a.push(t);return a};var SF={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function kF(e,t,a){var i=this._calendar[e]||this._calendar.sameElse;return da(i)?i.call(t,a):i}function ea(e,t,a){var i=""+Math.abs(e),n=t-i.length,r=e>=0;return(r?a?"+":"":"-")+Math.pow(10,Math.max(0,n)).toString().substr(1)+i}var Wl=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,N0=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Ko={},Ki={};function _e(e,t,a,i){var n=i;typeof i=="string"&&(n=function(){return this[i]()}),e&&(Ki[e]=n),t&&(Ki[t[0]]=function(){return ea(n.apply(this,arguments),t[1],t[2])}),a&&(Ki[a]=function(){return this.localeData().ordinal(n.apply(this,arguments),e)})}function vF(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function RF(e){var t=e.match(Wl),a,i;for(a=0,i=t.length;a=0&&N0.test(e);)e=e.replace(N0,i),N0.lastIndex=0,a-=1;return e}var NF={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function wF(e){var t=this._longDateFormat[e],a=this._longDateFormat[e.toUpperCase()];return t||!a?t:(this._longDateFormat[e]=a.match(Wl).map(function(i){return i==="MMMM"||i==="MM"||i==="DD"||i==="dddd"?i.slice(1):i}).join(""),this._longDateFormat[e])}var OF="Invalid date";function xF(){return this._invalidDate}var BF="%d",CF=/\d{1,2}/;function MF(e){return this._ordinal.replace("%d",e)}var YF={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function LF(e,t,a,i){var n=this._relativeTime[a];return da(n)?n(e,t,a,i):n.replace(/%d/i,e)}function ZF(e,t){var a=this._relativeTime[e>0?"future":"past"];return da(a)?a(t):a.replace(/%s/i,t)}var Yn={};function dt(e,t){var a=e.toLowerCase();Yn[a]=Yn[a+"s"]=Yn[t]=e}function It(e){return typeof e=="string"?Yn[e]||Yn[e.toLowerCase()]:void 0}function Ql(e){var t={},a,i;for(i in e)xe(e,i)&&(a=It(i),a&&(t[a]=e[i]));return t}var hh={};function ct(e,t){hh[e]=t}function IF(e){var t=[],a;for(a in e)xe(e,a)&&t.push({unit:a,priority:hh[a]});return t.sort(function(i,n){return i.priority-n.priority}),t}function mo(e){return e%4===0&&e%100!==0||e%400===0}function Bt(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Ae(e){var t=+e,a=0;return t!==0&&isFinite(t)&&(a=Bt(t)),a}function En(e,t){return function(a){return a!=null?(fh(this,e,a),ae.updateOffset(this,t),this):Dr(this,e)}}function Dr(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function fh(e,t,a){e.isValid()&&!isNaN(a)&&(t==="FullYear"&&mo(e.year())&&e.month()===1&&e.date()===29?(a=Ae(a),e._d["set"+(e._isUTC?"UTC":"")+t](a,e.month(),po(a,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](a))}function jF(e){return e=It(e),da(this[e])?this[e]():this}function PF(e,t){if(typeof e=="object"){e=Ql(e);var a=IF(e),i,n=a.length;for(i=0;i68?1900:2e3)};var cd=En("FullYear",!0);function om(){return mo(this.year())}function sm(e,t,a,i,n,r,o){var s;return e<100&&e>=0?(s=new Date(e+400,t,a,i,n,r,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,a,i,n,r,o),s}function o0(e){var t,a;return e<100&&e>=0?(a=Array.prototype.slice.call(arguments),a[0]=e+400,t=new Date(Date.UTC.apply(null,a)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Sr(e,t,a){var i=7+t-a,n=(7+o0(e,0,i).getUTCDay()-t)%7;return-n+i-1}function Dh(e,t,a,i,n){var r=(7+a-i)%7,o=Sr(e,i,n),s=1+7*(t-1)+r+o,l,d;return s<=0?(l=e-1,d=Ln(l)+s):s>Ln(e)?(l=e+1,d=s-Ln(e)):(l=e,d=s),{year:l,dayOfYear:d}}function s0(e,t,a){var i=Sr(e.year(),t,a),n=Math.floor((e.dayOfYear()-i-1)/7)+1,r,o;return n<1?(o=e.year()-1,r=n+pa(o,t,a)):n>pa(e.year(),t,a)?(r=n-pa(e.year(),t,a),o=e.year()+1):(o=e.year(),r=n),{week:r,year:o}}function pa(e,t,a){var i=Sr(e,t,a),n=Sr(e+1,t,a);return(Ln(e)-i+n)/7}_e("w",["ww",2],"wo","week"),_e("W",["WW",2],"Wo","isoWeek"),dt("week","w"),dt("isoWeek","W"),ct("week",5),ct("isoWeek",5),oe("w",Ge),oe("ww",Ge,Rt),oe("W",Ge),oe("WW",Ge,Rt),r0(["w","ww","W","WW"],function(e,t,a,i){t[i.substr(0,1)]=Ae(e)});function lm(e){return s0(e,this._week.dow,this._week.doy).week}var um={dow:0,doy:6};function dm(){return this._week.dow}function cm(){return this._week.doy}function hm(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function fm(e){var t=s0(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}_e("d",0,"do","day"),_e("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),_e("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),_e("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),_e("e",0,0,"weekday"),_e("E",0,0,"isoWeekday"),dt("day","d"),dt("weekday","e"),dt("isoWeekday","E"),ct("day",11),ct("weekday",11),ct("isoWeekday",11),oe("d",Ge),oe("e",Ge),oe("E",Ge),oe("dd",function(e,t){return t.weekdaysMinRegex(e)}),oe("ddd",function(e,t){return t.weekdaysShortRegex(e)}),oe("dddd",function(e,t){return t.weekdaysRegex(e)}),r0(["dd","ddd","dddd"],function(e,t,a,i){var n=a._locale.weekdaysParse(e,i,a._strict);n!=null?t.d=n:Ee(a).invalidWeekday=e}),r0(["d","e","E"],function(e,t,a,i){t[i]=Ae(e)});function gm(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function _m(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Jl(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Fm="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Eh="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),mm="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),pm=D0,Tm=D0,Dm=D0;function Em(e,t){var a=Ut(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Jl(a,this._week.dow):e?a[e.day()]:a}function bm(e){return e===!0?Jl(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function ym(e){return e===!0?Jl(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Am(e,t,a){var i,n,r,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)r=ua([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(r,"").toLocaleLowerCase();return a?t==="dddd"?(n=Je.call(this._weekdaysParse,o),n!==-1?n:null):t==="ddd"?(n=Je.call(this._shortWeekdaysParse,o),n!==-1?n:null):(n=Je.call(this._minWeekdaysParse,o),n!==-1?n:null):t==="dddd"?(n=Je.call(this._weekdaysParse,o),n!==-1||(n=Je.call(this._shortWeekdaysParse,o),n!==-1)?n:(n=Je.call(this._minWeekdaysParse,o),n!==-1?n:null)):t==="ddd"?(n=Je.call(this._shortWeekdaysParse,o),n!==-1||(n=Je.call(this._weekdaysParse,o),n!==-1)?n:(n=Je.call(this._minWeekdaysParse,o),n!==-1?n:null)):(n=Je.call(this._minWeekdaysParse,o),n!==-1||(n=Je.call(this._weekdaysParse,o),n!==-1)?n:(n=Je.call(this._shortWeekdaysParse,o),n!==-1?n:null))}function Sm(e,t,a){var i,n,r;if(this._weekdaysParseExact)return Am.call(this,e,t,a);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++)if(n=ua([2e3,1]).day(i),a&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(n,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(n,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(n,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(r="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[i]=new RegExp(r.replace(".",""),"i")),a&&t==="dddd"&&this._fullWeekdaysParse[i].test(e)||a&&t==="ddd"&&this._shortWeekdaysParse[i].test(e)||a&&t==="dd"&&this._minWeekdaysParse[i].test(e)||!a&&this._weekdaysParse[i].test(e))return i}function km(e){if(!this.isValid())return e!=null?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return e!=null?(e=gm(e,this.localeData()),this.add(e-t,"d")):t}function vm(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Rm(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=_m(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Nm(e){return this._weekdaysParseExact?(xe(this,"_weekdaysRegex")||Kl.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(xe(this,"_weekdaysRegex")||(this._weekdaysRegex=pm),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function wm(e){return this._weekdaysParseExact?(xe(this,"_weekdaysRegex")||Kl.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(xe(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Tm),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Om(e){return this._weekdaysParseExact?(xe(this,"_weekdaysRegex")||Kl.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(xe(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Dm),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Kl(){function e(u,c){return c.length-u.length}var t=[],a=[],i=[],n=[],r,o,s,l,d;for(r=0;r<7;r++)o=ua([2e3,1]).day(r),s=St(this.weekdaysMin(o,"")),l=St(this.weekdaysShort(o,"")),d=St(this.weekdays(o,"")),t.push(s),a.push(l),i.push(d),n.push(s),n.push(l),n.push(d);t.sort(e),a.sort(e),i.sort(e),n.sort(e),this._weekdaysRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Xo(){return this.hours()%12||12}function xm(){return this.hours()||24}_e("H",["HH",2],0,"hour"),_e("h",["hh",2],0,Xo),_e("k",["kk",2],0,xm),_e("hmm",0,0,function(){return""+Xo.apply(this)+ea(this.minutes(),2)}),_e("hmmss",0,0,function(){return""+Xo.apply(this)+ea(this.minutes(),2)+ea(this.seconds(),2)}),_e("Hmm",0,0,function(){return""+this.hours()+ea(this.minutes(),2)}),_e("Hmmss",0,0,function(){return""+this.hours()+ea(this.minutes(),2)+ea(this.seconds(),2)});function hd(e,t){_e(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}hd("a",!0),hd("A",!1),dt("hour","h"),ct("hour",13);function fd(e,t){return t._meridiemParse}oe("a",fd),oe("A",fd),oe("H",Ge),oe("h",Ge),oe("k",Ge),oe("HH",Ge,Rt),oe("hh",Ge,Rt),oe("kk",Ge,Rt),oe("hmm",ld),oe("hmmss",ud),oe("Hmm",ld),oe("Hmmss",ud),Le(["H","HH"],at),Le(["k","kk"],function(e,t,a){var i=Ae(e);t[at]=i===24?0:i}),Le(["a","A"],function(e,t,a){a._isPm=a._locale.isPM(e),a._meridiem=e}),Le(["h","hh"],function(e,t,a){t[at]=Ae(e),Ee(a).bigHour=!0}),Le("hmm",function(e,t,a){var i=e.length-2;t[at]=Ae(e.substr(0,i)),t[Gt]=Ae(e.substr(i)),Ee(a).bigHour=!0}),Le("hmmss",function(e,t,a){var i=e.length-4,n=e.length-2;t[at]=Ae(e.substr(0,i)),t[Gt]=Ae(e.substr(i,2)),t[Fa]=Ae(e.substr(n)),Ee(a).bigHour=!0}),Le("Hmm",function(e,t,a){var i=e.length-2;t[at]=Ae(e.substr(0,i)),t[Gt]=Ae(e.substr(i))}),Le("Hmmss",function(e,t,a){var i=e.length-4,n=e.length-2;t[at]=Ae(e.substr(0,i)),t[Gt]=Ae(e.substr(i,2)),t[Fa]=Ae(e.substr(n))});function Bm(e){return(e+"").toLowerCase().charAt(0)==="p"}var Cm=/[ap]\.?m?\.?/i,Mm=En("Hours",!0);function Ym(e,t,a){return e>11?a?"pm":"PM":a?"am":"AM"}var bh={calendar:SF,longDateFormat:NF,invalidDate:OF,ordinal:BF,dayOfMonthOrdinalParse:CF,relativeTime:YF,months:QF,monthsShort:Fh,week:um,weekdays:Fm,weekdaysMin:mm,weekdaysShort:Eh,meridiemParse:Cm},He={},Sn={},l0;function Lm(e,t){var a,i=Math.min(e.length,t.length);for(a=0;a0;){if(n=To(r.slice(0,a).join("-")),n)return n;if(i&&i.length>=a&&Lm(r,i)>=a-1)break;a--}t++}return l0}function Im(e){return e.match("^[^/\\\\]*$")!=null}function To(e){var t=null,a;if(He[e]===void 0&&typeof module<"u"&&module&&module.exports&&Im(e))try{t=l0._abbr,a=require,a("./locale/"+e),za(t)}catch{He[e]=null}return He[e]}function za(e,t){var a;return e&&(mt(t)?a=va(e):a=Xl(e,t),a?l0=a:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),l0._abbr}function Xl(e,t){if(t!==null){var a,i=bh;if(t.abbr=e,He[e]!=null)dh("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=He[e]._config;else if(t.parentLocale!=null)if(He[t.parentLocale]!=null)i=He[t.parentLocale]._config;else if(a=To(t.parentLocale),a!=null)i=a._config;else return Sn[t.parentLocale]||(Sn[t.parentLocale]=[]),Sn[t.parentLocale].push({name:e,config:t}),null;return He[e]=new $l(Ps(i,t)),Sn[e]&&Sn[e].forEach(function(n){Xl(n.name,n.config)}),za(e),He[e]}else return delete He[e],null}function jm(e,t){if(t!=null){var a,i,n=bh;He[e]!=null&&He[e].parentLocale!=null?He[e].set(Ps(He[e]._config,t)):(i=To(e),i!=null&&(n=i._config),t=Ps(n,t),i==null&&(t.abbr=e),a=new $l(t),a.parentLocale=He[e],He[e]=a),za(e)}else He[e]!=null&&(He[e].parentLocale!=null?(He[e]=He[e].parentLocale,e===za()&&za(e)):He[e]!=null&&delete He[e]);return He[e]}function va(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return l0;if(!Ut(e)){if(t=To(e),t)return t;e=[e]}return Zm(e)}function Pm(){return Gs(He)}function eu(e){var t,a=e._a;return a&&Ee(e).overflow===-2&&(t=a[_a]<0||a[_a]>11?_a:a[ta]<1||a[ta]>po(a[lt],a[_a])?ta:a[at]<0||a[at]>24||a[at]===24&&(a[Gt]!==0||a[Fa]!==0||a[pi]!==0)?at:a[Gt]<0||a[Gt]>59?Gt:a[Fa]<0||a[Fa]>59?Fa:a[pi]<0||a[pi]>999?pi:-1,Ee(e)._overflowDayOfYear&&(tta)&&(t=ta),Ee(e)._overflowWeeks&&t===-1&&(t=VF),Ee(e)._overflowWeekday&&t===-1&&(t=$F),Ee(e).overflow=t),e}var Gm=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Um=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,qm=/Z|[+-]\d\d(?::?\d\d)?/,w0=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],es=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Hm=/^\/?Date\((-?\d+)/i,zm=/^(?:(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{4}))$/,Vm={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function yh(e){var t,a,i=e._i,n=Gm.exec(i)||Um.exec(i),r,o,s,l,d=w0.length,u=es.length;if(n){for(Ee(e).iso=!0,t=0,a=d;tLn(o)||e._dayOfYear===0)&&(Ee(e)._overflowDayOfYear=!0),a=o0(o,0,e._dayOfYear),e._a[_a]=a.getUTCMonth(),e._a[ta]=a.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=i[t]=n[t];for(;t<7;t++)e._a[t]=i[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[at]===24&&e._a[Gt]===0&&e._a[Fa]===0&&e._a[pi]===0&&(e._nextDay=!0,e._a[at]=0),e._d=(e._useUTC?o0:sm).apply(null,i),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[at]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==r&&(Ee(e).weekdayMismatch=!0)}}function tp(e){var t,a,i,n,r,o,s,l,d;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(r=1,o=4,a=ji(t.GG,e._a[lt],s0(Ue(),1,4).year),i=ji(t.W,1),n=ji(t.E,1),(n<1||n>7)&&(l=!0)):(r=e._locale._week.dow,o=e._locale._week.doy,d=s0(Ue(),r,o),a=ji(t.gg,e._a[lt],d.year),i=ji(t.w,d.week),t.d!=null?(n=t.d,(n<0||n>6)&&(l=!0)):t.e!=null?(n=t.e+r,(t.e<0||t.e>6)&&(l=!0)):n=r),i<1||i>pa(a,r,o)?Ee(e)._overflowWeeks=!0:l!=null?Ee(e)._overflowWeekday=!0:(s=Dh(a,i,n,r,o),e._a[lt]=s.year,e._dayOfYear=s.dayOfYear)}ae.ISO_8601=function(){},ae.RFC_2822=function(){};function au(e){if(e._f===ae.ISO_8601){yh(e);return}if(e._f===ae.RFC_2822){Ah(e);return}e._a=[],Ee(e).empty=!0;var t=""+e._i,a,i,n,r,o,s=t.length,l=0,d,u;for(n=ch(e._f,e._locale).match(Wl)||[],u=n.length,a=0;a0&&Ee(e).unusedInput.push(o),t=t.slice(t.indexOf(i)+i.length),l+=i.length),Ki[r]?(i?Ee(e).empty=!1:Ee(e).unusedTokens.push(r),zF(r,i,e)):e._strict&&!i&&Ee(e).unusedTokens.push(r);Ee(e).charsLeftOver=s-l,t.length>0&&Ee(e).unusedInput.push(t),e._a[at]<=12&&Ee(e).bigHour===!0&&e._a[at]>0&&(Ee(e).bigHour=void 0),Ee(e).parsedDateParts=e._a.slice(0),Ee(e).meridiem=e._meridiem,e._a[at]=ap(e._locale,e._a[at],e._meridiem),d=Ee(e).era,d!==null&&(e._a[lt]=e._locale.erasConvertYear(d,e._a[lt])),tu(e),eu(e)}function ap(e,t,a){var i;return a==null?t:e.meridiemHour!=null?e.meridiemHour(t,a):(e.isPM!=null&&(i=e.isPM(a),i&&t<12&&(t+=12),!i&&t===12&&(t=0)),t)}function ip(e){var t,a,i,n,r,o,s=!1,l=e._f.length;if(l===0){Ee(e).invalidFormat=!0,e._d=new Date(NaN);return}for(n=0;nthis?this:e:Fo()});function vh(e,t){var a,i;if(t.length===1&&Ut(t[0])&&(t=t[0]),!t.length)return Ue();for(a=t[0],i=1;ithis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ap(){if(!mt(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Vl(e,this),e=Sh(e),e._a?(t=e._isUTC?ua(e._a):Ue(e._a),this._isDSTShifted=this.isValid()&&_p(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Sp(){return this.isValid()?!this._isUTC:!1}function kp(){return this.isValid()?this._isUTC:!1}function Fd(){return this.isValid()?this._isUTC&&this._offset===0:!1}var vp=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Rp=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ht(e,t){var a=e,i=null,n,r,o;return er(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:Da(e)||!isNaN(+e)?(a={},t?a[t]=+e:a.milliseconds=+e):(i=vp.exec(e))?(n=i[1]==="-"?-1:1,a={y:0,d:Ae(i[ta])*n,h:Ae(i[at])*n,m:Ae(i[Gt])*n,s:Ae(i[Fa])*n,ms:Ae(zs(i[pi]*1e3))*n}):(i=Rp.exec(e))?(n=i[1]==="-"?-1:1,a={y:si(i[2],n),M:si(i[3],n),w:si(i[4],n),d:si(i[5],n),h:si(i[6],n),m:si(i[7],n),s:si(i[8],n)}):a==null?a={}:typeof a=="object"&&("from"in a||"to"in a)&&(o=Np(Ue(a.from),Ue(a.to)),a={},a.ms=o.milliseconds,a.M=o.months),r=new Do(a),er(e)&&xe(e,"_locale")&&(r._locale=e._locale),er(e)&&xe(e,"_isValid")&&(r._isValid=e._isValid),r}Ht.fn=Do.prototype,Ht.invalid=gp;function si(e,t){var a=e&&parseFloat(e.replace(",","."));return(isNaN(a)?0:a)*t}function md(e,t){var a={};return a.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(a.months,"M").isAfter(t)&&--a.months,a.milliseconds=+t-+e.clone().add(a.months,"M"),a}function Np(e,t){var a;return e.isValid()&&t.isValid()?(t=nu(t,e),e.isBefore(t)?a=md(e,t):(a=md(t,e),a.milliseconds=-a.milliseconds,a.months=-a.months),a):{milliseconds:0,months:0}}function Rh(e,t){return function(a,i){var n,r;return i!==null&&!isNaN(+i)&&(dh(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=a,a=i,i=r),n=Ht(a,i),Nh(this,n,e),this}}function Nh(e,t,a,i){var n=t._milliseconds,r=zs(t._days),o=zs(t._months);e.isValid()&&(i=i??!0,o&&ph(e,Dr(e,"Month")+o*a),r&&fh(e,"Date",Dr(e,"Date")+r*a),n&&e._d.setTime(e._d.valueOf()+n*a),i&&ae.updateOffset(e,r||o))}var wp=Rh(1,"add"),Op=Rh(-1,"subtract");function wh(e){return typeof e=="string"||e instanceof String}function xp(e){return qt(e)||p0(e)||wh(e)||Da(e)||Cp(e)||Bp(e)||e===null||e===void 0}function Bp(e){var t=Ei(e)&&!Hl(e),a=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],n,r,o=i.length;for(n=0;na.valueOf():a.valueOf()9999?J0(a,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):da(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",J0(a,"Z")):J0(a,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function $p(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",a,i,n,r;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),a="["+e+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=t+'[")]',this.format(a+i+n+r)}function Wp(e){e||(e=this.isUtc()?ae.defaultFormatUtc:ae.defaultFormat);var t=J0(this,e);return this.localeData().postformat(t)}function Qp(e,t){return this.isValid()&&(qt(e)&&e.isValid()||Ue(e).isValid())?Ht({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Jp(e){return this.from(Ue(),e)}function Kp(e,t){return this.isValid()&&(qt(e)&&e.isValid()||Ue(e).isValid())?Ht({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Xp(e){return this.to(Ue(),e)}function Oh(e){var t;return e===void 0?this._locale._abbr:(t=va(e),t!=null&&(this._locale=t),this)}var xh=Mt("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function Bh(){return this._locale}var kr=1e3,Xi=60*kr,vr=60*Xi,Ch=(365*400+97)*24*vr;function en(e,t){return(e%t+t)%t}function Mh(e,t,a){return e<100&&e>=0?new Date(e+400,t,a)-Ch:new Date(e,t,a).valueOf()}function Yh(e,t,a){return e<100&&e>=0?Date.UTC(e+400,t,a)-Ch:Date.UTC(e,t,a)}function eT(e){var t,a;if(e=It(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(a=this._isUTC?Yh:Mh,e){case"year":t=a(this.year(),0,1);break;case"quarter":t=a(this.year(),this.month()-this.month()%3,1);break;case"month":t=a(this.year(),this.month(),1);break;case"week":t=a(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=a(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=a(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=en(t+(this._isUTC?0:this.utcOffset()*Xi),vr);break;case"minute":t=this._d.valueOf(),t-=en(t,Xi);break;case"second":t=this._d.valueOf(),t-=en(t,kr);break}return this._d.setTime(t),ae.updateOffset(this,!0),this}function tT(e){var t,a;if(e=It(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(a=this._isUTC?Yh:Mh,e){case"year":t=a(this.year()+1,0,1)-1;break;case"quarter":t=a(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=a(this.year(),this.month()+1,1)-1;break;case"week":t=a(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=a(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=a(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=vr-en(t+(this._isUTC?0:this.utcOffset()*Xi),vr)-1;break;case"minute":t=this._d.valueOf(),t+=Xi-en(t,Xi)-1;break;case"second":t=this._d.valueOf(),t+=kr-en(t,kr)-1;break}return this._d.setTime(t),ae.updateOffset(this,!0),this}function aT(){return this._d.valueOf()-(this._offset||0)*6e4}function iT(){return Math.floor(this.valueOf()/1e3)}function nT(){return new Date(this.valueOf())}function rT(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function oT(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function sT(){return this.isValid()?this.toISOString():null}function lT(){return zl(this)}function uT(){return qa({},Ee(this))}function dT(){return Ee(this).overflow}function cT(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}_e("N",0,0,"eraAbbr"),_e("NN",0,0,"eraAbbr"),_e("NNN",0,0,"eraAbbr"),_e("NNNN",0,0,"eraName"),_e("NNNNN",0,0,"eraNarrow"),_e("y",["y",1],"yo","eraYear"),_e("y",["yy",2],0,"eraYear"),_e("y",["yyy",3],0,"eraYear"),_e("y",["yyyy",4],0,"eraYear"),oe("N",ts),oe("NN",ts),oe("NNN",ts),oe("NNNN",bT),oe("NNNNN",yT),Le(["N","NN","NNN","NNNN","NNNNN"],function(e,t,a,i){var n=a._locale.erasParse(e,i,a._strict);n?Ee(a).era=n:Ee(a).invalidEra=e}),oe("y",qi),oe("yy",qi),oe("yyy",qi),oe("yyyy",qi),oe("yo",AT),Le(["y","yy","yyy","yyyy"],lt),Le(["yo"],function(e,t,a,i){var n;a._locale._eraYearOrdinalRegex&&(n=e.match(a._locale._eraYearOrdinalRegex)),a._locale.eraYearOrdinalParse?t[lt]=a._locale.eraYearOrdinalParse(e,n):t[lt]=parseInt(e,10)});function hT(e,t){var a,i,n,r=this._eras||va("en")._eras;for(a=0,i=r.length;a=0)return r[i]}function gT(e,t){var a=e.since<=e.until?1:-1;return t===void 0?ae(e.since).year():ae(e.since).year()+(t-e.offset)*a}function _T(){var e,t,a,i=this.localeData().eras();for(e=0,t=i.length;er&&(t=r),OT.call(this,e,t,a,i,n))}function OT(e,t,a,i,n){var r=Dh(e,t,a,i,n),o=o0(r.year,0,r.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}_e("Q",0,"Qo","quarter"),dt("quarter","Q"),ct("quarter",7),oe("Q",gh),Le("Q",function(e,t){t[_a]=(Ae(e)-1)*3});function xT(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}_e("D",["DD",2],"Do","date"),dt("date","D"),ct("date",9),oe("D",Ge),oe("DD",Ge,Rt),oe("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),Le(["D","DD"],ta),Le("Do",function(e,t){t[ta]=Ae(e.match(Ge)[0])});var pd=En("Date",!0);_e("DDD",["DDDD",3],"DDDo","dayOfYear"),dt("dayOfYear","DDD"),ct("dayOfYear",4),oe("DDD",K0),oe("DDDD",_h),Le(["DDD","DDDD"],function(e,t,a){a._dayOfYear=Ae(e)});function BT(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}_e("m",["mm",2],0,"minute"),dt("minute","m"),ct("minute",14),oe("m",Ge),oe("mm",Ge,Rt),Le(["m","mm"],Gt);var CT=En("Minutes",!1);_e("s",["ss",2],0,"second"),dt("second","s"),ct("second",15),oe("s",Ge),oe("ss",Ge,Rt),Le(["s","ss"],Fa);var MT=En("Seconds",!1);_e("S",0,0,function(){return~~(this.millisecond()/100)}),_e(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),_e(0,["SSS",3],0,"millisecond"),_e(0,["SSSS",4],0,function(){return this.millisecond()*10}),_e(0,["SSSSS",5],0,function(){return this.millisecond()*100}),_e(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),_e(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),_e(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),_e(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),dt("millisecond","ms"),ct("millisecond",16),oe("S",K0,gh),oe("SS",K0,Rt),oe("SSS",K0,_h);var Ha,Zh;for(Ha="SSSS";Ha.length<=9;Ha+="S")oe(Ha,qi);function YT(e,t){t[pi]=Ae(("0."+e)*1e3)}for(Ha="S";Ha.length<=9;Ha+="S")Le(Ha,YT);Zh=En("Milliseconds",!1),_e("z",0,0,"zoneAbbr"),_e("zz",0,0,"zoneName");function LT(){return this._isUTC?"UTC":""}function ZT(){return this._isUTC?"Coordinated Universal Time":""}var Q=T0.prototype;Q.add=wp,Q.calendar=Lp,Q.clone=Zp,Q.diff=Hp,Q.endOf=tT,Q.format=Wp,Q.from=Qp,Q.fromNow=Jp,Q.to=Kp,Q.toNow=Xp,Q.get=jF,Q.invalidAt=dT,Q.isAfter=Ip,Q.isBefore=jp,Q.isBetween=Pp,Q.isSame=Gp,Q.isSameOrAfter=Up,Q.isSameOrBefore=qp,Q.isValid=lT,Q.lang=xh,Q.locale=Oh,Q.localeData=Bh,Q.max=lp,Q.min=sp,Q.parsingFlags=uT,Q.set=PF,Q.startOf=eT,Q.subtract=Op,Q.toArray=rT,Q.toObject=oT,Q.toDate=nT,Q.toISOString=Vp,Q.inspect=$p,typeof Symbol<"u"&&Symbol.for!=null&&(Q[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Q.toJSON=sT,Q.toString=zp,Q.unix=iT,Q.valueOf=aT,Q.creationData=cT,Q.eraName=_T,Q.eraNarrow=FT,Q.eraAbbr=mT,Q.eraYear=pT,Q.year=cd,Q.isLeapYear=om,Q.weekYear=ST,Q.isoWeekYear=kT,Q.quarter=Q.quarters=xT,Q.month=dd,Q.daysInMonth=im,Q.week=Q.weeks=hm,Q.isoWeek=Q.isoWeeks=fm,Q.weeksInYear=NT,Q.weeksInWeekYear=wT,Q.isoWeeksInYear=vT,Q.isoWeeksInISOWeekYear=RT,Q.date=pd,Q.day=Q.days=km,Q.weekday=vm,Q.isoWeekday=Rm,Q.dayOfYear=BT,Q.hour=Q.hours=Mm,Q.minute=Q.minutes=CT,Q.second=Q.seconds=MT,Q.millisecond=Q.milliseconds=Zh,Q.utcOffset=mp,Q.utc=Tp,Q.local=Dp,Q.parseZone=Ep,Q.hasAlignedHourOffset=bp,Q.isDST=yp,Q.isLocal=Sp,Q.isUtcOffset=kp,Q.isUtc=Fd,Q.isUTC=Fd,Q.zoneAbbr=LT,Q.zoneName=ZT,Q.dates=Mt("dates accessor is deprecated. Use date instead.",pd),Q.months=Mt("months accessor is deprecated. Use month instead",dd),Q.years=Mt("years accessor is deprecated. Use year instead",cd),Q.zone=Mt("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",pp),Q.isDSTShifted=Mt("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Ap);function IT(e){return Ue(e*1e3)}function jT(){return Ue.apply(null,arguments).parseZone()}function Td(e){return e}var Oe=$l.prototype;Oe.calendar=kF,Oe.longDateFormat=wF,Oe.invalidDate=xF,Oe.ordinal=MF,Oe.preparse=Td,Oe.postformat=Td,Oe.relativeTime=LF,Oe.pastFuture=ZF,Oe.set=AF,Oe.eras=hT,Oe.erasParse=fT,Oe.erasConvertYear=gT,Oe.erasAbbrRegex=DT,Oe.erasNameRegex=TT,Oe.erasNarrowRegex=ET,Oe.months=XF,Oe.monthsShort=em,Oe.monthsParse=am,Oe.monthsRegex=rm,Oe.monthsShortRegex=nm,Oe.week=lm,Oe.firstDayOfYear=cm,Oe.firstDayOfWeek=dm,Oe.weekdays=Em,Oe.weekdaysMin=ym,Oe.weekdaysShort=bm,Oe.weekdaysParse=Sm,Oe.weekdaysRegex=Nm,Oe.weekdaysShortRegex=wm,Oe.weekdaysMinRegex=Om,Oe.isPM=Bm,Oe.meridiem=Ym;function Rr(e,t,a,i){var n=va(),r=ua().set(i,t);return n[a](r,e)}function Ih(e,t,a){if(Da(e)&&(t=e,e=void 0),e=e||"",t!=null)return Rr(e,t,a,"month");var i,n=[];for(i=0;i<12;i++)n[i]=Rr(e,i,a,"month");return n}function ou(e,t,a,i){typeof e=="boolean"?(Da(t)&&(a=t,t=void 0),t=t||""):(t=e,a=t,e=!1,Da(t)&&(a=t,t=void 0),t=t||"");var n=va(),r=e?n._week.dow:0,o,s=[];if(a!=null)return Rr(t,(a+r)%7,i,"day");for(o=0;o<7;o++)s[o]=Rr(t,(o+r)%7,i,"day");return s}function PT(e,t){return Ih(e,t,"months")}function GT(e,t){return Ih(e,t,"monthsShort")}function UT(e,t,a){return ou(e,t,a,"weekdays")}function qT(e,t,a){return ou(e,t,a,"weekdaysShort")}function HT(e,t,a){return ou(e,t,a,"weekdaysMin")}za("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,a=Ae(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+a}}),ae.lang=Mt("moment.lang is deprecated. Use moment.locale instead.",za),ae.langData=Mt("moment.langData is deprecated. Use moment.localeData instead.",va);var ha=Math.abs;function zT(){var e=this._data;return this._milliseconds=ha(this._milliseconds),this._days=ha(this._days),this._months=ha(this._months),e.milliseconds=ha(e.milliseconds),e.seconds=ha(e.seconds),e.minutes=ha(e.minutes),e.hours=ha(e.hours),e.months=ha(e.months),e.years=ha(e.years),this}function jh(e,t,a,i){var n=Ht(t,a);return e._milliseconds+=i*n._milliseconds,e._days+=i*n._days,e._months+=i*n._months,e._bubble()}function VT(e,t){return jh(this,e,t,1)}function $T(e,t){return jh(this,e,t,-1)}function Dd(e){return e<0?Math.floor(e):Math.ceil(e)}function WT(){var e=this._milliseconds,t=this._days,a=this._months,i=this._data,n,r,o,s,l;return e>=0&&t>=0&&a>=0||e<=0&&t<=0&&a<=0||(e+=Dd($s(a)+t)*864e5,t=0,a=0),i.milliseconds=e%1e3,n=Bt(e/1e3),i.seconds=n%60,r=Bt(n/60),i.minutes=r%60,o=Bt(r/60),i.hours=o%24,t+=Bt(o/24),l=Bt(Ph(t)),a+=l,t-=Dd($s(l)),s=Bt(a/12),a%=12,i.days=t,i.months=a,i.years=s,this}function Ph(e){return e*4800/146097}function $s(e){return e*146097/4800}function QT(e){if(!this.isValid())return NaN;var t,a,i=this._milliseconds;if(e=It(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+i/864e5,a=this._months+Ph(t),e){case"month":return a;case"quarter":return a/3;case"year":return a/12}else switch(t=this._days+Math.round($s(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return t*24+i/36e5;case"minute":return t*1440+i/6e4;case"second":return t*86400+i/1e3;case"millisecond":return Math.floor(t*864e5)+i;default:throw new Error("Unknown unit "+e)}}function JT(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+Ae(this._months/12)*31536e6:NaN}function Ra(e){return function(){return this.as(e)}}var KT=Ra("ms"),XT=Ra("s"),e2=Ra("m"),t2=Ra("h"),a2=Ra("d"),i2=Ra("w"),n2=Ra("M"),r2=Ra("Q"),o2=Ra("y");function s2(){return Ht(this)}function l2(e){return e=It(e),this.isValid()?this[e+"s"]():NaN}function Ni(e){return function(){return this.isValid()?this._data[e]:NaN}}var u2=Ni("milliseconds"),d2=Ni("seconds"),c2=Ni("minutes"),h2=Ni("hours"),f2=Ni("days"),g2=Ni("months"),_2=Ni("years");function F2(){return Bt(this.days()/7)}var ga=Math.round,Hi={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function m2(e,t,a,i,n){return n.relativeTime(t||1,!!a,e,i)}function p2(e,t,a,i){var n=Ht(e).abs(),r=ga(n.as("s")),o=ga(n.as("m")),s=ga(n.as("h")),l=ga(n.as("d")),d=ga(n.as("M")),u=ga(n.as("w")),c=ga(n.as("y")),f=r<=a.ss&&["s",r]||r0,f[4]=i,m2.apply(null,f)}function T2(e){return e===void 0?ga:typeof e=="function"?(ga=e,!0):!1}function D2(e,t){return Hi[e]===void 0?!1:t===void 0?Hi[e]:(Hi[e]=t,e==="s"&&(Hi.ss=t-1),!0)}function E2(e,t){if(!this.isValid())return this.localeData().invalidDate();var a=!1,i=Hi,n,r;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(a=e),typeof t=="object"&&(i=Object.assign({},Hi,t),t.s!=null&&t.ss==null&&(i.ss=t.s-1)),n=this.localeData(),r=p2(this,!a,i,n),a&&(r=n.pastFuture(+this,r)),n.postformat(r)}var as=Math.abs;function xi(e){return(e>0)-(e<0)||+e}function x0(){if(!this.isValid())return this.localeData().invalidDate();var e=as(this._milliseconds)/1e3,t=as(this._days),a=as(this._months),i,n,r,o,s=this.asSeconds(),l,d,u,c;return s?(i=Bt(e/60),n=Bt(i/60),e%=60,i%=60,r=Bt(a/12),a%=12,o=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",d=xi(this._months)!==xi(s)?"-":"",u=xi(this._days)!==xi(s)?"-":"",c=xi(this._milliseconds)!==xi(s)?"-":"",l+"P"+(r?d+r+"Y":"")+(a?d+a+"M":"")+(t?u+t+"D":"")+(n||i||e?"T":"")+(n?c+n+"H":"")+(i?c+i+"M":"")+(e?c+o+"S":"")):"P0D"}var Ne=Do.prototype;Ne.isValid=fp,Ne.abs=zT,Ne.add=VT,Ne.subtract=$T,Ne.as=QT,Ne.asMilliseconds=KT,Ne.asSeconds=XT,Ne.asMinutes=e2,Ne.asHours=t2,Ne.asDays=a2,Ne.asWeeks=i2,Ne.asMonths=n2,Ne.asQuarters=r2,Ne.asYears=o2,Ne.valueOf=JT,Ne._bubble=WT,Ne.clone=s2,Ne.get=l2,Ne.milliseconds=u2,Ne.seconds=d2,Ne.minutes=c2,Ne.hours=h2,Ne.days=f2,Ne.weeks=F2,Ne.months=g2,Ne.years=_2,Ne.humanize=E2,Ne.toISOString=x0,Ne.toString=x0,Ne.toJSON=x0,Ne.locale=Oh,Ne.localeData=Bh,Ne.toIsoString=Mt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",x0),Ne.lang=xh,_e("X",0,0,"unix"),_e("x",0,0,"valueOf"),oe("x",yr),oe("X",UF),Le("X",function(e,t,a){a._d=new Date(parseFloat(e)*1e3)}),Le("x",function(e,t,a){a._d=new Date(Ae(e))});ae.version="2.29.4",bF(Ue),ae.fn=Q,ae.min=up,ae.max=dp,ae.now=cp,ae.utc=ua,ae.unix=IT,ae.months=PT,ae.isDate=p0,ae.locale=za,ae.invalid=Fo,ae.duration=Ht,ae.isMoment=qt,ae.weekdays=UT,ae.parseZone=jT,ae.localeData=va,ae.isDuration=er,ae.monthsShort=GT,ae.weekdaysMin=HT,ae.defineLocale=Xl,ae.updateLocale=jm,ae.locales=Pm,ae.weekdaysShort=qT,ae.normalizeUnits=It,ae.relativeTimeRounding=T2,ae.relativeTimeThreshold=D2,ae.calendarFormat=Yp,ae.prototype=Q,ae.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const b2=Object.freeze(Object.defineProperty({__proto__:null,default:ae},Symbol.toStringTag,{value:"Module"})),y2=Zl(b2),A2=Zl(I_);(function(e,t){(function(a,i){e.exports=i()})(self,function(){return function(){var a={n:function(f){var h=f&&f.__esModule?function(){return f.default}:function(){return f};return a.d(h,{a:h}),h},d:function(f,h){for(var _ in h)a.o(h,_)&&!a.o(f,_)&&Object.defineProperty(f,_,{enumerable:!0,get:h[_]})},o:function(f,h){return Object.prototype.hasOwnProperty.call(f,h)},r:function(f){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(f,"__esModule",{value:!0})}},i={};a.r(i),a.d(i,{default:function(){return c}});var n=y2,r=a.n(n),o=aF(),s=a.n(o),l=A2,d=new(s()),u=(0,l.getLocale)();[{locale:"ar",json:{charset:"utf-8",headers:{"Last-Translator":"Ali , 2023","Language-Team":"Arabic (https://app.transifex.com/nextcloud/teams/64236/ar/)","Content-Type":"text/plain; charset=UTF-8",Language:"ar","Plural-Forms":"nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;"},translations:{"":{"":{msgid:"",comments:{translator:` Translators: Ali , 2023 `},msgstr:[`Last-Translator: Ali , 2023 @@ -924,7 +924,31 @@ Language-Team: Chinese (Taiwan) (https://app.transifex.com/nextcloud/teams/64236 Content-Type: text/plain; charset=UTF-8 Language: zh_TW Plural-Forms: nplurals=1; plural=0; -`]},seconds:{msgid:"seconds",comments:{reference:"lib/index.ts:22"},msgstr:["秒"]}}}}}].find(function(f){return f.locale===u}))&&r().updateLocale(r().locale(),{relativeTime:{s:d.gettext("seconds")}});var c=r();return i}()})})(ah);var T2=ah.exports;const es=Xa(T2);const D2={name:"NcButton",props:{alignment:{type:String,default:"center",validator:e=>["start","start-reverse","center","center-reverse","end","end-reverse"].includes(e)},disabled:{type:Boolean,default:!1},type:{type:String,validator(e){return["primary","secondary","tertiary","tertiary-no-background","tertiary-on-primary","error","warning","success"].indexOf(e)!==-1},default:"secondary"},nativeType:{type:String,validator(e){return["submit","reset","button"].indexOf(e)!==-1},default:"button"},wide:{type:Boolean,default:!1},ariaLabel:{type:String,default:null},href:{type:String,default:null},download:{type:String,default:null},to:{type:[String,Object],default:null},exact:{type:Boolean,default:!1},ariaHidden:{type:Boolean,default:null},pressed:{type:Boolean,default:null}},emits:["update:pressed","click"],computed:{realType(){return this.pressed?"primary":this.pressed===!1&&this.type==="primary"?"secondary":this.type},flexAlignment(){return this.alignment.split("-")[0]},isReverseAligned(){return this.alignment.includes("-")}},render(e){var t,a,i;const n=!!this.$slots.default,r=(t=this.$slots)==null?void 0:t.icon;!n&&!this.ariaLabel&&console.warn("You need to fill either the text or the ariaLabel props in the button component.",{text:(i=(a=this.$slots.default)==null?void 0:a[0])==null?void 0:i.text,ariaLabel:this.ariaLabel},this);const o=({navigate:s,isActive:l,isExactActive:d}={})=>e(this.to||!this.href?"button":"a",{class:["button-vue",{"button-vue--icon-only":r&&!n,"button-vue--text-only":n&&!r,"button-vue--icon-and-text":r&&n,[`button-vue--vue-${this.realType}`]:this.realType,"button-vue--wide":this.wide,[`button-vue--${this.flexAlignment}`]:this.flexAlignment!=="center","button-vue--reverse":this.isReverseAligned,active:l,"router-link-exact-active":d}],attrs:{"aria-label":this.ariaLabel,"aria-pressed":this.pressed,disabled:this.disabled,type:this.href?null:this.nativeType,role:this.href?"button":null,href:!this.to&&this.href?this.href:null,target:!this.to&&this.href?"_self":null,rel:!this.to&&this.href?"nofollow noreferrer noopener":null,download:!this.to&&this.href&&this.download?this.download:null,...this.$attrs},on:{...this.$listeners,click:u=>{typeof this.pressed=="boolean"&&this.$emit("update:pressed",!this.pressed),this.$emit("click",u),s?.(u)}}},[e("span",{class:"button-vue__wrapper"},[r?e("span",{class:"button-vue__icon",attrs:{"aria-hidden":this.ariaHidden}},[this.$slots.icon]):null,n?e("span",{class:"button-vue__text"},[this.$slots.default]):null])]);return this.to?e("router-link",{props:{custom:!0,to:this.to,exact:this.exact},scopedSlots:{default:o}}):o()}},E2=null,b2=null;var y2=ce(D2,E2,b2,!1,null,"f507b497",null,null);const ai=y2.exports;function Ra(e){return e.split("-")[0]}function tn(e){return e.split("-")[1]}function D0(e){return["top","bottom"].includes(Ra(e))?"x":"y"}function ru(e){return e==="y"?"height":"width"}function pd(e){let{reference:t,floating:a,placement:i}=e;const n=t.x+t.width/2-a.width/2,r=t.y+t.height/2-a.height/2;let o;switch(Ra(i)){case"top":o={x:n,y:t.y-a.height};break;case"bottom":o={x:n,y:t.y+t.height};break;case"right":o={x:t.x+t.width,y:r};break;case"left":o={x:t.x-a.width,y:r};break;default:o={x:t.x,y:t.y}}const s=D0(i),l=ru(s);switch(tn(i)){case"start":o[s]=o[s]-(t[l]/2-a[l]/2);break;case"end":o[s]=o[s]+(t[l]/2-a[l]/2);break}return o}const A2=async(e,t,a)=>{const{placement:i="bottom",strategy:n="absolute",middleware:r=[],platform:o}=a;let s=await o.getElementRects({reference:e,floating:t,strategy:n}),{x:l,y:d}=pd({...s,placement:i}),u=i,c={};for(let f=0;f({name:"arrow",options:e,async fn(t){const{element:a,padding:i=0}=e??{},{x:n,y:r,placement:o,rects:s,platform:l}=t;if(a==null)return{};const d=Zh(i),u={x:n,y:r},c=Ra(o),f=D0(c),h=ru(f),_=await l.getDimensions({element:a}),m=f==="y"?"top":"left",p=f==="y"?"bottom":"right",T=s.reference[h]+s.reference[f]-u[f]-s.floating[h],R=u[f]-s.reference[f],S=await l.getOffsetParent({element:a}),C=S?f==="y"?S.clientHeight||0:S.clientWidth||0:0,j=T/2-R/2,E=d[m],I=C-_[h]-d[p],M=C/2-_[h]/2+j,P=$s(E,M,I);return{data:{[f]:P,centerOffset:M-P}}}}),R2={left:"right",right:"left",bottom:"top",top:"bottom"};function Sr(e){return e.replace(/left|right|bottom|top/g,t=>R2[t])}function Ih(e,t){const a=tn(e)==="start",i=D0(e),n=ru(i);let r=i==="x"?a?"right":"left":a?"bottom":"top";return t.reference[n]>t.floating[n]&&(r=Sr(r)),{main:r,cross:Sr(r)}}const N2={start:"end",end:"start"};function Ws(e){return e.replace(/start|end/g,t=>N2[t])}const w2=["top","right","bottom","left"],O2=w2.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);function x2(e,t,a){return(e?[...a.filter(i=>tn(i)===e),...a.filter(i=>tn(i)!==e)]:a.filter(i=>Ra(i)===i)).filter(i=>e?tn(i)===e||(t?Ws(i)!==i:!1):!0)}const B2=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var a,i,n,r,o,s;const{x:l,y:d,rects:u,middlewareData:c,placement:f}=t,{alignment:h=null,allowedPlacements:_=O2,autoAlignment:m=!0,...p}=e;if((a=c.autoPlacement)!=null&&a.skip)return{};const T=x2(h,m,_),R=await mo(t,p),S=(i=(n=c.autoPlacement)==null?void 0:n.index)!=null?i:0,C=T[S],{main:j,cross:E}=Ih(C,u);if(f!==C)return{x:l,y:d,reset:{placement:T[0]}};const I=[R[Ra(C)],R[j],R[E]],M=[...(r=(o=c.autoPlacement)==null?void 0:o.overflows)!=null?r:[],{placement:C,overflows:I}],P=T[S+1];if(P)return{data:{index:S+1,overflows:M},reset:{placement:P}};const g=M.slice().sort((k,x)=>k.overflows[0]-x.overflows[0]),D=(s=g.find(k=>{let{overflows:x}=k;return x.every(L=>L<=0)}))==null?void 0:s.placement;return{data:{skip:!0},reset:{placement:D??g[0].placement}}}}};function C2(e){const t=Sr(e);return[Ws(e),t,Ws(t)]}const M2=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var a,i;const{placement:n,middlewareData:r,rects:o,initialPlacement:s}=t;if((a=r.flip)!=null&&a.skip)return{};const{mainAxis:l=!0,crossAxis:d=!0,fallbackPlacements:u,fallbackStrategy:c="bestFit",flipAlignment:f=!0,...h}=e,_=Ra(n),m=u||(_===s||!f?[Sr(s)]:C2(s)),p=[s,...m],T=await mo(t,h),R=[];let S=((i=r.flip)==null?void 0:i.overflows)||[];if(l&&R.push(T[_]),d){const{main:I,cross:M}=Ih(n,o);R.push(T[I],T[M])}if(S=[...S,{placement:n,overflows:R}],!R.every(I=>I<=0)){var C,j;const I=((C=(j=r.flip)==null?void 0:j.index)!=null?C:0)+1,M=p[I];if(M)return{data:{index:I,overflows:S},reset:{placement:M}};let P="bottom";switch(c){case"bestFit":{var E;const g=(E=S.slice().sort((D,k)=>D.overflows.filter(x=>x>0).reduce((x,L)=>x+L,0)-k.overflows.filter(x=>x>0).reduce((x,L)=>x+L,0))[0])==null?void 0:E.placement;g&&(P=g);break}case"initialPlacement":P=s;break}return{data:{skip:!0},reset:{placement:P}}}return{}}}};function Y2(e){let{placement:t,rects:a,value:i}=e;const n=Ra(t),r=["left","top"].includes(n)?-1:1,o=typeof i=="function"?i({...a,placement:t}):i,{mainAxis:s,crossAxis:l}=typeof o=="number"?{mainAxis:o,crossAxis:0}:{mainAxis:0,crossAxis:0,...o};return D0(n)==="x"?{x:l,y:s*r}:{x:s*r,y:l}}const L2=function(e){return e===void 0&&(e=0),{name:"offset",options:e,fn(t){const{x:a,y:i,placement:n,rects:r}=t,o=Y2({placement:n,rects:r,value:e});return{x:a+o.x,y:i+o.y,data:o}}}};function Z2(e){return e==="x"?"y":"x"}const I2=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:a,y:i,placement:n}=t,{mainAxis:r=!0,crossAxis:o=!1,limiter:s={fn:p=>{let{x:T,y:R}=p;return{x:T,y:R}}},...l}=e,d={x:a,y:i},u=await mo(t,l),c=D0(Ra(n)),f=Z2(c);let h=d[c],_=d[f];if(r){const p=c==="y"?"top":"left",T=c==="y"?"bottom":"right",R=h+u[p],S=h-u[T];h=$s(R,h,S)}if(o){const p=f==="y"?"top":"left",T=f==="y"?"bottom":"right",R=_+u[p],S=_-u[T];_=$s(R,_,S)}const m=s.fn({...t,[c]:h,[f]:_});return{...m,data:{x:m.x-a,y:m.y-i}}}}},j2=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var a;const{placement:i,rects:n,middlewareData:r}=t,{apply:o,...s}=e;if((a=r.size)!=null&&a.skip)return{};const l=await mo(t,s),d=Ra(i),u=tn(i)==="end";let c,f;d==="top"||d==="bottom"?(c=d,f=u?"left":"right"):(f=d,c=u?"top":"bottom");const h=hi(l.left,0),_=hi(l.right,0),m=hi(l.top,0),p=hi(l.bottom,0),T={height:n.floating.height-(["left","right"].includes(i)?2*(m!==0||p!==0?m+p:hi(l.top,l.bottom)):l[c]),width:n.floating.width-(["top","bottom"].includes(i)?2*(h!==0||_!==0?h+_:hi(l.left,l.right)):l[f])};return o?.({...T,...n}),{data:{skip:!0},reset:{rects:!0}}}}};function ou(e){return e?.toString()==="[object Window]"}function ii(e){if(e==null)return window;if(!ou(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function po(e){return ii(e).getComputedStyle(e)}function Da(e){return ou(e)?"":e?(e.nodeName||"").toLowerCase():""}function Ea(e){return e instanceof ii(e).HTMLElement}function kr(e){return e instanceof ii(e).Element}function P2(e){return e instanceof ii(e).Node}function jh(e){const t=ii(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function To(e){const{overflow:t,overflowX:a,overflowY:i}=po(e);return/auto|scroll|overlay|hidden/.test(t+i+a)}function G2(e){return["table","td","th"].includes(Da(e))}function Ph(e){const t=navigator.userAgent.toLowerCase().includes("firefox"),a=po(e);return a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].includes(a.willChange)||t&&a.willChange==="filter"||t&&(a.filter?a.filter!=="none":!1)}const Td=Math.min,Ln=Math.max,vr=Math.round;function ln(e,t){t===void 0&&(t=!1);const a=e.getBoundingClientRect();let i=1,n=1;return t&&Ea(e)&&(i=e.offsetWidth>0&&vr(a.width)/e.offsetWidth||1,n=e.offsetHeight>0&&vr(a.height)/e.offsetHeight||1),{width:a.width/i,height:a.height/n,top:a.top/n,right:a.right/i,bottom:a.bottom/n,left:a.left/i,x:a.left/i,y:a.top/n}}function ni(e){return((P2(e)?e.ownerDocument:e.document)||window.document).documentElement}function Do(e){return ou(e)?{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}:{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Gh(e){return ln(ni(e)).left+Do(e).scrollLeft}function U2(e){const t=ln(e);return vr(t.width)!==e.offsetWidth||vr(t.height)!==e.offsetHeight}function q2(e,t,a){const i=Ea(t),n=ni(t),r=ln(e,i&&U2(t));let o={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(i||!i&&a!=="fixed")if((Da(t)!=="body"||To(n))&&(o=Do(t)),Ea(t)){const l=ln(t,!0);s.x=l.x+t.clientLeft,s.y=l.y+t.clientTop}else n&&(s.x=Gh(n));return{x:r.left+o.scrollLeft-s.x,y:r.top+o.scrollTop-s.y,width:r.width,height:r.height}}function Eo(e){return Da(e)==="html"?e:e.assignedSlot||e.parentNode||(jh(e)?e.host:null)||ni(e)}function Dd(e){return!Ea(e)||getComputedStyle(e).position==="fixed"?null:e.offsetParent}function H2(e){let t=Eo(e);for(;Ea(t)&&!["html","body"].includes(Da(t));){if(Ph(t))return t;t=t.parentNode}return null}function Qs(e){const t=ii(e);let a=Dd(e);for(;a&&G2(a)&&getComputedStyle(a).position==="static";)a=Dd(a);return a&&(Da(a)==="html"||Da(a)==="body"&&getComputedStyle(a).position==="static"&&!Ph(a))?t:a||H2(e)||t}function Ed(e){return{width:e.offsetWidth,height:e.offsetHeight}}function z2(e){let{rect:t,offsetParent:a,strategy:i}=e;const n=Ea(a),r=ni(a);if(a===r)return t;let o={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if((n||!n&&i!=="fixed")&&((Da(a)!=="body"||To(r))&&(o=Do(a)),Ea(a))){const l=ln(a,!0);s.x=l.x+a.clientLeft,s.y=l.y+a.clientTop}return{...t,x:t.x-o.scrollLeft+s.x,y:t.y-o.scrollTop+s.y}}function V2(e){const t=ii(e),a=ni(e),i=t.visualViewport;let n=a.clientWidth,r=a.clientHeight,o=0,s=0;return i&&(n=i.width,r=i.height,Math.abs(t.innerWidth/i.scale-i.width)<.01&&(o=i.offsetLeft,s=i.offsetTop)),{width:n,height:r,x:o,y:s}}function $2(e){var t;const a=ni(e),i=Do(e),n=(t=e.ownerDocument)==null?void 0:t.body,r=Ln(a.scrollWidth,a.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),o=Ln(a.scrollHeight,a.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0);let s=-i.scrollLeft+Gh(e);const l=-i.scrollTop;return po(n||a).direction==="rtl"&&(s+=Ln(a.clientWidth,n?n.clientWidth:0)-r),{width:r,height:o,x:s,y:l}}function Uh(e){return["html","body","#document"].includes(Da(e))?e.ownerDocument.body:Ea(e)&&To(e)?e:Uh(Eo(e))}function Rr(e,t){var a;t===void 0&&(t=[]);const i=Uh(e),n=i===((a=e.ownerDocument)==null?void 0:a.body),r=ii(i),o=n?[r].concat(r.visualViewport||[],To(i)?i:[]):i,s=t.concat(o);return n?s:s.concat(Rr(Eo(o)))}function W2(e,t){const a=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(a&&jh(a)){let i=t;do{if(i&&e===i)return!0;i=i.parentNode||i.host}while(i)}return!1}function Q2(e){const t=ln(e),a=t.top+e.clientTop,i=t.left+e.clientLeft;return{top:a,left:i,x:i,y:a,right:i+e.clientWidth,bottom:a+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}function bd(e,t){return t==="viewport"?Vs(V2(e)):kr(t)?Q2(t):Vs($2(ni(e)))}function J2(e){const t=Rr(Eo(e)),a=["absolute","fixed"].includes(po(e).position)&&Ea(e)?Qs(e):e;return kr(a)?t.filter(i=>kr(i)&&W2(i,a)&&Da(i)!=="body"):[]}function K2(e){let{element:t,boundary:a,rootBoundary:i}=e;const n=[...a==="clippingParents"?J2(t):[].concat(a),i],r=n[0],o=n.reduce((s,l)=>{const d=bd(t,l);return s.top=Ln(d.top,s.top),s.right=Td(d.right,s.right),s.bottom=Td(d.bottom,s.bottom),s.left=Ln(d.left,s.left),s},bd(t,r));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}const X2={getElementRects:e=>{let{reference:t,floating:a,strategy:i}=e;return{reference:q2(t,Qs(a),i),floating:{...Ed(a),x:0,y:0}}},convertOffsetParentRelativeRectToViewportRelativeRect:e=>z2(e),getOffsetParent:e=>{let{element:t}=e;return Qs(t)},isElement:e=>kr(e),getDocumentElement:e=>{let{element:t}=e;return ni(t)},getClippingClientRect:e=>K2(e),getDimensions:e=>{let{element:t}=e;return Ed(t)},getClientRects:e=>{let{element:t}=e;return t.getClientRects()}},e3=(e,t,a)=>A2(e,t,{platform:X2,...a});var t3=Object.defineProperty,a3=Object.defineProperties,i3=Object.getOwnPropertyDescriptors,Nr=Object.getOwnPropertySymbols,qh=Object.prototype.hasOwnProperty,Hh=Object.prototype.propertyIsEnumerable,yd=(e,t,a)=>t in e?t3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,ja=(e,t)=>{for(var a in t||(t={}))qh.call(t,a)&&yd(e,a,t[a]);if(Nr)for(var a of Nr(t))Hh.call(t,a)&&yd(e,a,t[a]);return e},bo=(e,t)=>a3(e,i3(t)),n3=(e,t)=>{var a={};for(var i in e)qh.call(e,i)&&t.indexOf(i)<0&&(a[i]=e[i]);if(e!=null&&Nr)for(var i of Nr(e))t.indexOf(i)<0&&Hh.call(e,i)&&(a[i]=e[i]);return a};function zh(e,t){for(const a in t)Object.prototype.hasOwnProperty.call(t,a)&&(typeof t[a]=="object"&&e[a]?zh(e[a],t[a]):e[a]=t[a])}const ia={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:5e3,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover","focus"],delay:{show:0,hide:400}}}};function un(e,t){let a=ia.themes[e]||{},i;do i=a[t],typeof i>"u"?a.$extend?a=ia.themes[a.$extend]||{}:(a=null,i=ia[t]):a=null;while(a);return i}function r3(e){const t=[e];let a=ia.themes[e]||{};do a.$extend&&!a.$resetCss?(t.push(a.$extend),a=ia.themes[a.$extend]||{}):a=null;while(a);return t.map(i=>`v-popper--theme-${i}`)}function Ad(e){const t=[e];let a=ia.themes[e]||{};do a.$extend?(t.push(a.$extend),a=ia.themes[a.$extend]||{}):a=null;while(a);return t}let Si=!1;if(typeof window<"u"){Si=!1;try{const e=Object.defineProperty({},"passive",{get(){Si=!0}});window.addEventListener("test",null,e)}catch{}}let Vh=!1;typeof window<"u"&&typeof navigator<"u"&&(Vh=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const $h=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),Sd={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart"},kd={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend"};function vd(e,t){const a=e.indexOf(t);a!==-1&&e.splice(a,1)}function ts(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const Pt=[];let li=null;const Rd={};function Nd(e){let t=Rd[e];return t||(t=Rd[e]=[]),t}let Js=function(){};typeof window<"u"&&(Js=window.Element);function we(e){return function(){const t=this.$props;return un(t.theme,e)}}const as="__floating-vue__popper";var Wh=()=>({name:"VPopper",props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,required:!0},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:we("disabled")},positioningDisabled:{type:Boolean,default:we("positioningDisabled")},placement:{type:String,default:we("placement"),validator:e=>$h.includes(e)},delay:{type:[String,Number,Object],default:we("delay")},distance:{type:[Number,String],default:we("distance")},skidding:{type:[Number,String],default:we("skidding")},triggers:{type:Array,default:we("triggers")},showTriggers:{type:[Array,Function],default:we("showTriggers")},hideTriggers:{type:[Array,Function],default:we("hideTriggers")},popperTriggers:{type:Array,default:we("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:we("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:we("popperHideTriggers")},container:{type:[String,Object,Js,Boolean],default:we("container")},boundary:{type:[String,Js],default:we("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:we("strategy")},autoHide:{type:[Boolean,Function],default:we("autoHide")},handleResize:{type:Boolean,default:we("handleResize")},instantMove:{type:Boolean,default:we("instantMove")},eagerMount:{type:Boolean,default:we("eagerMount")},popperClass:{type:[String,Array,Object],default:we("popperClass")},computeTransformOrigin:{type:Boolean,default:we("computeTransformOrigin")},autoMinSize:{type:Boolean,default:we("autoMinSize")},autoSize:{type:[Boolean,String],default:we("autoSize")},autoMaxSize:{type:Boolean,default:we("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:we("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:we("preventOverflow")},overflowPadding:{type:[Number,String],default:we("overflowPadding")},arrowPadding:{type:[Number,String],default:we("arrowPadding")},arrowOverflow:{type:Boolean,default:we("arrowOverflow")},flip:{type:Boolean,default:we("flip")},shift:{type:Boolean,default:we("shift")},shiftCrossAxis:{type:Boolean,default:we("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:we("noAutoFocus")}},provide(){return{[as]:{parentPopper:this}}},inject:{[as]:{default:null}},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},shownChildren:new Set,lastAutoHide:!0}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:bo(ja({},this.classes),{popperClass:this.popperClass}),result:this.positioningDisabled?null:this.result}},parentPopper(){var e;return(e=this[as])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:ja(ja({shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())}},["triggers","positioningDisabled"].reduce((e,t)=>(e[t]="$_refreshListeners",e),{})),["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})),created(){this.$_isDisposed=!0,this.randomId=`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeDestroy(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:a=!1}={}){var i,n;(i=this.parentPopper)!=null&&i.lockedChild&&this.parentPopper.lockedChild!==this||(this.$_pendingHide=!1,(a||!this.disabled)&&(((n=this.parentPopper)==null?void 0:n.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1,skipAiming:a=!1}={}){var i;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}if(!a&&this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((i=this.parentPopper)==null?void 0:i.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){this.$_isDisposed&&(this.$_isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=this.referenceNode(),this.$_targetNodes=this.targetNodes().filter(e=>e.nodeType===e.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.$_isDisposed||(this.$_isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"),this.$emit("dispose"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){var e;if(this.$_isDisposed||this.positioningDisabled)return;const t={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&t.middleware.push(L2({mainAxis:this.distance,crossAxis:this.skidding}));const a=this.placement.startsWith("auto");if(a?t.middleware.push(B2({alignment:(e=this.placement.split("-")[1])!=null?e:""})):t.placement=this.placement,this.preventOverflow&&(this.shift&&t.middleware.push(I2({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!a&&this.flip&&t.middleware.push(M2({padding:this.overflowPadding,boundary:this.boundary}))),t.middleware.push(v2({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&t.middleware.push({name:"arrowOverflow",fn:({placement:n,rects:r,middlewareData:o})=>{let s;const{centerOffset:l}=o.arrow;return n.startsWith("top")||n.startsWith("bottom")?s=Math.abs(l)>r.reference.width/2:s=Math.abs(l)>r.reference.height/2,{data:{overflow:s}}}}),this.autoMinSize||this.autoSize){const n=this.autoSize?this.autoSize:this.autoMinSize?"min":null;t.middleware.push({name:"autoSize",fn:({rects:r,placement:o,middlewareData:s})=>{var l;if((l=s.autoSize)!=null&&l.skip)return{};let d,u;return o.startsWith("top")||o.startsWith("bottom")?d=r.reference.width:u=r.reference.height,this.$_innerNode.style[n==="min"?"minWidth":n==="max"?"maxWidth":"width"]=d!=null?`${d}px`:null,this.$_innerNode.style[n==="min"?"minHeight":n==="max"?"maxHeight":"height"]=u!=null?`${u}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,t.middleware.push(j2({boundary:this.boundary,padding:this.overflowPadding,apply:({width:n,height:r})=>{this.$_innerNode.style.maxWidth=n!=null?`${n}px`:null,this.$_innerNode.style.maxHeight=r!=null?`${r}px`:null}})));const i=await e3(this.$_referenceNode,this.$_popperNode,t);Object.assign(this.result,{x:i.x,y:i.y,placement:i.placement,strategy:i.strategy,arrow:ja(ja({},i.middlewareData.arrow),i.middlewareData.arrowOverflow)})},$_scheduleShow(e=null,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),li&&this.instantMove&&li.instantMove&&li!==this.parentPopper){li.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e=null,t=!1){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(li=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await ts(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Rr(this.$_referenceNode),...Rr(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),a=this.$_popperNode.querySelector(".v-popper__wrapper"),i=a.parentNode.getBoundingClientRect(),n=t.x+t.width/2-(i.left+a.offsetLeft),r=t.y+t.height/2-(i.top+a.offsetTop);this.result.transformOrigin=`${n}px ${r}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let a=0;a0){this.$_pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,vd(Pt,this),Pt.length===0&&document.body.classList.remove("v-popper--some-open");for(const a of Ad(this.theme)){const i=Nd(a);vd(i,this),i.length===0&&document.body.classList.remove(`v-popper--some-open--${a}`)}li===this&&(li=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=un(this.theme,"disposeTimeout");t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await ts(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.$_isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=a=>{this.isShown&&!this.$_hideInProgress||(a.usedByTooltip=!0,!this.$_preventShow&&this.show({event:a}))};this.$_registerTriggerListeners(this.$_targetNodes,Sd,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],Sd,this.popperTriggers,this.popperShowTriggers,e);const t=a=>i=>{i.usedByTooltip||this.hide({event:i,skipAiming:a})};this.$_registerTriggerListeners(this.$_targetNodes,kd,this.triggers,this.hideTriggers,t(!1)),this.$_registerTriggerListeners([this.$_popperNode],kd,this.popperTriggers,this.popperHideTriggers,t(!0))},$_registerEventListeners(e,t,a){this.$_events.push({targetNodes:e,eventType:t,handler:a}),e.forEach(i=>i.addEventListener(t,a,Si?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,a,i,n){let r=a;i!=null&&(r=typeof i=="function"?i(r):i),r.forEach(o=>{const s=t[o];s&&this.$_registerEventListeners(e,s,n)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(a=>{const{targetNodes:i,eventType:n,handler:r}=a;!e||e===n?i.forEach(o=>o.removeEventListener(n,r)):t.push(a)}),this.$_events=t},$_refreshListeners(){this.$_isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const a of this.$_targetNodes){const i=a.getAttribute(e);i&&(a.removeAttribute(e),a.setAttribute(t,i))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const a in e){const i=e[a];i==null?t.removeAttribute(a):t.setAttribute(a,i)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.$_pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$el.getBoundingClientRect();if(Zn>=e.left&&Zn<=e.right&&In>=e.top&&In<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),a=Zn-Ca,i=In-Ma,n=t.left+t.width/2-Ca+(t.top+t.height/2)-Ma+t.width+t.height,r=Ca+a*n,o=Ma+i*n;return O0(Ca,Ma,r,o,t.left,t.top,t.left,t.bottom)||O0(Ca,Ma,r,o,t.left,t.top,t.right,t.top)||O0(Ca,Ma,r,o,t.right,t.top,t.right,t.bottom)||O0(Ca,Ma,r,o,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$scopedSlots.default(this.slotData)[0]}});typeof document<"u"&&typeof window<"u"&&(Vh?(document.addEventListener("touchstart",wd,Si?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",s3,Si?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",wd,!0),window.addEventListener("click",o3,!0)),window.addEventListener("resize",d3));function wd(e){for(let t=0;t=0;i--){const n=Pt[i];try{const r=n.$_containsGlobalTarget=l3(n,e);n.$_pendingHide=!1,requestAnimationFrame(()=>{if(n.$_pendingHide=!1,!a[n.randomId]&&Od(n,r,e)){if(n.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&r){let s=n.parentPopper;for(;s;)a[s.randomId]=!0,s=s.parentPopper;return}let o=n.parentPopper;for(;o&&Od(o,o.$_containsGlobalTarget,e);)o.$_handleGlobalClose(e,t),o=o.parentPopper}})}catch{}}}function l3(e,t){const a=e.popperNode();return e.$_mouseDownContains||a.contains(t.target)}function Od(e,t,a){return a.closeAllPopover||a.closePopover&&t||u3(e,a)&&!t}function u3(e,t){if(typeof e.autoHide=="function"){const a=e.autoHide(t);return e.lastAutoHide=a,a}return e.autoHide}function d3(e){for(let t=0;t{Ca=Zn,Ma=In,Zn=e.clientX,In=e.clientY},Si?{passive:!0}:void 0);function O0(e,t,a,i,n,r,o,s){const l=((o-n)*(t-r)-(s-r)*(e-n))/((s-r)*(a-e)-(o-n)*(i-t)),d=((a-e)*(t-r)-(i-t)*(e-n))/((s-r)*(a-e)-(o-n)*(i-t));return l>=0&&l<=1&&d>=0&&d<=1}function c3(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var a=e.indexOf("Trident/");if(a>0){var i=e.indexOf("rv:");return parseInt(e.substring(i+3,e.indexOf(".",i)),10)}var n=e.indexOf("Edge/");return n>0?parseInt(e.substring(n+5,e.indexOf(".",n)),10):-1}var er;function Ks(){Ks.init||(Ks.init=!0,er=c3()!==-1)}var h3={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},mounted:function(){var e=this;Ks(),this.$nextTick(function(){e._w=e.$el.offsetWidth,e._h=e.$el.offsetHeight,e.emitOnMount&&e.emitSize()});var t=document.createElement("object");this._resizeObject=t,t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex",-1),t.onload=this.addResizeHandlers,t.type="text/html",er&&this.$el.appendChild(t),t.data="about:blank",er||this.$el.appendChild(t)},beforeDestroy:function(){this.removeResizeHandlers()},methods:{compareAndNotify:function(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize:function(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers:function(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers:function(){this._resizeObject&&this._resizeObject.onload&&(!er&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};function f3(e,t,a,i,n,r,o,s,l,d){typeof o!="boolean"&&(l=s,s=o,o=!1);var u=typeof a=="function"?a.options:a;e&&e.render&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0,n&&(u.functional=!0)),i&&(u._scopeId=i);var c;if(r?(c=function(_){_=_||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!_&&typeof __VUE_SSR_CONTEXT__<"u"&&(_=__VUE_SSR_CONTEXT__),t&&t.call(this,l(_)),_&&_._registeredComponents&&_._registeredComponents.add(r)},u._ssrRegister=c):t&&(c=o?function(_){t.call(this,d(_,this.$root.$options.shadowRoot))}:function(_){t.call(this,s(_))}),c)if(u.functional){var f=u.render;u.render=function(_,m){return c.call(m),f(_,m)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,c):[c]}return a}var g3=h3,Jh=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"resize-observer",attrs:{tabindex:"-1"}})},_3=[];Jh._withStripped=!0;var F3=void 0,m3="data-v-8859cc6c",p3=void 0,T3=!1,Xs=f3({render:Jh,staticRenderFns:_3},F3,g3,m3,T3,p3,!1,void 0,void 0,void 0);function D3(e){e.component("resize-observer",Xs),e.component("ResizeObserver",Xs)}var E3={version:"1.0.1",install:D3},x0=null;typeof window<"u"?x0=window.Vue:typeof fr.global<"u"&&(x0=fr.global.Vue),x0&&x0.use(E3);var Kh={computed:{themeClass(){return r3(this.theme)}}},b3={name:"VPopperContent",components:{ResizeObserver:Xs},mixins:[Kh],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}},y3=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"popover",staticClass:"v-popper__popper",class:[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}],style:e.result?{position:e.result.strategy,transform:"translate3d("+Math.round(e.result.x)+"px,"+Math.round(e.result.y)+"px,0)"}:void 0,attrs:{id:e.popperId,"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0},on:{keyup:function(i){if(!i.type.indexOf("key")&&e._k(i.keyCode,"esc",27,i.key,["Esc","Escape"]))return null;e.autoHide&&e.$emit("hide")}}},[a("div",{staticClass:"v-popper__backdrop",on:{click:function(i){e.autoHide&&e.$emit("hide")}}}),a("div",{staticClass:"v-popper__wrapper",style:e.result?{transformOrigin:e.result.transformOrigin}:void 0},[a("div",{ref:"inner",staticClass:"v-popper__inner"},[e.mounted?[a("div",[e._t("default")],2),e.handleResize?a("ResizeObserver",{on:{notify:function(i){return e.$emit("resize",i)}}}):e._e()]:e._e()],2),a("div",{ref:"arrow",staticClass:"v-popper__arrow-container",style:e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0},[a("div",{staticClass:"v-popper__arrow-outer"}),a("div",{staticClass:"v-popper__arrow-inner"})])])])},A3=[];function En(e,t,a,i,n,r,o,s){var l=typeof e=="function"?e.options:e;t&&(l.render=t,l.staticRenderFns=a,l._compiled=!0),i&&(l.functional=!0),r&&(l._scopeId="data-v-"+r);var d;if(o?(d=function(f){f=f||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!f&&typeof __VUE_SSR_CONTEXT__<"u"&&(f=__VUE_SSR_CONTEXT__),n&&n.call(this,f),f&&f._registeredComponents&&f._registeredComponents.add(o)},l._ssrRegister=d):n&&(d=s?function(){n.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:n),d)if(l.functional){l._injectStyles=d;var u=l.render;l.render=function(f,h){return d.call(h),u(f,h)}}else{var c=l.beforeCreate;l.beforeCreate=c?[].concat(c,d):[d]}return{exports:e,options:l}}const xd={};var S3=En(b3,y3,A3,!1,k3,null,null,null);function k3(e){for(let t in xd)this[t]=xd[t]}var Xh=function(){return S3.exports}(),su={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}},v3={name:"VPopperWrapper",components:{Popper:Wh(),PopperContent:Xh},mixins:[su,Kh],inheritAttrs:!1,props:{theme:{type:String,default(){return this.$options.vPopperTheme}}},methods:{getTargetNodes(){return Array.from(this.$refs.reference.children).filter(e=>e!==this.$refs.popperContent.$el)}}},R3=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("Popper",e._g(e._b({ref:"popper",attrs:{theme:e.theme,"target-nodes":e.getTargetNodes,"reference-node":function(){return e.$refs.reference},"popper-node":function(){return e.$refs.popperContent.$el}},scopedSlots:e._u([{key:"default",fn:function(i){var n=i.popperId,r=i.isShown,o=i.shouldMountContent,s=i.skipTransition,l=i.autoHide,d=i.show,u=i.hide,c=i.handleResize,f=i.onResize,h=i.classes,_=i.result;return[a("div",{ref:"reference",staticClass:"v-popper",class:[e.themeClass,{"v-popper--shown":r}]},[e._t("default",null,{shown:r,show:d,hide:u}),a("PopperContent",{ref:"popperContent",attrs:{"popper-id":n,theme:e.theme,shown:r,mounted:o,"skip-transition":s,"auto-hide":l,"handle-resize":c,classes:h,result:_},on:{hide:u,resize:f}},[e._t("popper",null,{shown:r,hide:u})],2)],2)]}}],null,!0)},"Popper",e.$attrs,!1),e.$listeners))},N3=[];const Bd={};var w3=En(v3,R3,N3,!1,O3,null,null,null);function O3(e){for(let t in Bd)this[t]=Bd[t]}var lu=function(){return w3.exports}(),x3=bo(ja({},lu),{name:"VDropdown",vPopperTheme:"dropdown"});let B3,C3;const Cd={};var M3=En(x3,B3,C3,!1,Y3,null,null,null);function Y3(e){for(let t in Cd)this[t]=Cd[t]}var el=function(){return M3.exports}(),L3=bo(ja({},lu),{name:"VMenu",vPopperTheme:"menu"});let Z3,I3;const Md={};var j3=En(L3,Z3,I3,!1,P3,null,null,null);function P3(e){for(let t in Md)this[t]=Md[t]}var Yd=function(){return j3.exports}(),G3=bo(ja({},lu),{name:"VTooltip",vPopperTheme:"tooltip"});let U3,q3;const Ld={};var H3=En(G3,U3,q3,!1,z3,null,null,null);function z3(e){for(let t in Ld)this[t]=Ld[t]}var Zd=function(){return H3.exports}(),V3={name:"VTooltipDirective",components:{Popper:Wh(),PopperContent:Xh},mixins:[su],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default(){return un(this.theme,"html")}},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default(){return un(this.theme,"loadingContent")}}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(e){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,a=this.content(this);a.then?a.then(i=>this.onResult(t,i)):this.onResult(t,a)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}},$3=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("Popper",e._g(e._b({ref:"popper",attrs:{theme:e.theme,"popper-node":function(){return e.$refs.popperContent.$el}},on:{"apply-show":e.onShow,"apply-hide":e.onHide},scopedSlots:e._u([{key:"default",fn:function(i){var n=i.popperId,r=i.isShown,o=i.shouldMountContent,s=i.skipTransition,l=i.autoHide,d=i.hide,u=i.handleResize,c=i.onResize,f=i.classes,h=i.result;return[a("PopperContent",{ref:"popperContent",class:{"v-popper--tooltip-loading":e.loading},attrs:{"popper-id":n,theme:e.theme,shown:r,mounted:o,"skip-transition":s,"auto-hide":l,"handle-resize":u,classes:f,result:h},on:{hide:d,resize:c}},[e.html?a("div",{domProps:{innerHTML:e._s(e.finalContent)}}):a("div",{domProps:{textContent:e._s(e.finalContent)}})])]}}])},"Popper",e.$attrs,!1),e.$listeners))},W3=[];const Id={};var Q3=En(V3,$3,W3,!1,J3,null,null,null);function J3(e){for(let t in Id)this[t]=Id[t]}var K3=function(){return Q3.exports}();const ef="v-popper--has-tooltip";function X3(e,t){let a=e.placement;if(!a&&t)for(const i of $h)t[i]&&(a=i);return a||(a=un(e.theme||"tooltip","placement")),a}function tf(e,t,a){let i;const n=typeof t;return n==="string"?i={content:t}:t&&n==="object"?i=t:i={content:!1},i.placement=X3(i,a),i.targetNodes=()=>[e],i.referenceNode=()=>e,i}function eD(e,t,a){const i=tf(e,t,a),n=e.$_popper=new Aa({mixins:[su],data(){return{options:i}},render(o){const s=this.options,{theme:l,html:d,content:u,loadingContent:c}=s,f=n3(s,["theme","html","content","loadingContent"]);return o(K3,{props:{theme:l,html:d,content:u,loadingContent:c},attrs:f,ref:"popper"})},devtools:{hide:!0}}),r=document.createElement("div");return document.body.appendChild(r),n.$mount(r),e.classList&&e.classList.add(ef),n}function af(e){e.$_popper&&(e.$_popper.$destroy(),delete e.$_popper,delete e.$_popperOldShown),e.classList&&e.classList.remove(ef)}function jd(e,{value:t,oldValue:a,modifiers:i}){const n=tf(e,t,i);if(!n.content||un(n.theme||"tooltip","disabled"))af(e);else{let r;e.$_popper?(r=e.$_popper,r.options=n):r=eD(e,t,i),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?r.show():r.hide())}}var nf={bind:jd,update:jd,unbind(e){af(e)}};function Pd(e){e.addEventListener("click",rf),e.addEventListener("touchstart",of,Si?{passive:!0}:!1)}function Gd(e){e.removeEventListener("click",rf),e.removeEventListener("touchstart",of),e.removeEventListener("touchend",sf),e.removeEventListener("touchcancel",lf)}function rf(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function of(e){if(e.changedTouches.length===1){const t=e.currentTarget;t.$_vclosepopover_touch=!0;const a=e.changedTouches[0];t.$_vclosepopover_touchPoint=a,t.addEventListener("touchend",sf),t.addEventListener("touchcancel",lf)}}function sf(e){const t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){const a=e.changedTouches[0],i=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(a.screenY-i.screenY)<20&&Math.abs(a.screenX-i.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function lf(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}var tD={bind(e,{value:t,modifiers:a}){e.$_closePopoverModifiers=a,(typeof t>"u"||t)&&Pd(e)},update(e,{value:t,oldValue:a,modifiers:i}){e.$_closePopoverModifiers=i,t!==a&&(typeof t>"u"||t?Pd(e):Gd(e))},unbind(e){Gd(e)}};const B0=ia,uf=nf,aD=el;function iD(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,zh(ia,t),e.directive("tooltip",nf),e.directive("close-popper",tD),e.component("v-tooltip",Zd),e.component("VTooltip",Zd),e.component("v-dropdown",el),e.component("VDropdown",el),e.component("v-menu",Yd),e.component("VMenu",Yd))}const nD={version:"1.0.0-beta.19",install:iD,options:ia};let C0=null;typeof window<"u"?C0=window.Vue:typeof fr.global<"u"&&(C0=fr.global.Vue),C0&&C0.use(nD);B0.themes.tooltip.html=!1,B0.themes.tooltip.delay={show:500,hide:200},B0.themes.tooltip.distance=10,B0.themes.tooltip["arrow-padding"]=3;const rD={name:"ArrowRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var oD=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon arrow-right-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M4,11V13H16L10.5,18.5L11.92,19.92L19.84,12L11.92,4.08L10.5,5.5L16,11H4Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},sD=[],lD=ce(rD,oD,sD,!1,null,null,null,null);const df=lD.exports,is=new Aa({data(){return{isMobile:!1}},watch:{isMobile(e){this.$emit("changed",e)}},created(){window.addEventListener("resize",this.handleWindowResize),this.handleWindowResize()},beforeDestroy(){window.removeEventListener("resize",this.handleWindowResize)},methods:{handleWindowResize(){this.isMobile=document.documentElement.clientWidth<1024}}}),uD={data(){return{isMobile:!1}},mounted(){is.$on("changed",this.onIsMobileChanged),this.isMobile=is.isMobile},beforeDestroy(){is.$off("changed",this.onIsMobileChanged)},methods:{onIsMobileChanged(e){this.isMobile=e}}};var tr={},wr={},l0={};Object.defineProperty(l0,"__esModule",{value:!0}),l0.default=void 0;function Or(e,t,a){return t=dD(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function dD(e){var t=cD(e,"string");return typeof t=="symbol"?t:String(t)}function cD(e,t){if(typeof e!="object"||e===null)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var i=a.call(e,t||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class an{constructor(t,a,i){Or(this,"scope",void 0),Or(this,"wrapped",void 0),this.scope=`${i?an.GLOBAL_SCOPE_PERSISTENT:an.GLOBAL_SCOPE_VOLATILE}_${btoa(t)}_`,this.wrapped=a}scopeKey(t){return`${this.scope}${t}`}setItem(t,a){this.wrapped.setItem(this.scopeKey(t),a)}getItem(t){return this.wrapped.getItem(this.scopeKey(t))}removeItem(t){this.wrapped.removeItem(this.scopeKey(t))}clear(){Object.keys(this.wrapped).filter(t=>t.startsWith(this.scope)).map(this.wrapped.removeItem.bind(this.wrapped))}}l0.default=an,Or(an,"GLOBAL_SCOPE_VOLATILE","nextcloud_vol"),Or(an,"GLOBAL_SCOPE_PERSISTENT","nextcloud_per"),Object.defineProperty(wr,"__esModule",{value:!0}),wr.default=void 0;var hD=fD(l0);function fD(e){return e&&e.__esModule?e:{default:e}}function ns(e,t,a){return t=gD(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function gD(e){var t=_D(e,"string");return typeof t=="symbol"?t:String(t)}function _D(e,t){if(typeof e!="object"||e===null)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var i=a.call(e,t||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class FD{constructor(t){ns(this,"appId",void 0),ns(this,"persisted",!1),ns(this,"clearedOnLogout",!1),this.appId=t}persist(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return this.persisted=t,this}clearOnLogout(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return this.clearedOnLogout=t,this}build(){return new hD.default(this.appId,this.persisted?window.localStorage:window.sessionStorage,!this.clearedOnLogout)}}wr.default=FD,Object.defineProperty(tr,"__esModule",{value:!0}),tr.clearAll=DD,tr.clearNonPersistent=ED;var cf=tr.getBuilder=TD,mD=hf(wr),pD=hf(l0);function hf(e){return e&&e.__esModule?e:{default:e}}function TD(e){return new mD.default(e)}function ff(e,t){Object.keys(e).filter(a=>t?t(a):!0).map(e.removeItem.bind(e))}function DD(){[window.sessionStorage,window.localStorage].map(e=>ff(e))}function ED(){[window.sessionStorage,window.localStorage].map(e=>ff(e,t=>!t.startsWith(pD.default.GLOBAL_SCOPE_PERSISTENT)))}Aa.util.warn;function E0(e){return Y_()?(L_(e),!0):!1}function nt(e){return typeof e=="function"?e():Z_(e)}const uu=typeof window<"u"&&typeof document<"u",bD=e=>e!=null,yD=Object.prototype.toString,gf=e=>yD.call(e)==="[object Object]",ct=()=>{},tl=AD();function AD(){var e;return uu&&((e=window?.navigator)==null?void 0:e.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent)}function _f(e,t){function a(...i){return new Promise((n,r)=>{Promise.resolve(e(()=>t.apply(this,i),{fn:t,thisArg:this,args:i})).then(n).catch(r)})}return a}function SD(e,t={}){let a,i,n=ct;const r=o=>{clearTimeout(o),n(),n=ct};return o=>{const s=nt(e),l=nt(t.maxWait);return a&&r(a),s<=0||l!==void 0&&l<=0?(i&&(r(i),i=null),Promise.resolve(o())):new Promise((d,u)=>{n=t.rejectOnCancel?u:d,l&&!i&&(i=setTimeout(()=>{a&&r(a),i=null,d(o())},l)),a=setTimeout(()=>{i&&r(i),i=null,d(o())},s)})}}function kD(e,t=!0,a=!0,i=!1){let n=0,r,o=!0,s=ct,l;const d=()=>{r&&(clearTimeout(r),r=void 0,s(),s=ct)};return u=>{const c=nt(e),f=Date.now()-n,h=()=>l=u();return d(),c<=0?(n=Date.now(),h()):(f>c&&(a||!o)?(n=Date.now(),h()):t&&(l=new Promise((_,m)=>{s=i?m:_,r=setTimeout(()=>{n=Date.now(),o=!0,_(h()),d()},Math.max(0,c-f))})),!a&&!r&&(r=setTimeout(()=>o=!0,c)),o=!1,l)}}const Ud={mounted:"inserted",updated:"componentUpdated",unmounted:"unbind"};function vD(...e){if(e.length!==1)return B_(...e);const t=e[0];return typeof t=="function"?C_(M_(()=>({get:t,set:ct}))):gt(t)}function RD(e,t=200,a={}){return _f(SD(t,a),e)}function ND(e,t=200,a=!1,i=!0,n=!1){return _f(kD(t,a,i,n),e)}Aa.util.warn;function pa(e){var t;const a=nt(e);return(t=a?.$el)!=null?t:a}const wi=uu?window:void 0;function jn(...e){let t,a,i,n;if(typeof e[0]=="string"||Array.isArray(e[0])?([a,i,n]=e,t=wi):[t,a,i,n]=e,!t)return ct;Array.isArray(a)||(a=[a]),Array.isArray(i)||(i=[i]);const r=[],o=()=>{r.forEach(u=>u()),r.length=0},s=(u,c,f,h)=>(u.addEventListener(c,f,h),()=>u.removeEventListener(c,f,h)),l=ei(()=>[pa(t),nt(n)],([u,c])=>{if(o(),!u)return;const f=gf(c)?{...c}:c;r.push(...a.flatMap(h=>i.map(_=>s(u,h,_,f))))},{immediate:!0,flush:"post"}),d=()=>{l(),o()};return E0(d),d}function wD(){const e=gt(!1);return j_()&&P_(()=>{e.value=!0}),e}function Ff(e){const t=wD();return st(()=>(t.value,!!e()))}function OD(e,t,a={}){const{window:i=wi,...n}=a;let r;const o=Ff(()=>i&&"ResizeObserver"in i),s=()=>{r&&(r.disconnect(),r=void 0)},l=st(()=>Array.isArray(e)?e.map(c=>pa(c)):[pa(e)]),d=ei(l,c=>{if(s(),o.value&&i){r=new ResizeObserver(t);for(const f of c)f&&r.observe(f,n)}},{immediate:!0,flush:"post",deep:!0}),u=()=>{s(),d()};return E0(u),{isSupported:o,stop:u}}function xD(e,t={width:0,height:0},a={}){const{window:i=wi,box:n="content-box"}=a,r=st(()=>{var l,d;return(d=(l=pa(e))==null?void 0:l.namespaceURI)==null?void 0:d.includes("svg")}),o=gt(t.width),s=gt(t.height);return OD(e,([l])=>{const d=n==="border-box"?l.borderBoxSize:n==="content-box"?l.contentBoxSize:l.devicePixelContentBoxSize;if(i&&r.value){const u=pa(e);if(u){const c=i.getComputedStyle(u);o.value=Number.parseFloat(c.width),s.value=Number.parseFloat(c.height)}}else if(d){const u=Array.isArray(d)?d:[d];o.value=u.reduce((c,{inlineSize:f})=>c+f,0),s.value=u.reduce((c,{blockSize:f})=>c+f,0)}else o.value=l.contentRect.width,s.value=l.contentRect.height},a),ei(()=>pa(e),l=>{o.value=l?t.width:0,s.value=l?t.height:0}),{width:o,height:s}}function BD(e,t,a={}){const{root:i,rootMargin:n="0px",threshold:r=.1,window:o=wi,immediate:s=!0}=a,l=Ff(()=>o&&"IntersectionObserver"in o),d=st(()=>{const _=nt(e);return(Array.isArray(_)?_:[_]).map(pa).filter(bD)});let u=ct;const c=gt(s),f=l.value?ei(()=>[d.value,pa(i),c.value],([_,m])=>{if(u(),!c.value||!_.length)return;const p=new IntersectionObserver(t,{root:pa(m),rootMargin:n,threshold:r});_.forEach(T=>T&&p.observe(T)),u=()=>{p.disconnect(),u=ct}},{immediate:s,flush:"post"}):ct,h=()=>{u(),f(),c.value=!1};return E0(h),{isSupported:l,isActive:c,pause(){u(),c.value=!1},resume(){c.value=!0},stop:h}}function CD(e,t={}){const{window:a=wi,scrollTarget:i}=t,n=gt(!1);return BD(e,([{isIntersecting:r}])=>{n.value=r},{root:i,window:a,threshold:0}),n}const qd=1;function MD(e,t={}){const{throttle:a=0,idle:i=200,onStop:n=ct,onScroll:r=ct,offset:o={left:0,right:0,top:0,bottom:0},eventListenerOptions:s={capture:!1,passive:!0},behavior:l="auto",window:d=wi}=t,u=gt(0),c=gt(0),f=st({get(){return u.value},set(E){_(E,void 0)}}),h=st({get(){return c.value},set(E){_(void 0,E)}});function _(E,I){var M,P,g;if(!d)return;const D=nt(e);D&&((g=D instanceof Document?d.document.body:D)==null||g.scrollTo({top:(M=nt(I))!=null?M:h.value,left:(P=nt(E))!=null?P:f.value,behavior:nt(l)}))}const m=gt(!1),p=i0({left:!0,right:!1,top:!0,bottom:!1}),T=i0({left:!1,right:!1,top:!1,bottom:!1}),R=E=>{m.value&&(m.value=!1,T.left=!1,T.right=!1,T.top=!1,T.bottom=!1,n(E))},S=RD(R,a+i),C=E=>{var I;if(!d)return;const M=E.document?E.document.documentElement:(I=E.documentElement)!=null?I:E,{display:P,flexDirection:g}=getComputedStyle(M),D=M.scrollLeft;T.left=Du.value;const k=Math.abs(D)<=0+(o.left||0),x=Math.abs(D)+M.clientWidth>=M.scrollWidth-(o.right||0)-qd;P==="flex"&&g==="row-reverse"?(p.left=x,p.right=k):(p.left=k,p.right=x),u.value=D;let L=M.scrollTop;E===d.document&&!L&&(L=d.document.body.scrollTop),T.top=Lc.value;const Z=Math.abs(L)<=0+(o.top||0),$=Math.abs(L)+M.clientHeight>=M.scrollHeight-(o.bottom||0)-qd;P==="flex"&&g==="column-reverse"?(p.top=$,p.bottom=Z):(p.top=Z,p.bottom=$),c.value=L},j=E=>{var I;if(!d)return;const M=(I=E.target.documentElement)!=null?I:E.target;C(M),m.value=!0,S(E),r(E)};return jn(e,"scroll",a?ND(j,a,!0,!1):j,s),jn(e,"scrollend",R,s),{x:f,y:h,isScrolling:m,arrivedState:p,directions:T,measure(){const E=nt(e);d&&E&&C(E)}}}function YD(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function ZM(e,t,a={}){var i;const{direction:n="bottom",interval:r=100}=a,o=i0(MD(e,{...a,offset:{[n]:(i=a.distance)!=null?i:0,...a.offset}})),s=gt(),l=st(()=>!!s.value),d=st(()=>YD(nt(e))),u=CD(d);function c(){if(o.measure(),!d.value||!u.value)return;const{scrollHeight:f,clientHeight:h,scrollWidth:_,clientWidth:m}=d.value,p=n==="bottom"||n==="top"?f<=h:_<=m;(o.arrivedState[n]||p)&&(s.value||(s.value=Promise.all([t(o),new Promise(T=>setTimeout(T,r))]).finally(()=>{s.value=null,I_(()=>c())})))}return ei(()=>[o.arrivedState[n],u.value],c,{immediate:!0}),{isLoading:l}}function mf(e,t={}){const{threshold:a=50,onSwipe:i,onSwipeEnd:n,onSwipeStart:r,passive:o=!0,window:s=wi}=t,l=i0({x:0,y:0}),d=i0({x:0,y:0}),u=st(()=>l.x-d.x),c=st(()=>l.y-d.y),{max:f,abs:h}=Math,_=st(()=>f(h(u.value),h(c.value))>=a),m=gt(!1),p=st(()=>_.value?h(u.value)>h(c.value)?u.value>0?"left":"right":c.value>0?"up":"down":"none"),T=M=>[M.touches[0].clientX,M.touches[0].clientY],R=(M,P)=>{l.x=M,l.y=P},S=(M,P)=>{d.x=M,d.y=P};let C;const j=LD(s?.document);o?C=j?{passive:!0}:{capture:!1}:C=j?{passive:!1,capture:!0}:{capture:!0};const E=M=>{m.value&&n?.(M,p.value),m.value=!1},I=[jn(e,"touchstart",M=>{if(M.touches.length!==1)return;C.capture&&!C.passive&&M.preventDefault();const[P,g]=T(M);R(P,g),S(P,g),r?.(M)},C),jn(e,"touchmove",M=>{if(M.touches.length!==1)return;const[P,g]=T(M);S(P,g),!m.value&&_.value&&(m.value=!0),m.value&&i?.(M)},C),jn(e,["touchend","touchcancel"],E,C)];return{isPassiveEventSupported:j,isSwiping:m,direction:p,coordsStart:l,coordsEnd:d,lengthX:u,lengthY:c,stop:()=>I.forEach(M=>M())}}function LD(e){if(!e)return!1;let t=!1;const a={get passive(){return t=!0,!1}};return e.addEventListener("x",ct,a),e.removeEventListener("x",ct),t}var ZD=Object.defineProperty,ID=Object.defineProperties,jD=Object.getOwnPropertyDescriptors,xr=Object.getOwnPropertySymbols,pf=Object.prototype.hasOwnProperty,Tf=Object.prototype.propertyIsEnumerable,Hd=(e,t,a)=>t in e?ZD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,PD=(e,t)=>{for(var a in t||(t={}))pf.call(t,a)&&Hd(e,a,t[a]);if(xr)for(var a of xr(t))Tf.call(t,a)&&Hd(e,a,t[a]);return e},GD=(e,t)=>ID(e,jD(t)),UD=(e,t)=>{var a={};for(var i in e)pf.call(e,i)&&t.indexOf(i)<0&&(a[i]=e[i]);if(e!=null&&xr)for(var i of xr(e))t.indexOf(i)<0&&Tf.call(e,i)&&(a[i]=e[i]);return a};function Df(e,t,a,i,n,r,o,s){var l=typeof e=="function"?e.options:e;t&&(l.render=t,l.staticRenderFns=a,l._compiled=!0),i&&(l.functional=!0),r&&(l._scopeId="data-v-"+r);var d;if(o?(d=function(f){f=f||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!f&&typeof __VUE_SSR_CONTEXT__<"u"&&(f=__VUE_SSR_CONTEXT__),n&&n.call(this,f),f&&f._registeredComponents&&f._registeredComponents.add(o)},l._ssrRegister=d):n&&(d=s?function(){n.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:n),d)if(l.functional){l._injectStyles=d;var u=l.render;l.render=function(f,h){return d.call(h),u(f,h)}}else{var c=l.beforeCreate;l.beforeCreate=c?[].concat(c,d):[d]}return{exports:e,options:l}}const qD={name:"splitpanes",props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((e,t)=>(e[t.id]=t)&&e,{})}},methods:{updatePaneComponents(){this.panes.forEach(e=>{e.update&&e.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[e.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(e,t){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=t},onMouseMove(e){this.touch.mouseDown&&(e.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(e)),this.$emit("resize",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(e,t){"ontouchstart"in window&&(e.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===t?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(e,t),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=t,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[t])},onSplitterDblClick(e,t){let a=0;this.panes=this.panes.map((i,n)=>(i.size=n===t?i.max:i.min,n!==t&&(a+=i.min),i)),this.panes[t].size-=a,this.$emit("pane-maximize",this.panes[t])},onPaneClick(e,t){this.$emit("pane-click",this.indexedPanes[t])},getCurrentMouseDrag(e){const t=this.container.getBoundingClientRect(),{clientX:a,clientY:i}="ontouchstart"in window&&e.touches?e.touches[0]:e;return{x:a-t.left,y:i-t.top}},getCurrentDragPercentage(e){e=e[this.horizontal?"y":"x"];const t=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(e=t-e),e*100/t},calculatePanesSize(e){const t=this.touch.activeSplitter;let a={prevPanesSize:this.sumPrevPanesSize(t),nextPanesSize:this.sumNextPanesSize(t),prevReachedMinPanes:0,nextReachedMinPanes:0};const i=0+(this.pushOtherPanes?0:a.prevPanesSize),n=100-(this.pushOtherPanes?0:a.nextPanesSize),r=Math.max(Math.min(this.getCurrentDragPercentage(e),n),i);let o=[t,t+1],s=this.panes[o[0]]||null,l=this.panes[o[1]]||null;const d=s.max<100&&r>=s.max+a.prevPanesSize,u=l.max<100&&r<=100-(l.max+this.sumNextPanesSize(t+1));if(d||u){d?(s.size=s.max,l.size=Math.max(100-s.max-a.prevPanesSize-a.nextPanesSize,0)):(s.size=Math.max(100-l.max-a.prevPanesSize-this.sumNextPanesSize(t+1),0),l.size=l.max);return}if(this.pushOtherPanes){const c=this.doPushOtherPanes(a,r);if(!c)return;({sums:a,panesToResize:o}=c),s=this.panes[o[0]]||null,l=this.panes[o[1]]||null}s!==null&&(s.size=Math.min(Math.max(r-a.prevPanesSize-a.prevReachedMinPanes,s.min),s.max)),l!==null&&(l.size=Math.min(Math.max(100-r-a.nextPanesSize-a.nextReachedMinPanes,l.min),l.max))},doPushOtherPanes(e,t){const a=this.touch.activeSplitter,i=[a,a+1];return t{r>i[0]&&r<=a&&(n.size=n.min,e.prevReachedMinPanes+=n.min)}),e.prevPanesSize=this.sumPrevPanesSize(i[0]),i[0]===void 0)?(e.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((n,r)=>{r>0&&r<=a&&(n.size=n.min,e.prevReachedMinPanes+=n.min)}),this.panes[i[1]].size=100-e.prevReachedMinPanes-this.panes[0].min-e.prevPanesSize-e.nextPanesSize,null):t>100-e.nextPanesSize-this.panes[i[1]].min&&(i[1]=this.findNextExpandedPane(a).index,e.nextReachedMinPanes=0,i[1]>a+1&&this.panes.forEach((n,r)=>{r>a&&r{r=a+1&&(n.size=n.min,e.nextReachedMinPanes+=n.min)}),this.panes[i[0]].size=100-e.prevPanesSize-e.nextReachedMinPanes-this.panes[this.panesCount-1].min-e.nextPanesSize,null):{sums:e,panesToResize:i}},sumPrevPanesSize(e){return this.panes.reduce((t,a,i)=>t+(it+(i>e+1?a.size:0),0)},findPrevExpandedPane(e){return[...this.panes].reverse().find(t=>t.indext.min)||{}},findNextExpandedPane(e){return this.panes.find(t=>t.index>e+1&&t.size>t.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(e=>{const t=e.classList.contains("splitpanes__pane"),a=e.classList.contains("splitpanes__splitter");if(!t&&!a){e.parentNode.removeChild(e),console.warn("Splitpanes: Only elements are allowed at the root of . One of your DOM nodes was removed.");return}})},addSplitter(e,t,a=!1){const i=e-1,n=document.createElement("div");n.classList.add("splitpanes__splitter"),a||(n.onmousedown=r=>this.onMouseDown(r,i),typeof window<"u"&&"ontouchstart"in window&&(n.ontouchstart=r=>this.onMouseDown(r,i)),n.onclick=r=>this.onSplitterClick(r,i+1)),this.dblClickSplitter&&(n.ondblclick=r=>this.onSplitterDblClick(r,i+1)),t.parentNode.insertBefore(n,t)},removeSplitter(e){e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.parentNode.removeChild(e)},redoSplitters(){const e=Array.from(this.container.children);e.forEach(a=>{a.className.includes("splitpanes__splitter")&&this.removeSplitter(a)});let t=0;e.forEach(a=>{a.className.includes("splitpanes__pane")&&(!t&&this.firstSplitter?this.addSplitter(t,a,!0):t&&this.addSplitter(t,a),t++)})},requestUpdate(e){var t=e,{target:a}=t,i=UD(t,["target"]);const n=this.indexedPanes[a._uid];Object.entries(i).forEach(([r,o])=>n[r]=o)},onPaneAdd(e){let t=-1;Array.from(e.$el.parentNode.children).some(n=>(n.className.includes("splitpanes__pane")&&t++,n===e.$el));const a=parseFloat(e.minSize),i=parseFloat(e.maxSize);this.panes.splice(t,0,{id:e._uid,index:t,min:isNaN(a)?0:a,max:isNaN(i)?100:i,size:e.size===null?null:parseFloat(e.size),givenSize:e.size,update:e.update}),this.panes.forEach((n,r)=>n.index=r),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[t]}),this.$emit("pane-add",{index:t,panes:this.panes.map(n=>({min:n.min,max:n.max,size:n.size}))})})},onPaneRemove(e){const t=this.panes.findIndex(i=>i.id===e._uid),a=this.panes.splice(t,1)[0];this.panes.forEach((i,n)=>i.index=n),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:GD(PD({},a),{index:t})}),this.$emit("pane-remove",{removed:a,panes:this.panes.map(i=>({min:i.min,max:i.max,size:i.size}))})})},resetPaneSizes(e={}){!e.addedPane&&!e.removedPane?this.initialPanesSizing():this.panes.some(t=>t.givenSize!==null||t.min||t.max<100)?this.equalizeAfterAddOrRemove(e):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size})))},equalize(){const e=100/this.panesCount;let t=0,a=[],i=[];this.panes.forEach(n=>{n.size=Math.max(Math.min(e,n.max),n.min),t-=n.size,n.size>=n.max&&a.push(n.id),n.size<=n.min&&i.push(n.id)}),t>.1&&this.readjustSizes(t,a,i)},initialPanesSizing(){100/this.panesCount;let e=100,t=[],a=[],i=0;this.panes.forEach(r=>{e-=r.size,r.size!==null&&i++,r.size>=r.max&&t.push(r.id),r.size<=r.min&&a.push(r.id)});let n=100;e>.1&&(this.panes.forEach(r=>{r.size===null&&(r.size=Math.max(Math.min(e/(this.panesCount-i),r.max),r.min)),n-=r.size}),n>.1&&this.readjustSizes(e,t,a))},equalizeAfterAddOrRemove({addedPane:e,removedPane:t}={}){let a=100/this.panesCount,i=0,n=[],r=[];e&&e.givenSize!==null&&(a=(100-e.givenSize)/(this.panesCount-1)),this.panes.forEach(o=>{i-=o.size,o.size>=o.max&&n.push(o.id),o.size<=o.min&&r.push(o.id)}),!(Math.abs(i)<.1)&&(this.panes.forEach(o=>{e&&e.givenSize!==null&&e.id===o.id||(o.size=Math.max(Math.min(a,o.max),o.min)),i-=o.size,o.size>=o.max&&n.push(o.id),o.size<=o.min&&r.push(o.id)}),i>.1&&this.readjustSizes(i,n,r))},readjustSizes(e,t,a){let i;e>0?i=e/(this.panesCount-t.length):i=e/(this.panesCount-a.length),this.panes.forEach((n,r)=>{if(e>0&&!t.includes(n.id)){const o=Math.max(Math.min(n.size+i,n.max),n.min),s=o-n.size;e-=s,n.size=o}else if(!a.includes(n.id)){const o=Math.max(Math.min(n.size+i,n.max),n.min),s=o-n.size;e-=s,n.size=o}n.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[n.id].size}%`})}),Math.abs(e)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(e){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((t,a)=>{t.ondblclick=e?i=>this.onSplitterDblClick(i,a):void 0})}},beforeDestroy(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(e){return e("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default)}};let HD,zD;const zd={};var VD=Df(qD,HD,zD,!1,$D,null,null,null);function $D(e){for(let t in zd)this[t]=zd[t]}var WD=function(){return VD.exports}(),QD=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"splitpanes__pane",style:e.style,on:{click:function(i){return e.onPaneClick(i,e._uid)}}},[e._t("default")],2)},JD=[];const KD={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeDestroy(){this.onPaneRemove(this)},methods:{update(e){this.style=e}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(e){this.requestUpdate({target:this,size:e})},minSizeNumber(e){this.requestUpdate({target:this,min:e})},maxSizeNumber(e){this.requestUpdate({target:this,max:e})}}},Vd={};var XD=Df(KD,QD,JD,!1,eE,null,null,null);function eE(e){for(let t in Vd)this[t]=Vd[t]}var tE=function(){return XD.exports}();const aE={name:"NcAppDetailsToggle",directives:{tooltip:uf},components:{NcButton:ai,ArrowRight:df},computed:{title(){return ie("Go back to the list")}},beforeMount(){this.toggleAppNavigationButton(!0)},beforeDestroy(){this.toggleAppNavigationButton(!1)},methods:{toggleAppNavigationButton(e=!0){const t=document.querySelector(".app-navigation .app-navigation-toggle");t&&(t.style.display=e?"none":null,e===!0&&_r("toggle-navigation",{open:!1}))}}};var iE=function(){var e=this,t=e._self._c;return t("NcButton",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.title,expression:"title"}],staticClass:"app-details-toggle",attrs:{"aria-label":e.title},scopedSlots:e._u([{key:"icon",fn:function(){return[t("ArrowRight",{attrs:{size:20}})]},proxy:!0}])})},nE=[],rE=ce(aE,iE,nE,!1,null,"5244e83e",null,null);const oE=rE.exports,$d=cf("nextcloud").persist().build(),sE={name:"NcAppContent",components:{NcAppDetailsToggle:oE,Pane:tE,Splitpanes:WD},mixins:[uD],props:{allowSwipeNavigation:{type:Boolean,default:!0},listSize:{type:Number,default:20},listMinWidth:{type:Number,default:15},listMaxWidth:{type:Number,default:40},paneConfigKey:{type:String,default:""},showDetails:{type:Boolean,default:!0},pageHeading:{type:String,default:null}},emits:["update:showDetails","resize:list"],data(){return{contentHeight:0,hasList:!1,swiping:{},listPaneSize:this.restorePaneConfig()}},computed:{paneConfigID(){if(this.paneConfigKey!=="")return`pane-list-size-${this.paneConfigKey}`;try{return`pane-list-size-${O_}`}catch{return console.info("[INFO] AppContent:","falling back to global nextcloud pane config"),"pane-list-size-nextcloud"}},detailsPaneSize(){return this.listPaneSize?100-this.listPaneSize:this.paneDefaults.details.size},paneDefaults(){return{list:{size:this.listSize,min:this.listMinWidth,max:this.listMaxWidth},details:{size:100-this.listSize,min:100-this.listMaxWidth,max:100-this.listMinWidth}}}},updated(){this.checkListSlot()},mounted(){this.allowSwipeNavigation&&(this.swiping=mf(this.$el,{onSwipeEnd:this.handleSwipe})),this.checkListSlot(),this.restorePaneConfig()},methods:{handleSwipe(e,t){Math.abs(this.swiping.lengthX)>70&&(this.swiping.coordsStart.x<300/2&&t==="right"?_r("toggle-navigation",{open:!0}):this.swiping.coordsStart.x<300*1.5&&t==="left"&&_r("toggle-navigation",{open:!1}))},handlePaneResize(e){const t=parseInt(e[0].size,10);$d.setItem(this.paneConfigID,JSON.stringify(t)),this.listPaneSize=t,this.$emit("resize:list",{size:t}),console.debug("AppContent pane config",t)},checkListSlot(){const e=!!this.$slots.list;this.hasList!==e&&(this.hasList=e)},restorePaneConfig(){const e=parseInt($d.getItem(this.paneConfigID),10);if(!isNaN(e)&&e!==this.listPaneSize)return console.debug("AppContent pane config",e),this.listPaneSize=e,e},hideDetails(){this.$emit("update:showDetails",!1)}}};var lE=function(){var e=this,t=e._self._c;return t("main",{staticClass:"app-content no-snapper",class:{"app-content--has-list":e.hasList},attrs:{id:"app-content-vue"}},[e.pageHeading?t("h1",{staticClass:"hidden-visually"},[e._v(" "+e._s(e.pageHeading)+" ")]):e._e(),e.hasList?[e.isMobile?t("div",{staticClass:"app-content-wrapper app-content-wrapper--mobile",class:e.showDetails?"app-content-wrapper--show-details":"app-content-wrapper--show-list"},[e.hasList&&e.showDetails?t("NcAppDetailsToggle",{nativeOn:{click:function(a){return a.stopPropagation(),a.preventDefault(),e.hideDetails.apply(null,arguments)}}}):e._e(),e._t("list"),e._t("default")],2):t("div",{staticClass:"app-content-wrapper"},[t("Splitpanes",{staticClass:"default-theme",on:{resized:e.handlePaneResize}},[t("Pane",{staticClass:"splitpanes__pane-list",attrs:{size:e.listPaneSize||e.paneDefaults.list.size,"min-size":e.paneDefaults.list.min,"max-size":e.paneDefaults.list.max}},[e._t("list")],2),t("Pane",{staticClass:"splitpanes__pane-details",attrs:{size:e.detailsPaneSize,"min-size":e.paneDefaults.details.min,"max-size":e.paneDefaults.details.max}},[e._t("default")],2)],1)],1)]:e._t("default")],2)},uE=[],dE=ce(sE,lE,uE,!1,null,"424ef3d1",null,null);const IM=dE.exports;const cE={name:"NcIconSvgWrapper",props:{svg:{type:String,default:""},name:{type:String,default:""},path:{type:String,default:""}},computed:{cleanSvg(){if(!this.svg||this.path)return;const e=G_.sanitize(this.svg),t=new DOMParser().parseFromString(e,"image/svg+xml");return t.querySelector("parsererror")?(Aa.util.warn("SVG is not valid"),""):(t.documentElement.id&&t.documentElement.removeAttribute("id"),t.documentElement.outerHTML)},attributes(){return{class:"icon-vue",role:"img","aria-hidden":this.name?void 0:!0,"aria-label":this.name||void 0}}}};var hE=function(){var e=this,t=e._self._c;return e.cleanSvg?t("span",e._b({domProps:{innerHTML:e._s(e.cleanSvg)}},"span",e.attributes,!1)):t("span",e._b({},"span",e.attributes,!1),[t("svg",{attrs:{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:e.path}})])])},fE=[],gE=ce(cE,hE,fE,!1,null,"6176f396",null,null);const Ef=gE.exports;const _E={name:"NcEmptyContent",props:{name:{type:String,default:""},description:{type:String,default:""}},computed:{hasName(){return this.name!==""},hasDescription(){var e;return this.description!==""||((e=this.$slots.description)==null?void 0:e[0])}}};var FE=function(){var e=this,t=e._self._c;return t("div",{staticClass:"empty-content",attrs:{role:"note"}},[e.$slots.icon?t("div",{staticClass:"empty-content__icon",attrs:{"aria-hidden":"true"}},[e._t("icon")],2):e._e(),e._t("name",function(){return[e.hasName?t("span",{staticClass:"empty-content__name"},[e._v(" "+e._s(e.name)+" ")]):e._e()]}),e.hasDescription?t("p",{staticClass:"empty-content__description"},[e._t("description",function(){return[e._v(" "+e._s(e.description)+" ")]})],2):e._e(),e.$slots.action?t("div",{staticClass:"empty-content__action"},[e._t("action")],2):e._e()],2)},mE=[],pE=ce(_E,FE,mE,!1,null,"458108e7",null,null);const du=pE.exports;class TE{constructor(t){if(typeof t!="object")throw new Error("Received activity data is not an object.");if(typeof t.activity_id!="number")throw new Error("The activity_id argument is not a valid string");if(typeof t.type!="string"||t.type.trim()==="")throw new Error("The activity_id argument is not a valid string");if(typeof t.subject!="string"||t.subject.trim()==="")throw new Error("The activity_id argument is not a valid string");if(typeof t.icon!="string"||t.icon.trim()==="")throw new Error("The activity_id argument is not a valid string");if(typeof t.datetime!="string"||t.datetime.trim()==="")throw new Error("The activity_id argument is not a valid string");this._activity=t}get id(){return this._activity.activity_id}get app(){return this._activity.app}get type(){return this._activity.type}get user(){return this._activity.user}get subject(){return this._activity.subject}get subjectRichTemplate(){return this._activity.subject_rich[0]}get subjectRichObjects(){return Array.isArray(this._activity.subject_rich[1])?{}:this._activity.subject_rich[1]}get message(){return this._activity.message}get messageRichTemplate(){return this._activity.message_rich[0]}get messageRichObjects(){return Array.isArray(this._activity.message_rich[1])?this._activity.message_rich[1]:{}}get objectType(){return this._activity.object_type}get objectId(){return this._activity.object_id}get objectName(){return this._activity.object_name}get link(){return this._activity.link}get icon(){return this._activity.icon}get datetime(){return this._activity.datetime}get dateFromNow(){return es(this._activity.datetime).fromNow()}get formattedDate(){return es(this._activity.datetime).format("LLL")}get timestamp(){return es(this._activity.datetime).unix()}get previews(){return this._activity.previews??[]}}const DE={name:"ChevronRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var EE=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon chevron-right-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},bE=[],yE=ce(DE,EE,bE,!1,null,null,null,null);const bf=yE.exports,AE={before(){(!this.$slots.default||this.text.trim()==="")&&(Aa.util.warn(`${this.$options.name} cannot be empty and requires a meaningful text content`,this),this.$destroy(),this.$el.remove())},beforeUpdate(){this.text=this.getText()},data(){return{text:this.getText()}},computed:{isLongText(){return this.text&&this.text.trim().length>20}},methods:{getText(){return this.$slots.default?this.$slots.default[0].text.trim():""}}},SE=function(e,t){let a=e.$parent;for(;a;){if(a.$options.name===t)return a;a=a.$parent}},yf={mixins:[AE],props:{icon:{type:String,default:""},name:{type:String,default:""},title:{type:String,default:""},closeAfterClick:{type:Boolean,default:!1},ariaLabel:{type:String,default:null},ariaHidden:{type:Boolean,default:null}},emits:["click"],computed:{isIconUrl(){try{return new URL(this.icon)}catch{return!1}}},methods:{onClick(e){if(this.$emit("click",e),this.closeAfterClick){const t=SE(this,"NcActions");t&&t.closeMenu&&t.closeMenu(!1)}}}},kE={name:"NcActionButton",components:{ChevronRightIcon:bf},mixins:[yf],props:{disabled:{type:Boolean,default:!1},ariaHidden:{type:Boolean,default:null},isMenu:{type:Boolean,default:!1}},computed:{isFocusable(){return!this.disabled}}};var vE=function(){var e=this,t=e._self._c;return t("li",{staticClass:"action",class:{"action--disabled":e.disabled}},[t("button",{staticClass:"action-button",class:{focusable:e.isFocusable},attrs:{"aria-label":e.ariaLabel,title:e.title,role:"menuitem",type:"button"},on:{click:e.onClick}},[e._t("icon",function(){return[t("span",{staticClass:"action-button__icon",class:[e.isIconUrl?"action-button__icon--url":e.icon],style:{backgroundImage:e.isIconUrl?`url(${e.icon})`:null},attrs:{"aria-hidden":e.ariaHidden}})]}),e.name?t("span",{staticClass:"action-button__longtext-wrapper"},[t("strong",{staticClass:"action-button__name"},[e._v(" "+e._s(e.name)+" ")]),t("br"),t("span",{staticClass:"action-button__longtext",domProps:{textContent:e._s(e.text)}})]):e.isLongText?t("span",{staticClass:"action-button__longtext",domProps:{textContent:e._s(e.text)}}):t("span",{staticClass:"action-button__text"},[e._v(e._s(e.text))]),e.isMenu?t("ChevronRightIcon",{staticClass:"action-button__menu-icon"}):e._e(),e._e()],2)])},RE=[],NE=ce(kE,vE,RE,!1,null,"4ad257bb",null,null);const wE=NE.exports;const Af=J_.getLoggerBuilder().detectUser().setApp("@nextcloud/vue").build();var Sf={exports:{}};(function(e){var t;(function(){t=e.exports})(),t.foldLength=75,t.newLineChar=`\r +`]},seconds:{msgid:"seconds",comments:{reference:"lib/index.ts:22"},msgstr:["秒"]}}}}}].find(function(f){return f.locale===u}))&&r().updateLocale(r().locale(),{relativeTime:{s:d.gettext("seconds")}});var c=r();return i}()})})(oh);var S2=oh.exports;const is=ti(S2);const k2={name:"NcButton",props:{alignment:{type:String,default:"center",validator:e=>["start","start-reverse","center","center-reverse","end","end-reverse"].includes(e)},disabled:{type:Boolean,default:!1},type:{type:String,validator(e){return["primary","secondary","tertiary","tertiary-no-background","tertiary-on-primary","error","warning","success"].indexOf(e)!==-1},default:"secondary"},nativeType:{type:String,validator(e){return["submit","reset","button"].indexOf(e)!==-1},default:"button"},wide:{type:Boolean,default:!1},ariaLabel:{type:String,default:null},href:{type:String,default:null},download:{type:String,default:null},to:{type:[String,Object],default:null},exact:{type:Boolean,default:!1},ariaHidden:{type:Boolean,default:null},pressed:{type:Boolean,default:null}},emits:["update:pressed","click"],computed:{realType(){return this.pressed?"primary":this.pressed===!1&&this.type==="primary"?"secondary":this.type},flexAlignment(){return this.alignment.split("-")[0]},isReverseAligned(){return this.alignment.includes("-")}},render(e){var t,a,i;const n=!!this.$slots.default,r=(t=this.$slots)==null?void 0:t.icon;!n&&!this.ariaLabel&&console.warn("You need to fill either the text or the ariaLabel props in the button component.",{text:(i=(a=this.$slots.default)==null?void 0:a[0])==null?void 0:i.text,ariaLabel:this.ariaLabel},this);const o=({navigate:s,isActive:l,isExactActive:d}={})=>e(this.to||!this.href?"button":"a",{class:["button-vue",{"button-vue--icon-only":r&&!n,"button-vue--text-only":n&&!r,"button-vue--icon-and-text":r&&n,[`button-vue--vue-${this.realType}`]:this.realType,"button-vue--wide":this.wide,[`button-vue--${this.flexAlignment}`]:this.flexAlignment!=="center","button-vue--reverse":this.isReverseAligned,active:l,"router-link-exact-active":d}],attrs:{"aria-label":this.ariaLabel,"aria-pressed":this.pressed,disabled:this.disabled,type:this.href?null:this.nativeType,role:this.href?"button":null,href:!this.to&&this.href?this.href:null,target:!this.to&&this.href?"_self":null,rel:!this.to&&this.href?"nofollow noreferrer noopener":null,download:!this.to&&this.href&&this.download?this.download:null,...this.$attrs},on:{...this.$listeners,click:u=>{typeof this.pressed=="boolean"&&this.$emit("update:pressed",!this.pressed),this.$emit("click",u),s?.(u)}}},[e("span",{class:"button-vue__wrapper"},[r?e("span",{class:"button-vue__icon",attrs:{"aria-hidden":this.ariaHidden}},[this.$slots.icon]):null,n?e("span",{class:"button-vue__text"},[this.$slots.default]):null])]);return this.to?e("router-link",{props:{custom:!0,to:this.to,exact:this.exact},scopedSlots:{default:o}}):o()}},v2=null,R2=null;var N2=de(k2,v2,R2,!1,null,"f507b497",null,null);const ai=N2.exports;function Na(e){return e.split("-")[0]}function tn(e){return e.split("-")[1]}function E0(e){return["top","bottom"].includes(Na(e))?"x":"y"}function su(e){return e==="y"?"height":"width"}function Ed(e){let{reference:t,floating:a,placement:i}=e;const n=t.x+t.width/2-a.width/2,r=t.y+t.height/2-a.height/2;let o;switch(Na(i)){case"top":o={x:n,y:t.y-a.height};break;case"bottom":o={x:n,y:t.y+t.height};break;case"right":o={x:t.x+t.width,y:r};break;case"left":o={x:t.x-a.width,y:r};break;default:o={x:t.x,y:t.y}}const s=E0(i),l=su(s);switch(tn(i)){case"start":o[s]=o[s]-(t[l]/2-a[l]/2);break;case"end":o[s]=o[s]+(t[l]/2-a[l]/2);break}return o}const w2=async(e,t,a)=>{const{placement:i="bottom",strategy:n="absolute",middleware:r=[],platform:o}=a;let s=await o.getElementRects({reference:e,floating:t,strategy:n}),{x:l,y:d}=Ed({...s,placement:i}),u=i,c={};for(let f=0;f({name:"arrow",options:e,async fn(t){const{element:a,padding:i=0}=e??{},{x:n,y:r,placement:o,rects:s,platform:l}=t;if(a==null)return{};const d=Gh(i),u={x:n,y:r},c=Na(o),f=E0(c),h=su(f),_=await l.getDimensions({element:a}),m=f==="y"?"top":"left",p=f==="y"?"bottom":"right",T=s.reference[h]+s.reference[f]-u[f]-s.floating[h],R=u[f]-s.reference[f],S=await l.getOffsetParent({element:a}),C=S?f==="y"?S.clientHeight||0:S.clientWidth||0:0,j=T/2-R/2,E=d[m],I=C-_[h]-d[p],M=C/2-_[h]/2+j,P=Qs(E,M,I);return{data:{[f]:P,centerOffset:M-P}}}}),C2={left:"right",right:"left",bottom:"top",top:"bottom"};function Nr(e){return e.replace(/left|right|bottom|top/g,t=>C2[t])}function Uh(e,t){const a=tn(e)==="start",i=E0(e),n=su(i);let r=i==="x"?a?"right":"left":a?"bottom":"top";return t.reference[n]>t.floating[n]&&(r=Nr(r)),{main:r,cross:Nr(r)}}const M2={start:"end",end:"start"};function Js(e){return e.replace(/start|end/g,t=>M2[t])}const Y2=["top","right","bottom","left"],L2=Y2.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);function Z2(e,t,a){return(e?[...a.filter(i=>tn(i)===e),...a.filter(i=>tn(i)!==e)]:a.filter(i=>Na(i)===i)).filter(i=>e?tn(i)===e||(t?Js(i)!==i:!1):!0)}const I2=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var a,i,n,r,o,s;const{x:l,y:d,rects:u,middlewareData:c,placement:f}=t,{alignment:h=null,allowedPlacements:_=L2,autoAlignment:m=!0,...p}=e;if((a=c.autoPlacement)!=null&&a.skip)return{};const T=Z2(h,m,_),R=await Eo(t,p),S=(i=(n=c.autoPlacement)==null?void 0:n.index)!=null?i:0,C=T[S],{main:j,cross:E}=Uh(C,u);if(f!==C)return{x:l,y:d,reset:{placement:T[0]}};const I=[R[Na(C)],R[j],R[E]],M=[...(r=(o=c.autoPlacement)==null?void 0:o.overflows)!=null?r:[],{placement:C,overflows:I}],P=T[S+1];if(P)return{data:{index:S+1,overflows:M},reset:{placement:P}};const g=M.slice().sort((k,x)=>k.overflows[0]-x.overflows[0]),D=(s=g.find(k=>{let{overflows:x}=k;return x.every(L=>L<=0)}))==null?void 0:s.placement;return{data:{skip:!0},reset:{placement:D??g[0].placement}}}}};function j2(e){const t=Nr(e);return[Js(e),t,Js(t)]}const P2=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var a,i;const{placement:n,middlewareData:r,rects:o,initialPlacement:s}=t;if((a=r.flip)!=null&&a.skip)return{};const{mainAxis:l=!0,crossAxis:d=!0,fallbackPlacements:u,fallbackStrategy:c="bestFit",flipAlignment:f=!0,...h}=e,_=Na(n),m=u||(_===s||!f?[Nr(s)]:j2(s)),p=[s,...m],T=await Eo(t,h),R=[];let S=((i=r.flip)==null?void 0:i.overflows)||[];if(l&&R.push(T[_]),d){const{main:I,cross:M}=Uh(n,o);R.push(T[I],T[M])}if(S=[...S,{placement:n,overflows:R}],!R.every(I=>I<=0)){var C,j;const I=((C=(j=r.flip)==null?void 0:j.index)!=null?C:0)+1,M=p[I];if(M)return{data:{index:I,overflows:S},reset:{placement:M}};let P="bottom";switch(c){case"bestFit":{var E;const g=(E=S.slice().sort((D,k)=>D.overflows.filter(x=>x>0).reduce((x,L)=>x+L,0)-k.overflows.filter(x=>x>0).reduce((x,L)=>x+L,0))[0])==null?void 0:E.placement;g&&(P=g);break}case"initialPlacement":P=s;break}return{data:{skip:!0},reset:{placement:P}}}return{}}}};function G2(e){let{placement:t,rects:a,value:i}=e;const n=Na(t),r=["left","top"].includes(n)?-1:1,o=typeof i=="function"?i({...a,placement:t}):i,{mainAxis:s,crossAxis:l}=typeof o=="number"?{mainAxis:o,crossAxis:0}:{mainAxis:0,crossAxis:0,...o};return E0(n)==="x"?{x:l,y:s*r}:{x:s*r,y:l}}const U2=function(e){return e===void 0&&(e=0),{name:"offset",options:e,fn(t){const{x:a,y:i,placement:n,rects:r}=t,o=G2({placement:n,rects:r,value:e});return{x:a+o.x,y:i+o.y,data:o}}}};function q2(e){return e==="x"?"y":"x"}const H2=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:a,y:i,placement:n}=t,{mainAxis:r=!0,crossAxis:o=!1,limiter:s={fn:p=>{let{x:T,y:R}=p;return{x:T,y:R}}},...l}=e,d={x:a,y:i},u=await Eo(t,l),c=E0(Na(n)),f=q2(c);let h=d[c],_=d[f];if(r){const p=c==="y"?"top":"left",T=c==="y"?"bottom":"right",R=h+u[p],S=h-u[T];h=Qs(R,h,S)}if(o){const p=f==="y"?"top":"left",T=f==="y"?"bottom":"right",R=_+u[p],S=_-u[T];_=Qs(R,_,S)}const m=s.fn({...t,[c]:h,[f]:_});return{...m,data:{x:m.x-a,y:m.y-i}}}}},z2=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var a;const{placement:i,rects:n,middlewareData:r}=t,{apply:o,...s}=e;if((a=r.size)!=null&&a.skip)return{};const l=await Eo(t,s),d=Na(i),u=tn(i)==="end";let c,f;d==="top"||d==="bottom"?(c=d,f=u?"left":"right"):(f=d,c=u?"top":"bottom");const h=hi(l.left,0),_=hi(l.right,0),m=hi(l.top,0),p=hi(l.bottom,0),T={height:n.floating.height-(["left","right"].includes(i)?2*(m!==0||p!==0?m+p:hi(l.top,l.bottom)):l[c]),width:n.floating.width-(["top","bottom"].includes(i)?2*(h!==0||_!==0?h+_:hi(l.left,l.right)):l[f])};return o?.({...T,...n}),{data:{skip:!0},reset:{rects:!0}}}}};function lu(e){return e?.toString()==="[object Window]"}function ii(e){if(e==null)return window;if(!lu(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function bo(e){return ii(e).getComputedStyle(e)}function Ea(e){return lu(e)?"":e?(e.nodeName||"").toLowerCase():""}function ba(e){return e instanceof ii(e).HTMLElement}function wr(e){return e instanceof ii(e).Element}function V2(e){return e instanceof ii(e).Node}function qh(e){const t=ii(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function yo(e){const{overflow:t,overflowX:a,overflowY:i}=bo(e);return/auto|scroll|overlay|hidden/.test(t+i+a)}function $2(e){return["table","td","th"].includes(Ea(e))}function Hh(e){const t=navigator.userAgent.toLowerCase().includes("firefox"),a=bo(e);return a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].includes(a.willChange)||t&&a.willChange==="filter"||t&&(a.filter?a.filter!=="none":!1)}const bd=Math.min,Zn=Math.max,Or=Math.round;function ln(e,t){t===void 0&&(t=!1);const a=e.getBoundingClientRect();let i=1,n=1;return t&&ba(e)&&(i=e.offsetWidth>0&&Or(a.width)/e.offsetWidth||1,n=e.offsetHeight>0&&Or(a.height)/e.offsetHeight||1),{width:a.width/i,height:a.height/n,top:a.top/n,right:a.right/i,bottom:a.bottom/n,left:a.left/i,x:a.left/i,y:a.top/n}}function ni(e){return((V2(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ao(e){return lu(e)?{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}:{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function zh(e){return ln(ni(e)).left+Ao(e).scrollLeft}function W2(e){const t=ln(e);return Or(t.width)!==e.offsetWidth||Or(t.height)!==e.offsetHeight}function Q2(e,t,a){const i=ba(t),n=ni(t),r=ln(e,i&&W2(t));let o={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(i||!i&&a!=="fixed")if((Ea(t)!=="body"||yo(n))&&(o=Ao(t)),ba(t)){const l=ln(t,!0);s.x=l.x+t.clientLeft,s.y=l.y+t.clientTop}else n&&(s.x=zh(n));return{x:r.left+o.scrollLeft-s.x,y:r.top+o.scrollTop-s.y,width:r.width,height:r.height}}function So(e){return Ea(e)==="html"?e:e.assignedSlot||e.parentNode||(qh(e)?e.host:null)||ni(e)}function yd(e){return!ba(e)||getComputedStyle(e).position==="fixed"?null:e.offsetParent}function J2(e){let t=So(e);for(;ba(t)&&!["html","body"].includes(Ea(t));){if(Hh(t))return t;t=t.parentNode}return null}function Ks(e){const t=ii(e);let a=yd(e);for(;a&&$2(a)&&getComputedStyle(a).position==="static";)a=yd(a);return a&&(Ea(a)==="html"||Ea(a)==="body"&&getComputedStyle(a).position==="static"&&!Hh(a))?t:a||J2(e)||t}function Ad(e){return{width:e.offsetWidth,height:e.offsetHeight}}function K2(e){let{rect:t,offsetParent:a,strategy:i}=e;const n=ba(a),r=ni(a);if(a===r)return t;let o={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if((n||!n&&i!=="fixed")&&((Ea(a)!=="body"||yo(r))&&(o=Ao(a)),ba(a))){const l=ln(a,!0);s.x=l.x+a.clientLeft,s.y=l.y+a.clientTop}return{...t,x:t.x-o.scrollLeft+s.x,y:t.y-o.scrollTop+s.y}}function X2(e){const t=ii(e),a=ni(e),i=t.visualViewport;let n=a.clientWidth,r=a.clientHeight,o=0,s=0;return i&&(n=i.width,r=i.height,Math.abs(t.innerWidth/i.scale-i.width)<.01&&(o=i.offsetLeft,s=i.offsetTop)),{width:n,height:r,x:o,y:s}}function e3(e){var t;const a=ni(e),i=Ao(e),n=(t=e.ownerDocument)==null?void 0:t.body,r=Zn(a.scrollWidth,a.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),o=Zn(a.scrollHeight,a.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0);let s=-i.scrollLeft+zh(e);const l=-i.scrollTop;return bo(n||a).direction==="rtl"&&(s+=Zn(a.clientWidth,n?n.clientWidth:0)-r),{width:r,height:o,x:s,y:l}}function Vh(e){return["html","body","#document"].includes(Ea(e))?e.ownerDocument.body:ba(e)&&yo(e)?e:Vh(So(e))}function xr(e,t){var a;t===void 0&&(t=[]);const i=Vh(e),n=i===((a=e.ownerDocument)==null?void 0:a.body),r=ii(i),o=n?[r].concat(r.visualViewport||[],yo(i)?i:[]):i,s=t.concat(o);return n?s:s.concat(xr(So(o)))}function t3(e,t){const a=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(a&&qh(a)){let i=t;do{if(i&&e===i)return!0;i=i.parentNode||i.host}while(i)}return!1}function a3(e){const t=ln(e),a=t.top+e.clientTop,i=t.left+e.clientLeft;return{top:a,left:i,x:i,y:a,right:i+e.clientWidth,bottom:a+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}function Sd(e,t){return t==="viewport"?Ws(X2(e)):wr(t)?a3(t):Ws(e3(ni(e)))}function i3(e){const t=xr(So(e)),a=["absolute","fixed"].includes(bo(e).position)&&ba(e)?Ks(e):e;return wr(a)?t.filter(i=>wr(i)&&t3(i,a)&&Ea(i)!=="body"):[]}function n3(e){let{element:t,boundary:a,rootBoundary:i}=e;const n=[...a==="clippingParents"?i3(t):[].concat(a),i],r=n[0],o=n.reduce((s,l)=>{const d=Sd(t,l);return s.top=Zn(d.top,s.top),s.right=bd(d.right,s.right),s.bottom=bd(d.bottom,s.bottom),s.left=Zn(d.left,s.left),s},Sd(t,r));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}const r3={getElementRects:e=>{let{reference:t,floating:a,strategy:i}=e;return{reference:Q2(t,Ks(a),i),floating:{...Ad(a),x:0,y:0}}},convertOffsetParentRelativeRectToViewportRelativeRect:e=>K2(e),getOffsetParent:e=>{let{element:t}=e;return Ks(t)},isElement:e=>wr(e),getDocumentElement:e=>{let{element:t}=e;return ni(t)},getClippingClientRect:e=>n3(e),getDimensions:e=>{let{element:t}=e;return Ad(t)},getClientRects:e=>{let{element:t}=e;return t.getClientRects()}},o3=(e,t,a)=>w2(e,t,{platform:r3,...a});var s3=Object.defineProperty,l3=Object.defineProperties,u3=Object.getOwnPropertyDescriptors,Br=Object.getOwnPropertySymbols,$h=Object.prototype.hasOwnProperty,Wh=Object.prototype.propertyIsEnumerable,kd=(e,t,a)=>t in e?s3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,Pa=(e,t)=>{for(var a in t||(t={}))$h.call(t,a)&&kd(e,a,t[a]);if(Br)for(var a of Br(t))Wh.call(t,a)&&kd(e,a,t[a]);return e},ko=(e,t)=>l3(e,u3(t)),d3=(e,t)=>{var a={};for(var i in e)$h.call(e,i)&&t.indexOf(i)<0&&(a[i]=e[i]);if(e!=null&&Br)for(var i of Br(e))t.indexOf(i)<0&&Wh.call(e,i)&&(a[i]=e[i]);return a};function Qh(e,t){for(const a in t)Object.prototype.hasOwnProperty.call(t,a)&&(typeof t[a]=="object"&&e[a]?Qh(e[a],t[a]):e[a]=t[a])}const na={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:5e3,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover","focus"],delay:{show:0,hide:400}}}};function un(e,t){let a=na.themes[e]||{},i;do i=a[t],typeof i>"u"?a.$extend?a=na.themes[a.$extend]||{}:(a=null,i=na[t]):a=null;while(a);return i}function c3(e){const t=[e];let a=na.themes[e]||{};do a.$extend&&!a.$resetCss?(t.push(a.$extend),a=na.themes[a.$extend]||{}):a=null;while(a);return t.map(i=>`v-popper--theme-${i}`)}function vd(e){const t=[e];let a=na.themes[e]||{};do a.$extend?(t.push(a.$extend),a=na.themes[a.$extend]||{}):a=null;while(a);return t}let Si=!1;if(typeof window<"u"){Si=!1;try{const e=Object.defineProperty({},"passive",{get(){Si=!0}});window.addEventListener("test",null,e)}catch{}}let Jh=!1;typeof window<"u"&&typeof navigator<"u"&&(Jh=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const Kh=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),Rd={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart"},Nd={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend"};function wd(e,t){const a=e.indexOf(t);a!==-1&&e.splice(a,1)}function ns(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const Pt=[];let li=null;const Od={};function xd(e){let t=Od[e];return t||(t=Od[e]=[]),t}let Xs=function(){};typeof window<"u"&&(Xs=window.Element);function we(e){return function(){const t=this.$props;return un(t.theme,e)}}const rs="__floating-vue__popper";var Xh=()=>({name:"VPopper",props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,required:!0},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:we("disabled")},positioningDisabled:{type:Boolean,default:we("positioningDisabled")},placement:{type:String,default:we("placement"),validator:e=>Kh.includes(e)},delay:{type:[String,Number,Object],default:we("delay")},distance:{type:[Number,String],default:we("distance")},skidding:{type:[Number,String],default:we("skidding")},triggers:{type:Array,default:we("triggers")},showTriggers:{type:[Array,Function],default:we("showTriggers")},hideTriggers:{type:[Array,Function],default:we("hideTriggers")},popperTriggers:{type:Array,default:we("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:we("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:we("popperHideTriggers")},container:{type:[String,Object,Xs,Boolean],default:we("container")},boundary:{type:[String,Xs],default:we("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:we("strategy")},autoHide:{type:[Boolean,Function],default:we("autoHide")},handleResize:{type:Boolean,default:we("handleResize")},instantMove:{type:Boolean,default:we("instantMove")},eagerMount:{type:Boolean,default:we("eagerMount")},popperClass:{type:[String,Array,Object],default:we("popperClass")},computeTransformOrigin:{type:Boolean,default:we("computeTransformOrigin")},autoMinSize:{type:Boolean,default:we("autoMinSize")},autoSize:{type:[Boolean,String],default:we("autoSize")},autoMaxSize:{type:Boolean,default:we("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:we("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:we("preventOverflow")},overflowPadding:{type:[Number,String],default:we("overflowPadding")},arrowPadding:{type:[Number,String],default:we("arrowPadding")},arrowOverflow:{type:Boolean,default:we("arrowOverflow")},flip:{type:Boolean,default:we("flip")},shift:{type:Boolean,default:we("shift")},shiftCrossAxis:{type:Boolean,default:we("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:we("noAutoFocus")}},provide(){return{[rs]:{parentPopper:this}}},inject:{[rs]:{default:null}},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},shownChildren:new Set,lastAutoHide:!0}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:ko(Pa({},this.classes),{popperClass:this.popperClass}),result:this.positioningDisabled?null:this.result}},parentPopper(){var e;return(e=this[rs])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:Pa(Pa({shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())}},["triggers","positioningDisabled"].reduce((e,t)=>(e[t]="$_refreshListeners",e),{})),["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})),created(){this.$_isDisposed=!0,this.randomId=`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeDestroy(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:a=!1}={}){var i,n;(i=this.parentPopper)!=null&&i.lockedChild&&this.parentPopper.lockedChild!==this||(this.$_pendingHide=!1,(a||!this.disabled)&&(((n=this.parentPopper)==null?void 0:n.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1,skipAiming:a=!1}={}){var i;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}if(!a&&this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((i=this.parentPopper)==null?void 0:i.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){this.$_isDisposed&&(this.$_isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=this.referenceNode(),this.$_targetNodes=this.targetNodes().filter(e=>e.nodeType===e.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.$_isDisposed||(this.$_isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"),this.$emit("dispose"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){var e;if(this.$_isDisposed||this.positioningDisabled)return;const t={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&t.middleware.push(U2({mainAxis:this.distance,crossAxis:this.skidding}));const a=this.placement.startsWith("auto");if(a?t.middleware.push(I2({alignment:(e=this.placement.split("-")[1])!=null?e:""})):t.placement=this.placement,this.preventOverflow&&(this.shift&&t.middleware.push(H2({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!a&&this.flip&&t.middleware.push(P2({padding:this.overflowPadding,boundary:this.boundary}))),t.middleware.push(B2({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&t.middleware.push({name:"arrowOverflow",fn:({placement:n,rects:r,middlewareData:o})=>{let s;const{centerOffset:l}=o.arrow;return n.startsWith("top")||n.startsWith("bottom")?s=Math.abs(l)>r.reference.width/2:s=Math.abs(l)>r.reference.height/2,{data:{overflow:s}}}}),this.autoMinSize||this.autoSize){const n=this.autoSize?this.autoSize:this.autoMinSize?"min":null;t.middleware.push({name:"autoSize",fn:({rects:r,placement:o,middlewareData:s})=>{var l;if((l=s.autoSize)!=null&&l.skip)return{};let d,u;return o.startsWith("top")||o.startsWith("bottom")?d=r.reference.width:u=r.reference.height,this.$_innerNode.style[n==="min"?"minWidth":n==="max"?"maxWidth":"width"]=d!=null?`${d}px`:null,this.$_innerNode.style[n==="min"?"minHeight":n==="max"?"maxHeight":"height"]=u!=null?`${u}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,t.middleware.push(z2({boundary:this.boundary,padding:this.overflowPadding,apply:({width:n,height:r})=>{this.$_innerNode.style.maxWidth=n!=null?`${n}px`:null,this.$_innerNode.style.maxHeight=r!=null?`${r}px`:null}})));const i=await o3(this.$_referenceNode,this.$_popperNode,t);Object.assign(this.result,{x:i.x,y:i.y,placement:i.placement,strategy:i.strategy,arrow:Pa(Pa({},i.middlewareData.arrow),i.middlewareData.arrowOverflow)})},$_scheduleShow(e=null,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),li&&this.instantMove&&li.instantMove&&li!==this.parentPopper){li.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e=null,t=!1){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(li=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await ns(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...xr(this.$_referenceNode),...xr(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),a=this.$_popperNode.querySelector(".v-popper__wrapper"),i=a.parentNode.getBoundingClientRect(),n=t.x+t.width/2-(i.left+a.offsetLeft),r=t.y+t.height/2-(i.top+a.offsetTop);this.result.transformOrigin=`${n}px ${r}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let a=0;a0){this.$_pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,wd(Pt,this),Pt.length===0&&document.body.classList.remove("v-popper--some-open");for(const a of vd(this.theme)){const i=xd(a);wd(i,this),i.length===0&&document.body.classList.remove(`v-popper--some-open--${a}`)}li===this&&(li=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=un(this.theme,"disposeTimeout");t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await ns(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.$_isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=a=>{this.isShown&&!this.$_hideInProgress||(a.usedByTooltip=!0,!this.$_preventShow&&this.show({event:a}))};this.$_registerTriggerListeners(this.$_targetNodes,Rd,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],Rd,this.popperTriggers,this.popperShowTriggers,e);const t=a=>i=>{i.usedByTooltip||this.hide({event:i,skipAiming:a})};this.$_registerTriggerListeners(this.$_targetNodes,Nd,this.triggers,this.hideTriggers,t(!1)),this.$_registerTriggerListeners([this.$_popperNode],Nd,this.popperTriggers,this.popperHideTriggers,t(!0))},$_registerEventListeners(e,t,a){this.$_events.push({targetNodes:e,eventType:t,handler:a}),e.forEach(i=>i.addEventListener(t,a,Si?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,a,i,n){let r=a;i!=null&&(r=typeof i=="function"?i(r):i),r.forEach(o=>{const s=t[o];s&&this.$_registerEventListeners(e,s,n)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(a=>{const{targetNodes:i,eventType:n,handler:r}=a;!e||e===n?i.forEach(o=>o.removeEventListener(n,r)):t.push(a)}),this.$_events=t},$_refreshListeners(){this.$_isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const a of this.$_targetNodes){const i=a.getAttribute(e);i&&(a.removeAttribute(e),a.setAttribute(t,i))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const a in e){const i=e[a];i==null?t.removeAttribute(a):t.setAttribute(a,i)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.$_pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$el.getBoundingClientRect();if(In>=e.left&&In<=e.right&&jn>=e.top&&jn<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),a=In-Ma,i=jn-Ya,n=t.left+t.width/2-Ma+(t.top+t.height/2)-Ya+t.width+t.height,r=Ma+a*n,o=Ya+i*n;return B0(Ma,Ya,r,o,t.left,t.top,t.left,t.bottom)||B0(Ma,Ya,r,o,t.left,t.top,t.right,t.top)||B0(Ma,Ya,r,o,t.right,t.top,t.right,t.bottom)||B0(Ma,Ya,r,o,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$scopedSlots.default(this.slotData)[0]}});typeof document<"u"&&typeof window<"u"&&(Jh?(document.addEventListener("touchstart",Bd,Si?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",f3,Si?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",Bd,!0),window.addEventListener("click",h3,!0)),window.addEventListener("resize",F3));function Bd(e){for(let t=0;t=0;i--){const n=Pt[i];try{const r=n.$_containsGlobalTarget=g3(n,e);n.$_pendingHide=!1,requestAnimationFrame(()=>{if(n.$_pendingHide=!1,!a[n.randomId]&&Cd(n,r,e)){if(n.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&r){let s=n.parentPopper;for(;s;)a[s.randomId]=!0,s=s.parentPopper;return}let o=n.parentPopper;for(;o&&Cd(o,o.$_containsGlobalTarget,e);)o.$_handleGlobalClose(e,t),o=o.parentPopper}})}catch{}}}function g3(e,t){const a=e.popperNode();return e.$_mouseDownContains||a.contains(t.target)}function Cd(e,t,a){return a.closeAllPopover||a.closePopover&&t||_3(e,a)&&!t}function _3(e,t){if(typeof e.autoHide=="function"){const a=e.autoHide(t);return e.lastAutoHide=a,a}return e.autoHide}function F3(e){for(let t=0;t{Ma=In,Ya=jn,In=e.clientX,jn=e.clientY},Si?{passive:!0}:void 0);function B0(e,t,a,i,n,r,o,s){const l=((o-n)*(t-r)-(s-r)*(e-n))/((s-r)*(a-e)-(o-n)*(i-t)),d=((a-e)*(t-r)-(i-t)*(e-n))/((s-r)*(a-e)-(o-n)*(i-t));return l>=0&&l<=1&&d>=0&&d<=1}function m3(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var a=e.indexOf("Trident/");if(a>0){var i=e.indexOf("rv:");return parseInt(e.substring(i+3,e.indexOf(".",i)),10)}var n=e.indexOf("Edge/");return n>0?parseInt(e.substring(n+5,e.indexOf(".",n)),10):-1}var ar;function el(){el.init||(el.init=!0,ar=m3()!==-1)}var p3={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},mounted:function(){var e=this;el(),this.$nextTick(function(){e._w=e.$el.offsetWidth,e._h=e.$el.offsetHeight,e.emitOnMount&&e.emitSize()});var t=document.createElement("object");this._resizeObject=t,t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex",-1),t.onload=this.addResizeHandlers,t.type="text/html",ar&&this.$el.appendChild(t),t.data="about:blank",ar||this.$el.appendChild(t)},beforeDestroy:function(){this.removeResizeHandlers()},methods:{compareAndNotify:function(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize:function(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers:function(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers:function(){this._resizeObject&&this._resizeObject.onload&&(!ar&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};function T3(e,t,a,i,n,r,o,s,l,d){typeof o!="boolean"&&(l=s,s=o,o=!1);var u=typeof a=="function"?a.options:a;e&&e.render&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0,n&&(u.functional=!0)),i&&(u._scopeId=i);var c;if(r?(c=function(_){_=_||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!_&&typeof __VUE_SSR_CONTEXT__<"u"&&(_=__VUE_SSR_CONTEXT__),t&&t.call(this,l(_)),_&&_._registeredComponents&&_._registeredComponents.add(r)},u._ssrRegister=c):t&&(c=o?function(_){t.call(this,d(_,this.$root.$options.shadowRoot))}:function(_){t.call(this,s(_))}),c)if(u.functional){var f=u.render;u.render=function(_,m){return c.call(m),f(_,m)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,c):[c]}return a}var D3=p3,tf=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"resize-observer",attrs:{tabindex:"-1"}})},E3=[];tf._withStripped=!0;var b3=void 0,y3="data-v-8859cc6c",A3=void 0,S3=!1,tl=T3({render:tf,staticRenderFns:E3},b3,D3,y3,S3,A3,!1,void 0,void 0,void 0);function k3(e){e.component("resize-observer",tl),e.component("ResizeObserver",tl)}var v3={version:"1.0.1",install:k3},C0=null;typeof window<"u"?C0=window.Vue:typeof mr.global<"u"&&(C0=mr.global.Vue),C0&&C0.use(v3);var af={computed:{themeClass(){return c3(this.theme)}}},R3={name:"VPopperContent",components:{ResizeObserver:tl},mixins:[af],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}},N3=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"popover",staticClass:"v-popper__popper",class:[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}],style:e.result?{position:e.result.strategy,transform:"translate3d("+Math.round(e.result.x)+"px,"+Math.round(e.result.y)+"px,0)"}:void 0,attrs:{id:e.popperId,"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0},on:{keyup:function(i){if(!i.type.indexOf("key")&&e._k(i.keyCode,"esc",27,i.key,["Esc","Escape"]))return null;e.autoHide&&e.$emit("hide")}}},[a("div",{staticClass:"v-popper__backdrop",on:{click:function(i){e.autoHide&&e.$emit("hide")}}}),a("div",{staticClass:"v-popper__wrapper",style:e.result?{transformOrigin:e.result.transformOrigin}:void 0},[a("div",{ref:"inner",staticClass:"v-popper__inner"},[e.mounted?[a("div",[e._t("default")],2),e.handleResize?a("ResizeObserver",{on:{notify:function(i){return e.$emit("resize",i)}}}):e._e()]:e._e()],2),a("div",{ref:"arrow",staticClass:"v-popper__arrow-container",style:e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0},[a("div",{staticClass:"v-popper__arrow-outer"}),a("div",{staticClass:"v-popper__arrow-inner"})])])])},w3=[];function bn(e,t,a,i,n,r,o,s){var l=typeof e=="function"?e.options:e;t&&(l.render=t,l.staticRenderFns=a,l._compiled=!0),i&&(l.functional=!0),r&&(l._scopeId="data-v-"+r);var d;if(o?(d=function(f){f=f||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!f&&typeof __VUE_SSR_CONTEXT__<"u"&&(f=__VUE_SSR_CONTEXT__),n&&n.call(this,f),f&&f._registeredComponents&&f._registeredComponents.add(o)},l._ssrRegister=d):n&&(d=s?function(){n.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:n),d)if(l.functional){l._injectStyles=d;var u=l.render;l.render=function(f,h){return d.call(h),u(f,h)}}else{var c=l.beforeCreate;l.beforeCreate=c?[].concat(c,d):[d]}return{exports:e,options:l}}const Md={};var O3=bn(R3,N3,w3,!1,x3,null,null,null);function x3(e){for(let t in Md)this[t]=Md[t]}var nf=function(){return O3.exports}(),uu={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}},B3={name:"VPopperWrapper",components:{Popper:Xh(),PopperContent:nf},mixins:[uu,af],inheritAttrs:!1,props:{theme:{type:String,default(){return this.$options.vPopperTheme}}},methods:{getTargetNodes(){return Array.from(this.$refs.reference.children).filter(e=>e!==this.$refs.popperContent.$el)}}},C3=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("Popper",e._g(e._b({ref:"popper",attrs:{theme:e.theme,"target-nodes":e.getTargetNodes,"reference-node":function(){return e.$refs.reference},"popper-node":function(){return e.$refs.popperContent.$el}},scopedSlots:e._u([{key:"default",fn:function(i){var n=i.popperId,r=i.isShown,o=i.shouldMountContent,s=i.skipTransition,l=i.autoHide,d=i.show,u=i.hide,c=i.handleResize,f=i.onResize,h=i.classes,_=i.result;return[a("div",{ref:"reference",staticClass:"v-popper",class:[e.themeClass,{"v-popper--shown":r}]},[e._t("default",null,{shown:r,show:d,hide:u}),a("PopperContent",{ref:"popperContent",attrs:{"popper-id":n,theme:e.theme,shown:r,mounted:o,"skip-transition":s,"auto-hide":l,"handle-resize":c,classes:h,result:_},on:{hide:u,resize:f}},[e._t("popper",null,{shown:r,hide:u})],2)],2)]}}],null,!0)},"Popper",e.$attrs,!1),e.$listeners))},M3=[];const Yd={};var Y3=bn(B3,C3,M3,!1,L3,null,null,null);function L3(e){for(let t in Yd)this[t]=Yd[t]}var du=function(){return Y3.exports}(),Z3=ko(Pa({},du),{name:"VDropdown",vPopperTheme:"dropdown"});let I3,j3;const Ld={};var P3=bn(Z3,I3,j3,!1,G3,null,null,null);function G3(e){for(let t in Ld)this[t]=Ld[t]}var al=function(){return P3.exports}(),U3=ko(Pa({},du),{name:"VMenu",vPopperTheme:"menu"});let q3,H3;const Zd={};var z3=bn(U3,q3,H3,!1,V3,null,null,null);function V3(e){for(let t in Zd)this[t]=Zd[t]}var Id=function(){return z3.exports}(),$3=ko(Pa({},du),{name:"VTooltip",vPopperTheme:"tooltip"});let W3,Q3;const jd={};var J3=bn($3,W3,Q3,!1,K3,null,null,null);function K3(e){for(let t in jd)this[t]=jd[t]}var Pd=function(){return J3.exports}(),X3={name:"VTooltipDirective",components:{Popper:Xh(),PopperContent:nf},mixins:[uu],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default(){return un(this.theme,"html")}},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default(){return un(this.theme,"loadingContent")}}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(e){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,a=this.content(this);a.then?a.then(i=>this.onResult(t,i)):this.onResult(t,a)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}},eD=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("Popper",e._g(e._b({ref:"popper",attrs:{theme:e.theme,"popper-node":function(){return e.$refs.popperContent.$el}},on:{"apply-show":e.onShow,"apply-hide":e.onHide},scopedSlots:e._u([{key:"default",fn:function(i){var n=i.popperId,r=i.isShown,o=i.shouldMountContent,s=i.skipTransition,l=i.autoHide,d=i.hide,u=i.handleResize,c=i.onResize,f=i.classes,h=i.result;return[a("PopperContent",{ref:"popperContent",class:{"v-popper--tooltip-loading":e.loading},attrs:{"popper-id":n,theme:e.theme,shown:r,mounted:o,"skip-transition":s,"auto-hide":l,"handle-resize":u,classes:f,result:h},on:{hide:d,resize:c}},[e.html?a("div",{domProps:{innerHTML:e._s(e.finalContent)}}):a("div",{domProps:{textContent:e._s(e.finalContent)}})])]}}])},"Popper",e.$attrs,!1),e.$listeners))},tD=[];const Gd={};var aD=bn(X3,eD,tD,!1,iD,null,null,null);function iD(e){for(let t in Gd)this[t]=Gd[t]}var nD=function(){return aD.exports}();const rf="v-popper--has-tooltip";function rD(e,t){let a=e.placement;if(!a&&t)for(const i of Kh)t[i]&&(a=i);return a||(a=un(e.theme||"tooltip","placement")),a}function of(e,t,a){let i;const n=typeof t;return n==="string"?i={content:t}:t&&n==="object"?i=t:i={content:!1},i.placement=rD(i,a),i.targetNodes=()=>[e],i.referenceNode=()=>e,i}function oD(e,t,a){const i=of(e,t,a),n=e.$_popper=new Sa({mixins:[uu],data(){return{options:i}},render(o){const s=this.options,{theme:l,html:d,content:u,loadingContent:c}=s,f=d3(s,["theme","html","content","loadingContent"]);return o(nD,{props:{theme:l,html:d,content:u,loadingContent:c},attrs:f,ref:"popper"})},devtools:{hide:!0}}),r=document.createElement("div");return document.body.appendChild(r),n.$mount(r),e.classList&&e.classList.add(rf),n}function sf(e){e.$_popper&&(e.$_popper.$destroy(),delete e.$_popper,delete e.$_popperOldShown),e.classList&&e.classList.remove(rf)}function Ud(e,{value:t,oldValue:a,modifiers:i}){const n=of(e,t,i);if(!n.content||un(n.theme||"tooltip","disabled"))sf(e);else{let r;e.$_popper?(r=e.$_popper,r.options=n):r=oD(e,t,i),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?r.show():r.hide())}}var lf={bind:Ud,update:Ud,unbind(e){sf(e)}};function qd(e){e.addEventListener("click",uf),e.addEventListener("touchstart",df,Si?{passive:!0}:!1)}function Hd(e){e.removeEventListener("click",uf),e.removeEventListener("touchstart",df),e.removeEventListener("touchend",cf),e.removeEventListener("touchcancel",hf)}function uf(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function df(e){if(e.changedTouches.length===1){const t=e.currentTarget;t.$_vclosepopover_touch=!0;const a=e.changedTouches[0];t.$_vclosepopover_touchPoint=a,t.addEventListener("touchend",cf),t.addEventListener("touchcancel",hf)}}function cf(e){const t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){const a=e.changedTouches[0],i=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(a.screenY-i.screenY)<20&&Math.abs(a.screenX-i.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function hf(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}var sD={bind(e,{value:t,modifiers:a}){e.$_closePopoverModifiers=a,(typeof t>"u"||t)&&qd(e)},update(e,{value:t,oldValue:a,modifiers:i}){e.$_closePopoverModifiers=i,t!==a&&(typeof t>"u"||t?qd(e):Hd(e))},unbind(e){Hd(e)}};const M0=na,ff=lf,lD=al;function uD(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,Qh(na,t),e.directive("tooltip",lf),e.directive("close-popper",sD),e.component("v-tooltip",Pd),e.component("VTooltip",Pd),e.component("v-dropdown",al),e.component("VDropdown",al),e.component("v-menu",Id),e.component("VMenu",Id))}const dD={version:"1.0.0-beta.19",install:uD,options:na};let Y0=null;typeof window<"u"?Y0=window.Vue:typeof mr.global<"u"&&(Y0=mr.global.Vue),Y0&&Y0.use(dD);M0.themes.tooltip.html=!1,M0.themes.tooltip.delay={show:500,hide:200},M0.themes.tooltip.distance=10,M0.themes.tooltip["arrow-padding"]=3;const cD={name:"ArrowRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var hD=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon arrow-right-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M4,11V13H16L10.5,18.5L11.92,19.92L19.84,12L11.92,4.08L10.5,5.5L16,11H4Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},fD=[],gD=de(cD,hD,fD,!1,null,null,null,null);const gf=gD.exports,os=new Sa({data(){return{isMobile:!1}},watch:{isMobile(e){this.$emit("changed",e)}},created(){window.addEventListener("resize",this.handleWindowResize),this.handleWindowResize()},beforeDestroy(){window.removeEventListener("resize",this.handleWindowResize)},methods:{handleWindowResize(){this.isMobile=document.documentElement.clientWidth<1024}}}),_D={data(){return{isMobile:!1}},mounted(){os.$on("changed",this.onIsMobileChanged),this.isMobile=os.isMobile},beforeDestroy(){os.$off("changed",this.onIsMobileChanged)},methods:{onIsMobileChanged(e){this.isMobile=e}}};var ir={},Cr={},u0={};Object.defineProperty(u0,"__esModule",{value:!0}),u0.default=void 0;function Mr(e,t,a){return t=FD(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function FD(e){var t=mD(e,"string");return typeof t=="symbol"?t:String(t)}function mD(e,t){if(typeof e!="object"||e===null)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var i=a.call(e,t||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class an{constructor(t,a,i){Mr(this,"scope",void 0),Mr(this,"wrapped",void 0),this.scope=`${i?an.GLOBAL_SCOPE_PERSISTENT:an.GLOBAL_SCOPE_VOLATILE}_${btoa(t)}_`,this.wrapped=a}scopeKey(t){return`${this.scope}${t}`}setItem(t,a){this.wrapped.setItem(this.scopeKey(t),a)}getItem(t){return this.wrapped.getItem(this.scopeKey(t))}removeItem(t){this.wrapped.removeItem(this.scopeKey(t))}clear(){Object.keys(this.wrapped).filter(t=>t.startsWith(this.scope)).map(this.wrapped.removeItem.bind(this.wrapped))}}u0.default=an,Mr(an,"GLOBAL_SCOPE_VOLATILE","nextcloud_vol"),Mr(an,"GLOBAL_SCOPE_PERSISTENT","nextcloud_per"),Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.default=void 0;var pD=TD(u0);function TD(e){return e&&e.__esModule?e:{default:e}}function ss(e,t,a){return t=DD(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function DD(e){var t=ED(e,"string");return typeof t=="symbol"?t:String(t)}function ED(e,t){if(typeof e!="object"||e===null)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var i=a.call(e,t||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class bD{constructor(t){ss(this,"appId",void 0),ss(this,"persisted",!1),ss(this,"clearedOnLogout",!1),this.appId=t}persist(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return this.persisted=t,this}clearOnLogout(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return this.clearedOnLogout=t,this}build(){return new pD.default(this.appId,this.persisted?window.localStorage:window.sessionStorage,!this.clearedOnLogout)}}Cr.default=bD,Object.defineProperty(ir,"__esModule",{value:!0}),ir.clearAll=kD,ir.clearNonPersistent=vD;var _f=ir.getBuilder=SD,yD=Ff(Cr),AD=Ff(u0);function Ff(e){return e&&e.__esModule?e:{default:e}}function SD(e){return new yD.default(e)}function mf(e,t){Object.keys(e).filter(a=>t?t(a):!0).map(e.removeItem.bind(e))}function kD(){[window.sessionStorage,window.localStorage].map(e=>mf(e))}function vD(){[window.sessionStorage,window.localStorage].map(e=>mf(e,t=>!t.startsWith(AD.default.GLOBAL_SCOPE_PERSISTENT)))}Sa.util.warn;function b0(e){return U_()?(q_(e),!0):!1}function rt(e){return typeof e=="function"?e():H_(e)}const cu=typeof window<"u"&&typeof document<"u",RD=e=>e!=null,ND=Object.prototype.toString,pf=e=>ND.call(e)==="[object Object]",ht=()=>{},il=wD();function wD(){var e;return cu&&((e=window?.navigator)==null?void 0:e.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent)}function Tf(e,t){function a(...i){return new Promise((n,r)=>{Promise.resolve(e(()=>t.apply(this,i),{fn:t,thisArg:this,args:i})).then(n).catch(r)})}return a}function OD(e,t={}){let a,i,n=ht;const r=o=>{clearTimeout(o),n(),n=ht};return o=>{const s=rt(e),l=rt(t.maxWait);return a&&r(a),s<=0||l!==void 0&&l<=0?(i&&(r(i),i=null),Promise.resolve(o())):new Promise((d,u)=>{n=t.rejectOnCancel?u:d,l&&!i&&(i=setTimeout(()=>{a&&r(a),i=null,d(o())},l)),a=setTimeout(()=>{i&&r(i),i=null,d(o())},s)})}}function xD(e,t=!0,a=!0,i=!1){let n=0,r,o=!0,s=ht,l;const d=()=>{r&&(clearTimeout(r),r=void 0,s(),s=ht)};return u=>{const c=rt(e),f=Date.now()-n,h=()=>l=u();return d(),c<=0?(n=Date.now(),h()):(f>c&&(a||!o)?(n=Date.now(),h()):t&&(l=new Promise((_,m)=>{s=i?m:_,r=setTimeout(()=>{n=Date.now(),o=!0,_(h()),d()},Math.max(0,c-f))})),!a&&!r&&(r=setTimeout(()=>o=!0,c)),o=!1,l)}}const zd={mounted:"inserted",updated:"componentUpdated",unmounted:"unbind"};function BD(...e){if(e.length!==1)return j_(...e);const t=e[0];return typeof t=="function"?P_(G_(()=>({get:t,set:ht}))):ut(t)}function CD(e,t=200,a={}){return Tf(OD(t,a),e)}function MD(e,t=200,a=!1,i=!0,n=!1){return Tf(xD(t,a,i,n),e)}Sa.util.warn;function Ta(e){var t;const a=rt(e);return(t=a?.$el)!=null?t:a}const wi=cu?window:void 0;function Pn(...e){let t,a,i,n;if(typeof e[0]=="string"||Array.isArray(e[0])?([a,i,n]=e,t=wi):[t,a,i,n]=e,!t)return ht;Array.isArray(a)||(a=[a]),Array.isArray(i)||(i=[i]);const r=[],o=()=>{r.forEach(u=>u()),r.length=0},s=(u,c,f,h)=>(u.addEventListener(c,f,h),()=>u.removeEventListener(c,f,h)),l=ei(()=>[Ta(t),rt(n)],([u,c])=>{if(o(),!u)return;const f=pf(c)?{...c}:c;r.push(...a.flatMap(h=>i.map(_=>s(u,h,_,f))))},{immediate:!0,flush:"post"}),d=()=>{l(),o()};return b0(d),d}function YD(){const e=ut(!1);return Qc()&&Jc(()=>{e.value=!0}),e}function Df(e){const t=YD();return ze(()=>(t.value,!!e()))}function LD(e,t,a={}){const{window:i=wi,...n}=a;let r;const o=Df(()=>i&&"ResizeObserver"in i),s=()=>{r&&(r.disconnect(),r=void 0)},l=ze(()=>Array.isArray(e)?e.map(c=>Ta(c)):[Ta(e)]),d=ei(l,c=>{if(s(),o.value&&i){r=new ResizeObserver(t);for(const f of c)f&&r.observe(f,n)}},{immediate:!0,flush:"post",deep:!0}),u=()=>{s(),d()};return b0(u),{isSupported:o,stop:u}}function ZD(e,t={width:0,height:0},a={}){const{window:i=wi,box:n="content-box"}=a,r=ze(()=>{var l,d;return(d=(l=Ta(e))==null?void 0:l.namespaceURI)==null?void 0:d.includes("svg")}),o=ut(t.width),s=ut(t.height);return LD(e,([l])=>{const d=n==="border-box"?l.borderBoxSize:n==="content-box"?l.contentBoxSize:l.devicePixelContentBoxSize;if(i&&r.value){const u=Ta(e);if(u){const c=i.getComputedStyle(u);o.value=Number.parseFloat(c.width),s.value=Number.parseFloat(c.height)}}else if(d){const u=Array.isArray(d)?d:[d];o.value=u.reduce((c,{inlineSize:f})=>c+f,0),s.value=u.reduce((c,{blockSize:f})=>c+f,0)}else o.value=l.contentRect.width,s.value=l.contentRect.height},a),ei(()=>Ta(e),l=>{o.value=l?t.width:0,s.value=l?t.height:0}),{width:o,height:s}}function ID(e,t,a={}){const{root:i,rootMargin:n="0px",threshold:r=.1,window:o=wi,immediate:s=!0}=a,l=Df(()=>o&&"IntersectionObserver"in o),d=ze(()=>{const _=rt(e);return(Array.isArray(_)?_:[_]).map(Ta).filter(RD)});let u=ht;const c=ut(s),f=l.value?ei(()=>[d.value,Ta(i),c.value],([_,m])=>{if(u(),!c.value||!_.length)return;const p=new IntersectionObserver(t,{root:Ta(m),rootMargin:n,threshold:r});_.forEach(T=>T&&p.observe(T)),u=()=>{p.disconnect(),u=ht}},{immediate:s,flush:"post"}):ht,h=()=>{u(),f(),c.value=!1};return b0(h),{isSupported:l,isActive:c,pause(){u(),c.value=!1},resume(){c.value=!0},stop:h}}function jD(e,t={}){const{window:a=wi,scrollTarget:i}=t,n=ut(!1);return ID(e,([{isIntersecting:r}])=>{n.value=r},{root:i,window:a,threshold:0}),n}const Vd=1;function PD(e,t={}){const{throttle:a=0,idle:i=200,onStop:n=ht,onScroll:r=ht,offset:o={left:0,right:0,top:0,bottom:0},eventListenerOptions:s={capture:!1,passive:!0},behavior:l="auto",window:d=wi}=t,u=ut(0),c=ut(0),f=ze({get(){return u.value},set(E){_(E,void 0)}}),h=ze({get(){return c.value},set(E){_(void 0,E)}});function _(E,I){var M,P,g;if(!d)return;const D=rt(e);D&&((g=D instanceof Document?d.document.body:D)==null||g.scrollTo({top:(M=rt(I))!=null?M:h.value,left:(P=rt(E))!=null?P:f.value,behavior:rt(l)}))}const m=ut(!1),p=n0({left:!0,right:!1,top:!0,bottom:!1}),T=n0({left:!1,right:!1,top:!1,bottom:!1}),R=E=>{m.value&&(m.value=!1,T.left=!1,T.right=!1,T.top=!1,T.bottom=!1,n(E))},S=CD(R,a+i),C=E=>{var I;if(!d)return;const M=E.document?E.document.documentElement:(I=E.documentElement)!=null?I:E,{display:P,flexDirection:g}=getComputedStyle(M),D=M.scrollLeft;T.left=Du.value;const k=Math.abs(D)<=0+(o.left||0),x=Math.abs(D)+M.clientWidth>=M.scrollWidth-(o.right||0)-Vd;P==="flex"&&g==="row-reverse"?(p.left=x,p.right=k):(p.left=k,p.right=x),u.value=D;let L=M.scrollTop;E===d.document&&!L&&(L=d.document.body.scrollTop),T.top=Lc.value;const Z=Math.abs(L)<=0+(o.top||0),$=Math.abs(L)+M.clientHeight>=M.scrollHeight-(o.bottom||0)-Vd;P==="flex"&&g==="column-reverse"?(p.top=$,p.bottom=Z):(p.top=Z,p.bottom=$),c.value=L},j=E=>{var I;if(!d)return;const M=(I=E.target.documentElement)!=null?I:E.target;C(M),m.value=!0,S(E),r(E)};return Pn(e,"scroll",a?MD(j,a,!0,!1):j,s),Pn(e,"scrollend",R,s),{x:f,y:h,isScrolling:m,arrivedState:p,directions:T,measure(){const E=rt(e);d&&E&&C(E)}}}function GD(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function c7(e,t,a={}){var i;const{direction:n="bottom",interval:r=100}=a,o=n0(PD(e,{...a,offset:{[n]:(i=a.distance)!=null?i:0,...a.offset}})),s=ut(),l=ze(()=>!!s.value),d=ze(()=>GD(rt(e))),u=jD(d);function c(){if(o.measure(),!d.value||!u.value)return;const{scrollHeight:f,clientHeight:h,scrollWidth:_,clientWidth:m}=d.value,p=n==="bottom"||n==="top"?f<=h:_<=m;(o.arrivedState[n]||p)&&(s.value||(s.value=Promise.all([t(o),new Promise(T=>setTimeout(T,r))]).finally(()=>{s.value=null,z_(()=>c())})))}return ei(()=>[o.arrivedState[n],u.value],c,{immediate:!0}),{isLoading:l}}function Ef(e,t={}){const{threshold:a=50,onSwipe:i,onSwipeEnd:n,onSwipeStart:r,passive:o=!0,window:s=wi}=t,l=n0({x:0,y:0}),d=n0({x:0,y:0}),u=ze(()=>l.x-d.x),c=ze(()=>l.y-d.y),{max:f,abs:h}=Math,_=ze(()=>f(h(u.value),h(c.value))>=a),m=ut(!1),p=ze(()=>_.value?h(u.value)>h(c.value)?u.value>0?"left":"right":c.value>0?"up":"down":"none"),T=M=>[M.touches[0].clientX,M.touches[0].clientY],R=(M,P)=>{l.x=M,l.y=P},S=(M,P)=>{d.x=M,d.y=P};let C;const j=UD(s?.document);o?C=j?{passive:!0}:{capture:!1}:C=j?{passive:!1,capture:!0}:{capture:!0};const E=M=>{m.value&&n?.(M,p.value),m.value=!1},I=[Pn(e,"touchstart",M=>{if(M.touches.length!==1)return;C.capture&&!C.passive&&M.preventDefault();const[P,g]=T(M);R(P,g),S(P,g),r?.(M)},C),Pn(e,"touchmove",M=>{if(M.touches.length!==1)return;const[P,g]=T(M);S(P,g),!m.value&&_.value&&(m.value=!0),m.value&&i?.(M)},C),Pn(e,["touchend","touchcancel"],E,C)];return{isPassiveEventSupported:j,isSwiping:m,direction:p,coordsStart:l,coordsEnd:d,lengthX:u,lengthY:c,stop:()=>I.forEach(M=>M())}}function UD(e){if(!e)return!1;let t=!1;const a={get passive(){return t=!0,!1}};return e.addEventListener("x",ht,a),e.removeEventListener("x",ht),t}var qD=Object.defineProperty,HD=Object.defineProperties,zD=Object.getOwnPropertyDescriptors,Yr=Object.getOwnPropertySymbols,bf=Object.prototype.hasOwnProperty,yf=Object.prototype.propertyIsEnumerable,$d=(e,t,a)=>t in e?qD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,VD=(e,t)=>{for(var a in t||(t={}))bf.call(t,a)&&$d(e,a,t[a]);if(Yr)for(var a of Yr(t))yf.call(t,a)&&$d(e,a,t[a]);return e},$D=(e,t)=>HD(e,zD(t)),WD=(e,t)=>{var a={};for(var i in e)bf.call(e,i)&&t.indexOf(i)<0&&(a[i]=e[i]);if(e!=null&&Yr)for(var i of Yr(e))t.indexOf(i)<0&&yf.call(e,i)&&(a[i]=e[i]);return a};function Af(e,t,a,i,n,r,o,s){var l=typeof e=="function"?e.options:e;t&&(l.render=t,l.staticRenderFns=a,l._compiled=!0),i&&(l.functional=!0),r&&(l._scopeId="data-v-"+r);var d;if(o?(d=function(f){f=f||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!f&&typeof __VUE_SSR_CONTEXT__<"u"&&(f=__VUE_SSR_CONTEXT__),n&&n.call(this,f),f&&f._registeredComponents&&f._registeredComponents.add(o)},l._ssrRegister=d):n&&(d=s?function(){n.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:n),d)if(l.functional){l._injectStyles=d;var u=l.render;l.render=function(f,h){return d.call(h),u(f,h)}}else{var c=l.beforeCreate;l.beforeCreate=c?[].concat(c,d):[d]}return{exports:e,options:l}}const QD={name:"splitpanes",props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((e,t)=>(e[t.id]=t)&&e,{})}},methods:{updatePaneComponents(){this.panes.forEach(e=>{e.update&&e.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[e.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(e,t){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=t},onMouseMove(e){this.touch.mouseDown&&(e.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(e)),this.$emit("resize",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(e,t){"ontouchstart"in window&&(e.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===t?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(e,t),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=t,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[t])},onSplitterDblClick(e,t){let a=0;this.panes=this.panes.map((i,n)=>(i.size=n===t?i.max:i.min,n!==t&&(a+=i.min),i)),this.panes[t].size-=a,this.$emit("pane-maximize",this.panes[t])},onPaneClick(e,t){this.$emit("pane-click",this.indexedPanes[t])},getCurrentMouseDrag(e){const t=this.container.getBoundingClientRect(),{clientX:a,clientY:i}="ontouchstart"in window&&e.touches?e.touches[0]:e;return{x:a-t.left,y:i-t.top}},getCurrentDragPercentage(e){e=e[this.horizontal?"y":"x"];const t=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(e=t-e),e*100/t},calculatePanesSize(e){const t=this.touch.activeSplitter;let a={prevPanesSize:this.sumPrevPanesSize(t),nextPanesSize:this.sumNextPanesSize(t),prevReachedMinPanes:0,nextReachedMinPanes:0};const i=0+(this.pushOtherPanes?0:a.prevPanesSize),n=100-(this.pushOtherPanes?0:a.nextPanesSize),r=Math.max(Math.min(this.getCurrentDragPercentage(e),n),i);let o=[t,t+1],s=this.panes[o[0]]||null,l=this.panes[o[1]]||null;const d=s.max<100&&r>=s.max+a.prevPanesSize,u=l.max<100&&r<=100-(l.max+this.sumNextPanesSize(t+1));if(d||u){d?(s.size=s.max,l.size=Math.max(100-s.max-a.prevPanesSize-a.nextPanesSize,0)):(s.size=Math.max(100-l.max-a.prevPanesSize-this.sumNextPanesSize(t+1),0),l.size=l.max);return}if(this.pushOtherPanes){const c=this.doPushOtherPanes(a,r);if(!c)return;({sums:a,panesToResize:o}=c),s=this.panes[o[0]]||null,l=this.panes[o[1]]||null}s!==null&&(s.size=Math.min(Math.max(r-a.prevPanesSize-a.prevReachedMinPanes,s.min),s.max)),l!==null&&(l.size=Math.min(Math.max(100-r-a.nextPanesSize-a.nextReachedMinPanes,l.min),l.max))},doPushOtherPanes(e,t){const a=this.touch.activeSplitter,i=[a,a+1];return t{r>i[0]&&r<=a&&(n.size=n.min,e.prevReachedMinPanes+=n.min)}),e.prevPanesSize=this.sumPrevPanesSize(i[0]),i[0]===void 0)?(e.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((n,r)=>{r>0&&r<=a&&(n.size=n.min,e.prevReachedMinPanes+=n.min)}),this.panes[i[1]].size=100-e.prevReachedMinPanes-this.panes[0].min-e.prevPanesSize-e.nextPanesSize,null):t>100-e.nextPanesSize-this.panes[i[1]].min&&(i[1]=this.findNextExpandedPane(a).index,e.nextReachedMinPanes=0,i[1]>a+1&&this.panes.forEach((n,r)=>{r>a&&r{r=a+1&&(n.size=n.min,e.nextReachedMinPanes+=n.min)}),this.panes[i[0]].size=100-e.prevPanesSize-e.nextReachedMinPanes-this.panes[this.panesCount-1].min-e.nextPanesSize,null):{sums:e,panesToResize:i}},sumPrevPanesSize(e){return this.panes.reduce((t,a,i)=>t+(it+(i>e+1?a.size:0),0)},findPrevExpandedPane(e){return[...this.panes].reverse().find(t=>t.indext.min)||{}},findNextExpandedPane(e){return this.panes.find(t=>t.index>e+1&&t.size>t.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(e=>{const t=e.classList.contains("splitpanes__pane"),a=e.classList.contains("splitpanes__splitter");if(!t&&!a){e.parentNode.removeChild(e),console.warn("Splitpanes: Only elements are allowed at the root of . One of your DOM nodes was removed.");return}})},addSplitter(e,t,a=!1){const i=e-1,n=document.createElement("div");n.classList.add("splitpanes__splitter"),a||(n.onmousedown=r=>this.onMouseDown(r,i),typeof window<"u"&&"ontouchstart"in window&&(n.ontouchstart=r=>this.onMouseDown(r,i)),n.onclick=r=>this.onSplitterClick(r,i+1)),this.dblClickSplitter&&(n.ondblclick=r=>this.onSplitterDblClick(r,i+1)),t.parentNode.insertBefore(n,t)},removeSplitter(e){e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.parentNode.removeChild(e)},redoSplitters(){const e=Array.from(this.container.children);e.forEach(a=>{a.className.includes("splitpanes__splitter")&&this.removeSplitter(a)});let t=0;e.forEach(a=>{a.className.includes("splitpanes__pane")&&(!t&&this.firstSplitter?this.addSplitter(t,a,!0):t&&this.addSplitter(t,a),t++)})},requestUpdate(e){var t=e,{target:a}=t,i=WD(t,["target"]);const n=this.indexedPanes[a._uid];Object.entries(i).forEach(([r,o])=>n[r]=o)},onPaneAdd(e){let t=-1;Array.from(e.$el.parentNode.children).some(n=>(n.className.includes("splitpanes__pane")&&t++,n===e.$el));const a=parseFloat(e.minSize),i=parseFloat(e.maxSize);this.panes.splice(t,0,{id:e._uid,index:t,min:isNaN(a)?0:a,max:isNaN(i)?100:i,size:e.size===null?null:parseFloat(e.size),givenSize:e.size,update:e.update}),this.panes.forEach((n,r)=>n.index=r),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[t]}),this.$emit("pane-add",{index:t,panes:this.panes.map(n=>({min:n.min,max:n.max,size:n.size}))})})},onPaneRemove(e){const t=this.panes.findIndex(i=>i.id===e._uid),a=this.panes.splice(t,1)[0];this.panes.forEach((i,n)=>i.index=n),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:$D(VD({},a),{index:t})}),this.$emit("pane-remove",{removed:a,panes:this.panes.map(i=>({min:i.min,max:i.max,size:i.size}))})})},resetPaneSizes(e={}){!e.addedPane&&!e.removedPane?this.initialPanesSizing():this.panes.some(t=>t.givenSize!==null||t.min||t.max<100)?this.equalizeAfterAddOrRemove(e):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size})))},equalize(){const e=100/this.panesCount;let t=0,a=[],i=[];this.panes.forEach(n=>{n.size=Math.max(Math.min(e,n.max),n.min),t-=n.size,n.size>=n.max&&a.push(n.id),n.size<=n.min&&i.push(n.id)}),t>.1&&this.readjustSizes(t,a,i)},initialPanesSizing(){100/this.panesCount;let e=100,t=[],a=[],i=0;this.panes.forEach(r=>{e-=r.size,r.size!==null&&i++,r.size>=r.max&&t.push(r.id),r.size<=r.min&&a.push(r.id)});let n=100;e>.1&&(this.panes.forEach(r=>{r.size===null&&(r.size=Math.max(Math.min(e/(this.panesCount-i),r.max),r.min)),n-=r.size}),n>.1&&this.readjustSizes(e,t,a))},equalizeAfterAddOrRemove({addedPane:e,removedPane:t}={}){let a=100/this.panesCount,i=0,n=[],r=[];e&&e.givenSize!==null&&(a=(100-e.givenSize)/(this.panesCount-1)),this.panes.forEach(o=>{i-=o.size,o.size>=o.max&&n.push(o.id),o.size<=o.min&&r.push(o.id)}),!(Math.abs(i)<.1)&&(this.panes.forEach(o=>{e&&e.givenSize!==null&&e.id===o.id||(o.size=Math.max(Math.min(a,o.max),o.min)),i-=o.size,o.size>=o.max&&n.push(o.id),o.size<=o.min&&r.push(o.id)}),i>.1&&this.readjustSizes(i,n,r))},readjustSizes(e,t,a){let i;e>0?i=e/(this.panesCount-t.length):i=e/(this.panesCount-a.length),this.panes.forEach((n,r)=>{if(e>0&&!t.includes(n.id)){const o=Math.max(Math.min(n.size+i,n.max),n.min),s=o-n.size;e-=s,n.size=o}else if(!a.includes(n.id)){const o=Math.max(Math.min(n.size+i,n.max),n.min),s=o-n.size;e-=s,n.size=o}n.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[n.id].size}%`})}),Math.abs(e)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(e){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((t,a)=>{t.ondblclick=e?i=>this.onSplitterDblClick(i,a):void 0})}},beforeDestroy(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(e){return e("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default)}};let JD,KD;const Wd={};var XD=Af(QD,JD,KD,!1,eE,null,null,null);function eE(e){for(let t in Wd)this[t]=Wd[t]}var tE=function(){return XD.exports}(),aE=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"splitpanes__pane",style:e.style,on:{click:function(i){return e.onPaneClick(i,e._uid)}}},[e._t("default")],2)},iE=[];const nE={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeDestroy(){this.onPaneRemove(this)},methods:{update(e){this.style=e}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(e){this.requestUpdate({target:this,size:e})},minSizeNumber(e){this.requestUpdate({target:this,min:e})},maxSizeNumber(e){this.requestUpdate({target:this,max:e})}}},Qd={};var rE=Af(nE,aE,iE,!1,oE,null,null,null);function oE(e){for(let t in Qd)this[t]=Qd[t]}var sE=function(){return rE.exports}();const lE={name:"NcAppDetailsToggle",directives:{tooltip:ff},components:{NcButton:ai,ArrowRight:gf},computed:{title(){return ie("Go back to the list")}},beforeMount(){this.toggleAppNavigationButton(!0)},beforeDestroy(){this.toggleAppNavigationButton(!1)},methods:{toggleAppNavigationButton(e=!0){const t=document.querySelector(".app-navigation .app-navigation-toggle");t&&(t.style.display=e?"none":null,e===!0&&pr("toggle-navigation",{open:!1}))}}};var uE=function(){var e=this,t=e._self._c;return t("NcButton",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.title,expression:"title"}],staticClass:"app-details-toggle",attrs:{"aria-label":e.title},scopedSlots:e._u([{key:"icon",fn:function(){return[t("ArrowRight",{attrs:{size:20}})]},proxy:!0}])})},dE=[],cE=de(lE,uE,dE,!1,null,"5244e83e",null,null);const hE=cE.exports,Jd=_f("nextcloud").persist().build(),fE={name:"NcAppContent",components:{NcAppDetailsToggle:hE,Pane:sE,Splitpanes:tE},mixins:[_D],props:{allowSwipeNavigation:{type:Boolean,default:!0},listSize:{type:Number,default:20},listMinWidth:{type:Number,default:15},listMaxWidth:{type:Number,default:40},paneConfigKey:{type:String,default:""},showDetails:{type:Boolean,default:!0},pageHeading:{type:String,default:null}},emits:["update:showDetails","resize:list"],data(){return{contentHeight:0,hasList:!1,swiping:{},listPaneSize:this.restorePaneConfig()}},computed:{paneConfigID(){if(this.paneConfigKey!=="")return`pane-list-size-${this.paneConfigKey}`;try{return`pane-list-size-${Z_}`}catch{return console.info("[INFO] AppContent:","falling back to global nextcloud pane config"),"pane-list-size-nextcloud"}},detailsPaneSize(){return this.listPaneSize?100-this.listPaneSize:this.paneDefaults.details.size},paneDefaults(){return{list:{size:this.listSize,min:this.listMinWidth,max:this.listMaxWidth},details:{size:100-this.listSize,min:100-this.listMaxWidth,max:100-this.listMinWidth}}}},updated(){this.checkListSlot()},mounted(){this.allowSwipeNavigation&&(this.swiping=Ef(this.$el,{onSwipeEnd:this.handleSwipe})),this.checkListSlot(),this.restorePaneConfig()},methods:{handleSwipe(e,t){Math.abs(this.swiping.lengthX)>70&&(this.swiping.coordsStart.x<300/2&&t==="right"?pr("toggle-navigation",{open:!0}):this.swiping.coordsStart.x<300*1.5&&t==="left"&&pr("toggle-navigation",{open:!1}))},handlePaneResize(e){const t=parseInt(e[0].size,10);Jd.setItem(this.paneConfigID,JSON.stringify(t)),this.listPaneSize=t,this.$emit("resize:list",{size:t}),console.debug("AppContent pane config",t)},checkListSlot(){const e=!!this.$slots.list;this.hasList!==e&&(this.hasList=e)},restorePaneConfig(){const e=parseInt(Jd.getItem(this.paneConfigID),10);if(!isNaN(e)&&e!==this.listPaneSize)return console.debug("AppContent pane config",e),this.listPaneSize=e,e},hideDetails(){this.$emit("update:showDetails",!1)}}};var gE=function(){var e=this,t=e._self._c;return t("main",{staticClass:"app-content no-snapper",class:{"app-content--has-list":e.hasList},attrs:{id:"app-content-vue"}},[e.pageHeading?t("h1",{staticClass:"hidden-visually"},[e._v(" "+e._s(e.pageHeading)+" ")]):e._e(),e.hasList?[e.isMobile?t("div",{staticClass:"app-content-wrapper app-content-wrapper--mobile",class:e.showDetails?"app-content-wrapper--show-details":"app-content-wrapper--show-list"},[e.hasList&&e.showDetails?t("NcAppDetailsToggle",{nativeOn:{click:function(a){return a.stopPropagation(),a.preventDefault(),e.hideDetails.apply(null,arguments)}}}):e._e(),e._t("list"),e._t("default")],2):t("div",{staticClass:"app-content-wrapper"},[t("Splitpanes",{staticClass:"default-theme",on:{resized:e.handlePaneResize}},[t("Pane",{staticClass:"splitpanes__pane-list",attrs:{size:e.listPaneSize||e.paneDefaults.list.size,"min-size":e.paneDefaults.list.min,"max-size":e.paneDefaults.list.max}},[e._t("list")],2),t("Pane",{staticClass:"splitpanes__pane-details",attrs:{size:e.detailsPaneSize,"min-size":e.paneDefaults.details.min,"max-size":e.paneDefaults.details.max}},[e._t("default")],2)],1)],1)]:e._t("default")],2)},_E=[],FE=de(fE,gE,_E,!1,null,"424ef3d1",null,null);const h7=FE.exports;const mE={name:"NcIconSvgWrapper",props:{svg:{type:String,default:""},name:{type:String,default:""},path:{type:String,default:""}},computed:{cleanSvg(){if(!this.svg||this.path)return;const e=V_.sanitize(this.svg),t=new DOMParser().parseFromString(e,"image/svg+xml");return t.querySelector("parsererror")?(Sa.util.warn("SVG is not valid"),""):(t.documentElement.id&&t.documentElement.removeAttribute("id"),t.documentElement.outerHTML)},attributes(){return{class:"icon-vue",role:"img","aria-hidden":this.name?void 0:!0,"aria-label":this.name||void 0}}}};var pE=function(){var e=this,t=e._self._c;return e.cleanSvg?t("span",e._b({domProps:{innerHTML:e._s(e.cleanSvg)}},"span",e.attributes,!1)):t("span",e._b({},"span",e.attributes,!1),[t("svg",{attrs:{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:e.path}})])])},TE=[],DE=de(mE,pE,TE,!1,null,"6176f396",null,null);const Sf=DE.exports;const EE={name:"NcEmptyContent",props:{name:{type:String,default:""},description:{type:String,default:""}},computed:{hasName(){return this.name!==""},hasDescription(){var e;return this.description!==""||((e=this.$slots.description)==null?void 0:e[0])}}};var bE=function(){var e=this,t=e._self._c;return t("div",{staticClass:"empty-content",attrs:{role:"note"}},[e.$slots.icon?t("div",{staticClass:"empty-content__icon",attrs:{"aria-hidden":"true"}},[e._t("icon")],2):e._e(),e._t("name",function(){return[e.hasName?t("span",{staticClass:"empty-content__name"},[e._v(" "+e._s(e.name)+" ")]):e._e()]}),e.hasDescription?t("p",{staticClass:"empty-content__description"},[e._t("description",function(){return[e._v(" "+e._s(e.description)+" ")]})],2):e._e(),e.$slots.action?t("div",{staticClass:"empty-content__action"},[e._t("action")],2):e._e()],2)},yE=[],AE=de(EE,bE,yE,!1,null,"458108e7",null,null);const hu=AE.exports;class kf{constructor(t){if(typeof t!="object")throw new Error("Received activity data is not an object.");if(typeof t.activity_id!="number")throw new Error("The activity_id argument is not a valid string");if(typeof t.type!="string"||t.type.trim()==="")throw new Error("The activity_id argument is not a valid string");if(typeof t.subject!="string"||t.subject.trim()==="")throw new Error("The activity_id argument is not a valid string");if(typeof t.icon!="string"||t.icon.trim()==="")throw new Error("The activity_id argument is not a valid string");if(typeof t.datetime!="string"||t.datetime.trim()==="")throw new Error("The activity_id argument is not a valid string");this._activity=t}get id(){return this._activity.activity_id}get app(){return this._activity.app}get type(){return this._activity.type}get user(){return this._activity.user}get subject(){return this._activity.subject}get subjectRichTemplate(){return this._activity.subject_rich[0]}get subjectRichObjects(){return Array.isArray(this._activity.subject_rich[1])?{}:this._activity.subject_rich[1]}get message(){return this._activity.message}get messageRichTemplate(){return this._activity.message_rich[0]}get messageRichObjects(){return Array.isArray(this._activity.message_rich[1])?this._activity.message_rich[1]:{}}get objectType(){return this._activity.object_type}get objectId(){return this._activity.object_id}get objectName(){return this._activity.object_name}get link(){return this._activity.link}get icon(){return this._activity.icon}get datetime(){return this._activity.datetime}get dateFromNow(){return is(this._activity.datetime).fromNow()}get formattedDate(){return is(this._activity.datetime).format("LLL")}get timestamp(){return is(this._activity.datetime).unix()}get previews(){return this._activity.previews??[]}}var vf=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Lr=vf.join(","),Rf=typeof Element>"u",ki=Rf?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Zr=!Rf&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},Ir=function e(t,a){var i;a===void 0&&(a=!0);var n=t==null||(i=t.getAttribute)===null||i===void 0?void 0:i.call(t,"inert"),r=n===""||n==="true",o=r||a&&t&&e(t.parentNode);return o},SE=function(e){var t,a=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return a===""||a==="true"},Nf=function(e,t,a){if(Ir(e))return[];var i=Array.prototype.slice.apply(e.querySelectorAll(Lr));return t&&ki.call(e,Lr)&&i.unshift(e),i=i.filter(a),i},wf=function e(t,a,i){for(var n=[],r=Array.from(t);r.length;){var o=r.shift();if(!Ir(o,!1))if(o.tagName==="SLOT"){var s=o.assignedElements(),l=s.length?s:o.children,d=e(l,!0,i);i.flatten?n.push.apply(n,d):n.push({scopeParent:o,candidates:d})}else{var u=ki.call(o,Lr);u&&i.filter(o)&&(a||!t.includes(o))&&n.push(o);var c=o.shadowRoot||typeof i.getShadowRoot=="function"&&i.getShadowRoot(o),f=!Ir(c,!1)&&(!i.shadowRootFilter||i.shadowRootFilter(o));if(c&&f){var h=e(c===!0?o.children:c.children,!0,i);i.flatten?n.push.apply(n,h):n.push({scopeParent:o,candidates:h})}else r.unshift.apply(r,o.children)}}return n},Of=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},gi=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||SE(e))&&!Of(e)?0:e.tabIndex},kE=function(e,t){var a=gi(e);return a<0&&t&&!Of(e)?0:a},vE=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},xf=function(e){return e.tagName==="INPUT"},RE=function(e){return xf(e)&&e.type==="hidden"},NE=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(a){return a.tagName==="SUMMARY"});return t},wE=function(e,t){for(var a=0;asummary:first-of-type"),r=n?e.parentElement:e;if(ki.call(r,"details:not([open]) *"))return!0;if(!a||a==="full"||a==="legacy-full"){if(typeof i=="function"){for(var o=e;e;){var s=e.parentElement,l=Zr(e);if(s&&!s.shadowRoot&&i(s)===!0)return Kd(e);e.assignedSlot?e=e.assignedSlot:!s&&l!==e.ownerDocument?e=l.host:e=s}e=o}if(CE(e))return!e.getClientRects().length;if(a!=="legacy-full")return!0}else if(a==="non-zero-area")return Kd(e);return!1},YE=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var a=0;a=0)},ZE=function e(t){var a=[],i=[];return t.forEach(function(n,r){var o=!!n.scopeParent,s=o?n.scopeParent:n,l=kE(s,o),d=o?e(n.candidates):s;l===0?o?a.push.apply(a,d):a.push(s):i.push({documentOrder:r,tabIndex:l,item:n,isScope:o,content:d})}),i.sort(vE).reduce(function(n,r){return r.isScope?n.push.apply(n,r.content):n.push(r.content),n},[]).concat(a)},IE=function(e,t){t=t||{};var a;return t.getShadowRoot?a=wf([e],t.includeContainer,{filter:nl.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:LE}):a=Nf(e,t.includeContainer,nl.bind(null,t)),ZE(a)},jE=function(e,t){t=t||{};var a;return t.getShadowRoot?a=wf([e],t.includeContainer,{filter:jr.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):a=Nf(e,t.includeContainer,jr.bind(null,t)),a},Bi=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return ki.call(e,Lr)===!1?!1:nl(t,e)},PE=vf.concat("iframe").join(","),ls=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return ki.call(e,PE)===!1?!1:jr(t,e)};function Xd(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),a.push.apply(a,i)}return a}function e1(e){for(var t=1;t0){var a=e[e.length-1];a!==t&&a.pause()}var i=e.indexOf(t);i===-1||e.splice(i,1),e.push(t)},deactivateTrap:function(e,t){var a=e.indexOf(t);a!==-1&&e.splice(a,1),e.length>0&&e[e.length-1].unpause()}},HE=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},zE=function(e){return e?.key==="Escape"||e?.key==="Esc"||e?.keyCode===27},Gn=function(e){return e?.key==="Tab"||e?.keyCode===9},VE=function(e){return Gn(e)&&!e.shiftKey},$E=function(e){return Gn(e)&&e.shiftKey},a1=function(e){return setTimeout(e,0)},i1=function(e,t){var a=-1;return e.every(function(i,n){return t(i)?(a=n,!1):!0}),a},vn=function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),i=1;i1?k-1:0),L=1;L=0)g=a.activeElement;else{var D=r.tabbableGroups[0],k=D&&D.firstTabbableNode;g=k||d("fallbackFocus")}if(!g)throw new Error("Your focus-trap needs to have at least one focusable element");return g},c=function(){if(r.containerGroups=r.containers.map(function(g){var D=IE(g,n.tabbableOptions),k=jE(g,n.tabbableOptions),x=D.length>0?D[0]:void 0,L=D.length>0?D[D.length-1]:void 0,Z=k.find(function(y){return Bi(y)}),$=k.slice().reverse().find(function(y){return Bi(y)}),V=!!D.find(function(y){return gi(y)>0});return{container:g,tabbableNodes:D,focusableNodes:k,posTabIndexesFound:V,firstTabbableNode:x,lastTabbableNode:L,firstDomTabbableNode:Z,lastDomTabbableNode:$,nextTabbableNode:function(y){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,A=D.indexOf(y);return A<0?U?k.slice(k.indexOf(y)+1).find(function(z){return Bi(z)}):k.slice(0,k.indexOf(y)).reverse().find(function(z){return Bi(z)}):D[A+(U?1:-1)]}}}),r.tabbableGroups=r.containerGroups.filter(function(g){return g.tabbableNodes.length>0}),r.tabbableGroups.length<=0&&!d("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(r.containerGroups.find(function(g){return g.posTabIndexesFound})&&r.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},f=function g(D){var k=D.activeElement;if(k)return k.shadowRoot&&k.shadowRoot.activeElement!==null?g(k.shadowRoot):k},h=function g(D){if(D!==!1&&D!==f(document)){if(!D||!D.focus){g(u());return}D.focus({preventScroll:!!n.preventScroll}),r.mostRecentlyFocusedNode=D,HE(D)&&D.select()}},_=function(g){var D=d("setReturnFocus",g);return D||(D===!1?!1:g)},m=function(g){var D=g.target,k=g.event,x=g.isBackward,L=x===void 0?!1:x;D=D||L0(k),c();var Z=null;if(r.tabbableGroups.length>0){var $=l(D,k),V=$>=0?r.containerGroups[$]:void 0;if($<0)L?Z=r.tabbableGroups[r.tabbableGroups.length-1].lastTabbableNode:Z=r.tabbableGroups[0].firstTabbableNode;else if(L){var y=i1(r.tabbableGroups,function(ge){var Se=ge.firstTabbableNode;return D===Se});if(y<0&&(V.container===D||ls(D,n.tabbableOptions)&&!Bi(D,n.tabbableOptions)&&!V.nextTabbableNode(D,!1))&&(y=$),y>=0){var U=y===0?r.tabbableGroups.length-1:y-1,A=r.tabbableGroups[U];Z=gi(D)>=0?A.lastTabbableNode:A.lastDomTabbableNode}else Gn(k)||(Z=V.nextTabbableNode(D,!1))}else{var z=i1(r.tabbableGroups,function(ge){var Se=ge.lastTabbableNode;return D===Se});if(z<0&&(V.container===D||ls(D,n.tabbableOptions)&&!Bi(D,n.tabbableOptions)&&!V.nextTabbableNode(D))&&(z=$),z>=0){var re=z===r.tabbableGroups.length-1?0:z+1,O=r.tabbableGroups[re];Z=gi(D)>=0?O.firstTabbableNode:O.firstDomTabbableNode}else Gn(k)||(Z=V.nextTabbableNode(D))}}else Z=d("fallbackFocus");return Z},p=function(g){var D=L0(g);if(!(l(D,g)>=0)){if(vn(n.clickOutsideDeactivates,g)){o.deactivate({returnFocus:n.returnFocusOnDeactivate});return}vn(n.allowOutsideClick,g)||g.preventDefault()}},T=function(g){var D=L0(g),k=l(D,g)>=0;if(k||D instanceof Document)k&&(r.mostRecentlyFocusedNode=D);else{g.stopImmediatePropagation();var x,L=!0;if(r.mostRecentlyFocusedNode)if(gi(r.mostRecentlyFocusedNode)>0){var Z=l(r.mostRecentlyFocusedNode),$=r.containerGroups[Z].tabbableNodes;if($.length>0){var V=$.findIndex(function(y){return y===r.mostRecentlyFocusedNode});V>=0&&(n.isKeyForward(r.recentNavEvent)?V+1<$.length&&(x=$[V+1],L=!1):V-1>=0&&(x=$[V-1],L=!1))}}else r.containerGroups.some(function(y){return y.tabbableNodes.some(function(U){return gi(U)>0})})||(L=!1);else L=!1;L&&(x=m({target:r.mostRecentlyFocusedNode,isBackward:n.isKeyBackward(r.recentNavEvent)})),h(x||r.mostRecentlyFocusedNode||u())}r.recentNavEvent=void 0},R=function(g){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;r.recentNavEvent=g;var k=m({event:g,isBackward:D});k&&(Gn(g)&&g.preventDefault(),h(k))},S=function(g){if(zE(g)&&vn(n.escapeDeactivates,g)!==!1){g.preventDefault(),o.deactivate();return}(n.isKeyForward(g)||n.isKeyBackward(g))&&R(g,n.isKeyBackward(g))},C=function(g){var D=L0(g);l(D,g)>=0||vn(n.clickOutsideDeactivates,g)||vn(n.allowOutsideClick,g)||(g.preventDefault(),g.stopImmediatePropagation())},j=function(){if(r.active)return t1.activateTrap(i,o),r.delayInitialFocusTimer=n.delayInitialFocus?a1(function(){h(u())}):h(u()),a.addEventListener("focusin",T,!0),a.addEventListener("mousedown",p,{capture:!0,passive:!1}),a.addEventListener("touchstart",p,{capture:!0,passive:!1}),a.addEventListener("click",C,{capture:!0,passive:!1}),a.addEventListener("keydown",S,{capture:!0,passive:!1}),o},E=function(){if(r.active)return a.removeEventListener("focusin",T,!0),a.removeEventListener("mousedown",p,!0),a.removeEventListener("touchstart",p,!0),a.removeEventListener("click",C,!0),a.removeEventListener("keydown",S,!0),o},I=function(g){var D=g.some(function(k){var x=Array.from(k.removedNodes);return x.some(function(L){return L===r.mostRecentlyFocusedNode})});D&&h(u())},M=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(I):void 0,P=function(){M&&(M.disconnect(),r.active&&!r.paused&&r.containers.map(function(g){M.observe(g,{subtree:!0,childList:!0})}))};return o={get active(){return r.active},get paused(){return r.paused},activate:function(g){if(r.active)return this;var D=s(g,"onActivate"),k=s(g,"onPostActivate"),x=s(g,"checkCanFocusTrap");x||c(),r.active=!0,r.paused=!1,r.nodeFocusedBeforeActivation=a.activeElement,D?.();var L=function(){x&&c(),j(),P(),k?.()};return x?(x(r.containers.concat()).then(L,L),this):(L(),this)},deactivate:function(g){if(!r.active)return this;var D=e1({onDeactivate:n.onDeactivate,onPostDeactivate:n.onPostDeactivate,checkCanReturnFocus:n.checkCanReturnFocus},g);clearTimeout(r.delayInitialFocusTimer),r.delayInitialFocusTimer=void 0,E(),r.active=!1,r.paused=!1,P(),t1.deactivateTrap(i,o);var k=s(D,"onDeactivate"),x=s(D,"onPostDeactivate"),L=s(D,"checkCanReturnFocus"),Z=s(D,"returnFocus","returnFocusOnDeactivate");k?.();var $=function(){a1(function(){Z&&h(_(r.nodeFocusedBeforeActivation)),x?.()})};return Z&&L?(L(_(r.nodeFocusedBeforeActivation)).then($,$),this):($(),this)},pause:function(g){if(r.paused||!r.active)return this;var D=s(g,"onPause"),k=s(g,"onPostPause");return r.paused=!0,D?.(),E(),P(),k?.(),this},unpause:function(g){if(!r.paused||!r.active)return this;var D=s(g,"onUnpause"),k=s(g,"onPostUnpause");return r.paused=!1,D?.(),c(),j(),P(),k?.(),this},updateContainerElements:function(g){var D=[].concat(g).filter(Boolean);return r.containers=D.map(function(k){return typeof k=="string"?a.querySelector(k):k}),r.active&&c(),P(),this}},o.updateContainerElements(e),o};const rl=function(){return Object.assign(window,{_nc_focus_trap:window._nc_focus_trap||[]}),window._nc_focus_trap},QE={name:"NcPopover",components:{Dropdown:lD},inheritAttrs:!1,props:{popoverBaseClass:{type:String,default:""},focusTrap:{type:Boolean,default:!0},setReturnFocus:{default:void 0,type:[HTMLElement,SVGElement,String,Boolean]}},emits:["after-show","after-hide"],beforeDestroy(){this.clearFocusTrap(),this.clearEscapeStopPropagation()},methods:{getPopoverContentElement(){var e,t;return(t=(e=this.$refs.popover)==null?void 0:e.$refs.popperContent)==null?void 0:t.$el},async useFocusTrap(){if(await this.$nextTick(),!this.focusTrap)return;const e=this.getPopoverContentElement();e&&(this.$focusTrap=Bf(e,{escapeDeactivates:!1,allowOutsideClick:!0,setReturnFocus:this.setReturnFocus,trapStack:rl()}),this.$focusTrap.activate())},clearFocusTrap(e={}){var t;try{(t=this.$focusTrap)==null||t.deactivate(e),this.$focusTrap=null}catch(a){console.warn(a)}},addEscapeStopPropagation(){this.getPopoverContentElement()?.addEventListener("keydown",this.stopKeydownEscapeHandler)},clearEscapeStopPropagation(){this.getPopoverContentElement()?.removeEventListener("keydown",this.stopKeydownEscapeHandler)},stopKeydownEscapeHandler(e){e.type==="keydown"&&e.key==="Escape"&&e.stopPropagation()},afterShow(){this.$nextTick(()=>{this.$emit("after-show"),this.useFocusTrap(),this.addEscapeStopPropagation()})},afterHide(){this.$emit("after-hide"),this.clearFocusTrap(),this.clearEscapeStopPropagation()}}};var JE=function(){var e=this,t=e._self._c;return t("Dropdown",e._g(e._b({ref:"popover",attrs:{distance:10,"arrow-padding":10,"no-auto-focus":!0,"popper-class":e.popoverBaseClass},on:{"apply-show":e.afterShow,"apply-hide":e.afterHide},scopedSlots:e._u([{key:"popper",fn:function(){return[e._t("default")]},proxy:!0}],null,!0)},"Dropdown",e.$attrs,!1),e.$listeners),[e._t("trigger")],2)},KE=[],XE=de(QE,JE,KE,!1,null,null,null,null);const fu=XE.exports,eb={name:"DotsHorizontalIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var tb=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon dots-horizontal-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M16,12A2,2 0 0,1 18,10A2,2 0 0,1 20,12A2,2 0 0,1 18,14A2,2 0 0,1 16,12M10,12A2,2 0 0,1 12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12M4,12A2,2 0 0,1 6,10A2,2 0 0,1 8,12A2,2 0 0,1 6,14A2,2 0 0,1 4,12Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},ab=[],ib=de(eb,tb,ab,!1,null,null,null,null);const gu=ib.exports,Ci=".focusable",nb={name:"NcActions",components:{NcButton:ai,DotsHorizontal:gu,NcPopover:fu},props:{open:{type:Boolean,default:!1},manualOpen:{type:Boolean,default:!1},forceMenu:{type:Boolean,default:!1},forceName:{type:Boolean,default:!1},menuName:{type:String,default:null},primary:{type:Boolean,default:!1},type:{type:String,validator(e){return["primary","secondary","tertiary","tertiary-no-background","tertiary-on-primary","error","warning","success"].indexOf(e)!==-1},default:null},defaultIcon:{type:String,default:""},ariaLabel:{type:String,default:ie("Actions")},ariaHidden:{type:Boolean,default:null},placement:{type:String,default:"bottom"},boundariesElement:{type:Element,default:()=>document.querySelector("body")},container:{type:[String,Object,Element,Boolean],default:"body"},disabled:{type:Boolean,default:!1},inline:{type:Number,default:0}},emits:["open","update:open","close","focus","blur"],data(){return{opened:this.open,focusIndex:0,randomId:`menu-${_0()}`}},computed:{triggerBtnType(){return this.type||(this.primary?"primary":this.menuName?"secondary":"tertiary")}},watch:{open(e){e!==this.opened&&(this.opened=e)}},methods:{isValidSingleAction(e){var t,a,i,n,r;const o=(r=(i=(a=(t=e?.componentOptions)==null?void 0:t.Ctor)==null?void 0:a.extendOptions)==null?void 0:i.name)!=null?r:(n=e?.componentOptions)==null?void 0:n.tag;return["NcActionButton","NcActionLink","NcActionRouter"].includes(o)},openMenu(e){this.opened||(this.opened=!0,this.$emit("update:open",!0),this.$emit("open"))},closeMenu(e=!0){this.opened&&(this.opened=!1,this.$refs.popover.clearFocusTrap({returnFocus:e}),this.$emit("update:open",!1),this.$emit("close"),this.focusIndex=0,this.$refs.menuButton.$el.focus())},onOpen(e){this.$nextTick(()=>{this.focusFirstAction(e)})},onMouseFocusAction(e){if(document.activeElement===e.target)return;const t=e.target.closest("li");if(t){const a=t.querySelector(Ci);if(a){const i=[...this.$refs.menu.querySelectorAll(Ci)].indexOf(a);i>-1&&(this.focusIndex=i,this.focusAction())}}},onKeydown(e){(e.keyCode===38||e.keyCode===9&&e.shiftKey)&&this.focusPreviousAction(e),(e.keyCode===40||e.keyCode===9&&!e.shiftKey)&&this.focusNextAction(e),e.keyCode===33&&this.focusFirstAction(e),e.keyCode===34&&this.focusLastAction(e),e.keyCode===27&&(this.closeMenu(),e.preventDefault())},removeCurrentActive(){const e=this.$refs.menu.querySelector("li.active");e&&e.classList.remove("active")},focusAction(){const e=this.$refs.menu.querySelectorAll(Ci)[this.focusIndex];if(e){this.removeCurrentActive();const t=e.closest("li.action");e.focus(),t&&t.classList.add("active")}},focusPreviousAction(e){this.opened&&(this.focusIndex===0?this.closeMenu():(this.preventIfEvent(e),this.focusIndex=this.focusIndex-1),this.focusAction())},focusNextAction(e){if(this.opened){const t=this.$refs.menu.querySelectorAll(Ci).length-1;this.focusIndex===t?this.closeMenu():(this.preventIfEvent(e),this.focusIndex=this.focusIndex+1),this.focusAction()}},focusFirstAction(e){if(this.opened){this.preventIfEvent(e);const t=[...this.$refs.menu.querySelectorAll(Ci)].findIndex(a=>a.parentElement.getAttribute("aria-selected"));this.focusIndex=t>-1?t:0,this.focusAction()}},focusLastAction(e){this.opened&&(this.preventIfEvent(e),this.focusIndex=this.$refs.menu.querySelectorAll(Ci).length-1,this.focusAction())},preventIfEvent(e){e&&(e.preventDefault(),e.stopPropagation())},onFocus(e){this.$emit("focus",e)},onBlur(e){this.$emit("blur",e)}},render(e){const t=(this.$slots.default||[]).filter(s=>{var l,d,u,c;return((l=s?.componentOptions)==null?void 0:l.tag)||((c=(u=(d=s?.componentOptions)==null?void 0:d.Ctor)==null?void 0:u.extendOptions)==null?void 0:c.name)}),a=s=>{var l,d,u,c,f,h,_;const m=(f=(u=(d=(l=s?.componentOptions)==null?void 0:l.Ctor)==null?void 0:d.extendOptions)==null?void 0:u.name)!=null?f:(c=s?.componentOptions)==null?void 0:c.tag,p=(_=(h=s?.componentOptions)==null?void 0:h.propsData)==null?void 0:_.href;return m==="NcActionLink"&&!(p!=null&&p.startsWith("#"))&&new URL(p,window.location.origin).origin===window.location.origin},i=t.every(a);let n=t.filter(this.isValidSingleAction);if(this.forceMenu&&n.length>0&&this.inline>0&&(Sa.util.warn("Specifying forceMenu will ignore any inline actions rendering."),n=[]),t.length===0)return;const r=s=>{var l,d,u,c,f,h,_,m,p,T,R,S,C,j,E,I,M,P,g,D,k,x,L;const Z=((u=(d=(l=s?.data)==null?void 0:l.scopedSlots)==null?void 0:d.icon())==null?void 0:u[0])||e("span",{class:["icon",(f=(c=s?.componentOptions)==null?void 0:c.propsData)==null?void 0:f.icon]}),$=((h=s?.data)==null?void 0:h.attrs)||{},V=(m=(_=s?.componentOptions)==null?void 0:_.listeners)==null?void 0:m.click,y=(C=(S=(R=(T=(p=s?.componentOptions)==null?void 0:p.children)==null?void 0:T[0])==null?void 0:R.text)==null?void 0:S.trim)==null?void 0:C.call(S),U=((E=(j=s?.componentOptions)==null?void 0:j.propsData)==null?void 0:E.ariaLabel)||y,A=this.forceName?y:"";let z=(M=(I=s?.componentOptions)==null?void 0:I.propsData)==null?void 0:M.title;return this.forceName||z||(z=y),e("NcButton",{class:["action-item action-item--single",(P=s?.data)==null?void 0:P.staticClass,(g=s?.data)==null?void 0:g.class],attrs:{...$,"aria-label":U,title:z},ref:(D=s?.data)==null?void 0:D.ref,props:{type:this.type||(A?"secondary":"tertiary"),disabled:this.disabled||((x=(k=s?.componentOptions)==null?void 0:k.propsData)==null?void 0:x.disabled),ariaHidden:this.ariaHidden,...(L=s?.componentOptions)==null?void 0:L.propsData},on:{focus:this.onFocus,blur:this.onBlur,...!!V&&{click:re=>{V&&V(re)}}}},[e("template",{slot:"icon"},[Z]),A])},o=s=>{var l,d;const u=((l=this.$slots.icon)==null?void 0:l[0])||(this.defaultIcon?e("span",{class:["icon",this.defaultIcon]}):e("DotsHorizontal",{props:{size:20}})),c=()=>i||this.opened?this.opened.toString():null;return e("NcPopover",{ref:"popover",props:{delay:0,handleResize:!0,shown:this.opened,placement:this.placement,boundary:this.boundariesElement,container:this.container,popoverBaseClass:"action-item__popper",setReturnFocus:(d=this.$refs.menuButton)==null?void 0:d.$el},attrs:{delay:0,handleResize:!0,shown:this.opened,placement:this.placement,boundary:this.boundariesElement,container:this.container,...this.manualOpen&&{triggers:[]}},on:{show:this.openMenu,"after-show":this.onOpen,hide:this.closeMenu}},[e("NcButton",{class:"action-item__menutoggle",props:{type:this.triggerBtnType,disabled:this.disabled,ariaHidden:this.ariaHidden},slot:"trigger",ref:"menuButton",attrs:{"aria-haspopup":i?null:"menu","aria-label":this.menuName?null:this.ariaLabel,"aria-controls":this.opened?this.randomId:null,"aria-expanded":c()},on:{focus:this.onFocus,blur:this.onBlur}},[e("template",{slot:"icon"},[u]),this.menuName]),e("div",{class:{open:this.opened},attrs:{tabindex:"-1"},on:{keydown:this.onKeydown,mousemove:this.onMouseFocusAction},ref:"menu"},[e("ul",{attrs:{id:this.randomId,tabindex:"-1",role:i?null:"menu"}},[s])])])};if(t.length===1&&n.length===1&&!this.forceMenu)return r(n[0]);if(this.$nextTick(()=>{this.opened&&this.$refs.menu&&(this.$refs.menu.querySelector("li.active")||[]).length===0&&this.focusFirstAction()}),n.length>0&&this.inline>0){const s=n.slice(0,this.inline),l=t.filter(d=>!s.includes(d));return e("div",{class:["action-items",`action-item--${this.triggerBtnType}`]},[...s.map(r),l.length>0?e("div",{class:["action-item",{"action-item--open":this.opened}]},[o(l)]):null])}return e("div",{class:["action-item action-item--default-popover",`action-item--${this.triggerBtnType}`,{"action-item--open":this.opened}]},[o(t)])}},rb=null,ob=null;var sb=de(nb,rb,ob,!1,null,"f797c400",null,null);const _u=sb.exports;const lb={before(){(!this.$slots.default||this.text.trim()==="")&&(Sa.util.warn(`${this.$options.name} cannot be empty and requires a meaningful text content`,this),this.$destroy(),this.$el.remove())},beforeUpdate(){this.text=this.getText()},data(){return{text:this.getText()}},computed:{isLongText(){return this.text&&this.text.trim().length>20}},methods:{getText(){return this.$slots.default?this.$slots.default[0].text.trim():""}}},ub=function(e,t){let a=e.$parent;for(;a;){if(a.$options.name===t)return a;a=a.$parent}},Cf={mixins:[lb],props:{icon:{type:String,default:""},name:{type:String,default:""},title:{type:String,default:""},closeAfterClick:{type:Boolean,default:!1},ariaLabel:{type:String,default:null},ariaHidden:{type:Boolean,default:null}},emits:["click"],computed:{isIconUrl(){try{return new URL(this.icon)}catch{return!1}}},methods:{onClick(e){if(this.$emit("click",e),this.closeAfterClick){const t=ub(this,"NcActions");t&&t.closeMenu&&t.closeMenu(!1)}}}},db={name:"NcActionLink",mixins:[Cf],props:{href:{type:String,default:"#",required:!0,validator:e=>{try{return new URL(e)}catch{return e.startsWith("#")||e.startsWith("/")}}},download:{type:String,default:null},target:{type:String,default:"_self",validator:e=>e&&(!e.startsWith("_")||["_blank","_self","_parent","_top"].indexOf(e)>-1)},title:{type:String,default:null},ariaHidden:{type:Boolean,default:null}}};var cb=function(){var e=this,t=e._self._c;return t("li",{staticClass:"action"},[t("a",{staticClass:"action-link focusable",attrs:{download:e.download,href:e.href,"aria-label":e.ariaLabel,target:e.target,title:e.title,rel:"nofollow noreferrer noopener",role:"menuitem"},on:{click:e.onClick}},[e._t("icon",function(){return[t("span",{staticClass:"action-link__icon",class:[e.isIconUrl?"action-link__icon--url":e.icon],style:{backgroundImage:e.isIconUrl?`url(${e.icon})`:null},attrs:{"aria-hidden":e.ariaHidden}})]}),e.name?t("span",{staticClass:"action-link__longtext-wrapper"},[t("strong",{staticClass:"action-link__name"},[e._v(" "+e._s(e.name)+" ")]),t("br"),t("span",{staticClass:"action-link__longtext",domProps:{textContent:e._s(e.text)}})]):e.isLongText?t("span",{staticClass:"action-link__longtext",domProps:{textContent:e._s(e.text)}}):t("span",{staticClass:"action-link__text"},[e._v(e._s(e.text))]),e._e()],2)])},hb=[],fb=de(db,cb,hb,!1,null,"979f3026",null,null);const gb=fb.exports;function nr(e,t,a){this.r=e,this.g=t,this.b=a}function _b(e,t){const a=new Array(3);return a[0]=(t[1].r-t[0].r)/e,a[1]=(t[1].g-t[0].g)/e,a[2]=(t[1].b-t[0].b)/e,a}function us(e,t,a){const i=[];i.push(t);const n=_b(e,[t,a]);for(let r=1;r>>32-i},rotr:function(a,i){return a<<32-i|a>>>i},endian:function(a){if(a.constructor==Number)return t.rotl(a,8)&16711935|t.rotl(a,24)&4278255360;for(var i=0;i0;a--)i.push(Math.floor(Math.random()*256));return i},bytesToWords:function(a){for(var i=[],n=0,r=0;n>>5]|=a[n]<<24-r%32;return i},wordsToBytes:function(a){for(var i=[],n=0;n>>5]>>>24-n%32&255);return i},bytesToHex:function(a){for(var i=[],n=0;n>>4).toString(16)),i.push((a[n]&15).toString(16));return i.join("")},hexToBytes:function(a){for(var i=[],n=0;n>>6*(3-o)&63)):i.push("=");return i.join("")},base64ToBytes:function(a){a=a.replace(/[^A-Z0-9+\/]/ig,"");for(var i=[],n=0,r=0;n>>6-r*2);return i}};Yf.exports=t})();var mb=Yf.exports,ol={utf8:{stringToBytes:function(e){return ol.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(ol.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],a=0;a>>24)&16711935|(s[h]<<24|s[h]>>>8)&4278255360;s[l>>>5]|=128<>>9<<4)+14]=l;for(var _=n._ff,m=n._gg,p=n._hh,T=n._ii,h=0;h>>0,u=u+S>>>0,c=c+C>>>0,f=f+j>>>0}return e.endian([d,u,c,f])};n._ff=function(r,o,s,l,d,u,c){var f=r+(o&s|~o&l)+(d>>>0)+c;return(f<>>32-u)+o},n._gg=function(r,o,s,l,d,u,c){var f=r+(o&l|s&~l)+(d>>>0)+c;return(f<>>32-u)+o},n._hh=function(r,o,s,l,d,u,c){var f=r+(o^s^l)+(d>>>0)+c;return(f<>>32-u)+o},n._ii=function(r,o,s,l,d,u,c){var f=r+(s^(o|~l))+(d>>>0)+c;return(f<>>32-u)+o},n._blocksize=16,n._digestsize=16,Mf.exports=function(r,o){if(r==null)throw new Error("Illegal argument "+r);var s=e.wordsToBytes(n(r,o));return o&&o.asBytes?s:o&&o.asString?i.bytesToString(s):e.bytesToHex(s)}})();var Db=Mf.exports;const Eb=ti(Db),r1=function(e){let t=e.toLowerCase();t.match(/^([0-9a-f]{4}-?){8}$/)===null&&(t=Eb(t)),t=t.replace(/[^0-9a-f]/g,"");const a=6,i=Fb(a);function n(r,o){let s=0;const l=[];for(let d=0;d{for(const a in t)e[a]=t[a];return e},sl="numeric",ll="ascii",ul="alpha",rr="asciinumeric",Z0="alphanumeric",dl="domain",Zf="emoji",Ab="scheme",Sb="slashscheme",o1="whitespace";function kb(e,t){return e in t||(t[e]=[]),t[e]}function Ti(e,t,a){t[sl]&&(t[rr]=!0,t[Z0]=!0),t[ll]&&(t[rr]=!0,t[ul]=!0),t[rr]&&(t[Z0]=!0),t[ul]&&(t[Z0]=!0),t[Z0]&&(t[dl]=!0),t[Zf]&&(t[dl]=!0);for(const i in t){const n=kb(i,a);n.indexOf(e)<0&&n.push(e)}}function vb(e,t){const a={};for(const i in t)t[i].indexOf(e)>=0&&(a[i]=!0);return a}function At(e){e===void 0&&(e=null),this.j={},this.jr=[],this.jd=null,this.t=e}At.groups={},At.prototype={accepts(){return!!this.t},go(e){const t=this,a=t.j[e];if(a)return a;for(let i=0;ie.ta(t,a,i,n),wt=(e,t,a,i,n)=>e.tr(t,a,i,n),s1=(e,t,a,i,n)=>e.ts(t,a,i,n),X=(e,t,a,i,n)=>e.tt(t,a,i,n),fa="WORD",cl="UWORD",d0="LOCALHOST",hl="TLD",fl="UTLD",or="SCHEME",Pi="SLASH_SCHEME",Fu="NUM",If="WS",mu="NL",zi="OPENBRACE",Un="OPENBRACKET",qn="OPENANGLEBRACKET",Hn="OPENPAREN",_i="CLOSEBRACE",Vi="CLOSEBRACKET",$i="CLOSEANGLEBRACKET",Fi="CLOSEPAREN",Pr="AMPERSAND",Gr="APOSTROPHE",Ur="ASTERISK",Ia="AT",qr="BACKSLASH",Hr="BACKTICK",zr="CARET",Ga="COLON",pu="COMMA",Vr="DOLLAR",Wt="DOT",$r="EQUALS",Tu="EXCLAMATION",Qt="HYPHEN",Wr="PERCENT",Qr="PIPE",Jr="PLUS",Kr="POUND",Xr="QUERY",Du="QUOTE",Eu="SEMI",Jt="SLASH",zn="TILDE",eo="UNDERSCORE",jf="EMOJI",to="SYM";var Pf=Object.freeze({__proto__:null,WORD:fa,UWORD:cl,LOCALHOST:d0,TLD:hl,UTLD:fl,SCHEME:or,SLASH_SCHEME:Pi,NUM:Fu,WS:If,NL:mu,OPENBRACE:zi,OPENBRACKET:Un,OPENANGLEBRACKET:qn,OPENPAREN:Hn,CLOSEBRACE:_i,CLOSEBRACKET:Vi,CLOSEANGLEBRACKET:$i,CLOSEPAREN:Fi,AMPERSAND:Pr,APOSTROPHE:Gr,ASTERISK:Ur,AT:Ia,BACKSLASH:qr,BACKTICK:Hr,CARET:zr,COLON:Ga,COMMA:pu,DOLLAR:Vr,DOT:Wt,EQUALS:$r,EXCLAMATION:Tu,HYPHEN:Qt,PERCENT:Wr,PIPE:Qr,PLUS:Jr,POUND:Kr,QUERY:Xr,QUOTE:Du,SEMI:Eu,SLASH:Jt,TILDE:zn,UNDERSCORE:eo,EMOJI:jf,SYM:to});const Mi=/[a-z]/,ds=/\p{L}/u,cs=/\p{Emoji}/u,hs=/\d/,l1=/\s/,u1=` +`,Rb="️",Nb="‍";let I0=null,j0=null;function wb(e){e===void 0&&(e=[]);const t={};At.groups=t;const a=new At;I0==null&&(I0=d1(bb)),j0==null&&(j0=d1(yb)),X(a,"'",Gr),X(a,"{",zi),X(a,"[",Un),X(a,"<",qn),X(a,"(",Hn),X(a,"}",_i),X(a,"]",Vi),X(a,">",$i),X(a,")",Fi),X(a,"&",Pr),X(a,"*",Ur),X(a,"@",Ia),X(a,"`",Hr),X(a,"^",zr),X(a,":",Ga),X(a,",",pu),X(a,"$",Vr),X(a,".",Wt),X(a,"=",$r),X(a,"!",Tu),X(a,"-",Qt),X(a,"%",Wr),X(a,"|",Qr),X(a,"+",Jr),X(a,"#",Kr),X(a,"?",Xr),X(a,'"',Du),X(a,"/",Jt),X(a,";",Eu),X(a,"~",zn),X(a,"_",eo),X(a,"\\",qr);const i=wt(a,hs,Fu,{[sl]:!0});wt(i,hs,i);const n=wt(a,Mi,fa,{[ll]:!0});wt(n,Mi,n);const r=wt(a,ds,cl,{[ul]:!0});wt(r,Mi),wt(r,ds,r);const o=wt(a,l1,If,{[o1]:!0});X(a,u1,mu,{[o1]:!0}),X(o,u1),wt(o,l1,o);const s=wt(a,cs,jf,{[Zf]:!0});wt(s,cs,s),X(s,Rb,s);const l=X(s,Nb);wt(l,cs,s);const d=[[Mi,n]],u=[[Mi,null],[ds,r]];for(let c=0;cc[0]>f[0]?1:-1);for(let c=0;c=0?h[dl]=!0:Mi.test(f)?hs.test(f)?h[rr]=!0:h[ll]=!0:h[sl]=!0,s1(a,f,f,h)}return s1(a,"localhost",d0,{ascii:!0}),a.jd=new At(to),{start:a,tokens:dn({groups:t},Pf)}}function Ob(e,t){const a=xb(t.replace(/[A-Z]/g,s=>s.toLowerCase())),i=a.length,n=[];let r=0,o=0;for(;o=0&&(c+=a[o].length,f++),d+=a[o].length,r+=a[o].length,o++;r-=c,o-=f,d-=c,n.push({t:u.t,v:t.slice(r-d,r),s:r-d,e:r})}return n}function xb(e){const t=[],a=e.length;let i=0;for(;i56319||i+1===a||(r=e.charCodeAt(i+1))<56320||r>57343?e[i]:e.slice(i,i+2);t.push(o),i+=o.length}return t}function xa(e,t,a,i,n){let r;const o=t.length;for(let s=0;s=0;)r++;if(r>0){t.push(a.join(""));for(let o=parseInt(e.substring(i,i+r),10);o>0;o--)a.pop();i+=r}else a.push(e[i]),i++}return t}const c0={defaultProtocol:"http",events:null,format:c1,formatHref:c1,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function bu(e,t){t===void 0&&(t=null);let a=dn({},c0);e&&(a=dn(a,e instanceof bu?e.o:e));const i=a.ignoreTags,n=[];for(let r=0;ra?i.substring(0,a)+"…":i},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e){return e===void 0&&(e=c0.defaultProtocol),{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){const t=this,a=this.toHref(e.get("defaultProtocol")),i=e.get("formatHref",a,this),n=e.get("tagName",a,t),r=this.toFormattedString(e),o={},s=e.get("className",a,t),l=e.get("target",a,t),d=e.get("rel",a,t),u=e.getObj("attributes",a,t),c=e.getObj("events",a,t);return o.href=i,s&&(o.class=s),l&&(o.target=l),d&&(o.rel=d),u&&dn(o,u),{tagName:n,attributes:o,content:r,eventListeners:c}}};function vo(e,t){class a extends Gf{constructor(n,r){super(n,r),this.t=e}}for(const i in t)a.prototype[i]=t[i];return a.t=e,a}const h1=vo("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),f1=vo("text"),Bb=vo("nl"),ui=vo("url",{isLink:!0,toHref(e){return e===void 0&&(e=c0.defaultProtocol),this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){const e=this.tk;return e.length>=2&&e[0].t!==d0&&e[1].t===Ga}}),it=e=>new At(e);function Cb(e){let{groups:t}=e;const a=t.domain.concat([Pr,Ur,Ia,qr,Hr,zr,Vr,$r,Qt,Fu,Wr,Qr,Jr,Kr,Jt,to,zn,eo]),i=[Gr,$i,_i,Vi,Fi,Ga,pu,Wt,Tu,qn,zi,Un,Hn,Xr,Du,Eu],n=[Pr,Gr,Ur,qr,Hr,zr,_i,Vr,$r,Qt,zi,Wr,Qr,Jr,Kr,Xr,Jt,to,zn,eo],r=it(),o=X(r,zn);he(o,n,o),he(o,t.domain,o);const s=it(),l=it(),d=it();he(r,t.domain,s),he(r,t.scheme,l),he(r,t.slashscheme,d),he(s,n,o),he(s,t.domain,s);const u=X(s,Ia);X(o,Ia,u),X(l,Ia,u),X(d,Ia,u);const c=X(o,Wt);he(c,n,o),he(c,t.domain,o);const f=it();he(u,t.domain,f),he(f,t.domain,f);const h=X(f,Wt);he(h,t.domain,f);const _=it(h1);he(h,t.tld,_),he(h,t.utld,_),X(u,d0,_);const m=X(f,Qt);he(m,t.domain,f),he(_,t.domain,f),X(_,Wt,h),X(_,Qt,m);const p=X(_,Ga);he(p,t.numeric,h1);const T=X(s,Qt),R=X(s,Wt);he(T,t.domain,s),he(R,n,o),he(R,t.domain,s);const S=it(ui);he(R,t.tld,S),he(R,t.utld,S),he(S,t.domain,s),he(S,n,o),X(S,Wt,R),X(S,Qt,T),X(S,Ia,u);const C=X(S,Ga),j=it(ui);he(C,t.numeric,j);const E=it(ui),I=it();he(E,a,E),he(E,i,I),he(I,a,E),he(I,i,I),X(S,Jt,E),X(j,Jt,E);const M=X(l,Ga),P=X(d,Ga),g=X(P,Jt),D=X(g,Jt);he(l,t.domain,s),X(l,Wt,R),X(l,Qt,T),he(d,t.domain,s),X(d,Wt,R),X(d,Qt,T),he(M,t.domain,E),X(M,Jt,E),he(D,t.domain,E),he(D,a,E),X(D,Jt,E);const k=X(E,zi),x=X(E,Un),L=X(E,qn),Z=X(E,Hn);X(I,zi,k),X(I,Un,x),X(I,qn,L),X(I,Hn,Z),X(k,_i,E),X(x,Vi,E),X(L,$i,E),X(Z,Fi,E),X(k,_i,E);const $=it(ui),V=it(ui),y=it(ui),U=it(ui);he(k,a,$),he(x,a,V),he(L,a,y),he(Z,a,U);const A=it(),z=it(),re=it(),O=it();return he(k,i),he(x,i),he(L,i),he(Z,i),he($,a,$),he(V,a,V),he(y,a,y),he(U,a,U),he($,i,$),he(V,i,V),he(y,i,y),he(U,i,U),he(A,a,A),he(z,a,V),he(re,a,y),he(O,a,U),he(A,i,A),he(z,i,z),he(re,i,re),he(O,i,O),X(V,Vi,E),X(y,$i,E),X(U,Fi,E),X($,_i,E),X(z,Vi,E),X(re,$i,E),X(O,Fi,E),X(A,Fi,E),X(r,d0,S),X(r,mu,Bb),{start:r,tokens:Pf}}function Mb(e,t,a){let i=a.length,n=0,r=[],o=[];for(;n=0&&f++,n++,u++;if(f<0)n-=u,n0&&(r.push(fs(f1,t,o)),o=[]),n-=f,u-=f;const h=c.t,_=a.slice(n-u,n);r.push(fs(h,t,_))}}return o.length>0&&r.push(fs(f1,t,o)),r}function fs(e,t,a){const i=a[0].s,n=a[a.length-1].e,r=t.slice(i,n);return new e(r,a)}const gt={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function Yb(){gt.scanner=wb(gt.customSchemes);for(let e=0;e/g,">")}function Zb(e){return e.replace(/"/g,""")}function Ib(e){const t=[];for(const a in e){let i=e[a]+"";t.push(`${a}="${Zb(i)}"`)}return t.join(" ")}function jb(e){let{tagName:t,attributes:a,content:i}=e;return`<${t} ${Ib(a)}>${Uf(i)}`}function Pb(e,t){t===void 0&&(t={}),t=new bu(t,jb);const a=Lb(e),i=[];for(let n=0;n +`):!r.isLink||!t.check(r)?i.push(Uf(r.toString())):i.push(t.render(r))}return i.join("")}String.prototype.linkify||Object.defineProperty(String.prototype,"linkify",{writable:!1,value:function(e){return Pb(this,e)}});var qf={exports:{}};(function(e){(function(t){if(typeof a!="function"){var a=function(_){return _};a.nonNative=!0}const i=a("plaintext"),n=a("html"),r=a("comment"),o=/<(\w*)>/g,s=/<\/?([^\s\/>]+)/;function l(_,m,p){_=_||"",m=m||[],p=p||"";let T=u(m,p);return c(_,T)}function d(_,m){_=_||[],m=m||"";let p=u(_,m);return function(T){return c(T||"",p)}}l.init_streaming_mode=d;function u(_,m){return _=f(_),{allowable_tags:_,tag_replacement:m,state:i,tag_buffer:"",depth:0,in_quote_char:""}}function c(_,m){if(typeof _!="string")throw new TypeError("'html' parameter must be a string");let p=m.allowable_tags,T=m.tag_replacement,R=m.state,S=m.tag_buffer,C=m.depth,j=m.in_quote_char,E="";for(let I=0,M=_.length;I":if(j)break;if(C){C--;break}j="",R=i,S+=">",p.has(h(S))?E+=S:E+=T,S="";break;case'"':case"'":P===j?j="":j=j||P,S+=P;break;case"-":S==="":S.slice(-2)=="--"&&(R=i),S="";break;default:S+=P;break}}return m.state=R,m.tag_buffer=S,m.depth=C,m.in_quote_char=j,E}function f(_){let m=new Set;if(typeof _=="string"){let p;for(;p=o.exec(_);)m.add(p[1])}else!a.nonNative&&typeof _[a.iterator]=="function"?m=new Set(_):typeof _.forEach=="function"&&_.forEach(m.add,m);return m}function h(_){let m=s.exec(_);return m?m[1].toLowerCase():null}e.exports?e.exports=l:t.striptags=l})(ja)})(qf);var Gb=qf.exports;const f7=ti(Gb);var Hf={};const Ub=Zl(iF);Object.defineProperty(Hf,"__esModule",{value:!0});var qb=Hf.getCapabilities=zb,Hb=Ub;function zb(){try{return(0,Hb.loadState)("core","capabilities")}catch{return console.debug("Could not find capabilities initial state fall back to _oc_capabilities"),"_oc_capabilities"in window?window._oc_capabilities:{}}}Sa.util.warn;function Bn(e){var t;const a=rt(e);return(t=a?.$el)!=null?t:a}const zf=cu?window:void 0;function sr(...e){let t,a,i,n;if(typeof e[0]=="string"||Array.isArray(e[0])?([a,i,n]=e,t=zf):[t,a,i,n]=e,!t)return ht;Array.isArray(a)||(a=[a]),Array.isArray(i)||(i=[i]);const r=[],o=()=>{r.forEach(u=>u()),r.length=0},s=(u,c,f,h)=>(u.addEventListener(c,f,h),()=>u.removeEventListener(c,f,h)),l=ei(()=>[Bn(t),rt(n)],([u,c])=>{if(o(),!u)return;const f=pf(c)?{...c}:c;r.push(...a.flatMap(h=>i.map(_=>s(u,h,_,f))))},{immediate:!0,flush:"post"}),d=()=>{l(),o()};return b0(d),d}let g1=!1;function _1(e,t,a={}){const{window:i=zf,ignore:n=[],capture:r=!0,detectIframe:o=!1}=a;if(!i)return;il&&!g1&&(g1=!0,Array.from(i.document.body.children).forEach(u=>u.addEventListener("click",ht)),i.document.documentElement.addEventListener("click",ht));let s=!0;const l=u=>n.some(c=>{if(typeof c=="string")return Array.from(i.document.querySelectorAll(c)).some(f=>f===u.target||u.composedPath().includes(f));{const f=Bn(c);return f&&(u.target===f||u.composedPath().includes(f))}}),d=[sr(i,"click",u=>{const c=Bn(e);if(!(!c||c===u.target||u.composedPath().includes(c))){if(u.detail===0&&(s=!l(u)),!s){s=!0;return}t(u)}},{passive:!0,capture:r}),sr(i,"pointerdown",u=>{const c=Bn(e);c&&(s=!u.composedPath().includes(c)&&!l(u))},{passive:!0}),o&&sr(i,"blur",u=>{setTimeout(()=>{var c;const f=Bn(e);((c=i.document.activeElement)==null?void 0:c.tagName)==="IFRAME"&&!f?.contains(i.document.activeElement)&&t(u)},0)})].filter(Boolean);return()=>d.forEach(u=>u())}const Vf={[zd.mounted](e,t){const a=!t.modifiers.bubble;if(typeof t.value=="function")e.__onClickOutside_stop=_1(e,t.value,{capture:a});else{const[i,n]=t.value;e.__onClickOutside_stop=_1(e,i,Object.assign({capture:a},n))}},[zd.unmounted](e){e.__onClickOutside_stop()}};function gs(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function $f(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth1?!0:(t.preventDefault&&t.preventDefault(),!1)}function $b(e,t=!1){const a=ut(t);let i=null,n;ei(BD(e),s=>{const l=gs(rt(s));if(l){const d=l;n=d.style.overflow,a.value&&(d.style.overflow="hidden")}},{immediate:!0});const r=()=>{const s=gs(rt(e));!s||a.value||(il&&(i=sr(s,"touchmove",l=>{Vb(l)},{passive:!1})),s.style.overflow="hidden",a.value=!0)},o=()=>{const s=gs(rt(e));!s||!a.value||(il&&i?.(),s.style.overflow=n,a.value=!1)};return b0(o),ze({get(){return a.value},set(s){s?r():o()}})}function Wb(){let e=!1;const t=ut(!1);return(a,i)=>{if(t.value=i.value,e)return;e=!0;const n=$b(a,i.value);ei(t,r=>n.value=r)}}Wb();const Wf={data(){return{hasStatus:!1,userStatus:{status:null,message:null,icon:null}}},methods:{async fetchUserStatus(e){var t,a;if(!e)return;const i=qb();if(!(!Object.prototype.hasOwnProperty.call(i,"user_status")||!i.user_status.enabled)&&Tr())try{const{data:n}=await Wa.get($a("apps/user_status/api/v1/statuses/{userId}",{userId:e})),{status:r,message:o,icon:s}=n.ocs.data;this.userStatus.status=r,this.userStatus.message=o||"",this.userStatus.icon=s||"",this.hasStatus=!0}catch(n){if(n.response.status===404&&((a=(t=n.response.data.ocs)==null?void 0:t.data)==null?void 0:a.length)===0)return;console.error(n)}}}},Qf=_f("nextcloud").persist().build();function Qb(e){const t=Qf.getItem("user-has-avatar."+e);return typeof t=="string"?!!t:null}function F1(e,t){e&&Qf.setItem("user-has-avatar."+e,t)}const Jb={name:"NcAvatar",directives:{ClickOutside:Vf},components:{DotsHorizontal:gu,NcActions:_u,NcActionLink:gb,NcButton:ai,NcLoadingIcon:Il},mixins:[Wf],props:{url:{type:String,default:void 0},iconClass:{type:String,default:void 0},user:{type:String,default:void 0},showUserStatus:{type:Boolean,default:!0},showUserStatusCompact:{type:Boolean,default:!0},preloadedUserStatus:{type:Object,default:void 0},isGuest:{type:Boolean,default:!1},displayName:{type:String,default:void 0},size:{type:Number,default:32},allowPlaceholder:{type:Boolean,default:!0},disableTooltip:{type:Boolean,default:!1},disableMenu:{type:Boolean,default:!1},tooltipMessage:{type:String,default:null},isNoUser:{type:Boolean,default:!1},menuContainer:{type:[String,Object,Element,Boolean],default:"body"}},data(){return{avatarUrlLoaded:null,avatarSrcSetLoaded:null,userDoesNotExist:!1,isAvatarLoaded:!1,isMenuLoaded:!1,contactsMenuLoading:!1,contactsMenuActions:[],contactsMenuOpenState:!1}},computed:{avatarAriaLabel(){var e,t;if(this.hasMenu)return this.canDisplayUserStatus||this.showUserStatusIconOnAvatar?ie("Avatar of {displayName}, {status}",{displayName:(e=this.displayName)!=null?e:this.user,status:this.userStatusText}):ie("Avatar of {displayName}",{displayName:(t=this.displayName)!=null?t:this.user})},userStatusText(){switch(this.userStatus.status){case"away":return ie("away");case"dnd":return ie("do not disturb");case"online":return ie("online");case"offline":return ie("offline");default:return this.userStatus.status}},userStatusRole(){return this.hasMenu?void 0:{role:"img","aria-label":ie("User status: {status}",{status:this.userStatusText})}},canDisplayUserStatus(){return this.showUserStatus&&this.hasStatus&&["online","away","dnd"].includes(this.userStatus.status)},showUserStatusIconOnAvatar(){return this.showUserStatus&&this.showUserStatusCompact&&this.hasStatus&&this.userStatus.status!=="dnd"&&this.userStatus.icon},userIdentifier(){return this.isDisplayNameDefined?this.displayName:this.isUserDefined?this.user:""},isUserDefined(){return typeof this.user<"u"},isDisplayNameDefined(){return typeof this.displayName<"u"},isUrlDefined(){return typeof this.url<"u"},hasMenu(){var e;return this.disableMenu?!1:this.isMenuLoaded?this.menu.length>0:!(this.user===((e=Tr())==null?void 0:e.uid)||this.userDoesNotExist||this.url)},showInitials(){return this.allowPlaceholder&&this.userDoesNotExist&&!(this.iconClass||this.$slots.icon)},avatarStyle(){return{"--size":this.size+"px",lineHeight:this.size+"px",fontSize:Math.round(this.size*.45)+"px"}},initialsWrapperStyle(){const{r:e,g:t,b:a}=r1(this.userIdentifier);return{backgroundColor:`rgba(${e}, ${t}, ${a}, 0.1)`}},initialsStyle(){const{r:e,g:t,b:a}=r1(this.userIdentifier);return{color:`rgb(${e}, ${t}, ${a})`}},tooltip(){return this.disableTooltip?!1:this.tooltipMessage?this.tooltipMessage:this.displayName},initials(){let e="?";if(this.showInitials){const t=this.userIdentifier.trim();if(t==="")return"?";const a=t.match(/[\p{L}\p{N}\s]/gu).join(""),i=a.lastIndexOf(" ");e=String.fromCodePoint(a.codePointAt(0)),i!==-1&&(e=e.concat(String.fromCodePoint(a.codePointAt(i+1))))}return e.toLocaleUpperCase()},menu(){const e=this.contactsMenuActions.map(a=>({href:a.hyperlink,icon:a.icon,text:a.title}));function t(a){const i=document.createTextNode(a),n=document.createElement("p");return n.appendChild(i),n.innerHTML}return this.showUserStatus&&(this.userStatus.icon||this.userStatus.message)?[{href:"#",icon:`data:image/svg+xml;utf8,${t(this.userStatus.icon)}`,text:`${this.userStatus.message}`}].concat(e):e}},watch:{url(){this.userDoesNotExist=!1,this.loadAvatarUrl()},user(){this.userDoesNotExist=!1,this.isMenuLoaded=!1,this.loadAvatarUrl()}},mounted(){this.loadAvatarUrl(),Wo("settings:avatar:updated",this.loadAvatarUrl),Wo("settings:display-name:updated",this.loadAvatarUrl),this.showUserStatus&&this.user&&!this.isNoUser&&(this.preloadedUserStatus?(this.userStatus.status=this.preloadedUserStatus.status||"",this.userStatus.message=this.preloadedUserStatus.message||"",this.userStatus.icon=this.preloadedUserStatus.icon||"",this.hasStatus=this.preloadedUserStatus.status!==null):this.fetchUserStatus(this.user),Wo("user_status:status.updated",this.handleUserStatusUpdated))},beforeDestroy(){Qo("settings:avatar:updated",this.loadAvatarUrl),Qo("settings:display-name:updated",this.loadAvatarUrl),this.showUserStatus&&this.user&&!this.isNoUser&&Qo("user_status:status.updated",this.handleUserStatusUpdated)},methods:{t:ie,handleUserStatusUpdated(e){this.user===e.userId&&(this.userStatus={status:e.status,icon:e.icon,message:e.message})},async toggleMenu(e){e.type==="keydown"&&e.key!=="Enter"||(this.contactsMenuOpenState||await this.fetchContactsMenu(),this.contactsMenuOpenState=!this.contactsMenuOpenState)},closeMenu(){this.contactsMenuOpenState=!1},async fetchContactsMenu(){this.contactsMenuLoading=!0;try{const e=encodeURIComponent(this.user),{data:t}=await Wa.post(_r("contactsmenu/findOne"),`shareType=0&shareWith=${e}`);this.contactsMenuActions=t.topAction?[t.topAction].concat(t.actions):t.actions}catch{this.contactsMenuOpenState=!1}this.contactsMenuLoading=!1,this.isMenuLoaded=!0},loadAvatarUrl(){if(this.isAvatarLoaded=!1,!this.isUrlDefined&&(!this.isUserDefined||this.isNoUser)){this.isAvatarLoaded=!0,this.userDoesNotExist=!0;return}if(this.isUrlDefined){this.updateImageIfValid(this.url);return}if(this.size<=64){const e=this.avatarUrlGenerator(this.user,64),t=[e+" 1x",this.avatarUrlGenerator(this.user,512)+" 8x"].join(", ");this.updateImageIfValid(e,t)}else{const e=this.avatarUrlGenerator(this.user,512);this.updateImageIfValid(e)}},avatarUrlGenerator(e,t){var a;const i=window.getComputedStyle(document.body).getPropertyValue("--background-invert-if-dark")==="invert(100%)";let n="/avatar/{user}/{size}"+(i?"/dark":"");this.isGuest&&(n="/avatar/guest/{user}/{size}"+(i?"/dark":""));let r=_r(n,{user:e,size:t});return e===((a=Tr())==null?void 0:a.uid)&&typeof oc_userconfig<"u"&&(r+="?v="+oc_userconfig.avatar.version),r},updateImageIfValid(e,t=null){const a=Qb(this.user);if(this.isUserDefined&&typeof a=="boolean"){this.isAvatarLoaded=!0,this.avatarUrlLoaded=e,t&&(this.avatarSrcSetLoaded=t),a===!1&&(this.userDoesNotExist=!0);return}const i=new Image;i.onload=()=>{this.avatarUrlLoaded=e,t&&(this.avatarSrcSetLoaded=t),this.isAvatarLoaded=!0,F1(this.user,!0)},i.onerror=()=>{console.debug("Invalid avatar url",e),this.avatarUrlLoaded=null,this.avatarSrcSetLoaded=null,this.userDoesNotExist=!0,this.isAvatarLoaded=!1,F1(this.user,!1)},t&&(i.srcset=t),i.src=e}}};var Kb=function(){var e=this,t=e._self._c;return t("span",e._g({directives:[{name:"click-outside",rawName:"v-click-outside",value:e.closeMenu,expression:"closeMenu"}],ref:"main",staticClass:"avatardiv popovermenu-wrapper",class:{"avatardiv--unknown":e.userDoesNotExist,"avatardiv--with-menu":e.hasMenu,"avatardiv--with-menu-loading":e.contactsMenuLoading},style:e.avatarStyle,attrs:{title:e.tooltip,tabindex:e.hasMenu?"0":void 0,"aria-label":e.avatarAriaLabel,role:e.hasMenu?"button":void 0}},e.hasMenu?{click:e.toggleMenu,keydown:e.toggleMenu}:null),[e._t("icon",function(){return[e.iconClass?t("span",{staticClass:"avatar-class-icon",class:e.iconClass}):e.isAvatarLoaded&&!e.userDoesNotExist?t("img",{attrs:{src:e.avatarUrlLoaded,srcset:e.avatarSrcSetLoaded,alt:""}}):e._e()]}),e.hasMenu&&!e.menu.length?t("NcButton",{staticClass:"action-item action-item__menutoggle",attrs:{"aria-label":e.t("Open contact menu"),type:"tertiary-no-background"},scopedSlots:e._u([{key:"icon",fn:function(){return[e.contactsMenuLoading?t("NcLoadingIcon"):t("DotsHorizontal",{attrs:{size:20}})]},proxy:!0}],null,!1,2617833509)}):e.hasMenu?t("NcActions",{attrs:{"force-menu":"","manual-open":"",type:"tertiary-no-background",container:e.menuContainer,open:e.contactsMenuOpenState},scopedSlots:e._u([e.contactsMenuLoading?{key:"icon",fn:function(){return[t("NcLoadingIcon")]},proxy:!0}:null],null,!0)},e._l(e.menu,function(a,i){return t("NcActionLink",{key:i,attrs:{href:a.href,icon:a.icon}},[e._v(" "+e._s(a.text)+" ")])}),1):e._e(),e.showUserStatusIconOnAvatar?t("span",{staticClass:"avatardiv__user-status avatardiv__user-status--icon"},[e._v(" "+e._s(e.userStatus.icon)+" ")]):e.canDisplayUserStatus?t("span",e._b({staticClass:"avatardiv__user-status",class:"avatardiv__user-status--"+e.userStatus.status},"span",e.userStatusRole,!1)):e._e(),e.showInitials?t("span",{staticClass:"avatardiv__initials-wrapper",style:e.initialsWrapperStyle},[t("span",{staticClass:"avatardiv__initials",style:e.initialsStyle},[e._v(" "+e._s(e.initials)+" ")])]):e._e()],2)},Xb=[],ey=de(Jb,Kb,Xb,!1,null,"b9bda6c2",null,null);const y0=ey.exports,ty={long:ie("a few seconds ago"),short:ie("seconds ago"),narrow:ie("sec. ago")},ay={name:"NcDateTime",props:{timestamp:{type:[Date,Number],required:!0},format:{type:Object,default:()=>({timeStyle:"medium",dateStyle:"short"})},relativeTime:{type:[Boolean,String],default:"long",validator:e=>e===!1||["long","short","narrow"].includes(e)},ignoreSeconds:{type:Boolean,default:!1}},data(){return{currentTime:Date.now(),intervalId:void 0}},computed:{dateObject(){return new Date(this.timestamp)},formattedTime(){if(this.relativeTime!==!1){const e=new Intl.RelativeTimeFormat(rd(),{numeric:"auto",style:this.relativeTime}),t=(this.dateObject-new Date(this.currentTime))/1e3;if(Math.abs(t)<=90)return this.ignoreSeconds?ty[this.relativeTime]:e.format(Math.round(t),"second");const a=t/60;if(Math.abs(a)<=90)return e.format(Math.round(a),"minute");const i=a/60;if(Math.abs(i)<=72)return e.format(Math.round(i),"hour");const n=i/24;if(Math.abs(n)<=6)return e.format(Math.round(n),"day");const r=n/7;return Math.abs(r)<=52?e.format(Math.round(r),"week"):e.format(Math.round(n/365),"year")}return this.formattedFullTime},formattedFullTime(){return new Intl.DateTimeFormat(rd(),this.format).format(this.dateObject)}},watch:{relativeTime(e,t){window.clearInterval(this.intervalId),this.intervalId=void 0,e&&(this.intervalId=window.setInterval(this.setCurrentTime,1e3))}},mounted(){this.relativeTime!==!1&&(this.intervalId=window.setInterval(this.setCurrentTime,1e3))},destroyed(){window.clearInterval(this.intervalId)},methods:{setCurrentTime(){this.currentTime=Date.now()}}};var iy=function(){var e=this,t=e._self._c;return t("span",{staticClass:"nc-datetime",attrs:{"data-timestamp":e.timestamp,title:e.formattedFullTime}},[e._v(e._s(e.formattedTime))])},ny=[],ry=de(ay,iy,ny,!1,null,null,null,null);const Jf=ry.exports;const Kf=(e,t)=>{const a=[];let i=0,n=e.toLowerCase().indexOf(t.toLowerCase(),i),r=0;for(;n>-1&&r[]}},computed:{ranges(){let e=[];return!this.search&&this.highlight.length===0||(this.highlight.length>0?e=this.highlight:e=Kf(this.text,this.search),e.forEach((t,a)=>{t.end(a.start0&&t.push({start:a.start<0?0:a.start,end:a.end>this.text.length?this.text.length:a.end}),t),[]),e.sort((t,a)=>t.start-a.start),e=e.reduce((t,a)=>{if(!t.length)t.push(a);else{const i=t.length-1;t[i].end>=a.start?t[i]={start:t[i].start,end:Math.max(t[i].end,a.end)}:t.push(a)}return t},[])),e},chunks(){if(this.ranges.length===0)return[{start:0,end:this.text.length,highlight:!1,text:this.text}];const e=[];let t=0,a=0;for(;t=this.ranges.length&&tt.highlight?e("strong",{},t.text):t.text)):e("span",{},this.text)}},sy=null,ly=null;var uy=de(oy,sy,ly,!1,null,null,null,null);const Ro=uy.exports;var Xf={exports:{}};(function(e,t){(function(a,i){e.exports=i()})(typeof self<"u"?self:ja,function(){return(()=>{var a={646:o=>{o.exports=function(s){if(Array.isArray(s)){for(var l=0,d=new Array(s.length);l{o.exports=function(s,l,d){return l in s?Object.defineProperty(s,l,{value:d,enumerable:!0,configurable:!0,writable:!0}):s[l]=d,s}},860:o=>{o.exports=function(s){if(Symbol.iterator in Object(s)||Object.prototype.toString.call(s)==="[object Arguments]")return Array.from(s)}},206:o=>{o.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},319:(o,s,l)=>{var d=l(646),u=l(860),c=l(206);o.exports=function(f){return d(f)||u(f)||c()}},8:o=>{function s(l){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?o.exports=s=function(d){return typeof d}:o.exports=s=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},s(l)}o.exports=s}},i={};function n(o){var s=i[o];if(s!==void 0)return s.exports;var l=i[o]={exports:{}};return a[o](l,l.exports,n),l.exports}n.n=o=>{var s=o&&o.__esModule?()=>o.default:()=>o;return n.d(s,{a:s}),s},n.d=(o,s)=>{for(var l in s)n.o(s,l)&&!n.o(o,l)&&Object.defineProperty(o,l,{enumerable:!0,get:s[l]})},n.o=(o,s)=>Object.prototype.hasOwnProperty.call(o,s),n.r=o=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})};var r={};return(()=>{n.r(r),n.d(r,{VueSelect:()=>I,default:()=>P,mixins:()=>M});var o=n(319),s=n.n(o),l=n(8),d=n.n(l),u=n(713),c=n.n(u);const f={props:{autoscroll:{type:Boolean,default:!0}},watch:{typeAheadPointer:function(){this.autoscroll&&this.maybeAdjustScroll()},open:function(g){var D=this;this.autoscroll&&g&&this.$nextTick(function(){return D.maybeAdjustScroll()})}},methods:{maybeAdjustScroll:function(){var g,D=((g=this.$refs.dropdownMenu)===null||g===void 0?void 0:g.children[this.typeAheadPointer])||!1;if(D){var k=this.getDropdownViewport(),x=D.getBoundingClientRect(),L=x.top,Z=x.bottom,$=x.height;if(Lk.bottom)return this.$refs.dropdownMenu.scrollTop=D.offsetTop-(k.height-$)}},getDropdownViewport:function(){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.getBoundingClientRect():{height:0,top:0,bottom:0}}}},h={data:function(){return{typeAheadPointer:-1}},watch:{filteredOptions:function(){if(this.resetFocusOnOptionsChange){for(var g=0;g=0;g--)if(this.selectable(this.filteredOptions[g])){this.typeAheadPointer=g;break}},typeAheadDown:function(){for(var g=this.typeAheadPointer+1;g0&&arguments[0]!==void 0?arguments[0]:null;return this.mutableLoading=g??!this.mutableLoading}}};function m(g,D,k,x,L,Z,$,V){var y,U=typeof g=="function"?g.options:g;if(D&&(U.render=D,U.staticRenderFns=k,U._compiled=!0),x&&(U.functional=!0),Z&&(U._scopeId="data-v-"+Z),$?(y=function(re){(re=re||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||typeof __VUE_SSR_CONTEXT__>"u"||(re=__VUE_SSR_CONTEXT__),L&&L.call(this,re),re&&re._registeredComponents&&re._registeredComponents.add($)},U._ssrRegister=y):L&&(y=V?function(){L.call(this,(U.functional?this.parent:this).$root.$options.shadowRoot)}:L),y)if(U.functional){U._injectStyles=y;var A=U.render;U.render=function(re,O){return y.call(O),A(re,O)}}else{var z=U.beforeCreate;U.beforeCreate=z?[].concat(z,y):[y]}return{exports:g,options:U}}const p={Deselect:m({},function(){var g=this.$createElement,D=this._self._c||g;return D("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"}},[D("path",{attrs:{d:"M6.895455 5l2.842897-2.842898c.348864-.348863.348864-.914488 0-1.263636L9.106534.261648c-.348864-.348864-.914489-.348864-1.263636 0L5 3.104545 2.157102.261648c-.348863-.348864-.914488-.348864-1.263636 0L.261648.893466c-.348864.348864-.348864.914489 0 1.263636L3.104545 5 .261648 7.842898c-.348864.348863-.348864.914488 0 1.263636l.631818.631818c.348864.348864.914773.348864 1.263636 0L5 6.895455l2.842898 2.842897c.348863.348864.914772.348864 1.263636 0l.631818-.631818c.348864-.348864.348864-.914489 0-1.263636L6.895455 5z"}})])},[],!1,null,null,null).exports,OpenIndicator:m({},function(){var g=this.$createElement,D=this._self._c||g;return D("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10"}},[D("path",{attrs:{d:"M9.211364 7.59931l4.48338-4.867229c.407008-.441854.407008-1.158247 0-1.60046l-.73712-.80023c-.407008-.441854-1.066904-.441854-1.474243 0L7 5.198617 2.51662.33139c-.407008-.441853-1.066904-.441853-1.474243 0l-.737121.80023c-.407008.441854-.407008 1.158248 0 1.600461l4.48338 4.867228L7 10l2.211364-2.40069z"}})])},[],!1,null,null,null).exports},T={inserted:function(g,D,k){var x=k.context;if(x.appendToBody){document.body.appendChild(g);var L=x.$refs.toggle.getBoundingClientRect(),Z=L.height,$=L.top,V=L.left,y=L.width,U=window.scrollX||window.pageXOffset,A=window.scrollY||window.pageYOffset;g.unbindPosition=x.calculatePosition(g,x,{width:y+"px",left:U+V+"px",top:A+$+Z+"px"})}},unbind:function(g,D,k){k.context.appendToBody&&(g.unbindPosition&&typeof g.unbindPosition=="function"&&g.unbindPosition(),g.parentNode&&g.parentNode.removeChild(g))}},R=function(g){var D={};return Object.keys(g).sort().forEach(function(k){D[k]=g[k]}),JSON.stringify(D)};var S=0;const C=function(){return++S};function j(g,D){var k=Object.keys(g);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(g);D&&(x=x.filter(function(L){return Object.getOwnPropertyDescriptor(g,L).enumerable})),k.push.apply(k,x)}return k}function E(g){for(var D=1;D-1}},filter:{type:Function,default:function(g,D){var k=this;return g.filter(function(x){var L=k.getOptionLabel(x);return typeof L=="number"&&(L=L.toString()),k.filterBy(x,L,D)})}},createOption:{type:Function,default:function(g){return d()(this.optionList[0])==="object"?c()({},this.label,g):g}},resetFocusOnOptionsChange:{type:Boolean,default:!0},resetOnOptionsChange:{default:!1,validator:function(g){return["function","boolean"].includes(d()(g))}},clearSearchOnBlur:{type:Function,default:function(g){var D=g.clearSearchOnSelect,k=g.multiple;return D&&!k}},noDrop:{type:Boolean,default:!1},inputId:{type:String},dir:{type:String,default:"auto"},selectOnTab:{type:Boolean,default:!1},selectOnKeyCodes:{type:Array,default:function(){return[13]}},searchInputQuerySelector:{type:String,default:"[type=search]"},mapKeydown:{type:Function,default:function(g,D){return g}},appendToBody:{type:Boolean,default:!1},calculatePosition:{type:Function,default:function(g,D,k){var x=k.width,L=k.top,Z=k.left;g.style.top=L,g.style.left=Z,g.style.width=x}},dropdownShouldOpen:{type:Function,default:function(g){var D=g.noDrop,k=g.open,x=g.mutableLoading;return!D&&k&&!x}},keyboardFocusBorder:{type:Boolean,default:!1},uid:{type:[String,Number],default:function(){return C()}}},data:function(){return{search:"",open:!1,isComposing:!1,isKeyboardNavigation:!1,pushedTags:[],_value:[]}},computed:{isTrackingValues:function(){return this.value===void 0||this.$options.propsData.hasOwnProperty("reduce")},selectedValue:function(){var g=this.value;return this.isTrackingValues&&(g=this.$data._value),g!=null&&g!==""?[].concat(g):[]},optionList:function(){return this.options.concat(this.pushTags?this.pushedTags:[])},searchEl:function(){return this.$scopedSlots.search?this.$refs.selectedOptions.querySelector(this.searchInputQuerySelector):this.$refs.search},scope:function(){var g=this,D={search:this.search,loading:this.loading,searching:this.searching,filteredOptions:this.filteredOptions};return{search:{attributes:E({disabled:this.disabled,placeholder:this.searchPlaceholder,tabindex:this.tabindex,readonly:!this.searchable,id:this.inputId,"aria-autocomplete":"list","aria-labelledby":"vs".concat(this.uid,"__combobox"),"aria-controls":"vs".concat(this.uid,"__listbox"),ref:"search",type:"search",autocomplete:this.autocomplete,value:this.search},this.dropdownOpen&&this.filteredOptions[this.typeAheadPointer]?{"aria-activedescendant":"vs".concat(this.uid,"__option-").concat(this.typeAheadPointer)}:{}),events:{compositionstart:function(){return g.isComposing=!0},compositionend:function(){return g.isComposing=!1},keydown:this.onSearchKeyDown,keypress:this.onSearchKeyPress,blur:this.onSearchBlur,focus:this.onSearchFocus,input:function(k){return g.search=k.target.value}}},spinner:{loading:this.mutableLoading},noOptions:{search:this.search,loading:this.mutableLoading,searching:this.searching},openIndicator:{attributes:{ref:"openIndicator",role:"presentation",class:"vs__open-indicator"}},listHeader:D,listFooter:D,header:E({},D,{deselect:this.deselect}),footer:E({},D,{deselect:this.deselect})}},childComponents:function(){return E({},p,{},this.components)},stateClasses:function(){return{"vs--open":this.dropdownOpen,"vs--single":!this.multiple,"vs--multiple":this.multiple,"vs--searching":this.searching&&!this.noDrop,"vs--searchable":this.searchable&&!this.noDrop,"vs--unsearchable":!this.searchable,"vs--loading":this.mutableLoading,"vs--disabled":this.disabled}},searching:function(){return!!this.search},dropdownOpen:function(){return this.dropdownShouldOpen(this)},searchPlaceholder:function(){return this.isValueEmpty&&this.placeholder?this.placeholder:void 0},filteredOptions:function(){var g=this,D=function(Z){return g.limit!==null?Z.slice(0,g.limit):Z},k=[].concat(this.optionList);if(!this.filterable&&!this.taggable)return D(k);var x=this.search.length?this.filter(k,this.search,this):k;if(this.taggable&&this.search.length){var L=this.createOption(this.search);this.optionExists(L)||x.unshift(L)}return D(x)},isValueEmpty:function(){return this.selectedValue.length===0},showClearButton:function(){return!this.multiple&&this.clearable&&!this.open&&!this.isValueEmpty}},watch:{options:function(g,D){var k=this;!this.taggable&&(typeof k.resetOnOptionsChange=="function"?k.resetOnOptionsChange(g,D,k.selectedValue):k.resetOnOptionsChange)&&this.clearSelection(),this.value&&this.isTrackingValues&&this.setInternalValueFromOptions(this.value)},value:{immediate:!0,handler:function(g){this.isTrackingValues&&this.setInternalValueFromOptions(g)}},multiple:function(){this.clearSelection()},open:function(g){this.$emit(g?"open":"close")},search:function(g){g.length&&(this.open=!0)}},created:function(){this.mutableLoading=this.loading,this.$on("option:created",this.pushTag)},methods:{setInternalValueFromOptions:function(g){var D=this;Array.isArray(g)?this.$data._value=g.map(function(k){return D.findOptionFromReducedValue(k)}):this.$data._value=this.findOptionFromReducedValue(g)},select:function(g){this.$emit("option:selecting",g),this.isOptionSelected(g)?this.deselectFromDropdown&&(this.clearable||this.multiple&&this.selectedValue.length>1)&&this.deselect(g):(this.taggable&&!this.optionExists(g)&&this.$emit("option:created",g),this.multiple&&(g=this.selectedValue.concat(g)),this.updateValue(g),this.$emit("option:selected",g)),this.onAfterSelect(g)},deselect:function(g){var D=this;this.$emit("option:deselecting",g),this.updateValue(this.selectedValue.filter(function(k){return!D.optionComparator(k,g)})),this.$emit("option:deselected",g)},keyboardDeselect:function(g,D){var k,x;this.deselect(g);var L=(k=this.$refs.deselectButtons)===null||k===void 0?void 0:k[D+1],Z=(x=this.$refs.deselectButtons)===null||x===void 0?void 0:x[D-1],$=L??Z;$?$.focus():this.searchEl.focus()},clearSelection:function(){this.updateValue(this.multiple?[]:null),this.searchEl.focus()},onAfterSelect:function(g){var D=this;this.closeOnSelect&&(this.open=!this.open),this.clearSearchOnSelect&&(this.search=""),this.noDrop&&this.multiple&&this.$nextTick(function(){return D.$refs.search.focus()})},updateValue:function(g){var D=this;this.value===void 0&&(this.$data._value=g),g!==null&&(g=Array.isArray(g)?g.map(function(k){return D.reduce(k)}):this.reduce(g)),this.$emit("input",g)},toggleDropdown:function(g){var D=g.target!==this.searchEl;D&&g.preventDefault();var k=[].concat(s()(this.$refs.deselectButtons||[]),s()([this.$refs.clearButton]));this.searchEl===void 0||k.filter(Boolean).some(function(x){return x.contains(g.target)||x===g.target})?g.preventDefault():this.open&&D?this.searchEl.blur():this.disabled||(this.open=!0,this.searchEl.focus())},isOptionSelected:function(g){var D=this;return this.selectedValue.some(function(k){return D.optionComparator(k,g)})},isOptionDeselectable:function(g){return this.isOptionSelected(g)&&this.deselectFromDropdown},hasKeyboardFocusBorder:function(g){return!(!this.keyboardFocusBorder||!this.isKeyboardNavigation)&&g===this.typeAheadPointer},optionComparator:function(g,D){return this.getOptionKey(g)===this.getOptionKey(D)},findOptionFromReducedValue:function(g){var D=this,k=[].concat(s()(this.options),s()(this.pushedTags)).filter(function(x){return JSON.stringify(D.reduce(x))===JSON.stringify(g)});return k.length===1?k[0]:k.find(function(x){return D.optionComparator(x,D.$data._value)})||g},closeSearchOptions:function(){this.open=!1,this.$emit("search:blur")},maybeDeleteValue:function(){if(!this.searchEl.value.length&&this.selectedValue&&this.selectedValue.length&&this.clearable){var g=null;this.multiple&&(g=s()(this.selectedValue.slice(0,this.selectedValue.length-1))),this.updateValue(g)}},optionExists:function(g){var D=this;return this.optionList.some(function(k){return D.optionComparator(k,g)})},optionAriaSelected:function(g){return this.selectable(g)?String(this.isOptionSelected(g)):null},normalizeOptionForSlot:function(g){return d()(g)==="object"?g:c()({},this.label,g)},pushTag:function(g){this.pushedTags.push(g)},onEscape:function(){this.search.length?this.search="":this.open=!1},onSearchBlur:function(){if(!this.mousedown||this.searching){var g=this.clearSearchOnSelect,D=this.multiple;return this.clearSearchOnBlur({clearSearchOnSelect:g,multiple:D})&&(this.search=""),void this.closeSearchOptions()}this.mousedown=!1,this.search.length!==0||this.options.length!==0||this.closeSearchOptions()},onSearchFocus:function(){this.open=!0,this.$emit("search:focus")},onMousedown:function(){this.mousedown=!0},onMouseUp:function(){this.mousedown=!1},onMouseMove:function(g,D){this.isKeyboardNavigation=!1,this.selectable(g)&&(this.typeAheadPointer=D)},onSearchKeyDown:function(g){var D=this,k=function(Z){if(Z.preventDefault(),D.open)return!D.isComposing&&D.typeAheadSelect();D.open=!0},x={8:function(Z){return D.maybeDeleteValue()},9:function(Z){return D.onTab()},27:function(Z){return D.onEscape()},38:function(Z){if(Z.preventDefault(),D.isKeyboardNavigation=!0,D.open)return D.typeAheadUp();D.open=!0},40:function(Z){if(Z.preventDefault(),D.isKeyboardNavigation=!0,D.open)return D.typeAheadDown();D.open=!0}};this.selectOnKeyCodes.forEach(function(Z){return x[Z]=k});var L=this.mapKeydown(x,this);if(typeof L[g.keyCode]=="function")return L[g.keyCode](g)},onSearchKeyPress:function(g){this.open||g.keyCode!==32||(g.preventDefault(),this.open=!0)}}},function(){var g=this,D=g.$createElement,k=g._self._c||D;return k("div",{staticClass:"v-select",class:g.stateClasses,attrs:{dir:g.dir}},[g._t("header",null,null,g.scope.header),g._v(" "),k("div",{ref:"toggle",staticClass:"vs__dropdown-toggle",attrs:{id:"vs"+g.uid+"__combobox",role:"combobox","aria-expanded":g.dropdownOpen.toString(),"aria-owns":"vs"+g.uid+"__listbox","aria-label":g.ariaLabelCombobox},on:{mousedown:function(x){return g.toggleDropdown(x)}}},[k("div",{ref:"selectedOptions",staticClass:"vs__selected-options"},[g._l(g.selectedValue,function(x,L){return g._t("selected-option-container",[k("span",{key:g.getOptionKey(x),staticClass:"vs__selected"},[g._t("selected-option",[g._v(` + `+g._s(g.getOptionLabel(x))+` + `)],null,g.normalizeOptionForSlot(x)),g._v(" "),g.multiple?k("button",{ref:"deselectButtons",refInFor:!0,staticClass:"vs__deselect",attrs:{disabled:g.disabled,type:"button",title:g.ariaLabelDeselectOption(g.getOptionLabel(x)),"aria-label":g.ariaLabelDeselectOption(g.getOptionLabel(x))},on:{mousedown:function(Z){return Z.stopPropagation(),g.deselect(x)},keydown:function(Z){return!Z.type.indexOf("key")&&g._k(Z.keyCode,"enter",13,Z.key,"Enter")?null:g.keyboardDeselect(x,L)}}},[k(g.childComponents.Deselect,{tag:"component"})],1):g._e()],2)],{option:g.normalizeOptionForSlot(x),deselect:g.deselect,multiple:g.multiple,disabled:g.disabled})}),g._v(" "),g._t("search",[k("input",g._g(g._b({staticClass:"vs__search"},"input",g.scope.search.attributes,!1),g.scope.search.events))],null,g.scope.search)],2),g._v(" "),k("div",{ref:"actions",staticClass:"vs__actions"},[k("button",{directives:[{name:"show",rawName:"v-show",value:g.showClearButton,expression:"showClearButton"}],ref:"clearButton",staticClass:"vs__clear",attrs:{disabled:g.disabled,type:"button",title:g.ariaLabelClearSelected,"aria-label":g.ariaLabelClearSelected},on:{click:g.clearSelection}},[k(g.childComponents.Deselect,{tag:"component"})],1),g._v(" "),g._t("open-indicator",[g.noDrop?g._e():k(g.childComponents.OpenIndicator,g._b({tag:"component"},"component",g.scope.openIndicator.attributes,!1))],null,g.scope.openIndicator),g._v(" "),g._t("spinner",[k("div",{directives:[{name:"show",rawName:"v-show",value:g.mutableLoading,expression:"mutableLoading"}],staticClass:"vs__spinner"},[g._v("Loading...")])],null,g.scope.spinner)],2)]),g._v(" "),k("transition",{attrs:{name:g.transition}},[g.dropdownOpen?k("ul",{directives:[{name:"append-to-body",rawName:"v-append-to-body"}],key:"vs"+g.uid+"__listbox",ref:"dropdownMenu",staticClass:"vs__dropdown-menu",attrs:{id:"vs"+g.uid+"__listbox",role:"listbox","aria-multiselectable":g.multiple,tabindex:"-1"},on:{mousedown:function(x){return x.preventDefault(),g.onMousedown(x)},mouseup:g.onMouseUp}},[g._t("list-header",null,null,g.scope.listHeader),g._v(" "),g._l(g.filteredOptions,function(x,L){return k("li",{key:g.getOptionKey(x),staticClass:"vs__dropdown-option",class:{"vs__dropdown-option--deselect":g.isOptionDeselectable(x)&&L===g.typeAheadPointer,"vs__dropdown-option--selected":g.isOptionSelected(x),"vs__dropdown-option--highlight":L===g.typeAheadPointer,"vs__dropdown-option--kb-focus":g.hasKeyboardFocusBorder(L),"vs__dropdown-option--disabled":!g.selectable(x)},attrs:{id:"vs"+g.uid+"__option-"+L,role:"option","aria-selected":g.optionAriaSelected(x)},on:{mousemove:function(Z){return g.onMouseMove(x,L)},click:function(Z){Z.preventDefault(),Z.stopPropagation(),g.selectable(x)&&g.select(x)}}},[g._t("option",[g._v(` + `+g._s(g.getOptionLabel(x))+` + `)],null,g.normalizeOptionForSlot(x))],2)}),g._v(" "),g.filteredOptions.length===0?k("li",{staticClass:"vs__no-options"},[g._t("no-options",[g._v(` + Sorry, no matching options. + `)],null,g.scope.noOptions)],2):g._e(),g._v(" "),g._t("list-footer",null,null,g.scope.listFooter)],2):k("ul",{staticStyle:{display:"none",visibility:"hidden"},attrs:{id:"vs"+g.uid+"__listbox",role:"listbox"}})]),g._v(" "),g._t("footer",null,null,g.scope.footer)],2)},[],!1,null,null,null).exports,M={ajax:_,pointer:h,pointerScroll:f},P=I})(),r})()})})(Xf);var P0=Xf.exports;const ao=Math.min,bi=Math.max,io=Math.round,G0=Math.floor,Qa=e=>({x:e,y:e}),dy={left:"right",right:"left",bottom:"top",top:"bottom"},cy={start:"end",end:"start"};function m1(e,t,a){return bi(e,ao(t,a))}function cn(e,t){return typeof e=="function"?e(t):e}function Ja(e){return e.split("-")[0]}function No(e){return e.split("-")[1]}function yu(e){return e==="x"?"y":"x"}function eg(e){return e==="y"?"height":"width"}function A0(e){return["top","bottom"].includes(Ja(e))?"y":"x"}function tg(e){return yu(A0(e))}function hy(e,t,a){a===void 0&&(a=!1);const i=No(e),n=tg(e),r=eg(n);let o=n==="x"?i===(a?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(o=no(o)),[o,no(o)]}function fy(e){const t=no(e);return[gl(e),t,gl(t)]}function gl(e){return e.replace(/start|end/g,t=>cy[t])}function gy(e,t,a){const i=["left","right"],n=["right","left"],r=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return a?t?n:i:t?i:n;case"left":case"right":return t?r:o;default:return[]}}function _y(e,t,a,i){const n=No(e);let r=gy(Ja(e),a==="start",i);return n&&(r=r.map(o=>o+"-"+n),t&&(r=r.concat(r.map(gl)))),r}function no(e){return e.replace(/left|right|bottom|top/g,t=>dy[t])}function Fy(e){return{top:0,right:0,bottom:0,left:0,...e}}function my(e){return typeof e!="number"?Fy(e):{top:e,right:e,bottom:e,left:e}}function ro(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function p1(e,t,a){let{reference:i,floating:n}=e;const r=A0(t),o=tg(t),s=eg(o),l=Ja(t),d=r==="y",u=i.x+i.width/2-n.width/2,c=i.y+i.height/2-n.height/2,f=i[s]/2-n[s]/2;let h;switch(l){case"top":h={x:u,y:i.y-n.height};break;case"bottom":h={x:u,y:i.y+i.height};break;case"right":h={x:i.x+i.width,y:c};break;case"left":h={x:i.x-n.width,y:c};break;default:h={x:i.x,y:i.y}}switch(No(t)){case"start":h[o]-=f*(a&&d?-1:1);break;case"end":h[o]+=f*(a&&d?-1:1);break}return h}const py=async(e,t,a)=>{const{placement:i="bottom",strategy:n="absolute",middleware:r=[],platform:o}=a,s=r.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let d=await o.getElementRects({reference:e,floating:t,strategy:n}),{x:u,y:c}=p1(d,i,l),f=i,h={},_=0;for(let m=0;mk<=0)){var P,g;const k=(((P=r.flip)==null?void 0:P.index)||0)+1,x=j[k];if(x)return{data:{index:k,overflows:M},reset:{placement:x}};let L=(g=M.filter(Z=>Z.overflows[0]<=0).sort((Z,$)=>Z.overflows[1]-$.overflows[1])[0])==null?void 0:g.placement;if(!L)switch(h){case"bestFit":{var D;const Z=(D=M.map($=>[$.placement,$.overflows.filter(V=>V>0).reduce((V,y)=>V+y,0)]).sort(($,V)=>$[1]-V[1])[0])==null?void 0:D[0];Z&&(L=Z);break}case"initialPlacement":L=s;break}if(n!==L)return{reset:{placement:L}}}return{}}}};async function Dy(e,t){const{placement:a,platform:i,elements:n}=e,r=await(i.isRTL==null?void 0:i.isRTL(n.floating)),o=Ja(a),s=No(a),l=A0(a)==="y",d=["left","top"].includes(o)?-1:1,u=r&&l?-1:1,c=cn(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:_}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...c};return s&&typeof _=="number"&&(h=s==="end"?_*-1:_),l?{x:h*u,y:f*d}:{x:f*d,y:h*u}}const Ey=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:a,y:i}=t,n=await Dy(t,e);return{x:a+n.x,y:i+n.y,data:n}}}},by=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:a,y:i,placement:n}=t,{mainAxis:r=!0,crossAxis:o=!1,limiter:s={fn:p=>{let{x:T,y:R}=p;return{x:T,y:R}}},...l}=cn(e,t),d={x:a,y:i},u=await ag(t,l),c=A0(Ja(n)),f=yu(c);let h=d[f],_=d[c];if(r){const p=f==="y"?"top":"left",T=f==="y"?"bottom":"right",R=h+u[p],S=h-u[T];h=m1(R,h,S)}if(o){const p=c==="y"?"top":"left",T=c==="y"?"bottom":"right",R=_+u[p],S=_-u[T];_=m1(R,_,S)}const m=s.fn({...t,[f]:h,[c]:_});return{...m,data:{x:m.x-a,y:m.y-i}}}}},yy=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:a,y:i,placement:n,rects:r,middlewareData:o}=t,{offset:s=0,mainAxis:l=!0,crossAxis:d=!0}=cn(e,t),u={x:a,y:i},c=A0(n),f=yu(c);let h=u[f],_=u[c];const m=cn(s,t),p=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const S=f==="y"?"height":"width",C=r.reference[f]-r.floating[S]+p.mainAxis,j=r.reference[f]+r.reference[S]-p.mainAxis;hj&&(h=j)}if(d){var T,R;const S=f==="y"?"width":"height",C=["top","left"].includes(Ja(n)),j=r.reference[c]-r.floating[S]+(C&&((T=o.offset)==null?void 0:T[c])||0)+(C?0:p.crossAxis),E=r.reference[c]+r.reference[S]+(C?0:((R=o.offset)==null?void 0:R[c])||0)-(C?p.crossAxis:0);_E&&(_=E)}return{[f]:h,[c]:_}}}};function Ka(e){return ig(e)?(e.nodeName||"").toLowerCase():"#document"}function Nt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function wa(e){var t;return(t=(ig(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ig(e){return e instanceof Node||e instanceof Nt(e).Node}function ya(e){return e instanceof Element||e instanceof Nt(e).Element}function oa(e){return e instanceof HTMLElement||e instanceof Nt(e).HTMLElement}function T1(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Nt(e).ShadowRoot}function S0(e){const{overflow:t,overflowX:a,overflowY:i,display:n}=Zt(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+a)&&!["inline","contents"].includes(n)}function Ay(e){return["table","td","th"].includes(Ka(e))}function Au(e){const t=Su(),a=Zt(e);return a.transform!=="none"||a.perspective!=="none"||(a.containerType?a.containerType!=="normal":!1)||!t&&(a.backdropFilter?a.backdropFilter!=="none":!1)||!t&&(a.filter?a.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(a.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(a.contain||"").includes(i))}function Sy(e){let t=hn(e);for(;oa(t)&&!wo(t);){if(Au(t))return t;t=hn(t)}return null}function Su(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function wo(e){return["html","body","#document"].includes(Ka(e))}function Zt(e){return Nt(e).getComputedStyle(e)}function Oo(e){return ya(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function hn(e){if(Ka(e)==="html")return e;const t=e.assignedSlot||e.parentNode||T1(e)&&e.host||wa(e);return T1(t)?t.host:t}function ng(e){const t=hn(e);return wo(t)?e.ownerDocument?e.ownerDocument.body:e.body:oa(t)&&S0(t)?t:ng(t)}function h0(e,t,a){var i;t===void 0&&(t=[]),a===void 0&&(a=!0);const n=ng(e),r=n===((i=e.ownerDocument)==null?void 0:i.body),o=Nt(n);return r?t.concat(o,o.visualViewport||[],S0(n)?n:[],o.frameElement&&a?h0(o.frameElement):[]):t.concat(n,h0(n,[],a))}function rg(e){const t=Zt(e);let a=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const n=oa(e),r=n?e.offsetWidth:a,o=n?e.offsetHeight:i,s=io(a)!==r||io(i)!==o;return s&&(a=r,i=o),{width:a,height:i,$:s}}function ku(e){return ya(e)?e:e.contextElement}function nn(e){const t=ku(e);if(!oa(t))return Qa(1);const a=t.getBoundingClientRect(),{width:i,height:n,$:r}=rg(t);let o=(r?io(a.width):a.width)/i,s=(r?io(a.height):a.height)/n;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const ky=Qa(0);function og(e){const t=Nt(e);return!Su()||!t.visualViewport?ky:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function vy(e,t,a){return t===void 0&&(t=!1),!a||t&&a!==Nt(e)?!1:t}function vi(e,t,a,i){t===void 0&&(t=!1),a===void 0&&(a=!1);const n=e.getBoundingClientRect(),r=ku(e);let o=Qa(1);t&&(i?ya(i)&&(o=nn(i)):o=nn(e));const s=vy(r,a,i)?og(r):Qa(0);let l=(n.left+s.x)/o.x,d=(n.top+s.y)/o.y,u=n.width/o.x,c=n.height/o.y;if(r){const f=Nt(r),h=i&&ya(i)?Nt(i):i;let _=f.frameElement;for(;_&&i&&h!==f;){const m=nn(_),p=_.getBoundingClientRect(),T=Zt(_),R=p.left+(_.clientLeft+parseFloat(T.paddingLeft))*m.x,S=p.top+(_.clientTop+parseFloat(T.paddingTop))*m.y;l*=m.x,d*=m.y,u*=m.x,c*=m.y,l+=R,d+=S,_=Nt(_).frameElement}}return ro({width:u,height:c,x:l,y:d})}function Ry(e){let{rect:t,offsetParent:a,strategy:i}=e;const n=oa(a),r=wa(a);if(a===r)return t;let o={scrollLeft:0,scrollTop:0},s=Qa(1);const l=Qa(0);if((n||!n&&i!=="fixed")&&((Ka(a)!=="body"||S0(r))&&(o=Oo(a)),oa(a))){const d=vi(a);s=nn(a),l.x=d.x+a.clientLeft,l.y=d.y+a.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-o.scrollLeft*s.x+l.x,y:t.y*s.y-o.scrollTop*s.y+l.y}}function Ny(e){return Array.from(e.getClientRects())}function sg(e){return vi(wa(e)).left+Oo(e).scrollLeft}function wy(e){const t=wa(e),a=Oo(e),i=e.ownerDocument.body,n=bi(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),r=bi(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let o=-a.scrollLeft+sg(e);const s=-a.scrollTop;return Zt(i).direction==="rtl"&&(o+=bi(t.clientWidth,i.clientWidth)-n),{width:n,height:r,x:o,y:s}}function Oy(e,t){const a=Nt(e),i=wa(e),n=a.visualViewport;let r=i.clientWidth,o=i.clientHeight,s=0,l=0;if(n){r=n.width,o=n.height;const d=Su();(!d||d&&t==="fixed")&&(s=n.offsetLeft,l=n.offsetTop)}return{width:r,height:o,x:s,y:l}}function xy(e,t){const a=vi(e,!0,t==="fixed"),i=a.top+e.clientTop,n=a.left+e.clientLeft,r=oa(e)?nn(e):Qa(1),o=e.clientWidth*r.x,s=e.clientHeight*r.y,l=n*r.x,d=i*r.y;return{width:o,height:s,x:l,y:d}}function D1(e,t,a){let i;if(t==="viewport")i=Oy(e,a);else if(t==="document")i=wy(wa(e));else if(ya(t))i=xy(t,a);else{const n=og(e);i={...t,x:t.x-n.x,y:t.y-n.y}}return ro(i)}function lg(e,t){const a=hn(e);return a===t||!ya(a)||wo(a)?!1:Zt(a).position==="fixed"||lg(a,t)}function By(e,t){const a=t.get(e);if(a)return a;let i=h0(e,[],!1).filter(s=>ya(s)&&Ka(s)!=="body"),n=null;const r=Zt(e).position==="fixed";let o=r?hn(e):e;for(;ya(o)&&!wo(o);){const s=Zt(o),l=Au(o);!l&&s.position==="fixed"&&(n=null),(r?!l&&!n:!l&&s.position==="static"&&n&&["absolute","fixed"].includes(n.position)||S0(o)&&!l&&lg(e,o))?i=i.filter(d=>d!==o):n=s,o=hn(o)}return t.set(e,i),i}function Cy(e){let{element:t,boundary:a,rootBoundary:i,strategy:n}=e;const r=[...a==="clippingAncestors"?By(t,this._c):[].concat(a),i],o=r[0],s=r.reduce((l,d)=>{const u=D1(t,d,n);return l.top=bi(u.top,l.top),l.right=ao(u.right,l.right),l.bottom=ao(u.bottom,l.bottom),l.left=bi(u.left,l.left),l},D1(t,o,n));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function My(e){return rg(e)}function Yy(e,t,a){const i=oa(t),n=wa(t),r=a==="fixed",o=vi(e,!0,r,t);let s={scrollLeft:0,scrollTop:0};const l=Qa(0);if(i||!i&&!r)if((Ka(t)!=="body"||S0(n))&&(s=Oo(t)),i){const d=vi(t,!0,r,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else n&&(l.x=sg(n));return{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function E1(e,t){return!oa(e)||Zt(e).position==="fixed"?null:t?t(e):e.offsetParent}function ug(e,t){const a=Nt(e);if(!oa(e))return a;let i=E1(e,t);for(;i&&Ay(i)&&Zt(i).position==="static";)i=E1(i,t);return i&&(Ka(i)==="html"||Ka(i)==="body"&&Zt(i).position==="static"&&!Au(i))?a:i||Sy(e)||a}const Ly=async function(e){let{reference:t,floating:a,strategy:i}=e;const n=this.getOffsetParent||ug,r=this.getDimensions;return{reference:Yy(t,await n(a),i),floating:{x:0,y:0,...await r(a)}}};function Zy(e){return Zt(e).direction==="rtl"}const Iy={convertOffsetParentRelativeRectToViewportRelativeRect:Ry,getDocumentElement:wa,getClippingRect:Cy,getOffsetParent:ug,getElementRects:Ly,getClientRects:Ny,getDimensions:My,getScale:nn,isElement:ya,isRTL:Zy};function jy(e,t){let a=null,i;const n=wa(e);function r(){clearTimeout(i),a&&a.disconnect(),a=null}function o(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),r();const{left:d,top:u,width:c,height:f}=e.getBoundingClientRect();if(s||t(),!c||!f)return;const h=G0(u),_=G0(n.clientWidth-(d+c)),m=G0(n.clientHeight-(u+f)),p=G0(d),T={rootMargin:-h+"px "+-_+"px "+-m+"px "+-p+"px",threshold:bi(0,ao(1,l))||1};let R=!0;function S(C){const j=C[0].intersectionRatio;if(j!==l){if(!R)return o();j?o(!1,j):i=setTimeout(()=>{o(!1,1e-7)},100)}R=!1}try{a=new IntersectionObserver(S,{...T,root:n.ownerDocument})}catch{a=new IntersectionObserver(S,T)}a.observe(e)}return o(!0),r}function Py(e,t,a,i){i===void 0&&(i={});const{ancestorScroll:n=!0,ancestorResize:r=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=i,d=ku(e),u=n||r?[...d?h0(d):[],...h0(t)]:[];u.forEach(T=>{n&&T.addEventListener("scroll",a,{passive:!0}),r&&T.addEventListener("resize",a)});const c=d&&s?jy(d,a):null;let f=-1,h=null;o&&(h=new ResizeObserver(T=>{let[R]=T;R&&R.target===d&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{h&&h.observe(t)})),a()}),d&&!l&&h.observe(d),h.observe(t));let _,m=l?vi(e):null;l&&p();function p(){const T=vi(e);m&&(T.x!==m.x||T.y!==m.y||T.width!==m.width||T.height!==m.height)&&a(),m=T,_=requestAnimationFrame(p)}return a(),()=>{u.forEach(T=>{n&&T.removeEventListener("scroll",a),r&&T.removeEventListener("resize",a)}),c&&c(),h&&h.disconnect(),h=null,l&&cancelAnimationFrame(_)}}const Gy=(e,t,a)=>{const i=new Map,n={platform:Iy,...a},r={...n.platform,_c:i};return py(e,t,{...n,platform:r})},Uy={name:"ChevronDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var qy=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon chevron-down-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},Hy=[],zy=de(Uy,qy,Hy,!1,null,null,null,null);const Vy=zy.exports,$y={name:"CloseIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Wy=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon close-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},Qy=[],Jy=de($y,Wy,Qy,!1,null,null,null,null);const xo=Jy.exports;const Ky={name:"NcEllipsisedOption",components:{NcHighlight:Ro},props:{name:{type:String,default:""},search:{type:String,default:""}},computed:{needsTruncate(){return this.name&&this.name.length>=10},split(){return this.name.length-Math.min(Math.floor(this.name.length/2),10)},part1(){return this.needsTruncate?this.name.slice(0,this.split):this.name},part2(){return this.needsTruncate?this.name.slice(this.split):""},highlight1(){return this.search?Kf(this.name,this.search):[]},highlight2(){return this.highlight1.map(e=>({start:e.start-this.split,end:e.end-this.split}))}}};var Xy=function(){var e=this,t=e._self._c;return t("span",{staticClass:"name-parts",attrs:{title:e.name}},[t("NcHighlight",{staticClass:"name-parts__first",attrs:{text:e.part1,search:e.search,highlight:e.highlight1}}),e.part2?t("NcHighlight",{staticClass:"name-parts__last",attrs:{text:e.part2,search:e.search,highlight:e.highlight2}}):e._e()],1)},e4=[],t4=de(Ky,Xy,e4,!1,null,"08c4259e",null,null);const a4=t4.exports;const i4=8,b1=32,n4={name:"NcListItemIcon",components:{NcAvatar:y0,NcHighlight:Ro,NcIconSvgWrapper:Sf},mixins:[Wf],props:{name:{type:String,required:!0},subname:{type:String,default:""},icon:{type:String,default:""},iconSvg:{type:String,default:""},iconName:{type:String,default:""},search:{type:String,default:""},avatarSize:{type:Number,default:b1},noMargin:{type:Boolean,default:!1},displayName:{type:String,default:null},isNoUser:{type:Boolean,default:!1},id:{type:String,default:null}},data(){return{margin:i4}},computed:{hasIcon(){return this.icon!==""},hasIconSvg(){return this.iconSvg!==""},isValidSubname(){var e,t;return((t=(e=this.subname)==null?void 0:e.trim)==null?void 0:t.call(e))!==""},isSizeBigEnough(){return this.avatarSize>=b1},cssVars(){const e=this.noMargin?0:this.margin;return{"--height":this.avatarSize+2*e+"px","--margin":this.margin+"px"}},searchParts(){const e=/^([^<]*)<([^>]+)>?$/,t=this.search.match(e);return this.isNoUser||!t?[this.search,this.search]:[t[1].trim(),t[2]]}},beforeMount(){!this.isNoUser&&!this.subname&&this.fetchUserStatus(this.user)}};var r4=function(){var e=this,t=e._self._c;return t("span",e._g({staticClass:"option",style:e.cssVars,attrs:{id:e.id}},e.$listeners),[t("NcAvatar",e._b({staticClass:"option__avatar",attrs:{"disable-menu":!0,"disable-tooltip":!0,"display-name":e.displayName||e.name,"is-no-user":e.isNoUser,size:e.avatarSize}},"NcAvatar",e.$attrs,!1)),t("div",{staticClass:"option__details"},[t("NcHighlight",{staticClass:"option__lineone",attrs:{text:e.name,search:e.searchParts[0]}}),e.isValidSubname&&e.isSizeBigEnough?t("NcHighlight",{staticClass:"option__linetwo",attrs:{text:e.subname,search:e.searchParts[1]}}):e.hasStatus?t("span",[t("span",[e._v(e._s(e.userStatus.icon))]),t("span",[e._v(e._s(e.userStatus.message))])]):e._e()],1),e._t("default",function(){return[e.hasIconSvg?t("NcIconSvgWrapper",{staticClass:"option__icon",attrs:{svg:e.iconSvg,name:e.iconName}}):e.hasIcon?t("span",{staticClass:"icon option__icon",class:e.icon,attrs:{"aria-label":e.iconName}}):e._e()]})],2)},o4=[],s4=de(n4,r4,o4,!1,null,"562c32c6",null,null);const l4=s4.exports,u4={name:"NcSelect",components:{ChevronDown:Vy,NcEllipsisedOption:a4,NcListItemIcon:l4,NcLoadingIcon:Il,VueSelect:P0.VueSelect},mixins:[ho],props:{...P0.VueSelect.props,ariaLabelClearSelected:{type:String,default:ie("Clear selected")},ariaLabelCombobox:{type:String,default:ie("Search for options")},ariaLabelDeselectOption:{type:Function,default:e=>ie("Deselect {option}",{option:e})},appendToBody:{type:Boolean,default:!0},calculatePosition:{type:Function,default:null},closeOnSelect:{type:Boolean,default:!0},components:{type:Object,default:()=>({Deselect:{render:e=>e(xo,{props:{size:20,fillColor:"var(--vs-controls-color)"},style:{cursor:"pointer"}})}})},limit:{type:Number,default:null},disabled:{type:Boolean,default:!1},dropdownShouldOpen:{type:Function,default:({noDrop:e,open:t})=>e?!1:t},filterBy:{type:Function,default:null},inputClass:{type:[String,Object],default:null},inputId:{type:String,default:null},keyboardFocusBorder:{type:Boolean,default:!0},label:{type:String,default:null},loading:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},noWrap:{type:Boolean,default:!1},options:{type:Array,default:()=>[]},placeholder:{type:String,default:""},mapKeydown:{type:Function,default(e,t){return{...e,27:a=>{t.open&&a.stopPropagation(),e[27](a)}}}},uid:{type:String,default:()=>"-"+_0()},placement:{type:String,default:"bottom"},resetFocusOnOptionsChange:{type:Boolean,default:!0},userSelect:{type:Boolean,default:!1},value:{type:[String,Number,Object,Array],default:null}," ":{}},emits:[" "],data(){return{search:""}},computed:{localCalculatePosition(){return this.calculatePosition!==null?this.calculatePosition:(e,t,{width:a})=>{e.style.width=a;const i={name:"addClass",fn(o){return e.classList.add("vs__dropdown-menu--floating"),{}}},n={name:"togglePlacementClass",fn({placement:o}){return t.$el.classList.toggle("select--drop-up",o==="top"),e.classList.toggle("vs__dropdown-menu--floating-placement-top",o==="top"),{}}},r=()=>{Gy(t.$refs.toggle,e,{placement:this.placement,middleware:[Ey(-1),i,n,Ty(),by({limiter:yy()})]}).then(({x:o,y:s})=>{Object.assign(e.style,{left:`${o}px`,top:`${s}px`})})};return Py(t.$refs.toggle,e,r)}},localFilterBy(){const e=/[^<]*<([^>]+)/;return this.filterBy!==null?this.filterBy:this.userSelect?(t,a,i)=>{var n,r,o;const s=i.match(e);return s&&((o=(r=(n=t.subname)==null?void 0:n.toLocaleLowerCase)==null?void 0:r.call(n))==null?void 0:o.indexOf(s[1].toLocaleLowerCase()))>-1||`${a} ${t.subname}`.toLocaleLowerCase().indexOf(i.toLocaleLowerCase())>-1}:P0.VueSelect.props.filterBy.default},localLabel(){return this.label!==null?this.label:this.userSelect?"displayName":P0.VueSelect.props.label.default},propsToForward(){const{inputClass:e,noWrap:t,placement:a,userSelect:i,...n}=this.$props;return{...n,calculatePosition:this.localCalculatePosition,filterBy:this.localFilterBy,label:this.localLabel}}}};var d4=function(){var e=this,t=e._self._c;return t("VueSelect",e._g(e._b({staticClass:"select",class:{"select--no-wrap":e.noWrap,"user-select":e.userSelect},on:{search:a=>e.search=a},scopedSlots:e._u([{key:"search",fn:function({attributes:a,events:i}){return[t("input",e._g(e._b({class:["vs__search",e.inputClass]},"input",a,!1),i))]}},{key:"open-indicator",fn:function({attributes:a}){return[t("ChevronDown",e._b({attrs:{"fill-color":"var(--vs-controls-color)",size:26}},"ChevronDown",a,!1))]}},{key:"option",fn:function(a){return[e.userSelect?t("NcListItemIcon",e._b({attrs:{"avatar-size":24,name:a[e.localLabel],search:e.search}},"NcListItemIcon",a,!1)):t("NcEllipsisedOption",{attrs:{name:String(a[e.localLabel]),search:e.search}})]}},{key:"selected-option",fn:function(a){return[e.userSelect?t("NcListItemIcon",e._b({attrs:{"avatar-size":24,name:a[e.localLabel],search:e.search}},"NcListItemIcon",a,!1)):t("NcEllipsisedOption",{attrs:{name:String(a[e.localLabel]),search:e.search}})]}},{key:"spinner",fn:function(a){return[a.loading?t("NcLoadingIcon"):e._e()]}},{key:"no-options",fn:function(){return[e._v(" "+e._s(e.t("No results"))+" ")]},proxy:!0},e._l(e.$scopedSlots,function(a,i){return{key:i,fn:function(n){return[e._t(i,null,null,n)]}}})],null,!0)},"VueSelect",e.propsToForward,!1),e.$listeners))},c4=[],h4=de(u4,d4,c4,!1,null,null,null,null);const Bo=h4.exports;const f4={name:"AlertCircleOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var g4=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon alert-circle-outline-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M11,15H13V17H11V15M11,7H13V13H11V7M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},_4=[],F4=de(f4,g4,_4,!1,null,null,null,null);const m4=F4.exports,p4={name:"CheckIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var T4=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon check-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},D4=[],E4=de(p4,T4,D4,!1,null,null,null,null);const b4=E4.exports,y4={name:"NcInputField",components:{NcButton:ai,AlertCircle:m4,Check:b4},inheritAttrs:!1,props:{value:{type:String,required:!0},type:{type:String,default:"text",validator:e=>["text","password","email","tel","url","search","number"].includes(e)},label:{type:String,default:void 0},labelOutside:{type:Boolean,default:!1},placeholder:{type:String,default:void 0},showTrailingButton:{type:Boolean,default:!1},trailingButtonLabel:{type:String,default:""},success:{type:Boolean,default:!1},error:{type:Boolean,default:!1},helperText:{type:String,default:""},disabled:{type:Boolean,default:!1},inputClass:{type:[Object,String],default:""}},emits:["update:value","trailing-button-click"],computed:{computedId(){return this.$attrs.id&&this.$attrs.id!==""?this.$attrs.id:this.inputName},inputName(){return"input"+_0()},hasLeadingIcon(){return this.$slots.default},hasTrailingIcon(){return this.success},hasPlaceholder(){return this.placeholder!==""&&this.placeholder!==void 0},computedPlaceholder(){return this.hasPlaceholder?this.placeholder:this.label},isValidLabel(){const e=this.label||this.labelOutside;return e||console.warn("You need to add a label to the NcInputField component. Either use the prop label or use an external one, as per the example in the documentation."),e},ariaDescribedby(){const e=[];return this.helperText.length>0&&e.push(`${this.inputName}-helper-text`),this.$attrs["aria-describedby"]&&e.push(this.$attrs["aria-describedby"]),e.join(" ")||null}},methods:{focus(){this.$refs.input.focus()},select(){this.$refs.input.select()},handleInput(e){this.$emit("update:value",e.target.value)},handleTrailingButtonClick(e){this.$emit("trailing-button-click",e)}}};var A4=function(){var e=this,t=e._self._c;return t("div",{staticClass:"input-field",class:{"input-field--disabled":e.disabled}},[t("div",{staticClass:"input-field__main-wrapper"},[t("input",e._g(e._b({ref:"input",staticClass:"input-field__input",class:[e.inputClass,{"input-field__input--trailing-icon":e.showTrailingButton||e.hasTrailingIcon,"input-field__input--leading-icon":e.hasLeadingIcon,"input-field__input--label-outside":e.labelOutside,"input-field__input--success":e.success,"input-field__input--error":e.error}],attrs:{id:e.computedId,type:e.type,disabled:e.disabled,placeholder:e.computedPlaceholder,"aria-describedby":e.ariaDescribedby,"aria-live":"polite"},domProps:{value:e.value},on:{input:e.handleInput}},"input",e.$attrs,!1),e.$listeners)),!e.labelOutside&&e.isValidLabel?t("label",{staticClass:"input-field__label",class:[{"input-field__label--trailing-icon":e.showTrailingButton||e.hasTrailingIcon,"input-field__label--leading-icon":e.hasLeadingIcon}],attrs:{for:e.computedId}},[e._v(" "+e._s(e.label)+" ")]):e._e(),t("div",{directives:[{name:"show",rawName:"v-show",value:e.hasLeadingIcon,expression:"hasLeadingIcon"}],staticClass:"input-field__icon input-field__icon--leading"},[e._t("default")],2),e.showTrailingButton?t("NcButton",{staticClass:"input-field__trailing-button",attrs:{type:"tertiary-no-background","aria-label":e.trailingButtonLabel,disabled:e.disabled},on:{click:e.handleTrailingButtonClick},scopedSlots:e._u([{key:"icon",fn:function(){return[e._t("trailing-button-icon")]},proxy:!0}],null,!0)}):e.success||e.error?t("div",{staticClass:"input-field__icon input-field__icon--trailing"},[e.success?t("Check",{staticStyle:{color:"var(--color-success-text)"},attrs:{size:20}}):e.error?t("AlertCircle",{staticStyle:{color:"var(--color-error-text)"},attrs:{size:20}}):e._e()],1):e._e()],1),e.helperText.length>0?t("p",{staticClass:"input-field__helper-text-message",class:{"input-field__helper-text-message--error":e.error,"input-field__helper-text-message--success":e.success},attrs:{id:`${e.inputName}-helper-text`}},[e.success?t("Check",{staticClass:"input-field__helper-text-message__icon",attrs:{size:18}}):e.error?t("AlertCircle",{staticClass:"input-field__helper-text-message__icon",attrs:{size:18}}):e._e(),e._v(" "+e._s(e.helperText)+" ")],1):e._e()])},S4=[],k4=de(y4,A4,S4,!1,null,"31a36009",null,null);const fn=k4.exports,v4={name:"UndoVariantIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var R4=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon undo-variant-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M13.5,7A6.5,6.5 0 0,1 20,13.5A6.5,6.5 0 0,1 13.5,20H10V18H13.5C16,18 18,16 18,13.5C18,11 16,9 13.5,9H7.83L10.91,12.09L9.5,13.5L4,8L9.5,2.5L10.92,3.91L7.83,7H13.5M6,18H8V20H6V18Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},N4=[],w4=de(v4,R4,N4,!1,null,null,null,null);const O4=w4.exports,x4=new Set(Object.keys(fn.props)),B4={name:"NcTextField",components:{NcInputField:fn,Close:xo,ArrowRight:gf,Undo:O4},inheritAttrs:!1,props:{" ":{},...fn.props,trailingButtonLabel:{type:String,default:ie("Clear text")},trailingButtonIcon:{type:String,default:"close",validator:e=>["close","arrowRight","undo"].includes(e)}},emits:["update:value"],computed:{propsAndAttrsToForward(){return{...this.$attrs,...Object.fromEntries(Object.entries(this.$props).filter(([e])=>x4.has(e)))}}},methods:{focus(){this.$refs.inputField.focus()},select(){this.$refs.inputField.select()},handleInput(e){this.$emit("update:value",e.target.value)}}};var C4=function(){var e=this,t=e._self._c;return t("NcInputField",e._g(e._b({ref:"inputField",on:{input:e.handleInput},scopedSlots:e._u([e.type!=="search"?{key:"trailing-button-icon",fn:function(){return[e.trailingButtonIcon==="close"?t("Close",{attrs:{size:20}}):e.trailingButtonIcon==="arrowRight"?t("ArrowRight",{attrs:{size:20}}):e.trailingButtonIcon==="undo"?t("Undo",{attrs:{size:20}}):e._e()]},proxy:!0}:null],null,!0)},"NcInputField",e.propsAndAttrsToForward,!1),e.$listeners),[e._t("default")],2)},M4=[],Y4=de(B4,C4,M4,!1,null,null,null,null);const L4=Y4.exports;const vu=e=>{e.mounted?Array.isArray(e.mounted)||(e.mounted=[e.mounted]):e.mounted=[],e.mounted.push(function(){this.$el.setAttribute("data-v-cfad8df","")})},Z4={name:"ChevronRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var I4=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon chevron-right-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},j4=[],P4=de(Z4,I4,j4,!1,null,null,null,null);const dg=P4.exports;function G4(e,t){let a,i,n=t,r;this.start=function(){r=!0,i=new Date,a=setTimeout(e,n)},this.pause=function(){r=!1,clearTimeout(a),n-=new Date-i},this.clear=function(){r=!1,clearTimeout(a),n=0},this.getTimeLeft=function(){return r&&(this.pause(),this.start()),n},this.getStateRunning=function(){return r},this.start()}const U4={name:"ChevronLeftIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var q4=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon chevron-left-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},H4=[],z4=de(U4,q4,H4,!1,null,null,null,null);const V4=z4.exports,$4={name:"PauseIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var W4=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon pause-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M14,19H18V5H14M6,19H10V5H6V19Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},Q4=[],J4=de($4,W4,Q4,!1,null,null,null,null);const K4=J4.exports,X4={name:"PlayIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var eA=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon play-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M8,5.14V19.14L19,12.14L8,5.14Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},tA=[],aA=de(X4,eA,tA,!1,null,null,null,null);const iA=aA.exports,nA={name:"NcModal",components:{NcActions:_u,ChevronLeft:V4,ChevronRight:dg,Close:xo,Pause:K4,Play:iA,NcButton:ai},directives:{tooltip:ff},mixins:[ho],props:{name:{type:String,default:""},hasPrevious:{type:Boolean,default:!1},hasNext:{type:Boolean,default:!1},outTransition:{type:Boolean,default:!1},enableSlideshow:{type:Boolean,default:!1},slideshowDelay:{type:Number,default:5e3},slideshowPaused:{type:Boolean,default:!1},enableSwipe:{type:Boolean,default:!0},spreadNavigation:{type:Boolean,default:!1},size:{type:String,default:"normal",validator:e=>["small","normal","large","full"].includes(e)},canClose:{type:Boolean,default:!0},closeOnClickOutside:{type:Boolean,default:!0},dark:{type:Boolean,default:!1},container:{type:[String,null],default:"body"},closeButtonContained:{type:Boolean,default:!0},additionalTrapElements:{type:Array,default:()=>[]},inlineActions:{type:Number,default:0},show:{type:Boolean,default:void 0}},emits:["previous","next","close","update:show"],data(){return{mc:null,playing:!1,slideshowTimeout:null,iconSize:24,focusTrap:null,randId:_0(),internalShow:!0}},computed:{showModal(){return this.show===void 0?this.internalShow:this.show},modalTransitionName(){return`modal-${this.outTransition?"out":"in"}`},playPauseName(){return this.playing?ie("Pause slideshow"):ie("Start slideshow")},cssVariables(){return{"--slideshow-duration":this.slideshowDelay+"ms","--icon-size":this.iconSize+"px"}},closeButtonAriaLabel(){return ie("Close modal")},prevButtonAriaLabel(){return ie("Previous")},nextButtonAriaLabel(){return ie("Next")}},watch:{slideshowPaused(e){this.slideshowTimeout&&(e?this.slideshowTimeout.pause():this.slideshowTimeout.start())},additionalTrapElements(e){if(this.focusTrap){const t=this.$refs.mask;this.focusTrap.updateContainerElements([t,...e])}}},beforeMount(){window.addEventListener("keydown",this.handleKeydown)},beforeDestroy(){window.removeEventListener("keydown",this.handleKeydown),this.mc.stop()},mounted(){this.useFocusTrap(),this.mc=Ef(this.$refs.mask,{onSwipeEnd:this.handleSwipe}),this.container&&(this.container==="body"?document.body.insertBefore(this.$el,document.body.lastChild):document.querySelector(this.container).appendChild(this.$el))},destroyed(){this.clearFocusTrap(),this.$el.remove()},methods:{previous(e){this.hasPrevious&&(e&&this.resetSlideshow(),this.$emit("previous",e))},next(e){this.hasNext&&(e&&this.resetSlideshow(),this.$emit("next",e))},close(e){this.canClose&&(this.internalShow=!1,this.$emit("update:show",!1),setTimeout(()=>{this.$emit("close",e)},300))},handleClickModalWrapper(e){this.closeOnClickOutside&&this.close(e)},handleKeydown(e){if(e.key==="Escape"){const a=rl();return a.length>0&&a[a.length-1]!==this.focusTrap?void 0:this.close(e)}const t={ArrowLeft:this.previous,ArrowRight:this.next};if(t[e.key])return document.activeElement&&!this.$el.contains(document.activeElement)?void 0:t[e.key](e)},handleSwipe(e,t){this.enableSwipe&&(t==="left"?this.next(e):t==="right"&&this.previous(e))},togglePlayPause(){this.playing=!this.playing,this.playing?this.handleSlideshow():this.clearSlideshowTimeout()},resetSlideshow(){this.playing=!this.playing,this.clearSlideshowTimeout(),this.$nextTick(function(){this.togglePlayPause()})},handleSlideshow(){this.playing=!0,this.hasNext?this.slideshowTimeout=new G4(()=>{this.next(),this.handleSlideshow()},this.slideshowDelay):(this.playing=!1,this.clearSlideshowTimeout())},clearSlideshowTimeout(){this.slideshowTimeout&&this.slideshowTimeout.clear()},async useFocusTrap(){if(!this.showModal||this.focusTrap)return;const e=this.$refs.mask;await this.$nextTick();const t={allowOutsideClick:!0,fallbackFocus:e,trapStack:rl(),escapeDeactivates:!1};this.focusTrap=Bf([e,...this.additionalTrapElements],t),this.focusTrap.activate()},clearFocusTrap(){var e;this.focusTrap&&((e=this.focusTrap)==null||e.deactivate(),this.focusTrap=null)}}};var rA=function(){var e=this,t=e._self._c;return t("transition",{attrs:{name:"fade",appear:""},on:{"after-enter":e.useFocusTrap,"before-leave":e.clearFocusTrap}},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.showModal,expression:"showModal"}],ref:"mask",staticClass:"modal-mask",class:{"modal-mask--dark":e.dark},style:e.cssVariables,attrs:{role:"dialog","aria-modal":"true","aria-labelledby":"modal-name-"+e.randId,"aria-describedby":"modal-description-"+e.randId,tabindex:"-1"}},[t("transition",{attrs:{name:"fade-visibility",appear:""}},[t("div",{staticClass:"modal-header"},[e.name.trim()!==""?t("h2",{staticClass:"modal-name",attrs:{id:"modal-name-"+e.randId}},[e._v(" "+e._s(e.name)+" ")]):e._e(),t("div",{staticClass:"icons-menu"},[e.hasNext&&e.enableSlideshow?t("button",{directives:[{name:"tooltip",rawName:"v-tooltip.auto",value:e.playPauseName,expression:"playPauseName",modifiers:{auto:!0}}],staticClass:"play-pause-icons",class:{"play-pause-icons--paused":e.slideshowPaused},attrs:{type:"button"},on:{click:e.togglePlayPause}},[e.playing?t("Pause",{staticClass:"play-pause-icons__pause",attrs:{size:e.iconSize}}):t("Play",{staticClass:"play-pause-icons__play",attrs:{size:e.iconSize}}),t("span",{staticClass:"hidden-visually"},[e._v(" "+e._s(e.playPauseName)+" ")]),e.playing?t("svg",{staticClass:"progress-ring",attrs:{height:"50",width:"50"}},[t("circle",{staticClass:"progress-ring__circle",attrs:{stroke:"white","stroke-width":"2",fill:"transparent",r:"15",cx:"25",cy:"25"}})]):e._e()],1):e._e(),t("NcActions",{staticClass:"header-actions",attrs:{inline:e.inlineActions}},[e._t("actions")],2),e.canClose&&!e.closeButtonContained?t("NcButton",{staticClass:"header-close",attrs:{"aria-label":e.closeButtonAriaLabel,type:"tertiary"},on:{click:e.close},scopedSlots:e._u([{key:"icon",fn:function(){return[t("Close",{attrs:{size:e.iconSize}})]},proxy:!0}],null,!1,1841713362)}):e._e()],1)])]),t("transition",{attrs:{name:e.modalTransitionName,appear:""}},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.showModal,expression:"showModal"}],staticClass:"modal-wrapper",class:[`modal-wrapper--${e.size}`,{"modal-wrapper--spread-navigation":e.spreadNavigation}],on:{mousedown:function(a){return a.target!==a.currentTarget?null:e.handleClickModalWrapper.apply(null,arguments)}}},[t("transition",{attrs:{name:"fade-visibility",appear:""}},[t("NcButton",{directives:[{name:"show",rawName:"v-show",value:e.hasPrevious,expression:"hasPrevious"}],staticClass:"prev",attrs:{type:"tertiary-no-background","aria-label":e.prevButtonAriaLabel},on:{click:e.previous},scopedSlots:e._u([{key:"icon",fn:function(){return[t("ChevronLeft",{attrs:{size:40}})]},proxy:!0}])})],1),t("div",{staticClass:"modal-container",attrs:{id:"modal-description-"+e.randId}},[e.canClose&&e.closeButtonContained?t("NcButton",{staticClass:"modal-container__close",attrs:{type:"tertiary","aria-label":e.closeButtonAriaLabel},on:{click:e.close},scopedSlots:e._u([{key:"icon",fn:function(){return[t("Close",{attrs:{size:20}})]},proxy:!0}],null,!1,2121748766)}):e._e(),t("div",{staticClass:"modal-container__content"},[e._t("default")],2)],1),t("transition",{attrs:{name:"fade-visibility",appear:""}},[t("NcButton",{directives:[{name:"show",rawName:"v-show",value:e.hasNext,expression:"hasNext"}],staticClass:"next",attrs:{type:"tertiary-no-background","aria-label":e.nextButtonAriaLabel},on:{click:e.next},scopedSlots:e._u([{key:"icon",fn:function(){return[t("ChevronRight",{attrs:{size:40}})]},proxy:!0}])})],1)],1)])],1)])},oA=[],sA=de(nA,rA,oA,!1,null,"45e668d9",null,null);const Ru=sA.exports;vu(Ru);const lA={name:"ArrowLeftIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var uA=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon arrow-left-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M20,11V13H8L13.5,18.5L12.08,19.92L4.16,12L12.08,4.08L13.5,5.5L8,11H20Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},dA=[],cA=de(lA,uA,dA,!1,null,null,null,null);const hA=cA.exports;window._vue_richtext_widgets||(window._vue_richtext_widgets={});const fA=e=>!!window._vue_richtext_widgets[e],gA=(e,t,a=i=>{})=>{if(window._vue_richtext_widgets[e]){console.error("Widget for id "+e+" already registered");return}window._vue_richtext_widgets[e]={id:e,callback:t,onDestroy:a}},_A=(e,{richObjectType:t,richObject:a,accessible:i})=>{if(t!=="open-graph"){if(!window._vue_richtext_widgets[t]){console.error("Widget for rich object type "+t+" not registered");return}window._vue_richtext_widgets[t].callback(e,{richObjectType:t,richObject:a,accessible:i})}},FA=(e,t)=>{e!=="open-graph"&&window._vue_richtext_widgets[e]&&window._vue_richtext_widgets[e].onDestroy(t)};window._registerWidget=gA;const mA={name:"NcReferenceWidget",props:{reference:{type:Object,required:!0}},data(){return{compact:3}},computed:{hasCustomWidget(){return fA(this.reference.richObjectType)},noAccess(){return this.reference&&!this.reference.accessible},descriptionStyle(){if(this.compact===0)return{display:"none"};const e=this.compact<4?this.compact:3;return{lineClamp:e,webkitLineClamp:e}},compactLink(){const e=this.reference.openGraphObject.link;return e?e.startsWith("https://")?e.substring(8):e.startsWith("http://")?e.substring(7):e:""}},mounted(){this.renderWidget(),this.observer=new ResizeObserver(e=>{e[0].contentRect.width<450?this.compact=0:e[0].contentRect.width<550?this.compact=1:e[0].contentRect.width<650?this.compact=2:this.compact=3}),this.observer.observe(this.$el)},beforeDestroy(){this.observer.disconnect(),FA(this.reference.richObjectType,this.$el)},methods:{renderWidget(){var e;this.$refs.customWidget&&(this.$refs.customWidget.innerHTML=""),((e=this==null?void 0:this.reference)==null?void 0:e.richObjectType)!=="open-graph"&&this.$nextTick(()=>{_A(this.$refs.customWidget,this.reference)})}}};var pA=function(){var e=this,t=e._self._c;return t("div",[e.reference&&e.hasCustomWidget?t("div",{staticClass:"widget-custom"},[t("div",{ref:"customWidget"})]):!e.noAccess&&e.reference&&e.reference.openGraphObject&&!e.hasCustomWidget?t("a",{staticClass:"widget-default",attrs:{href:e.reference.openGraphObject.link,rel:"noopener noreferrer",target:"_blank"}},[e.reference.openGraphObject.thumb?t("img",{staticClass:"widget-default--image",attrs:{src:e.reference.openGraphObject.thumb}}):e._e(),t("div",{staticClass:"widget-default--details"},[t("p",{staticClass:"widget-default--name"},[e._v(e._s(e.reference.openGraphObject.name))]),t("p",{staticClass:"widget-default--description",style:e.descriptionStyle},[e._v(e._s(e.reference.openGraphObject.description))]),t("p",{staticClass:"widget-default--link"},[e._v(e._s(e.compactLink))])])]):e._e()])},TA=[],DA=de(mA,pA,TA,!1,null,"b1c5a80f",null,null);const cg=DA.exports;window._vue_richtext_custom_picker_elements||(window._vue_richtext_custom_picker_elements={});const f0=e=>!!window._vue_richtext_custom_picker_elements[e],EA=e=>{var t;const a=(t=window._vue_richtext_custom_picker_elements[e])==null?void 0:t.size;return["small","normal","large","full"].includes(a)?a:null},bA=(e,t,a=n=>{},i="large")=>{if(window._vue_richtext_custom_picker_elements[e]){console.error("Custom reference picker element for id "+e+" already registered");return}window._vue_richtext_custom_picker_elements[e]={id:e,callback:t,onDestroy:a,size:i}},yA=(e,{providerId:t,accessible:a})=>{if(!window._vue_richtext_custom_picker_elements[t]){console.error("Custom reference picker element for reference provider ID "+t+" not registered");return}return window._vue_richtext_custom_picker_elements[t].callback(e,{providerId:t,accessible:a})},AA=(e,t,a)=>{window._vue_richtext_custom_picker_elements[e]&&window._vue_richtext_custom_picker_elements[e].onDestroy(t,a)};window._registerCustomPickerElement=bA;const SA={name:"NcCustomPickerElement",props:{provider:{type:Object,required:!0}},emits:["cancel","submit"],data(){return{isRegistered:f0(this.provider.id),renderResult:null}},mounted(){this.isRegistered&&this.renderElement()},beforeDestroy(){this.isRegistered&&AA(this.provider.id,this.$el,this.renderResult)},methods:{renderElement(){this.$refs.domElement&&(this.$refs.domElement.innerHTML="");const e=yA(this.$refs.domElement,{providerId:this.provider.id,accessible:!1});Promise.resolve(e).then(t=>{var a,i;this.renderResult=t,(a=this.renderResult.object)!=null&&a._isVue&&(i=this.renderResult.object)!=null&&i.$on&&(this.renderResult.object.$on("submit",this.onSubmit),this.renderResult.object.$on("cancel",this.onCancel)),this.renderResult.element.addEventListener("submit",n=>{this.onSubmit(n.detail)}),this.renderResult.element.addEventListener("cancel",this.onCancel)})},onSubmit(e){this.$emit("submit",e)},onCancel(){this.$emit("cancel")}}};var kA=function(){var e=this,t=e._self._c;return t("div",{ref:"domElement"})},vA=[],RA=de(SA,kA,vA,!1,null,"cf695ff9",null,null);const NA=RA.exports,wA="any-link",OA={id:wA,title:ie("Any link"),icon_url:$_("core","filetypes/link.svg")};window._vue_richtext_reference_providers||(window._vue_richtext_reference_providers=Is("core","reference-provider-list",[])),window._vue_richtext_reference_provider_timestamps||(window._vue_richtext_reference_provider_timestamps=Is("core","reference-provider-timestamps",{}));function xA(){return window._vue_richtext_reference_providers.filter(e=>{const t=!!e.search_providers_ids&&e.search_providers_ids.length>0||f0(e.id);return t||console.debug("[smart picker]",e.id,"reference provider is discoverable but does not have any related search provider or custom picker component registered"),t})}function BA(e){const t=window._vue_richtext_reference_provider_timestamps;return e.sort((a,i)=>a.order===i.order?0:a.order>i.order?1:-1).sort((a,i)=>{const n=t[a.id],r=t[i.id];return n===r?0:r===void 0?-1:n===void 0?1:n>r?-1:1})}function CA(e,t=null){const a=xA(),i=e.replace(/[/\-\\^$*+?.()|[\]{}]/g,"\\$&"),n=new RegExp(i,"i"),r=BA(a).filter(s=>s.title.match(n)),o=t?r.slice(0,t):r;return(e===""||o.length===0)&&o.push(OA),o}function MA(e){const t=Math.floor(Date.now()/1e3),a={timestamp:t},i=$a("references/provider/{providerId}",{providerId:e});Wa.put(i,a).then(n=>{window._vue_richtext_reference_provider_timestamps[e]=t})}let y1=0;function hg(e,t){return function(){const a=this,i=arguments;clearTimeout(y1),y1=setTimeout(function(){e.apply(a,i)},t||0)}}function Nu(e){try{return!!new URL(e)}catch{return!1}}const YA={name:"LinkVariantIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var LA=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon link-variant-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M10.59,13.41C11,13.8 11,14.44 10.59,14.83C10.2,15.22 9.56,15.22 9.17,14.83C7.22,12.88 7.22,9.71 9.17,7.76V7.76L12.71,4.22C14.66,2.27 17.83,2.27 19.78,4.22C21.73,6.17 21.73,9.34 19.78,11.29L18.29,12.78C18.3,11.96 18.17,11.14 17.89,10.36L18.36,9.88C19.54,8.71 19.54,6.81 18.36,5.64C17.19,4.46 15.29,4.46 14.12,5.64L10.59,9.17C9.41,10.34 9.41,12.24 10.59,13.41M13.41,9.17C13.8,8.78 14.44,8.78 14.83,9.17C16.78,11.12 16.78,14.29 14.83,16.24V16.24L11.29,19.78C9.34,21.73 6.17,21.73 4.22,19.78C2.27,17.83 2.27,14.66 4.22,12.71L5.71,11.22C5.7,12.04 5.83,12.86 6.11,13.65L5.64,14.12C4.46,15.29 4.46,17.19 5.64,18.36C6.81,19.54 8.71,19.54 9.88,18.36L13.41,14.83C14.59,13.66 14.59,11.76 13.41,10.59C13,10.2 13,9.56 13.41,9.17Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},ZA=[],IA=de(YA,LA,ZA,!1,null,null,null,null);const wu=IA.exports,jA={name:"NcProviderList",components:{NcSelect:Bo,NcHighlight:Ro,NcEmptyContent:hu,LinkVariantIcon:wu},emits:["select-provider","submit"],data(){return{selectedProvider:null,query:"",multiselectPlaceholder:ie("Select provider"),providerIconAlt:ie("Provider icon")}},computed:{options(){const e=[];return this.query!==""&&Nu(this.query)&&e.push({id:this.query,title:this.query,isLink:!0}),e.push(...CA(this.query)),e}},methods:{focus(){setTimeout(()=>{var e,t,a;(a=(t=(e=this.$refs["provider-select"])==null?void 0:e.$el)==null?void 0:t.querySelector("#provider-select-input"))==null||a.focus()},300)},onProviderSelected(e){e!==null&&(e.isLink?this.$emit("submit",e.title):this.$emit("select-provider",e),this.selectedProvider=null)},onSearch(e,t){this.query=e}}};var PA=function(){var e=this,t=e._self._c;return t("div",{staticClass:"provider-list"},[t("NcSelect",{ref:"provider-select",staticClass:"provider-list--select",attrs:{"input-id":"provider-select-input",label:"title",placeholder:e.multiselectPlaceholder,options:e.options,"append-to-body":!1,"clear-search-on-select":!0,"clear-search-on-blur":()=>!1,filterable:!1},on:{search:e.onSearch,input:e.onProviderSelected},scopedSlots:e._u([{key:"option",fn:function(a){return[a.isLink?t("div",{staticClass:"provider"},[t("LinkVariantIcon",{staticClass:"link-icon",attrs:{size:20}}),t("span",[e._v(e._s(a.title))])],1):t("div",{staticClass:"provider"},[t("img",{staticClass:"provider-icon",attrs:{src:a.icon_url,alt:e.providerIconAlt}}),t("NcHighlight",{staticClass:"option-text",attrs:{search:e.query,text:a.title}})],1)]}}]),model:{value:e.selectedProvider,callback:function(a){e.selectedProvider=a},expression:"selectedProvider"}}),t("NcEmptyContent",{staticClass:"provider-list--empty-content",scopedSlots:e._u([{key:"icon",fn:function(){return[t("LinkVariantIcon")]},proxy:!0}])})],1)},GA=[],UA=de(jA,PA,GA,!1,null,"9d850ea5",null,null);const qA=UA.exports,HA={name:"NcRawLinkInput",components:{LinkVariantIcon:wu,NcEmptyContent:hu,NcLoadingIcon:Il,NcReferenceWidget:cg,NcTextField:L4},props:{provider:{type:Object,required:!0}},emits:["submit"],data(){return{inputValue:"",loading:!1,reference:null,abortController:null,inputPlaceholder:ie("Enter link")}},computed:{isLinkValid(){return Nu(this.inputValue)}},methods:{focus(){var e;(e=this.$refs["url-input"].$el.getElementsByTagName("input")[0])==null||e.focus()},onSubmit(e){const t=e.target.value;this.isLinkValid&&this.$emit("submit",t)},onClear(){this.inputValue="",this.reference=null},onInput(){this.reference=null,this.abortController&&this.abortController.abort(),this.isLinkValid&&hg(()=>{this.updateReference()},500)()},updateReference(){this.loading=!0,this.abortController=new AbortController,Wa.get($a("references/resolve",2)+"?reference="+encodeURIComponent(this.inputValue),{signal:this.abortController.signal}).then(e=>{this.reference=e.data.ocs.data.references[this.inputValue]}).catch(e=>{console.error(e)}).then(()=>{this.loading=!1})}}};var zA=function(){var e=this,t=e._self._c;return t("div",{staticClass:"raw-link"},[t("div",{staticClass:"input-wrapper"},[t("NcTextField",{ref:"url-input",attrs:{value:e.inputValue,"show-trailing-button":e.inputValue!=="",label:e.inputPlaceholder},on:{"update:value":[function(a){e.inputValue=a},e.onInput],"trailing-button-click":e.onClear},nativeOn:{keyup:function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"enter",13,a.key,"Enter")?null:e.onSubmit.apply(null,arguments)}}},[e.loading?t("NcLoadingIcon",{attrs:{size:16}}):t("LinkVariantIcon",{attrs:{size:16}})],1)],1),e.reference!==null?t("NcReferenceWidget",{staticClass:"reference-widget",attrs:{reference:e.reference}}):t("NcEmptyContent",{staticClass:"raw-link--empty-content",scopedSlots:e._u([{key:"icon",fn:function(){return[e.provider.icon_url?t("img",{staticClass:"provider-icon",attrs:{src:e.provider.icon_url}}):t("LinkVariantIcon")]},proxy:!0}])})],1)},VA=[],$A=de(HA,zA,VA,!1,null,"d0ba247a",null,null);const WA=$A.exports,QA={name:"NcSearchResult",components:{NcHighlight:Ro},props:{entry:{type:Object,required:!0},query:{type:String,required:!0}}};var JA=function(){var e=this,t=e._self._c;return t("div",{staticClass:"result"},[e.entry.icon?t("div",{staticClass:"result--icon-class",class:{[e.entry.icon]:!0,rounded:e.entry.rounded}}):t("img",{staticClass:"result--image",class:{rounded:e.entry.rounded},attrs:{src:e.entry.thumbnailUrl}}),t("div",{staticClass:"result--content"},[t("span",{staticClass:"result--content--name"},[t("NcHighlight",{attrs:{search:e.query,text:e.entry.title}})],1),t("span",{staticClass:"result--content--subline"},[t("NcHighlight",{attrs:{search:e.query,text:e.entry.subline}})],1)])])},KA=[],XA=de(QA,JA,KA,!1,null,"7a394a58",null,null);const eS=XA.exports,A1=5,tS={name:"NcSearch",components:{LinkVariantIcon:wu,DotsHorizontalIcon:gu,NcEmptyContent:hu,NcSelect:Bo,NcSearchResult:eS},props:{provider:{type:Object,required:!0},showEmptyContent:{type:Boolean,default:!0},searchPlaceholder:{type:String,default:null}},emits:["submit"],data(){return{searchQuery:"",selectedResult:null,resultsBySearchProvider:{},searching:!1,searchingMoreOf:null,abortController:null,noOptionsText:ie("Start typing to search"),providerIconAlt:ie("Provider icon")}},computed:{mySearchPlaceholder(){return this.searchPlaceholder||ie("Search")},searchProviderIds(){return this.provider.search_providers_ids},options(){if(this.searchQuery==="")return[];const e=[];return Nu(this.searchQuery)&&e.push(this.rawLinkEntry),e.push(...this.formattedSearchResults),e},rawLinkEntry(){return{id:"rawLinkEntry",resourceUrl:this.searchQuery,isRawLink:!0}},formattedSearchResults(){const e=[];return this.searchProviderIds.forEach(t=>{if(this.resultsBySearchProvider[t].entries.length>0){(this.searchProviderIds.length>1||this.resultsBySearchProvider[t].entries.length>1)&&e.push({id:"groupTitle-"+t,name:this.resultsBySearchProvider[t].name,isCustomGroupTitle:!0,providerId:t});const a=this.resultsBySearchProvider[t].entries.map((i,n)=>({id:"provider-"+t+"-entry-"+n,...i}));e.push(...a),this.resultsBySearchProvider[t].isPaginated&&e.push({id:"moreOf-"+t,name:this.resultsBySearchProvider[t].name,isMore:!0,providerId:t,isLoading:this.searchingMoreOf===t})}}),e}},mounted(){this.resetResults()},beforeDestroy(){this.cancelSearchRequests()},methods:{t:ie,resetResults(){const e={};this.searchProviderIds.forEach(t=>{e[t]={entries:[]}}),this.resultsBySearchProvider=e},focus(){setTimeout(()=>{var e,t,a;(a=(t=(e=this.$refs["search-select"])==null?void 0:e.$el)==null?void 0:t.querySelector("#search-select-input"))==null||a.focus()},300)},cancelSearchRequests(){this.abortController&&this.abortController.abort()},onSearchInput(e,t){this.searchQuery=e,hg(()=>{this.updateSearch()},500)()},onSelectResultSelected(e){e!==null&&(e.resourceUrl?(this.cancelSearchRequests(),this.$emit("submit",e.resourceUrl)):e.isMore&&this.searchMoreOf(e.providerId).then(()=>{this.selectedResult=null}))},searchMoreOf(e){return this.searchingMoreOf=e,this.cancelSearchRequests(),this.searchProviders(e)},updateSearch(){if(this.cancelSearchRequests(),this.resetResults(),this.searchQuery===""){this.searching=!1;return}return this.searchProviders()},searchProviders(e=null){var t,a;this.abortController=new AbortController,this.searching=!0;const i=e===null?[...this.searchProviderIds].map(n=>this.searchOneProvider(n)):[this.searchOneProvider(e,(a=(t=this.resultsBySearchProvider[e])==null?void 0:t.cursor)!=null?a:null)];return Promise.allSettled(i).then(n=>{n.find(r=>r.status==="rejected"&&(r.reason.name==="CanceledError"||r.reason.code==="ERR_CANCELED"))||(this.searching=!1,this.searchingMoreOf=null)})},searchOneProvider(e,t=null){const a=t===null?$a("search/providers/{providerId}/search?term={term}&limit={limit}",{providerId:e,term:this.searchQuery,limit:A1}):$a("search/providers/{providerId}/search?term={term}&limit={limit}&cursor={cursor}",{providerId:e,term:this.searchQuery,limit:A1,cursor:t});return Wa.get(a,{signal:this.abortController.signal}).then(i=>{const n=i.data.ocs.data;this.resultsBySearchProvider[e].name=n.name,this.resultsBySearchProvider[e].cursor=n.cursor,this.resultsBySearchProvider[e].isPaginated=n.isPaginated,this.resultsBySearchProvider[e].entries.push(...n.entries)})}}};var aS=function(){var e=this,t=e._self._c;return t("div",{staticClass:"smart-picker-search",class:{"with-empty-content":e.showEmptyContent}},[t("NcSelect",{ref:"search-select",staticClass:"smart-picker-search--select",attrs:{"input-id":"search-select-input",label:"name",placeholder:e.mySearchPlaceholder,options:e.options,"append-to-body":!1,"close-on-select":!1,"clear-search-on-select":!1,"clear-search-on-blur":()=>!1,"reset-focus-on-options-change":!1,filterable:!1,autoscroll:!0,"reset-on-options-change":!1,loading:e.searching},on:{search:e.onSearchInput,input:e.onSelectResultSelected},scopedSlots:e._u([{key:"option",fn:function(a){return[a.isRawLink?t("div",{staticClass:"custom-option"},[t("LinkVariantIcon",{staticClass:"option-simple-icon",attrs:{size:20}}),t("span",{staticClass:"option-text"},[e._v(" "+e._s(e.t("Raw link {options}",{options:a.resourceUrl}))+" ")])],1):a.resourceUrl?t("NcSearchResult",{staticClass:"search-result",attrs:{entry:a,query:e.searchQuery}}):a.isCustomGroupTitle?t("span",{staticClass:"custom-option group-name"},[e.provider.icon_url?t("img",{staticClass:"provider-icon group-name-icon",attrs:{src:e.provider.icon_url}}):e._e(),t("span",{staticClass:"option-text"},[t("strong",[e._v(e._s(a.name))])])]):a.isMore?t("span",{class:{"custom-option":!0}},[a.isLoading?t("span",{staticClass:"option-simple-icon icon-loading-small"}):t("DotsHorizontalIcon",{staticClass:"option-simple-icon",attrs:{size:20}}),t("span",{staticClass:"option-text"},[e._v(" "+e._s(e.t('Load more "{options}"',{options:a.name}))+" ")])],1):e._e()]}},{key:"no-options",fn:function(){return[e._v(" "+e._s(e.noOptionsText)+" ")]},proxy:!0}]),model:{value:e.selectedResult,callback:function(a){e.selectedResult=a},expression:"selectedResult"}}),e.showEmptyContent?t("NcEmptyContent",{staticClass:"smart-picker-search--empty-content",scopedSlots:e._u([{key:"icon",fn:function(){return[e.provider.icon_url?t("img",{staticClass:"provider-icon",attrs:{alt:e.providerIconAlt,src:e.provider.icon_url}}):t("LinkVariantIcon")]},proxy:!0}],null,!1,2922132592)}):e._e()],1)},iS=[],nS=de(tS,aS,iS,!1,null,"97d196f0",null,null);const rS=nS.exports,Rn={providerList:1,standardLinkInput:2,searchInput:3,customElement:4},oS={name:"NcReferencePicker",components:{NcCustomPickerElement:NA,NcProviderList:qA,NcRawLinkInput:WA,NcSearch:rS},props:{initialProvider:{type:Object,default:()=>null},width:{type:Number,default:null},focusOnCreate:{type:Boolean,default:!0}},emits:["cancel","cancel-raw-link","cancel-search","provider-selected","submit"],data(){return{MODES:Rn,selectedProvider:this.initialProvider}},computed:{mode(){return this.selectedProvider===null?Rn.providerList:f0(this.selectedProvider.id)?Rn.customElement:this.selectedProvider.search_providers_ids?Rn.searchInput:Rn.standardLinkInput},pickerWrapperStyle(){return{width:this.width?this.width+"px":void 0}}},mounted(){this.focusOnCreate&&(this.initialProvider?setTimeout(()=>{var e;(e=this.$refs["url-input"])==null||e.focus()},300):this.$nextTick(()=>{var e;(e=this.$refs["provider-list"])==null||e.focus()}))},methods:{onEscapePressed(){this.selectedProvider!==null?this.deselectProvider():this.cancelProviderSelection()},onProviderSelected(e){this.selectedProvider=e,this.$emit("provider-selected",e),this.$nextTick(()=>{var t;(t=this.$refs["url-input"])==null||t.focus()})},cancelCustomElement(){this.deselectProvider()},cancelSearch(){var e;this.$emit("cancel-search",(e=this.selectedProvider)==null?void 0:e.title),this.deselectProvider()},cancelRawLinkInput(){var e;this.$emit("cancel-raw-link",(e=this.selectedProvider)==null?void 0:e.title),this.deselectProvider()},cancelProviderSelection(){this.$emit("cancel")},submitLink(e){this.selectedProvider!==null&&MA(this.selectedProvider.id),this.$emit("submit",e),this.deselectProvider()},deselectProvider(){this.selectedProvider=null,this.$emit("provider-selected",null),setTimeout(()=>{var e;(e=this.$refs["provider-list"])==null||e.focus()},300)}}};var sS=function(){var e=this,t=e._self._c;return t("div",{staticClass:"reference-picker",style:e.pickerWrapperStyle,attrs:{tabindex:"-1"},on:{keydown:function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"esc",27,a.key,["Esc","Escape"])?null:(a.stopPropagation(),a.preventDefault(),e.onEscapePressed.apply(null,arguments))}}},[e.mode===e.MODES.providerList?t("NcProviderList",{ref:"provider-list",on:{"select-provider":e.onProviderSelected,submit:e.submitLink,cancel:e.cancelProviderSelection}}):e.mode===e.MODES.standardLinkInput?t("NcRawLinkInput",{ref:"url-input",attrs:{provider:e.selectedProvider},on:{submit:e.submitLink,cancel:e.cancelRawLinkInput}}):e.mode===e.MODES.searchInput?t("NcSearch",{ref:"url-input",attrs:{provider:e.selectedProvider},on:{cancel:e.cancelSearch,submit:e.submitLink}}):e.mode===e.MODES.customElement?t("div",{staticClass:"custom-element-wrapper"},[t("NcCustomPickerElement",{attrs:{provider:e.selectedProvider},on:{submit:e.submitLink,cancel:e.cancelCustomElement}})],1):e._e()],1)},lS=[],uS=de(oS,sS,lS,!1,null,"aa77d0d3",null,null);const dS=uS.exports,cS={name:"NcReferencePickerModal",components:{NcReferencePicker:dS,NcModal:Ru,NcButton:ai,ArrowLeftIcon:hA,CloseIcon:xo},props:{initialProvider:{type:Object,default:()=>null},focusOnCreate:{type:Boolean,default:!0},isInsideViewer:{type:Boolean,default:!1}},emits:["cancel","submit"],data(){return{show:!0,selectedProvider:this.initialProvider,backButtonTitle:ie("Back to provider selection"),closeButtonTitle:ie("Close"),closeButtonLabel:ie("Close Smart Picker")}},computed:{isProviderSelected(){return this.selectedProvider!==null},showBackButton(){return this.initialProvider===null&&this.isProviderSelected},modalSize(){var e;return this.isProviderSelected&&f0(this.selectedProvider.id)?(e=EA(this.selectedProvider.id))!=null?e:"large":"normal"},showModalName(){return!this.isProviderSelected||!f0(this.selectedProvider.id)},modalName(){return this.isProviderSelected?this.selectedProvider.title:ie("Smart Picker")}},mounted(){if(this.isInsideViewer){const e=this.$refs.modal_content;pr("viewer:trapElements:changed",e)}},methods:{onCancel(){this.show=!1,this.$emit("cancel")},onSubmit(e){this.show=!1,this.$emit("submit",e)},onProviderSelect(e){this.selectedProvider=e,e===null&&this.initialProvider!==null&&this.onCancel()},onBackClicked(){this.$refs.referencePicker.deselectProvider()}}};var hS=function(){var e=this,t=e._self._c;return e.show?t("NcModal",{staticClass:"reference-picker-modal",attrs:{size:e.modalSize,"can-close":!1},on:{close:e.onCancel}},[t("div",{ref:"modal_content",staticClass:"reference-picker-modal--content"},[e.showBackButton?t("NcButton",{staticClass:"back-button",attrs:{"aria-label":e.backButtonTitle,title:e.backButtonTitle},on:{click:e.onBackClicked},scopedSlots:e._u([{key:"icon",fn:function(){return[t("ArrowLeftIcon")]},proxy:!0}],null,!1,3001860362)}):e._e(),t("NcButton",{staticClass:"close-button",attrs:{"aria-label":e.closeButtonLabel,title:e.closeButtonTitle,type:"tertiary"},on:{click:e.onCancel},scopedSlots:e._u([{key:"icon",fn:function(){return[t("CloseIcon")]},proxy:!0}],null,!1,2491825086)}),e.showModalName?t("h2",[e._v(" "+e._s(e.modalName)+" ")]):e._e(),t("NcReferencePicker",{ref:"referencePicker",attrs:{"initial-provider":e.initialProvider,"focus-on-create":e.focusOnCreate},on:{"provider-selected":e.onProviderSelect,submit:e.onSubmit,cancel:e.onCancel}})],1)]):e._e()},fS=[],gS=de(cS,hS,fS,!1,null,"3f1a4ac7",null,null);const g7=gS.exports;const Ou=function(e){if(e==null)return pS;if(typeof e=="function")return Co(e);if(typeof e=="object")return Array.isArray(e)?_S(e):FS(e);if(typeof e=="string")return mS(e);throw new Error("Expected function, string, or object as test")};function _S(e){const t=[];let a=-1;for(;++a":""))+")"})}return f;function f(){let h=fg,_,m,p;if((!t||r(l,d,u[u.length-1]||void 0))&&(h=ES(a(l,u)),h[0]===S1))return h;if("children"in l&&l.children){const T=l;if(T.children&&h[0]!==gg)for(m=(i?T.children.length:-1)+o,p=u.concat(T);m>-1&&m"u"||lr.call(e,i)},O1=function(e,t){v1&&t.name==="__proto__"?v1(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},x1=function(e,t){if(t==="__proto__")if(lr.call(e,t)){if(R1)return R1(e,t).value}else return;return e[t]},bS=function e(){var t,a,i,n,r,o,s=arguments[0],l=1,d=arguments.length,u=!1;for(typeof s=="boolean"&&(u=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});lo.length;let l;s&&o.push(n);try{l=e.apply(this,o)}catch(d){const u=d;if(s&&a)throw u;return n(u)}s||(l instanceof Promise?l.then(r,n):l instanceof Error?n(l):r(l))}function n(o,...s){a||(a=!0,t(o,...s))}function r(o){n(null,o)}}function $n(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?B1(e.position):"start"in e||"end"in e?B1(e):"line"in e||"column"in e?Fl(e):""}function Fl(e){return C1(e&&e.line)+":"+C1(e&&e.column)}function B1(e){return Fl(e&&e.start)+"-"+Fl(e&&e.end)}function C1(e){return e&&typeof e=="number"?e:1}class _t extends Error{constructor(t,a,i){super(),typeof a=="string"&&(i=a,a=void 0);let n="",r={},o=!1;if(a&&("line"in a&&"column"in a?r={place:a}:"start"in a&&"end"in a?r={place:a}:"type"in a?r={ancestors:[a],place:a.position}:r={...a}),typeof t=="string"?n=t:!r.cause&&t&&(o=!0,n=t.message,r.cause=t),!r.ruleId&&!r.source&&typeof i=="string"){const l=i.indexOf(":");l===-1?r.ruleId=i:(r.source=i.slice(0,l),r.ruleId=i.slice(l+1))}if(!r.place&&r.ancestors&&r.ancestors){const l=r.ancestors[r.ancestors.length-1];l&&(r.place=l.position)}const s=r.place&&"start"in r.place?r.place.start:r.place;this.ancestors=r.ancestors||void 0,this.cause=r.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=n,this.line=s?s.line:void 0,this.name=$n(r.place)||"1:1",this.place=r.place||void 0,this.reason=this.message,this.ruleId=r.ruleId||void 0,this.source=r.source||void 0,this.stack=o&&r.cause&&typeof r.cause.stack=="string"?r.cause.stack:"",this.actual,this.expected,this.note,this.url}}_t.prototype.file="",_t.prototype.name="",_t.prototype.reason="",_t.prototype.message="",_t.prototype.stack="",_t.prototype.column=void 0,_t.prototype.line=void 0,_t.prototype.ancestors=void 0,_t.prototype.cause=void 0,_t.prototype.fatal=void 0,_t.prototype.place=void 0,_t.prototype.ruleId=void 0,_t.prototype.source=void 0;const Kt={basename:SS,dirname:kS,extname:vS,join:RS,sep:"/"};function SS(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');k0(e);let a=0,i=-1,n=e.length,r;if(t===void 0||t.length===0||t.length>e.length){for(;n--;)if(e.codePointAt(n)===47){if(r){a=n+1;break}}else i<0&&(r=!0,i=n+1);return i<0?"":e.slice(a,i)}if(t===e)return"";let o=-1,s=t.length-1;for(;n--;)if(e.codePointAt(n)===47){if(r){a=n+1;break}}else o<0&&(r=!0,o=n+1),s>-1&&(e.codePointAt(n)===t.codePointAt(s--)?s<0&&(i=n):(s=-1,i=o));return a===i?i=o:i<0&&(i=e.length),e.slice(a,i)}function kS(e){if(k0(e),e.length===0)return".";let t=-1,a=e.length,i;for(;--a;)if(e.codePointAt(a)===47){if(i){t=a;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function vS(e){k0(e);let t=e.length,a=-1,i=0,n=-1,r=0,o;for(;t--;){const s=e.codePointAt(t);if(s===47){if(o){i=t+1;break}continue}a<0&&(o=!0,a=t+1),s===46?n<0?n=t:r!==1&&(r=1):n>-1&&(r=-1)}return n<0||a<0||r===0||r===1&&n===a-1&&n===i+1?"":e.slice(n,a)}function RS(...e){let t=-1,a;for(;++t0&&e.codePointAt(e.length-1)===47&&(a+="/"),t?"/"+a:a}function wS(e,t){let a="",i=0,n=-1,r=0,o=-1,s,l;for(;++o<=e.length;){if(o2){if(l=a.lastIndexOf("/"),l!==a.length-1){l<0?(a="",i=0):(a=a.slice(0,l),i=a.length-1-a.lastIndexOf("/")),n=o,r=0;continue}}else if(a.length>0){a="",i=0,n=o,r=0;continue}}t&&(a=a.length>0?a+"/..":"..",i=2)}else a.length>0?a+="/"+e.slice(n+1,o):a=e.slice(n+1,o),i=o-n-1;n=o,r=0}else s===46&&r>-1?r++:r=-1}return a}function k0(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const OS={cwd:xS};function xS(){return"/"}function ml(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function BS(e){if(typeof e=="string")e=new URL(e);else if(!ml(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return CS(e)}function CS(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let a=-1;for(;++a0){let[h,..._]=u;const m=i[f][1];_l(m)&&_l(h)&&(h=_s(!0,m,h)),i[f]=[d,h,..._]}}}}const IS=new xu().freeze();function Ts(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Ds(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Es(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Y1(e){if(!_l(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function L1(e,t,a){if(!a)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function U0(e){return jS(e)?e:new MS(e)}function jS(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function PS(e){return typeof e=="string"||GS(e)}function GS(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const US={};function qS(e,t){const a=t||US,i=typeof a.includeImageAlt=="boolean"?a.includeImageAlt:!0,n=typeof a.includeHtml=="boolean"?a.includeHtml:!0;return mg(e,i,n)}function mg(e,t,a){if(HS(e)){if("value"in e)return e.type==="html"&&!a?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Z1(e.children,t,a)}return Array.isArray(e)?Z1(e,t,a):""}function Z1(e,t,a){const i=[];let n=-1;for(;++nn?0:n+t:t=t>n?n:t,a=a>0?a:0,i.length<1e4)o=Array.from(i),o.unshift(t,a),e.splice(...o);else for(a&&e.splice(t,a);r0?(sa(e,e.length,0,t),e):t}const j1={}.hasOwnProperty;function zS(e){const t={};let a=-1;for(;++a13&&a<32||a>126&&a<160||a>55295&&a<57344||a>64975&&a<65008||(a&65535)===65535||(a&65535)===65534||a>1114111?"�":String.fromCodePoint(a)}function rn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const WS=ri(/\p{P}/u),aa=ri(/[A-Za-z]/),vt=ri(/[\dA-Za-z]/),QS=ri(/[#-'*+\--9=?A-Z^-~]/);function pl(e){return e!==null&&(e<32||e===127)}const Tl=ri(/\d/),JS=ri(/[\dA-Fa-f]/),Tg=ri(/[!-/:-@[-`{-~]/);function pe(e){return e!==null&&e<-2}function Dt(e){return e!==null&&(e<0||e===32)}function Me(e){return e===-2||e===-1||e===32}function KS(e){return Tg(e)||WS(e)}const XS=ri(/\s/);function ri(e){return t;function t(a){return a!==null&&a>-1&&e.test(String.fromCharCode(a))}}function yn(e){const t=[];let a=-1,i=0,n=0;for(;++a55295&&r<57344){const s=e.charCodeAt(a+1);r<56320&&s>56319&&s<57344?(o=String.fromCharCode(r,s),n=1):o="�"}else o=String.fromCharCode(r);o&&(t.push(e.slice(i,a),encodeURIComponent(o)),i=a+n+1,o=""),n&&(a+=n,n=0)}return t.join("")+e.slice(i)}function Pe(e,t,a,i){const n=i?i-1:Number.POSITIVE_INFINITY;let r=0;return o;function o(l){return Me(l)?(e.enter(a),s(l)):t(l)}function s(l){return Me(l)&&r++o))return;const I=t.events.length;let M=I,P,g;for(;M--;)if(t.events[M][0]==="exit"&&t.events[M][1].type==="chunkFlow"){if(P){g=t.events[M][1].end;break}P=!0}for(T(i),E=I;ES;){const j=a[C];t.containerState=j[1],j[0].exit.call(t,e)}a.length=S}function R(){n.write([null]),r=void 0,n=void 0,t.containerState._closeFlow=void 0}}function n6(e,t,a){return Pe(e,e.attempt(this.parser.constructs.document,t,a),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function G1(e){if(e===null||Dt(e)||XS(e))return 1;if(KS(e))return 2}function Cu(e,t,a){const i=[];let n=-1;for(;++n1&&e[a][1].end.offset-e[a][1].start.offset>1?2:1;const c=Object.assign({},e[i][1].end),f=Object.assign({},e[a][1].start);U1(c,-l),U1(f,l),o={type:l>1?"strongSequence":"emphasisSequence",start:c,end:Object.assign({},e[i][1].end)},s={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[a][1].start),end:f},r={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[i][1].end),end:Object.assign({},e[a][1].start)},n={type:l>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},s.end)},e[i][1].end=Object.assign({},o.start),e[a][1].start=Object.assign({},s.end),d=[],e[i][1].end.offset-e[i][1].start.offset&&(d=Ct(d,[["enter",e[i][1],t],["exit",e[i][1],t]])),d=Ct(d,[["enter",n,t],["enter",o,t],["exit",o,t],["enter",r,t]]),d=Ct(d,Cu(t.parser.constructs.insideSpan.null,e.slice(i+1,a),t)),d=Ct(d,[["exit",r,t],["enter",s,t],["exit",s,t],["exit",n,t]]),e[a][1].end.offset-e[a][1].start.offset?(u=2,d=Ct(d,[["enter",e[a][1],t],["exit",e[a][1],t]])):u=0,sa(e,i-1,a-i+3,d),a=i+d.length-u-2;break}}for(a=-1;++a0&&Me(E)?Pe(e,R,"linePrefix",r+1)(E):R(E)}function R(E){return E===null||pe(E)?e.check(q1,m,C)(E):(e.enter("codeFlowValue"),S(E))}function S(E){return E===null||pe(E)?(e.exit("codeFlowValue"),R(E)):(e.consume(E),S)}function C(E){return e.exit("codeFenced"),t(E)}function j(E,I,M){let P=0;return g;function g(Z){return E.enter("lineEnding"),E.consume(Z),E.exit("lineEnding"),D}function D(Z){return E.enter("codeFencedFence"),Me(Z)?Pe(E,k,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Z):k(Z)}function k(Z){return Z===s?(E.enter("codeFencedFenceSequence"),x(Z)):M(Z)}function x(Z){return Z===s?(P++,E.consume(Z),x):P>=o?(E.exit("codeFencedFenceSequence"),Me(Z)?Pe(E,L,"whitespace")(Z):L(Z)):M(Z)}function L(Z){return Z===null||pe(Z)?(E.exit("codeFencedFence"),I(Z)):M(Z)}}}function F6(e,t,a){const i=this;return n;function n(o){return o===null?a(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),r)}function r(o){return i.parser.lazy[i.now().line]?a(o):t(o)}}const bs={name:"codeIndented",tokenize:p6},m6={tokenize:T6,partial:!0};function p6(e,t,a){const i=this;return n;function n(d){return e.enter("codeIndented"),Pe(e,r,"linePrefix",4+1)(d)}function r(d){const u=i.events[i.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?o(d):a(d)}function o(d){return d===null?l(d):pe(d)?e.attempt(m6,o,l)(d):(e.enter("codeFlowValue"),s(d))}function s(d){return d===null||pe(d)?(e.exit("codeFlowValue"),o(d)):(e.consume(d),s)}function l(d){return e.exit("codeIndented"),t(d)}}function T6(e,t,a){const i=this;return n;function n(o){return i.parser.lazy[i.now().line]?a(o):pe(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n):Pe(e,r,"linePrefix",4+1)(o)}function r(o){const s=i.events[i.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):pe(o)?n(o):a(o)}}const D6={name:"codeText",tokenize:y6,resolve:E6,previous:b6};function E6(e){let t=e.length-4,a=3,i,n;if((e[a][1].type==="lineEnding"||e[a][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=a;++i=4?t(o):e.interrupt(i.parser.constructs.flow,a,t)(o)}}function Ag(e,t,a,i,n,r,o,s,l){const d=l||Number.POSITIVE_INFINITY;let u=0;return c;function c(T){return T===60?(e.enter(i),e.enter(n),e.enter(r),e.consume(T),e.exit(r),f):T===null||T===32||T===41||pl(T)?a(T):(e.enter(i),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),m(T))}function f(T){return T===62?(e.enter(r),e.consume(T),e.exit(r),e.exit(n),e.exit(i),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(T))}function h(T){return T===62?(e.exit("chunkString"),e.exit(s),f(T)):T===null||T===60||pe(T)?a(T):(e.consume(T),T===92?_:h)}function _(T){return T===60||T===62||T===92?(e.consume(T),h):h(T)}function m(T){return!u&&(T===null||T===41||Dt(T))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(i),t(T)):u999||h===null||h===91||h===93&&!l||h===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?a(h):h===93?(e.exit(r),e.enter(n),e.consume(h),e.exit(n),e.exit(i),t):pe(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===null||h===91||h===93||pe(h)||s++>999?(e.exit("chunkString"),u(h)):(e.consume(h),l||(l=!Me(h)),h===92?f:c)}function f(h){return h===91||h===92||h===93?(e.consume(h),s++,c):c(h)}}function kg(e,t,a,i,n,r){let o;return s;function s(f){return f===34||f===39||f===40?(e.enter(i),e.enter(n),e.consume(f),e.exit(n),o=f===40?41:f,l):a(f)}function l(f){return f===o?(e.enter(n),e.consume(f),e.exit(n),e.exit(i),t):(e.enter(r),d(f))}function d(f){return f===o?(e.exit(r),l(o)):f===null?a(f):pe(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Pe(e,d,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(f))}function u(f){return f===o||f===null||pe(f)?(e.exit("chunkString"),d(f)):(e.consume(f),f===92?c:u)}function c(f){return f===o||f===92?(e.consume(f),u):u(f)}}function Wn(e,t){let a;return i;function i(n){return pe(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),a=!0,i):Me(n)?Pe(e,i,a?"linePrefix":"lineSuffix")(n):t(n)}}const w6={name:"definition",tokenize:x6},O6={tokenize:B6,partial:!0};function x6(e,t,a){const i=this;let n;return r;function r(h){return e.enter("definition"),o(h)}function o(h){return Sg.call(i,e,s,a,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function s(h){return n=rn(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):a(h)}function l(h){return Dt(h)?Wn(e,d)(h):d(h)}function d(h){return Ag(e,u,a,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function u(h){return e.attempt(O6,c,c)(h)}function c(h){return Me(h)?Pe(e,f,"whitespace")(h):f(h)}function f(h){return h===null||pe(h)?(e.exit("definition"),i.parser.defined.push(n),t(h)):a(h)}}function B6(e,t,a){return i;function i(s){return Dt(s)?Wn(e,n)(s):a(s)}function n(s){return kg(e,r,a,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function r(s){return Me(s)?Pe(e,o,"whitespace")(s):o(s)}function o(s){return s===null||pe(s)?t(s):a(s)}}const C6={name:"hardBreakEscape",tokenize:M6};function M6(e,t,a){return i;function i(r){return e.enter("hardBreakEscape"),e.consume(r),n}function n(r){return pe(r)?(e.exit("hardBreakEscape"),t(r)):a(r)}}const Y6={name:"headingAtx",tokenize:Z6,resolve:L6};function L6(e,t){let a=e.length-2,i=3,n,r;return e[i][1].type==="whitespace"&&(i+=2),a-2>i&&e[a][1].type==="whitespace"&&(a-=2),e[a][1].type==="atxHeadingSequence"&&(i===a-1||a-4>i&&e[a-2][1].type==="whitespace")&&(a-=i+1===a?2:4),a>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[a][1].end},r={type:"chunkText",start:e[i][1].start,end:e[a][1].end,contentType:"text"},sa(e,i,a-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e}function Z6(e,t,a){let i=0;return n;function n(u){return e.enter("atxHeading"),r(u)}function r(u){return e.enter("atxHeadingSequence"),o(u)}function o(u){return u===35&&i++<6?(e.consume(u),o):u===null||Dt(u)?(e.exit("atxHeadingSequence"),s(u)):a(u)}function s(u){return u===35?(e.enter("atxHeadingSequence"),l(u)):u===null||pe(u)?(e.exit("atxHeading"),t(u)):Me(u)?Pe(e,s,"whitespace")(u):(e.enter("atxHeadingText"),d(u))}function l(u){return u===35?(e.consume(u),l):(e.exit("atxHeadingSequence"),s(u))}function d(u){return u===null||u===35||Dt(u)?(e.exit("atxHeadingText"),s(u)):(e.consume(u),d)}}const I6=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],z1=["pre","script","style","textarea"],j6={name:"htmlFlow",tokenize:q6,resolveTo:U6,concrete:!0},P6={tokenize:z6,partial:!0},G6={tokenize:H6,partial:!0};function U6(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function q6(e,t,a){const i=this;let n,r,o,s,l;return d;function d(O){return u(O)}function u(O){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(O),c}function c(O){return O===33?(e.consume(O),f):O===47?(e.consume(O),r=!0,m):O===63?(e.consume(O),n=3,i.interrupt?t:A):aa(O)?(e.consume(O),o=String.fromCharCode(O),p):a(O)}function f(O){return O===45?(e.consume(O),n=2,h):O===91?(e.consume(O),n=5,s=0,_):aa(O)?(e.consume(O),n=4,i.interrupt?t:A):a(O)}function h(O){return O===45?(e.consume(O),i.interrupt?t:A):a(O)}function _(O){const ge="CDATA[";return O===ge.charCodeAt(s++)?(e.consume(O),s===ge.length?i.interrupt?t:k:_):a(O)}function m(O){return aa(O)?(e.consume(O),o=String.fromCharCode(O),p):a(O)}function p(O){if(O===null||O===47||O===62||Dt(O)){const ge=O===47,Se=o.toLowerCase();return!ge&&!r&&z1.includes(Se)?(n=1,i.interrupt?t(O):k(O)):I6.includes(o.toLowerCase())?(n=6,ge?(e.consume(O),T):i.interrupt?t(O):k(O)):(n=7,i.interrupt&&!i.parser.lazy[i.now().line]?a(O):r?R(O):S(O))}return O===45||vt(O)?(e.consume(O),o+=String.fromCharCode(O),p):a(O)}function T(O){return O===62?(e.consume(O),i.interrupt?t:k):a(O)}function R(O){return Me(O)?(e.consume(O),R):g(O)}function S(O){return O===47?(e.consume(O),g):O===58||O===95||aa(O)?(e.consume(O),C):Me(O)?(e.consume(O),S):g(O)}function C(O){return O===45||O===46||O===58||O===95||vt(O)?(e.consume(O),C):j(O)}function j(O){return O===61?(e.consume(O),E):Me(O)?(e.consume(O),j):S(O)}function E(O){return O===null||O===60||O===61||O===62||O===96?a(O):O===34||O===39?(e.consume(O),l=O,I):Me(O)?(e.consume(O),E):M(O)}function I(O){return O===l?(e.consume(O),l=null,P):O===null||pe(O)?a(O):(e.consume(O),I)}function M(O){return O===null||O===34||O===39||O===47||O===60||O===61||O===62||O===96||Dt(O)?j(O):(e.consume(O),M)}function P(O){return O===47||O===62||Me(O)?S(O):a(O)}function g(O){return O===62?(e.consume(O),D):a(O)}function D(O){return O===null||pe(O)?k(O):Me(O)?(e.consume(O),D):a(O)}function k(O){return O===45&&n===2?(e.consume(O),$):O===60&&n===1?(e.consume(O),V):O===62&&n===4?(e.consume(O),z):O===63&&n===3?(e.consume(O),A):O===93&&n===5?(e.consume(O),U):pe(O)&&(n===6||n===7)?(e.exit("htmlFlowData"),e.check(P6,re,x)(O)):O===null||pe(O)?(e.exit("htmlFlowData"),x(O)):(e.consume(O),k)}function x(O){return e.check(G6,L,re)(O)}function L(O){return e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),Z}function Z(O){return O===null||pe(O)?x(O):(e.enter("htmlFlowData"),k(O))}function $(O){return O===45?(e.consume(O),A):k(O)}function V(O){return O===47?(e.consume(O),o="",y):k(O)}function y(O){if(O===62){const ge=o.toLowerCase();return z1.includes(ge)?(e.consume(O),z):k(O)}return aa(O)&&o.length<8?(e.consume(O),o+=String.fromCharCode(O),y):k(O)}function U(O){return O===93?(e.consume(O),A):k(O)}function A(O){return O===62?(e.consume(O),z):O===45&&n===2?(e.consume(O),A):k(O)}function z(O){return O===null||pe(O)?(e.exit("htmlFlowData"),re(O)):(e.consume(O),z)}function re(O){return e.exit("htmlFlow"),t(O)}}function H6(e,t,a){const i=this;return n;function n(o){return pe(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),r):a(o)}function r(o){return i.parser.lazy[i.now().line]?a(o):t(o)}}function z6(e,t,a){return i;function i(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),e.attempt(Yo,t,a)}}const V6={name:"htmlText",tokenize:$6};function $6(e,t,a){const i=this;let n,r,o;return s;function s(A){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(A),l}function l(A){return A===33?(e.consume(A),d):A===47?(e.consume(A),j):A===63?(e.consume(A),S):aa(A)?(e.consume(A),M):a(A)}function d(A){return A===45?(e.consume(A),u):A===91?(e.consume(A),r=0,_):aa(A)?(e.consume(A),R):a(A)}function u(A){return A===45?(e.consume(A),h):a(A)}function c(A){return A===null?a(A):A===45?(e.consume(A),f):pe(A)?(o=c,V(A)):(e.consume(A),c)}function f(A){return A===45?(e.consume(A),h):c(A)}function h(A){return A===62?$(A):A===45?f(A):c(A)}function _(A){const z="CDATA[";return A===z.charCodeAt(r++)?(e.consume(A),r===z.length?m:_):a(A)}function m(A){return A===null?a(A):A===93?(e.consume(A),p):pe(A)?(o=m,V(A)):(e.consume(A),m)}function p(A){return A===93?(e.consume(A),T):m(A)}function T(A){return A===62?$(A):A===93?(e.consume(A),T):m(A)}function R(A){return A===null||A===62?$(A):pe(A)?(o=R,V(A)):(e.consume(A),R)}function S(A){return A===null?a(A):A===63?(e.consume(A),C):pe(A)?(o=S,V(A)):(e.consume(A),S)}function C(A){return A===62?$(A):S(A)}function j(A){return aa(A)?(e.consume(A),E):a(A)}function E(A){return A===45||vt(A)?(e.consume(A),E):I(A)}function I(A){return pe(A)?(o=I,V(A)):Me(A)?(e.consume(A),I):$(A)}function M(A){return A===45||vt(A)?(e.consume(A),M):A===47||A===62||Dt(A)?P(A):a(A)}function P(A){return A===47?(e.consume(A),$):A===58||A===95||aa(A)?(e.consume(A),g):pe(A)?(o=P,V(A)):Me(A)?(e.consume(A),P):$(A)}function g(A){return A===45||A===46||A===58||A===95||vt(A)?(e.consume(A),g):D(A)}function D(A){return A===61?(e.consume(A),k):pe(A)?(o=D,V(A)):Me(A)?(e.consume(A),D):P(A)}function k(A){return A===null||A===60||A===61||A===62||A===96?a(A):A===34||A===39?(e.consume(A),n=A,x):pe(A)?(o=k,V(A)):Me(A)?(e.consume(A),k):(e.consume(A),L)}function x(A){return A===n?(e.consume(A),n=void 0,Z):A===null?a(A):pe(A)?(o=x,V(A)):(e.consume(A),x)}function L(A){return A===null||A===34||A===39||A===60||A===61||A===96?a(A):A===47||A===62||Dt(A)?P(A):(e.consume(A),L)}function Z(A){return A===47||A===62||Dt(A)?P(A):a(A)}function $(A){return A===62?(e.consume(A),e.exit("htmlTextData"),e.exit("htmlText"),t):a(A)}function V(A){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),y}function y(A){return Me(A)?Pe(e,U,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):U(A)}function U(A){return e.enter("htmlTextData"),o(A)}}const Mu={name:"labelEnd",tokenize:ek,resolveTo:X6,resolveAll:K6},W6={tokenize:tk},Q6={tokenize:ak},J6={tokenize:ik};function K6(e){let t=-1;for(;++t=3&&(d===null||pe(d))?(e.exit("thematicBreak"),t(d)):a(d)}function l(d){return d===n?(e.consume(d),i++,l):(e.exit("thematicBreakSequence"),Me(d)?Pe(e,s,"whitespace")(d):s(d))}}const Ft={name:"list",tokenize:hk,continuation:{tokenize:fk},exit:_k},dk={tokenize:Fk,partial:!0},ck={tokenize:gk,partial:!0};function hk(e,t,a){const i=this,n=i.events[i.events.length-1];let r=n&&n[1].type==="linePrefix"?n[2].sliceSerialize(n[1],!0).length:0,o=0;return s;function s(h){const _=i.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(_==="listUnordered"?!i.containerState.marker||h===i.containerState.marker:Tl(h)){if(i.containerState.type||(i.containerState.type=_,e.enter(_,{_container:!0})),_==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(ur,a,d)(h):d(h);if(!i.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return a(h)}function l(h){return Tl(h)&&++o<10?(e.consume(h),l):(!i.interrupt||o<2)&&(i.containerState.marker?h===i.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),d(h)):a(h)}function d(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||h,e.check(Yo,i.interrupt?a:u,e.attempt(dk,f,c))}function u(h){return i.containerState.initialBlankLine=!0,r++,f(h)}function c(h){return Me(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),f):a(h)}function f(h){return i.containerState.size=r+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function fk(e,t,a){const i=this;return i.containerState._closeFlow=void 0,e.check(Yo,n,r);function n(s){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,Pe(e,t,"listItemIndent",i.containerState.size+1)(s)}function r(s){return i.containerState.furtherBlankLines||!Me(s)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,o(s)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(ck,t,o)(s))}function o(s){return i.containerState._closeFlow=!0,i.interrupt=void 0,Pe(e,e.attempt(Ft,t,a),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function gk(e,t,a){const i=this;return Pe(e,n,"listItemIndent",i.containerState.size+1);function n(r){const o=i.events[i.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===i.containerState.size?t(r):a(r)}}function _k(e){e.exit(this.containerState.type)}function Fk(e,t,a){const i=this;return Pe(e,n,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function n(r){const o=i.events[i.events.length-1];return!Me(r)&&o&&o[1].type==="listItemPrefixWhitespace"?t(r):a(r)}}const V1={name:"setextUnderline",tokenize:pk,resolveTo:mk};function mk(e,t){let a=e.length,i,n,r;for(;a--;)if(e[a][0]==="enter"){if(e[a][1].type==="content"){i=a;break}e[a][1].type==="paragraph"&&(n=a)}else e[a][1].type==="content"&&e.splice(a,1),!r&&e[a][1].type==="definition"&&(r=a);const o={type:"setextHeading",start:Object.assign({},e[n][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[n][1].type="setextHeadingText",r?(e.splice(n,0,["enter",o,t]),e.splice(r+1,0,["exit",e[i][1],t]),e[i][1].end=Object.assign({},e[r][1].end)):e[i][1]=o,e.push(["exit",o,t]),e}function pk(e,t,a){const i=this;let n;return r;function r(d){let u=i.events.length,c;for(;u--;)if(i.events[u][1].type!=="lineEnding"&&i.events[u][1].type!=="linePrefix"&&i.events[u][1].type!=="content"){c=i.events[u][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||c)?(e.enter("setextHeadingLine"),n=d,o(d)):a(d)}function o(d){return e.enter("setextHeadingLineSequence"),s(d)}function s(d){return d===n?(e.consume(d),s):(e.exit("setextHeadingLineSequence"),Me(d)?Pe(e,l,"lineSuffix")(d):l(d))}function l(d){return d===null||pe(d)?(e.exit("setextHeadingLine"),t(d)):a(d)}}const Tk={tokenize:Dk};function Dk(e){const t=this,a=e.attempt(Yo,i,e.attempt(this.parser.constructs.flowInitial,n,Pe(e,e.attempt(this.parser.constructs.flow,n,e.attempt(S6,n)),"linePrefix")));return a;function i(r){if(r===null){e.consume(r);return}return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,a}function n(r){if(r===null){e.consume(r);return}return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,a}}const Ek={resolveAll:Rg()},bk=vg("string"),yk=vg("text");function vg(e){return{tokenize:t,resolveAll:Rg(e==="text"?Ak:void 0)};function t(a){const i=this,n=this.parser.constructs[e],r=a.attempt(n,o,s);return o;function o(u){return d(u)?r(u):s(u)}function s(u){if(u===null){a.consume(u);return}return a.enter("data"),a.consume(u),l}function l(u){return d(u)?(a.exit("data"),r(u)):(a.consume(u),l)}function d(u){if(u===null)return!0;const c=n[u];let f=-1;if(c)for(;++f-1){const s=o[0];typeof s=="string"?o[0]=s.slice(i):o.shift()}r>0&&o.push(e[n].slice(0,r))}return o}function vk(e,t){let a=-1;const i=[];let n;for(;++a0){const N=q.tokenStack[q.tokenStack.length-1];(N[1]||W1).call(q,void 0,N[0])}for(W.position={start:Ba(G.length>0?G[0][1].start:{line:1,column:1,offset:0}),end:Ba(G.length>0?G[G.length-2][1].end:{line:1,column:1,offset:0})},b=-1;++b0?{type:"text",value:C}:void 0),C===!1?c.lastIndex=R+1:(h!==R&&p.push({type:"text",value:l.value.slice(h,R)}),Array.isArray(C)?p.push(...C):C&&p.push(C),h=R+T[0].length,m=!0),!c.global)break;T=c.exec(l.value)}return m?(h1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,l);const d={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,d),e.applyData(t,d)}function lv(e,t){const a={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function uv(e,t){if(e.options.allowDangerousHtml){const a={type:"raw",value:t.value};return e.patch(t,a),e.applyData(t,a)}}function Og(e,t){const a=t.referenceType;let i="]";if(a==="collapsed"?i+="[]":a==="full"&&(i+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+i}];const n=e.all(t),r=n[0];r&&r.type==="text"?r.value="["+r.value:n.unshift({type:"text",value:"["});const o=n[n.length-1];return o&&o.type==="text"?o.value+=i:n.push({type:"text",value:i}),n}function dv(e,t){const a=String(t.identifier).toUpperCase(),i=e.definitionById.get(a);if(!i)return Og(e,t);const n={src:yn(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(n.title=i.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function cv(e,t){const a={src:yn(t.url)};t.alt!==null&&t.alt!==void 0&&(a.alt=t.alt),t.title!==null&&t.title!==void 0&&(a.title=t.title);const i={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,i),e.applyData(t,i)}function hv(e,t){const a={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,a);const i={type:"element",tagName:"code",properties:{},children:[a]};return e.patch(t,i),e.applyData(t,i)}function fv(e,t){const a=String(t.identifier).toUpperCase(),i=e.definitionById.get(a);if(!i)return Og(e,t);const n={href:yn(i.url||"")};i.title!==null&&i.title!==void 0&&(n.title=i.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function gv(e,t){const a={href:yn(t.url)};t.title!==null&&t.title!==void 0&&(a.title=t.title);const i={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function _v(e,t,a){const i=e.all(t),n=a?Fv(a):xg(t),r={},o=[];if(typeof t.checked=="boolean"){const u=i[0];let c;u&&u.type==="element"&&u.tagName==="p"?c=u:(c={type:"element",tagName:"p",properties:{},children:[]},i.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),r.className=["task-list-item"]}let s=-1;for(;++s1}function mv(e,t){const a={},i=e.all(t);let n=-1;for(typeof t.start=="number"&&t.start!==1&&(a.start=t.start);++n0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function Ev(e){const t=Cg(e),a=Bg(e);if(t&&a)return{start:t,end:a}}function bv(e,t){const a=e.all(t),i=a.shift(),n=[];if(i){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],o),n.push(o)}if(a.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(a,!0)},s=Cg(t.children[1]),l=Bg(t.children[t.children.length-1]);s&&l&&(o.position={start:s,end:l}),n.push(o)}const r={type:"element",tagName:"table",properties:{},children:e.wrap(n,!0)};return e.patch(t,r),e.applyData(t,r)}function yv(e,t,a){const i=a?a.children:void 0,n=(i?i.indexOf(t):1)===0?"th":"td",r=a&&a.type==="table"?a.align:void 0,o=r?r.length:t.children.length;let s=-1;const l=[];for(;++s0,!0),i[0]),n=i.index+i[0].length,i=a.exec(t);return r.push(K1(t.slice(n),n>0,!1)),r.join("")}function K1(e,t,a){let i=0,n=e.length;if(t){let r=e.codePointAt(i);for(;r===Q1||r===J1;)i++,r=e.codePointAt(i)}if(a){let r=e.codePointAt(n-1);for(;r===Q1||r===J1;)n--,r=e.codePointAt(n-1)}return n>i?e.slice(i,n):""}function kv(e,t){const a={type:"text",value:Sv(String(t.value))};return e.patch(t,a),e.applyData(t,a)}function vv(e,t){const a={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,a),e.applyData(t,a)}const Rv={blockquote:av,break:iv,code:nv,delete:rv,emphasis:ov,footnoteReference:sv,heading:lv,html:uv,imageReference:dv,image:cv,inlineCode:hv,linkReference:fv,link:gv,listItem:_v,list:mv,paragraph:pv,root:Tv,strong:Dv,table:bv,tableCell:Av,tableRow:yv,text:kv,thematicBreak:vv,toml:q0,yaml:q0,definition:q0,footnoteDefinition:q0};function q0(){}const Yg=-1,Lo=0,oo=1,so=2,Yu=3,Lu=4,Zu=5,Iu=6,Lg=7,Zg=8,X1=typeof self=="object"?self:globalThis,Nv=(e,t)=>{const a=(n,r)=>(e.set(r,n),n),i=n=>{if(e.has(n))return e.get(n);const[r,o]=t[n];switch(r){case Lo:case Yg:return a(o,n);case oo:{const s=a([],n);for(const l of o)s.push(i(l));return s}case so:{const s=a({},n);for(const[l,d]of o)s[i(l)]=i(d);return s}case Yu:return a(new Date(o),n);case Lu:{const{source:s,flags:l}=o;return a(new RegExp(s,l),n)}case Zu:{const s=a(new Map,n);for(const[l,d]of o)s.set(i(l),i(d));return s}case Iu:{const s=a(new Set,n);for(const l of o)s.add(i(l));return s}case Lg:{const{name:s,message:l}=o;return a(new X1[s](l),n)}case Zg:return a(BigInt(o),n);case"BigInt":return a(Object(BigInt(o)),n)}return a(new X1[r](o),n)};return i},ec=e=>Nv(new Map,e)(0),Yi="",{toString:wv}={},{keys:Ov}=Object,Nn=e=>{const t=typeof e;if(t!=="object"||!e)return[Lo,t];const a=wv.call(e).slice(8,-1);switch(a){case"Array":return[oo,Yi];case"Object":return[so,Yi];case"Date":return[Yu,Yi];case"RegExp":return[Lu,Yi];case"Map":return[Zu,Yi];case"Set":return[Iu,Yi]}return a.includes("Array")?[oo,a]:a.includes("Error")?[Lg,a]:[so,a]},H0=([e,t])=>e===Lo&&(t==="function"||t==="symbol"),xv=(e,t,a,i)=>{const n=(o,s)=>{const l=i.push(o)-1;return a.set(s,l),l},r=o=>{if(a.has(o))return a.get(o);let[s,l]=Nn(o);switch(s){case Lo:{let u=o;switch(l){case"bigint":s=Zg,u=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);u=null;break;case"undefined":return n([Yg],o)}return n([s,u],o)}case oo:{if(l)return n([l,[...o]],o);const u=[],c=n([s,u],o);for(const f of o)u.push(r(f));return c}case so:{if(l)switch(l){case"BigInt":return n([l,o.toString()],o);case"Boolean":case"Number":case"String":return n([l,o.valueOf()],o)}if(t&&"toJSON"in o)return r(o.toJSON());const u=[],c=n([s,u],o);for(const f of Ov(o))(e||!H0(Nn(o[f])))&&u.push([r(f),r(o[f])]);return c}case Yu:return n([s,o.toISOString()],o);case Lu:{const{source:u,flags:c}=o;return n([s,{source:u,flags:c}],o)}case Zu:{const u=[],c=n([s,u],o);for(const[f,h]of o)(e||!(H0(Nn(f))||H0(Nn(h))))&&u.push([r(f),r(h)]);return c}case Iu:{const u=[],c=n([s,u],o);for(const f of o)(e||!H0(Nn(f)))&&u.push(r(f));return c}}const{message:d}=o;return n([s,{name:l,message:d}],o)};return r},tc=(e,{json:t,lossy:a}={})=>{const i=[];return xv(!(t||a),!!t,new Map,i)(e),i},yi=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?ec(tc(e,t)):structuredClone(e):(e,t)=>ec(tc(e,t));function Bv(e,t){const a=[{type:"text",value:"↩"}];return t>1&&a.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),a}function Cv(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Mv(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",a=e.options.footnoteBackContent||Bv,i=e.options.footnoteBackLabel||Cv,n=e.options.footnoteLabel||"Footnotes",r=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l0&&_.push({type:"text",value:" "});let R=typeof a=="string"?a:a(l,h);typeof R=="string"&&(R={type:"text",value:R}),_.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+f+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(l,h),className:["data-footnote-backref"]},children:Array.isArray(R)?R:[R]})}const p=u[u.length-1];if(p&&p.type==="element"&&p.tagName==="p"){const R=p.children[p.children.length-1];R&&R.type==="text"?R.value+=" ":p.children.push({type:"text",value:" "}),p.children.push(..._)}else u.push(..._);const T={type:"element",tagName:"li",properties:{id:t+"fn-"+f},children:e.wrap(u,!0)};e.patch(d,T),s.push(T)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:r,properties:{...yi(o),id:"footnote-label"},children:[{type:"text",value:n}]},{type:"text",value:` +`},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:` +`}]}}const El={}.hasOwnProperty,Yv={};function Lv(e,t){const a=t||Yv,i=new Map,n=new Map,r=new Map,o={...Rv,...a.handlers},s={all:d,applyData:Iv,definitionById:i,footnoteById:n,footnoteCounts:r,footnoteOrder:[],handlers:o,one:l,options:a,patch:Zv,wrap:Pv};return Mo(e,function(u){if(u.type==="definition"||u.type==="footnoteDefinition"){const c=u.type==="definition"?i:n,f=String(u.identifier).toUpperCase();c.has(f)||c.set(f,u)}}),s;function l(u,c){const f=u.type,h=s.handlers[f];if(El.call(s.handlers,f)&&h)return h(s,u,c);if(s.options.passThrough&&s.options.passThrough.includes(f)){if("children"in u){const{children:_,...m}=u,p=yi(m);return p.children=s.all(u),p}return yi(u)}return(s.options.unknownHandler||jv)(s,u,c)}function d(u){const c=[];if("children"in u){const f=u.children;let h=-1;for(;++h0&&a.push({type:"text",value:` +`}),a}function ac(e){let t=0,a=e.charCodeAt(t);for(;a===9||a===32;)t++,a=e.charCodeAt(t);return e.slice(t)}function ic(e,t){const a=Lv(e,t),i=a.one(e,void 0),n=Mv(a),r=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return n&&r.children.push({type:"text",value:` +`},n),r}function Gv(e,t){return e&&"run"in e?async function(a,i){const n=ic(a,t);await e.run(n,i)}:function(a){return ic(a,t||e)}}class Qn{constructor(t,a,i){this.property=t,this.normal=a,i&&(this.space=i)}}Qn.prototype.property={},Qn.prototype.normal={},Qn.prototype.space=null;function Ig(e,t){const a={},i={};let n=-1;for(;++n4&&a.slice(0,4)==="data"&&Vv.test(t)){if(t.charAt(4)==="-"){const r=t.slice(5).replace(rc,Jv);i="data"+r.charAt(0).toUpperCase()+r.slice(1)}else{const r=t.slice(4);if(!rc.test(r)){let o=r.replace($v,Qv);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}n=ju}return new n(i,t)}function Qv(e){return"-"+e.toLowerCase()}function Jv(e){return e.charAt(1).toUpperCase()}const Kv={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Xv=Ig([Gg,Pg,Hg,zg,Hv],"html"),Vg=Ig([Gg,Pg,Hg,zg,zv],"svg");function eR(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function tR(e){return e.join(" ").trim()}function aR(e,t){const a=t||{};return(e[e.length-1]===""?[...e,""]:e).join((a.padRight?" ":"")+","+(a.padLeft===!1?"":" ")).trim()}var Al={exports:{}},oc=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,iR=/\n/g,nR=/^\s*/,rR=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,oR=/^:\s*/,sR=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,lR=/^[;\s]*/,uR=/^\s+|\s+$/g,dR=` +`,sc="/",lc="*",mi="",cR="comment",hR="declaration",fR=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var a=1,i=1;function n(_){var m=_.match(iR);m&&(a+=m.length);var p=_.lastIndexOf(dR);i=~p?_.length-p:i+_.length}function r(){var _={line:a,column:i};return function(m){return m.position=new o(_),d(),m}}function o(_){this.start=_,this.end={line:a,column:i},this.source=t.source}o.prototype.content=e;function s(_){var m=new Error(t.source+":"+a+":"+i+": "+_);if(m.reason=_,m.filename=t.source,m.line=a,m.column=i,m.source=e,!t.silent)throw m}function l(_){var m=_.exec(e);if(m){var p=m[0];return n(p),e=e.slice(p.length),m}}function d(){l(nR)}function u(_){var m;for(_=_||[];m=c();)m!==!1&&_.push(m);return _}function c(){var _=r();if(!(sc!=e.charAt(0)||lc!=e.charAt(1))){for(var m=2;mi!=e.charAt(m)&&(lc!=e.charAt(m)||sc!=e.charAt(m+1));)++m;if(m+=2,mi===e.charAt(m-1))return s("End of comment missing");var p=e.slice(2,m-2);return i+=2,n(p),e=e.slice(m),i+=2,_({type:cR,comment:p})}}function f(){var _=r(),m=l(rR);if(m){if(c(),!l(oR))return s("property missing ':'");var p=l(sR),T=_({type:hR,property:uc(m[0].replace(oc,mi)),value:p?uc(p[0].replace(oc,mi)):mi});return l(lR),T}}function h(){var _=[];u(_);for(var m;m=f();)m!==!1&&(_.push(m),u(_));return _}return d(),h()};function uc(e){return e?e.replace(uR,mi):mi}var gR=fR;function dc(e,t){var a=null;if(!e||typeof e!="string")return a;for(var i,n=gR(e),r=typeof t=="function",o,s,l=0,d=n.length;l0?e.call(t,r,o,s):e.call(t,r,o)}function DR(e,t,a,i,n){const r=Wv(i.schema,t);let o;a==null||typeof a=="number"&&Number.isNaN(a)||a===!1&&(i.vue||i.vdom||i.hyperscript)||!a&&r.boolean&&(i.vue||i.vdom||i.hyperscript)||(Array.isArray(a)&&(a=r.commaSeparated?aR(a):tR(a)),r.boolean&&i.hyperscript&&(a=""),r.property==="style"&&typeof a=="string"&&(i.react||i.vue||i.vdom)&&(a=SR(a,n)),i.vue?r.property!=="style"&&(o="attrs"):r.mustUseProperty||(i.vdom?r.property!=="style"&&(o="attributes"):i.hyperscript&&(o="attrs")),o?e[o]=Object.assign(e[o]||{},{[r.attribute]:a}):r.space&&i.react?e[Kv[r.property]||r.property]=a:e[r.attribute]=a)}function ER(e){const t=e("div",{});return!!(t&&("_owner"in t||"_store"in t)&&(t.key===void 0||t.key===null))}function bR(e){return"context"in e&&"cleanup"in e}function yR(e){return e("div",{}).type==="VirtualNode"}function AR(e){const t=e("div",{});return!!(t&&t.context&&t.context._isVue)}function SR(e,t){const a={};try{FR(e,(i,n)=>{i.slice(0,4)==="-ms-"&&(i="ms-"+i.slice(4)),a[i.replace(/-([a-z])/g,(r,o)=>o.toUpperCase())]=n})}catch(i){const n=i;throw n.message=t+"[style]"+n.message.slice(9),n}return a}var kR=Wg;function Wg(e){if(typeof e=="string")return wR(e);if(e==null)return OR;if(typeof e=="object")return("length"in e?NR:RR)(e);if(typeof e=="function")return e;throw new Error("Expected function, string, or object as test")}function vR(e){for(var t=[],a=e.length,i=-1;++id&&c!qR(l))),e.components&&HR.call(e.components,r)){const l=e.components[r];return e.passNode&&typeof l=="function"&&(o=Object.assign({node:this},o)),t(l,o,s)}return t(r,o,s)}}const Kg=function(e){if(e==null)return QR;if(typeof e=="string")return WR(e);if(typeof e=="object")return $R(e);if(typeof e=="function")return Pu(e);throw new Error("Expected function, string, or array as `test`")};function $R(e){const t=[];let a=-1;for(;++a0&&(r.properties.rel=[...f]),h&&(r.properties.target=h),u){const m=wn(t.contentProperties,r)||{};r.children.push({type:"element",tagName:"span",properties:yi(m),children:yi(u)})}}}})}}function wn(e,t){return typeof e=="function"?e(t):e}const hc=/(\s|^)(https?:\/\/)((?:[-A-Z0-9+_]+\.)+[-A-Z]+(?:\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*)(\s|$)/ig,fc=/(\s|\(|^)((https?:\/\/)((?:[-A-Z0-9+_]+\.)+[-A-Z0-9]+(?::[0-9]+)?(?:\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*))(?=\s|\)|$)/ig,r9={name:"NcReferenceList",components:{NcReferenceWidget:cg},props:{text:{type:String,default:""},referenceData:{type:Object,default:null},limit:{type:Number,default:1}},data(){return{references:null,loading:!0}},computed:{isVisible(){return this.loading||this.displayedReferences},values(){return this.referenceData?this.referenceData:this.references?Object.values(this.references):[]},firstReference(){var e;return(e=this.values[0])!=null?e:null},displayedReferences(){return this.values.slice(0,this.limit)}},watch:{text:"fetch"},mounted(){this.fetch()},methods:{fetch(){if(this.loading=!0,this.referenceData){this.loading=!1;return}if(!new RegExp(hc).exec(this.text)){this.loading=!1;return}this.resolve().then(e=>{this.references=e.data.ocs.data.references,this.loading=!1}).catch(e=>{console.error("Failed to extract references",e),this.loading=!1})},resolve(){const e=new RegExp(hc).exec(this.text.trim());return this.limit===1&&e?Wa.get($a("references/resolve",2)+`?reference=${encodeURIComponent(e[0])}`):Wa.post($a("references/extract",2),{text:this.text,resolve:!0,limit:this.limit})}}};var o9=function(){var e=this,t=e._self._c;return e.isVisible?t("div",{staticClass:"widgets--list",class:{"icon-loading":e.loading}},e._l(e.displayedReferences,function(a){var i;return t("div",{key:(i=a?.openGraphObject)==null?void 0:i.id},[t("NcReferenceWidget",{attrs:{reference:a}})],1)}),0):e._e()},s9=[],l9=de(r9,o9,s9,!1,null,"bd1fbb02",null,null);const ks=l9.exports,u9={name:"NcLink",props:{href:{type:String,required:!0}},render(e){return e("a",{attrs:{href:this.href,rel:"noopener noreferrer",target:"_blank",class:"rich-text--external-link"}},[this.href.trim()])}},d9=function({autolink:e,useMarkdown:t}){return function(a){!t||!e||Mo(a,i=>i.type==="text",(i,n,r)=>{let o=Xg(i.value);return o=o.map(s=>typeof s=="string"?Vn("text",s):Vn("link",{url:s.props.href},[Vn("text",s.props.href)])).filter(s=>s),r.children.splice(n,1,...o.flat()),[gg,n+o.flat().length]})}},Xg=e=>{let t=fc.exec(e);const a=[];let i=0;for(;t!==null;){let r=t[2],o,s=e.substring(i,t.index+t[1].length);r[0]===" "&&(s+=r[0],r=r.substring(1).trim());const l=r[r.length-1];(l==="."||l===","||l===";"||t[0][0]==="("&&l===")")&&(r=r.substring(0,r.length-1),o=l),a.push(s),a.push({component:u9,props:{href:r}}),o&&a.push(o),i=t.index+t[0].length,t=fc.exec(e)}a.push(e.substring(i));const n=a.map(r=>typeof r=="string"?r:r.props.href).join("");return e===n?a:(console.error("Failed to reassemble the chunked text: "+e),e)},c9=function(){return function(e){Mo(e,a=>a.type==="text",t);function t(a,i,n){const r=a.value.split(/(\{[a-z\-_.0-9]+\})/ig).map((o,s,l)=>{const d=o.match(/^\{([a-z\-_.0-9]+)\}$/i);if(!d)return Vn("text",o);const[,u]=d;return Vn("element",{tagName:`#${u}`})});n.children.splice(i,1,...r)}}},h9=({h:e,context:t},a)=>(t.autolink&&(a=Xg(a)),Array.isArray(a)?a.map(i=>{if(typeof i=="string")return i;const{component:n,props:r}=i,o=n.name==="NcLink"?void 0:"rich-text--component";return e(n,{props:r,class:o})}):a),f9={name:"NcRichText",components:{NcReferenceList:ks},props:{text:{type:String,default:""},arguments:{type:Object,default:()=>({})},referenceLimit:{type:Number,default:0},references:{type:Object,default:null},markdownCssClasses:{type:Object,default:()=>({a:"rich-text--external-link",ol:"rich-text--ordered-list",ul:"rich-text--un-ordered-list",li:"rich-text--list-item",strong:"rich-text--strong",em:"rich-text--italic",h1:"rich-text--heading rich-text--heading-1",h2:"rich-text--heading rich-text--heading-2",h3:"rich-text--heading rich-text--heading-3",h4:"rich-text--heading rich-text--heading-4",h5:"rich-text--heading rich-text--heading-5",h6:"rich-text--heading rich-text--heading-6",hr:"rich-text--hr",table:"rich-text--table",pre:"rich-text--pre",code:"rich-text--code",blockquote:"rich-text--blockquote"})},useMarkdown:{type:Boolean,default:!1},autolink:{type:Boolean,default:!0}},methods:{renderPlaintext(e){const t=this,a=this.text.split(/(\{[a-z\-_.0-9]+\})/ig).map(function(i,n,r){const o=i.match(/^\{([a-z\-_.0-9]+)\}$/i);if(!o)return h9({h:e,context:t},i);const s=o[1],l=t.arguments[s];if(typeof l=="object"){const{component:d,props:u}=l;return e(d,{props:u,class:"rich-text--component"})}return l?e("span",{class:"rich-text--fallback"},l):i});return e("div",{class:"rich-text--wrapper"},[e("div",{},a.flat()),this.referenceLimit>0?e("div",{class:"rich-text--reference-widget"},[e(ks,{props:{text:this.text,referenceData:this.references}})]):null])},renderMarkdown(e){const t=IS().use(Vk).use(d9,{autolink:this.autolink,useMarkdown:this.useMarkdown}).use(tv).use(Gv,{handlers:{component(a,i){return a(i,i.component,{value:i.value})}}}).use(c9).use(n9,{target:"_blank",rel:["noopener noreferrer"]}).use(VR,{createElement:(a,i,n)=>{if(n=n?.map(o=>typeof o=="string"?o.replace(/</gmi,"<"):o),!a.startsWith("#"))return e(a,i,n);const r=this.arguments[a.slice(1)];return r?r.component?e(r.component,{attrs:i,props:r.props,class:"rich-text--component"},n):e("span",i,[r]):e("span",{attrs:i,class:"rich-text--fallback"},[`{${a.slice(1)}}`])},prefix:!1}).processSync(this.text.replace(/")).result;return e("div",{class:"rich-text--wrapper rich-text--wrapper-markdown"},[t,this.referenceLimit>0?e("div",{class:"rich-text--reference-widget"},[e(ks,{props:{text:this.text,referenceData:this.references}})]):null])}},render(e){return this.useMarkdown?this.renderMarkdown(e):this.renderPlaintext(e)}},g9=null,_9=null;var F9=de(f9,g9,_9,!1,null,"5f33f45b",null,null);const e_=F9.exports;const m9={name:"NcActionButton",components:{ChevronRightIcon:dg},mixins:[Cf],props:{disabled:{type:Boolean,default:!1},ariaHidden:{type:Boolean,default:null},isMenu:{type:Boolean,default:!1}},computed:{isFocusable(){return!this.disabled}}};var p9=function(){var e=this,t=e._self._c;return t("li",{staticClass:"action",class:{"action--disabled":e.disabled}},[t("button",{staticClass:"action-button",class:{focusable:e.isFocusable},attrs:{"aria-label":e.ariaLabel,title:e.title,role:"menuitem",type:"button"},on:{click:e.onClick}},[e._t("icon",function(){return[t("span",{staticClass:"action-button__icon",class:[e.isIconUrl?"action-button__icon--url":e.icon],style:{backgroundImage:e.isIconUrl?`url(${e.icon})`:null},attrs:{"aria-hidden":e.ariaHidden}})]}),e.name?t("span",{staticClass:"action-button__longtext-wrapper"},[t("strong",{staticClass:"action-button__name"},[e._v(" "+e._s(e.name)+" ")]),t("br"),t("span",{staticClass:"action-button__longtext",domProps:{textContent:e._s(e.text)}})]):e.isLongText?t("span",{staticClass:"action-button__longtext",domProps:{textContent:e._s(e.text)}}):t("span",{staticClass:"action-button__text"},[e._v(e._s(e.text))]),e.isMenu?t("ChevronRightIcon",{staticClass:"action-button__menu-icon"}):e._e(),e._e()],2)])},T9=[],D9=de(m9,p9,T9,!1,null,"4ad257bb",null,null);const E9=D9.exports;const t_=nF.getLoggerBuilder().detectUser().setApp("@nextcloud/vue").build();var a_={exports:{}};(function(e){var t;(function(){t=e.exports})(),t.foldLength=75,t.newLineChar=`\r `,t.helpers={updateTimezones:function(a){var i,n,r,o,s,l;if(!a||a.name!=="vcalendar")return a;for(i=a.getAllSubcomponents(),n=[],r={},s=0;s"u"))return a instanceof i?a:new i(a)},unescapedIndexOf:function(a,i,n){for(;(n=a.indexOf(i,n))!==-1;)if(n>0&&a[n-1]==="\\")n+=1;else return n;return-1},binsearchInsert:function(a,i,n){if(!a.length)return 0;for(var r=0,o=a.length-1,s,l;r<=o;)if(s=r+Math.floor((o-r)/2),l=n(i,a[s]),l<0)o=s-1;else if(l>0)r=s+1;else break;return l<0?s:l>0?s+1:s},dumpn:function(){t.debug&&(typeof console<"u"&&"log"in console?t.helpers.dumpn=function(a){console.log(a)}:t.helpers.dumpn=function(a){dump(a+` `)},t.helpers.dumpn(arguments[0]))},clone:function(a,i){if(!a||typeof a!="object")return a;if(a instanceof Date)return new Date(a.getTime());if("clone"in a)return a.clone();if(Array.isArray(a)){for(var n=[],r=0;r65535?2:1:(i+=t.newLineChar+" "+n.substring(0,r),n=n.substring(r),r=o=0)}return i.substr(t.newLineChar.length+1)},pad2:function(a){typeof a!="string"&&(typeof a=="number"&&(a=parseInt(a)),a=String(a));var i=a.length;switch(i){case 0:return"00";case 1:return"0"+a;default:return a}},trunc:function(a){return a<0?Math.ceil(a):Math.floor(a)},inherits:function(a,i,n){function r(){}r.prototype=a.prototype,i.prototype=new r,n&&t.helpers.extend(n,i.prototype)},extend:function(a,i){for(var n in a){var r=Object.getOwnPropertyDescriptor(a,n);r&&!Object.getOwnPropertyDescriptor(i,n)&&Object.defineProperty(i,n,r)}return i}},t.design=function(){var a=/\\\\|\\;|\\,|\\[Nn]/g,i=/\\|;|,|\n/g,n=/\\\\|\\,|\\[Nn]/g,r=/\\|,|\n/g;function o(y,U){var A={matches:/.*/,fromICAL:function(z,re){return R(z,y,re)},toICAL:function(z,re){var O=U;return re&&(O=new RegExp(O.source+"|"+re)),z.replace(O,function(ge){switch(ge){case"\\":return"\\\\";case";":return"\\;";case",":return"\\,";case` `:return"\\n";default:return ge}})}};return A}var s={defaultType:"text"},l={defaultType:"text",multiValue:","},d={defaultType:"text",structuredValue:";"},u={defaultType:"integer"},c={defaultType:"date-time",allowedTypes:["date-time","date"]},f={defaultType:"date-time"},h={defaultType:"uri"},_={defaultType:"utc-offset"},m={defaultType:"recur"},p={defaultType:"date-and-or-time",allowedTypes:["date-time","date","text"]};function T(y){switch(y){case"\\\\":return"\\";case"\\;":return";";case"\\,":return",";case"\\n":case"\\N":return` @@ -934,7 +958,7 @@ Plural-Forms: nplurals=1; plural=0; `)}}}u.prototype=Error.prototype;function c(h){var _={},m=_.component=[];if(_.stack=[m],c._eachLine(h,function(p,T){c._handleContentLine(T,_)}),_.stack.length>1)throw new u("invalid ical body. component began but did not end");return _=null,m.length==1?m[0]:m}c.property=function(h,_){var m={component:[[],[]],designSet:_||l.defaultSet};return c._handleContentLine(h,m),m.component[1][0]},c.component=function(h){return c(h)},c.ParserError=u,c._handleContentLine=function(h,_){var m=h.indexOf(i),p=h.indexOf(n),T,R,S,C,j={};p!==-1&&m!==-1&&p>m&&(p=-1);var E;if(p!==-1){if(S=h.substring(0,p).toLowerCase(),E=c._parseParameters(h.substring(p),0,_.designSet),E[2]==-1)throw new u("Invalid parameters in '"+h+"'");if(j=E[0],T=E[1].length+E[2]+p,(R=h.substring(T).indexOf(i))!==-1)C=h.substring(T+R+1);else throw new u("Missing parameter value in '"+h+"'")}else if(m!==-1){if(S=h.substring(0,m).toLowerCase(),C=h.substring(m+1),S==="begin"){var I=[C.toLowerCase(),[],[]];_.stack.length===1?_.component.push(I):_.component[2].push(I),_.stack.push(_.component),_.component=I,_.designSet||(_.designSet=l.getDesignSet(_.component[0]));return}else if(S==="end"){_.component=_.stack.pop();return}}else throw new u('invalid line (no token ";" or ":") "'+h+'"');var M,P=!1,g=!1,D;S in _.designSet.property&&(D=_.designSet.property[S],"multiValue"in D&&(P=D.multiValue),"structuredValue"in D&&(g=D.structuredValue),C&&"detectType"in D&&(M=D.detectType(C))),M||("value"in j?M=j.value.toLowerCase():D?M=D.defaultType:M=o),delete j.value;var k;P&&g?(C=c._parseMultiValue(C,g,M,[],P,_.designSet,g),k=[S,j,M,C]):P?(k=[S,j,M],c._parseMultiValue(C,P,M,k,null,_.designSet,!1)):g?(C=c._parseMultiValue(C,g,M,[],null,_.designSet,g),k=[S,j,M,C]):(C=c._parseValue(C,M,_.designSet,!1),k=[S,j,M,C]),_.component[0]==="vcard"&&_.component[1].length===0&&!(S==="version"&&C==="4.0")&&(_.designSet=l.getDesignSet("vcard3")),_.component[1].push(k)},c._parseValue=function(h,_,m,p){return _ in m.value&&"fromICAL"in m.value[_]?m.value[_].fromICAL(h,p):h},c._parseParameters=function(h,_,m){for(var p=_,T=0,R=r,S={},C,j,E,I=-1,M,P,g;T!==!1&&(T=d.unescapedIndexOf(h,R,T+1))!==-1;){if(C=h.substr(p+1,T-p-1),C.length==0)throw new u("Empty parameter name in '"+h+"'");j=C.toLowerCase(),g=!1,P=!1,j in m.param&&m.param[j].valueType?M=m.param[j].valueType:M=s,j in m.param&&(P=m.param[j].multiValue,m.param[j].multiValueSeparateDQuote&&(g=c._rfc6868Escape('"'+P+'"')));var D=h[T+1];if(D==='"'){if(I=T+2,T=d.unescapedIndexOf(h,'"',I),P&&T!=-1)for(var k=!0;k;)h[T+1]==P&&h[T+2]=='"'?T=d.unescapedIndexOf(h,'"',T+3):k=!1;if(T===-1)throw new u('invalid line (no matching double quote) "'+h+'"');E=h.substr(I,T-I),p=d.unescapedIndexOf(h,n,T),p===-1&&(T=!1)}else{I=T+1;var x=d.unescapedIndexOf(h,n,I),L=d.unescapedIndexOf(h,i,I);L!==-1&&x>L?(x=L,T=!1):x===-1?(L===-1?x=h.length:x=L,T=!1):(p=x,T=x),E=h.substr(I,x-I)}if(E=c._rfc6868Escape(E),P){var Z=g||P;E=c._parseMultiValue(E,Z,M,[],null,m)}else E=c._parseValue(E,M,m);P&&j in S?Array.isArray(S[j])?S[j].push(E):S[j]=[S[j],E]:S[j]=E}return[S,E,I]},c._rfc6868Escape=function(h){return h.replace(/\^['n^]/g,function(_){return f[_]})};var f={"^'":'"',"^n":` `,"^^":"^"};return c._parseMultiValue=function(h,_,m,p,T,R,S){var C=0,j=0,E;if(_.length===0)return h;for(;(C=d.unescapedIndexOf(h,_,j))!==-1;)E=h.substr(j,C-j),T?E=c._parseMultiValue(E,T,m,[],null,R,S):E=c._parseValue(E,m,R,S),p.push(E),j=C+_.length;return E=h.substr(j),T?E=c._parseMultiValue(E,T,m,[],null,R,S):E=c._parseValue(E,m,R,S),p.push(E),p.length==1?p[0]:p},c._eachLine=function(h,_){var m=h.length,p=h.search(a),T=p,R,S,C;do T=h.indexOf(` `,p)+1,T>1&&h[T-2]==="\r"?C=2:C=1,T===0&&(T=m,C=0),S=h[p],S===" "||S===" "?R+=h.substr(p+1,T-p-(C+1)):(R&&_(null,R),R=h.substr(p,T-p-C)),p=T;while(T!==m);R=R.trim(),R.length&&_(null,R)},c}(),t.Component=function(){var a=1,i=2,n=0;function r(o,s){typeof o=="string"&&(o=[o,[],[]]),this.jCal=o,this.parent=s||null}return r.prototype={_hydratedPropertyCount:0,_hydratedComponentCount:0,get name(){return this.jCal[n]},get _designSet(){var o=this.parent&&this.parent._designSet;return o||t.design.getDesignSet(this.name)},_hydrateComponent:function(o){if(this._components||(this._components=[],this._hydratedComponentCount=0),this._components[o])return this._components[o];var s=new r(this.jCal[i][o],this);return this._hydratedComponentCount++,this._components[o]=s},_hydrateProperty:function(o){if(this._properties||(this._properties=[],this._hydratedPropertyCount=0),this._properties[o])return this._properties[o];var s=new t.Property(this.jCal[a][o],this);return this._hydratedPropertyCount++,this._properties[o]=s},getFirstSubcomponent:function(o){if(o){for(var s=0,l=this.jCal[i],d=l.length;s=0;c--)(!l||u[c][n]===l)&&this._removeObjectByIndex(o,d,c)},addSubcomponent:function(o){this._components||(this._components=[],this._hydratedComponentCount=0),o.parent&&o.parent.removeSubcomponent(o);var s=this.jCal[i].push(o.jCal);return this._components[s-1]=o,this._hydratedComponentCount++,o.parent=this,o},removeSubcomponent:function(o){var s=this._removeObject(i,"_components",o);return s&&this._hydratedComponentCount--,s},removeAllSubcomponents:function(o){var s=this._removeAllObjects(i,"_components",o);return this._hydratedComponentCount=0,s},addProperty:function(o){if(!(o instanceof t.Property))throw new TypeError("must instance of ICAL.Property");this._properties||(this._properties=[],this._hydratedPropertyCount=0),o.parent&&o.parent.removeProperty(o);var s=this.jCal[a].push(o.jCal);return this._properties[s-1]=o,this._hydratedPropertyCount++,o.parent=this,o},addPropertyWithValue:function(o,s){var l=new t.Property(o);return l.setValue(s),this.addProperty(l),l},updatePropertyWithValue:function(o,s){var l=this.getFirstProperty(o);return l?l.setValue(s):l=this.addPropertyWithValue(o,s),l},removeProperty:function(o){var s=this._removeObject(a,"_properties",o);return s&&this._hydratedPropertyCount--,s},removeAllProperties:function(o){var s=this._removeAllObjects(a,"_properties",o);return this._hydratedPropertyCount=0,s},toJSON:function(){return this.jCal},toString:function(){return t.stringify.component(this.jCal,this._designSet)}},r.fromString=function(o){return new r(t.parse.component(o))},r}(),t.Property=function(){var a=0,i=1,n=2,r=3,o=t.design;function s(l,d){this._parent=d||null,typeof l=="string"?(this.jCal=[l,{},o.defaultType],this.jCal[n]=this.getDefaultType()):this.jCal=l,this._updateType()}return s.prototype={get type(){return this.jCal[n]},get name(){return this.jCal[a]},get parent(){return this._parent},set parent(l){var d=!this._parent||l&&l._designSet!=this._parent._designSet;return this._parent=l,this.type==o.defaultType&&d&&(this.jCal[n]=this.getDefaultType(),this._updateType()),l},get _designSet(){return this.parent?this.parent._designSet:o.defaultSet},_updateType:function(){var l=this._designSet;this.type in l.value&&(l.value[this.type],"decorate"in l.value[this.type]?this.isDecorated=!0:this.isDecorated=!1,this.name in l.property&&(this.isMultiValue="multiValue"in l.property[this.name],this.isStructuredValue="structuredValue"in l.property[this.name]))},_hydrateValue:function(l){return this._values&&this._values[l]?this._values[l]:this.jCal.length<=r+l?null:this.isDecorated?(this._values||(this._values=[]),this._values[l]=this._decorate(this.jCal[r+l])):this.jCal[r+l]},_decorate:function(l){return this._designSet.value[this.type].decorate(l,this)},_undecorate:function(l){return this._designSet.value[this.type].undecorate(l,this)},_setDecoratedValue:function(l,d){this._values||(this._values=[]),typeof l=="object"&&"icaltype"in l?(this.jCal[r+d]=this._undecorate(l),this._values[d]=l):(this.jCal[r+d]=l,this._values[d]=this._decorate(l))},getParameter:function(l){if(l in this.jCal[i])return this.jCal[i][l]},getFirstParameter:function(l){var d=this.getParameter(l);return Array.isArray(d)?d[0]:d},setParameter:function(l,d){var u=l.toLowerCase();typeof d=="string"&&u in this._designSet.param&&"multiValue"in this._designSet.param[u]&&(d=[d]),this.jCal[i][l]=d},removeParameter:function(l){delete this.jCal[i][l]},getDefaultType:function(){var l=this.jCal[a],d=this._designSet;if(l in d.property){var u=d.property[l];if("defaultType"in u)return u.defaultType}return o.defaultType},resetType:function(l){this.removeAllValues(),this.jCal[n]=l,this._updateType()},getFirstValue:function(){return this._hydrateValue(0)},getValues:function(){var l=this.jCal.length-r;if(l<1)return[];for(var d=0,u=[];d0&&typeof l[0]=="object"&&"icaltype"in l[0]&&this.resetType(l[0].icaltype),this.isDecorated)for(;ur)-(r>n)},_normalize:function(){for(var i=this.toSeconds(),n=this.factor;i<-43200;)i+=97200;for(;i>50400;)i-=97200;this.fromSeconds(i),i==0&&(this.factor=n)},toICALString:function(){return t.design.icalendar.value["utc-offset"].toICAL(this.toString())},toString:function(){return(this.factor==1?"+":"-")+t.helpers.pad2(this.hours)+":"+t.helpers.pad2(this.minutes)}},a.fromString=function(i){var n={};return n.factor=i[0]==="+"?1:-1,n.hours=t.helpers.strictParseInt(i.substr(1,2)),n.minutes=t.helpers.strictParseInt(i.substr(4,2)),new t.UtcOffset(n)},a.fromSeconds=function(i){var n=new a;return n.fromSeconds(i),n},a}(),t.Binary=function(){function a(i){this.value=i}return a.prototype={icaltype:"binary",decodeValue:function(){return this._b64_decode(this.value)},setEncodedValue:function(i){this.value=this._b64_encode(i)},_b64_encode:function(i){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r,o,s,l,d,u,c,f,h=0,_=0,m="",p=[];if(!i)return i;do r=i.charCodeAt(h++),o=i.charCodeAt(h++),s=i.charCodeAt(h++),f=r<<16|o<<8|s,l=f>>18&63,d=f>>12&63,u=f>>6&63,c=f&63,p[_++]=n.charAt(l)+n.charAt(d)+n.charAt(u)+n.charAt(c);while(h>16&255,o=f>>8&255,s=f&255,u==64?p[_++]=String.fromCharCode(r):c==64?p[_++]=String.fromCharCode(r,o):p[_++]=String.fromCharCode(r,o,s);while(ho)-(r=0?o=r:s=-1,s==-1&&o!=-1)break;if(r+=s,r<0)return 0;if(r>=this.changes.length)break}var u=this.changes[o],c=u.utcOffset-u.prevUtcOffset;if(c<0&&o>0){var f=t.helpers.clone(u,!0);if(t.Timezone.adjust_change(f,0,0,0,f.prevUtcOffset),t.Timezone._compare_change_fn(n,f)<0){var h=this.changes[o-1],_=!1;u.is_daylight!=_&&h.is_daylight==_&&(u=h)}}return u.utcOffset},_findNearbyChange:function(i){var n=t.helpers.binsearchInsert(this.changes,i,t.Timezone._compare_change_fn);return n>=this.changes.length?this.changes.length-1:n},_ensureCoverage:function(i){if(t.Timezone._minimumExpansionYear==-1){var n=t.Time.now();t.Timezone._minimumExpansionYear=n.year}var r=i;if(rt.Timezone.MAX_YEAR&&(r=t.Timezone.MAX_YEAR),!this.changes.length||this.expandedUntilYearn||!p));)s.year=p.year,s.month=p.month,s.day=p.day,s.hour=p.hour,s.minute=p.minute,s.second=p.second,s.isDate=p.isDate,t.Timezone.adjust_change(s,0,0,0,-s.prevUtcOffset),r.push(s)}}return r},toString:function(){return this.tznames?this.tznames:this.tzid}},t.Timezone._compare_change_fn=function(i,n){return i.yearn.year?1:i.monthn.month?1:i.dayn.day?1:i.hourn.hour?1:i.minuten.minute?1:i.secondn.second?1:0},t.Timezone.convert_time=function(i,n,r){if(i.isDate||n.tzid==r.tzid||n==t.Timezone.localTimezone||r==t.Timezone.localTimezone)return i.zone=r,i;var o=n.utcOffset(i);return i.adjust(0,0,0,-o),o=r.utcOffset(i),i.adjust(0,0,0,o),null},t.Timezone.fromData=function(i){var n=new t.Timezone;return n.fromData(i)},t.Timezone.utcTimezone=t.Timezone.fromData({tzid:"UTC"}),t.Timezone.localTimezone=t.Timezone.fromData({tzid:"floating"}),t.Timezone.adjust_change=function(i,n,r,o,s){return t.Time.prototype.adjust.call(i,n,r,o,s,i)},t.Timezone._minimumExpansionYear=-1,t.Timezone.MAX_YEAR=2035,t.Timezone.EXTRA_COVERAGE=5}(),t.TimezoneService=function(){var a,i={get count(){return Object.keys(a).length},reset:function(){a=Object.create(null);var n=t.Timezone.utcTimezone;a.Z=n,a.UTC=n,a.GMT=n},has:function(n){return!!a[n]},get:function(n){return a[n]},register:function(n,r){if(n instanceof t.Component&&n.name==="vtimezone"&&(r=new t.Timezone(n),n=r.tzid),r instanceof t.Timezone)a[n]=r;else throw new TypeError("timezone must be ICAL.Timezone or ICAL.Component")},remove:function(n){return delete a[n]}};return i.reset(),i}(),function(){t.Time=function(a,i){this.wrappedJSObject=this;var n=this._time=Object.create(null);n.year=0,n.month=1,n.day=1,n.hour=0,n.minute=0,n.second=0,n.isDate=!1,this.fromData(a,i)},t.Time._dowCache={},t.Time._wnCache={},t.Time.prototype={icalclass:"icaltime",_cachedUnixTime:null,get icaltype(){return this.isDate?"date":"date-time"},zone:null,_pendingNormalization:!1,clone:function(){return new t.Time(this._time,this.zone)},reset:function(){this.fromData(t.Time.epochTime),this.zone=t.Timezone.utcTimezone},resetTo:function(a,i,n,r,o,s,l){this.fromData({year:a,month:i,day:n,hour:r,minute:o,second:s,zone:l})},fromJSDate:function(a,i){return a?i?(this.zone=t.Timezone.utcTimezone,this.year=a.getUTCFullYear(),this.month=a.getUTCMonth()+1,this.day=a.getUTCDate(),this.hour=a.getUTCHours(),this.minute=a.getUTCMinutes(),this.second=a.getUTCSeconds()):(this.zone=t.Timezone.localTimezone,this.year=a.getFullYear(),this.month=a.getMonth()+1,this.day=a.getDate(),this.hour=a.getHours(),this.minute=a.getMinutes(),this.second=a.getSeconds()):this.reset(),this._cachedUnixTime=null,this},fromData:function(a,i){if(a){for(var n in a)if(Object.prototype.hasOwnProperty.call(a,n)){if(n==="icaltype")continue;this[n]=a[n]}}if(i&&(this.zone=i),a&&!("isDate"in a)?this.isDate=!("hour"in a):a&&"isDate"in a&&(this.isDate=a.isDate),a&&"timezone"in a){var r=t.TimezoneService.get(a.timezone);this.zone=r||t.Timezone.localTimezone}return a&&"zone"in a&&(this.zone=a.zone),this.zone||(this.zone=t.Timezone.localTimezone),this._cachedUnixTime=null,this},dayOfWeek:function(a){var i=a||t.Time.SUNDAY,n=(this.year<<12)+(this.month<<8)+(this.day<<3)+i;if(n in t.Time._dowCache)return t.Time._dowCache[n];var r=this.day,o=this.month+(this.month<3?12:0),s=this.year-(this.month<3?1:0),l=r+s+t.helpers.trunc((o+1)*26/10)+t.helpers.trunc(s/4);return l+=t.helpers.trunc(s/100)*6+t.helpers.trunc(s/400),l=(l+7-i)%7+1,t.Time._dowCache[n]=l,l},dayOfYear:function(){var a=t.Time.isLeapYear(this.year)?1:0,i=t.Time.daysInYearPassedMonth;return i[a][this.month-1]+this.day},startOfWeek:function(a){var i=a||t.Time.SUNDAY,n=this.clone();return n.day-=(this.dayOfWeek()+7-i)%7,n.isDate=!0,n.hour=0,n.minute=0,n.second=0,n},endOfWeek:function(a){var i=a||t.Time.SUNDAY,n=this.clone();return n.day+=(7-this.dayOfWeek()+i-t.Time.SUNDAY)%7,n.isDate=!0,n.hour=0,n.minute=0,n.second=0,n},startOfMonth:function(){var a=this.clone();return a.day=1,a.isDate=!0,a.hour=0,a.minute=0,a.second=0,a},endOfMonth:function(){var a=this.clone();return a.day=t.Time.daysInMonth(a.month,a.year),a.isDate=!0,a.hour=0,a.minute=0,a.second=0,a},startOfYear:function(){var a=this.clone();return a.day=1,a.month=1,a.isDate=!0,a.hour=0,a.minute=0,a.second=0,a},endOfYear:function(){var a=this.clone();return a.day=31,a.month=12,a.isDate=!0,a.hour=0,a.minute=0,a.second=0,a},startDoyWeek:function(a){var i=a||t.Time.SUNDAY,n=this.dayOfWeek()-i;return n<0&&(n+=7),this.dayOfYear()-n},getDominicalLetter:function(){return t.Time.getDominicalLetter(this.year)},nthWeekDay:function(a,i){var n=t.Time.daysInMonth(this.month,this.year),r,o=i,s=0,l=this.clone();if(o>=0){l.day=1,o!=0&&o--,s=l.day;var d=l.dayOfWeek(),u=a-d;u<0&&(u+=7),s+=u,s-=a,r=a}else{l.day=n;var c=l.dayOfWeek();o++,r=c-a,r<0&&(r+=7),r=n-r}return r+=o*7,s+r},isNthWeekDay:function(a,i){var n=this.dayOfWeek();if(i===0&&n===a)return!0;var r=this.nthWeekDay(a,i);return r===this.day},weekNumber:function(a){var i=(this.year<<12)+(this.month<<8)+(this.day<<3)+a;if(i in t.Time._wnCache)return t.Time._wnCache[i];var n,r=this.clone();r.isDate=!0;var o=this.year;r.month==12&&r.day>25?(n=t.Time.weekOneStarts(o+1,a),r.compare(n)<0?n=t.Time.weekOneStarts(o,a):o++):(n=t.Time.weekOneStarts(o,a),r.compare(n)<0&&(n=t.Time.weekOneStarts(--o,a)));var s=r.subtractDate(n).toSeconds()/86400,l=t.helpers.trunc(s/7)+1;return t.Time._wnCache[i]=l,l},addDuration:function(a){var i=a.isNegative?-1:1,n=this.second,r=this.minute,o=this.hour,s=this.day;n+=i*a.seconds,r+=i*a.minutes,o+=i*a.hours,s+=i*a.days,s+=i*7*a.weeks,this.second=n,this.minute=r,this.hour=o,this.day=s,this._cachedUnixTime=null},subtractDate:function(a){var i=this.toUnixTime()+this.utcOffset(),n=a.toUnixTime()+a.utcOffset();return t.Duration.fromSeconds(i-n)},subtractDateTz:function(a){var i=this.toUnixTime(),n=a.toUnixTime();return t.Duration.fromSeconds(i-n)},compare:function(a){var i=this.toUnixTime(),n=a.toUnixTime();return i>n?1:n>i?-1:0},compareDateOnlyTz:function(a,i){function n(l){return t.Time._cmp_attr(r,o,l)}var r=this.convertToZone(i),o=a.convertToZone(i),s=0;return(s=n("year"))!=0||(s=n("month"))!=0||(s=n("day"))!=0,s},convertToZone:function(a){var i=this.clone(),n=this.zone.tzid==a.tzid;return!this.isDate&&!n&&t.Timezone.convert_time(i,this.zone,a),i.zone=a,i},utcOffset:function(){return this.zone==t.Timezone.localTimezone||this.zone==t.Timezone.utcTimezone?0:this.zone.utcOffset(this)},toICALString:function(){var a=this.toString();return a.length>10?t.design.icalendar.value["date-time"].toICAL(a):t.design.icalendar.value.date.toICAL(a)},toString:function(){var a=this.year+"-"+t.helpers.pad2(this.month)+"-"+t.helpers.pad2(this.day);return this.isDate||(a+="T"+t.helpers.pad2(this.hour)+":"+t.helpers.pad2(this.minute)+":"+t.helpers.pad2(this.second),this.zone===t.Timezone.utcTimezone&&(a+="Z")),a},toJSDate:function(){return this.zone==t.Timezone.localTimezone?this.isDate?new Date(this.year,this.month-1,this.day):new Date(this.year,this.month-1,this.day,this.hour,this.minute,this.second,0):new Date(this.toUnixTime()*1e3)},_normalize:function(){return this._time.isDate,this._time.isDate&&(this._time.hour=0,this._time.minute=0,this._time.second=0),this.adjust(0,0,0,0),this},adjust:function(a,i,n,r,o){var s,l,d=0,u=0,c,f,h,_,m,p=o||this._time;if(p.isDate||(c=p.second+r,p.second=c%60,s=t.helpers.trunc(c/60),p.second<0&&(p.second+=60,s--),f=p.minute+n+s,p.minute=f%60,l=t.helpers.trunc(f/60),p.minute<0&&(p.minute+=60,l--),h=p.hour+i+l,p.hour=h%24,d=t.helpers.trunc(h/24),p.hour<0&&(p.hour+=24,d--)),p.month>12?u=t.helpers.trunc((p.month-1)/12):p.month<1&&(u=t.helpers.trunc(p.month/12)-1),p.year+=u,p.month-=12*u,_=p.day+a+d,_>0)for(;m=t.Time.daysInMonth(p.month,p.year),!(_<=m);)p.month++,p.month>12&&(p.year++,p.month=1),_-=m;else for(;_<=0;)p.month==1?(p.year--,p.month=12):p.month--,_+=t.Time.daysInMonth(p.month,p.year);return p.day=_,this._cachedUnixTime=null,this},fromUnixTime:function(a){this.zone=t.Timezone.utcTimezone;var i=t.Time.epochTime.clone();i.adjust(0,0,0,a),this.year=i.year,this.month=i.month,this.day=i.day,this.hour=i.hour,this.minute=i.minute,this.second=Math.floor(i.second),this._cachedUnixTime=null},toUnixTime:function(){if(this._cachedUnixTime!==null)return this._cachedUnixTime;var a=this.utcOffset(),i=Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second-a);return this._cachedUnixTime=i/1e3,this._cachedUnixTime},toJSON:function(){for(var a=["year","month","day","hour","minute","second","isDate"],i=Object.create(null),n=0,r=a.length,o;n12||(r=n[a],a==2&&(r+=t.Time.isLeapYear(i))),r},t.Time.isLeapYear=function(a){return a<=1752?a%4==0:a%4==0&&a%100!=0||a%400==0},t.Time.fromDayOfYear=function(a,i){var n=i,r=a,o=new t.Time;o.auto_normalize=!1;var s=t.Time.isLeapYear(n)?1:0;if(r<1)return n--,s=t.Time.isLeapYear(n)?1:0,r+=t.Time.daysInYearPassedMonth[s][12],t.Time.fromDayOfYear(r,n);if(r>t.Time.daysInYearPassedMonth[s][12])return s=t.Time.isLeapYear(n)?1:0,r-=t.Time.daysInYearPassedMonth[s][12],n++,t.Time.fromDayOfYear(r,n);o.year=n,o.isDate=!0;for(var l=11;l>=0;l--)if(r>t.Time.daysInYearPassedMonth[s][l]){o.month=l+1,o.day=r-t.Time.daysInYearPassedMonth[s][l];break}return o.auto_normalize=!0,o},t.Time.fromStringv2=function(a){return new t.Time({year:parseInt(a.substr(0,4),10),month:parseInt(a.substr(5,2),10),day:parseInt(a.substr(8,2),10),isDate:!0})},t.Time.fromDateString=function(a){return new t.Time({year:t.helpers.strictParseInt(a.substr(0,4)),month:t.helpers.strictParseInt(a.substr(5,2)),day:t.helpers.strictParseInt(a.substr(8,2)),isDate:!0})},t.Time.fromDateTimeString=function(a,i){if(a.length<19)throw new Error('invalid date-time value: "'+a+'"');var n;a[19]&&a[19]==="Z"?n="Z":i&&(n=i.getParameter("tzid"));var r=new t.Time({year:t.helpers.strictParseInt(a.substr(0,4)),month:t.helpers.strictParseInt(a.substr(5,2)),day:t.helpers.strictParseInt(a.substr(8,2)),hour:t.helpers.strictParseInt(a.substr(11,2)),minute:t.helpers.strictParseInt(a.substr(14,2)),second:t.helpers.strictParseInt(a.substr(17,2)),timezone:n});return r},t.Time.fromString=function(a,i){return a.length>10?t.Time.fromDateTimeString(a,i):t.Time.fromDateString(a)},t.Time.fromJSDate=function(a,i){var n=new t.Time;return n.fromJSDate(a,i)},t.Time.fromData=function(a,i){var n=new t.Time;return n.fromData(a,i)},t.Time.now=function(){return t.Time.fromJSDate(new Date,!1)},t.Time.weekOneStarts=function(a,i){var n=t.Time.fromData({year:a,month:1,day:1,isDate:!0}),r=n.dayOfWeek(),o=i||t.Time.DEFAULT_WEEK_START;return r>t.Time.THURSDAY&&(n.day+=7),o>t.Time.THURSDAY&&(n.day-=7),n.day-=r-o,n},t.Time.getDominicalLetter=function(a){var i="GFEDCBA",n=(a+(a/4|0)+(a/400|0)-(a/100|0)-1)%7,r=t.Time.isLeapYear(a);return r?i[(n+6)%7]+i[n]:i[n]},t.Time.epochTime=t.Time.fromData({year:1970,month:1,day:1,hour:0,minute:0,second:0,isDate:!1,timezone:"Z"}),t.Time._cmp_attr=function(a,i,n){return a[n]>i[n]?1:a[n]4?_?n(u,1,2):n(u,3,2):null,second:f==4?n(u,2,2):f==6?n(u,4,2):f==8?n(u,6,2):null};return d=="Z"?d=t.Timezone.utcTimezone:d&&d[3]==":"?d=t.UtcOffset.fromString(d):d=null,new t.VCardTime(m,d,i)}}(),function(){var a={SU:t.Time.SUNDAY,MO:t.Time.MONDAY,TU:t.Time.TUESDAY,WE:t.Time.WEDNESDAY,TH:t.Time.THURSDAY,FR:t.Time.FRIDAY,SA:t.Time.SATURDAY},i={};for(var n in a)a.hasOwnProperty(n)&&(i[a[n]]=n);t.Recur=function(c){this.wrappedJSObject=this,this.parts={},c&&typeof c=="object"&&this.fromData(c)},t.Recur.prototype={parts:null,interval:1,wkst:t.Time.MONDAY,until:null,count:null,freq:null,icalclass:"icalrecur",icaltype:"recur",iterator:function(c){return new t.RecurIterator({rule:this,dtstart:c})},clone:function(){return new t.Recur(this.toJSON())},isFinite:function(){return!!(this.count||this.until)},isByCount:function(){return!!(this.count&&!this.until)},addComponent:function(c,f){var h=c.toUpperCase();h in this.parts?this.parts[h].push(f):this.parts[h]=[f]},setComponent:function(c,f){this.parts[c.toUpperCase()]=f.slice()},getComponent:function(c){var f=c.toUpperCase();return f in this.parts?this.parts[f].slice():[]},getNextOccurrence:function(c,f){var h=this.iterator(c),_;do _=h.next();while(_&&_.compare(f)<=0);return _&&f.zone&&(_.zone=f.zone),_},fromData:function(c){for(var f in c){var h=f.toUpperCase();h in u?Array.isArray(c[f])?this.parts[h]=c[f]:this.parts[h]=[c[f]]:this[f]=c[f]}this.interval&&typeof this.interval!="number"&&d.INTERVAL(this.interval,this),this.wkst&&typeof this.wkst!="number"&&(this.wkst=t.Recur.icalDayToNumericDay(this.wkst)),this.until&&!(this.until instanceof t.Time)&&(this.until=t.Time.fromString(this.until))},toJSON:function(){var c=Object.create(null);c.freq=this.freq,this.count&&(c.count=this.count),this.interval>1&&(c.interval=this.interval);for(var f in this.parts)if(this.parts.hasOwnProperty(f)){var h=this.parts[f];Array.isArray(h)&&h.length==1?c[f.toLowerCase()]=h[0]:c[f.toLowerCase()]=t.helpers.clone(this.parts[f])}return this.until&&(c.until=this.until.toString()),"wkst"in this&&this.wkst!==t.Time.DEFAULT_WEEK_START&&(c.wkst=t.Recur.numericDayToIcalDay(this.wkst)),c},toString:function(){var c="FREQ="+this.freq;this.count&&(c+=";COUNT="+this.count),this.interval>1&&(c+=";INTERVAL="+this.interval);for(var f in this.parts)this.parts.hasOwnProperty(f)&&(c+=";"+f+"="+this.parts[f]);return this.until&&(c+=";UNTIL="+this.until.toICALString()),"wkst"in this&&this.wkst!==t.Time.DEFAULT_WEEK_START&&(c+=";WKST="+t.Recur.numericDayToIcalDay(this.wkst)),c}};function r(c,f,h,_){var m=_;if(_[0]==="+"&&(m=_.substr(1)),m=t.helpers.strictParseInt(m),f!==void 0&&_ '+f);if(h!==void 0&&_>h)throw new Error(c+': invalid value "'+_+'" must be < '+f);return m}t.Recur.icalDayToNumericDay=function(c,f){var h=f||t.Time.SUNDAY;return(a[c]-h+7)%7+1},t.Recur.numericDayToIcalDay=function(c,f){var h=f||t.Time.SUNDAY,_=c+h-t.Time.SUNDAY;return _>7&&(_-=7),i[_]};var o=/^(SU|MO|TU|WE|TH|FR|SA)$/,s=/^([+-])?(5[0-3]|[1-4][0-9]|[1-9])?(SU|MO|TU|WE|TH|FR|SA)$/,l=["SECONDLY","MINUTELY","HOURLY","DAILY","WEEKLY","MONTHLY","YEARLY"],d={FREQ:function(c,f,h){if(l.indexOf(c)!==-1)f.freq=c;else throw new Error('invalid frequency "'+c+'" expected: "'+l.join(", ")+'"')},COUNT:function(c,f,h){f.count=t.helpers.strictParseInt(c)},INTERVAL:function(c,f,h){f.interval=t.helpers.strictParseInt(c),f.interval<1&&(f.interval=1)},UNTIL:function(c,f,h){c.length>10?f.until=t.design.icalendar.value["date-time"].fromICAL(c):f.until=t.design.icalendar.value.date.fromICAL(c),h||(f.until=t.Time.fromString(f.until))},WKST:function(c,f,h){if(o.test(c))f.wkst=t.Recur.icalDayToNumericDay(c);else throw new Error('invalid WKST value "'+c+'"')}},u={BYSECOND:r.bind(this,"BYSECOND",0,60),BYMINUTE:r.bind(this,"BYMINUTE",0,59),BYHOUR:r.bind(this,"BYHOUR",0,23),BYDAY:function(c){if(s.test(c))return c;throw new Error('invalid BYDAY value "'+c+'"')},BYMONTHDAY:r.bind(this,"BYMONTHDAY",-31,31),BYYEARDAY:r.bind(this,"BYYEARDAY",-366,366),BYWEEKNO:r.bind(this,"BYWEEKNO",-53,53),BYMONTH:r.bind(this,"BYMONTH",1,12),BYSETPOS:r.bind(this,"BYSETPOS",-366,366)};t.Recur.fromString=function(c){var f=t.Recur._stringToData(c,!1);return new t.Recur(f)},t.Recur.fromData=function(c){return new t.Recur(c)},t.Recur._stringToData=function(c,f){for(var h=Object.create(null),_=c.split(";"),m=_.length,p=0;p=0||s<0)&&(this.last.day+=s)}else{var l=t.Recur.numericDayToIcalDay(this.dtstart.dayOfWeek());i.BYDAY=[l]}if(this.rule.freq=="YEARLY"){for(;this.expand_year_days(this.last.year),!(this.days.length>0);)this.increment_year(this.rule.interval);this._nextByYearDay()}if(this.rule.freq=="MONTHLY"&&this.has_by_data("BYDAY")){var d=null,u=this.last.clone(),c=t.Time.daysInMonth(this.last.month,this.last.year);for(var f in this.by_data.BYDAY)if(this.by_data.BYDAY.hasOwnProperty(f)){this.last=u.clone();var n=this.ruleDayOfWeek(this.by_data.BYDAY[f]),r=n[0],o=n[1],h=this.last.nthWeekDay(o,r);if(r>=6||r<=-6)throw new Error("Malformed values in BYDAY part");if(h>c||h<=0){if(d&&d.month==u.month)continue;for(;h>c||h<=0;)this.increment_month(),c=t.Time.daysInMonth(this.last.month,this.last.year),h=this.last.nthWeekDay(o,r)}this.last.day=h,(!d||this.last.compare(d)<0)&&(d=this.last.clone())}if(this.last=d.clone(),this.has_by_data("BYMONTHDAY")&&this._byDayAndMonthDay(!0),this.last.day>c||this.last.day==0)throw new Error("Malformed values in BYDAY part")}else if(this.has_by_data("BYMONTHDAY")&&this.last.day<0){var c=t.Time.daysInMonth(this.last.month,this.last.year);this.last.day=c+this.last.day+1}},next:function(){var i=this.last?this.last.clone():null;if(this.rule.count&&this.occurrence_number>=this.rule.count||this.rule.until&&this.last.compare(this.rule.until)>0)return this.completed=!0,null;if(this.occurrence_number==0&&this.last.compare(this.dtstart)>=0)return this.occurrence_number++,this.last;var n;do switch(n=1,this.rule.freq){case"SECONDLY":this.next_second();break;case"MINUTELY":this.next_minute();break;case"HOURLY":this.next_hour();break;case"DAILY":this.next_day();break;case"WEEKLY":this.next_week();break;case"MONTHLY":n=this.next_month();break;case"YEARLY":this.next_year();break;default:return null}while(!this.check_contracting_rules()||this.last.compare(this.dtstart)<0||!n);if(this.last.compare(i)==0)throw new Error("Same occurrence found twice, protecting you from death by recursion");return this.rule.until&&this.last.compare(this.rule.until)>0?(this.completed=!0,null):(this.occurrence_number++,this.last)},next_second:function(){return this.next_generic("BYSECOND","SECONDLY","second","minute")},increment_second:function(i){return this.increment_generic(i,"second",60,"minute")},next_minute:function(){return this.next_generic("BYMINUTE","MINUTELY","minute","hour","next_second")},increment_minute:function(i){return this.increment_generic(i,"minute",60,"hour")},next_hour:function(){return this.next_generic("BYHOUR","HOURLY","hour","monthday","next_minute")},increment_hour:function(i){this.increment_generic(i,"hour",24,"monthday")},next_day:function(){"BYDAY"in this.by_data;var i=this.rule.freq=="DAILY";return this.next_hour()==0||(i?this.increment_monthday(this.rule.interval):this.increment_monthday(1)),0},next_week:function(){var i=0;if(this.next_weekday_by_week()==0)return i;if(this.has_by_data("BYWEEKNO")){++this.by_indices.BYWEEKNO,this.by_indices.BYWEEKNO==this.by_data.BYWEEKNO.length&&(this.by_indices.BYWEEKNO=0,i=1),this.last.month=1,this.last.day=1;var n=this.by_data.BYWEEKNO[this.by_indices.BYWEEKNO];this.last.day+=7*n,i&&this.increment_year(1)}else this.increment_monthday(7*this.rule.interval);return i},normalizeByMonthDayRules:function(i,n,r){for(var o=t.Time.daysInMonth(n,i),s=[],l=0,d=r.length,u;lo)){if(u<0)u=o+(u+1);else if(u===0)continue;s.indexOf(u)===-1&&s.push(u)}return s.sort(function(c,f){return c-f})},_byDayAndMonthDay:function(i){var n,r=this.by_data.BYDAY,o,s=0,l,d=r.length,u=0,c,f=this,h=this.last.day;function _(){for(c=t.Time.daysInMonth(f.last.month,f.last.year),n=f.normalizeByMonthDayRules(f.last.year,f.last.month,f.by_data.BYMONTHDAY),l=n.length;n[s]<=h&&!(i&&n[s]==h)&&sc){m();continue}var T=n[s++];if(T>=o)h=T;else{m();continue}for(var R=0;Rn&&(this.last.day=1,this.increment_month(),this.is_day_in_byday(this.last)?(!this.has_by_data("BYSETPOS")||this.check_set_position(1))&&(i=1):i=0)}else if(this.has_by_data("BYMONTHDAY")){this.by_indices.BYMONTHDAY++,this.by_indices.BYMONTHDAY>=this.by_data.BYMONTHDAY.length&&(this.by_indices.BYMONTHDAY=0,this.increment_month());var n=t.Time.daysInMonth(this.last.month,this.last.year),l=this.by_data.BYMONTHDAY[this.by_indices.BYMONTHDAY];l<0&&(l=n+l+1),l>n?(this.last.day=1,i=this.is_day_in_byday(this.last)):this.last.day=l}else{this.increment_month();var n=t.Time.daysInMonth(this.last.month,this.last.year);this.by_data.BYMONTHDAY[0]>n?i=0:this.last.day=this.by_data.BYMONTHDAY[0]}return i},next_weekday_by_week:function(){var i=0;if(this.next_hour()==0)return i;if(!this.has_by_data("BYDAY"))return 1;for(;;){var n=new t.Time;this.by_indices.BYDAY++,this.by_indices.BYDAY==Object.keys(this.by_data.BYDAY).length&&(this.by_indices.BYDAY=0,i=1);var r=this.by_data.BYDAY[this.by_indices.BYDAY],o=this.ruleDayOfWeek(r),s=o[1];s-=this.rule.wkst,s<0&&(s+=7),n.year=this.last.year,n.month=this.last.month,n.day=this.last.day;var l=n.startDoyWeek(this.rule.wkst);if(!(s+l<1&&!i)){var d=t.Time.fromDayOfYear(l+s,this.last.year);return this.last.year=d.year,this.last.month=d.month,this.last.day=d.day,i}}},next_year:function(){if(this.next_hour()==0)return 0;if(++this.days_index==this.days.length){this.days_index=0;do this.increment_year(this.rule.interval),this.expand_year_days(this.last.year);while(this.days.length==0)}return this._nextByYearDay(),1},_nextByYearDay:function(){var i=this.days[this.days_index],n=this.last.year;i<1&&(i+=1,n+=1);var r=t.Time.fromDayOfYear(i,n);this.last.day=r.day,this.last.month=r.month},ruleDayOfWeek:function(i,n){var r=i.match(/([+-]?[0-9])?(MO|TU|WE|TH|FR|SA|SU)/);if(r){var o=parseInt(r[1]||0,10);return i=t.Recur.icalDayToNumericDay(r[2],n),[o,i]}else return[0,0]},next_generic:function(i,n,r,o,s){var l=i in this.by_data,d=this.rule.freq==n,u=0;if(s&&this[s]()==0)return u;if(l){this.by_indices[i]++,this.by_indices[i];var c=this.by_data[i];this.by_indices[i]==c.length&&(this.by_indices[i]=0,u=1),this.last[r]=c[this.by_indices[i]]}else d&&this["increment_"+r](this.rule.interval);return l&&u&&d&&this["increment_"+o](1),u},increment_monthday:function(i){for(var n=0;nr&&(this.last.day-=r,this.increment_month())}},increment_month:function(){if(this.last.day=1,this.has_by_data("BYMONTH"))this.by_indices.BYMONTH++,this.by_indices.BYMONTH==this.by_data.BYMONTH.length&&(this.by_indices.BYMONTH=0,this.increment_year(1)),this.last.month=this.by_data.BYMONTH[this.by_indices.BYMONTH];else{this.rule.freq=="MONTHLY"?this.last.month+=this.rule.interval:this.last.month++,this.last.month--;var i=t.helpers.trunc(this.last.month/12);this.last.month%=12,this.last.month++,i!=0&&this.increment_year(i)}},increment_year:function(i){this.last.year+=i},increment_generic:function(i,n,r,o){this.last[n]+=i;var s=t.helpers.trunc(this.last[n]/r);this.last[n]%=r,s!=0&&this["increment_"+o](s)},has_by_data:function(i){return i in this.rule.parts},expand_year_days:function(i){var n=new t.Time;this.days=[];var r={},o=["BYDAY","BYWEEKNO","BYMONTHDAY","BYMONTH","BYYEARDAY"];for(var s in o)if(o.hasOwnProperty(s)){var l=o[s];l in this.rule.parts&&(r[l]=this.rule.parts[l])}if("BYMONTH"in r&&"BYWEEKNO"in r){var d=1,u={};n.year=i,n.isDate=!0;for(var c=0;c0?(z=re+(U-1)*7,z<=M&&this.days.push(D+z)):(z=O+(U+1)*7,z>0&&this.days.push(D+z))}}this.days.sort(function(Ze,Re){return Ze-Re})}else if(T==2&&"BYDAY"in r&&"BYMONTHDAY"in r){var ge=this.expand_by_day(i);for(var Se in ge)if(ge.hasOwnProperty(Se)){var L=ge[Se],Fe=t.Time.fromDayOfYear(L,i);this.by_data.BYMONTHDAY.indexOf(Fe.day)>=0&&this.days.push(L)}}else if(T==3&&"BYDAY"in r&&"BYMONTHDAY"in r&&"BYMONTH"in r){var ge=this.expand_by_day(i);for(var Se in ge)if(ge.hasOwnProperty(Se)){var L=ge[Se],Fe=t.Time.fromDayOfYear(L,i);this.by_data.BYMONTH.indexOf(Fe.month)>=0&&this.by_data.BYMONTHDAY.indexOf(Fe.day)>=0&&this.days.push(L)}}else if(T==2&&"BYDAY"in r&&"BYWEEKNO"in r){var ge=this.expand_by_day(i);for(var Se in ge)if(ge.hasOwnProperty(Se)){var L=ge[Se],Fe=t.Time.fromDayOfYear(L,i),p=Fe.weekNumber(this.rule.wkst);this.by_data.BYWEEKNO.indexOf(p)&&this.days.push(L)}}else T==3&&"BYDAY"in r&&"BYWEEKNO"in r&&"BYMONTHDAY"in r||(T==1&&"BYYEARDAY"in r?this.days=this.days.concat(this.by_data.BYYEARDAY):this.days=[]);return 0},expand_by_day:function(i){var n=[],r=this.last.clone();r.year=i,r.month=1,r.day=1,r.isDate=!0;var o=r.dayOfWeek();r.month=12,r.day=31,r.isDate=!0;var s=r.dayOfWeek(),l=r.dayOfYear();for(var d in this.by_data.BYDAY)if(this.by_data.BYDAY.hasOwnProperty(d)){var u=this.by_data.BYDAY[d],c=this.ruleDayOfWeek(u),f=c[0],h=c[1];if(f==0)for(var _=(h+7-o)%7+1,m=_;m<=l;m+=7)n.push(m);else if(f>0){var p;h>=o?p=h-o+1:p=h-o+8,n.push(p+(f-1)*7)}else{var T;f=-f,h<=s?T=l-s+h:T=l-s+h-7,n.push(T-(f-1)*7)}}return n},is_day_in_byday:function(i){for(var n in this.by_data.BYDAY)if(this.by_data.BYDAY.hasOwnProperty(n)){var r=this.by_data.BYDAY[n],o=this.ruleDayOfWeek(r),s=o[0],l=o[1],d=i.dayOfWeek();if(s==0&&l==d||i.nthWeekDay(l,s)==i.day)return 1}return 0},check_set_position:function(i){if(this.has_by_data("BYSETPOS")){var n=this.by_data.BYSETPOS.indexOf(i);return n!==-1}return!1},sort_byday_rules:function(i){for(var n=0;ns){var l=i[n];i[n]=i[r],i[r]=l}}},check_contract_restriction:function(i,n){var r=a._indexMap[i],o=a._expandMap[this.rule.freq][r],s=!1;if(i in this.by_data&&o==a.CONTRACT){var l=this.by_data[i];for(var d in l)if(l.hasOwnProperty(d)&&l[d]==n){s=!0;break}}else s=!0;return s},check_contracting_rules:function(){var i=this.last.dayOfWeek(),n=this.last.weekNumber(this.rule.wkst),r=this.last.dayOfYear();return this.check_contract_restriction("BYSECOND",this.last.second)&&this.check_contract_restriction("BYMINUTE",this.last.minute)&&this.check_contract_restriction("BYHOUR",this.last.hour)&&this.check_contract_restriction("BYDAY",t.Recur.numericDayToIcalDay(i))&&this.check_contract_restriction("BYWEEKNO",n)&&this.check_contract_restriction("BYMONTHDAY",this.last.day)&&this.check_contract_restriction("BYMONTH",this.last.month)&&this.check_contract_restriction("BYYEARDAY",r)},setup_defaults:function(i,n,r){var o=a._indexMap[i],s=a._expandMap[this.rule.freq][o];return s!=a.CONTRACT&&(i in this.by_data||(this.by_data[i]=[r]),this.rule.freq!=n)?this.by_data[i][0]:r},toJSON:function(){var i=Object.create(null);return i.initialized=this.initialized,i.rule=this.rule.toJSON(),i.dtstart=this.dtstart.toJSON(),i.by_data=this.by_data,i.days=this.days,i.last=this.last.toJSON(),i.by_indices=this.by_indices,i.occurrence_number=this.occurrence_number,i}},a._indexMap={BYSECOND:0,BYMINUTE:1,BYHOUR:2,BYDAY:3,BYMONTHDAY:4,BYYEARDAY:5,BYWEEKNO:6,BYMONTH:7,BYSETPOS:8},a._expandMap={SECONDLY:[1,1,1,1,1,1,1,1],MINUTELY:[2,1,1,1,1,1,1,1],HOURLY:[2,2,1,1,1,1,1,1],DAILY:[2,2,2,1,1,1,1,1],WEEKLY:[2,2,2,2,3,3,1,1],MONTHLY:[2,2,2,2,2,3,3,1],YEARLY:[2,2,2,2,2,2,2,2]},a.UNKNOWN=0,a.CONTRACT=1,a.EXPAND=2,a.ILLEGAL=3,a}(),t.RecurExpansion=function(){function a(o){return t.helpers.formatClassType(o,t.Time)}function i(o,s){return o.compare(s)}function n(o){return o.hasProperty("rdate")||o.hasProperty("rrule")||o.hasProperty("recurrence-id")}function r(o){this.ruleDates=[],this.exDates=[],this.fromData(o)}return r.prototype={complete:!1,ruleIterators:null,ruleDates:null,exDates:null,ruleDateInc:0,exDateInc:0,exDate:null,ruleDate:null,dtstart:null,last:null,fromData:function(o){var s=t.helpers.formatClassType(o.dtstart,t.Time);if(s)this.dtstart=s;else throw new Error(".dtstart (ICAL.Time) must be given");if(o.component)this._init(o.component);else{if(this.last=a(o.last)||s.clone(),!o.ruleIterators)throw new Error(".ruleIterators or .component must be given");this.ruleIterators=o.ruleIterators.map(function(l){return t.helpers.formatClassType(l,t.RecurIterator)}),this.ruleDateInc=o.ruleDateInc,this.exDateInc=o.exDateInc,o.ruleDates&&(this.ruleDates=o.ruleDates.map(a),this.ruleDate=this.ruleDates[this.ruleDateInc]),o.exDates&&(this.exDates=o.exDates.map(a),this.exDate=this.exDates[this.exDateInc]),typeof o.complete<"u"&&(this.complete=o.complete)}},next:function(){for(var o,s,l,d=500,u=0;;){if(u++>d)throw new Error("max tries have occured, rule may be impossible to forfill.");if(s=this.ruleDate,o=this._nextRecurrenceIter(this.last),!s&&!o){this.complete=!0;break}if((!s||o&&s.compare(o.last)>0)&&(s=o.last.clone(),o.next()),this.ruleDate===s&&this._nextRuleDay(),this.last=s,this.exDate&&(l=this.exDate.compare(this.last),l<0&&this._nextExDay(),l===0)){this._nextExDay();continue}return this.last}},toJSON:function(){function o(l){return l.toJSON()}var s=Object.create(null);return s.ruleIterators=this.ruleIterators.map(o),this.ruleDates&&(s.ruleDates=this.ruleDates.map(o)),this.exDates&&(s.exDates=this.exDates.map(o)),s.ruleDateInc=this.ruleDateInc,s.exDateInc=this.exDateInc,s.last=this.last.toJSON(),s.dtstart=this.dtstart.toJSON(),s.complete=this.complete,s},_extractDates:function(o,s){function l(_){h=t.helpers.binsearchInsert(d,_,i),d.splice(h,0,_)}for(var d=[],u=o.getAllProperties(s),c=u.length,f=0,h;f0)&&(c=l)}return c}},r}(),t.Event=function(){function a(n,r){n instanceof t.Component||(r=n,n=null),n?this.component=n:this.component=new t.Component("vevent"),this._rangeExceptionCache=Object.create(null),this.exceptions=Object.create(null),this.rangeExceptions=[],r&&r.strictExceptions&&(this.strictExceptions=r.strictExceptions),r&&r.exceptions?r.exceptions.forEach(this.relateException,this):this.component.parent&&!this.isRecurrenceException()&&this.component.parent.getAllSubcomponents("vevent").forEach(function(o){o.hasProperty("recurrence-id")&&this.relateException(o)},this)}a.prototype={THISANDFUTURE:"THISANDFUTURE",exceptions:null,strictExceptions:!1,relateException:function(n){if(this.isRecurrenceException())throw new Error("cannot relate exception to exceptions");if(n instanceof t.Component&&(n=new t.Event(n)),this.strictExceptions&&n.uid!==this.uid)throw new Error("attempted to relate unrelated exception");var r=n.recurrenceId.toString();if(this.exceptions[r]=n,n.modifiesFuture()){var o=[n.recurrenceId.toUnixTime(),r],s=t.helpers.binsearchInsert(this.rangeExceptions,o,i);this.rangeExceptions.splice(s,0,o)}},modifiesFuture:function(){if(!this.component.hasProperty("recurrence-id"))return!1;var n=this.component.getFirstProperty("recurrence-id").getParameter("range");return n===this.THISANDFUTURE},findRangeException:function(n){if(!this.rangeExceptions.length)return null;var r=n.toUnixTime(),o=t.helpers.binsearchInsert(this.rangeExceptions,[r],i);if(o-=1,o<0)return null;var s=this.rangeExceptions[o];return rr[0]?1:r[0]>n[0]?-1:0}return a}(),t.ComponentParser=function(){function a(i){typeof i>"u"&&(i={});var n;for(n in i)i.hasOwnProperty(n)&&(this[n]=i[n])}return a.prototype={parseEvent:!0,parseTimezone:!0,oncomplete:function(){},onerror:function(i){},ontimezone:function(i){},onevent:function(i){},process:function(i){typeof i=="string"&&(i=t.parse(i)),i instanceof t.Component||(i=new t.Component(i));for(var n=i.getAllSubcomponents(),r=0,o=n.length,s;r0)return this.value[0]}else return this.value;return null}*getValueIterator(){this.isMultiValue()?yield*this.value.slice()[Symbol.iterator]():yield this.value}isMultiValue(){return Array.isArray(this._value)}clone(){const t=new this.constructor(this._name);return this.isMultiValue()?t.value=this._value.slice():t.value=this._value,t}_modifyContent(){super._modifyContent(),this._notifySubscribers()}}class Yt extends Ao(yo(class{})){constructor(t){if(new.target===Yt)throw new TypeError("Cannot instantiate abstract class AbstractValue");super(),this._innerValue=t}toICALJs(){return this._innerValue}_modifyContent(){super._modifyContent(),this._notifySubscribers()}}class pt extends Yt{get rawValue(){return this._innerValue.value}set rawValue(t){this._modifyContent(),this._innerValue.value=t}get value(){return this._innerValue.decodeValue()}set value(t){this._modifyContent(),this._innerValue.setEncodedValue(t)}clone(){return pt.fromRawValue(this._innerValue.value)}static fromICALJs(t){return new pt(t)}static fromRawValue(t){const a=new me.Binary(t);return pt.fromICALJs(a)}static fromDecodedValue(t){const a=new me.Binary;return a.setEncodedValue(t),pt.fromICALJs(a)}}class Lt extends Yt{get weeks(){return this._innerValue.weeks}set weeks(t){if(this._modifyContent(),t<0)throw new TypeError("Weeks cannot be negative, use isNegative instead");this._innerValue.weeks=t}get days(){return this._innerValue.days}set days(t){if(this._modifyContent(),t<0)throw new TypeError("Days cannot be negative, use isNegative instead");this._innerValue.days=t}get hours(){return this._innerValue.hours}set hours(t){if(this._modifyContent(),t<0)throw new TypeError("Hours cannot be negative, use isNegative instead");this._innerValue.hours=t}get minutes(){return this._innerValue.minutes}set minutes(t){if(this._modifyContent(),t<0)throw new TypeError("Minutes cannot be negative, use isNegative instead");this._innerValue.minutes=t}get seconds(){return this._innerValue.seconds}set seconds(t){if(this._modifyContent(),t<0)throw new TypeError("Seconds cannot be negative, use isNegative instead");this._innerValue.seconds=t}get isNegative(){return this._innerValue.isNegative}set isNegative(t){this._modifyContent(),this._innerValue.isNegative=!!t}get totalSeconds(){return this._innerValue.toSeconds()}set totalSeconds(t){this._modifyContent(),this._innerValue.fromSeconds(t)}compare(t){return this._innerValue.compare(t.toICALJs())}addDuration(t){this._modifyContent(),this.totalSeconds+=t.totalSeconds,this._innerValue.normalize()}subtractDuration(t){this._modifyContent(),this.totalSeconds-=t.totalSeconds,this._innerValue.normalize()}clone(){return Lt.fromICALJs(this._innerValue.clone())}static fromICALJs(t){return new Lt(t)}static fromSeconds(t){const a=me.Duration.fromSeconds(t);return new Lt(a)}static fromData(t){const a=me.Duration.fromData(t);return new Lt(a)}}class Te extends Yt{get year(){return this._innerValue.year}set year(t){this._modifyContent(),this._innerValue.year=t}get month(){return this._innerValue.month}set month(t){if(this._modifyContent(),t<1||t>12)throw new TypeError("Month out of range");this._innerValue.month=t}get day(){return this._innerValue.day}set day(t){if(this._modifyContent(),t<1||t>31)throw new TypeError("Day out of range");this._innerValue.day=t}get hour(){return this._innerValue.hour}set hour(t){if(this._modifyContent(),t<0||t>23)throw new TypeError("Hour out of range");this._innerValue.hour=t}get minute(){return this._innerValue.minute}set minute(t){if(this._modifyContent(),t<0||t>59)throw new TypeError("Minute out of range");this._innerValue.minute=t}get second(){return this._innerValue.second}set second(t){if(this._modifyContent(),t<0||t>59)throw new TypeError("Second out of range");this._innerValue.second=t}get timezoneId(){return this._innerValue.zone.tzid&&this._innerValue.zone.tzid!=="floating"&&this._innerValue.zone.tzid==="UTC"?this._innerValue.zone.tzid:this._innerValue.timezone?this._innerValue.timezone:this._innerValue.zone.tzid||null}get isDate(){return this._innerValue.isDate}set isDate(t){this._modifyContent(),this._innerValue.isDate=!!t,t&&(this._innerValue.hour=0,this._innerValue.minute=0,this._innerValue.second=0)}get unixTime(){return this._innerValue.toUnixTime()}get jsDate(){return this._innerValue.toJSDate()}addDuration(t){this._innerValue.addDuration(t.toICALJs())}subtractDateWithoutTimezone(t){const a=this._innerValue.subtractDate(t.toICALJs());return Lt.fromICALJs(a)}subtractDateWithTimezone(t){const a=this._innerValue.subtractDateTz(t.toICALJs());return Lt.fromICALJs(a)}compare(t){return this._innerValue.compare(t.toICALJs())}compareDateOnlyInGivenTimezone(t,a){return this._innerValue.compareDateOnlyTz(t.toICALJs(),a.toICALTimezone())}getInTimezone(t){const a=this._innerValue.convertToZone(t.toICALTimezone());return Te.fromICALJs(a)}getICALTimezone(){return this._innerValue.zone}getInICALTimezone(t){const a=this._innerValue.convertToZone(t);return Te.fromICALJs(a)}getInUTC(){const t=this._innerValue.convertToZone(me.Timezone.utcTimezone);return Te.fromICALJs(t)}silentlyReplaceTimezone(t){this._modify(),this._innerValue=new me.Time({year:this.year,month:this.month,day:this.day,hour:this.hour,minute:this.minute,second:this.second,isDate:this.isDate,timezone:t})}replaceTimezone(t){this._modifyContent(),this._innerValue=me.Time.fromData({year:this.year,month:this.month,day:this.day,hour:this.hour,minute:this.minute,second:this.second,isDate:this.isDate},t.toICALTimezone())}utcOffset(){return this._innerValue.utcOffset()}isFloatingTime(){return this._innerValue.zone.tzid==="floating"}clone(){return Te.fromICALJs(this._innerValue.clone())}static fromICALJs(t){return new Te(t)}static fromJSDate(t,a=!1){const i=me.Time.fromJSDate(t,a);return Te.fromICALJs(i)}static fromData(t,a){const i=me.Time.fromData(t,a?a.toICALTimezone():void 0);return Te.fromICALJs(i)}}Te.SUNDAY=me.Time.SUNDAY,Te.MONDAY=me.Time.MONDAY,Te.TUESDAY=me.Time.TUESDAY,Te.WEDNESDAY=me.Time.WEDNESDAY,Te.THURSDAY=me.Time.THURSDAY,Te.FRIDAY=me.Time.FRIDAY,Te.SATURDAY=me.Time.SATURDAY,Te.DEFAULT_WEEK_START=Te.MONDAY;class Tt extends Yt{constructor(...t){super(...t),this._start=Te.fromICALJs(this._innerValue.start),this._end=null,this._duration=null}get start(){return this._start}set start(t){this._modifyContent(),this._start=t,this._innerValue.start=t.toICALJs()}get end(){return this._end||(this._duration&&(this._duration.lock(),this._duration=null),this._innerValue.end=this._innerValue.getEnd(),this._end=Te.fromICALJs(this._innerValue.end),this._innerValue.duration=null,this.isLocked()&&this._end.lock()),this._end}set end(t){this._modifyContent(),this._innerValue.duration=null,this._innerValue.end=t.toICALJs(),this._end=t}get duration(){return this._duration||(this._end&&(this._end.lock(),this._end=null),this._innerValue.duration=this._innerValue.getDuration(),this._duration=Lt.fromICALJs(this._innerValue.duration),this._innerValue.end=null,this.isLocked()&&this._duration.lock()),this._duration}set duration(t){this._modifyContent(),this._innerValue.end=null,this._innerValue.duration=t.toICALJs(),this._duration=t}lock(){super.lock(),this.start.lock(),this._end&&this._end.lock(),this._duration&&this._duration.lock()}unlock(){super.unlock(),this.start.unlock(),this._end&&this._end.unlock(),this._duration&&this._duration.unlock()}clone(){return Tt.fromICALJs(this._innerValue.clone())}static fromICALJs(t){return new Tt(t)}static fromDataWithEnd(t){const a=me.Period.fromData({start:t.start.toICALJs(),end:t.end.toICALJs()});return Tt.fromICALJs(a)}static fromDataWithDuration(t){const a=me.Period.fromData({start:t.start.toICALJs(),duration:t.duration.toICALJs()});return Tt.fromICALJs(a)}}const IE=["SECONDLY","MINUTELY","HOURLY","DAILY","WEEKLY","MONTHLY","YEARLY"];class Pn extends Yt{constructor(t,a){super(t),this._until=a}get interval(){return this._innerValue.interval}set interval(t){this._modifyContent(),this._innerValue.interval=parseInt(t,10)}get weekStart(){return this._innerValue.wkst}set weekStart(t){if(this._modifyContent(),tTe.SATURDAY)throw new TypeError("Weekstart out of range");this._innerValue.wkst=t}get until(){return!this._until&&this._innerValue.until&&(this._until=Te.fromICALJs(this._innerValue.until)),this._until}set until(t){this._modifyContent(),this._until&&this._until.lock(),this._until=t,this._innerValue.count=null,this._innerValue.until=t.toICALJs()}get count(){return this._innerValue.count}set count(t){this._modifyContent(),this._until&&(this._until.lock(),this._until=null),this._innerValue.until=null,this._innerValue.count=parseInt(t,10)}get frequency(){return this._innerValue.freq}set frequency(t){if(this._modifyContent(),!IE.includes(t))throw new TypeError("Unknown frequency");this._innerValue.freq=t}setToInfinite(){this._modifyContent(),this._until&&(this._until.lock(),this._until=null),this._innerValue.until=null,this._innerValue.count=null}isFinite(){return this._innerValue.isFinite()}isByCount(){return this._innerValue.isByCount()}addComponent(t,a){this._modifyContent(),this._innerValue.addComponent(t,a)}setComponent(t,a){this._modifyContent(),a.length===0?delete this._innerValue.parts[t.toUpperCase()]:this._innerValue.setComponent(t,a)}removeComponent(t){delete this._innerValue.parts[Ce(t)]}getComponent(t){return this._innerValue.getComponent(t)}isRuleValid(){return!0}lock(){super.lock(),this._until&&this._until.lock()}unlock(){super.unlock(),this._until&&this._until.unlock()}clone(){return Pn.fromICALJs(this._innerValue.clone())}static fromICALJs(t,a=null){return new Pn(t,a)}static fromData(t){let a=null;t.until&&(a=t.until,t.until=t.until.toICALJs());const i=me.Recur.fromData(t);return Pn.fromICALJs(i,a)}}class zi extends Yt{get hours(){return this._innerValue.hours}set hours(t){this._modifyContent(),this._innerValue.hours=t}get minutes(){return this._innerValue.minutes}set minutes(t){this._modifyContent(),this._innerValue.minutes=t}get factor(){return this._innerValue.factor}set factor(t){if(this._modifyContent(),t!==1&&t!==-1)throw new TypeError("Factor may only be set to 1 or -1");this._innerValue.factor=t}get totalSeconds(){return this._innerValue.toSeconds()}set totalSeconds(t){this._modifyContent(),this._innerValue.fromSeconds(t)}compare(t){return this._innerValue.compare(t.toICALJs())}clone(){return zi.fromICALJs(this._innerValue.clone())}static fromICALJs(t){return new zi(t)}static fromData(t){const a=new me.UtcOffset;return a.fromData(t),zi.fromICALJs(a)}static fromSeconds(t){const a=me.UtcOffset.fromSeconds(t);return zi.fromICALJs(a)}}class jE extends Error{}function PE(e){switch(ra(e)){case"binary":return pt;case"date":case"date-time":return Te;case"duration":return Lt;case"period":return Tt;case"recur":return Pn;case"utc-offset":return zi;default:throw new jE}}class Dt extends Ao(yo(class{})){constructor(t,a=null,i=[],n=null,r=null){super(),this._name=Ce(t),this._value=a,this._parameters=new Map,this._root=n,this._parent=r,this._setParametersFromConstructor(i),a instanceof Yt&&a.subscribe(()=>this._notifySubscribers())}get name(){return this._name}get value(){return this._value}set value(t){this._modifyContent(),this._value=t,t instanceof Yt&&t.subscribe(()=>this._notifySubscribers())}get root(){return this._root}set root(t){this._modify(),this._root=t}get parent(){return this._parent}set parent(t){this._modify(),this._parent=t}getFirstValue(){if(this.isMultiValue()){if(this.value.length>0)return this.value[0]}else return this.value;return null}*getValueIterator(){this.isMultiValue()?yield*this.value.slice()[Symbol.iterator]():yield this.value}addValue(t){if(!this.isMultiValue())throw new TypeError("This is not a multivalue property");this._modifyContent(),this.value.push(t)}hasValue(t){if(!this.isMultiValue())throw new TypeError("This is not a multivalue property");return this.value.includes(t)}removeValue(t){if(!this.hasValue(t))return;this._modifyContent();const a=this.value.indexOf(t);this.value.splice(a,1)}setParameter(t){this._modify(),this._parameters.set(t.name,t),t.subscribe(()=>this._notifySubscribers())}getParameter(t){return this._parameters.get(Ce(t))}*getParametersIterator(){yield*this._parameters.values()}getParameterFirstValue(t){const a=this.getParameter(t);return a instanceof xn?a.isMultiValue()?a.value[0]:a.value:null}hasParameter(t){return this._parameters.has(Ce(t))}deleteParameter(t){this._modify(),this._parameters.delete(Ce(t))}updateParameterIfExist(t,a){if(this._modify(),this.hasParameter(t)){const i=this.getParameter(t);i.value=a}else{const i=new xn(Ce(t),a);this.setParameter(i)}}isMultiValue(){return Array.isArray(this._value)}isDecoratedValue(){return this.isMultiValue()?this._value[0]instanceof Yt:this._value instanceof Yt}lock(){super.lock();for(const t of this.getParametersIterator())t.lock();if(this.isDecoratedValue())for(const t of this.getValueIterator())t.lock()}unlock(){super.unlock();for(const t of this.getParametersIterator())t.unlock();if(this.isDecoratedValue())for(const t of this.getValueIterator())t.unlock()}clone(){const t=[];for(const a of this.getParametersIterator())t.push(a.clone());return new this.constructor(this.name,this._cloneValue(),t,this.root,this.parent)}_cloneValue(){return this.isDecoratedValue()?this.isMultiValue()?this._value.map(t=>t.clone()):this._value.clone():this.isMultiValue()?this._value.slice():this._value}_setParametersFromConstructor(t){t.forEach(a=>{a instanceof xn||(a=new xn(a[0],a[1])),this.setParameter(a)})}static fromICALJs(t,a=null,i=null){if(!(t instanceof me.Property))throw new vf;let n;if(t.isDecorated){const o=PE(t.getFirstValue().icaltype);t.isMultiValue?n=t.getValues().map(s=>o.fromICALJs(s)):n=o.fromICALJs(t.getFirstValue())}else t.isMultiValue?n=t.getValues():n=t.getFirstValue();const r=[];return Object.keys(Object.assign({},t.toJSON()[1])).forEach(o=>{Ce(o)!=="TZID"&&r.push([o,t.getParameter(o)])}),new this(t.name,n,r,a,i)}toICALJs(){const t=cu(ra(this.name));this.isMultiValue()?this.isDecoratedValue()?t.setValues(this.value.map(i=>i.toICALJs())):t.setValues(this.value):this.isDecoratedValue()?t.setValue(this.value.toICALJs()):t.setValue(this.value);for(const i of this.getParametersIterator())t.setParameter(ra(i.name),i.value);const a=this.getFirstValue();return a instanceof Te&&a.timezoneId!=="floating"&&a.timezoneId!=="UTC"&&!a.isDate&&t.setParameter("tzid",a.timezoneId),t}_modifyContent(){super._modifyContent(),this._notifySubscribers()}}class ki extends Dt{get formatType(){return this.getParameterFirstValue("FMTTYPE")}set formatType(t){this.updateParameterIfExist("FMTTYPE",t)}get uri(){return this._value instanceof pt?null:this._value}set uri(t){this.value=t}get encoding(){return this._value instanceof pt?"BASE64":null}get data(){return this._value instanceof pt?this._value.value:null}set data(t){this.value instanceof pt?this.value.value=t:this.value=pt.fromDecodedValue(t)}toICALJs(){const t=super.toICALJs();return this._value instanceof pt&&this.getParameterFirstValue("ENCODING")!=="BASE64"&&t.setParameter("ENCODING","BASE64"),t}static fromData(t,a=null){const i=pt.fromDecodedValue(t),n=new ki("ATTACH",i);return a&&(n.formatType=a),n}static fromLink(t,a=null){const i=new ki("ATTACH",t);return a&&(i.formatType=a),i}}class na extends Dt{get role(){const t=["CHAIR","REQ-PARTICIPANT","OPT-PARTICIPANT","NON-PARTICIPANT"],a="REQ-PARTICIPANT";if(this.hasParameter("ROLE")){const i=this.getParameterFirstValue("ROLE");if(t.includes(i))return i}return a}set role(t){this.updateParameterIfExist("ROLE",t)}get userType(){const t=["INDIVIDUAL","GROUP","RESOURCE","ROOM","UNKNOWN"];if(this.hasParameter("CUTYPE")){const a=this.getParameterFirstValue("CUTYPE");return t.includes(a)?a:"UNKNOWN"}else return"INDIVIDUAL"}set userType(t){this.updateParameterIfExist("CUTYPE",t)}get rsvp(){if(this.hasParameter("RSVP")){const t=this.getParameterFirstValue("RSVP");return Ce(t)==="TRUE"}else return!1}set rsvp(t){this.updateParameterIfExist("RSVP",t?"TRUE":"FALSE")}get commonName(){return this.getParameterFirstValue("CN")}set commonName(t){this.updateParameterIfExist("CN",t)}get participationStatus(){let t;this.parent?t=this.parent.name:t="VEVENT";const a={VEVENT:["NEEDS-ACTION","ACCEPTED","DECLINED","TENTATIVE","DELEGATED"],VJOURNAL:["NEEDS-ACTION","ACCEPTED","DECLINED"],VTODO:["NEEDS-ACTION","ACCEPTED","DECLINED","TENTATIVE","DELEGATED","COMPLETED","IN-PROCESS"]};if(this.hasParameter("PARTSTAT")){const i=this.getParameterFirstValue("PARTSTAT");return a[t].includes(i)?i:"NEEDS-ACTION"}else return"NEEDS-ACTION"}set participationStatus(t){this.updateParameterIfExist("PARTSTAT",t)}get language(){return this.getParameterFirstValue("LANGUAGE")}set language(t){this.updateParameterIfExist("LANGUAGE",t)}get email(){return this.value}set email(t){this.value=Y0(t,"mailto:")}get member(){return this.getParameter("MEMBER")?.value??null}set member(t){t=t.map(a=>Y0(a,"mailto:")),this.updateParameterIfExist("MEMBER",t)}isOrganizer(){return this._name==="ORGANIZER"}static fromNameAndEMail(t,a,i=!1){const n=i?"ORGANIZER":"ATTENDEE";return a=Y0(a,"mailto:"),new na(n,a,[["CN",t]])}static fromNameEMailRoleUserTypeAndRSVP(t,a,i,n,r,o=!1){const s=o?"ORGANIZER":"ATTENDEE";return a=Y0(a,"mailto:"),new na(s,a,[["CN",t],["ROLE",i],["CUTYPE",n],["RSVP",r?"TRUE":"FALSE"]])}}me.design.icalendar.property.conference={defaultType:"uri"},me.design.icalendar.param.feature={valueType:"cal-address",multiValue:","};class b0 extends Dt{*getFeatureIterator(){this.hasParameter("FEATURE")&&(yield*this.getParameter("FEATURE").getValueIterator())}listAllFeatures(){return this.hasParameter("FEATURE")?this.getParameter("FEATURE").value.slice():[]}addFeature(t){if(this._modify(),!this.hasParameter("FEATURE"))this.updateParameterIfExist("FEATURE",[t]);else{if(this.hasFeature(t))return;this.getParameter("FEATURE").value.push(t)}}removeFeature(t){if(this._modify(),!this.hasFeature(t))return;const a=this.getParameter("FEATURE"),i=a.value.indexOf(t);a.value.splice(i,1)}clearAllFeatures(){this.deleteParameter("FEATURE")}hasFeature(t){if(!this.hasParameter("FEATURE"))return!1;const a=this.getParameter("FEATURE");return Array.isArray(a.value)?a.value.includes(t):!1}get label(){return this.getParameterFirstValue("LABEL")}set label(t){this.updateParameterIfExist("LABEL",t)}get uri(){return this.value}set uri(t){this.value=t}toICALJs(){const t=super.toICALJs();return t.setParameter("value","URI"),t}static fromURILabelAndFeatures(t,a=null,i=null){const n=new b0("CONFERENCE",t);return a&&n.updateParameterIfExist("label",a),i&&n.updateParameterIfExist("feature",i),n}}class hu extends Dt{get type(){const t=["FREE","BUSY","BUSY-UNAVAILABLE","BUSY-TENTATIVE"],a="BUSY";if(this.hasParameter("FBTYPE")){const i=this.getParameterFirstValue("FBTYPE");if(t.includes(i))return i}return a}set type(t){this.updateParameterIfExist("FBTYPE",t)}static fromPeriodAndType(t,a){return new hu("FREEBUSY",t,[["fbtype",a]])}}class y0 extends Dt{constructor(t,a=[0,0],i=[],n=null,r=null){super(t,a,i,n,r)}get latitude(){return this._value[0]}set latitude(t){this._modifyContent(),typeof t!="number"&&(t=parseFloat(t)),this._value[0]=t}get longitude(){return this._value[1]}set longitude(t){this._modifyContent(),typeof t!="number"&&(t=parseFloat(t)),this._value[1]=t}toICALJs(){const t=cu(ra(this.name));return t.setValue(this.value),this._parameters.forEach(a=>{t.setParameter(ra(a.name),a.value)}),t}static fromPosition(t,a){return new y0("GEO",[t,a])}}class dn extends ki{get display(){return this.getParameterFirstValue("DISPLAY")||"BADGE"}set display(t){this.updateParameterIfExist("DISPLAY",t)}static fromData(t,a=null,i=null){const n=pt.fromDecodedValue(t),r=new dn("IMAGE",n);return a&&(r.display=a),i&&(r.formatType=i),r}static fromLink(t,a=null,i=null){const n=new dn("IMAGE",t);return a&&(n.display=a),i&&(n.formatType=i),n}}class So extends Dt{get relationType(){const t=["PARENT","CHILD","SIBLING"],a="PARENT";if(this.hasParameter("RELTYPE")){const i=this.getParameterFirstValue("RELTYPE");return t.includes(i)?i:a}else return a}set relationType(t){this.updateParameterIfExist("RELTYPE",t)}get relatedId(){return this.value}set relatedId(t){this.value=t}static fromRelTypeAndId(t,a){return new So("RELATED-TO",a,[["RELTYPE",t]])}}class ke extends Dt{constructor(t,a=["1","Pending"],i=[],n=null,r=null){super(t,a,i,n,r)}get statusCode(){return parseFloat(this.value[0])}set statusCode(t){this._modifyContent(),this.value[0]=t.toString(),t===Math.floor(t)&&(this.value[0]+=".0")}get statusMessage(){return this.value[1]}set statusMessage(t){this._modifyContent(),this.value[1]=t}get exceptionData(){return this.value[2]?this.value[2]:null}set exceptionData(t){this._modifyContent(),this.value[2]=t}isPending(){return this.statusCode>=1&&this.statusCode<2}isSuccessful(){return this.statusCode>=2&&this.statusCode<3}isClientError(){return this.statusCode>=3&&this.statusCode<4}isSchedulingError(){return this.statusCode>=4&&this.statusCode<5}toICALJs(){const t=cu(ra(this.name));return t.setValue(this.value),this._parameters.forEach(a=>{t.setParameter(ra(a.name),a.value)}),t}static fromCodeAndMessage(t,a){return new ke("REQUEST-STATUS",[t.toString(),a])}}ke.SUCCESS=[2,"Success"],ke.SUCCESS_FALLBACK=[2.1,"Success, but fallback taken on one or more property values."],ke.SUCCESS_PROP_IGNORED=[2.2,"Success; invalid property ignored."],ke.SUCCESS_PROPPARAM_IGNORED=[2.3,"Success; invalid property parameter ignored."],ke.SUCCESS_NONSTANDARD_PROP_IGNORED=[2.4,"Success; unknown, non-standard property ignored."],ke.SUCCESS_NONSTANDARD_PROPPARAM_IGNORED=[2.5,"Success; unknown, non-standard property value ignored."],ke.SUCCESS_COMP_IGNORED=[2.6,"Success; invalid calendar component ignored."],ke.SUCCESS_FORWARDED=[2.7,"Success; request forwarded to Calendar User."],ke.SUCCESS_REPEATING_IGNORED=[2.8,"Success; repeating event ignored. Scheduled as a single component."],ke.SUCCESS_TRUNCATED_END=[2.9,"Success; truncated end date time to date boundary."],ke.SUCCESS_REPEATING_VTODO_IGNORED=[2.1,"Success; repeating VTODO ignored. Scheduled as a single VTODO."],ke.SUCCESS_UNBOUND_RRULE_CLIPPED=[2.11,"Success; unbounded RRULE clipped at some finite number of instances."],ke.CLIENT_INVALID_PROPNAME=[3,"Invalid property name."],ke.CLIENT_INVALID_PROPVALUE=[3.1,"Invalid property value."],ke.CLIENT_INVALID_PROPPARAM=[3.2,"Invalid property parameter."],ke.CLIENT_INVALID_PROPPARAMVALUE=[3.3,"Invalid property parameter value."],ke.CLIENT_INVALUD_CALENDAR_COMP_SEQ=[3.4,"Invalid calendar component sequence."],ke.CLIENT_INVALID_DATE_TIME=[3.5,"Invalid date or time."],ke.CLIENT_INVALID_RRULE=[3.6,"Invalid rule."],ke.CLIENT_INVALID_CU=[3.7,"Invalid Calendar User."],ke.CLIENT_NO_AUTHORITY=[3.8,"No authority."],ke.CLIENT_UNSUPPORTED_VERSION=[3.9,"Unsupported version."],ke.CLIENT_TOO_LARGE=[3.1,"Request entity too large."],ke.CLIENT_REQUIRED_COMP_OR_PROP_MISSING=[3.11,"Required component or property missing."],ke.CLIENT_UNKNOWN_COMP_OR_PROP=[3.12,"Unknown component or property found."],ke.CLIENT_UNSUPPORTED_COMP_OR_PROP=[3.13,"Unsupported component or property found."],ke.CLIENT_UNSUPPORTED_CAPABILITY=[3.14,"Unsupported capability."],ke.SCHEDULING_EVENT_CONFLICT=[4,"Event conflict. Date/time is busy."],ke.SERVER_REQUEST_NOT_SUPPORTED=[5,"Request not supported."],ke.SERVER_SERVICE_UNAVAILABLE=[5.1,"Service unavailable."],ke.SERVER_INVALID_CALENDAR_SERVICE=[5.2,"Invalid calendar service."],ke.SERVER_NO_SCHEDULING_FOR_USER=[5.3,"No scheduling support for user."];class Br extends Dt{get alternateText(){return this.getParameterFirstValue("ALTREP")}set alternateText(t){this.updateParameterIfExist("ALTREP",t)}get language(){return this.getParameterFirstValue("LANGUAGE")}set language(t){this.updateParameterIfExist("LANGUAGE",t)}}class Wa extends Dt{get related(){return this.hasParameter("RELATED")?this.getParameterFirstValue("RELATED"):"START"}set related(t){this.updateParameterIfExist("RELATED",t)}get value(){return super.value}set value(t){super.value=t,t instanceof Te&&(this.deleteParameter("RELATED"),super.value=t.getInUTC())}isRelative(){return this.getFirstValue()instanceof Lt}static fromAbsolute(t){return new Wa("TRIGGER",t)}static fromRelativeAndRelated(t,a=!0){return new Wa("TRIGGER",t,[["RELATED",a?"START":"END"]])}}function rs(e){switch(Ce(e)){case"ATTACH":return ki;case"ATTENDEE":case"ORGANIZER":return na;case"CONFERENCE":return b0;case"FREEBUSY":return hu;case"GEO":return y0;case"IMAGE":return dn;case"RELATED-TO":return So;case"REQUEST-STATUS":return ke;case"TRIGGER":return Wa;case"COMMENT":case"CONTACT":case"DESCRIPTION":case"LOCATION":case"SUMMARY":return Br;default:return Dt}}class Na extends Ao(yo(class{})){constructor(t,a=[],i=[],n=null,r=null){super(),this._name=Ce(t),this._properties=new Map,this._components=new Map,this._root=n,this._parent=r,this._setPropertiesFromConstructor(a),this._setComponentsFromConstructor(i)}get name(){return this._name}get root(){return this._root}set root(t){this._modify(),this._root=t;for(const a of this.getPropertyIterator())a.root=t;for(const a of this.getComponentIterator())a.root=t}get parent(){return this._parent}set parent(t){this._modify(),this._parent=t}getFirstProperty(t){return this._properties.has(Ce(t))?this._properties.get(Ce(t))[0]:null}getFirstPropertyFirstValue(t){const a=this.getFirstProperty(t);return a?a.getFirstValue():null}updatePropertyWithValue(t,a){this._modify();const i=this.getFirstProperty(t);if(i)i.value=a;else{const n=rs(t),r=new n(t,a,[],this,this.root);this.addProperty(r)}}*getPropertyIterator(t=null){if(t){if(!this.hasProperty(t))return;yield*this._properties.get(Ce(t)).slice()[Symbol.iterator]()}else for(const a of this._properties.keys())yield*this.getPropertyIterator(a)}*_getAllOfPropertyByLang(t,a){for(const i of this.getPropertyIterator(t))i.getParameterFirstValue("LANGUAGE")===a&&(yield i)}_getFirstOfPropertyByLang(t,a){return this._getAllOfPropertyByLang(t,a).next().value||null}addProperty(t){if(this._modify(),t.root=this.root,t.parent=this,this._properties.has(t.name)){const a=this._properties.get(t.name);if(a.indexOf(t)!==-1)return!1;a.push(t)}else this._properties.set(t.name,[t]);return t.subscribe(()=>this._notifySubscribers()),!0}hasProperty(t){return this._properties.has(Ce(t))}deleteProperty(t){if(this._modify(),!this._properties.has(t.name))return!1;const a=this._properties.get(t.name),i=a.indexOf(t);return i===-1?!1:(i!==-1&&a.length===1?this._properties.delete(t.name):a.splice(i,1),!0)}deleteAllProperties(t){return this._modify(),this._properties.delete(Ce(t))}getFirstComponent(t){return this.hasComponent(t)?this._components.get(Ce(t))[0]:null}*getComponentIterator(t){if(t){if(!this.hasComponent(t))return;yield*this._components.get(Ce(t)).slice()[Symbol.iterator]()}else for(const a of this._components.keys())yield*this.getComponentIterator(a)}addComponent(t){if(this._modify(),t.root=this.root,t.parent=this,this._components.has(t.name)){const a=this._components.get(t.name);if(a.indexOf(t)!==-1)return!1;a.push(t)}else this._components.set(t.name,[t]);return t.subscribe(()=>this._notifySubscribers()),!0}hasComponent(t){return this._components.has(Ce(t))}deleteComponent(t){if(this._modify(),!this._components.has(t.name))return!1;const a=this._components.get(t.name),i=a.indexOf(t);return i===-1?!1:(i!==-1&&a.length===1?this._components.delete(t.name):a.splice(i,1),!0)}deleteAllComponents(t){return this._modify(),this._components.delete(Ce(t))}lock(){super.lock();for(const t of this.getPropertyIterator())t.lock();for(const t of this.getComponentIterator())t.lock()}unlock(){super.unlock();for(const t of this.getPropertyIterator())t.unlock();for(const t of this.getComponentIterator())t.unlock()}clone(){const t=[];for(const i of this.getPropertyIterator())t.push(i.clone());const a=[];for(const i of this.getComponentIterator())a.push(i.clone());return new this.constructor(this.name,t,a,this.root,this.parent)}_setPropertiesFromConstructor(t){for(let a of t){if(Array.isArray(a)){const i=rs(a[0]);a=new i(a[0],a[1])}this.addProperty(a)}}_setComponentsFromConstructor(t){for(const a of t)this.addComponent(a)}static fromICALJs(t,a=null,i=null){if(!(t instanceof me.Component))throw new vf;const n=t.name,r=new this(n,[],[],a,i);for(const o of t.getAllProperties()){const s=rs(o.name).fromICALJs(o,a,r);r.addProperty(s)}for(const o of t.getAllSubcomponents()){const s=this._getConstructorForComponentName(o.name).fromICALJs(o,a,r);r.addComponent(s)}return r}static _getConstructorForComponentName(t){return Na}toICALJs(){const t=ZE(ra(this.name));for(const a of this.getPropertyIterator())t.addProperty(a.toICALJs());for(const a of this.getComponentIterator())t.addSubcomponent(a.toICALJs());return t}}function ve(e,t,a=!0){t=UE(t),Object.defineProperty(e,t.name,{get(){const i=this.getFirstPropertyFirstValue(t.iCalendarName);return i?Array.isArray(t.allowedValues)&&!t.allowedValues.includes(i)?t.unknownValue:i:t.defaultValue},set(i){if(this._modify(),i===null){this.deleteAllProperties(t.iCalendarName);return}if(Array.isArray(t.allowedValues)&&!t.allowedValues.includes(i))throw new TypeError("Illegal value");this.updatePropertyWithValue(t.iCalendarName,i)}})}function xt(e,t){t=Rf(t),e["get"+ot(t.name)+"Iterator"]=function*(){yield*this.getPropertyIterator(t.iCalendarName)},e["get"+ot(t.name)+"List"]=function(){return Array.from(this["get"+ot(t.name)+"Iterator"]())},e["remove"+ot(t.name)]=function(a){this.deleteProperty(a)},e["clearAll"+ot(t.pluralName)]=function(){this.deleteAllProperties(t.iCalendarName)}}function fu(e,t){t=Rf(t),e["get"+ot(t.name)+"Iterator"]=function*(a=null){for(const i of this._getAllOfPropertyByLang(t.iCalendarName,a))yield*i.getValueIterator()},e["get"+ot(t.name)+"List"]=function(a=null){return Array.from(this["get"+ot(t.name)+"Iterator"](a))},e["add"+ot(t.name)]=function(a,i=null){const n=this._getFirstOfPropertyByLang(t.iCalendarName,i);if(n)n.addValue(a);else{const r=new Dt(t.iCalendarName,[a]);if(i){const o=new xn("LANGUAGE",i);r.setParameter(o)}this.addProperty(r)}},e["remove"+ot(t.name)]=function(a,i=null){for(const n of this._getAllOfPropertyByLang(t.iCalendarName,i))if(n.isMultiValue()&&n.hasValue(a))return n.value.length===1?(this.deleteProperty(n),!0):(n.removeValue(a),!0);return!1},e["clearAll"+ot(t.pluralName)]=function(a=null){for(const i of this._getAllOfPropertyByLang(t.iCalendarName,a))this.deleteProperty(i)}}function GE(e,t){t=qE(t),e["get"+ot(t.name)+"Iterator"]=function*(){yield*this.getComponentIterator(t.iCalendarName)},e["get"+ot(t.name)+"List"]=function(){return Array.from(this["get"+ot(t.name)+"Iterator"]())},e["remove"+ot(t.name)]=function(a){this.deleteComponent(a)},e["clearAll"+ot(t.pluralName)]=function(){this.deleteAllComponents(t.iCalendarName)}}function UE(e){return typeof e=="string"&&(e={name:e}),Object.assign({},{iCalendarName:Ce(e.name),pluralName:e.name+"s",allowedValues:null,defaultValue:null,unknownValue:null},e)}function Rf(e){return typeof e=="string"&&(e={name:e}),Object.assign({},{iCalendarName:Ce(e.name),pluralName:e.name+"s"},e)}function qE(e){return typeof e=="string"&&(e={name:e}),Object.assign({},{iCalendarName:"V"+Ce(e.name),pluralName:e.name+"s"},e)}function Oa(){return new Date}class HE extends Error{}class zE{constructor(t){this._masterItem=t,this._recurrenceExceptionItems=new Map,this._rangeRecurrenceExceptionItemsIndex=[],this._rangeRecurrenceExceptionItemsDiffCache=new Map,this._rangeRecurrenceExceptionItems=new Map}get masterItem(){return this._masterItem}set masterItem(t){this._masterItem=t}*getRecurrenceExceptionIterator(){yield*this._recurrenceExceptionItems.values()}getRecurrenceExceptionList(){return Array.from(this.getRecurrenceExceptionIterator())}hasRecurrenceExceptionForId(t){return t instanceof Te?t=t.unixTime:t instanceof me.Time&&(t=t.toUnixTime()),this._recurrenceExceptionItems.has(t)}getRecurrenceException(t){return t instanceof Te?t=t.unixTime:t instanceof me.Time&&(t=t.toUnixTime()),this._recurrenceExceptionItems.get(t)||null}hasRangeRecurrenceExceptionForId(t){return t instanceof Te?t=t.unixTime:t instanceof me.Time&&(t=t.toUnixTime()),this._rangeRecurrenceExceptionItemsIndex.length===0?!1:this._rangeRecurrenceExceptionItemsIndex[0]n-r);if(a===0)return null;const i=this._rangeRecurrenceExceptionItemsIndex[a-1];return this._rangeRecurrenceExceptionItems.get(i)}getRangeRecurrenceExceptionDiff(t){if(t instanceof Te?t=t.unixTime:t instanceof me.Time&&(t=t.toUnixTime()),this._rangeRecurrenceExceptionItemsDiffCache.has(t))return this._rangeRecurrenceExceptionItemsDiffCache.get(t);const a=this.getRangeRecurrenceExceptionForId(t);if(!a)return null;const i=a.recurrenceId,n=a.startDate.subtractDateWithTimezone(i);return n.lock(),this._rangeRecurrenceExceptionItemsDiffCache.set(t,n),n}relateRecurrenceException(t){this._modify();const a=this._getRecurrenceIdKey(t);if(this._recurrenceExceptionItems.set(a,t),t.modifiesFuture()){this._rangeRecurrenceExceptionItems.set(a,t);const i=me.helpers.binsearchInsert(this._rangeRecurrenceExceptionItemsIndex,a,(n,r)=>n-r);this._rangeRecurrenceExceptionItemsIndex.splice(i,0,a)}t.recurrenceManager=this}removeRecurrenceException(t){const a=this._getRecurrenceIdKey(t);this.removeRecurrenceExceptionByRecurrenceId(a)}removeRecurrenceExceptionByRecurrenceId(t){this._modify(),this._recurrenceExceptionItems.delete(t),this._rangeRecurrenceExceptionItems.delete(t),this._rangeRecurrenceExceptionItemsDiffCache.delete(t);const a=this._rangeRecurrenceExceptionItemsIndex.indexOf(t);a!==-1&&this._rangeRecurrenceExceptionItemsIndex.splice(a,1)}_getRecurrenceIdKey(t){return t.recurrenceId.unixTime}*getRecurrenceRuleIterator(){for(const t of this._masterItem.getPropertyIterator("RRULE"))yield t.getFirstValue()}getRecurrenceRuleList(){return Array.from(this.getRecurrenceRuleIterator())}addRecurrenceRule(t){this._modify(),this.resetCache();const a=new Dt("RRULE",t);this._masterItem.addProperty(a)}removeRecurrenceRule(t){this._modify(),this.resetCache();for(const a of this._masterItem.getPropertyIterator("RRULE"))a.getFirstValue()===t&&this._masterItem.deleteProperty(a)}clearAllRecurrenceRules(){this._modify(),this.resetCache(),this._masterItem.deleteAllProperties("RRULE")}*getRecurrenceDateIterator(t=!1,a=null){for(const i of this._getPropertiesForRecurrenceDate(t,a))yield*i.getValueIterator()}listAllRecurrenceDates(t=!1,a=null){return Array.from(this.getRecurrenceDateIterator(t,a))}addRecurrenceDate(t=!1,a){this._modify(),this.resetCache();let i=null;a instanceof Te&&!a.isDate&&(i=a.timezoneId);const n=this._getValueTypeByValue(a),r=this._getPropertiesForRecurrenceDate(t,n,i).next.value;if(r instanceof Dt)r.value.push(a),this.masterItem.markPropertyAsDirty(t?"EXDATE":"RDATE");else{const o=this._getPropertyNameByIsNegative(t),s=new Dt(o,a);this._masterItem.addProperty(s)}}hasRecurrenceDate(t=!1,a){for(let i of this.getRecurrenceDateIterator(t))if(i instanceof Tt&&(i=i.start),i.compare(a)===0)return!0;return!1}getRecurrenceDate(t=!1,a){for(const i of this.getRecurrenceDateIterator(t)){let n=i;if(n instanceof Tt&&(n=n.start),n.compare(a)===0)return i}return null}removeRecurrenceDate(t=!1,a){this._modify(),this.resetCache();const i=this._getValueTypeByValue(a);for(const n of this._getPropertiesForRecurrenceDate(t,i))for(const r of n.getValueIterator())if(a===r){const o=n.value;if(o.length===1){this.masterItem.deleteProperty(n);continue}const s=o.indexOf(a);o.splice(s,1),this.masterItem.markPropertyAsDirty(t?"EXDATE":"RDATE")}}clearAllRecurrenceDates(t=!1,a=null){this._modify(),this.resetCache();for(const i of this._getPropertiesForRecurrenceDate(t,a))this._masterItem.deleteProperty(i)}_getPropertyNameByIsNegative(t){return t?"EXDATE":"RDATE"}_getValueTypeByValue(t){return t instanceof Tt?"PERIOD":t.isDate?"DATE":"DATETIME"}*_getPropertiesForRecurrenceDate(t,a,i=null){const n=this._getPropertyNameByIsNegative(t);for(const r of this._masterItem.getPropertyIterator(n))a===null?yield r:Ce(a)==="PERIOD"&&r.getFirstValue()instanceof Tt?yield r:Ce(a)==="DATE"&&r.getFirstValue().isDate?yield r:Ce(a)==="DATETIME"&&!r.getFirstValue().isDate&&(i===null||r.getFirstValue().timezoneId===i)&&(yield r)}isFinite(){return this.getRecurrenceRuleList().every(t=>t.isFinite())}isEmptyRecurrenceSet(){return this._getRecurExpansionObject().next()===void 0}getOccurrenceAtExactly(t){if(!this.masterItem.isRecurring())return this.masterItem.getReferenceRecurrenceId().compare(t)===0?this.masterItem:null;const a=this._getRecurExpansionObject(),i=t.toICALJs();let n;for(;n=a.next();){if(n.compare(i)===0)return this._getOccurrenceAtRecurrenceId(Te.fromICALJs(n));if(n.compare(i)===1)return null}return null}getClosestOccurrence(t){if(!this.masterItem.isRecurring())return this.masterItem;const a=this._getRecurExpansionObject();t=t.toICALJs();let i=null,n;for(;n=a.next();)if(n.compare(t)===-1)i=n;else{const o=Te.fromICALJs(n);return this._getOccurrenceAtRecurrenceId(o)}const r=Te.fromICALJs(i);return this._getOccurrenceAtRecurrenceId(r)}countAllOccurrencesBetween(t,a){if(!this.masterItem.isRecurring())return typeof this.masterItem.isInTimeFrame=="function"&&!this.masterItem.isInTimeFrame(t,a)?0:1;const i=this._getRecurExpansionObject(),n=t.toICALJs(),r=a.toICALJs();let o=0,s;for(;s=i.next();)if(s.compare(n)!==-1){if(s.compare(r)===1)break;o+=1}return o}*getAllOccurrencesBetweenIterator(t,a){if(!this.masterItem.isRecurring()){typeof this.masterItem.isInTimeFrame!="function"&&(yield this.masterItem),this.masterItem.isInTimeFrame(t,a)&&(yield this.masterItem);return}const i=this._getRecurExpansionObject(),n=t.toICALJs(),r=a.toICALJs(),o=Array.from(this._recurrenceExceptionItems.keys()),s=Math.max.apply(Math,o);let l;for(;l=i.next();){const d=Te.fromICALJs(l),u=this._getOccurrenceAtRecurrenceId(d);let c=null;switch(Ce(u.name)){case"VEVENT":case"VTODO":c=u.endDate.toICALJs();break;case"VJOURNAL":default:c=l;break}if(c.compare(n)===-1)continue;const f=u.startDate.toICALJs();if((!u.isRecurrenceException()||u.modifiesFuture())&&f.compare(r)===1){if(this._recurrenceExceptionItems.size===0||l.toUnixTime()>s)break;continue}typeof u.isInTimeFrame!="function"&&(yield u),u.isInTimeFrame(t,a)&&(yield u)}}getAllOccurrencesBetween(t,a){return Array.from(this.getAllOccurrencesBetweenIterator(t,a))}updateUID(t){this._masterItem.updatePropertyWithValue("UID",t);for(const a of this.getRecurrenceExceptionIterator())a.updatePropertyWithValue("UID",t)}updateStartDateOfMasterItem(t,a){const i=t.subtractDateWithTimezone(a);for(const n of this.getRecurrenceDateIterator(!0))this.hasRecurrenceDate(!1,n)||n.addDuration(i);for(const n of this.getRecurrenceExceptionIterator())this.hasRecurrenceDate(!1,n.recurrenceId)||(this.removeRecurrenceException(n),n.recurrenceId.addDuration(i),this.relateRecurrenceException(n));for(const n of this.getRecurrenceRuleIterator())n.until&&n.until.addDuration(i)}_getOccurrenceAtRecurrenceId(t){if(this.hasRecurrenceExceptionForId(t)){const a=this.getRecurrenceException(t);return a.canCreateRecurrenceExceptions()?a.forkItem(t):a}else if(this.hasRangeRecurrenceExceptionForId(t)){const a=this.getRangeRecurrenceExceptionForId(t),i=this.getRangeRecurrenceExceptionDiff(t);return a.forkItem(t,i)}else return t.compare(this._masterItem.startDate)===0?this._masterItem.canCreateRecurrenceExceptions()?this._masterItem.forkItem(t):this._masterItem:this._masterItem.forkItem(t)}resetCache(){}_getRecurExpansionObject(){if(this._masterItem.startDate===null)throw new HE;const t=this._masterItem.startDate.toICALJs();let a=t.clone();const i=[];let n;const r=[];let o=null;const s=[],l=!1;for(const c of this.getRecurrenceRuleIterator())i.push(c.toICALJs().iterator(t)),i[i.length-1].next();for(let c of this.getRecurrenceDateIterator()){c instanceof Tt&&(c=c.start),c=c.toICALJs();const f=me.helpers.binsearchInsert(r,c,(h,_)=>h.compare(_));r.splice(f,0,c)}r.length>0&&r[0].compare(t)===-1?(n=0,a=r[0].clone()):(n=me.helpers.binsearchInsert(r,t,(c,f)=>c.compare(f)),o=s[n]);for(let c of this.getRecurrenceDateIterator(!0)){c=c.toICALJs();const f=me.helpers.binsearchInsert(s,c,(h,_)=>h.compare(_));s.splice(f,0,c)}const d=me.helpers.binsearchInsert(s,t,(c,f)=>c.compare(f)),u=s[d];return new me.RecurExpansion({dtstart:t,last:a,ruleIterators:i,ruleDateInc:n,exDateInc:d,ruleDates:r,ruleDate:o,exDates:s,exDate:u,complete:l})}_modify(){if(this._masterItem.isLocked())throw new kf}}class kt{constructor(t,a){this._timezoneId=null,this._ics=null,this._innerValue=null,this._initialized=!1,t instanceof me.Timezone?(this._innerValue=t,this._initialized=!0):t instanceof me.Component?(this._innerValue=new me.Timezone(t),this._initialized=!0):(this._timezoneId=t,this._ics=a)}get timezoneId(){return this._initialized?this._innerValue.tzid:this._timezoneId}offsetForArray(t,a,i,n,r,o){this._initialize();const s=new me.Time({year:t,month:a,day:i,hour:n,minute:r,second:o,isDate:!1});return this._innerValue.utcOffset(s)}timestampToArray(t){this._initialize();const a=me.Time.fromData({year:1970,month:1,day:1,hour:0,minute:0,second:0});a.fromUnixTime(Math.floor(t/1e3));const i=a.convertToZone(this._innerValue);return[i.year,i.month,i.day,i.hour,i.minute,i.second]}toICALTimezone(){return this._initialize(),this._innerValue}toICALJs(){return this._initialize(),this._innerValue.component}_initialize(){if(!this._initialized){const t=me.parse(this._ics),a=new me.Component(t);this._innerValue=new me.Timezone(a),this._initialized=!0}}}kt.utc=new kt(me.Timezone.utcTimezone),kt.floating=new kt(me.Timezone.localTimezone);class Kt extends Na{addAttendeeFromNameAndEMail(t,a){const i=na.fromNameAndEMail(t,a);return this.addProperty(i)}get trigger(){return this.getFirstProperty("TRIGGER")}setTriggerFromAbsolute(t){const a=Wa.fromAbsolute(t);this.deleteAllProperties("TRIGGER"),this.addProperty(a)}setTriggerFromRelative(t,a=!0){const i=Wa.fromRelativeAndRelated(t,a);this.deleteAllProperties("TRIGGER"),this.addProperty(i)}}ve(Kt.prototype,"action"),ve(Kt.prototype,"description"),ve(Kt.prototype,"summary"),ve(Kt.prototype,"duration"),ve(Kt.prototype,"repeat"),ve(Kt.prototype,{name:"attachment",iCalendarName:"ATTACH"}),xt(Kt.prototype,"attendee");function VE(e){switch(Ce(e)){case"VALARM":return Kt;default:return Na}}class ze extends Na{constructor(...t){super(...t),this._primaryItem=null,this._isExactForkOfPrimary=!1,this._originalRecurrenceId=null,this._recurrenceManager=null,this._dirty=!1,this._significantChange=!1,this._cachedId=null}get primaryItem(){return this._primaryItem}set primaryItem(t){this._modify(),this._primaryItem=t}get isExactForkOfPrimary(){return this._isExactForkOfPrimary}set isExactForkOfPrimary(t){this._isExactForkOfPrimary=t}get originalRecurrenceId(){return this._originalRecurrenceId}set originalRecurrenceId(t){this._originalRecurrenceId=t}get recurrenceManager(){return this._recurrenceManager}set recurrenceManager(t){this._recurrenceManager=t}get masterItem(){return this.recurrenceManager.masterItem}isMasterItem(){return this.masterItem===this}get id(){return this._cachedId?this._cachedId:this.startDate===null?(this._cachedId=encodeURIComponent(this.uid),this._cachedId):(this._cachedId=[encodeURIComponent(this.uid),encodeURIComponent(this.getReferenceRecurrenceId().unixTime.toString())].join("###"),this._cachedId)}get uid(){return this.getFirstPropertyFirstValue("UID")}set uid(t){this._recurrenceManager.updateUID(t)}get startDate(){return this.getFirstPropertyFirstValue("dtstart")}set startDate(t){const a=this.startDate;this.updatePropertyWithValue("dtstart",t),this.isMasterItem()&&this._recurrenceManager.updateStartDateOfMasterItem(t,a)}isPartOfRecurrenceSet(){return this.masterItem.isRecurring()}isRecurring(){return this.hasProperty("RRULE")||this.hasProperty("RDATE")}isRecurrenceException(){return this.hasProperty("RECURRENCE-ID")}modifiesFuture(){return this.isRecurrenceException()?this.getFirstProperty("RECURRENCE-ID").getParameterFirstValue("RANGE")==="THISANDFUTURE":!1}forkItem(t,a=null){const i=this.clone();if(i.recurrenceManager=this.recurrenceManager,i.primaryItem=this,i.getReferenceRecurrenceId().compare(t)===0&&(i.isExactForkOfPrimary=!0),!i.hasProperty("DTSTART"))throw new TypeError("Can't fork item without a DTSTART");const n=i.getFirstPropertyFirstValue("RRULE");if(n?.count){let l=i.recurrenceManager.countAllOccurrencesBetween(i.getReferenceRecurrenceId(),t);l-=1,n.count-=l,n.count<1&&(n.count=1)}if(i.getFirstPropertyFirstValue("DTSTART").timezoneId!==t.timezoneId){const l=i.getFirstPropertyFirstValue("DTSTART").getICALTimezone();t=t.getInICALTimezone(l)}i.originalRecurrenceId=t.clone();const r=i.getFirstPropertyFirstValue("DTSTART");let o=null;if(this._recurrenceManager.hasRecurrenceDate(!1,t)){const l=this._recurrenceManager.getRecurrenceDate(!1,t);l instanceof Tt&&(o=l)}let s;if(i.hasProperty("DTEND")?s=i.getFirstPropertyFirstValue("DTEND").subtractDateWithTimezone(r):i.hasProperty("DUE")&&(s=i.getFirstPropertyFirstValue("DUE").subtractDateWithTimezone(r)),!(i.isRecurrenceException()&&i.isExactForkOfPrimary)){if(i.updatePropertyWithValue("DTSTART",t.clone()),a&&i.startDate.addDuration(a),i.hasProperty("DTEND")){const l=i.startDate.clone();l.addDuration(s),i.updatePropertyWithValue("DTEND",l)}else if(i.hasProperty("DUE")){const l=i.startDate.clone();l.addDuration(s),i.updatePropertyWithValue("DUE",l)}o&&(i.deleteAllProperties("DTEND"),i.deleteAllProperties("DURATION"),i.updatePropertyWithValue("DTEND",o.end.clone()))}return i.resetDirty(),i}canCreateRecurrenceExceptions(){let t=!1;return this.primaryItem&&this.primaryItem.isRecurring()&&(t=!0),this.isRecurring()||this.modifiesFuture()||!this.isRecurring()&&t}createRecurrenceException(t=!1){if(!this.canCreateRecurrenceExceptions())throw new Error("Can't create recurrence-exceptions for non-recurring items");const a=this.primaryItem;if(t){if(this.isExactForkOfPrimary&&this.primaryItem.isMasterItem())return this._overridePrimaryItem(),[this,this];this.removeThisOccurrence(!0),this.recurrenceManager=new zE(this),this._originalRecurrenceId=null,this.primaryItem=this,this.updatePropertyWithValue("UID",YE()),this._cachedId=null,this.addRelation("SIBLING",a.uid),a.addRelation("SIBLING",this.uid),this.deleteAllProperties("RECURRENCE-ID"),this.deleteAllProperties("RDATE"),this.deleteAllProperties("EXDATE"),this.updatePropertyWithValue("CREATED",Te.fromJSDate(Oa(),!0)),this.updatePropertyWithValue("DTSTAMP",Te.fromJSDate(Oa(),!0)),this.updatePropertyWithValue("LAST-MODIFIED",Te.fromJSDate(Oa(),!0)),this.updatePropertyWithValue("SEQUENCE",0),this._significantChange=!1,this._dirty=!1,this.root=this.root.constructor.fromEmpty(),this.root.addComponent(this),this.parent=this.root;for(const i of this.getAttendeeIterator())i.rsvp=!0}else{if(this.deleteAllProperties("RECURRENCE-ID"),this.recurrenceId=this.getReferenceRecurrenceId().clone(),this.root.addComponent(this),this.recurrenceManager.relateRecurrenceException(this),this.primaryItem=this,this.deleteAllProperties("RDATE"),this.deleteAllProperties("RRULE"),this.deleteAllProperties("EXDATE"),this.updatePropertyWithValue("CREATED",Te.fromJSDate(Oa(),!0)),this.updatePropertyWithValue("DTSTAMP",Te.fromJSDate(Oa(),!0)),this.updatePropertyWithValue("LAST-MODIFIED",Te.fromJSDate(Oa(),!0)),this.updatePropertyWithValue("SEQUENCE",0),this.recurrenceManager.hasRecurrenceDate(!1,this.getReferenceRecurrenceId())){const i=this.recurrenceManager.getRecurrenceDate(!1,this.getReferenceRecurrenceId());if(i instanceof Tt){const n=i.start;this.recurrenceManager.removeRecurrenceDate(!1,i),this.recurrenceManager.addRecurrenceDate(!1,n)}}this.originalRecurrenceId=null}return[a,this]}removeThisOccurrence(t=!1){if(!this.isPartOfRecurrenceSet())return!0;if(t){const a=this.getReferenceRecurrenceId().clone(),i=a.getInTimezone(kt.utc);i.addDuration(Lt.fromSeconds(-1));for(const n of this.recurrenceManager.getRecurrenceRuleIterator())n.until=i.clone();for(const n of this.recurrenceManager.getRecurrenceDateIterator()){let r=n;n instanceof Tt&&(r=r.start),a.compare(r)<=0&&this.recurrenceManager.removeRecurrenceDate(!1,n)}for(const n of this.recurrenceManager.getRecurrenceDateIterator(!0))a.compare(n)<=0&&this.recurrenceManager.removeRecurrenceDate(!0,n);for(const n of this.recurrenceManager.getRecurrenceExceptionList())a.compare(n.recurrenceId)<=0&&(this.root.deleteComponent(n),this.recurrenceManager.removeRecurrenceException(n))}else if(this.isRecurrenceException()&&!this.modifiesFuture()&&(this.root.deleteComponent(this),this.recurrenceManager.removeRecurrenceException(this)),this.recurrenceManager.hasRecurrenceDate(!1,this.getReferenceRecurrenceId())){const a=this.recurrenceManager.getRecurrenceDate(!1,this.getReferenceRecurrenceId());this.recurrenceManager.removeRecurrenceDate(!1,a)}else this.recurrenceManager.addRecurrenceDate(!0,this.getReferenceRecurrenceId().clone());return this.recurrenceManager.isEmptyRecurrenceSet()}clone(){const t=super.clone();return t.resetDirty(),t}_addAttendee(t){for(const a of this.getAttendeeIterator())if(a.email===t.email)return!1;return this.addProperty(t),!0}addAttendeeFromNameAndEMail(t,a){const i=na.fromNameAndEMail(t,a);return this._addAttendee(i)}addAttendeeFromNameEMailRoleUserTypeAndRSVP(t,a,i,n,r){const o=na.fromNameEMailRoleUserTypeAndRSVP(t,a,i,n,r,!1);return this._addAttendee(o)}setOrganizerFromNameAndEMail(t,a){this.deleteAllProperties("ORGANIZER"),this.addProperty(na.fromNameAndEMail(t,a,!0))}addAttachmentFromData(t,a=null){this.addProperty(ki.fromData(t,a))}addAttachmentFromLink(t,a=null){this.addProperty(ki.fromLink(t,a))}addContact(t){this.addProperty(new Br("CONTACT",t))}addComment(t){this.addProperty(new Br("COMMENT",t))}addImageFromData(t,a=null,i=null){this.addProperty(dn.fromData(t,a,i))}addImageFromLink(t,a=null,i=null){this.addProperty(dn.fromLink(t,a,i))}addRelation(t,a){this.addProperty(So.fromRelTypeAndId(t,a))}addRequestStatus(t,a){this.addProperty(ke.fromCodeAndMessage(t,a))}addAbsoluteAlarm(t,a){const i=new Kt("VALARM",[["action",t],Wa.fromAbsolute(a)]);return this.addComponent(i),i}addRelativeAlarm(t,a,i=!0){const n=new Kt("VALARM",[["action",t],Wa.fromRelativeAndRelated(a,i)]);return this.addComponent(n),n}markPropertyAsDirty(t){this.markDirty(),["DTSTART","DTEND","DURATION","RRULE","RDATE","EXDATE","STATUS",...al("property-list-significant-change",[])].includes(Ce(t))&&this.markChangesAsSignificant()}markSubComponentAsDirty(t){this.markDirty(),al("component-list-significant-change",[]).includes(t)&&this.markChangesAsSignificant()}isDirty(){return this._dirty||this._significantChange}markDirty(){this._dirty=!0}markChangesAsSignificant(){this._significantChange=!0}undirtify(){return this.isDirty()?(this.hasProperty("SEQUENCE")||(this.sequence=0),this.updatePropertyWithValue("DTSTAMP",Te.fromJSDate(Oa(),!0)),this.updatePropertyWithValue("LAST-MODIFIED",Te.fromJSDate(Oa(),!0)),this._significantChange&&this.sequence++,this.resetDirty(),!0):!1}resetDirty(){this._dirty=!1,this._significantChange=!1}updatePropertyWithValue(t,a){super.updatePropertyWithValue(t,a),Ce(t)==="UID"&&(this._cachedId=null),this.markPropertyAsDirty(t)}addProperty(t){return this.markPropertyAsDirty(t.name),t.subscribe(()=>this.markPropertyAsDirty(t.name)),super.addProperty(t)}deleteProperty(t){return this.markPropertyAsDirty(t.name),super.deleteProperty(t)}deleteAllProperties(t){return this.markPropertyAsDirty(t),super.deleteAllProperties(t)}addComponent(t){return this.markSubComponentAsDirty(t.name),t.subscribe(()=>this.markSubComponentAsDirty(t.name)),super.addComponent(t)}deleteComponent(t){return this.markSubComponentAsDirty(t.name),super.deleteComponent(t)}deleteAllComponents(t){return this.markSubComponentAsDirty(t),super.deleteAllComponents(t)}getReferenceRecurrenceId(){return this.originalRecurrenceId?this.originalRecurrenceId:this.recurrenceId?this.recurrenceId:this.startDate?this.startDate:null}_overridePrimaryItem(){const t=this.primaryItem.startDate;for(const a of this.primaryItem.getPropertyIterator())this.primaryItem.deleteProperty(a);for(const a of this.getPropertyIterator())this.primaryItem.addProperty(a);this.recurrenceManager.resetCache(),this.startDate.compare(t)!==0&&this.recurrenceManager.updateStartDateOfMasterItem(this.startDate,t)}static _getConstructorForComponentName(t){return VE(t)}static fromICALJs(...t){const a=super.fromICALJs(...t);return a.resetDirty(),a}}ve(ze.prototype,{name:"stampTime",iCalendarName:"DTSTAMP"}),ve(ze.prototype,{name:"recurrenceId",iCalendarName:"RECURRENCE-ID"}),ve(ze.prototype,"color"),ve(ze.prototype,{name:"creationTime",iCalendarName:"CREATED"}),ve(ze.prototype,{name:"modificationTime",iCalendarName:"LAST-MODIFIED"}),ve(ze.prototype,"organizer"),ve(ze.prototype,"sequence"),ve(ze.prototype,"status"),ve(ze.prototype,"url"),ve(ze.prototype,{name:"title",iCalendarName:"SUMMARY"}),ve(ze.prototype,{name:"accessClass",iCalendarName:"class",allowedValues:["PUBLIC","PRIVATE","CONFIDENTIAL"],defaultValue:"PUBLIC",unknownValue:"PRIVATE"}),fu(ze.prototype,{name:"category",pluralName:"categories",iCalendarName:"CATEGORIES"}),xt(ze.prototype,{name:"attendee"}),xt(ze.prototype,{name:"attachment",iCalendarName:"ATTACH"}),xt(ze.prototype,{name:"relation",iCalendarName:"RELATED-TO"}),xt(ze.prototype,"comment"),xt(ze.prototype,"contact"),xt(ze.prototype,"image"),xt(ze.prototype,{name:"requestStatus",pluralName:"requestStatus",iCalendarName:"REQUEST-STATUS"}),GE(ze.prototype,"alarm");function Nf(e){return e.getFirstPropertyFirstValue("X-NEXTCLOUD-BC-FIELD-TYPE")}function $E(e){switch(Nf(e)){case"BDAY":return"🎂";case"DEATHDATE":return"⚰️";case"ANNIVERSARY":return"💍";default:return null}}function WE(e,t){if(!e.hasProperty("X-NEXTCLOUD-BC-YEAR"))return null;const a=e.getFirstPropertyFirstValue("X-NEXTCLOUD-BC-YEAR");return parseInt(t,10)-parseInt(a,10)}class Ya extends ze{isAllDay(){return this.startDate.isDate&&this.endDate.isDate}canModifyAllDay(){return!this.recurrenceManager.masterItem.isRecurring()}get endDate(){if(this.hasProperty("dtend"))return this.getFirstPropertyFirstValue("dtend");const t=this.startDate.clone();return this.hasProperty("duration")?t.addDuration(this.getFirstPropertyFirstValue("duration")):this.startDate.isDate&&t.addDuration(Lt.fromSeconds(60*60*24)),t}set endDate(t){this.deleteAllProperties("duration"),this.updatePropertyWithValue("dtend",t)}get duration(){return this.hasProperty("duration")?this.getFirstPropertyFirstValue("duration"):this.startDate.subtractDateWithTimezone(this.endDate)}set duration(t){this.deleteAllProperties("dtend"),this.updatePropertyWithValue("duration",t)}setGeographicalPositionFromLatitudeAndLongitude(t,a){this.deleteAllProperties("GEO"),this.addProperty(y0.fromPosition(t,a))}addConference(t,a=null,i=null){this._modify(),this.addProperty(b0.fromURILabelAndFeatures(t,a,i))}addDurationToStart(t){this.startDate.addDuration(t)}addDurationToEnd(t){const a=this.endDate;a.addDuration(t),this.endDate=a}shiftByDuration(t,a,i,n,r){const o=this.isAllDay();if(o!==a&&!this.canModifyAllDay())throw new TypeError("Can't modify all-day of this event");if(this.startDate.isDate=a,this.startDate.addDuration(t),o&&!a&&(this.startDate.replaceTimezone(i),this.endDate=this.startDate.clone(),this.endDate.addDuration(r)),!o&&a&&(this.endDate=this.startDate.clone(),this.endDate.addDuration(n)),o===a){const s=this.endDate;s.addDuration(t),this.endDate=s}}isBirthdayEvent(){return Nf(this)==="BDAY"}getIconForBirthdayEvent(){return $E(this)}getAgeForBirthdayEvent(){return WE(this,this.startDate.year)}toICSEntireSeries(){return this.root.toICS()}toICSThisOccurrence(){const t=this.clone();return t.deleteAllProperties("RRULE"),t.deleteAllProperties("EXRULE"),t.deleteAllProperties("RDATE"),t.deleteAllProperties("EXDATE"),t.deleteAllProperties("RECURRENCE-ID"),t.root=t.root.constructor.fromEmpty(),t.parent=t.root,t.root.addComponent(t),t.root.toICS()}isInTimeFrame(t,a){return t.compare(this.endDate)<=0&&a.compare(this.startDate)>=0}}ve(Ya.prototype,{name:"timeTransparency",iCalendarName:"TRANSP",allowedValues:["OPAQUE","TRANSPARENT"],defaultValue:"OPAQUE"}),ve(Ya.prototype,"description"),ve(Ya.prototype,{name:"geographicalPosition",iCalendarName:"GEO"}),ve(Ya.prototype,"location"),ve(Ya.prototype,{name:"priority",allowedValues:Array(9).keys(),defaultValue:0,unknownValue:0}),fu(Ya.prototype,{name:"resource",iCalendarName:"RESOURCES"}),xt(Ya.prototype,"conference");class ar extends Na{get startDate(){return this.getFirstPropertyFirstValue("DTSTART")}set startDate(t){this._modify(),this.updatePropertyWithValue("DTSTART",t.getInTimezone(kt.utc))}get endDate(){return this.getFirstPropertyFirstValue("DTEND")}set endDate(t){this._modify(),this.updatePropertyWithValue("DTEND",t.getInTimezone(kt.utc))}*getFreeBusyIterator(){yield*this.getPropertyIterator("FREEBUSY")}addAttendeeFromNameAndEMail(t,a){this._modify(),this.addProperty(na.fromNameAndEMail(t,a))}setOrganizerFromNameAndEMail(t,a){this._modify(),this.deleteAllProperties("ORGANIZER"),this.addProperty(na.fromNameAndEMail(t,a,!0))}}ve(ar.prototype,"organizer"),ve(ar.prototype,"uid"),xt(ar.prototype,"attendee");class wf extends ze{addDescription(t){this.addProperty(new Br("DESCRIPTION",t))}}xt(wf.prototype,"description");class Of extends Na{toTimezone(){return new kt(this.toICALJs())}}ve(Of.prototype,{name:"timezoneId",iCalendarName:"tzid"});class Vt extends ze{isAllDay(){const t=["DTSTART","DUE"];for(const a of t)if(this.hasProperty(a))return this.getFirstPropertyFirstValue(a).isDate;return!0}canModifyAllDay(){return!this.hasProperty("dtstart")&&!this.hasProperty("due")?!1:!this.recurrenceManager.masterItem.isRecurring()}get endDate(){if(this.hasProperty("due"))return this.getFirstPropertyFirstValue("due");if(!this.hasProperty("dtstart")||!this.hasProperty("duration"))return null;const t=this.startDate.clone();return t.addDuration(this.getFirstPropertyFirstValue("duration")),t}shiftByDuration(t,a,i,n,r){const o=this.isAllDay();if(!this.hasProperty("dtstart")&&!this.hasProperty("due"))throw new TypeError("This task does not have a start-date nor due-date");if(o!==a&&!this.canModifyAllDay())throw new TypeError("Can't modify all-day of this todo");this.hasProperty("dtstart")&&(this.startDate.isDate=a,this.startDate.addDuration(t),o&&!a&&this.startDate.replaceTimezone(i)),this.hasProperty("due")&&(this.dueTime.isDate=a,this.dueTime.addDuration(t),o&&!a&&this.dueTime.replaceTimezone(i))}isInTimeFrame(t,a){return!this.hasProperty("dtstart")&&!this.hasProperty("due")?!0:!this.hasProperty("dtstart")&&this.hasProperty("due")?t.compare(this.endDate)<=0:t.compare(this.endDate)<=0&&a.compare(this.startDate)>=0}get geographicalPosition(){return this.getFirstProperty("GEO")}setGeographicalPositionFromLatitudeAndLongitude(t,a){this.deleteAllProperties("GEO"),this.addProperty(y0.fromPosition(t,a))}addConference(t,a=null,i=null){this.addProperty(b0.fromURILabelAndFeatures(t,a,i))}getReferenceRecurrenceId(){return super.getReferenceRecurrenceId()??this.endDate}}ve(Vt.prototype,{name:"completedTime",iCalendarName:"COMPLETED"}),ve(Vt.prototype,{name:"dueTime",iCalendarName:"DUE"}),ve(Vt.prototype,{name:"duration"}),ve(Vt.prototype,{name:"percent",iCalendarName:"PERCENT-COMPLETE"}),ve(Vt.prototype,"description"),ve(Vt.prototype,"location"),ve(Vt.prototype,{name:"priority",allowedValues:Array.from(Array(10).keys()),defaultValue:0,unknownValue:0}),fu(Vt.prototype,{name:"resource",iCalendarName:"RESOURCES"}),xt(Vt.prototype,"conference");function QE(e){switch(Ce(e)){case"VEVENT":return Ya;case"VFREEBUSY":return ar;case"VJOURNAL":return wf;case"VTIMEZONE":return Of;case"VTODO":return Vt;default:return Na}}class L0 extends Na{constructor(t="VCALENDAR",a=[],i=[]){super(t,a,i),this.root=this,this.parent=null}*getTimezoneIterator(){yield*this.getComponentIterator("vtimezone")}*getVObjectIterator(){yield*this.getEventIterator(),yield*this.getJournalIterator(),yield*this.getTodoIterator()}*getEventIterator(){yield*this.getComponentIterator("vevent")}*getFreebusyIterator(){yield*this.getComponentIterator("vfreebusy")}*getJournalIterator(){yield*this.getComponentIterator("vjournal")}*getTodoIterator(){yield*this.getComponentIterator("vtodo")}static _getConstructorForComponentName(t){return QE(t)}toICS(t=!0){for(const i of this.getVObjectIterator())i.undirtify();const a=this.toICALJs();return t&&me.helpers.updateTimezones(a),a.toString()}static fromEmpty(t=[]){return new this("VCALENDAR",[["prodid",al("PRODID","-//IDN georgehrke.com//calendar-js//EN")],["calscale","GREGORIAN"],["version","2.0"]].concat(t))}static fromMethod(t){return this.fromEmpty([["method",t]])}static fromICALJs(t){const a=super.fromICALJs(t);return a.root=a,a}}ve(L0.prototype,{name:"productId",iCalendarName:"PRODID"}),ve(L0.prototype,{name:"version"}),ve(L0.prototype,{name:"calendarScale",iCalendarName:"CALSCALE",defaultValue:"GREGORIAN"}),ve(L0.prototype,{name:"method"});var JE="2.2023c",KE={"AUS Central Standard Time":{aliasTo:"Australia/Darwin"},"AUS Eastern Standard Time":{aliasTo:"Australia/Sydney"},"Afghanistan Standard Time":{aliasTo:"Asia/Kabul"},"Africa/Asmera":{aliasTo:"Africa/Asmara"},"Africa/Timbuktu":{aliasTo:"Africa/Bamako"},"Alaskan Standard Time":{aliasTo:"America/Anchorage"},"America/Argentina/ComodRivadavia":{aliasTo:"America/Argentina/Catamarca"},"America/Buenos_Aires":{aliasTo:"America/Argentina/Buenos_Aires"},"America/Louisville":{aliasTo:"America/Kentucky/Louisville"},"America/Montreal":{aliasTo:"America/Toronto"},"America/Santa_Isabel":{aliasTo:"America/Tijuana"},"Arab Standard Time":{aliasTo:"Asia/Riyadh"},"Arabian Standard Time":{aliasTo:"Asia/Dubai"},"Arabic Standard Time":{aliasTo:"Asia/Baghdad"},"Argentina Standard Time":{aliasTo:"America/Argentina/Buenos_Aires"},"Asia/Calcutta":{aliasTo:"Asia/Kolkata"},"Asia/Katmandu":{aliasTo:"Asia/Kathmandu"},"Asia/Rangoon":{aliasTo:"Asia/Yangon"},"Asia/Saigon":{aliasTo:"Asia/Ho_Chi_Minh"},"Atlantic Standard Time":{aliasTo:"America/Halifax"},"Atlantic/Faeroe":{aliasTo:"Atlantic/Faroe"},"Atlantic/Jan_Mayen":{aliasTo:"Europe/Oslo"},"Azerbaijan Standard Time":{aliasTo:"Asia/Baku"},"Azores Standard Time":{aliasTo:"Atlantic/Azores"},"Bahia Standard Time":{aliasTo:"America/Bahia"},"Bangladesh Standard Time":{aliasTo:"Asia/Dhaka"},"Belarus Standard Time":{aliasTo:"Europe/Minsk"},"Canada Central Standard Time":{aliasTo:"America/Regina"},"Cape Verde Standard Time":{aliasTo:"Atlantic/Cape_Verde"},"Caucasus Standard Time":{aliasTo:"Asia/Yerevan"},"Cen. Australia Standard Time":{aliasTo:"Australia/Adelaide"},"Central America Standard Time":{aliasTo:"America/Guatemala"},"Central Asia Standard Time":{aliasTo:"Asia/Almaty"},"Central Brazilian Standard Time":{aliasTo:"America/Cuiaba"},"Central Europe Standard Time":{aliasTo:"Europe/Budapest"},"Central European Standard Time":{aliasTo:"Europe/Warsaw"},"Central Pacific Standard Time":{aliasTo:"Pacific/Guadalcanal"},"Central Standard Time":{aliasTo:"America/Chicago"},"Central Standard Time (Mexico)":{aliasTo:"America/Mexico_City"},"China Standard Time":{aliasTo:"Asia/Shanghai"},"E. Africa Standard Time":{aliasTo:"Africa/Nairobi"},"E. Australia Standard Time":{aliasTo:"Australia/Brisbane"},"E. South America Standard Time":{aliasTo:"America/Sao_Paulo"},"Eastern Standard Time":{aliasTo:"America/New_York"},"Egypt Standard Time":{aliasTo:"Africa/Cairo"},"Ekaterinburg Standard Time":{aliasTo:"Asia/Yekaterinburg"},"Etc/GMT":{aliasTo:"UTC"},"Etc/GMT+0":{aliasTo:"UTC"},"Etc/UCT":{aliasTo:"UTC"},"Etc/UTC":{aliasTo:"UTC"},"Etc/Unversal":{aliasTo:"UTC"},"Etc/Zulu":{aliasTo:"UTC"},"Europe/Belfast":{aliasTo:"Europe/London"},"FLE Standard Time":{aliasTo:"Europe/Kiev"},"Fiji Standard Time":{aliasTo:"Pacific/Fiji"},GMT:{aliasTo:"UTC"},"GMT Standard Time":{aliasTo:"Europe/London"},"GMT+0":{aliasTo:"UTC"},GMT0:{aliasTo:"UTC"},"GTB Standard Time":{aliasTo:"Europe/Bucharest"},"Georgian Standard Time":{aliasTo:"Asia/Tbilisi"},"Greenland Standard Time":{aliasTo:"America/Godthab"},Greenwich:{aliasTo:"UTC"},"Greenwich Standard Time":{aliasTo:"Atlantic/Reykjavik"},"Hawaiian Standard Time":{aliasTo:"Pacific/Honolulu"},"India Standard Time":{aliasTo:"Asia/Calcutta"},"Iran Standard Time":{aliasTo:"Asia/Tehran"},"Israel Standard Time":{aliasTo:"Asia/Jerusalem"},"Jordan Standard Time":{aliasTo:"Asia/Amman"},"Kaliningrad Standard Time":{aliasTo:"Europe/Kaliningrad"},"Korea Standard Time":{aliasTo:"Asia/Seoul"},"Libya Standard Time":{aliasTo:"Africa/Tripoli"},"Line Islands Standard Time":{aliasTo:"Pacific/Kiritimati"},"Magadan Standard Time":{aliasTo:"Asia/Magadan"},"Mauritius Standard Time":{aliasTo:"Indian/Mauritius"},"Middle East Standard Time":{aliasTo:"Asia/Beirut"},"Montevideo Standard Time":{aliasTo:"America/Montevideo"},"Morocco Standard Time":{aliasTo:"Africa/Casablanca"},"Mountain Standard Time":{aliasTo:"America/Denver"},"Mountain Standard Time (Mexico)":{aliasTo:"America/Chihuahua"},"Myanmar Standard Time":{aliasTo:"Asia/Rangoon"},"N. Central Asia Standard Time":{aliasTo:"Asia/Novosibirsk"},"Namibia Standard Time":{aliasTo:"Africa/Windhoek"},"Nepal Standard Time":{aliasTo:"Asia/Katmandu"},"New Zealand Standard Time":{aliasTo:"Pacific/Auckland"},"Newfoundland Standard Time":{aliasTo:"America/St_Johns"},"North Asia East Standard Time":{aliasTo:"Asia/Irkutsk"},"North Asia Standard Time":{aliasTo:"Asia/Krasnoyarsk"},"Pacific SA Standard Time":{aliasTo:"America/Santiago"},"Pacific Standard Time":{aliasTo:"America/Los_Angeles"},"Pacific Standard Time (Mexico)":{aliasTo:"America/Santa_Isabel"},"Pacific/Johnston":{aliasTo:"Pacific/Honolulu"},"Pakistan Standard Time":{aliasTo:"Asia/Karachi"},"Paraguay Standard Time":{aliasTo:"America/Asuncion"},"Romance Standard Time":{aliasTo:"Europe/Paris"},"Russia Time Zone 10":{aliasTo:"Asia/Srednekolymsk"},"Russia Time Zone 11":{aliasTo:"Asia/Kamchatka"},"Russia Time Zone 3":{aliasTo:"Europe/Samara"},"Russian Standard Time":{aliasTo:"Europe/Moscow"},"SA Eastern Standard Time":{aliasTo:"America/Cayenne"},"SA Pacific Standard Time":{aliasTo:"America/Bogota"},"SA Western Standard Time":{aliasTo:"America/La_Paz"},"SE Asia Standard Time":{aliasTo:"Asia/Bangkok"},"Samoa Standard Time":{aliasTo:"Pacific/Apia"},"Singapore Standard Time":{aliasTo:"Asia/Singapore"},"South Africa Standard Time":{aliasTo:"Africa/Johannesburg"},"Sri Lanka Standard Time":{aliasTo:"Asia/Colombo"},"Syria Standard Time":{aliasTo:"Asia/Damascus"},"Taipei Standard Time":{aliasTo:"Asia/Taipei"},"Tasmania Standard Time":{aliasTo:"Australia/Hobart"},"Tokyo Standard Time":{aliasTo:"Asia/Tokyo"},"Tonga Standard Time":{aliasTo:"Pacific/Tongatapu"},"Turkey Standard Time":{aliasTo:"Europe/Istanbul"},UCT:{aliasTo:"UTC"},"US Eastern Standard Time":{aliasTo:"America/Indiana/Indianapolis"},"US Mountain Standard Time":{aliasTo:"America/Phoenix"},"US/Central":{aliasTo:"America/Chicago"},"US/Eastern":{aliasTo:"America/New_York"},"US/Mountain":{aliasTo:"America/Denver"},"US/Pacific":{aliasTo:"America/Los_Angeles"},"US/Pacific-New":{aliasTo:"America/Los_Angeles"},"Ulaanbaatar Standard Time":{aliasTo:"Asia/Ulaanbaatar"},Universal:{aliasTo:"UTC"},"Venezuela Standard Time":{aliasTo:"America/Caracas"},"Vladivostok Standard Time":{aliasTo:"Asia/Vladivostok"},"W. Australia Standard Time":{aliasTo:"Australia/Perth"},"W. Central Africa Standard Time":{aliasTo:"Africa/Lagos"},"W. Europe Standard Time":{aliasTo:"Europe/Berlin"},"West Asia Standard Time":{aliasTo:"Asia/Tashkent"},"West Pacific Standard Time":{aliasTo:"Pacific/Port_Moresby"},"Yakutsk Standard Time":{aliasTo:"Asia/Yakutsk"},Z:{aliasTo:"UTC"},Zulu:{aliasTo:"UTC"},utc:{aliasTo:"UTC"}},XE={"Africa/Abidjan":{ics:[`BEGIN:STANDARD\r +override isMultiValue`);var d=l.length,u=0;if(this.removeAllValues(),d>0&&typeof l[0]=="object"&&"icaltype"in l[0]&&this.resetType(l[0].icaltype),this.isDecorated)for(;ur)-(r>n)},_normalize:function(){for(var i=this.toSeconds(),n=this.factor;i<-43200;)i+=97200;for(;i>50400;)i-=97200;this.fromSeconds(i),i==0&&(this.factor=n)},toICALString:function(){return t.design.icalendar.value["utc-offset"].toICAL(this.toString())},toString:function(){return(this.factor==1?"+":"-")+t.helpers.pad2(this.hours)+":"+t.helpers.pad2(this.minutes)}},a.fromString=function(i){var n={};return n.factor=i[0]==="+"?1:-1,n.hours=t.helpers.strictParseInt(i.substr(1,2)),n.minutes=t.helpers.strictParseInt(i.substr(4,2)),new t.UtcOffset(n)},a.fromSeconds=function(i){var n=new a;return n.fromSeconds(i),n},a}(),t.Binary=function(){function a(i){this.value=i}return a.prototype={icaltype:"binary",decodeValue:function(){return this._b64_decode(this.value)},setEncodedValue:function(i){this.value=this._b64_encode(i)},_b64_encode:function(i){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r,o,s,l,d,u,c,f,h=0,_=0,m="",p=[];if(!i)return i;do r=i.charCodeAt(h++),o=i.charCodeAt(h++),s=i.charCodeAt(h++),f=r<<16|o<<8|s,l=f>>18&63,d=f>>12&63,u=f>>6&63,c=f&63,p[_++]=n.charAt(l)+n.charAt(d)+n.charAt(u)+n.charAt(c);while(h>16&255,o=f>>8&255,s=f&255,u==64?p[_++]=String.fromCharCode(r):c==64?p[_++]=String.fromCharCode(r,o):p[_++]=String.fromCharCode(r,o,s);while(ho)-(r=0?o=r:s=-1,s==-1&&o!=-1)break;if(r+=s,r<0)return 0;if(r>=this.changes.length)break}var u=this.changes[o],c=u.utcOffset-u.prevUtcOffset;if(c<0&&o>0){var f=t.helpers.clone(u,!0);if(t.Timezone.adjust_change(f,0,0,0,f.prevUtcOffset),t.Timezone._compare_change_fn(n,f)<0){var h=this.changes[o-1],_=!1;u.is_daylight!=_&&h.is_daylight==_&&(u=h)}}return u.utcOffset},_findNearbyChange:function(i){var n=t.helpers.binsearchInsert(this.changes,i,t.Timezone._compare_change_fn);return n>=this.changes.length?this.changes.length-1:n},_ensureCoverage:function(i){if(t.Timezone._minimumExpansionYear==-1){var n=t.Time.now();t.Timezone._minimumExpansionYear=n.year}var r=i;if(rt.Timezone.MAX_YEAR&&(r=t.Timezone.MAX_YEAR),!this.changes.length||this.expandedUntilYearn||!p));)s.year=p.year,s.month=p.month,s.day=p.day,s.hour=p.hour,s.minute=p.minute,s.second=p.second,s.isDate=p.isDate,t.Timezone.adjust_change(s,0,0,0,-s.prevUtcOffset),r.push(s)}}return r},toString:function(){return this.tznames?this.tznames:this.tzid}},t.Timezone._compare_change_fn=function(i,n){return i.yearn.year?1:i.monthn.month?1:i.dayn.day?1:i.hourn.hour?1:i.minuten.minute?1:i.secondn.second?1:0},t.Timezone.convert_time=function(i,n,r){if(i.isDate||n.tzid==r.tzid||n==t.Timezone.localTimezone||r==t.Timezone.localTimezone)return i.zone=r,i;var o=n.utcOffset(i);return i.adjust(0,0,0,-o),o=r.utcOffset(i),i.adjust(0,0,0,o),null},t.Timezone.fromData=function(i){var n=new t.Timezone;return n.fromData(i)},t.Timezone.utcTimezone=t.Timezone.fromData({tzid:"UTC"}),t.Timezone.localTimezone=t.Timezone.fromData({tzid:"floating"}),t.Timezone.adjust_change=function(i,n,r,o,s){return t.Time.prototype.adjust.call(i,n,r,o,s,i)},t.Timezone._minimumExpansionYear=-1,t.Timezone.MAX_YEAR=2035,t.Timezone.EXTRA_COVERAGE=5}(),t.TimezoneService=function(){var a,i={get count(){return Object.keys(a).length},reset:function(){a=Object.create(null);var n=t.Timezone.utcTimezone;a.Z=n,a.UTC=n,a.GMT=n},has:function(n){return!!a[n]},get:function(n){return a[n]},register:function(n,r){if(n instanceof t.Component&&n.name==="vtimezone"&&(r=new t.Timezone(n),n=r.tzid),r instanceof t.Timezone)a[n]=r;else throw new TypeError("timezone must be ICAL.Timezone or ICAL.Component")},remove:function(n){return delete a[n]}};return i.reset(),i}(),function(){t.Time=function(a,i){this.wrappedJSObject=this;var n=this._time=Object.create(null);n.year=0,n.month=1,n.day=1,n.hour=0,n.minute=0,n.second=0,n.isDate=!1,this.fromData(a,i)},t.Time._dowCache={},t.Time._wnCache={},t.Time.prototype={icalclass:"icaltime",_cachedUnixTime:null,get icaltype(){return this.isDate?"date":"date-time"},zone:null,_pendingNormalization:!1,clone:function(){return new t.Time(this._time,this.zone)},reset:function(){this.fromData(t.Time.epochTime),this.zone=t.Timezone.utcTimezone},resetTo:function(a,i,n,r,o,s,l){this.fromData({year:a,month:i,day:n,hour:r,minute:o,second:s,zone:l})},fromJSDate:function(a,i){return a?i?(this.zone=t.Timezone.utcTimezone,this.year=a.getUTCFullYear(),this.month=a.getUTCMonth()+1,this.day=a.getUTCDate(),this.hour=a.getUTCHours(),this.minute=a.getUTCMinutes(),this.second=a.getUTCSeconds()):(this.zone=t.Timezone.localTimezone,this.year=a.getFullYear(),this.month=a.getMonth()+1,this.day=a.getDate(),this.hour=a.getHours(),this.minute=a.getMinutes(),this.second=a.getSeconds()):this.reset(),this._cachedUnixTime=null,this},fromData:function(a,i){if(a){for(var n in a)if(Object.prototype.hasOwnProperty.call(a,n)){if(n==="icaltype")continue;this[n]=a[n]}}if(i&&(this.zone=i),a&&!("isDate"in a)?this.isDate=!("hour"in a):a&&"isDate"in a&&(this.isDate=a.isDate),a&&"timezone"in a){var r=t.TimezoneService.get(a.timezone);this.zone=r||t.Timezone.localTimezone}return a&&"zone"in a&&(this.zone=a.zone),this.zone||(this.zone=t.Timezone.localTimezone),this._cachedUnixTime=null,this},dayOfWeek:function(a){var i=a||t.Time.SUNDAY,n=(this.year<<12)+(this.month<<8)+(this.day<<3)+i;if(n in t.Time._dowCache)return t.Time._dowCache[n];var r=this.day,o=this.month+(this.month<3?12:0),s=this.year-(this.month<3?1:0),l=r+s+t.helpers.trunc((o+1)*26/10)+t.helpers.trunc(s/4);return l+=t.helpers.trunc(s/100)*6+t.helpers.trunc(s/400),l=(l+7-i)%7+1,t.Time._dowCache[n]=l,l},dayOfYear:function(){var a=t.Time.isLeapYear(this.year)?1:0,i=t.Time.daysInYearPassedMonth;return i[a][this.month-1]+this.day},startOfWeek:function(a){var i=a||t.Time.SUNDAY,n=this.clone();return n.day-=(this.dayOfWeek()+7-i)%7,n.isDate=!0,n.hour=0,n.minute=0,n.second=0,n},endOfWeek:function(a){var i=a||t.Time.SUNDAY,n=this.clone();return n.day+=(7-this.dayOfWeek()+i-t.Time.SUNDAY)%7,n.isDate=!0,n.hour=0,n.minute=0,n.second=0,n},startOfMonth:function(){var a=this.clone();return a.day=1,a.isDate=!0,a.hour=0,a.minute=0,a.second=0,a},endOfMonth:function(){var a=this.clone();return a.day=t.Time.daysInMonth(a.month,a.year),a.isDate=!0,a.hour=0,a.minute=0,a.second=0,a},startOfYear:function(){var a=this.clone();return a.day=1,a.month=1,a.isDate=!0,a.hour=0,a.minute=0,a.second=0,a},endOfYear:function(){var a=this.clone();return a.day=31,a.month=12,a.isDate=!0,a.hour=0,a.minute=0,a.second=0,a},startDoyWeek:function(a){var i=a||t.Time.SUNDAY,n=this.dayOfWeek()-i;return n<0&&(n+=7),this.dayOfYear()-n},getDominicalLetter:function(){return t.Time.getDominicalLetter(this.year)},nthWeekDay:function(a,i){var n=t.Time.daysInMonth(this.month,this.year),r,o=i,s=0,l=this.clone();if(o>=0){l.day=1,o!=0&&o--,s=l.day;var d=l.dayOfWeek(),u=a-d;u<0&&(u+=7),s+=u,s-=a,r=a}else{l.day=n;var c=l.dayOfWeek();o++,r=c-a,r<0&&(r+=7),r=n-r}return r+=o*7,s+r},isNthWeekDay:function(a,i){var n=this.dayOfWeek();if(i===0&&n===a)return!0;var r=this.nthWeekDay(a,i);return r===this.day},weekNumber:function(a){var i=(this.year<<12)+(this.month<<8)+(this.day<<3)+a;if(i in t.Time._wnCache)return t.Time._wnCache[i];var n,r=this.clone();r.isDate=!0;var o=this.year;r.month==12&&r.day>25?(n=t.Time.weekOneStarts(o+1,a),r.compare(n)<0?n=t.Time.weekOneStarts(o,a):o++):(n=t.Time.weekOneStarts(o,a),r.compare(n)<0&&(n=t.Time.weekOneStarts(--o,a)));var s=r.subtractDate(n).toSeconds()/86400,l=t.helpers.trunc(s/7)+1;return t.Time._wnCache[i]=l,l},addDuration:function(a){var i=a.isNegative?-1:1,n=this.second,r=this.minute,o=this.hour,s=this.day;n+=i*a.seconds,r+=i*a.minutes,o+=i*a.hours,s+=i*a.days,s+=i*7*a.weeks,this.second=n,this.minute=r,this.hour=o,this.day=s,this._cachedUnixTime=null},subtractDate:function(a){var i=this.toUnixTime()+this.utcOffset(),n=a.toUnixTime()+a.utcOffset();return t.Duration.fromSeconds(i-n)},subtractDateTz:function(a){var i=this.toUnixTime(),n=a.toUnixTime();return t.Duration.fromSeconds(i-n)},compare:function(a){var i=this.toUnixTime(),n=a.toUnixTime();return i>n?1:n>i?-1:0},compareDateOnlyTz:function(a,i){function n(l){return t.Time._cmp_attr(r,o,l)}var r=this.convertToZone(i),o=a.convertToZone(i),s=0;return(s=n("year"))!=0||(s=n("month"))!=0||(s=n("day"))!=0,s},convertToZone:function(a){var i=this.clone(),n=this.zone.tzid==a.tzid;return!this.isDate&&!n&&t.Timezone.convert_time(i,this.zone,a),i.zone=a,i},utcOffset:function(){return this.zone==t.Timezone.localTimezone||this.zone==t.Timezone.utcTimezone?0:this.zone.utcOffset(this)},toICALString:function(){var a=this.toString();return a.length>10?t.design.icalendar.value["date-time"].toICAL(a):t.design.icalendar.value.date.toICAL(a)},toString:function(){var a=this.year+"-"+t.helpers.pad2(this.month)+"-"+t.helpers.pad2(this.day);return this.isDate||(a+="T"+t.helpers.pad2(this.hour)+":"+t.helpers.pad2(this.minute)+":"+t.helpers.pad2(this.second),this.zone===t.Timezone.utcTimezone&&(a+="Z")),a},toJSDate:function(){return this.zone==t.Timezone.localTimezone?this.isDate?new Date(this.year,this.month-1,this.day):new Date(this.year,this.month-1,this.day,this.hour,this.minute,this.second,0):new Date(this.toUnixTime()*1e3)},_normalize:function(){return this._time.isDate,this._time.isDate&&(this._time.hour=0,this._time.minute=0,this._time.second=0),this.adjust(0,0,0,0),this},adjust:function(a,i,n,r,o){var s,l,d=0,u=0,c,f,h,_,m,p=o||this._time;if(p.isDate||(c=p.second+r,p.second=c%60,s=t.helpers.trunc(c/60),p.second<0&&(p.second+=60,s--),f=p.minute+n+s,p.minute=f%60,l=t.helpers.trunc(f/60),p.minute<0&&(p.minute+=60,l--),h=p.hour+i+l,p.hour=h%24,d=t.helpers.trunc(h/24),p.hour<0&&(p.hour+=24,d--)),p.month>12?u=t.helpers.trunc((p.month-1)/12):p.month<1&&(u=t.helpers.trunc(p.month/12)-1),p.year+=u,p.month-=12*u,_=p.day+a+d,_>0)for(;m=t.Time.daysInMonth(p.month,p.year),!(_<=m);)p.month++,p.month>12&&(p.year++,p.month=1),_-=m;else for(;_<=0;)p.month==1?(p.year--,p.month=12):p.month--,_+=t.Time.daysInMonth(p.month,p.year);return p.day=_,this._cachedUnixTime=null,this},fromUnixTime:function(a){this.zone=t.Timezone.utcTimezone;var i=t.Time.epochTime.clone();i.adjust(0,0,0,a),this.year=i.year,this.month=i.month,this.day=i.day,this.hour=i.hour,this.minute=i.minute,this.second=Math.floor(i.second),this._cachedUnixTime=null},toUnixTime:function(){if(this._cachedUnixTime!==null)return this._cachedUnixTime;var a=this.utcOffset(),i=Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second-a);return this._cachedUnixTime=i/1e3,this._cachedUnixTime},toJSON:function(){for(var a=["year","month","day","hour","minute","second","isDate"],i=Object.create(null),n=0,r=a.length,o;n12||(r=n[a],a==2&&(r+=t.Time.isLeapYear(i))),r},t.Time.isLeapYear=function(a){return a<=1752?a%4==0:a%4==0&&a%100!=0||a%400==0},t.Time.fromDayOfYear=function(a,i){var n=i,r=a,o=new t.Time;o.auto_normalize=!1;var s=t.Time.isLeapYear(n)?1:0;if(r<1)return n--,s=t.Time.isLeapYear(n)?1:0,r+=t.Time.daysInYearPassedMonth[s][12],t.Time.fromDayOfYear(r,n);if(r>t.Time.daysInYearPassedMonth[s][12])return s=t.Time.isLeapYear(n)?1:0,r-=t.Time.daysInYearPassedMonth[s][12],n++,t.Time.fromDayOfYear(r,n);o.year=n,o.isDate=!0;for(var l=11;l>=0;l--)if(r>t.Time.daysInYearPassedMonth[s][l]){o.month=l+1,o.day=r-t.Time.daysInYearPassedMonth[s][l];break}return o.auto_normalize=!0,o},t.Time.fromStringv2=function(a){return new t.Time({year:parseInt(a.substr(0,4),10),month:parseInt(a.substr(5,2),10),day:parseInt(a.substr(8,2),10),isDate:!0})},t.Time.fromDateString=function(a){return new t.Time({year:t.helpers.strictParseInt(a.substr(0,4)),month:t.helpers.strictParseInt(a.substr(5,2)),day:t.helpers.strictParseInt(a.substr(8,2)),isDate:!0})},t.Time.fromDateTimeString=function(a,i){if(a.length<19)throw new Error('invalid date-time value: "'+a+'"');var n;a[19]&&a[19]==="Z"?n="Z":i&&(n=i.getParameter("tzid"));var r=new t.Time({year:t.helpers.strictParseInt(a.substr(0,4)),month:t.helpers.strictParseInt(a.substr(5,2)),day:t.helpers.strictParseInt(a.substr(8,2)),hour:t.helpers.strictParseInt(a.substr(11,2)),minute:t.helpers.strictParseInt(a.substr(14,2)),second:t.helpers.strictParseInt(a.substr(17,2)),timezone:n});return r},t.Time.fromString=function(a,i){return a.length>10?t.Time.fromDateTimeString(a,i):t.Time.fromDateString(a)},t.Time.fromJSDate=function(a,i){var n=new t.Time;return n.fromJSDate(a,i)},t.Time.fromData=function(a,i){var n=new t.Time;return n.fromData(a,i)},t.Time.now=function(){return t.Time.fromJSDate(new Date,!1)},t.Time.weekOneStarts=function(a,i){var n=t.Time.fromData({year:a,month:1,day:1,isDate:!0}),r=n.dayOfWeek(),o=i||t.Time.DEFAULT_WEEK_START;return r>t.Time.THURSDAY&&(n.day+=7),o>t.Time.THURSDAY&&(n.day-=7),n.day-=r-o,n},t.Time.getDominicalLetter=function(a){var i="GFEDCBA",n=(a+(a/4|0)+(a/400|0)-(a/100|0)-1)%7,r=t.Time.isLeapYear(a);return r?i[(n+6)%7]+i[n]:i[n]},t.Time.epochTime=t.Time.fromData({year:1970,month:1,day:1,hour:0,minute:0,second:0,isDate:!1,timezone:"Z"}),t.Time._cmp_attr=function(a,i,n){return a[n]>i[n]?1:a[n]4?_?n(u,1,2):n(u,3,2):null,second:f==4?n(u,2,2):f==6?n(u,4,2):f==8?n(u,6,2):null};return d=="Z"?d=t.Timezone.utcTimezone:d&&d[3]==":"?d=t.UtcOffset.fromString(d):d=null,new t.VCardTime(m,d,i)}}(),function(){var a={SU:t.Time.SUNDAY,MO:t.Time.MONDAY,TU:t.Time.TUESDAY,WE:t.Time.WEDNESDAY,TH:t.Time.THURSDAY,FR:t.Time.FRIDAY,SA:t.Time.SATURDAY},i={};for(var n in a)a.hasOwnProperty(n)&&(i[a[n]]=n);t.Recur=function(c){this.wrappedJSObject=this,this.parts={},c&&typeof c=="object"&&this.fromData(c)},t.Recur.prototype={parts:null,interval:1,wkst:t.Time.MONDAY,until:null,count:null,freq:null,icalclass:"icalrecur",icaltype:"recur",iterator:function(c){return new t.RecurIterator({rule:this,dtstart:c})},clone:function(){return new t.Recur(this.toJSON())},isFinite:function(){return!!(this.count||this.until)},isByCount:function(){return!!(this.count&&!this.until)},addComponent:function(c,f){var h=c.toUpperCase();h in this.parts?this.parts[h].push(f):this.parts[h]=[f]},setComponent:function(c,f){this.parts[c.toUpperCase()]=f.slice()},getComponent:function(c){var f=c.toUpperCase();return f in this.parts?this.parts[f].slice():[]},getNextOccurrence:function(c,f){var h=this.iterator(c),_;do _=h.next();while(_&&_.compare(f)<=0);return _&&f.zone&&(_.zone=f.zone),_},fromData:function(c){for(var f in c){var h=f.toUpperCase();h in u?Array.isArray(c[f])?this.parts[h]=c[f]:this.parts[h]=[c[f]]:this[f]=c[f]}this.interval&&typeof this.interval!="number"&&d.INTERVAL(this.interval,this),this.wkst&&typeof this.wkst!="number"&&(this.wkst=t.Recur.icalDayToNumericDay(this.wkst)),this.until&&!(this.until instanceof t.Time)&&(this.until=t.Time.fromString(this.until))},toJSON:function(){var c=Object.create(null);c.freq=this.freq,this.count&&(c.count=this.count),this.interval>1&&(c.interval=this.interval);for(var f in this.parts)if(this.parts.hasOwnProperty(f)){var h=this.parts[f];Array.isArray(h)&&h.length==1?c[f.toLowerCase()]=h[0]:c[f.toLowerCase()]=t.helpers.clone(this.parts[f])}return this.until&&(c.until=this.until.toString()),"wkst"in this&&this.wkst!==t.Time.DEFAULT_WEEK_START&&(c.wkst=t.Recur.numericDayToIcalDay(this.wkst)),c},toString:function(){var c="FREQ="+this.freq;this.count&&(c+=";COUNT="+this.count),this.interval>1&&(c+=";INTERVAL="+this.interval);for(var f in this.parts)this.parts.hasOwnProperty(f)&&(c+=";"+f+"="+this.parts[f]);return this.until&&(c+=";UNTIL="+this.until.toICALString()),"wkst"in this&&this.wkst!==t.Time.DEFAULT_WEEK_START&&(c+=";WKST="+t.Recur.numericDayToIcalDay(this.wkst)),c}};function r(c,f,h,_){var m=_;if(_[0]==="+"&&(m=_.substr(1)),m=t.helpers.strictParseInt(m),f!==void 0&&_ '+f);if(h!==void 0&&_>h)throw new Error(c+': invalid value "'+_+'" must be < '+f);return m}t.Recur.icalDayToNumericDay=function(c,f){var h=f||t.Time.SUNDAY;return(a[c]-h+7)%7+1},t.Recur.numericDayToIcalDay=function(c,f){var h=f||t.Time.SUNDAY,_=c+h-t.Time.SUNDAY;return _>7&&(_-=7),i[_]};var o=/^(SU|MO|TU|WE|TH|FR|SA)$/,s=/^([+-])?(5[0-3]|[1-4][0-9]|[1-9])?(SU|MO|TU|WE|TH|FR|SA)$/,l=["SECONDLY","MINUTELY","HOURLY","DAILY","WEEKLY","MONTHLY","YEARLY"],d={FREQ:function(c,f,h){if(l.indexOf(c)!==-1)f.freq=c;else throw new Error('invalid frequency "'+c+'" expected: "'+l.join(", ")+'"')},COUNT:function(c,f,h){f.count=t.helpers.strictParseInt(c)},INTERVAL:function(c,f,h){f.interval=t.helpers.strictParseInt(c),f.interval<1&&(f.interval=1)},UNTIL:function(c,f,h){c.length>10?f.until=t.design.icalendar.value["date-time"].fromICAL(c):f.until=t.design.icalendar.value.date.fromICAL(c),h||(f.until=t.Time.fromString(f.until))},WKST:function(c,f,h){if(o.test(c))f.wkst=t.Recur.icalDayToNumericDay(c);else throw new Error('invalid WKST value "'+c+'"')}},u={BYSECOND:r.bind(this,"BYSECOND",0,60),BYMINUTE:r.bind(this,"BYMINUTE",0,59),BYHOUR:r.bind(this,"BYHOUR",0,23),BYDAY:function(c){if(s.test(c))return c;throw new Error('invalid BYDAY value "'+c+'"')},BYMONTHDAY:r.bind(this,"BYMONTHDAY",-31,31),BYYEARDAY:r.bind(this,"BYYEARDAY",-366,366),BYWEEKNO:r.bind(this,"BYWEEKNO",-53,53),BYMONTH:r.bind(this,"BYMONTH",1,12),BYSETPOS:r.bind(this,"BYSETPOS",-366,366)};t.Recur.fromString=function(c){var f=t.Recur._stringToData(c,!1);return new t.Recur(f)},t.Recur.fromData=function(c){return new t.Recur(c)},t.Recur._stringToData=function(c,f){for(var h=Object.create(null),_=c.split(";"),m=_.length,p=0;p=0||s<0)&&(this.last.day+=s)}else{var l=t.Recur.numericDayToIcalDay(this.dtstart.dayOfWeek());i.BYDAY=[l]}if(this.rule.freq=="YEARLY"){for(;this.expand_year_days(this.last.year),!(this.days.length>0);)this.increment_year(this.rule.interval);this._nextByYearDay()}if(this.rule.freq=="MONTHLY"&&this.has_by_data("BYDAY")){var d=null,u=this.last.clone(),c=t.Time.daysInMonth(this.last.month,this.last.year);for(var f in this.by_data.BYDAY)if(this.by_data.BYDAY.hasOwnProperty(f)){this.last=u.clone();var n=this.ruleDayOfWeek(this.by_data.BYDAY[f]),r=n[0],o=n[1],h=this.last.nthWeekDay(o,r);if(r>=6||r<=-6)throw new Error("Malformed values in BYDAY part");if(h>c||h<=0){if(d&&d.month==u.month)continue;for(;h>c||h<=0;)this.increment_month(),c=t.Time.daysInMonth(this.last.month,this.last.year),h=this.last.nthWeekDay(o,r)}this.last.day=h,(!d||this.last.compare(d)<0)&&(d=this.last.clone())}if(this.last=d.clone(),this.has_by_data("BYMONTHDAY")&&this._byDayAndMonthDay(!0),this.last.day>c||this.last.day==0)throw new Error("Malformed values in BYDAY part")}else if(this.has_by_data("BYMONTHDAY")&&this.last.day<0){var c=t.Time.daysInMonth(this.last.month,this.last.year);this.last.day=c+this.last.day+1}},next:function(){var i=this.last?this.last.clone():null;if(this.rule.count&&this.occurrence_number>=this.rule.count||this.rule.until&&this.last.compare(this.rule.until)>0)return this.completed=!0,null;if(this.occurrence_number==0&&this.last.compare(this.dtstart)>=0)return this.occurrence_number++,this.last;var n;do switch(n=1,this.rule.freq){case"SECONDLY":this.next_second();break;case"MINUTELY":this.next_minute();break;case"HOURLY":this.next_hour();break;case"DAILY":this.next_day();break;case"WEEKLY":this.next_week();break;case"MONTHLY":n=this.next_month();break;case"YEARLY":this.next_year();break;default:return null}while(!this.check_contracting_rules()||this.last.compare(this.dtstart)<0||!n);if(this.last.compare(i)==0)throw new Error("Same occurrence found twice, protecting you from death by recursion");return this.rule.until&&this.last.compare(this.rule.until)>0?(this.completed=!0,null):(this.occurrence_number++,this.last)},next_second:function(){return this.next_generic("BYSECOND","SECONDLY","second","minute")},increment_second:function(i){return this.increment_generic(i,"second",60,"minute")},next_minute:function(){return this.next_generic("BYMINUTE","MINUTELY","minute","hour","next_second")},increment_minute:function(i){return this.increment_generic(i,"minute",60,"hour")},next_hour:function(){return this.next_generic("BYHOUR","HOURLY","hour","monthday","next_minute")},increment_hour:function(i){this.increment_generic(i,"hour",24,"monthday")},next_day:function(){"BYDAY"in this.by_data;var i=this.rule.freq=="DAILY";return this.next_hour()==0||(i?this.increment_monthday(this.rule.interval):this.increment_monthday(1)),0},next_week:function(){var i=0;if(this.next_weekday_by_week()==0)return i;if(this.has_by_data("BYWEEKNO")){++this.by_indices.BYWEEKNO,this.by_indices.BYWEEKNO==this.by_data.BYWEEKNO.length&&(this.by_indices.BYWEEKNO=0,i=1),this.last.month=1,this.last.day=1;var n=this.by_data.BYWEEKNO[this.by_indices.BYWEEKNO];this.last.day+=7*n,i&&this.increment_year(1)}else this.increment_monthday(7*this.rule.interval);return i},normalizeByMonthDayRules:function(i,n,r){for(var o=t.Time.daysInMonth(n,i),s=[],l=0,d=r.length,u;lo)){if(u<0)u=o+(u+1);else if(u===0)continue;s.indexOf(u)===-1&&s.push(u)}return s.sort(function(c,f){return c-f})},_byDayAndMonthDay:function(i){var n,r=this.by_data.BYDAY,o,s=0,l,d=r.length,u=0,c,f=this,h=this.last.day;function _(){for(c=t.Time.daysInMonth(f.last.month,f.last.year),n=f.normalizeByMonthDayRules(f.last.year,f.last.month,f.by_data.BYMONTHDAY),l=n.length;n[s]<=h&&!(i&&n[s]==h)&&sc){m();continue}var T=n[s++];if(T>=o)h=T;else{m();continue}for(var R=0;Rn&&(this.last.day=1,this.increment_month(),this.is_day_in_byday(this.last)?(!this.has_by_data("BYSETPOS")||this.check_set_position(1))&&(i=1):i=0)}else if(this.has_by_data("BYMONTHDAY")){this.by_indices.BYMONTHDAY++,this.by_indices.BYMONTHDAY>=this.by_data.BYMONTHDAY.length&&(this.by_indices.BYMONTHDAY=0,this.increment_month());var n=t.Time.daysInMonth(this.last.month,this.last.year),l=this.by_data.BYMONTHDAY[this.by_indices.BYMONTHDAY];l<0&&(l=n+l+1),l>n?(this.last.day=1,i=this.is_day_in_byday(this.last)):this.last.day=l}else{this.increment_month();var n=t.Time.daysInMonth(this.last.month,this.last.year);this.by_data.BYMONTHDAY[0]>n?i=0:this.last.day=this.by_data.BYMONTHDAY[0]}return i},next_weekday_by_week:function(){var i=0;if(this.next_hour()==0)return i;if(!this.has_by_data("BYDAY"))return 1;for(;;){var n=new t.Time;this.by_indices.BYDAY++,this.by_indices.BYDAY==Object.keys(this.by_data.BYDAY).length&&(this.by_indices.BYDAY=0,i=1);var r=this.by_data.BYDAY[this.by_indices.BYDAY],o=this.ruleDayOfWeek(r),s=o[1];s-=this.rule.wkst,s<0&&(s+=7),n.year=this.last.year,n.month=this.last.month,n.day=this.last.day;var l=n.startDoyWeek(this.rule.wkst);if(!(s+l<1&&!i)){var d=t.Time.fromDayOfYear(l+s,this.last.year);return this.last.year=d.year,this.last.month=d.month,this.last.day=d.day,i}}},next_year:function(){if(this.next_hour()==0)return 0;if(++this.days_index==this.days.length){this.days_index=0;do this.increment_year(this.rule.interval),this.expand_year_days(this.last.year);while(this.days.length==0)}return this._nextByYearDay(),1},_nextByYearDay:function(){var i=this.days[this.days_index],n=this.last.year;i<1&&(i+=1,n+=1);var r=t.Time.fromDayOfYear(i,n);this.last.day=r.day,this.last.month=r.month},ruleDayOfWeek:function(i,n){var r=i.match(/([+-]?[0-9])?(MO|TU|WE|TH|FR|SA|SU)/);if(r){var o=parseInt(r[1]||0,10);return i=t.Recur.icalDayToNumericDay(r[2],n),[o,i]}else return[0,0]},next_generic:function(i,n,r,o,s){var l=i in this.by_data,d=this.rule.freq==n,u=0;if(s&&this[s]()==0)return u;if(l){this.by_indices[i]++,this.by_indices[i];var c=this.by_data[i];this.by_indices[i]==c.length&&(this.by_indices[i]=0,u=1),this.last[r]=c[this.by_indices[i]]}else d&&this["increment_"+r](this.rule.interval);return l&&u&&d&&this["increment_"+o](1),u},increment_monthday:function(i){for(var n=0;nr&&(this.last.day-=r,this.increment_month())}},increment_month:function(){if(this.last.day=1,this.has_by_data("BYMONTH"))this.by_indices.BYMONTH++,this.by_indices.BYMONTH==this.by_data.BYMONTH.length&&(this.by_indices.BYMONTH=0,this.increment_year(1)),this.last.month=this.by_data.BYMONTH[this.by_indices.BYMONTH];else{this.rule.freq=="MONTHLY"?this.last.month+=this.rule.interval:this.last.month++,this.last.month--;var i=t.helpers.trunc(this.last.month/12);this.last.month%=12,this.last.month++,i!=0&&this.increment_year(i)}},increment_year:function(i){this.last.year+=i},increment_generic:function(i,n,r,o){this.last[n]+=i;var s=t.helpers.trunc(this.last[n]/r);this.last[n]%=r,s!=0&&this["increment_"+o](s)},has_by_data:function(i){return i in this.rule.parts},expand_year_days:function(i){var n=new t.Time;this.days=[];var r={},o=["BYDAY","BYWEEKNO","BYMONTHDAY","BYMONTH","BYYEARDAY"];for(var s in o)if(o.hasOwnProperty(s)){var l=o[s];l in this.rule.parts&&(r[l]=this.rule.parts[l])}if("BYMONTH"in r&&"BYWEEKNO"in r){var d=1,u={};n.year=i,n.isDate=!0;for(var c=0;c0?(z=re+(U-1)*7,z<=M&&this.days.push(D+z)):(z=O+(U+1)*7,z>0&&this.days.push(D+z))}}this.days.sort(function(Ze,Re){return Ze-Re})}else if(T==2&&"BYDAY"in r&&"BYMONTHDAY"in r){var ge=this.expand_by_day(i);for(var Se in ge)if(ge.hasOwnProperty(Se)){var L=ge[Se],Fe=t.Time.fromDayOfYear(L,i);this.by_data.BYMONTHDAY.indexOf(Fe.day)>=0&&this.days.push(L)}}else if(T==3&&"BYDAY"in r&&"BYMONTHDAY"in r&&"BYMONTH"in r){var ge=this.expand_by_day(i);for(var Se in ge)if(ge.hasOwnProperty(Se)){var L=ge[Se],Fe=t.Time.fromDayOfYear(L,i);this.by_data.BYMONTH.indexOf(Fe.month)>=0&&this.by_data.BYMONTHDAY.indexOf(Fe.day)>=0&&this.days.push(L)}}else if(T==2&&"BYDAY"in r&&"BYWEEKNO"in r){var ge=this.expand_by_day(i);for(var Se in ge)if(ge.hasOwnProperty(Se)){var L=ge[Se],Fe=t.Time.fromDayOfYear(L,i),p=Fe.weekNumber(this.rule.wkst);this.by_data.BYWEEKNO.indexOf(p)&&this.days.push(L)}}else T==3&&"BYDAY"in r&&"BYWEEKNO"in r&&"BYMONTHDAY"in r||(T==1&&"BYYEARDAY"in r?this.days=this.days.concat(this.by_data.BYYEARDAY):this.days=[]);return 0},expand_by_day:function(i){var n=[],r=this.last.clone();r.year=i,r.month=1,r.day=1,r.isDate=!0;var o=r.dayOfWeek();r.month=12,r.day=31,r.isDate=!0;var s=r.dayOfWeek(),l=r.dayOfYear();for(var d in this.by_data.BYDAY)if(this.by_data.BYDAY.hasOwnProperty(d)){var u=this.by_data.BYDAY[d],c=this.ruleDayOfWeek(u),f=c[0],h=c[1];if(f==0)for(var _=(h+7-o)%7+1,m=_;m<=l;m+=7)n.push(m);else if(f>0){var p;h>=o?p=h-o+1:p=h-o+8,n.push(p+(f-1)*7)}else{var T;f=-f,h<=s?T=l-s+h:T=l-s+h-7,n.push(T-(f-1)*7)}}return n},is_day_in_byday:function(i){for(var n in this.by_data.BYDAY)if(this.by_data.BYDAY.hasOwnProperty(n)){var r=this.by_data.BYDAY[n],o=this.ruleDayOfWeek(r),s=o[0],l=o[1],d=i.dayOfWeek();if(s==0&&l==d||i.nthWeekDay(l,s)==i.day)return 1}return 0},check_set_position:function(i){if(this.has_by_data("BYSETPOS")){var n=this.by_data.BYSETPOS.indexOf(i);return n!==-1}return!1},sort_byday_rules:function(i){for(var n=0;ns){var l=i[n];i[n]=i[r],i[r]=l}}},check_contract_restriction:function(i,n){var r=a._indexMap[i],o=a._expandMap[this.rule.freq][r],s=!1;if(i in this.by_data&&o==a.CONTRACT){var l=this.by_data[i];for(var d in l)if(l.hasOwnProperty(d)&&l[d]==n){s=!0;break}}else s=!0;return s},check_contracting_rules:function(){var i=this.last.dayOfWeek(),n=this.last.weekNumber(this.rule.wkst),r=this.last.dayOfYear();return this.check_contract_restriction("BYSECOND",this.last.second)&&this.check_contract_restriction("BYMINUTE",this.last.minute)&&this.check_contract_restriction("BYHOUR",this.last.hour)&&this.check_contract_restriction("BYDAY",t.Recur.numericDayToIcalDay(i))&&this.check_contract_restriction("BYWEEKNO",n)&&this.check_contract_restriction("BYMONTHDAY",this.last.day)&&this.check_contract_restriction("BYMONTH",this.last.month)&&this.check_contract_restriction("BYYEARDAY",r)},setup_defaults:function(i,n,r){var o=a._indexMap[i],s=a._expandMap[this.rule.freq][o];return s!=a.CONTRACT&&(i in this.by_data||(this.by_data[i]=[r]),this.rule.freq!=n)?this.by_data[i][0]:r},toJSON:function(){var i=Object.create(null);return i.initialized=this.initialized,i.rule=this.rule.toJSON(),i.dtstart=this.dtstart.toJSON(),i.by_data=this.by_data,i.days=this.days,i.last=this.last.toJSON(),i.by_indices=this.by_indices,i.occurrence_number=this.occurrence_number,i}},a._indexMap={BYSECOND:0,BYMINUTE:1,BYHOUR:2,BYDAY:3,BYMONTHDAY:4,BYYEARDAY:5,BYWEEKNO:6,BYMONTH:7,BYSETPOS:8},a._expandMap={SECONDLY:[1,1,1,1,1,1,1,1],MINUTELY:[2,1,1,1,1,1,1,1],HOURLY:[2,2,1,1,1,1,1,1],DAILY:[2,2,2,1,1,1,1,1],WEEKLY:[2,2,2,2,3,3,1,1],MONTHLY:[2,2,2,2,2,3,3,1],YEARLY:[2,2,2,2,2,2,2,2]},a.UNKNOWN=0,a.CONTRACT=1,a.EXPAND=2,a.ILLEGAL=3,a}(),t.RecurExpansion=function(){function a(o){return t.helpers.formatClassType(o,t.Time)}function i(o,s){return o.compare(s)}function n(o){return o.hasProperty("rdate")||o.hasProperty("rrule")||o.hasProperty("recurrence-id")}function r(o){this.ruleDates=[],this.exDates=[],this.fromData(o)}return r.prototype={complete:!1,ruleIterators:null,ruleDates:null,exDates:null,ruleDateInc:0,exDateInc:0,exDate:null,ruleDate:null,dtstart:null,last:null,fromData:function(o){var s=t.helpers.formatClassType(o.dtstart,t.Time);if(s)this.dtstart=s;else throw new Error(".dtstart (ICAL.Time) must be given");if(o.component)this._init(o.component);else{if(this.last=a(o.last)||s.clone(),!o.ruleIterators)throw new Error(".ruleIterators or .component must be given");this.ruleIterators=o.ruleIterators.map(function(l){return t.helpers.formatClassType(l,t.RecurIterator)}),this.ruleDateInc=o.ruleDateInc,this.exDateInc=o.exDateInc,o.ruleDates&&(this.ruleDates=o.ruleDates.map(a),this.ruleDate=this.ruleDates[this.ruleDateInc]),o.exDates&&(this.exDates=o.exDates.map(a),this.exDate=this.exDates[this.exDateInc]),typeof o.complete<"u"&&(this.complete=o.complete)}},next:function(){for(var o,s,l,d=500,u=0;;){if(u++>d)throw new Error("max tries have occured, rule may be impossible to forfill.");if(s=this.ruleDate,o=this._nextRecurrenceIter(this.last),!s&&!o){this.complete=!0;break}if((!s||o&&s.compare(o.last)>0)&&(s=o.last.clone(),o.next()),this.ruleDate===s&&this._nextRuleDay(),this.last=s,this.exDate&&(l=this.exDate.compare(this.last),l<0&&this._nextExDay(),l===0)){this._nextExDay();continue}return this.last}},toJSON:function(){function o(l){return l.toJSON()}var s=Object.create(null);return s.ruleIterators=this.ruleIterators.map(o),this.ruleDates&&(s.ruleDates=this.ruleDates.map(o)),this.exDates&&(s.exDates=this.exDates.map(o)),s.ruleDateInc=this.ruleDateInc,s.exDateInc=this.exDateInc,s.last=this.last.toJSON(),s.dtstart=this.dtstart.toJSON(),s.complete=this.complete,s},_extractDates:function(o,s){function l(_){h=t.helpers.binsearchInsert(d,_,i),d.splice(h,0,_)}for(var d=[],u=o.getAllProperties(s),c=u.length,f=0,h;f0)&&(c=l)}return c}},r}(),t.Event=function(){function a(n,r){n instanceof t.Component||(r=n,n=null),n?this.component=n:this.component=new t.Component("vevent"),this._rangeExceptionCache=Object.create(null),this.exceptions=Object.create(null),this.rangeExceptions=[],r&&r.strictExceptions&&(this.strictExceptions=r.strictExceptions),r&&r.exceptions?r.exceptions.forEach(this.relateException,this):this.component.parent&&!this.isRecurrenceException()&&this.component.parent.getAllSubcomponents("vevent").forEach(function(o){o.hasProperty("recurrence-id")&&this.relateException(o)},this)}a.prototype={THISANDFUTURE:"THISANDFUTURE",exceptions:null,strictExceptions:!1,relateException:function(n){if(this.isRecurrenceException())throw new Error("cannot relate exception to exceptions");if(n instanceof t.Component&&(n=new t.Event(n)),this.strictExceptions&&n.uid!==this.uid)throw new Error("attempted to relate unrelated exception");var r=n.recurrenceId.toString();if(this.exceptions[r]=n,n.modifiesFuture()){var o=[n.recurrenceId.toUnixTime(),r],s=t.helpers.binsearchInsert(this.rangeExceptions,o,i);this.rangeExceptions.splice(s,0,o)}},modifiesFuture:function(){if(!this.component.hasProperty("recurrence-id"))return!1;var n=this.component.getFirstProperty("recurrence-id").getParameter("range");return n===this.THISANDFUTURE},findRangeException:function(n){if(!this.rangeExceptions.length)return null;var r=n.toUnixTime(),o=t.helpers.binsearchInsert(this.rangeExceptions,[r],i);if(o-=1,o<0)return null;var s=this.rangeExceptions[o];return rr[0]?1:r[0]>n[0]?-1:0}return a}(),t.ComponentParser=function(){function a(i){typeof i>"u"&&(i={});var n;for(n in i)i.hasOwnProperty(n)&&(this[n]=i[n])}return a.prototype={parseEvent:!0,parseTimezone:!0,oncomplete:function(){},onerror:function(i){},ontimezone:function(i){},onevent:function(i){},process:function(i){typeof i=="string"&&(i=t.parse(i)),i instanceof t.Component||(i=new t.Component(i));for(var n=i.getAllSubcomponents(),r=0,o=n.length,s;r0)return this.value[0]}else return this.value;return null}*getValueIterator(){this.isMultiValue()?yield*this.value.slice()[Symbol.iterator]():yield this.value}isMultiValue(){return Array.isArray(this._value)}clone(){const t=new this.constructor(this._name);return this.isMultiValue()?t.value=this._value.slice():t.value=this._value,t}_modifyContent(){super._modifyContent(),this._notifySubscribers()}}class Yt extends jo(Io(class{})){constructor(t){if(new.target===Yt)throw new TypeError("Cannot instantiate abstract class AbstractValue");super(),this._innerValue=t}toICALJs(){return this._innerValue}_modifyContent(){super._modifyContent(),this._notifySubscribers()}}class pt extends Yt{get rawValue(){return this._innerValue.value}set rawValue(t){this._modifyContent(),this._innerValue.value=t}get value(){return this._innerValue.decodeValue()}set value(t){this._modifyContent(),this._innerValue.setEncodedValue(t)}clone(){return pt.fromRawValue(this._innerValue.value)}static fromICALJs(t){return new pt(t)}static fromRawValue(t){const a=new me.Binary(t);return pt.fromICALJs(a)}static fromDecodedValue(t){const a=new me.Binary;return a.setEncodedValue(t),pt.fromICALJs(a)}}class Lt extends Yt{get weeks(){return this._innerValue.weeks}set weeks(t){if(this._modifyContent(),t<0)throw new TypeError("Weeks cannot be negative, use isNegative instead");this._innerValue.weeks=t}get days(){return this._innerValue.days}set days(t){if(this._modifyContent(),t<0)throw new TypeError("Days cannot be negative, use isNegative instead");this._innerValue.days=t}get hours(){return this._innerValue.hours}set hours(t){if(this._modifyContent(),t<0)throw new TypeError("Hours cannot be negative, use isNegative instead");this._innerValue.hours=t}get minutes(){return this._innerValue.minutes}set minutes(t){if(this._modifyContent(),t<0)throw new TypeError("Minutes cannot be negative, use isNegative instead");this._innerValue.minutes=t}get seconds(){return this._innerValue.seconds}set seconds(t){if(this._modifyContent(),t<0)throw new TypeError("Seconds cannot be negative, use isNegative instead");this._innerValue.seconds=t}get isNegative(){return this._innerValue.isNegative}set isNegative(t){this._modifyContent(),this._innerValue.isNegative=!!t}get totalSeconds(){return this._innerValue.toSeconds()}set totalSeconds(t){this._modifyContent(),this._innerValue.fromSeconds(t)}compare(t){return this._innerValue.compare(t.toICALJs())}addDuration(t){this._modifyContent(),this.totalSeconds+=t.totalSeconds,this._innerValue.normalize()}subtractDuration(t){this._modifyContent(),this.totalSeconds-=t.totalSeconds,this._innerValue.normalize()}clone(){return Lt.fromICALJs(this._innerValue.clone())}static fromICALJs(t){return new Lt(t)}static fromSeconds(t){const a=me.Duration.fromSeconds(t);return new Lt(a)}static fromData(t){const a=me.Duration.fromData(t);return new Lt(a)}}class Te extends Yt{get year(){return this._innerValue.year}set year(t){this._modifyContent(),this._innerValue.year=t}get month(){return this._innerValue.month}set month(t){if(this._modifyContent(),t<1||t>12)throw new TypeError("Month out of range");this._innerValue.month=t}get day(){return this._innerValue.day}set day(t){if(this._modifyContent(),t<1||t>31)throw new TypeError("Day out of range");this._innerValue.day=t}get hour(){return this._innerValue.hour}set hour(t){if(this._modifyContent(),t<0||t>23)throw new TypeError("Hour out of range");this._innerValue.hour=t}get minute(){return this._innerValue.minute}set minute(t){if(this._modifyContent(),t<0||t>59)throw new TypeError("Minute out of range");this._innerValue.minute=t}get second(){return this._innerValue.second}set second(t){if(this._modifyContent(),t<0||t>59)throw new TypeError("Second out of range");this._innerValue.second=t}get timezoneId(){return this._innerValue.zone.tzid&&this._innerValue.zone.tzid!=="floating"&&this._innerValue.zone.tzid==="UTC"?this._innerValue.zone.tzid:this._innerValue.timezone?this._innerValue.timezone:this._innerValue.zone.tzid||null}get isDate(){return this._innerValue.isDate}set isDate(t){this._modifyContent(),this._innerValue.isDate=!!t,t&&(this._innerValue.hour=0,this._innerValue.minute=0,this._innerValue.second=0)}get unixTime(){return this._innerValue.toUnixTime()}get jsDate(){return this._innerValue.toJSDate()}addDuration(t){this._innerValue.addDuration(t.toICALJs())}subtractDateWithoutTimezone(t){const a=this._innerValue.subtractDate(t.toICALJs());return Lt.fromICALJs(a)}subtractDateWithTimezone(t){const a=this._innerValue.subtractDateTz(t.toICALJs());return Lt.fromICALJs(a)}compare(t){return this._innerValue.compare(t.toICALJs())}compareDateOnlyInGivenTimezone(t,a){return this._innerValue.compareDateOnlyTz(t.toICALJs(),a.toICALTimezone())}getInTimezone(t){const a=this._innerValue.convertToZone(t.toICALTimezone());return Te.fromICALJs(a)}getICALTimezone(){return this._innerValue.zone}getInICALTimezone(t){const a=this._innerValue.convertToZone(t);return Te.fromICALJs(a)}getInUTC(){const t=this._innerValue.convertToZone(me.Timezone.utcTimezone);return Te.fromICALJs(t)}silentlyReplaceTimezone(t){this._modify(),this._innerValue=new me.Time({year:this.year,month:this.month,day:this.day,hour:this.hour,minute:this.minute,second:this.second,isDate:this.isDate,timezone:t})}replaceTimezone(t){this._modifyContent(),this._innerValue=me.Time.fromData({year:this.year,month:this.month,day:this.day,hour:this.hour,minute:this.minute,second:this.second,isDate:this.isDate},t.toICALTimezone())}utcOffset(){return this._innerValue.utcOffset()}isFloatingTime(){return this._innerValue.zone.tzid==="floating"}clone(){return Te.fromICALJs(this._innerValue.clone())}static fromICALJs(t){return new Te(t)}static fromJSDate(t,a=!1){const i=me.Time.fromJSDate(t,a);return Te.fromICALJs(i)}static fromData(t,a){const i=me.Time.fromData(t,a?a.toICALTimezone():void 0);return Te.fromICALJs(i)}}Te.SUNDAY=me.Time.SUNDAY,Te.MONDAY=me.Time.MONDAY,Te.TUESDAY=me.Time.TUESDAY,Te.WEDNESDAY=me.Time.WEDNESDAY,Te.THURSDAY=me.Time.THURSDAY,Te.FRIDAY=me.Time.FRIDAY,Te.SATURDAY=me.Time.SATURDAY,Te.DEFAULT_WEEK_START=Te.MONDAY;class Tt extends Yt{constructor(...t){super(...t),this._start=Te.fromICALJs(this._innerValue.start),this._end=null,this._duration=null}get start(){return this._start}set start(t){this._modifyContent(),this._start=t,this._innerValue.start=t.toICALJs()}get end(){return this._end||(this._duration&&(this._duration.lock(),this._duration=null),this._innerValue.end=this._innerValue.getEnd(),this._end=Te.fromICALJs(this._innerValue.end),this._innerValue.duration=null,this.isLocked()&&this._end.lock()),this._end}set end(t){this._modifyContent(),this._innerValue.duration=null,this._innerValue.end=t.toICALJs(),this._end=t}get duration(){return this._duration||(this._end&&(this._end.lock(),this._end=null),this._innerValue.duration=this._innerValue.getDuration(),this._duration=Lt.fromICALJs(this._innerValue.duration),this._innerValue.end=null,this.isLocked()&&this._duration.lock()),this._duration}set duration(t){this._modifyContent(),this._innerValue.end=null,this._innerValue.duration=t.toICALJs(),this._duration=t}lock(){super.lock(),this.start.lock(),this._end&&this._end.lock(),this._duration&&this._duration.lock()}unlock(){super.unlock(),this.start.unlock(),this._end&&this._end.unlock(),this._duration&&this._duration.unlock()}clone(){return Tt.fromICALJs(this._innerValue.clone())}static fromICALJs(t){return new Tt(t)}static fromDataWithEnd(t){const a=me.Period.fromData({start:t.start.toICALJs(),end:t.end.toICALJs()});return Tt.fromICALJs(a)}static fromDataWithDuration(t){const a=me.Period.fromData({start:t.start.toICALJs(),duration:t.duration.toICALJs()});return Tt.fromICALJs(a)}}const w9=["SECONDLY","MINUTELY","HOURLY","DAILY","WEEKLY","MONTHLY","YEARLY"];class Jn extends Yt{constructor(t,a){super(t),this._until=a}get interval(){return this._innerValue.interval}set interval(t){this._modifyContent(),this._innerValue.interval=parseInt(t,10)}get weekStart(){return this._innerValue.wkst}set weekStart(t){if(this._modifyContent(),tTe.SATURDAY)throw new TypeError("Weekstart out of range");this._innerValue.wkst=t}get until(){return!this._until&&this._innerValue.until&&(this._until=Te.fromICALJs(this._innerValue.until)),this._until}set until(t){this._modifyContent(),this._until&&this._until.lock(),this._until=t,this._innerValue.count=null,this._innerValue.until=t.toICALJs()}get count(){return this._innerValue.count}set count(t){this._modifyContent(),this._until&&(this._until.lock(),this._until=null),this._innerValue.until=null,this._innerValue.count=parseInt(t,10)}get frequency(){return this._innerValue.freq}set frequency(t){if(this._modifyContent(),!w9.includes(t))throw new TypeError("Unknown frequency");this._innerValue.freq=t}setToInfinite(){this._modifyContent(),this._until&&(this._until.lock(),this._until=null),this._innerValue.until=null,this._innerValue.count=null}isFinite(){return this._innerValue.isFinite()}isByCount(){return this._innerValue.isByCount()}addComponent(t,a){this._modifyContent(),this._innerValue.addComponent(t,a)}setComponent(t,a){this._modifyContent(),a.length===0?delete this._innerValue.parts[t.toUpperCase()]:this._innerValue.setComponent(t,a)}removeComponent(t){delete this._innerValue.parts[Ce(t)]}getComponent(t){return this._innerValue.getComponent(t)}isRuleValid(){return!0}lock(){super.lock(),this._until&&this._until.lock()}unlock(){super.unlock(),this._until&&this._until.unlock()}clone(){return Jn.fromICALJs(this._innerValue.clone())}static fromICALJs(t,a=null){return new Jn(t,a)}static fromData(t){let a=null;t.until&&(a=t.until,t.until=t.until.toICALJs());const i=me.Recur.fromData(t);return Jn.fromICALJs(i,a)}}class Wi extends Yt{get hours(){return this._innerValue.hours}set hours(t){this._modifyContent(),this._innerValue.hours=t}get minutes(){return this._innerValue.minutes}set minutes(t){this._modifyContent(),this._innerValue.minutes=t}get factor(){return this._innerValue.factor}set factor(t){if(this._modifyContent(),t!==1&&t!==-1)throw new TypeError("Factor may only be set to 1 or -1");this._innerValue.factor=t}get totalSeconds(){return this._innerValue.toSeconds()}set totalSeconds(t){this._modifyContent(),this._innerValue.fromSeconds(t)}compare(t){return this._innerValue.compare(t.toICALJs())}clone(){return Wi.fromICALJs(this._innerValue.clone())}static fromICALJs(t){return new Wi(t)}static fromData(t){const a=new me.UtcOffset;return a.fromData(t),Wi.fromICALJs(a)}static fromSeconds(t){const a=me.UtcOffset.fromSeconds(t);return Wi.fromICALJs(a)}}class O9 extends Error{}function x9(e){switch(la(e)){case"binary":return pt;case"date":case"date-time":return Te;case"duration":return Lt;case"period":return Tt;case"recur":return Jn;case"utc-offset":return Wi;default:throw new O9}}class Et extends jo(Io(class{})){constructor(t,a=null,i=[],n=null,r=null){super(),this._name=Ce(t),this._value=a,this._parameters=new Map,this._root=n,this._parent=r,this._setParametersFromConstructor(i),a instanceof Yt&&a.subscribe(()=>this._notifySubscribers())}get name(){return this._name}get value(){return this._value}set value(t){this._modifyContent(),this._value=t,t instanceof Yt&&t.subscribe(()=>this._notifySubscribers())}get root(){return this._root}set root(t){this._modify(),this._root=t}get parent(){return this._parent}set parent(t){this._modify(),this._parent=t}getFirstValue(){if(this.isMultiValue()){if(this.value.length>0)return this.value[0]}else return this.value;return null}*getValueIterator(){this.isMultiValue()?yield*this.value.slice()[Symbol.iterator]():yield this.value}addValue(t){if(!this.isMultiValue())throw new TypeError("This is not a multivalue property");this._modifyContent(),this.value.push(t)}hasValue(t){if(!this.isMultiValue())throw new TypeError("This is not a multivalue property");return this.value.includes(t)}removeValue(t){if(!this.hasValue(t))return;this._modifyContent();const a=this.value.indexOf(t);this.value.splice(a,1)}setParameter(t){this._modify(),this._parameters.set(t.name,t),t.subscribe(()=>this._notifySubscribers())}getParameter(t){return this._parameters.get(Ce(t))}*getParametersIterator(){yield*this._parameters.values()}getParameterFirstValue(t){const a=this.getParameter(t);return a instanceof Cn?a.isMultiValue()?a.value[0]:a.value:null}hasParameter(t){return this._parameters.has(Ce(t))}deleteParameter(t){this._modify(),this._parameters.delete(Ce(t))}updateParameterIfExist(t,a){if(this._modify(),this.hasParameter(t)){const i=this.getParameter(t);i.value=a}else{const i=new Cn(Ce(t),a);this.setParameter(i)}}isMultiValue(){return Array.isArray(this._value)}isDecoratedValue(){return this.isMultiValue()?this._value[0]instanceof Yt:this._value instanceof Yt}lock(){super.lock();for(const t of this.getParametersIterator())t.lock();if(this.isDecoratedValue())for(const t of this.getValueIterator())t.lock()}unlock(){super.unlock();for(const t of this.getParametersIterator())t.unlock();if(this.isDecoratedValue())for(const t of this.getValueIterator())t.unlock()}clone(){const t=[];for(const a of this.getParametersIterator())t.push(a.clone());return new this.constructor(this.name,this._cloneValue(),t,this.root,this.parent)}_cloneValue(){return this.isDecoratedValue()?this.isMultiValue()?this._value.map(t=>t.clone()):this._value.clone():this.isMultiValue()?this._value.slice():this._value}_setParametersFromConstructor(t){t.forEach(a=>{a instanceof Cn||(a=new Cn(a[0],a[1])),this.setParameter(a)})}static fromICALJs(t,a=null,i=null){if(!(t instanceof me.Property))throw new n_;let n;if(t.isDecorated){const o=x9(t.getFirstValue().icaltype);t.isMultiValue?n=t.getValues().map(s=>o.fromICALJs(s)):n=o.fromICALJs(t.getFirstValue())}else t.isMultiValue?n=t.getValues():n=t.getFirstValue();const r=[];return Object.keys(Object.assign({},t.toJSON()[1])).forEach(o=>{Ce(o)!=="TZID"&&r.push([o,t.getParameter(o)])}),new this(t.name,n,r,a,i)}toICALJs(){const t=Gu(la(this.name));this.isMultiValue()?this.isDecoratedValue()?t.setValues(this.value.map(i=>i.toICALJs())):t.setValues(this.value):this.isDecoratedValue()?t.setValue(this.value.toICALJs()):t.setValue(this.value);for(const i of this.getParametersIterator())t.setParameter(la(i.name),i.value);const a=this.getFirstValue();return a instanceof Te&&a.timezoneId!=="floating"&&a.timezoneId!=="UTC"&&!a.isDate&&t.setParameter("tzid",a.timezoneId),t}_modifyContent(){super._modifyContent(),this._notifySubscribers()}}class Ri extends Et{get formatType(){return this.getParameterFirstValue("FMTTYPE")}set formatType(t){this.updateParameterIfExist("FMTTYPE",t)}get uri(){return this._value instanceof pt?null:this._value}set uri(t){this.value=t}get encoding(){return this._value instanceof pt?"BASE64":null}get data(){return this._value instanceof pt?this._value.value:null}set data(t){this.value instanceof pt?this.value.value=t:this.value=pt.fromDecodedValue(t)}toICALJs(){const t=super.toICALJs();return this._value instanceof pt&&this.getParameterFirstValue("ENCODING")!=="BASE64"&&t.setParameter("ENCODING","BASE64"),t}static fromData(t,a=null){const i=pt.fromDecodedValue(t),n=new Ri("ATTACH",i);return a&&(n.formatType=a),n}static fromLink(t,a=null){const i=new Ri("ATTACH",t);return a&&(i.formatType=a),i}}class ra extends Et{get role(){const t=["CHAIR","REQ-PARTICIPANT","OPT-PARTICIPANT","NON-PARTICIPANT"],a="REQ-PARTICIPANT";if(this.hasParameter("ROLE")){const i=this.getParameterFirstValue("ROLE");if(t.includes(i))return i}return a}set role(t){this.updateParameterIfExist("ROLE",t)}get userType(){const t=["INDIVIDUAL","GROUP","RESOURCE","ROOM","UNKNOWN"];if(this.hasParameter("CUTYPE")){const a=this.getParameterFirstValue("CUTYPE");return t.includes(a)?a:"UNKNOWN"}else return"INDIVIDUAL"}set userType(t){this.updateParameterIfExist("CUTYPE",t)}get rsvp(){if(this.hasParameter("RSVP")){const t=this.getParameterFirstValue("RSVP");return Ce(t)==="TRUE"}else return!1}set rsvp(t){this.updateParameterIfExist("RSVP",t?"TRUE":"FALSE")}get commonName(){return this.getParameterFirstValue("CN")}set commonName(t){this.updateParameterIfExist("CN",t)}get participationStatus(){let t;this.parent?t=this.parent.name:t="VEVENT";const a={VEVENT:["NEEDS-ACTION","ACCEPTED","DECLINED","TENTATIVE","DELEGATED"],VJOURNAL:["NEEDS-ACTION","ACCEPTED","DECLINED"],VTODO:["NEEDS-ACTION","ACCEPTED","DECLINED","TENTATIVE","DELEGATED","COMPLETED","IN-PROCESS"]};if(this.hasParameter("PARTSTAT")){const i=this.getParameterFirstValue("PARTSTAT");return a[t].includes(i)?i:"NEEDS-ACTION"}else return"NEEDS-ACTION"}set participationStatus(t){this.updateParameterIfExist("PARTSTAT",t)}get language(){return this.getParameterFirstValue("LANGUAGE")}set language(t){this.updateParameterIfExist("LANGUAGE",t)}get email(){return this.value}set email(t){this.value=V0(t,"mailto:")}get member(){return this.getParameter("MEMBER")?.value??null}set member(t){t=t.map(a=>V0(a,"mailto:")),this.updateParameterIfExist("MEMBER",t)}isOrganizer(){return this._name==="ORGANIZER"}static fromNameAndEMail(t,a,i=!1){const n=i?"ORGANIZER":"ATTENDEE";return a=V0(a,"mailto:"),new ra(n,a,[["CN",t]])}static fromNameEMailRoleUserTypeAndRSVP(t,a,i,n,r,o=!1){const s=o?"ORGANIZER":"ATTENDEE";return a=V0(a,"mailto:"),new ra(s,a,[["CN",t],["ROLE",i],["CUTYPE",n],["RSVP",r?"TRUE":"FALSE"]])}}me.design.icalendar.property.conference={defaultType:"uri"},me.design.icalendar.param.feature={valueType:"cal-address",multiValue:","};class v0 extends Et{*getFeatureIterator(){this.hasParameter("FEATURE")&&(yield*this.getParameter("FEATURE").getValueIterator())}listAllFeatures(){return this.hasParameter("FEATURE")?this.getParameter("FEATURE").value.slice():[]}addFeature(t){if(this._modify(),!this.hasParameter("FEATURE"))this.updateParameterIfExist("FEATURE",[t]);else{if(this.hasFeature(t))return;this.getParameter("FEATURE").value.push(t)}}removeFeature(t){if(this._modify(),!this.hasFeature(t))return;const a=this.getParameter("FEATURE"),i=a.value.indexOf(t);a.value.splice(i,1)}clearAllFeatures(){this.deleteParameter("FEATURE")}hasFeature(t){if(!this.hasParameter("FEATURE"))return!1;const a=this.getParameter("FEATURE");return Array.isArray(a.value)?a.value.includes(t):!1}get label(){return this.getParameterFirstValue("LABEL")}set label(t){this.updateParameterIfExist("LABEL",t)}get uri(){return this.value}set uri(t){this.value=t}toICALJs(){const t=super.toICALJs();return t.setParameter("value","URI"),t}static fromURILabelAndFeatures(t,a=null,i=null){const n=new v0("CONFERENCE",t);return a&&n.updateParameterIfExist("label",a),i&&n.updateParameterIfExist("feature",i),n}}class Uu extends Et{get type(){const t=["FREE","BUSY","BUSY-UNAVAILABLE","BUSY-TENTATIVE"],a="BUSY";if(this.hasParameter("FBTYPE")){const i=this.getParameterFirstValue("FBTYPE");if(t.includes(i))return i}return a}set type(t){this.updateParameterIfExist("FBTYPE",t)}static fromPeriodAndType(t,a){return new Uu("FREEBUSY",t,[["fbtype",a]])}}class R0 extends Et{constructor(t,a=[0,0],i=[],n=null,r=null){super(t,a,i,n,r)}get latitude(){return this._value[0]}set latitude(t){this._modifyContent(),typeof t!="number"&&(t=parseFloat(t)),this._value[0]=t}get longitude(){return this._value[1]}set longitude(t){this._modifyContent(),typeof t!="number"&&(t=parseFloat(t)),this._value[1]=t}toICALJs(){const t=Gu(la(this.name));return t.setValue(this.value),this._parameters.forEach(a=>{t.setParameter(la(a.name),a.value)}),t}static fromPosition(t,a){return new R0("GEO",[t,a])}}class gn extends Ri{get display(){return this.getParameterFirstValue("DISPLAY")||"BADGE"}set display(t){this.updateParameterIfExist("DISPLAY",t)}static fromData(t,a=null,i=null){const n=pt.fromDecodedValue(t),r=new gn("IMAGE",n);return a&&(r.display=a),i&&(r.formatType=i),r}static fromLink(t,a=null,i=null){const n=new gn("IMAGE",t);return a&&(n.display=a),i&&(n.formatType=i),n}}class Po extends Et{get relationType(){const t=["PARENT","CHILD","SIBLING"],a="PARENT";if(this.hasParameter("RELTYPE")){const i=this.getParameterFirstValue("RELTYPE");return t.includes(i)?i:a}else return a}set relationType(t){this.updateParameterIfExist("RELTYPE",t)}get relatedId(){return this.value}set relatedId(t){this.value=t}static fromRelTypeAndId(t,a){return new Po("RELATED-TO",a,[["RELTYPE",t]])}}class ke extends Et{constructor(t,a=["1","Pending"],i=[],n=null,r=null){super(t,a,i,n,r)}get statusCode(){return parseFloat(this.value[0])}set statusCode(t){this._modifyContent(),this.value[0]=t.toString(),t===Math.floor(t)&&(this.value[0]+=".0")}get statusMessage(){return this.value[1]}set statusMessage(t){this._modifyContent(),this.value[1]=t}get exceptionData(){return this.value[2]?this.value[2]:null}set exceptionData(t){this._modifyContent(),this.value[2]=t}isPending(){return this.statusCode>=1&&this.statusCode<2}isSuccessful(){return this.statusCode>=2&&this.statusCode<3}isClientError(){return this.statusCode>=3&&this.statusCode<4}isSchedulingError(){return this.statusCode>=4&&this.statusCode<5}toICALJs(){const t=Gu(la(this.name));return t.setValue(this.value),this._parameters.forEach(a=>{t.setParameter(la(a.name),a.value)}),t}static fromCodeAndMessage(t,a){return new ke("REQUEST-STATUS",[t.toString(),a])}}ke.SUCCESS=[2,"Success"],ke.SUCCESS_FALLBACK=[2.1,"Success, but fallback taken on one or more property values."],ke.SUCCESS_PROP_IGNORED=[2.2,"Success; invalid property ignored."],ke.SUCCESS_PROPPARAM_IGNORED=[2.3,"Success; invalid property parameter ignored."],ke.SUCCESS_NONSTANDARD_PROP_IGNORED=[2.4,"Success; unknown, non-standard property ignored."],ke.SUCCESS_NONSTANDARD_PROPPARAM_IGNORED=[2.5,"Success; unknown, non-standard property value ignored."],ke.SUCCESS_COMP_IGNORED=[2.6,"Success; invalid calendar component ignored."],ke.SUCCESS_FORWARDED=[2.7,"Success; request forwarded to Calendar User."],ke.SUCCESS_REPEATING_IGNORED=[2.8,"Success; repeating event ignored. Scheduled as a single component."],ke.SUCCESS_TRUNCATED_END=[2.9,"Success; truncated end date time to date boundary."],ke.SUCCESS_REPEATING_VTODO_IGNORED=[2.1,"Success; repeating VTODO ignored. Scheduled as a single VTODO."],ke.SUCCESS_UNBOUND_RRULE_CLIPPED=[2.11,"Success; unbounded RRULE clipped at some finite number of instances."],ke.CLIENT_INVALID_PROPNAME=[3,"Invalid property name."],ke.CLIENT_INVALID_PROPVALUE=[3.1,"Invalid property value."],ke.CLIENT_INVALID_PROPPARAM=[3.2,"Invalid property parameter."],ke.CLIENT_INVALID_PROPPARAMVALUE=[3.3,"Invalid property parameter value."],ke.CLIENT_INVALUD_CALENDAR_COMP_SEQ=[3.4,"Invalid calendar component sequence."],ke.CLIENT_INVALID_DATE_TIME=[3.5,"Invalid date or time."],ke.CLIENT_INVALID_RRULE=[3.6,"Invalid rule."],ke.CLIENT_INVALID_CU=[3.7,"Invalid Calendar User."],ke.CLIENT_NO_AUTHORITY=[3.8,"No authority."],ke.CLIENT_UNSUPPORTED_VERSION=[3.9,"Unsupported version."],ke.CLIENT_TOO_LARGE=[3.1,"Request entity too large."],ke.CLIENT_REQUIRED_COMP_OR_PROP_MISSING=[3.11,"Required component or property missing."],ke.CLIENT_UNKNOWN_COMP_OR_PROP=[3.12,"Unknown component or property found."],ke.CLIENT_UNSUPPORTED_COMP_OR_PROP=[3.13,"Unsupported component or property found."],ke.CLIENT_UNSUPPORTED_CAPABILITY=[3.14,"Unsupported capability."],ke.SCHEDULING_EVENT_CONFLICT=[4,"Event conflict. Date/time is busy."],ke.SERVER_REQUEST_NOT_SUPPORTED=[5,"Request not supported."],ke.SERVER_SERVICE_UNAVAILABLE=[5.1,"Service unavailable."],ke.SERVER_INVALID_CALENDAR_SERVICE=[5.2,"Invalid calendar service."],ke.SERVER_NO_SCHEDULING_FOR_USER=[5.3,"No scheduling support for user."];class lo extends Et{get alternateText(){return this.getParameterFirstValue("ALTREP")}set alternateText(t){this.updateParameterIfExist("ALTREP",t)}get language(){return this.getParameterFirstValue("LANGUAGE")}set language(t){this.updateParameterIfExist("LANGUAGE",t)}}class Xa extends Et{get related(){return this.hasParameter("RELATED")?this.getParameterFirstValue("RELATED"):"START"}set related(t){this.updateParameterIfExist("RELATED",t)}get value(){return super.value}set value(t){super.value=t,t instanceof Te&&(this.deleteParameter("RELATED"),super.value=t.getInUTC())}isRelative(){return this.getFirstValue()instanceof Lt}static fromAbsolute(t){return new Xa("TRIGGER",t)}static fromRelativeAndRelated(t,a=!0){return new Xa("TRIGGER",t,[["RELATED",a?"START":"END"]])}}function vs(e){switch(Ce(e)){case"ATTACH":return Ri;case"ATTENDEE":case"ORGANIZER":return ra;case"CONFERENCE":return v0;case"FREEBUSY":return Uu;case"GEO":return R0;case"IMAGE":return gn;case"RELATED-TO":return Po;case"REQUEST-STATUS":return ke;case"TRIGGER":return Xa;case"COMMENT":case"CONTACT":case"DESCRIPTION":case"LOCATION":case"SUMMARY":return lo;default:return Et}}class Oa extends jo(Io(class{})){constructor(t,a=[],i=[],n=null,r=null){super(),this._name=Ce(t),this._properties=new Map,this._components=new Map,this._root=n,this._parent=r,this._setPropertiesFromConstructor(a),this._setComponentsFromConstructor(i)}get name(){return this._name}get root(){return this._root}set root(t){this._modify(),this._root=t;for(const a of this.getPropertyIterator())a.root=t;for(const a of this.getComponentIterator())a.root=t}get parent(){return this._parent}set parent(t){this._modify(),this._parent=t}getFirstProperty(t){return this._properties.has(Ce(t))?this._properties.get(Ce(t))[0]:null}getFirstPropertyFirstValue(t){const a=this.getFirstProperty(t);return a?a.getFirstValue():null}updatePropertyWithValue(t,a){this._modify();const i=this.getFirstProperty(t);if(i)i.value=a;else{const n=vs(t),r=new n(t,a,[],this,this.root);this.addProperty(r)}}*getPropertyIterator(t=null){if(t){if(!this.hasProperty(t))return;yield*this._properties.get(Ce(t)).slice()[Symbol.iterator]()}else for(const a of this._properties.keys())yield*this.getPropertyIterator(a)}*_getAllOfPropertyByLang(t,a){for(const i of this.getPropertyIterator(t))i.getParameterFirstValue("LANGUAGE")===a&&(yield i)}_getFirstOfPropertyByLang(t,a){return this._getAllOfPropertyByLang(t,a).next().value||null}addProperty(t){if(this._modify(),t.root=this.root,t.parent=this,this._properties.has(t.name)){const a=this._properties.get(t.name);if(a.indexOf(t)!==-1)return!1;a.push(t)}else this._properties.set(t.name,[t]);return t.subscribe(()=>this._notifySubscribers()),!0}hasProperty(t){return this._properties.has(Ce(t))}deleteProperty(t){if(this._modify(),!this._properties.has(t.name))return!1;const a=this._properties.get(t.name),i=a.indexOf(t);return i===-1?!1:(i!==-1&&a.length===1?this._properties.delete(t.name):a.splice(i,1),!0)}deleteAllProperties(t){return this._modify(),this._properties.delete(Ce(t))}getFirstComponent(t){return this.hasComponent(t)?this._components.get(Ce(t))[0]:null}*getComponentIterator(t){if(t){if(!this.hasComponent(t))return;yield*this._components.get(Ce(t)).slice()[Symbol.iterator]()}else for(const a of this._components.keys())yield*this.getComponentIterator(a)}addComponent(t){if(this._modify(),t.root=this.root,t.parent=this,this._components.has(t.name)){const a=this._components.get(t.name);if(a.indexOf(t)!==-1)return!1;a.push(t)}else this._components.set(t.name,[t]);return t.subscribe(()=>this._notifySubscribers()),!0}hasComponent(t){return this._components.has(Ce(t))}deleteComponent(t){if(this._modify(),!this._components.has(t.name))return!1;const a=this._components.get(t.name),i=a.indexOf(t);return i===-1?!1:(i!==-1&&a.length===1?this._components.delete(t.name):a.splice(i,1),!0)}deleteAllComponents(t){return this._modify(),this._components.delete(Ce(t))}lock(){super.lock();for(const t of this.getPropertyIterator())t.lock();for(const t of this.getComponentIterator())t.lock()}unlock(){super.unlock();for(const t of this.getPropertyIterator())t.unlock();for(const t of this.getComponentIterator())t.unlock()}clone(){const t=[];for(const i of this.getPropertyIterator())t.push(i.clone());const a=[];for(const i of this.getComponentIterator())a.push(i.clone());return new this.constructor(this.name,t,a,this.root,this.parent)}_setPropertiesFromConstructor(t){for(let a of t){if(Array.isArray(a)){const i=vs(a[0]);a=new i(a[0],a[1])}this.addProperty(a)}}_setComponentsFromConstructor(t){for(const a of t)this.addComponent(a)}static fromICALJs(t,a=null,i=null){if(!(t instanceof me.Component))throw new n_;const n=t.name,r=new this(n,[],[],a,i);for(const o of t.getAllProperties()){const s=vs(o.name).fromICALJs(o,a,r);r.addProperty(s)}for(const o of t.getAllSubcomponents()){const s=this._getConstructorForComponentName(o.name).fromICALJs(o,a,r);r.addComponent(s)}return r}static _getConstructorForComponentName(t){return Oa}toICALJs(){const t=N9(la(this.name));for(const a of this.getPropertyIterator())t.addProperty(a.toICALJs());for(const a of this.getComponentIterator())t.addSubcomponent(a.toICALJs());return t}}function ve(e,t,a=!0){t=C9(t),Object.defineProperty(e,t.name,{get(){const i=this.getFirstPropertyFirstValue(t.iCalendarName);return i?Array.isArray(t.allowedValues)&&!t.allowedValues.includes(i)?t.unknownValue:i:t.defaultValue},set(i){if(this._modify(),i===null){this.deleteAllProperties(t.iCalendarName);return}if(Array.isArray(t.allowedValues)&&!t.allowedValues.includes(i))throw new TypeError("Illegal value");this.updatePropertyWithValue(t.iCalendarName,i)}})}function xt(e,t){t=r_(t),e["get"+st(t.name)+"Iterator"]=function*(){yield*this.getPropertyIterator(t.iCalendarName)},e["get"+st(t.name)+"List"]=function(){return Array.from(this["get"+st(t.name)+"Iterator"]())},e["remove"+st(t.name)]=function(a){this.deleteProperty(a)},e["clearAll"+st(t.pluralName)]=function(){this.deleteAllProperties(t.iCalendarName)}}function qu(e,t){t=r_(t),e["get"+st(t.name)+"Iterator"]=function*(a=null){for(const i of this._getAllOfPropertyByLang(t.iCalendarName,a))yield*i.getValueIterator()},e["get"+st(t.name)+"List"]=function(a=null){return Array.from(this["get"+st(t.name)+"Iterator"](a))},e["add"+st(t.name)]=function(a,i=null){const n=this._getFirstOfPropertyByLang(t.iCalendarName,i);if(n)n.addValue(a);else{const r=new Et(t.iCalendarName,[a]);if(i){const o=new Cn("LANGUAGE",i);r.setParameter(o)}this.addProperty(r)}},e["remove"+st(t.name)]=function(a,i=null){for(const n of this._getAllOfPropertyByLang(t.iCalendarName,i))if(n.isMultiValue()&&n.hasValue(a))return n.value.length===1?(this.deleteProperty(n),!0):(n.removeValue(a),!0);return!1},e["clearAll"+st(t.pluralName)]=function(a=null){for(const i of this._getAllOfPropertyByLang(t.iCalendarName,a))this.deleteProperty(i)}}function B9(e,t){t=M9(t),e["get"+st(t.name)+"Iterator"]=function*(){yield*this.getComponentIterator(t.iCalendarName)},e["get"+st(t.name)+"List"]=function(){return Array.from(this["get"+st(t.name)+"Iterator"]())},e["remove"+st(t.name)]=function(a){this.deleteComponent(a)},e["clearAll"+st(t.pluralName)]=function(){this.deleteAllComponents(t.iCalendarName)}}function C9(e){return typeof e=="string"&&(e={name:e}),Object.assign({},{iCalendarName:Ce(e.name),pluralName:e.name+"s",allowedValues:null,defaultValue:null,unknownValue:null},e)}function r_(e){return typeof e=="string"&&(e={name:e}),Object.assign({},{iCalendarName:Ce(e.name),pluralName:e.name+"s"},e)}function M9(e){return typeof e=="string"&&(e={name:e}),Object.assign({},{iCalendarName:"V"+Ce(e.name),pluralName:e.name+"s"},e)}function Ca(){return new Date}class Y9 extends Error{}class L9{constructor(t){this._masterItem=t,this._recurrenceExceptionItems=new Map,this._rangeRecurrenceExceptionItemsIndex=[],this._rangeRecurrenceExceptionItemsDiffCache=new Map,this._rangeRecurrenceExceptionItems=new Map}get masterItem(){return this._masterItem}set masterItem(t){this._masterItem=t}*getRecurrenceExceptionIterator(){yield*this._recurrenceExceptionItems.values()}getRecurrenceExceptionList(){return Array.from(this.getRecurrenceExceptionIterator())}hasRecurrenceExceptionForId(t){return t instanceof Te?t=t.unixTime:t instanceof me.Time&&(t=t.toUnixTime()),this._recurrenceExceptionItems.has(t)}getRecurrenceException(t){return t instanceof Te?t=t.unixTime:t instanceof me.Time&&(t=t.toUnixTime()),this._recurrenceExceptionItems.get(t)||null}hasRangeRecurrenceExceptionForId(t){return t instanceof Te?t=t.unixTime:t instanceof me.Time&&(t=t.toUnixTime()),this._rangeRecurrenceExceptionItemsIndex.length===0?!1:this._rangeRecurrenceExceptionItemsIndex[0]n-r);if(a===0)return null;const i=this._rangeRecurrenceExceptionItemsIndex[a-1];return this._rangeRecurrenceExceptionItems.get(i)}getRangeRecurrenceExceptionDiff(t){if(t instanceof Te?t=t.unixTime:t instanceof me.Time&&(t=t.toUnixTime()),this._rangeRecurrenceExceptionItemsDiffCache.has(t))return this._rangeRecurrenceExceptionItemsDiffCache.get(t);const a=this.getRangeRecurrenceExceptionForId(t);if(!a)return null;const i=a.recurrenceId,n=a.startDate.subtractDateWithTimezone(i);return n.lock(),this._rangeRecurrenceExceptionItemsDiffCache.set(t,n),n}relateRecurrenceException(t){this._modify();const a=this._getRecurrenceIdKey(t);if(this._recurrenceExceptionItems.set(a,t),t.modifiesFuture()){this._rangeRecurrenceExceptionItems.set(a,t);const i=me.helpers.binsearchInsert(this._rangeRecurrenceExceptionItemsIndex,a,(n,r)=>n-r);this._rangeRecurrenceExceptionItemsIndex.splice(i,0,a)}t.recurrenceManager=this}removeRecurrenceException(t){const a=this._getRecurrenceIdKey(t);this.removeRecurrenceExceptionByRecurrenceId(a)}removeRecurrenceExceptionByRecurrenceId(t){this._modify(),this._recurrenceExceptionItems.delete(t),this._rangeRecurrenceExceptionItems.delete(t),this._rangeRecurrenceExceptionItemsDiffCache.delete(t);const a=this._rangeRecurrenceExceptionItemsIndex.indexOf(t);a!==-1&&this._rangeRecurrenceExceptionItemsIndex.splice(a,1)}_getRecurrenceIdKey(t){return t.recurrenceId.unixTime}*getRecurrenceRuleIterator(){for(const t of this._masterItem.getPropertyIterator("RRULE"))yield t.getFirstValue()}getRecurrenceRuleList(){return Array.from(this.getRecurrenceRuleIterator())}addRecurrenceRule(t){this._modify(),this.resetCache();const a=new Et("RRULE",t);this._masterItem.addProperty(a)}removeRecurrenceRule(t){this._modify(),this.resetCache();for(const a of this._masterItem.getPropertyIterator("RRULE"))a.getFirstValue()===t&&this._masterItem.deleteProperty(a)}clearAllRecurrenceRules(){this._modify(),this.resetCache(),this._masterItem.deleteAllProperties("RRULE")}*getRecurrenceDateIterator(t=!1,a=null){for(const i of this._getPropertiesForRecurrenceDate(t,a))yield*i.getValueIterator()}listAllRecurrenceDates(t=!1,a=null){return Array.from(this.getRecurrenceDateIterator(t,a))}addRecurrenceDate(t=!1,a){this._modify(),this.resetCache();let i=null;a instanceof Te&&!a.isDate&&(i=a.timezoneId);const n=this._getValueTypeByValue(a),r=this._getPropertiesForRecurrenceDate(t,n,i).next.value;if(r instanceof Et)r.value.push(a),this.masterItem.markPropertyAsDirty(t?"EXDATE":"RDATE");else{const o=this._getPropertyNameByIsNegative(t),s=new Et(o,a);this._masterItem.addProperty(s)}}hasRecurrenceDate(t=!1,a){for(let i of this.getRecurrenceDateIterator(t))if(i instanceof Tt&&(i=i.start),i.compare(a)===0)return!0;return!1}getRecurrenceDate(t=!1,a){for(const i of this.getRecurrenceDateIterator(t)){let n=i;if(n instanceof Tt&&(n=n.start),n.compare(a)===0)return i}return null}removeRecurrenceDate(t=!1,a){this._modify(),this.resetCache();const i=this._getValueTypeByValue(a);for(const n of this._getPropertiesForRecurrenceDate(t,i))for(const r of n.getValueIterator())if(a===r){const o=n.value;if(o.length===1){this.masterItem.deleteProperty(n);continue}const s=o.indexOf(a);o.splice(s,1),this.masterItem.markPropertyAsDirty(t?"EXDATE":"RDATE")}}clearAllRecurrenceDates(t=!1,a=null){this._modify(),this.resetCache();for(const i of this._getPropertiesForRecurrenceDate(t,a))this._masterItem.deleteProperty(i)}_getPropertyNameByIsNegative(t){return t?"EXDATE":"RDATE"}_getValueTypeByValue(t){return t instanceof Tt?"PERIOD":t.isDate?"DATE":"DATETIME"}*_getPropertiesForRecurrenceDate(t,a,i=null){const n=this._getPropertyNameByIsNegative(t);for(const r of this._masterItem.getPropertyIterator(n))a===null?yield r:Ce(a)==="PERIOD"&&r.getFirstValue()instanceof Tt?yield r:Ce(a)==="DATE"&&r.getFirstValue().isDate?yield r:Ce(a)==="DATETIME"&&!r.getFirstValue().isDate&&(i===null||r.getFirstValue().timezoneId===i)&&(yield r)}isFinite(){return this.getRecurrenceRuleList().every(t=>t.isFinite())}isEmptyRecurrenceSet(){return this._getRecurExpansionObject().next()===void 0}getOccurrenceAtExactly(t){if(!this.masterItem.isRecurring())return this.masterItem.getReferenceRecurrenceId().compare(t)===0?this.masterItem:null;const a=this._getRecurExpansionObject(),i=t.toICALJs();let n;for(;n=a.next();){if(n.compare(i)===0)return this._getOccurrenceAtRecurrenceId(Te.fromICALJs(n));if(n.compare(i)===1)return null}return null}getClosestOccurrence(t){if(!this.masterItem.isRecurring())return this.masterItem;const a=this._getRecurExpansionObject();t=t.toICALJs();let i=null,n;for(;n=a.next();)if(n.compare(t)===-1)i=n;else{const o=Te.fromICALJs(n);return this._getOccurrenceAtRecurrenceId(o)}const r=Te.fromICALJs(i);return this._getOccurrenceAtRecurrenceId(r)}countAllOccurrencesBetween(t,a){if(!this.masterItem.isRecurring())return typeof this.masterItem.isInTimeFrame=="function"&&!this.masterItem.isInTimeFrame(t,a)?0:1;const i=this._getRecurExpansionObject(),n=t.toICALJs(),r=a.toICALJs();let o=0,s;for(;s=i.next();)if(s.compare(n)!==-1){if(s.compare(r)===1)break;o+=1}return o}*getAllOccurrencesBetweenIterator(t,a){if(!this.masterItem.isRecurring()){typeof this.masterItem.isInTimeFrame!="function"&&(yield this.masterItem),this.masterItem.isInTimeFrame(t,a)&&(yield this.masterItem);return}const i=this._getRecurExpansionObject(),n=t.toICALJs(),r=a.toICALJs(),o=Array.from(this._recurrenceExceptionItems.keys()),s=Math.max.apply(Math,o);let l;for(;l=i.next();){const d=Te.fromICALJs(l),u=this._getOccurrenceAtRecurrenceId(d);let c=null;switch(Ce(u.name)){case"VEVENT":case"VTODO":c=u.endDate.toICALJs();break;case"VJOURNAL":default:c=l;break}if(c.compare(n)===-1)continue;const f=u.startDate.toICALJs();if((!u.isRecurrenceException()||u.modifiesFuture())&&f.compare(r)===1){if(this._recurrenceExceptionItems.size===0||l.toUnixTime()>s)break;continue}typeof u.isInTimeFrame!="function"&&(yield u),u.isInTimeFrame(t,a)&&(yield u)}}getAllOccurrencesBetween(t,a){return Array.from(this.getAllOccurrencesBetweenIterator(t,a))}updateUID(t){this._masterItem.updatePropertyWithValue("UID",t);for(const a of this.getRecurrenceExceptionIterator())a.updatePropertyWithValue("UID",t)}updateStartDateOfMasterItem(t,a){const i=t.subtractDateWithTimezone(a);for(const n of this.getRecurrenceDateIterator(!0))this.hasRecurrenceDate(!1,n)||n.addDuration(i);for(const n of this.getRecurrenceExceptionIterator())this.hasRecurrenceDate(!1,n.recurrenceId)||(this.removeRecurrenceException(n),n.recurrenceId.addDuration(i),this.relateRecurrenceException(n));for(const n of this.getRecurrenceRuleIterator())n.until&&n.until.addDuration(i)}_getOccurrenceAtRecurrenceId(t){if(this.hasRecurrenceExceptionForId(t)){const a=this.getRecurrenceException(t);return a.canCreateRecurrenceExceptions()?a.forkItem(t):a}else if(this.hasRangeRecurrenceExceptionForId(t)){const a=this.getRangeRecurrenceExceptionForId(t),i=this.getRangeRecurrenceExceptionDiff(t);return a.forkItem(t,i)}else return t.compare(this._masterItem.startDate)===0?this._masterItem.canCreateRecurrenceExceptions()?this._masterItem.forkItem(t):this._masterItem:this._masterItem.forkItem(t)}resetCache(){}_getRecurExpansionObject(){if(this._masterItem.startDate===null)throw new Y9;const t=this._masterItem.startDate.toICALJs();let a=t.clone();const i=[];let n;const r=[];let o=null;const s=[],l=!1;for(const c of this.getRecurrenceRuleIterator())i.push(c.toICALJs().iterator(t)),i[i.length-1].next();for(let c of this.getRecurrenceDateIterator()){c instanceof Tt&&(c=c.start),c=c.toICALJs();const f=me.helpers.binsearchInsert(r,c,(h,_)=>h.compare(_));r.splice(f,0,c)}r.length>0&&r[0].compare(t)===-1?(n=0,a=r[0].clone()):(n=me.helpers.binsearchInsert(r,t,(c,f)=>c.compare(f)),o=s[n]);for(let c of this.getRecurrenceDateIterator(!0)){c=c.toICALJs();const f=me.helpers.binsearchInsert(s,c,(h,_)=>h.compare(_));s.splice(f,0,c)}const d=me.helpers.binsearchInsert(s,t,(c,f)=>c.compare(f)),u=s[d];return new me.RecurExpansion({dtstart:t,last:a,ruleIterators:i,ruleDateInc:n,exDateInc:d,ruleDates:r,ruleDate:o,exDates:s,exDate:u,complete:l})}_modify(){if(this._masterItem.isLocked())throw new i_}}class kt{constructor(t,a){this._timezoneId=null,this._ics=null,this._innerValue=null,this._initialized=!1,t instanceof me.Timezone?(this._innerValue=t,this._initialized=!0):t instanceof me.Component?(this._innerValue=new me.Timezone(t),this._initialized=!0):(this._timezoneId=t,this._ics=a)}get timezoneId(){return this._initialized?this._innerValue.tzid:this._timezoneId}offsetForArray(t,a,i,n,r,o){this._initialize();const s=new me.Time({year:t,month:a,day:i,hour:n,minute:r,second:o,isDate:!1});return this._innerValue.utcOffset(s)}timestampToArray(t){this._initialize();const a=me.Time.fromData({year:1970,month:1,day:1,hour:0,minute:0,second:0});a.fromUnixTime(Math.floor(t/1e3));const i=a.convertToZone(this._innerValue);return[i.year,i.month,i.day,i.hour,i.minute,i.second]}toICALTimezone(){return this._initialize(),this._innerValue}toICALJs(){return this._initialize(),this._innerValue.component}_initialize(){if(!this._initialized){const t=me.parse(this._ics),a=new me.Component(t);this._innerValue=new me.Timezone(a),this._initialized=!0}}}kt.utc=new kt(me.Timezone.utcTimezone),kt.floating=new kt(me.Timezone.localTimezone);class Xt extends Oa{addAttendeeFromNameAndEMail(t,a){const i=ra.fromNameAndEMail(t,a);return this.addProperty(i)}get trigger(){return this.getFirstProperty("TRIGGER")}setTriggerFromAbsolute(t){const a=Xa.fromAbsolute(t);this.deleteAllProperties("TRIGGER"),this.addProperty(a)}setTriggerFromRelative(t,a=!0){const i=Xa.fromRelativeAndRelated(t,a);this.deleteAllProperties("TRIGGER"),this.addProperty(i)}}ve(Xt.prototype,"action"),ve(Xt.prototype,"description"),ve(Xt.prototype,"summary"),ve(Xt.prototype,"duration"),ve(Xt.prototype,"repeat"),ve(Xt.prototype,{name:"attachment",iCalendarName:"ATTACH"}),xt(Xt.prototype,"attendee");function Z9(e){switch(Ce(e)){case"VALARM":return Xt;default:return Oa}}class Ve extends Oa{constructor(...t){super(...t),this._primaryItem=null,this._isExactForkOfPrimary=!1,this._originalRecurrenceId=null,this._recurrenceManager=null,this._dirty=!1,this._significantChange=!1,this._cachedId=null}get primaryItem(){return this._primaryItem}set primaryItem(t){this._modify(),this._primaryItem=t}get isExactForkOfPrimary(){return this._isExactForkOfPrimary}set isExactForkOfPrimary(t){this._isExactForkOfPrimary=t}get originalRecurrenceId(){return this._originalRecurrenceId}set originalRecurrenceId(t){this._originalRecurrenceId=t}get recurrenceManager(){return this._recurrenceManager}set recurrenceManager(t){this._recurrenceManager=t}get masterItem(){return this.recurrenceManager.masterItem}isMasterItem(){return this.masterItem===this}get id(){return this._cachedId?this._cachedId:this.startDate===null?(this._cachedId=encodeURIComponent(this.uid),this._cachedId):(this._cachedId=[encodeURIComponent(this.uid),encodeURIComponent(this.getReferenceRecurrenceId().unixTime.toString())].join("###"),this._cachedId)}get uid(){return this.getFirstPropertyFirstValue("UID")}set uid(t){this._recurrenceManager.updateUID(t)}get startDate(){return this.getFirstPropertyFirstValue("dtstart")}set startDate(t){const a=this.startDate;this.updatePropertyWithValue("dtstart",t),this.isMasterItem()&&this._recurrenceManager.updateStartDateOfMasterItem(t,a)}isPartOfRecurrenceSet(){return this.masterItem.isRecurring()}isRecurring(){return this.hasProperty("RRULE")||this.hasProperty("RDATE")}isRecurrenceException(){return this.hasProperty("RECURRENCE-ID")}modifiesFuture(){return this.isRecurrenceException()?this.getFirstProperty("RECURRENCE-ID").getParameterFirstValue("RANGE")==="THISANDFUTURE":!1}forkItem(t,a=null){const i=this.clone();if(i.recurrenceManager=this.recurrenceManager,i.primaryItem=this,i.getReferenceRecurrenceId().compare(t)===0&&(i.isExactForkOfPrimary=!0),!i.hasProperty("DTSTART"))throw new TypeError("Can't fork item without a DTSTART");const n=i.getFirstPropertyFirstValue("RRULE");if(n?.count){let l=i.recurrenceManager.countAllOccurrencesBetween(i.getReferenceRecurrenceId(),t);l-=1,n.count-=l,n.count<1&&(n.count=1)}if(i.getFirstPropertyFirstValue("DTSTART").timezoneId!==t.timezoneId){const l=i.getFirstPropertyFirstValue("DTSTART").getICALTimezone();t=t.getInICALTimezone(l)}i.originalRecurrenceId=t.clone();const r=i.getFirstPropertyFirstValue("DTSTART");let o=null;if(this._recurrenceManager.hasRecurrenceDate(!1,t)){const l=this._recurrenceManager.getRecurrenceDate(!1,t);l instanceof Tt&&(o=l)}let s;if(i.hasProperty("DTEND")?s=i.getFirstPropertyFirstValue("DTEND").subtractDateWithTimezone(r):i.hasProperty("DUE")&&(s=i.getFirstPropertyFirstValue("DUE").subtractDateWithTimezone(r)),!(i.isRecurrenceException()&&i.isExactForkOfPrimary)){if(i.updatePropertyWithValue("DTSTART",t.clone()),a&&i.startDate.addDuration(a),i.hasProperty("DTEND")){const l=i.startDate.clone();l.addDuration(s),i.updatePropertyWithValue("DTEND",l)}else if(i.hasProperty("DUE")){const l=i.startDate.clone();l.addDuration(s),i.updatePropertyWithValue("DUE",l)}o&&(i.deleteAllProperties("DTEND"),i.deleteAllProperties("DURATION"),i.updatePropertyWithValue("DTEND",o.end.clone()))}return i.resetDirty(),i}canCreateRecurrenceExceptions(){let t=!1;return this.primaryItem&&this.primaryItem.isRecurring()&&(t=!0),this.isRecurring()||this.modifiesFuture()||!this.isRecurring()&&t}createRecurrenceException(t=!1){if(!this.canCreateRecurrenceExceptions())throw new Error("Can't create recurrence-exceptions for non-recurring items");const a=this.primaryItem;if(t){if(this.isExactForkOfPrimary&&this.primaryItem.isMasterItem())return this._overridePrimaryItem(),[this,this];this.removeThisOccurrence(!0),this.recurrenceManager=new L9(this),this._originalRecurrenceId=null,this.primaryItem=this,this.updatePropertyWithValue("UID",v9()),this._cachedId=null,this.addRelation("SIBLING",a.uid),a.addRelation("SIBLING",this.uid),this.deleteAllProperties("RECURRENCE-ID"),this.deleteAllProperties("RDATE"),this.deleteAllProperties("EXDATE"),this.updatePropertyWithValue("CREATED",Te.fromJSDate(Ca(),!0)),this.updatePropertyWithValue("DTSTAMP",Te.fromJSDate(Ca(),!0)),this.updatePropertyWithValue("LAST-MODIFIED",Te.fromJSDate(Ca(),!0)),this.updatePropertyWithValue("SEQUENCE",0),this._significantChange=!1,this._dirty=!1,this.root=this.root.constructor.fromEmpty(),this.root.addComponent(this),this.parent=this.root;for(const i of this.getAttendeeIterator())i.rsvp=!0}else{if(this.deleteAllProperties("RECURRENCE-ID"),this.recurrenceId=this.getReferenceRecurrenceId().clone(),this.root.addComponent(this),this.recurrenceManager.relateRecurrenceException(this),this.primaryItem=this,this.deleteAllProperties("RDATE"),this.deleteAllProperties("RRULE"),this.deleteAllProperties("EXDATE"),this.updatePropertyWithValue("CREATED",Te.fromJSDate(Ca(),!0)),this.updatePropertyWithValue("DTSTAMP",Te.fromJSDate(Ca(),!0)),this.updatePropertyWithValue("LAST-MODIFIED",Te.fromJSDate(Ca(),!0)),this.updatePropertyWithValue("SEQUENCE",0),this.recurrenceManager.hasRecurrenceDate(!1,this.getReferenceRecurrenceId())){const i=this.recurrenceManager.getRecurrenceDate(!1,this.getReferenceRecurrenceId());if(i instanceof Tt){const n=i.start;this.recurrenceManager.removeRecurrenceDate(!1,i),this.recurrenceManager.addRecurrenceDate(!1,n)}}this.originalRecurrenceId=null}return[a,this]}removeThisOccurrence(t=!1){if(!this.isPartOfRecurrenceSet())return!0;if(t){const a=this.getReferenceRecurrenceId().clone(),i=a.getInTimezone(kt.utc);i.addDuration(Lt.fromSeconds(-1));for(const n of this.recurrenceManager.getRecurrenceRuleIterator())n.until=i.clone();for(const n of this.recurrenceManager.getRecurrenceDateIterator()){let r=n;n instanceof Tt&&(r=r.start),a.compare(r)<=0&&this.recurrenceManager.removeRecurrenceDate(!1,n)}for(const n of this.recurrenceManager.getRecurrenceDateIterator(!0))a.compare(n)<=0&&this.recurrenceManager.removeRecurrenceDate(!0,n);for(const n of this.recurrenceManager.getRecurrenceExceptionList())a.compare(n.recurrenceId)<=0&&(this.root.deleteComponent(n),this.recurrenceManager.removeRecurrenceException(n))}else if(this.isRecurrenceException()&&!this.modifiesFuture()&&(this.root.deleteComponent(this),this.recurrenceManager.removeRecurrenceException(this)),this.recurrenceManager.hasRecurrenceDate(!1,this.getReferenceRecurrenceId())){const a=this.recurrenceManager.getRecurrenceDate(!1,this.getReferenceRecurrenceId());this.recurrenceManager.removeRecurrenceDate(!1,a)}else this.recurrenceManager.addRecurrenceDate(!0,this.getReferenceRecurrenceId().clone());return this.recurrenceManager.isEmptyRecurrenceSet()}clone(){const t=super.clone();return t.resetDirty(),t}_addAttendee(t){for(const a of this.getAttendeeIterator())if(a.email===t.email)return!1;return this.addProperty(t),!0}addAttendeeFromNameAndEMail(t,a){const i=ra.fromNameAndEMail(t,a);return this._addAttendee(i)}addAttendeeFromNameEMailRoleUserTypeAndRSVP(t,a,i,n,r){const o=ra.fromNameEMailRoleUserTypeAndRSVP(t,a,i,n,r,!1);return this._addAttendee(o)}setOrganizerFromNameAndEMail(t,a){this.deleteAllProperties("ORGANIZER"),this.addProperty(ra.fromNameAndEMail(t,a,!0))}addAttachmentFromData(t,a=null){this.addProperty(Ri.fromData(t,a))}addAttachmentFromLink(t,a=null){this.addProperty(Ri.fromLink(t,a))}addContact(t){this.addProperty(new lo("CONTACT",t))}addComment(t){this.addProperty(new lo("COMMENT",t))}addImageFromData(t,a=null,i=null){this.addProperty(gn.fromData(t,a,i))}addImageFromLink(t,a=null,i=null){this.addProperty(gn.fromLink(t,a,i))}addRelation(t,a){this.addProperty(Po.fromRelTypeAndId(t,a))}addRequestStatus(t,a){this.addProperty(ke.fromCodeAndMessage(t,a))}addAbsoluteAlarm(t,a){const i=new Xt("VALARM",[["action",t],Xa.fromAbsolute(a)]);return this.addComponent(i),i}addRelativeAlarm(t,a,i=!0){const n=new Xt("VALARM",[["action",t],Xa.fromRelativeAndRelated(a,i)]);return this.addComponent(n),n}markPropertyAsDirty(t){this.markDirty(),["DTSTART","DTEND","DURATION","RRULE","RDATE","EXDATE","STATUS",...Sl("property-list-significant-change",[])].includes(Ce(t))&&this.markChangesAsSignificant()}markSubComponentAsDirty(t){this.markDirty(),Sl("component-list-significant-change",[]).includes(t)&&this.markChangesAsSignificant()}isDirty(){return this._dirty||this._significantChange}markDirty(){this._dirty=!0}markChangesAsSignificant(){this._significantChange=!0}undirtify(){return this.isDirty()?(this.hasProperty("SEQUENCE")||(this.sequence=0),this.updatePropertyWithValue("DTSTAMP",Te.fromJSDate(Ca(),!0)),this.updatePropertyWithValue("LAST-MODIFIED",Te.fromJSDate(Ca(),!0)),this._significantChange&&this.sequence++,this.resetDirty(),!0):!1}resetDirty(){this._dirty=!1,this._significantChange=!1}updatePropertyWithValue(t,a){super.updatePropertyWithValue(t,a),Ce(t)==="UID"&&(this._cachedId=null),this.markPropertyAsDirty(t)}addProperty(t){return this.markPropertyAsDirty(t.name),t.subscribe(()=>this.markPropertyAsDirty(t.name)),super.addProperty(t)}deleteProperty(t){return this.markPropertyAsDirty(t.name),super.deleteProperty(t)}deleteAllProperties(t){return this.markPropertyAsDirty(t),super.deleteAllProperties(t)}addComponent(t){return this.markSubComponentAsDirty(t.name),t.subscribe(()=>this.markSubComponentAsDirty(t.name)),super.addComponent(t)}deleteComponent(t){return this.markSubComponentAsDirty(t.name),super.deleteComponent(t)}deleteAllComponents(t){return this.markSubComponentAsDirty(t),super.deleteAllComponents(t)}getReferenceRecurrenceId(){return this.originalRecurrenceId?this.originalRecurrenceId:this.recurrenceId?this.recurrenceId:this.startDate?this.startDate:null}_overridePrimaryItem(){const t=this.primaryItem.startDate;for(const a of this.primaryItem.getPropertyIterator())this.primaryItem.deleteProperty(a);for(const a of this.getPropertyIterator())this.primaryItem.addProperty(a);this.recurrenceManager.resetCache(),this.startDate.compare(t)!==0&&this.recurrenceManager.updateStartDateOfMasterItem(this.startDate,t)}static _getConstructorForComponentName(t){return Z9(t)}static fromICALJs(...t){const a=super.fromICALJs(...t);return a.resetDirty(),a}}ve(Ve.prototype,{name:"stampTime",iCalendarName:"DTSTAMP"}),ve(Ve.prototype,{name:"recurrenceId",iCalendarName:"RECURRENCE-ID"}),ve(Ve.prototype,"color"),ve(Ve.prototype,{name:"creationTime",iCalendarName:"CREATED"}),ve(Ve.prototype,{name:"modificationTime",iCalendarName:"LAST-MODIFIED"}),ve(Ve.prototype,"organizer"),ve(Ve.prototype,"sequence"),ve(Ve.prototype,"status"),ve(Ve.prototype,"url"),ve(Ve.prototype,{name:"title",iCalendarName:"SUMMARY"}),ve(Ve.prototype,{name:"accessClass",iCalendarName:"class",allowedValues:["PUBLIC","PRIVATE","CONFIDENTIAL"],defaultValue:"PUBLIC",unknownValue:"PRIVATE"}),qu(Ve.prototype,{name:"category",pluralName:"categories",iCalendarName:"CATEGORIES"}),xt(Ve.prototype,{name:"attendee"}),xt(Ve.prototype,{name:"attachment",iCalendarName:"ATTACH"}),xt(Ve.prototype,{name:"relation",iCalendarName:"RELATED-TO"}),xt(Ve.prototype,"comment"),xt(Ve.prototype,"contact"),xt(Ve.prototype,"image"),xt(Ve.prototype,{name:"requestStatus",pluralName:"requestStatus",iCalendarName:"REQUEST-STATUS"}),B9(Ve.prototype,"alarm");function o_(e){return e.getFirstPropertyFirstValue("X-NEXTCLOUD-BC-FIELD-TYPE")}function I9(e){switch(o_(e)){case"BDAY":return"🎂";case"DEATHDATE":return"⚰️";case"ANNIVERSARY":return"💍";default:return null}}function j9(e,t){if(!e.hasProperty("X-NEXTCLOUD-BC-YEAR"))return null;const a=e.getFirstPropertyFirstValue("X-NEXTCLOUD-BC-YEAR");return parseInt(t,10)-parseInt(a,10)}class La extends Ve{isAllDay(){return this.startDate.isDate&&this.endDate.isDate}canModifyAllDay(){return!this.recurrenceManager.masterItem.isRecurring()}get endDate(){if(this.hasProperty("dtend"))return this.getFirstPropertyFirstValue("dtend");const t=this.startDate.clone();return this.hasProperty("duration")?t.addDuration(this.getFirstPropertyFirstValue("duration")):this.startDate.isDate&&t.addDuration(Lt.fromSeconds(60*60*24)),t}set endDate(t){this.deleteAllProperties("duration"),this.updatePropertyWithValue("dtend",t)}get duration(){return this.hasProperty("duration")?this.getFirstPropertyFirstValue("duration"):this.startDate.subtractDateWithTimezone(this.endDate)}set duration(t){this.deleteAllProperties("dtend"),this.updatePropertyWithValue("duration",t)}setGeographicalPositionFromLatitudeAndLongitude(t,a){this.deleteAllProperties("GEO"),this.addProperty(R0.fromPosition(t,a))}addConference(t,a=null,i=null){this._modify(),this.addProperty(v0.fromURILabelAndFeatures(t,a,i))}addDurationToStart(t){this.startDate.addDuration(t)}addDurationToEnd(t){const a=this.endDate;a.addDuration(t),this.endDate=a}shiftByDuration(t,a,i,n,r){const o=this.isAllDay();if(o!==a&&!this.canModifyAllDay())throw new TypeError("Can't modify all-day of this event");if(this.startDate.isDate=a,this.startDate.addDuration(t),o&&!a&&(this.startDate.replaceTimezone(i),this.endDate=this.startDate.clone(),this.endDate.addDuration(r)),!o&&a&&(this.endDate=this.startDate.clone(),this.endDate.addDuration(n)),o===a){const s=this.endDate;s.addDuration(t),this.endDate=s}}isBirthdayEvent(){return o_(this)==="BDAY"}getIconForBirthdayEvent(){return I9(this)}getAgeForBirthdayEvent(){return j9(this,this.startDate.year)}toICSEntireSeries(){return this.root.toICS()}toICSThisOccurrence(){const t=this.clone();return t.deleteAllProperties("RRULE"),t.deleteAllProperties("EXRULE"),t.deleteAllProperties("RDATE"),t.deleteAllProperties("EXDATE"),t.deleteAllProperties("RECURRENCE-ID"),t.root=t.root.constructor.fromEmpty(),t.parent=t.root,t.root.addComponent(t),t.root.toICS()}isInTimeFrame(t,a){return t.compare(this.endDate)<=0&&a.compare(this.startDate)>=0}}ve(La.prototype,{name:"timeTransparency",iCalendarName:"TRANSP",allowedValues:["OPAQUE","TRANSPARENT"],defaultValue:"OPAQUE"}),ve(La.prototype,"description"),ve(La.prototype,{name:"geographicalPosition",iCalendarName:"GEO"}),ve(La.prototype,"location"),ve(La.prototype,{name:"priority",allowedValues:Array(9).keys(),defaultValue:0,unknownValue:0}),qu(La.prototype,{name:"resource",iCalendarName:"RESOURCES"}),xt(La.prototype,"conference");class fr extends Oa{get startDate(){return this.getFirstPropertyFirstValue("DTSTART")}set startDate(t){this._modify(),this.updatePropertyWithValue("DTSTART",t.getInTimezone(kt.utc))}get endDate(){return this.getFirstPropertyFirstValue("DTEND")}set endDate(t){this._modify(),this.updatePropertyWithValue("DTEND",t.getInTimezone(kt.utc))}*getFreeBusyIterator(){yield*this.getPropertyIterator("FREEBUSY")}addAttendeeFromNameAndEMail(t,a){this._modify(),this.addProperty(ra.fromNameAndEMail(t,a))}setOrganizerFromNameAndEMail(t,a){this._modify(),this.deleteAllProperties("ORGANIZER"),this.addProperty(ra.fromNameAndEMail(t,a,!0))}}ve(fr.prototype,"organizer"),ve(fr.prototype,"uid"),xt(fr.prototype,"attendee");class s_ extends Ve{addDescription(t){this.addProperty(new lo("DESCRIPTION",t))}}xt(s_.prototype,"description");class l_ extends Oa{toTimezone(){return new kt(this.toICALJs())}}ve(l_.prototype,{name:"timezoneId",iCalendarName:"tzid"});class $t extends Ve{isAllDay(){const t=["DTSTART","DUE"];for(const a of t)if(this.hasProperty(a))return this.getFirstPropertyFirstValue(a).isDate;return!0}canModifyAllDay(){return!this.hasProperty("dtstart")&&!this.hasProperty("due")?!1:!this.recurrenceManager.masterItem.isRecurring()}get endDate(){if(this.hasProperty("due"))return this.getFirstPropertyFirstValue("due");if(!this.hasProperty("dtstart")||!this.hasProperty("duration"))return null;const t=this.startDate.clone();return t.addDuration(this.getFirstPropertyFirstValue("duration")),t}shiftByDuration(t,a,i,n,r){const o=this.isAllDay();if(!this.hasProperty("dtstart")&&!this.hasProperty("due"))throw new TypeError("This task does not have a start-date nor due-date");if(o!==a&&!this.canModifyAllDay())throw new TypeError("Can't modify all-day of this todo");this.hasProperty("dtstart")&&(this.startDate.isDate=a,this.startDate.addDuration(t),o&&!a&&this.startDate.replaceTimezone(i)),this.hasProperty("due")&&(this.dueTime.isDate=a,this.dueTime.addDuration(t),o&&!a&&this.dueTime.replaceTimezone(i))}isInTimeFrame(t,a){return!this.hasProperty("dtstart")&&!this.hasProperty("due")?!0:!this.hasProperty("dtstart")&&this.hasProperty("due")?t.compare(this.endDate)<=0:t.compare(this.endDate)<=0&&a.compare(this.startDate)>=0}get geographicalPosition(){return this.getFirstProperty("GEO")}setGeographicalPositionFromLatitudeAndLongitude(t,a){this.deleteAllProperties("GEO"),this.addProperty(R0.fromPosition(t,a))}addConference(t,a=null,i=null){this.addProperty(v0.fromURILabelAndFeatures(t,a,i))}getReferenceRecurrenceId(){return super.getReferenceRecurrenceId()??this.endDate}}ve($t.prototype,{name:"completedTime",iCalendarName:"COMPLETED"}),ve($t.prototype,{name:"dueTime",iCalendarName:"DUE"}),ve($t.prototype,{name:"duration"}),ve($t.prototype,{name:"percent",iCalendarName:"PERCENT-COMPLETE"}),ve($t.prototype,"description"),ve($t.prototype,"location"),ve($t.prototype,{name:"priority",allowedValues:Array.from(Array(10).keys()),defaultValue:0,unknownValue:0}),qu($t.prototype,{name:"resource",iCalendarName:"RESOURCES"}),xt($t.prototype,"conference");function P9(e){switch(Ce(e)){case"VEVENT":return La;case"VFREEBUSY":return fr;case"VJOURNAL":return s_;case"VTIMEZONE":return l_;case"VTODO":return $t;default:return Oa}}class $0 extends Oa{constructor(t="VCALENDAR",a=[],i=[]){super(t,a,i),this.root=this,this.parent=null}*getTimezoneIterator(){yield*this.getComponentIterator("vtimezone")}*getVObjectIterator(){yield*this.getEventIterator(),yield*this.getJournalIterator(),yield*this.getTodoIterator()}*getEventIterator(){yield*this.getComponentIterator("vevent")}*getFreebusyIterator(){yield*this.getComponentIterator("vfreebusy")}*getJournalIterator(){yield*this.getComponentIterator("vjournal")}*getTodoIterator(){yield*this.getComponentIterator("vtodo")}static _getConstructorForComponentName(t){return P9(t)}toICS(t=!0){for(const i of this.getVObjectIterator())i.undirtify();const a=this.toICALJs();return t&&me.helpers.updateTimezones(a),a.toString()}static fromEmpty(t=[]){return new this("VCALENDAR",[["prodid",Sl("PRODID","-//IDN georgehrke.com//calendar-js//EN")],["calscale","GREGORIAN"],["version","2.0"]].concat(t))}static fromMethod(t){return this.fromEmpty([["method",t]])}static fromICALJs(t){const a=super.fromICALJs(t);return a.root=a,a}}ve($0.prototype,{name:"productId",iCalendarName:"PRODID"}),ve($0.prototype,{name:"version"}),ve($0.prototype,{name:"calendarScale",iCalendarName:"CALSCALE",defaultValue:"GREGORIAN"}),ve($0.prototype,{name:"method"});var G9="2.2023c",U9={"AUS Central Standard Time":{aliasTo:"Australia/Darwin"},"AUS Eastern Standard Time":{aliasTo:"Australia/Sydney"},"Afghanistan Standard Time":{aliasTo:"Asia/Kabul"},"Africa/Asmera":{aliasTo:"Africa/Asmara"},"Africa/Timbuktu":{aliasTo:"Africa/Bamako"},"Alaskan Standard Time":{aliasTo:"America/Anchorage"},"America/Argentina/ComodRivadavia":{aliasTo:"America/Argentina/Catamarca"},"America/Buenos_Aires":{aliasTo:"America/Argentina/Buenos_Aires"},"America/Louisville":{aliasTo:"America/Kentucky/Louisville"},"America/Montreal":{aliasTo:"America/Toronto"},"America/Santa_Isabel":{aliasTo:"America/Tijuana"},"Arab Standard Time":{aliasTo:"Asia/Riyadh"},"Arabian Standard Time":{aliasTo:"Asia/Dubai"},"Arabic Standard Time":{aliasTo:"Asia/Baghdad"},"Argentina Standard Time":{aliasTo:"America/Argentina/Buenos_Aires"},"Asia/Calcutta":{aliasTo:"Asia/Kolkata"},"Asia/Katmandu":{aliasTo:"Asia/Kathmandu"},"Asia/Rangoon":{aliasTo:"Asia/Yangon"},"Asia/Saigon":{aliasTo:"Asia/Ho_Chi_Minh"},"Atlantic Standard Time":{aliasTo:"America/Halifax"},"Atlantic/Faeroe":{aliasTo:"Atlantic/Faroe"},"Atlantic/Jan_Mayen":{aliasTo:"Europe/Oslo"},"Azerbaijan Standard Time":{aliasTo:"Asia/Baku"},"Azores Standard Time":{aliasTo:"Atlantic/Azores"},"Bahia Standard Time":{aliasTo:"America/Bahia"},"Bangladesh Standard Time":{aliasTo:"Asia/Dhaka"},"Belarus Standard Time":{aliasTo:"Europe/Minsk"},"Canada Central Standard Time":{aliasTo:"America/Regina"},"Cape Verde Standard Time":{aliasTo:"Atlantic/Cape_Verde"},"Caucasus Standard Time":{aliasTo:"Asia/Yerevan"},"Cen. Australia Standard Time":{aliasTo:"Australia/Adelaide"},"Central America Standard Time":{aliasTo:"America/Guatemala"},"Central Asia Standard Time":{aliasTo:"Asia/Almaty"},"Central Brazilian Standard Time":{aliasTo:"America/Cuiaba"},"Central Europe Standard Time":{aliasTo:"Europe/Budapest"},"Central European Standard Time":{aliasTo:"Europe/Warsaw"},"Central Pacific Standard Time":{aliasTo:"Pacific/Guadalcanal"},"Central Standard Time":{aliasTo:"America/Chicago"},"Central Standard Time (Mexico)":{aliasTo:"America/Mexico_City"},"China Standard Time":{aliasTo:"Asia/Shanghai"},"E. Africa Standard Time":{aliasTo:"Africa/Nairobi"},"E. Australia Standard Time":{aliasTo:"Australia/Brisbane"},"E. South America Standard Time":{aliasTo:"America/Sao_Paulo"},"Eastern Standard Time":{aliasTo:"America/New_York"},"Egypt Standard Time":{aliasTo:"Africa/Cairo"},"Ekaterinburg Standard Time":{aliasTo:"Asia/Yekaterinburg"},"Etc/GMT":{aliasTo:"UTC"},"Etc/GMT+0":{aliasTo:"UTC"},"Etc/UCT":{aliasTo:"UTC"},"Etc/UTC":{aliasTo:"UTC"},"Etc/Unversal":{aliasTo:"UTC"},"Etc/Zulu":{aliasTo:"UTC"},"Europe/Belfast":{aliasTo:"Europe/London"},"FLE Standard Time":{aliasTo:"Europe/Kiev"},"Fiji Standard Time":{aliasTo:"Pacific/Fiji"},GMT:{aliasTo:"UTC"},"GMT Standard Time":{aliasTo:"Europe/London"},"GMT+0":{aliasTo:"UTC"},GMT0:{aliasTo:"UTC"},"GTB Standard Time":{aliasTo:"Europe/Bucharest"},"Georgian Standard Time":{aliasTo:"Asia/Tbilisi"},"Greenland Standard Time":{aliasTo:"America/Godthab"},Greenwich:{aliasTo:"UTC"},"Greenwich Standard Time":{aliasTo:"Atlantic/Reykjavik"},"Hawaiian Standard Time":{aliasTo:"Pacific/Honolulu"},"India Standard Time":{aliasTo:"Asia/Calcutta"},"Iran Standard Time":{aliasTo:"Asia/Tehran"},"Israel Standard Time":{aliasTo:"Asia/Jerusalem"},"Jordan Standard Time":{aliasTo:"Asia/Amman"},"Kaliningrad Standard Time":{aliasTo:"Europe/Kaliningrad"},"Korea Standard Time":{aliasTo:"Asia/Seoul"},"Libya Standard Time":{aliasTo:"Africa/Tripoli"},"Line Islands Standard Time":{aliasTo:"Pacific/Kiritimati"},"Magadan Standard Time":{aliasTo:"Asia/Magadan"},"Mauritius Standard Time":{aliasTo:"Indian/Mauritius"},"Middle East Standard Time":{aliasTo:"Asia/Beirut"},"Montevideo Standard Time":{aliasTo:"America/Montevideo"},"Morocco Standard Time":{aliasTo:"Africa/Casablanca"},"Mountain Standard Time":{aliasTo:"America/Denver"},"Mountain Standard Time (Mexico)":{aliasTo:"America/Chihuahua"},"Myanmar Standard Time":{aliasTo:"Asia/Rangoon"},"N. Central Asia Standard Time":{aliasTo:"Asia/Novosibirsk"},"Namibia Standard Time":{aliasTo:"Africa/Windhoek"},"Nepal Standard Time":{aliasTo:"Asia/Katmandu"},"New Zealand Standard Time":{aliasTo:"Pacific/Auckland"},"Newfoundland Standard Time":{aliasTo:"America/St_Johns"},"North Asia East Standard Time":{aliasTo:"Asia/Irkutsk"},"North Asia Standard Time":{aliasTo:"Asia/Krasnoyarsk"},"Pacific SA Standard Time":{aliasTo:"America/Santiago"},"Pacific Standard Time":{aliasTo:"America/Los_Angeles"},"Pacific Standard Time (Mexico)":{aliasTo:"America/Santa_Isabel"},"Pacific/Johnston":{aliasTo:"Pacific/Honolulu"},"Pakistan Standard Time":{aliasTo:"Asia/Karachi"},"Paraguay Standard Time":{aliasTo:"America/Asuncion"},"Romance Standard Time":{aliasTo:"Europe/Paris"},"Russia Time Zone 10":{aliasTo:"Asia/Srednekolymsk"},"Russia Time Zone 11":{aliasTo:"Asia/Kamchatka"},"Russia Time Zone 3":{aliasTo:"Europe/Samara"},"Russian Standard Time":{aliasTo:"Europe/Moscow"},"SA Eastern Standard Time":{aliasTo:"America/Cayenne"},"SA Pacific Standard Time":{aliasTo:"America/Bogota"},"SA Western Standard Time":{aliasTo:"America/La_Paz"},"SE Asia Standard Time":{aliasTo:"Asia/Bangkok"},"Samoa Standard Time":{aliasTo:"Pacific/Apia"},"Singapore Standard Time":{aliasTo:"Asia/Singapore"},"South Africa Standard Time":{aliasTo:"Africa/Johannesburg"},"Sri Lanka Standard Time":{aliasTo:"Asia/Colombo"},"Syria Standard Time":{aliasTo:"Asia/Damascus"},"Taipei Standard Time":{aliasTo:"Asia/Taipei"},"Tasmania Standard Time":{aliasTo:"Australia/Hobart"},"Tokyo Standard Time":{aliasTo:"Asia/Tokyo"},"Tonga Standard Time":{aliasTo:"Pacific/Tongatapu"},"Turkey Standard Time":{aliasTo:"Europe/Istanbul"},UCT:{aliasTo:"UTC"},"US Eastern Standard Time":{aliasTo:"America/Indiana/Indianapolis"},"US Mountain Standard Time":{aliasTo:"America/Phoenix"},"US/Central":{aliasTo:"America/Chicago"},"US/Eastern":{aliasTo:"America/New_York"},"US/Mountain":{aliasTo:"America/Denver"},"US/Pacific":{aliasTo:"America/Los_Angeles"},"US/Pacific-New":{aliasTo:"America/Los_Angeles"},"Ulaanbaatar Standard Time":{aliasTo:"Asia/Ulaanbaatar"},Universal:{aliasTo:"UTC"},"Venezuela Standard Time":{aliasTo:"America/Caracas"},"Vladivostok Standard Time":{aliasTo:"Asia/Vladivostok"},"W. Australia Standard Time":{aliasTo:"Australia/Perth"},"W. Central Africa Standard Time":{aliasTo:"Africa/Lagos"},"W. Europe Standard Time":{aliasTo:"Europe/Berlin"},"West Asia Standard Time":{aliasTo:"Asia/Tashkent"},"West Pacific Standard Time":{aliasTo:"Pacific/Port_Moresby"},"Yakutsk Standard Time":{aliasTo:"Asia/Yakutsk"},Z:{aliasTo:"UTC"},Zulu:{aliasTo:"UTC"},utc:{aliasTo:"UTC"}},q9={"Africa/Abidjan":{ics:[`BEGIN:STANDARD\r TZOFFSETFROM:+0000\r TZOFFSETTO:+0000\r TZNAME:GMT\r @@ -4786,19 +4810,8 @@ TZOFFSETFROM:-1100\r TZOFFSETTO:-1100\r TZNAME:SST\r DTSTART:19700101T000000\r -END:STANDARD`]}},ui={version:JE,aliases:KE,zones:XE};class eb{constructor(){this._aliases=new Map,this._timezones=new Map}getTimezoneForId(t){return this._getTimezoneForIdRec(t,0)}_getTimezoneForIdRec(t,a){if(this._timezones.has(t))return this._timezones.get(t);if(a>=20)return console.error("TimezoneManager.getTimezoneForIdRec() exceeds recursion limits"),null;if(this._aliases.has(t)){const i=this._aliases.get(t);return this._getTimezoneForIdRec(i,a+1)}return null}hasTimezoneForId(t){return this._timezones.has(t)||this._aliases.has(t)}isAlias(t){return!this._timezones.has(t)&&this._aliases.has(t)}listAllTimezones(t=!1){const a=Array.from(this._timezones.keys());return t?a.concat(Array.from(this._aliases.keys())):a}registerTimezone(t){this._timezones.set(t.timezoneId,t)}registerDefaultTimezones(){console.debug(`@nextcloud/calendar-js app is using version ${ui.version} of the timezone database`);for(const t in ui.zones)if(Object.prototype.hasOwnProperty.call(ui.zones,[t])){const a=["BEGIN:VTIMEZONE","TZID:"+t,...ui.zones[t].ics,"END:VTIMEZONE"].join(`\r -`);this.registerTimezoneFromICS(t,a)}for(const t in ui.aliases)Object.prototype.hasOwnProperty.call(ui.aliases,[t])&&this.registerAlias(t,ui.aliases[t].aliasTo)}registerTimezoneFromICS(t,a){const i=new kt(t,a);this.registerTimezone(i)}registerAlias(t,a){this._aliases.set(t,a)}unregisterTimezones(t){this._timezones.delete(t)}unregisterAlias(t){this._aliases.delete(t)}clearAllTimezones(){this._aliases=new Map,this._timezones=new Map,Vi.registerTimezone(kt.utc),Vi.registerTimezone(kt.floating),Vi.registerAlias("GMT",kt.utc.timezoneId),Vi.registerAlias("Z",kt.utc.timezoneId)}}const Vi=new eb;Vi.clearAllTimezones();function xf(){return Vi}class Qd{constructor(t){this._timezoneManager=t}has(t){return this._timezoneManager.hasTimezoneForId(t)}get(t){const a=this._timezoneManager.getTimezoneForId(t);if(a)return a.toICALTimezone()}register(){throw new TypeError("Not allowed to register new timezone")}remove(){throw new TypeError("Not allowed to remove timezone")}reset(){throw new TypeError("Not allowed to reset TimezoneService")}}me.TimezoneService instanceof Qd||(me.TimezoneService=new Qd(xf()));var Bf={exports:{}};(function(e,t){(function(a,i){e.exports=i()})(typeof self<"u"?self:Ia,function(){return(()=>{var a={646:o=>{o.exports=function(s){if(Array.isArray(s)){for(var l=0,d=new Array(s.length);l{o.exports=function(s,l,d){return l in s?Object.defineProperty(s,l,{value:d,enumerable:!0,configurable:!0,writable:!0}):s[l]=d,s}},860:o=>{o.exports=function(s){if(Symbol.iterator in Object(s)||Object.prototype.toString.call(s)==="[object Arguments]")return Array.from(s)}},206:o=>{o.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},319:(o,s,l)=>{var d=l(646),u=l(860),c=l(206);o.exports=function(f){return d(f)||u(f)||c()}},8:o=>{function s(l){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?o.exports=s=function(d){return typeof d}:o.exports=s=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},s(l)}o.exports=s}},i={};function n(o){var s=i[o];if(s!==void 0)return s.exports;var l=i[o]={exports:{}};return a[o](l,l.exports,n),l.exports}n.n=o=>{var s=o&&o.__esModule?()=>o.default:()=>o;return n.d(s,{a:s}),s},n.d=(o,s)=>{for(var l in s)n.o(s,l)&&!n.o(o,l)&&Object.defineProperty(o,l,{enumerable:!0,get:s[l]})},n.o=(o,s)=>Object.prototype.hasOwnProperty.call(o,s),n.r=o=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})};var r={};return(()=>{n.r(r),n.d(r,{VueSelect:()=>I,default:()=>P,mixins:()=>M});var o=n(319),s=n.n(o),l=n(8),d=n.n(l),u=n(713),c=n.n(u);const f={props:{autoscroll:{type:Boolean,default:!0}},watch:{typeAheadPointer:function(){this.autoscroll&&this.maybeAdjustScroll()},open:function(g){var D=this;this.autoscroll&&g&&this.$nextTick(function(){return D.maybeAdjustScroll()})}},methods:{maybeAdjustScroll:function(){var g,D=((g=this.$refs.dropdownMenu)===null||g===void 0?void 0:g.children[this.typeAheadPointer])||!1;if(D){var k=this.getDropdownViewport(),x=D.getBoundingClientRect(),L=x.top,Z=x.bottom,$=x.height;if(Lk.bottom)return this.$refs.dropdownMenu.scrollTop=D.offsetTop-(k.height-$)}},getDropdownViewport:function(){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.getBoundingClientRect():{height:0,top:0,bottom:0}}}},h={data:function(){return{typeAheadPointer:-1}},watch:{filteredOptions:function(){if(this.resetFocusOnOptionsChange){for(var g=0;g=0;g--)if(this.selectable(this.filteredOptions[g])){this.typeAheadPointer=g;break}},typeAheadDown:function(){for(var g=this.typeAheadPointer+1;g0&&arguments[0]!==void 0?arguments[0]:null;return this.mutableLoading=g??!this.mutableLoading}}};function m(g,D,k,x,L,Z,$,V){var y,U=typeof g=="function"?g.options:g;if(D&&(U.render=D,U.staticRenderFns=k,U._compiled=!0),x&&(U.functional=!0),Z&&(U._scopeId="data-v-"+Z),$?(y=function(re){(re=re||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||typeof __VUE_SSR_CONTEXT__>"u"||(re=__VUE_SSR_CONTEXT__),L&&L.call(this,re),re&&re._registeredComponents&&re._registeredComponents.add($)},U._ssrRegister=y):L&&(y=V?function(){L.call(this,(U.functional?this.parent:this).$root.$options.shadowRoot)}:L),y)if(U.functional){U._injectStyles=y;var A=U.render;U.render=function(re,O){return y.call(O),A(re,O)}}else{var z=U.beforeCreate;U.beforeCreate=z?[].concat(z,y):[y]}return{exports:g,options:U}}const p={Deselect:m({},function(){var g=this.$createElement,D=this._self._c||g;return D("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"}},[D("path",{attrs:{d:"M6.895455 5l2.842897-2.842898c.348864-.348863.348864-.914488 0-1.263636L9.106534.261648c-.348864-.348864-.914489-.348864-1.263636 0L5 3.104545 2.157102.261648c-.348863-.348864-.914488-.348864-1.263636 0L.261648.893466c-.348864.348864-.348864.914489 0 1.263636L3.104545 5 .261648 7.842898c-.348864.348863-.348864.914488 0 1.263636l.631818.631818c.348864.348864.914773.348864 1.263636 0L5 6.895455l2.842898 2.842897c.348863.348864.914772.348864 1.263636 0l.631818-.631818c.348864-.348864.348864-.914489 0-1.263636L6.895455 5z"}})])},[],!1,null,null,null).exports,OpenIndicator:m({},function(){var g=this.$createElement,D=this._self._c||g;return D("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10"}},[D("path",{attrs:{d:"M9.211364 7.59931l4.48338-4.867229c.407008-.441854.407008-1.158247 0-1.60046l-.73712-.80023c-.407008-.441854-1.066904-.441854-1.474243 0L7 5.198617 2.51662.33139c-.407008-.441853-1.066904-.441853-1.474243 0l-.737121.80023c-.407008.441854-.407008 1.158248 0 1.600461l4.48338 4.867228L7 10l2.211364-2.40069z"}})])},[],!1,null,null,null).exports},T={inserted:function(g,D,k){var x=k.context;if(x.appendToBody){document.body.appendChild(g);var L=x.$refs.toggle.getBoundingClientRect(),Z=L.height,$=L.top,V=L.left,y=L.width,U=window.scrollX||window.pageXOffset,A=window.scrollY||window.pageYOffset;g.unbindPosition=x.calculatePosition(g,x,{width:y+"px",left:U+V+"px",top:A+$+Z+"px"})}},unbind:function(g,D,k){k.context.appendToBody&&(g.unbindPosition&&typeof g.unbindPosition=="function"&&g.unbindPosition(),g.parentNode&&g.parentNode.removeChild(g))}},R=function(g){var D={};return Object.keys(g).sort().forEach(function(k){D[k]=g[k]}),JSON.stringify(D)};var S=0;const C=function(){return++S};function j(g,D){var k=Object.keys(g);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(g);D&&(x=x.filter(function(L){return Object.getOwnPropertyDescriptor(g,L).enumerable})),k.push.apply(k,x)}return k}function E(g){for(var D=1;D-1}},filter:{type:Function,default:function(g,D){var k=this;return g.filter(function(x){var L=k.getOptionLabel(x);return typeof L=="number"&&(L=L.toString()),k.filterBy(x,L,D)})}},createOption:{type:Function,default:function(g){return d()(this.optionList[0])==="object"?c()({},this.label,g):g}},resetFocusOnOptionsChange:{type:Boolean,default:!0},resetOnOptionsChange:{default:!1,validator:function(g){return["function","boolean"].includes(d()(g))}},clearSearchOnBlur:{type:Function,default:function(g){var D=g.clearSearchOnSelect,k=g.multiple;return D&&!k}},noDrop:{type:Boolean,default:!1},inputId:{type:String},dir:{type:String,default:"auto"},selectOnTab:{type:Boolean,default:!1},selectOnKeyCodes:{type:Array,default:function(){return[13]}},searchInputQuerySelector:{type:String,default:"[type=search]"},mapKeydown:{type:Function,default:function(g,D){return g}},appendToBody:{type:Boolean,default:!1},calculatePosition:{type:Function,default:function(g,D,k){var x=k.width,L=k.top,Z=k.left;g.style.top=L,g.style.left=Z,g.style.width=x}},dropdownShouldOpen:{type:Function,default:function(g){var D=g.noDrop,k=g.open,x=g.mutableLoading;return!D&&k&&!x}},keyboardFocusBorder:{type:Boolean,default:!1},uid:{type:[String,Number],default:function(){return C()}}},data:function(){return{search:"",open:!1,isComposing:!1,isKeyboardNavigation:!1,pushedTags:[],_value:[]}},computed:{isTrackingValues:function(){return this.value===void 0||this.$options.propsData.hasOwnProperty("reduce")},selectedValue:function(){var g=this.value;return this.isTrackingValues&&(g=this.$data._value),g!=null&&g!==""?[].concat(g):[]},optionList:function(){return this.options.concat(this.pushTags?this.pushedTags:[])},searchEl:function(){return this.$scopedSlots.search?this.$refs.selectedOptions.querySelector(this.searchInputQuerySelector):this.$refs.search},scope:function(){var g=this,D={search:this.search,loading:this.loading,searching:this.searching,filteredOptions:this.filteredOptions};return{search:{attributes:E({disabled:this.disabled,placeholder:this.searchPlaceholder,tabindex:this.tabindex,readonly:!this.searchable,id:this.inputId,"aria-autocomplete":"list","aria-labelledby":"vs".concat(this.uid,"__combobox"),"aria-controls":"vs".concat(this.uid,"__listbox"),ref:"search",type:"search",autocomplete:this.autocomplete,value:this.search},this.dropdownOpen&&this.filteredOptions[this.typeAheadPointer]?{"aria-activedescendant":"vs".concat(this.uid,"__option-").concat(this.typeAheadPointer)}:{}),events:{compositionstart:function(){return g.isComposing=!0},compositionend:function(){return g.isComposing=!1},keydown:this.onSearchKeyDown,keypress:this.onSearchKeyPress,blur:this.onSearchBlur,focus:this.onSearchFocus,input:function(k){return g.search=k.target.value}}},spinner:{loading:this.mutableLoading},noOptions:{search:this.search,loading:this.mutableLoading,searching:this.searching},openIndicator:{attributes:{ref:"openIndicator",role:"presentation",class:"vs__open-indicator"}},listHeader:D,listFooter:D,header:E({},D,{deselect:this.deselect}),footer:E({},D,{deselect:this.deselect})}},childComponents:function(){return E({},p,{},this.components)},stateClasses:function(){return{"vs--open":this.dropdownOpen,"vs--single":!this.multiple,"vs--multiple":this.multiple,"vs--searching":this.searching&&!this.noDrop,"vs--searchable":this.searchable&&!this.noDrop,"vs--unsearchable":!this.searchable,"vs--loading":this.mutableLoading,"vs--disabled":this.disabled}},searching:function(){return!!this.search},dropdownOpen:function(){return this.dropdownShouldOpen(this)},searchPlaceholder:function(){return this.isValueEmpty&&this.placeholder?this.placeholder:void 0},filteredOptions:function(){var g=this,D=function(Z){return g.limit!==null?Z.slice(0,g.limit):Z},k=[].concat(this.optionList);if(!this.filterable&&!this.taggable)return D(k);var x=this.search.length?this.filter(k,this.search,this):k;if(this.taggable&&this.search.length){var L=this.createOption(this.search);this.optionExists(L)||x.unshift(L)}return D(x)},isValueEmpty:function(){return this.selectedValue.length===0},showClearButton:function(){return!this.multiple&&this.clearable&&!this.open&&!this.isValueEmpty}},watch:{options:function(g,D){var k=this;!this.taggable&&(typeof k.resetOnOptionsChange=="function"?k.resetOnOptionsChange(g,D,k.selectedValue):k.resetOnOptionsChange)&&this.clearSelection(),this.value&&this.isTrackingValues&&this.setInternalValueFromOptions(this.value)},value:{immediate:!0,handler:function(g){this.isTrackingValues&&this.setInternalValueFromOptions(g)}},multiple:function(){this.clearSelection()},open:function(g){this.$emit(g?"open":"close")},search:function(g){g.length&&(this.open=!0)}},created:function(){this.mutableLoading=this.loading,this.$on("option:created",this.pushTag)},methods:{setInternalValueFromOptions:function(g){var D=this;Array.isArray(g)?this.$data._value=g.map(function(k){return D.findOptionFromReducedValue(k)}):this.$data._value=this.findOptionFromReducedValue(g)},select:function(g){this.$emit("option:selecting",g),this.isOptionSelected(g)?this.deselectFromDropdown&&(this.clearable||this.multiple&&this.selectedValue.length>1)&&this.deselect(g):(this.taggable&&!this.optionExists(g)&&this.$emit("option:created",g),this.multiple&&(g=this.selectedValue.concat(g)),this.updateValue(g),this.$emit("option:selected",g)),this.onAfterSelect(g)},deselect:function(g){var D=this;this.$emit("option:deselecting",g),this.updateValue(this.selectedValue.filter(function(k){return!D.optionComparator(k,g)})),this.$emit("option:deselected",g)},keyboardDeselect:function(g,D){var k,x;this.deselect(g);var L=(k=this.$refs.deselectButtons)===null||k===void 0?void 0:k[D+1],Z=(x=this.$refs.deselectButtons)===null||x===void 0?void 0:x[D-1],$=L??Z;$?$.focus():this.searchEl.focus()},clearSelection:function(){this.updateValue(this.multiple?[]:null),this.searchEl.focus()},onAfterSelect:function(g){var D=this;this.closeOnSelect&&(this.open=!this.open),this.clearSearchOnSelect&&(this.search=""),this.noDrop&&this.multiple&&this.$nextTick(function(){return D.$refs.search.focus()})},updateValue:function(g){var D=this;this.value===void 0&&(this.$data._value=g),g!==null&&(g=Array.isArray(g)?g.map(function(k){return D.reduce(k)}):this.reduce(g)),this.$emit("input",g)},toggleDropdown:function(g){var D=g.target!==this.searchEl;D&&g.preventDefault();var k=[].concat(s()(this.$refs.deselectButtons||[]),s()([this.$refs.clearButton]));this.searchEl===void 0||k.filter(Boolean).some(function(x){return x.contains(g.target)||x===g.target})?g.preventDefault():this.open&&D?this.searchEl.blur():this.disabled||(this.open=!0,this.searchEl.focus())},isOptionSelected:function(g){var D=this;return this.selectedValue.some(function(k){return D.optionComparator(k,g)})},isOptionDeselectable:function(g){return this.isOptionSelected(g)&&this.deselectFromDropdown},hasKeyboardFocusBorder:function(g){return!(!this.keyboardFocusBorder||!this.isKeyboardNavigation)&&g===this.typeAheadPointer},optionComparator:function(g,D){return this.getOptionKey(g)===this.getOptionKey(D)},findOptionFromReducedValue:function(g){var D=this,k=[].concat(s()(this.options),s()(this.pushedTags)).filter(function(x){return JSON.stringify(D.reduce(x))===JSON.stringify(g)});return k.length===1?k[0]:k.find(function(x){return D.optionComparator(x,D.$data._value)})||g},closeSearchOptions:function(){this.open=!1,this.$emit("search:blur")},maybeDeleteValue:function(){if(!this.searchEl.value.length&&this.selectedValue&&this.selectedValue.length&&this.clearable){var g=null;this.multiple&&(g=s()(this.selectedValue.slice(0,this.selectedValue.length-1))),this.updateValue(g)}},optionExists:function(g){var D=this;return this.optionList.some(function(k){return D.optionComparator(k,g)})},optionAriaSelected:function(g){return this.selectable(g)?String(this.isOptionSelected(g)):null},normalizeOptionForSlot:function(g){return d()(g)==="object"?g:c()({},this.label,g)},pushTag:function(g){this.pushedTags.push(g)},onEscape:function(){this.search.length?this.search="":this.open=!1},onSearchBlur:function(){if(!this.mousedown||this.searching){var g=this.clearSearchOnSelect,D=this.multiple;return this.clearSearchOnBlur({clearSearchOnSelect:g,multiple:D})&&(this.search=""),void this.closeSearchOptions()}this.mousedown=!1,this.search.length!==0||this.options.length!==0||this.closeSearchOptions()},onSearchFocus:function(){this.open=!0,this.$emit("search:focus")},onMousedown:function(){this.mousedown=!0},onMouseUp:function(){this.mousedown=!1},onMouseMove:function(g,D){this.isKeyboardNavigation=!1,this.selectable(g)&&(this.typeAheadPointer=D)},onSearchKeyDown:function(g){var D=this,k=function(Z){if(Z.preventDefault(),D.open)return!D.isComposing&&D.typeAheadSelect();D.open=!0},x={8:function(Z){return D.maybeDeleteValue()},9:function(Z){return D.onTab()},27:function(Z){return D.onEscape()},38:function(Z){if(Z.preventDefault(),D.isKeyboardNavigation=!0,D.open)return D.typeAheadUp();D.open=!0},40:function(Z){if(Z.preventDefault(),D.isKeyboardNavigation=!0,D.open)return D.typeAheadDown();D.open=!0}};this.selectOnKeyCodes.forEach(function(Z){return x[Z]=k});var L=this.mapKeydown(x,this);if(typeof L[g.keyCode]=="function")return L[g.keyCode](g)},onSearchKeyPress:function(g){this.open||g.keyCode!==32||(g.preventDefault(),this.open=!0)}}},function(){var g=this,D=g.$createElement,k=g._self._c||D;return k("div",{staticClass:"v-select",class:g.stateClasses,attrs:{dir:g.dir}},[g._t("header",null,null,g.scope.header),g._v(" "),k("div",{ref:"toggle",staticClass:"vs__dropdown-toggle",attrs:{id:"vs"+g.uid+"__combobox",role:"combobox","aria-expanded":g.dropdownOpen.toString(),"aria-owns":"vs"+g.uid+"__listbox","aria-label":g.ariaLabelCombobox},on:{mousedown:function(x){return g.toggleDropdown(x)}}},[k("div",{ref:"selectedOptions",staticClass:"vs__selected-options"},[g._l(g.selectedValue,function(x,L){return g._t("selected-option-container",[k("span",{key:g.getOptionKey(x),staticClass:"vs__selected"},[g._t("selected-option",[g._v(` - `+g._s(g.getOptionLabel(x))+` - `)],null,g.normalizeOptionForSlot(x)),g._v(" "),g.multiple?k("button",{ref:"deselectButtons",refInFor:!0,staticClass:"vs__deselect",attrs:{disabled:g.disabled,type:"button",title:g.ariaLabelDeselectOption(g.getOptionLabel(x)),"aria-label":g.ariaLabelDeselectOption(g.getOptionLabel(x))},on:{mousedown:function(Z){return Z.stopPropagation(),g.deselect(x)},keydown:function(Z){return!Z.type.indexOf("key")&&g._k(Z.keyCode,"enter",13,Z.key,"Enter")?null:g.keyboardDeselect(x,L)}}},[k(g.childComponents.Deselect,{tag:"component"})],1):g._e()],2)],{option:g.normalizeOptionForSlot(x),deselect:g.deselect,multiple:g.multiple,disabled:g.disabled})}),g._v(" "),g._t("search",[k("input",g._g(g._b({staticClass:"vs__search"},"input",g.scope.search.attributes,!1),g.scope.search.events))],null,g.scope.search)],2),g._v(" "),k("div",{ref:"actions",staticClass:"vs__actions"},[k("button",{directives:[{name:"show",rawName:"v-show",value:g.showClearButton,expression:"showClearButton"}],ref:"clearButton",staticClass:"vs__clear",attrs:{disabled:g.disabled,type:"button",title:g.ariaLabelClearSelected,"aria-label":g.ariaLabelClearSelected},on:{click:g.clearSelection}},[k(g.childComponents.Deselect,{tag:"component"})],1),g._v(" "),g._t("open-indicator",[g.noDrop?g._e():k(g.childComponents.OpenIndicator,g._b({tag:"component"},"component",g.scope.openIndicator.attributes,!1))],null,g.scope.openIndicator),g._v(" "),g._t("spinner",[k("div",{directives:[{name:"show",rawName:"v-show",value:g.mutableLoading,expression:"mutableLoading"}],staticClass:"vs__spinner"},[g._v("Loading...")])],null,g.scope.spinner)],2)]),g._v(" "),k("transition",{attrs:{name:g.transition}},[g.dropdownOpen?k("ul",{directives:[{name:"append-to-body",rawName:"v-append-to-body"}],key:"vs"+g.uid+"__listbox",ref:"dropdownMenu",staticClass:"vs__dropdown-menu",attrs:{id:"vs"+g.uid+"__listbox",role:"listbox","aria-multiselectable":g.multiple,tabindex:"-1"},on:{mousedown:function(x){return x.preventDefault(),g.onMousedown(x)},mouseup:g.onMouseUp}},[g._t("list-header",null,null,g.scope.listHeader),g._v(" "),g._l(g.filteredOptions,function(x,L){return k("li",{key:g.getOptionKey(x),staticClass:"vs__dropdown-option",class:{"vs__dropdown-option--deselect":g.isOptionDeselectable(x)&&L===g.typeAheadPointer,"vs__dropdown-option--selected":g.isOptionSelected(x),"vs__dropdown-option--highlight":L===g.typeAheadPointer,"vs__dropdown-option--kb-focus":g.hasKeyboardFocusBorder(L),"vs__dropdown-option--disabled":!g.selectable(x)},attrs:{id:"vs"+g.uid+"__option-"+L,role:"option","aria-selected":g.optionAriaSelected(x)},on:{mousemove:function(Z){return g.onMouseMove(x,L)},click:function(Z){Z.preventDefault(),Z.stopPropagation(),g.selectable(x)&&g.select(x)}}},[g._t("option",[g._v(` - `+g._s(g.getOptionLabel(x))+` - `)],null,g.normalizeOptionForSlot(x))],2)}),g._v(" "),g.filteredOptions.length===0?k("li",{staticClass:"vs__no-options"},[g._t("no-options",[g._v(` - Sorry, no matching options. - `)],null,g.scope.noOptions)],2):g._e(),g._v(" "),g._t("list-footer",null,null,g.scope.listFooter)],2):k("ul",{staticStyle:{display:"none",visibility:"hidden"},attrs:{id:"vs"+g.uid+"__listbox",role:"listbox"}})]),g._v(" "),g._t("footer",null,null,g.scope.footer)],2)},[],!1,null,null,null).exports,M={ajax:_,pointer:h,pointerScroll:f},P=I})(),r})()})})(Bf);var Z0=Bf.exports;const Cr=Math.min,bi=Math.max,Mr=Math.round,I0=Math.floor,Qa=e=>({x:e,y:e}),tb={left:"right",right:"left",bottom:"top",top:"bottom"},ab={start:"end",end:"start"};function Jd(e,t,a){return bi(e,Cr(t,a))}function cn(e,t){return typeof e=="function"?e(t):e}function Ja(e){return e.split("-")[0]}function ko(e){return e.split("-")[1]}function gu(e){return e==="x"?"y":"x"}function Cf(e){return e==="y"?"height":"width"}function A0(e){return["top","bottom"].includes(Ja(e))?"y":"x"}function Mf(e){return gu(A0(e))}function ib(e,t,a){a===void 0&&(a=!1);const i=ko(e),n=Mf(e),r=Cf(n);let o=n==="x"?i===(a?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(o=Yr(o)),[o,Yr(o)]}function nb(e){const t=Yr(e);return[il(e),t,il(t)]}function il(e){return e.replace(/start|end/g,t=>ab[t])}function rb(e,t,a){const i=["left","right"],n=["right","left"],r=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return a?t?n:i:t?i:n;case"left":case"right":return t?r:o;default:return[]}}function ob(e,t,a,i){const n=ko(e);let r=rb(Ja(e),a==="start",i);return n&&(r=r.map(o=>o+"-"+n),t&&(r=r.concat(r.map(il)))),r}function Yr(e){return e.replace(/left|right|bottom|top/g,t=>tb[t])}function sb(e){return{top:0,right:0,bottom:0,left:0,...e}}function lb(e){return typeof e!="number"?sb(e):{top:e,right:e,bottom:e,left:e}}function Lr(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Kd(e,t,a){let{reference:i,floating:n}=e;const r=A0(t),o=Mf(t),s=Cf(o),l=Ja(t),d=r==="y",u=i.x+i.width/2-n.width/2,c=i.y+i.height/2-n.height/2,f=i[s]/2-n[s]/2;let h;switch(l){case"top":h={x:u,y:i.y-n.height};break;case"bottom":h={x:u,y:i.y+i.height};break;case"right":h={x:i.x+i.width,y:c};break;case"left":h={x:i.x-n.width,y:c};break;default:h={x:i.x,y:i.y}}switch(ko(t)){case"start":h[o]-=f*(a&&d?-1:1);break;case"end":h[o]+=f*(a&&d?-1:1);break}return h}const ub=async(e,t,a)=>{const{placement:i="bottom",strategy:n="absolute",middleware:r=[],platform:o}=a,s=r.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let d=await o.getElementRects({reference:e,floating:t,strategy:n}),{x:u,y:c}=Kd(d,i,l),f=i,h={},_=0;for(let m=0;mk<=0)){var P,g;const k=(((P=r.flip)==null?void 0:P.index)||0)+1,x=j[k];if(x)return{data:{index:k,overflows:M},reset:{placement:x}};let L=(g=M.filter(Z=>Z.overflows[0]<=0).sort((Z,$)=>Z.overflows[1]-$.overflows[1])[0])==null?void 0:g.placement;if(!L)switch(h){case"bestFit":{var D;const Z=(D=M.map($=>[$.placement,$.overflows.filter(V=>V>0).reduce((V,y)=>V+y,0)]).sort(($,V)=>$[1]-V[1])[0])==null?void 0:D[0];Z&&(L=Z);break}case"initialPlacement":L=s;break}if(n!==L)return{reset:{placement:L}}}return{}}}};async function cb(e,t){const{placement:a,platform:i,elements:n}=e,r=await(i.isRTL==null?void 0:i.isRTL(n.floating)),o=Ja(a),s=ko(a),l=A0(a)==="y",d=["left","top"].includes(o)?-1:1,u=r&&l?-1:1,c=cn(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:_}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...c};return s&&typeof _=="number"&&(h=s==="end"?_*-1:_),l?{x:h*u,y:f*d}:{x:f*d,y:h*u}}const hb=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:a,y:i}=t,n=await cb(t,e);return{x:a+n.x,y:i+n.y,data:n}}}},fb=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:a,y:i,placement:n}=t,{mainAxis:r=!0,crossAxis:o=!1,limiter:s={fn:p=>{let{x:T,y:R}=p;return{x:T,y:R}}},...l}=cn(e,t),d={x:a,y:i},u=await Yf(t,l),c=A0(Ja(n)),f=gu(c);let h=d[f],_=d[c];if(r){const p=f==="y"?"top":"left",T=f==="y"?"bottom":"right",R=h+u[p],S=h-u[T];h=Jd(R,h,S)}if(o){const p=c==="y"?"top":"left",T=c==="y"?"bottom":"right",R=_+u[p],S=_-u[T];_=Jd(R,_,S)}const m=s.fn({...t,[f]:h,[c]:_});return{...m,data:{x:m.x-a,y:m.y-i}}}}},gb=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:a,y:i,placement:n,rects:r,middlewareData:o}=t,{offset:s=0,mainAxis:l=!0,crossAxis:d=!0}=cn(e,t),u={x:a,y:i},c=A0(n),f=gu(c);let h=u[f],_=u[c];const m=cn(s,t),p=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const S=f==="y"?"height":"width",C=r.reference[f]-r.floating[S]+p.mainAxis,j=r.reference[f]+r.reference[S]-p.mainAxis;hj&&(h=j)}if(d){var T,R;const S=f==="y"?"width":"height",C=["top","left"].includes(Ja(n)),j=r.reference[c]-r.floating[S]+(C&&((T=o.offset)==null?void 0:T[c])||0)+(C?0:p.crossAxis),E=r.reference[c]+r.reference[S]+(C?0:((R=o.offset)==null?void 0:R[c])||0)-(C?p.crossAxis:0);_E&&(_=E)}return{[f]:h,[c]:_}}}};function Ka(e){return Lf(e)?(e.nodeName||"").toLowerCase():"#document"}function Nt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function wa(e){var t;return(t=(Lf(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Lf(e){return e instanceof Node||e instanceof Nt(e).Node}function ba(e){return e instanceof Element||e instanceof Nt(e).Element}function oa(e){return e instanceof HTMLElement||e instanceof Nt(e).HTMLElement}function Xd(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Nt(e).ShadowRoot}function S0(e){const{overflow:t,overflowX:a,overflowY:i,display:n}=Zt(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+a)&&!["inline","contents"].includes(n)}function _b(e){return["table","td","th"].includes(Ka(e))}function _u(e){const t=Fu(),a=Zt(e);return a.transform!=="none"||a.perspective!=="none"||(a.containerType?a.containerType!=="normal":!1)||!t&&(a.backdropFilter?a.backdropFilter!=="none":!1)||!t&&(a.filter?a.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(a.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(a.contain||"").includes(i))}function Fb(e){let t=hn(e);for(;oa(t)&&!vo(t);){if(_u(t))return t;t=hn(t)}return null}function Fu(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function vo(e){return["html","body","#document"].includes(Ka(e))}function Zt(e){return Nt(e).getComputedStyle(e)}function Ro(e){return ba(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function hn(e){if(Ka(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Xd(e)&&e.host||wa(e);return Xd(t)?t.host:t}function Zf(e){const t=hn(e);return vo(t)?e.ownerDocument?e.ownerDocument.body:e.body:oa(t)&&S0(t)?t:Zf(t)}function u0(e,t,a){var i;t===void 0&&(t=[]),a===void 0&&(a=!0);const n=Zf(e),r=n===((i=e.ownerDocument)==null?void 0:i.body),o=Nt(n);return r?t.concat(o,o.visualViewport||[],S0(n)?n:[],o.frameElement&&a?u0(o.frameElement):[]):t.concat(n,u0(n,[],a))}function If(e){const t=Zt(e);let a=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const n=oa(e),r=n?e.offsetWidth:a,o=n?e.offsetHeight:i,s=Mr(a)!==r||Mr(i)!==o;return s&&(a=r,i=o),{width:a,height:i,$:s}}function mu(e){return ba(e)?e:e.contextElement}function nn(e){const t=mu(e);if(!oa(t))return Qa(1);const a=t.getBoundingClientRect(),{width:i,height:n,$:r}=If(t);let o=(r?Mr(a.width):a.width)/i,s=(r?Mr(a.height):a.height)/n;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const mb=Qa(0);function jf(e){const t=Nt(e);return!Fu()||!t.visualViewport?mb:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function pb(e,t,a){return t===void 0&&(t=!1),!a||t&&a!==Nt(e)?!1:t}function vi(e,t,a,i){t===void 0&&(t=!1),a===void 0&&(a=!1);const n=e.getBoundingClientRect(),r=mu(e);let o=Qa(1);t&&(i?ba(i)&&(o=nn(i)):o=nn(e));const s=pb(r,a,i)?jf(r):Qa(0);let l=(n.left+s.x)/o.x,d=(n.top+s.y)/o.y,u=n.width/o.x,c=n.height/o.y;if(r){const f=Nt(r),h=i&&ba(i)?Nt(i):i;let _=f.frameElement;for(;_&&i&&h!==f;){const m=nn(_),p=_.getBoundingClientRect(),T=Zt(_),R=p.left+(_.clientLeft+parseFloat(T.paddingLeft))*m.x,S=p.top+(_.clientTop+parseFloat(T.paddingTop))*m.y;l*=m.x,d*=m.y,u*=m.x,c*=m.y,l+=R,d+=S,_=Nt(_).frameElement}}return Lr({width:u,height:c,x:l,y:d})}function Tb(e){let{rect:t,offsetParent:a,strategy:i}=e;const n=oa(a),r=wa(a);if(a===r)return t;let o={scrollLeft:0,scrollTop:0},s=Qa(1);const l=Qa(0);if((n||!n&&i!=="fixed")&&((Ka(a)!=="body"||S0(r))&&(o=Ro(a)),oa(a))){const d=vi(a);s=nn(a),l.x=d.x+a.clientLeft,l.y=d.y+a.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-o.scrollLeft*s.x+l.x,y:t.y*s.y-o.scrollTop*s.y+l.y}}function Db(e){return Array.from(e.getClientRects())}function Pf(e){return vi(wa(e)).left+Ro(e).scrollLeft}function Eb(e){const t=wa(e),a=Ro(e),i=e.ownerDocument.body,n=bi(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),r=bi(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let o=-a.scrollLeft+Pf(e);const s=-a.scrollTop;return Zt(i).direction==="rtl"&&(o+=bi(t.clientWidth,i.clientWidth)-n),{width:n,height:r,x:o,y:s}}function bb(e,t){const a=Nt(e),i=wa(e),n=a.visualViewport;let r=i.clientWidth,o=i.clientHeight,s=0,l=0;if(n){r=n.width,o=n.height;const d=Fu();(!d||d&&t==="fixed")&&(s=n.offsetLeft,l=n.offsetTop)}return{width:r,height:o,x:s,y:l}}function yb(e,t){const a=vi(e,!0,t==="fixed"),i=a.top+e.clientTop,n=a.left+e.clientLeft,r=oa(e)?nn(e):Qa(1),o=e.clientWidth*r.x,s=e.clientHeight*r.y,l=n*r.x,d=i*r.y;return{width:o,height:s,x:l,y:d}}function e1(e,t,a){let i;if(t==="viewport")i=bb(e,a);else if(t==="document")i=Eb(wa(e));else if(ba(t))i=yb(t,a);else{const n=jf(e);i={...t,x:t.x-n.x,y:t.y-n.y}}return Lr(i)}function Gf(e,t){const a=hn(e);return a===t||!ba(a)||vo(a)?!1:Zt(a).position==="fixed"||Gf(a,t)}function Ab(e,t){const a=t.get(e);if(a)return a;let i=u0(e,[],!1).filter(s=>ba(s)&&Ka(s)!=="body"),n=null;const r=Zt(e).position==="fixed";let o=r?hn(e):e;for(;ba(o)&&!vo(o);){const s=Zt(o),l=_u(o);!l&&s.position==="fixed"&&(n=null),(r?!l&&!n:!l&&s.position==="static"&&n&&["absolute","fixed"].includes(n.position)||S0(o)&&!l&&Gf(e,o))?i=i.filter(d=>d!==o):n=s,o=hn(o)}return t.set(e,i),i}function Sb(e){let{element:t,boundary:a,rootBoundary:i,strategy:n}=e;const r=[...a==="clippingAncestors"?Ab(t,this._c):[].concat(a),i],o=r[0],s=r.reduce((l,d)=>{const u=e1(t,d,n);return l.top=bi(u.top,l.top),l.right=Cr(u.right,l.right),l.bottom=Cr(u.bottom,l.bottom),l.left=bi(u.left,l.left),l},e1(t,o,n));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function kb(e){return If(e)}function vb(e,t,a){const i=oa(t),n=wa(t),r=a==="fixed",o=vi(e,!0,r,t);let s={scrollLeft:0,scrollTop:0};const l=Qa(0);if(i||!i&&!r)if((Ka(t)!=="body"||S0(n))&&(s=Ro(t)),i){const d=vi(t,!0,r,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else n&&(l.x=Pf(n));return{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function t1(e,t){return!oa(e)||Zt(e).position==="fixed"?null:t?t(e):e.offsetParent}function Uf(e,t){const a=Nt(e);if(!oa(e))return a;let i=t1(e,t);for(;i&&_b(i)&&Zt(i).position==="static";)i=t1(i,t);return i&&(Ka(i)==="html"||Ka(i)==="body"&&Zt(i).position==="static"&&!_u(i))?a:i||Fb(e)||a}const Rb=async function(e){let{reference:t,floating:a,strategy:i}=e;const n=this.getOffsetParent||Uf,r=this.getDimensions;return{reference:vb(t,await n(a),i),floating:{x:0,y:0,...await r(a)}}};function Nb(e){return Zt(e).direction==="rtl"}const wb={convertOffsetParentRelativeRectToViewportRelativeRect:Tb,getDocumentElement:wa,getClippingRect:Sb,getOffsetParent:Uf,getElementRects:Rb,getClientRects:Db,getDimensions:kb,getScale:nn,isElement:ba,isRTL:Nb};function Ob(e,t){let a=null,i;const n=wa(e);function r(){clearTimeout(i),a&&a.disconnect(),a=null}function o(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),r();const{left:d,top:u,width:c,height:f}=e.getBoundingClientRect();if(s||t(),!c||!f)return;const h=I0(u),_=I0(n.clientWidth-(d+c)),m=I0(n.clientHeight-(u+f)),p=I0(d),T={rootMargin:-h+"px "+-_+"px "+-m+"px "+-p+"px",threshold:bi(0,Cr(1,l))||1};let R=!0;function S(C){const j=C[0].intersectionRatio;if(j!==l){if(!R)return o();j?o(!1,j):i=setTimeout(()=>{o(!1,1e-7)},100)}R=!1}try{a=new IntersectionObserver(S,{...T,root:n.ownerDocument})}catch{a=new IntersectionObserver(S,T)}a.observe(e)}return o(!0),r}function xb(e,t,a,i){i===void 0&&(i={});const{ancestorScroll:n=!0,ancestorResize:r=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=i,d=mu(e),u=n||r?[...d?u0(d):[],...u0(t)]:[];u.forEach(T=>{n&&T.addEventListener("scroll",a,{passive:!0}),r&&T.addEventListener("resize",a)});const c=d&&s?Ob(d,a):null;let f=-1,h=null;o&&(h=new ResizeObserver(T=>{let[R]=T;R&&R.target===d&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{h&&h.observe(t)})),a()}),d&&!l&&h.observe(d),h.observe(t));let _,m=l?vi(e):null;l&&p();function p(){const T=vi(e);m&&(T.x!==m.x||T.y!==m.y||T.width!==m.width||T.height!==m.height)&&a(),m=T,_=requestAnimationFrame(p)}return a(),()=>{u.forEach(T=>{n&&T.removeEventListener("scroll",a),r&&T.removeEventListener("resize",a)}),c&&c(),h&&h.disconnect(),h=null,l&&cancelAnimationFrame(_)}}const Bb=(e,t,a)=>{const i=new Map,n={platform:wb,...a},r={...n.platform,_c:i};return ub(e,t,{...n,platform:r})},Cb={name:"ChevronDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Mb=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon chevron-down-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},Yb=[],Lb=ce(Cb,Mb,Yb,!1,null,null,null,null);const Zb=Lb.exports,Ib={name:"CloseIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var jb=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon close-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},Pb=[],Gb=ce(Ib,jb,Pb,!1,null,null,null,null);const No=Gb.exports;const qf=(e,t)=>{const a=[];let i=0,n=e.toLowerCase().indexOf(t.toLowerCase(),i),r=0;for(;n>-1&&r[]}},computed:{ranges(){let e=[];return!this.search&&this.highlight.length===0||(this.highlight.length>0?e=this.highlight:e=qf(this.text,this.search),e.forEach((t,a)=>{t.end(a.start0&&t.push({start:a.start<0?0:a.start,end:a.end>this.text.length?this.text.length:a.end}),t),[]),e.sort((t,a)=>t.start-a.start),e=e.reduce((t,a)=>{if(!t.length)t.push(a);else{const i=t.length-1;t[i].end>=a.start?t[i]={start:t[i].start,end:Math.max(t[i].end,a.end)}:t.push(a)}return t},[])),e},chunks(){if(this.ranges.length===0)return[{start:0,end:this.text.length,highlight:!1,text:this.text}];const e=[];let t=0,a=0;for(;t=this.ranges.length&&tt.highlight?e("strong",{},t.text):t.text)):e("span",{},this.text)}},qb=null,Hb=null;var zb=ce(Ub,qb,Hb,!1,null,null,null,null);const wo=zb.exports,Vb={name:"NcEllipsisedOption",components:{NcHighlight:wo},props:{name:{type:String,default:""},search:{type:String,default:""}},computed:{needsTruncate(){return this.name&&this.name.length>=10},split(){return this.name.length-Math.min(Math.floor(this.name.length/2),10)},part1(){return this.needsTruncate?this.name.slice(0,this.split):this.name},part2(){return this.needsTruncate?this.name.slice(this.split):""},highlight1(){return this.search?qf(this.name,this.search):[]},highlight2(){return this.highlight1.map(e=>({start:e.start-this.split,end:e.end-this.split}))}}};var $b=function(){var e=this,t=e._self._c;return t("span",{staticClass:"name-parts",attrs:{title:e.name}},[t("NcHighlight",{staticClass:"name-parts__first",attrs:{text:e.part1,search:e.search,highlight:e.highlight1}}),e.part2?t("NcHighlight",{staticClass:"name-parts__last",attrs:{text:e.part2,search:e.search,highlight:e.highlight2}}):e._e()],1)},Wb=[],Qb=ce(Vb,$b,Wb,!1,null,"08c4259e",null,null);const Jb=Qb.exports;var Hf=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Zr=Hf.join(","),zf=typeof Element>"u",Ri=zf?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ir=!zf&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},jr=function e(t,a){var i;a===void 0&&(a=!0);var n=t==null||(i=t.getAttribute)===null||i===void 0?void 0:i.call(t,"inert"),r=n===""||n==="true",o=r||a&&t&&e(t.parentNode);return o},Kb=function(e){var t,a=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return a===""||a==="true"},Vf=function(e,t,a){if(jr(e))return[];var i=Array.prototype.slice.apply(e.querySelectorAll(Zr));return t&&Ri.call(e,Zr)&&i.unshift(e),i=i.filter(a),i},$f=function e(t,a,i){for(var n=[],r=Array.from(t);r.length;){var o=r.shift();if(!jr(o,!1))if(o.tagName==="SLOT"){var s=o.assignedElements(),l=s.length?s:o.children,d=e(l,!0,i);i.flatten?n.push.apply(n,d):n.push({scopeParent:o,candidates:d})}else{var u=Ri.call(o,Zr);u&&i.filter(o)&&(a||!t.includes(o))&&n.push(o);var c=o.shadowRoot||typeof i.getShadowRoot=="function"&&i.getShadowRoot(o),f=!jr(c,!1)&&(!i.shadowRootFilter||i.shadowRootFilter(o));if(c&&f){var h=e(c===!0?o.children:c.children,!0,i);i.flatten?n.push.apply(n,h):n.push({scopeParent:o,candidates:h})}else r.unshift.apply(r,o.children)}}return n},Wf=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},gi=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||Kb(e))&&!Wf(e)?0:e.tabIndex},Xb=function(e,t){var a=gi(e);return a<0&&t&&!Wf(e)?0:a},ey=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Qf=function(e){return e.tagName==="INPUT"},ty=function(e){return Qf(e)&&e.type==="hidden"},ay=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(a){return a.tagName==="SUMMARY"});return t},iy=function(e,t){for(var a=0;asummary:first-of-type"),r=n?e.parentElement:e;if(Ri.call(r,"details:not([open]) *"))return!0;if(!a||a==="full"||a==="legacy-full"){if(typeof i=="function"){for(var o=e;e;){var s=e.parentElement,l=Ir(e);if(s&&!s.shadowRoot&&i(s)===!0)return a1(e);e.assignedSlot?e=e.assignedSlot:!s&&l!==e.ownerDocument?e=l.host:e=s}e=o}if(sy(e))return!e.getClientRects().length;if(a!=="legacy-full")return!0}else if(a==="non-zero-area")return a1(e);return!1},uy=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var a=0;a=0)},cy=function e(t){var a=[],i=[];return t.forEach(function(n,r){var o=!!n.scopeParent,s=o?n.scopeParent:n,l=Xb(s,o),d=o?e(n.candidates):s;l===0?o?a.push.apply(a,d):a.push(s):i.push({documentOrder:r,tabIndex:l,item:n,isScope:o,content:d})}),i.sort(ey).reduce(function(n,r){return r.isScope?n.push.apply(n,r.content):n.push(r.content),n},[]).concat(a)},hy=function(e,t){t=t||{};var a;return t.getShadowRoot?a=$f([e],t.includeContainer,{filter:nl.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:dy}):a=Vf(e,t.includeContainer,nl.bind(null,t)),cy(a)},fy=function(e,t){t=t||{};var a;return t.getShadowRoot?a=$f([e],t.includeContainer,{filter:Pr.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):a=Vf(e,t.includeContainer,Pr.bind(null,t)),a},Bi=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return Ri.call(e,Zr)===!1?!1:nl(t,e)},gy=Hf.concat("iframe").join(","),os=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return Ri.call(e,gy)===!1?!1:Pr(t,e)};function i1(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),a.push.apply(a,i)}return a}function n1(e){for(var t=1;t0){var a=e[e.length-1];a!==t&&a.pause()}var i=e.indexOf(t);i===-1||e.splice(i,1),e.push(t)},deactivateTrap:function(e,t){var a=e.indexOf(t);a!==-1&&e.splice(a,1),e.length>0&&e[e.length-1].unpause()}},py=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},Ty=function(e){return e?.key==="Escape"||e?.key==="Esc"||e?.keyCode===27},Gn=function(e){return e?.key==="Tab"||e?.keyCode===9},Dy=function(e){return Gn(e)&&!e.shiftKey},Ey=function(e){return Gn(e)&&e.shiftKey},o1=function(e){return setTimeout(e,0)},s1=function(e,t){var a=-1;return e.every(function(i,n){return t(i)?(a=n,!1):!0}),a},kn=function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),i=1;i1?k-1:0),L=1;L=0)g=a.activeElement;else{var D=r.tabbableGroups[0],k=D&&D.firstTabbableNode;g=k||d("fallbackFocus")}if(!g)throw new Error("Your focus-trap needs to have at least one focusable element");return g},c=function(){if(r.containerGroups=r.containers.map(function(g){var D=hy(g,n.tabbableOptions),k=fy(g,n.tabbableOptions),x=D.length>0?D[0]:void 0,L=D.length>0?D[D.length-1]:void 0,Z=k.find(function(y){return Bi(y)}),$=k.slice().reverse().find(function(y){return Bi(y)}),V=!!D.find(function(y){return gi(y)>0});return{container:g,tabbableNodes:D,focusableNodes:k,posTabIndexesFound:V,firstTabbableNode:x,lastTabbableNode:L,firstDomTabbableNode:Z,lastDomTabbableNode:$,nextTabbableNode:function(y){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,A=D.indexOf(y);return A<0?U?k.slice(k.indexOf(y)+1).find(function(z){return Bi(z)}):k.slice(0,k.indexOf(y)).reverse().find(function(z){return Bi(z)}):D[A+(U?1:-1)]}}}),r.tabbableGroups=r.containerGroups.filter(function(g){return g.tabbableNodes.length>0}),r.tabbableGroups.length<=0&&!d("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(r.containerGroups.find(function(g){return g.posTabIndexesFound})&&r.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},f=function g(D){var k=D.activeElement;if(k)return k.shadowRoot&&k.shadowRoot.activeElement!==null?g(k.shadowRoot):k},h=function g(D){if(D!==!1&&D!==f(document)){if(!D||!D.focus){g(u());return}D.focus({preventScroll:!!n.preventScroll}),r.mostRecentlyFocusedNode=D,py(D)&&D.select()}},_=function(g){var D=d("setReturnFocus",g);return D||(D===!1?!1:g)},m=function(g){var D=g.target,k=g.event,x=g.isBackward,L=x===void 0?!1:x;D=D||j0(k),c();var Z=null;if(r.tabbableGroups.length>0){var $=l(D,k),V=$>=0?r.containerGroups[$]:void 0;if($<0)L?Z=r.tabbableGroups[r.tabbableGroups.length-1].lastTabbableNode:Z=r.tabbableGroups[0].firstTabbableNode;else if(L){var y=s1(r.tabbableGroups,function(ge){var Se=ge.firstTabbableNode;return D===Se});if(y<0&&(V.container===D||os(D,n.tabbableOptions)&&!Bi(D,n.tabbableOptions)&&!V.nextTabbableNode(D,!1))&&(y=$),y>=0){var U=y===0?r.tabbableGroups.length-1:y-1,A=r.tabbableGroups[U];Z=gi(D)>=0?A.lastTabbableNode:A.lastDomTabbableNode}else Gn(k)||(Z=V.nextTabbableNode(D,!1))}else{var z=s1(r.tabbableGroups,function(ge){var Se=ge.lastTabbableNode;return D===Se});if(z<0&&(V.container===D||os(D,n.tabbableOptions)&&!Bi(D,n.tabbableOptions)&&!V.nextTabbableNode(D))&&(z=$),z>=0){var re=z===r.tabbableGroups.length-1?0:z+1,O=r.tabbableGroups[re];Z=gi(D)>=0?O.firstTabbableNode:O.firstDomTabbableNode}else Gn(k)||(Z=V.nextTabbableNode(D))}}else Z=d("fallbackFocus");return Z},p=function(g){var D=j0(g);if(!(l(D,g)>=0)){if(kn(n.clickOutsideDeactivates,g)){o.deactivate({returnFocus:n.returnFocusOnDeactivate});return}kn(n.allowOutsideClick,g)||g.preventDefault()}},T=function(g){var D=j0(g),k=l(D,g)>=0;if(k||D instanceof Document)k&&(r.mostRecentlyFocusedNode=D);else{g.stopImmediatePropagation();var x,L=!0;if(r.mostRecentlyFocusedNode)if(gi(r.mostRecentlyFocusedNode)>0){var Z=l(r.mostRecentlyFocusedNode),$=r.containerGroups[Z].tabbableNodes;if($.length>0){var V=$.findIndex(function(y){return y===r.mostRecentlyFocusedNode});V>=0&&(n.isKeyForward(r.recentNavEvent)?V+1<$.length&&(x=$[V+1],L=!1):V-1>=0&&(x=$[V-1],L=!1))}}else r.containerGroups.some(function(y){return y.tabbableNodes.some(function(U){return gi(U)>0})})||(L=!1);else L=!1;L&&(x=m({target:r.mostRecentlyFocusedNode,isBackward:n.isKeyBackward(r.recentNavEvent)})),h(x||r.mostRecentlyFocusedNode||u())}r.recentNavEvent=void 0},R=function(g){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;r.recentNavEvent=g;var k=m({event:g,isBackward:D});k&&(Gn(g)&&g.preventDefault(),h(k))},S=function(g){if(Ty(g)&&kn(n.escapeDeactivates,g)!==!1){g.preventDefault(),o.deactivate();return}(n.isKeyForward(g)||n.isKeyBackward(g))&&R(g,n.isKeyBackward(g))},C=function(g){var D=j0(g);l(D,g)>=0||kn(n.clickOutsideDeactivates,g)||kn(n.allowOutsideClick,g)||(g.preventDefault(),g.stopImmediatePropagation())},j=function(){if(r.active)return r1.activateTrap(i,o),r.delayInitialFocusTimer=n.delayInitialFocus?o1(function(){h(u())}):h(u()),a.addEventListener("focusin",T,!0),a.addEventListener("mousedown",p,{capture:!0,passive:!1}),a.addEventListener("touchstart",p,{capture:!0,passive:!1}),a.addEventListener("click",C,{capture:!0,passive:!1}),a.addEventListener("keydown",S,{capture:!0,passive:!1}),o},E=function(){if(r.active)return a.removeEventListener("focusin",T,!0),a.removeEventListener("mousedown",p,!0),a.removeEventListener("touchstart",p,!0),a.removeEventListener("click",C,!0),a.removeEventListener("keydown",S,!0),o},I=function(g){var D=g.some(function(k){var x=Array.from(k.removedNodes);return x.some(function(L){return L===r.mostRecentlyFocusedNode})});D&&h(u())},M=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(I):void 0,P=function(){M&&(M.disconnect(),r.active&&!r.paused&&r.containers.map(function(g){M.observe(g,{subtree:!0,childList:!0})}))};return o={get active(){return r.active},get paused(){return r.paused},activate:function(g){if(r.active)return this;var D=s(g,"onActivate"),k=s(g,"onPostActivate"),x=s(g,"checkCanFocusTrap");x||c(),r.active=!0,r.paused=!1,r.nodeFocusedBeforeActivation=a.activeElement,D?.();var L=function(){x&&c(),j(),P(),k?.()};return x?(x(r.containers.concat()).then(L,L),this):(L(),this)},deactivate:function(g){if(!r.active)return this;var D=n1({onDeactivate:n.onDeactivate,onPostDeactivate:n.onPostDeactivate,checkCanReturnFocus:n.checkCanReturnFocus},g);clearTimeout(r.delayInitialFocusTimer),r.delayInitialFocusTimer=void 0,E(),r.active=!1,r.paused=!1,P(),r1.deactivateTrap(i,o);var k=s(D,"onDeactivate"),x=s(D,"onPostDeactivate"),L=s(D,"checkCanReturnFocus"),Z=s(D,"returnFocus","returnFocusOnDeactivate");k?.();var $=function(){o1(function(){Z&&h(_(r.nodeFocusedBeforeActivation)),x?.()})};return Z&&L?(L(_(r.nodeFocusedBeforeActivation)).then($,$),this):($(),this)},pause:function(g){if(r.paused||!r.active)return this;var D=s(g,"onPause"),k=s(g,"onPostPause");return r.paused=!0,D?.(),E(),P(),k?.(),this},unpause:function(g){if(!r.paused||!r.active)return this;var D=s(g,"onUnpause"),k=s(g,"onPostUnpause");return r.paused=!1,D?.(),c(),j(),P(),k?.(),this},updateContainerElements:function(g){var D=[].concat(g).filter(Boolean);return r.containers=D.map(function(k){return typeof k=="string"?a.querySelector(k):k}),r.active&&c(),P(),this}},o.updateContainerElements(e),o};const rl=function(){return Object.assign(window,{_nc_focus_trap:window._nc_focus_trap||[]}),window._nc_focus_trap},yy={name:"NcPopover",components:{Dropdown:aD},inheritAttrs:!1,props:{popoverBaseClass:{type:String,default:""},focusTrap:{type:Boolean,default:!0},setReturnFocus:{default:void 0,type:[HTMLElement,SVGElement,String,Boolean]}},emits:["after-show","after-hide"],beforeDestroy(){this.clearFocusTrap(),this.clearEscapeStopPropagation()},methods:{getPopoverContentElement(){var e,t;return(t=(e=this.$refs.popover)==null?void 0:e.$refs.popperContent)==null?void 0:t.$el},async useFocusTrap(){if(await this.$nextTick(),!this.focusTrap)return;const e=this.getPopoverContentElement();e&&(this.$focusTrap=Jf(e,{escapeDeactivates:!1,allowOutsideClick:!0,setReturnFocus:this.setReturnFocus,trapStack:rl()}),this.$focusTrap.activate())},clearFocusTrap(e={}){var t;try{(t=this.$focusTrap)==null||t.deactivate(e),this.$focusTrap=null}catch(a){console.warn(a)}},addEscapeStopPropagation(){this.getPopoverContentElement()?.addEventListener("keydown",this.stopKeydownEscapeHandler)},clearEscapeStopPropagation(){this.getPopoverContentElement()?.removeEventListener("keydown",this.stopKeydownEscapeHandler)},stopKeydownEscapeHandler(e){e.type==="keydown"&&e.key==="Escape"&&e.stopPropagation()},afterShow(){this.$nextTick(()=>{this.$emit("after-show"),this.useFocusTrap(),this.addEscapeStopPropagation()})},afterHide(){this.$emit("after-hide"),this.clearFocusTrap(),this.clearEscapeStopPropagation()}}};var Ay=function(){var e=this,t=e._self._c;return t("Dropdown",e._g(e._b({ref:"popover",attrs:{distance:10,"arrow-padding":10,"no-auto-focus":!0,"popper-class":e.popoverBaseClass},on:{"apply-show":e.afterShow,"apply-hide":e.afterHide},scopedSlots:e._u([{key:"popper",fn:function(){return[e._t("default")]},proxy:!0}],null,!0)},"Dropdown",e.$attrs,!1),e.$listeners),[e._t("trigger")],2)},Sy=[],ky=ce(yy,Ay,Sy,!1,null,null,null,null);const pu=ky.exports,vy={name:"DotsHorizontalIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Ry=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon dots-horizontal-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M16,12A2,2 0 0,1 18,10A2,2 0 0,1 20,12A2,2 0 0,1 18,14A2,2 0 0,1 16,12M10,12A2,2 0 0,1 12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12M4,12A2,2 0 0,1 6,10A2,2 0 0,1 8,12A2,2 0 0,1 6,14A2,2 0 0,1 4,12Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},Ny=[],wy=ce(vy,Ry,Ny,!1,null,null,null,null);const Tu=wy.exports,Ci=".focusable",Oy={name:"NcActions",components:{NcButton:ai,DotsHorizontal:Tu,NcPopover:pu},props:{open:{type:Boolean,default:!1},manualOpen:{type:Boolean,default:!1},forceMenu:{type:Boolean,default:!1},forceName:{type:Boolean,default:!1},menuName:{type:String,default:null},primary:{type:Boolean,default:!1},type:{type:String,validator(e){return["primary","secondary","tertiary","tertiary-no-background","tertiary-on-primary","error","warning","success"].indexOf(e)!==-1},default:null},defaultIcon:{type:String,default:""},ariaLabel:{type:String,default:ie("Actions")},ariaHidden:{type:Boolean,default:null},placement:{type:String,default:"bottom"},boundariesElement:{type:Element,default:()=>document.querySelector("body")},container:{type:[String,Object,Element,Boolean],default:"body"},disabled:{type:Boolean,default:!1},inline:{type:Number,default:0}},emits:["open","update:open","close","focus","blur"],data(){return{opened:this.open,focusIndex:0,randomId:`menu-${g0()}`}},computed:{triggerBtnType(){return this.type||(this.primary?"primary":this.menuName?"secondary":"tertiary")}},watch:{open(e){e!==this.opened&&(this.opened=e)}},methods:{isValidSingleAction(e){var t,a,i,n,r;const o=(r=(i=(a=(t=e?.componentOptions)==null?void 0:t.Ctor)==null?void 0:a.extendOptions)==null?void 0:i.name)!=null?r:(n=e?.componentOptions)==null?void 0:n.tag;return["NcActionButton","NcActionLink","NcActionRouter"].includes(o)},openMenu(e){this.opened||(this.opened=!0,this.$emit("update:open",!0),this.$emit("open"))},closeMenu(e=!0){this.opened&&(this.opened=!1,this.$refs.popover.clearFocusTrap({returnFocus:e}),this.$emit("update:open",!1),this.$emit("close"),this.focusIndex=0,this.$refs.menuButton.$el.focus())},onOpen(e){this.$nextTick(()=>{this.focusFirstAction(e)})},onMouseFocusAction(e){if(document.activeElement===e.target)return;const t=e.target.closest("li");if(t){const a=t.querySelector(Ci);if(a){const i=[...this.$refs.menu.querySelectorAll(Ci)].indexOf(a);i>-1&&(this.focusIndex=i,this.focusAction())}}},onKeydown(e){(e.keyCode===38||e.keyCode===9&&e.shiftKey)&&this.focusPreviousAction(e),(e.keyCode===40||e.keyCode===9&&!e.shiftKey)&&this.focusNextAction(e),e.keyCode===33&&this.focusFirstAction(e),e.keyCode===34&&this.focusLastAction(e),e.keyCode===27&&(this.closeMenu(),e.preventDefault())},removeCurrentActive(){const e=this.$refs.menu.querySelector("li.active");e&&e.classList.remove("active")},focusAction(){const e=this.$refs.menu.querySelectorAll(Ci)[this.focusIndex];if(e){this.removeCurrentActive();const t=e.closest("li.action");e.focus(),t&&t.classList.add("active")}},focusPreviousAction(e){this.opened&&(this.focusIndex===0?this.closeMenu():(this.preventIfEvent(e),this.focusIndex=this.focusIndex-1),this.focusAction())},focusNextAction(e){if(this.opened){const t=this.$refs.menu.querySelectorAll(Ci).length-1;this.focusIndex===t?this.closeMenu():(this.preventIfEvent(e),this.focusIndex=this.focusIndex+1),this.focusAction()}},focusFirstAction(e){if(this.opened){this.preventIfEvent(e);const t=[...this.$refs.menu.querySelectorAll(Ci)].findIndex(a=>a.parentElement.getAttribute("aria-selected"));this.focusIndex=t>-1?t:0,this.focusAction()}},focusLastAction(e){this.opened&&(this.preventIfEvent(e),this.focusIndex=this.$refs.menu.querySelectorAll(Ci).length-1,this.focusAction())},preventIfEvent(e){e&&(e.preventDefault(),e.stopPropagation())},onFocus(e){this.$emit("focus",e)},onBlur(e){this.$emit("blur",e)}},render(e){const t=(this.$slots.default||[]).filter(s=>{var l,d,u,c;return((l=s?.componentOptions)==null?void 0:l.tag)||((c=(u=(d=s?.componentOptions)==null?void 0:d.Ctor)==null?void 0:u.extendOptions)==null?void 0:c.name)}),a=s=>{var l,d,u,c,f,h,_;const m=(f=(u=(d=(l=s?.componentOptions)==null?void 0:l.Ctor)==null?void 0:d.extendOptions)==null?void 0:u.name)!=null?f:(c=s?.componentOptions)==null?void 0:c.tag,p=(_=(h=s?.componentOptions)==null?void 0:h.propsData)==null?void 0:_.href;return m==="NcActionLink"&&!(p!=null&&p.startsWith("#"))&&new URL(p,window.location.origin).origin===window.location.origin},i=t.every(a);let n=t.filter(this.isValidSingleAction);if(this.forceMenu&&n.length>0&&this.inline>0&&(Aa.util.warn("Specifying forceMenu will ignore any inline actions rendering."),n=[]),t.length===0)return;const r=s=>{var l,d,u,c,f,h,_,m,p,T,R,S,C,j,E,I,M,P,g,D,k,x,L;const Z=((u=(d=(l=s?.data)==null?void 0:l.scopedSlots)==null?void 0:d.icon())==null?void 0:u[0])||e("span",{class:["icon",(f=(c=s?.componentOptions)==null?void 0:c.propsData)==null?void 0:f.icon]}),$=((h=s?.data)==null?void 0:h.attrs)||{},V=(m=(_=s?.componentOptions)==null?void 0:_.listeners)==null?void 0:m.click,y=(C=(S=(R=(T=(p=s?.componentOptions)==null?void 0:p.children)==null?void 0:T[0])==null?void 0:R.text)==null?void 0:S.trim)==null?void 0:C.call(S),U=((E=(j=s?.componentOptions)==null?void 0:j.propsData)==null?void 0:E.ariaLabel)||y,A=this.forceName?y:"";let z=(M=(I=s?.componentOptions)==null?void 0:I.propsData)==null?void 0:M.title;return this.forceName||z||(z=y),e("NcButton",{class:["action-item action-item--single",(P=s?.data)==null?void 0:P.staticClass,(g=s?.data)==null?void 0:g.class],attrs:{...$,"aria-label":U,title:z},ref:(D=s?.data)==null?void 0:D.ref,props:{type:this.type||(A?"secondary":"tertiary"),disabled:this.disabled||((x=(k=s?.componentOptions)==null?void 0:k.propsData)==null?void 0:x.disabled),ariaHidden:this.ariaHidden,...(L=s?.componentOptions)==null?void 0:L.propsData},on:{focus:this.onFocus,blur:this.onBlur,...!!V&&{click:re=>{V&&V(re)}}}},[e("template",{slot:"icon"},[Z]),A])},o=s=>{var l,d;const u=((l=this.$slots.icon)==null?void 0:l[0])||(this.defaultIcon?e("span",{class:["icon",this.defaultIcon]}):e("DotsHorizontal",{props:{size:20}})),c=()=>i||this.opened?this.opened.toString():null;return e("NcPopover",{ref:"popover",props:{delay:0,handleResize:!0,shown:this.opened,placement:this.placement,boundary:this.boundariesElement,container:this.container,popoverBaseClass:"action-item__popper",setReturnFocus:(d=this.$refs.menuButton)==null?void 0:d.$el},attrs:{delay:0,handleResize:!0,shown:this.opened,placement:this.placement,boundary:this.boundariesElement,container:this.container,...this.manualOpen&&{triggers:[]}},on:{show:this.openMenu,"after-show":this.onOpen,hide:this.closeMenu}},[e("NcButton",{class:"action-item__menutoggle",props:{type:this.triggerBtnType,disabled:this.disabled,ariaHidden:this.ariaHidden},slot:"trigger",ref:"menuButton",attrs:{"aria-haspopup":i?null:"menu","aria-label":this.menuName?null:this.ariaLabel,"aria-controls":this.opened?this.randomId:null,"aria-expanded":c()},on:{focus:this.onFocus,blur:this.onBlur}},[e("template",{slot:"icon"},[u]),this.menuName]),e("div",{class:{open:this.opened},attrs:{tabindex:"-1"},on:{keydown:this.onKeydown,mousemove:this.onMouseFocusAction},ref:"menu"},[e("ul",{attrs:{id:this.randomId,tabindex:"-1",role:i?null:"menu"}},[s])])])};if(t.length===1&&n.length===1&&!this.forceMenu)return r(n[0]);if(this.$nextTick(()=>{this.opened&&this.$refs.menu&&(this.$refs.menu.querySelector("li.active")||[]).length===0&&this.focusFirstAction()}),n.length>0&&this.inline>0){const s=n.slice(0,this.inline),l=t.filter(d=>!s.includes(d));return e("div",{class:["action-items",`action-item--${this.triggerBtnType}`]},[...s.map(r),l.length>0?e("div",{class:["action-item",{"action-item--open":this.opened}]},[o(l)]):null])}return e("div",{class:["action-item action-item--default-popover",`action-item--${this.triggerBtnType}`,{"action-item--open":this.opened}]},[o(t)])}},xy=null,By=null;var Cy=ce(Oy,xy,By,!1,null,"f797c400",null,null);const Du=Cy.exports;const My={name:"NcActionLink",mixins:[yf],props:{href:{type:String,default:"#",required:!0,validator:e=>{try{return new URL(e)}catch{return e.startsWith("#")||e.startsWith("/")}}},download:{type:String,default:null},target:{type:String,default:"_self",validator:e=>e&&(!e.startsWith("_")||["_blank","_self","_parent","_top"].indexOf(e)>-1)},title:{type:String,default:null},ariaHidden:{type:Boolean,default:null}}};var Yy=function(){var e=this,t=e._self._c;return t("li",{staticClass:"action"},[t("a",{staticClass:"action-link focusable",attrs:{download:e.download,href:e.href,"aria-label":e.ariaLabel,target:e.target,title:e.title,rel:"nofollow noreferrer noopener",role:"menuitem"},on:{click:e.onClick}},[e._t("icon",function(){return[t("span",{staticClass:"action-link__icon",class:[e.isIconUrl?"action-link__icon--url":e.icon],style:{backgroundImage:e.isIconUrl?`url(${e.icon})`:null},attrs:{"aria-hidden":e.ariaHidden}})]}),e.name?t("span",{staticClass:"action-link__longtext-wrapper"},[t("strong",{staticClass:"action-link__name"},[e._v(" "+e._s(e.name)+" ")]),t("br"),t("span",{staticClass:"action-link__longtext",domProps:{textContent:e._s(e.text)}})]):e.isLongText?t("span",{staticClass:"action-link__longtext",domProps:{textContent:e._s(e.text)}}):t("span",{staticClass:"action-link__text"},[e._v(e._s(e.text))]),e._e()],2)])},Ly=[],Zy=ce(My,Yy,Ly,!1,null,"979f3026",null,null);const Iy=Zy.exports;function ir(e,t,a){this.r=e,this.g=t,this.b=a}function jy(e,t){const a=new Array(3);return a[0]=(t[1].r-t[0].r)/e,a[1]=(t[1].g-t[0].g)/e,a[2]=(t[1].b-t[0].b)/e,a}function ss(e,t,a){const i=[];i.push(t);const n=jy(e,[t,a]);for(let r=1;r>>32-i},rotr:function(a,i){return a<<32-i|a>>>i},endian:function(a){if(a.constructor==Number)return t.rotl(a,8)&16711935|t.rotl(a,24)&4278255360;for(var i=0;i0;a--)i.push(Math.floor(Math.random()*256));return i},bytesToWords:function(a){for(var i=[],n=0,r=0;n>>5]|=a[n]<<24-r%32;return i},wordsToBytes:function(a){for(var i=[],n=0;n>>5]>>>24-n%32&255);return i},bytesToHex:function(a){for(var i=[],n=0;n>>4).toString(16)),i.push((a[n]&15).toString(16));return i.join("")},hexToBytes:function(a){for(var i=[],n=0;n>>6*(3-o)&63)):i.push("=");return i.join("")},base64ToBytes:function(a){a=a.replace(/[^A-Z0-9+\/]/ig,"");for(var i=[],n=0,r=0;n>>6-r*2);return i}};Xf.exports=t})();var Gy=Xf.exports,ol={utf8:{stringToBytes:function(e){return ol.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(ol.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],a=0;a>>24)&16711935|(s[h]<<24|s[h]>>>8)&4278255360;s[l>>>5]|=128<>>9<<4)+14]=l;for(var _=n._ff,m=n._gg,p=n._hh,T=n._ii,h=0;h>>0,u=u+S>>>0,c=c+C>>>0,f=f+j>>>0}return e.endian([d,u,c,f])};n._ff=function(r,o,s,l,d,u,c){var f=r+(o&s|~o&l)+(d>>>0)+c;return(f<>>32-u)+o},n._gg=function(r,o,s,l,d,u,c){var f=r+(o&l|s&~l)+(d>>>0)+c;return(f<>>32-u)+o},n._hh=function(r,o,s,l,d,u,c){var f=r+(o^s^l)+(d>>>0)+c;return(f<>>32-u)+o},n._ii=function(r,o,s,l,d,u,c){var f=r+(s^(o|~l))+(d>>>0)+c;return(f<>>32-u)+o},n._blocksize=16,n._digestsize=16,Kf.exports=function(r,o){if(r==null)throw new Error("Illegal argument "+r);var s=e.wordsToBytes(n(r,o));return o&&o.asBytes?s:o&&o.asString?i.bytesToString(s):e.bytesToHex(s)}})();var Hy=Kf.exports;const zy=Xa(Hy),u1=function(e){let t=e.toLowerCase();t.match(/^([0-9a-f]{4}-?){8}$/)===null&&(t=zy(t)),t=t.replace(/[^0-9a-f]/g,"");const a=6,i=Py(a);function n(r,o){let s=0;const l=[];for(let d=0;d{for(const a in t)e[a]=t[a];return e},sl="numeric",ll="ascii",ul="alpha",nr="asciinumeric",P0="alphanumeric",dl="domain",tg="emoji",Wy="scheme",Qy="slashscheme",d1="whitespace";function Jy(e,t){return e in t||(t[e]=[]),t[e]}function Ti(e,t,a){t[sl]&&(t[nr]=!0,t[P0]=!0),t[ll]&&(t[nr]=!0,t[ul]=!0),t[nr]&&(t[P0]=!0),t[ul]&&(t[P0]=!0),t[P0]&&(t[dl]=!0),t[tg]&&(t[dl]=!0);for(const i in t){const n=Jy(i,a);n.indexOf(e)<0&&n.push(e)}}function Ky(e,t){const a={};for(const i in t)t[i].indexOf(e)>=0&&(a[i]=!0);return a}function At(e){e===void 0&&(e=null),this.j={},this.jr=[],this.jd=null,this.t=e}At.groups={},At.prototype={accepts(){return!!this.t},go(e){const t=this,a=t.j[e];if(a)return a;for(let i=0;ie.ta(t,a,i,n),wt=(e,t,a,i,n)=>e.tr(t,a,i,n),c1=(e,t,a,i,n)=>e.ts(t,a,i,n),X=(e,t,a,i,n)=>e.tt(t,a,i,n),ha="WORD",cl="UWORD",d0="LOCALHOST",hl="TLD",fl="UTLD",rr="SCHEME",Pi="SLASH_SCHEME",Eu="NUM",ag="WS",bu="NL",$i="OPENBRACE",Un="OPENBRACKET",qn="OPENANGLEBRACKET",Hn="OPENPAREN",_i="CLOSEBRACE",Wi="CLOSEBRACKET",Qi="CLOSEANGLEBRACKET",Fi="CLOSEPAREN",Gr="AMPERSAND",Ur="APOSTROPHE",qr="ASTERISK",Za="AT",Hr="BACKSLASH",zr="BACKTICK",Vr="CARET",Pa="COLON",yu="COMMA",$r="DOLLAR",$t="DOT",Wr="EQUALS",Au="EXCLAMATION",Wt="HYPHEN",Qr="PERCENT",Jr="PIPE",Kr="PLUS",Xr="POUND",eo="QUERY",Su="QUOTE",ku="SEMI",Qt="SLASH",zn="TILDE",to="UNDERSCORE",ig="EMOJI",ao="SYM";var ng=Object.freeze({__proto__:null,WORD:ha,UWORD:cl,LOCALHOST:d0,TLD:hl,UTLD:fl,SCHEME:rr,SLASH_SCHEME:Pi,NUM:Eu,WS:ag,NL:bu,OPENBRACE:$i,OPENBRACKET:Un,OPENANGLEBRACKET:qn,OPENPAREN:Hn,CLOSEBRACE:_i,CLOSEBRACKET:Wi,CLOSEANGLEBRACKET:Qi,CLOSEPAREN:Fi,AMPERSAND:Gr,APOSTROPHE:Ur,ASTERISK:qr,AT:Za,BACKSLASH:Hr,BACKTICK:zr,CARET:Vr,COLON:Pa,COMMA:yu,DOLLAR:$r,DOT:$t,EQUALS:Wr,EXCLAMATION:Au,HYPHEN:Wt,PERCENT:Qr,PIPE:Jr,PLUS:Kr,POUND:Xr,QUERY:eo,QUOTE:Su,SEMI:ku,SLASH:Qt,TILDE:zn,UNDERSCORE:to,EMOJI:ig,SYM:ao});const Mi=/[a-z]/,ls=/\p{L}/u,us=/\p{Emoji}/u,ds=/\d/,h1=/\s/,f1=` -`,Xy="️",e4="‍";let G0=null,U0=null;function t4(e){e===void 0&&(e=[]);const t={};At.groups=t;const a=new At;G0==null&&(G0=g1(Vy)),U0==null&&(U0=g1($y)),X(a,"'",Ur),X(a,"{",$i),X(a,"[",Un),X(a,"<",qn),X(a,"(",Hn),X(a,"}",_i),X(a,"]",Wi),X(a,">",Qi),X(a,")",Fi),X(a,"&",Gr),X(a,"*",qr),X(a,"@",Za),X(a,"`",zr),X(a,"^",Vr),X(a,":",Pa),X(a,",",yu),X(a,"$",$r),X(a,".",$t),X(a,"=",Wr),X(a,"!",Au),X(a,"-",Wt),X(a,"%",Qr),X(a,"|",Jr),X(a,"+",Kr),X(a,"#",Xr),X(a,"?",eo),X(a,'"',Su),X(a,"/",Qt),X(a,";",ku),X(a,"~",zn),X(a,"_",to),X(a,"\\",Hr);const i=wt(a,ds,Eu,{[sl]:!0});wt(i,ds,i);const n=wt(a,Mi,ha,{[ll]:!0});wt(n,Mi,n);const r=wt(a,ls,cl,{[ul]:!0});wt(r,Mi),wt(r,ls,r);const o=wt(a,h1,ag,{[d1]:!0});X(a,f1,bu,{[d1]:!0}),X(o,f1),wt(o,h1,o);const s=wt(a,us,ig,{[tg]:!0});wt(s,us,s),X(s,Xy,s);const l=X(s,e4);wt(l,us,s);const d=[[Mi,n]],u=[[Mi,null],[ls,r]];for(let c=0;cc[0]>f[0]?1:-1);for(let c=0;c=0?h[dl]=!0:Mi.test(f)?ds.test(f)?h[nr]=!0:h[ll]=!0:h[sl]=!0,c1(a,f,f,h)}return c1(a,"localhost",d0,{ascii:!0}),a.jd=new At(ao),{start:a,tokens:fn({groups:t},ng)}}function a4(e,t){const a=i4(t.replace(/[A-Z]/g,s=>s.toLowerCase())),i=a.length,n=[];let r=0,o=0;for(;o=0&&(c+=a[o].length,f++),d+=a[o].length,r+=a[o].length,o++;r-=c,o-=f,d-=c,n.push({t:u.t,v:t.slice(r-d,r),s:r-d,e:r})}return n}function i4(e){const t=[],a=e.length;let i=0;for(;i56319||i+1===a||(r=e.charCodeAt(i+1))<56320||r>57343?e[i]:e.slice(i,i+2);t.push(o),i+=o.length}return t}function xa(e,t,a,i,n){let r;const o=t.length;for(let s=0;s=0;)r++;if(r>0){t.push(a.join(""));for(let o=parseInt(e.substring(i,i+r),10);o>0;o--)a.pop();i+=r}else a.push(e[i]),i++}return t}const c0={defaultProtocol:"http",events:null,format:_1,formatHref:_1,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function vu(e,t){t===void 0&&(t=null);let a=fn({},c0);e&&(a=fn(a,e instanceof vu?e.o:e));const i=a.ignoreTags,n=[];for(let r=0;ra?i.substring(0,a)+"…":i},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e){return e===void 0&&(e=c0.defaultProtocol),{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){const t=this,a=this.toHref(e.get("defaultProtocol")),i=e.get("formatHref",a,this),n=e.get("tagName",a,t),r=this.toFormattedString(e),o={},s=e.get("className",a,t),l=e.get("target",a,t),d=e.get("rel",a,t),u=e.getObj("attributes",a,t),c=e.getObj("events",a,t);return o.href=i,s&&(o.class=s),l&&(o.target=l),d&&(o.rel=d),u&&fn(o,u),{tagName:n,attributes:o,content:r,eventListeners:c}}};function Oo(e,t){class a extends rg{constructor(n,r){super(n,r),this.t=e}}for(const i in t)a.prototype[i]=t[i];return a.t=e,a}const F1=Oo("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),m1=Oo("text"),n4=Oo("nl"),di=Oo("url",{isLink:!0,toHref(e){return e===void 0&&(e=c0.defaultProtocol),this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){const e=this.tk;return e.length>=2&&e[0].t!==d0&&e[1].t===Pa}}),at=e=>new At(e);function r4(e){let{groups:t}=e;const a=t.domain.concat([Gr,qr,Za,Hr,zr,Vr,$r,Wr,Wt,Eu,Qr,Jr,Kr,Xr,Qt,ao,zn,to]),i=[Ur,Qi,_i,Wi,Fi,Pa,yu,$t,Au,qn,$i,Un,Hn,eo,Su,ku],n=[Gr,Ur,qr,Hr,zr,Vr,_i,$r,Wr,Wt,$i,Qr,Jr,Kr,Xr,eo,Qt,ao,zn,to],r=at(),o=X(r,zn);he(o,n,o),he(o,t.domain,o);const s=at(),l=at(),d=at();he(r,t.domain,s),he(r,t.scheme,l),he(r,t.slashscheme,d),he(s,n,o),he(s,t.domain,s);const u=X(s,Za);X(o,Za,u),X(l,Za,u),X(d,Za,u);const c=X(o,$t);he(c,n,o),he(c,t.domain,o);const f=at();he(u,t.domain,f),he(f,t.domain,f);const h=X(f,$t);he(h,t.domain,f);const _=at(F1);he(h,t.tld,_),he(h,t.utld,_),X(u,d0,_);const m=X(f,Wt);he(m,t.domain,f),he(_,t.domain,f),X(_,$t,h),X(_,Wt,m);const p=X(_,Pa);he(p,t.numeric,F1);const T=X(s,Wt),R=X(s,$t);he(T,t.domain,s),he(R,n,o),he(R,t.domain,s);const S=at(di);he(R,t.tld,S),he(R,t.utld,S),he(S,t.domain,s),he(S,n,o),X(S,$t,R),X(S,Wt,T),X(S,Za,u);const C=X(S,Pa),j=at(di);he(C,t.numeric,j);const E=at(di),I=at();he(E,a,E),he(E,i,I),he(I,a,E),he(I,i,I),X(S,Qt,E),X(j,Qt,E);const M=X(l,Pa),P=X(d,Pa),g=X(P,Qt),D=X(g,Qt);he(l,t.domain,s),X(l,$t,R),X(l,Wt,T),he(d,t.domain,s),X(d,$t,R),X(d,Wt,T),he(M,t.domain,E),X(M,Qt,E),he(D,t.domain,E),he(D,a,E),X(D,Qt,E);const k=X(E,$i),x=X(E,Un),L=X(E,qn),Z=X(E,Hn);X(I,$i,k),X(I,Un,x),X(I,qn,L),X(I,Hn,Z),X(k,_i,E),X(x,Wi,E),X(L,Qi,E),X(Z,Fi,E),X(k,_i,E);const $=at(di),V=at(di),y=at(di),U=at(di);he(k,a,$),he(x,a,V),he(L,a,y),he(Z,a,U);const A=at(),z=at(),re=at(),O=at();return he(k,i),he(x,i),he(L,i),he(Z,i),he($,a,$),he(V,a,V),he(y,a,y),he(U,a,U),he($,i,$),he(V,i,V),he(y,i,y),he(U,i,U),he(A,a,A),he(z,a,V),he(re,a,y),he(O,a,U),he(A,i,A),he(z,i,z),he(re,i,re),he(O,i,O),X(V,Wi,E),X(y,Qi,E),X(U,Fi,E),X($,_i,E),X(z,Wi,E),X(re,Qi,E),X(O,Fi,E),X(A,Fi,E),X(r,d0,S),X(r,bu,n4),{start:r,tokens:ng}}function o4(e,t,a){let i=a.length,n=0,r=[],o=[];for(;n=0&&f++,n++,u++;if(f<0)n-=u,n0&&(r.push(cs(m1,t,o)),o=[]),n-=f,u-=f;const h=c.t,_=a.slice(n-u,n);r.push(cs(h,t,_))}}return o.length>0&&r.push(cs(m1,t,o)),r}function cs(e,t,a){const i=a[0].s,n=a[a.length-1].e,r=t.slice(i,n);return new e(r,a)}const ft={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function s4(){ft.scanner=t4(ft.customSchemes);for(let e=0;e/g,">")}function u4(e){return e.replace(/"/g,""")}function d4(e){const t=[];for(const a in e){let i=e[a]+"";t.push(`${a}="${u4(i)}"`)}return t.join(" ")}function c4(e){let{tagName:t,attributes:a,content:i}=e;return`<${t} ${d4(a)}>${og(i)}`}function h4(e,t){t===void 0&&(t={}),t=new vu(t,c4);const a=l4(e),i=[];for(let n=0;n -`):!r.isLink||!t.check(r)?i.push(og(r.toString())):i.push(t.render(r))}return i.join("")}String.prototype.linkify||Object.defineProperty(String.prototype,"linkify",{writable:!1,value:function(e){return h4(this,e)}});var sg={exports:{}};(function(e){(function(t){if(typeof a!="function"){var a=function(_){return _};a.nonNative=!0}const i=a("plaintext"),n=a("html"),r=a("comment"),o=/<(\w*)>/g,s=/<\/?([^\s\/>]+)/;function l(_,m,p){_=_||"",m=m||[],p=p||"";let T=u(m,p);return c(_,T)}function d(_,m){_=_||[],m=m||"";let p=u(_,m);return function(T){return c(T||"",p)}}l.init_streaming_mode=d;function u(_,m){return _=f(_),{allowable_tags:_,tag_replacement:m,state:i,tag_buffer:"",depth:0,in_quote_char:""}}function c(_,m){if(typeof _!="string")throw new TypeError("'html' parameter must be a string");let p=m.allowable_tags,T=m.tag_replacement,R=m.state,S=m.tag_buffer,C=m.depth,j=m.in_quote_char,E="";for(let I=0,M=_.length;I":if(j)break;if(C){C--;break}j="",R=i,S+=">",p.has(h(S))?E+=S:E+=T,S="";break;case'"':case"'":P===j?j="":j=j||P,S+=P;break;case"-":S==="":S.slice(-2)=="--"&&(R=i),S="";break;default:S+=P;break}}return m.state=R,m.tag_buffer=S,m.depth=C,m.in_quote_char=j,E}function f(_){let m=new Set;if(typeof _=="string"){let p;for(;p=o.exec(_);)m.add(p[1])}else!a.nonNative&&typeof _[a.iterator]=="function"?m=new Set(_):typeof _.forEach=="function"&&_.forEach(m.add,m);return m}function h(_){let m=s.exec(_);return m?m[1].toLowerCase():null}e.exports?e.exports=l:t.striptags=l})(Ia)})(sg);var f4=sg.exports;const jM=Xa(f4);var lg={};const g4=Ml(K_);Object.defineProperty(lg,"__esModule",{value:!0});var _4=lg.getCapabilities=m4,F4=g4;function m4(){try{return(0,F4.loadState)("core","capabilities")}catch{return console.debug("Could not find capabilities initial state fall back to _oc_capabilities"),"_oc_capabilities"in window?window._oc_capabilities:{}}}Aa.util.warn;function Bn(e){var t;const a=nt(e);return(t=a?.$el)!=null?t:a}const ug=uu?window:void 0;function or(...e){let t,a,i,n;if(typeof e[0]=="string"||Array.isArray(e[0])?([a,i,n]=e,t=ug):[t,a,i,n]=e,!t)return ct;Array.isArray(a)||(a=[a]),Array.isArray(i)||(i=[i]);const r=[],o=()=>{r.forEach(u=>u()),r.length=0},s=(u,c,f,h)=>(u.addEventListener(c,f,h),()=>u.removeEventListener(c,f,h)),l=ei(()=>[Bn(t),nt(n)],([u,c])=>{if(o(),!u)return;const f=gf(c)?{...c}:c;r.push(...a.flatMap(h=>i.map(_=>s(u,h,_,f))))},{immediate:!0,flush:"post"}),d=()=>{l(),o()};return E0(d),d}let p1=!1;function T1(e,t,a={}){const{window:i=ug,ignore:n=[],capture:r=!0,detectIframe:o=!1}=a;if(!i)return;tl&&!p1&&(p1=!0,Array.from(i.document.body.children).forEach(u=>u.addEventListener("click",ct)),i.document.documentElement.addEventListener("click",ct));let s=!0;const l=u=>n.some(c=>{if(typeof c=="string")return Array.from(i.document.querySelectorAll(c)).some(f=>f===u.target||u.composedPath().includes(f));{const f=Bn(c);return f&&(u.target===f||u.composedPath().includes(f))}}),d=[or(i,"click",u=>{const c=Bn(e);if(!(!c||c===u.target||u.composedPath().includes(c))){if(u.detail===0&&(s=!l(u)),!s){s=!0;return}t(u)}},{passive:!0,capture:r}),or(i,"pointerdown",u=>{const c=Bn(e);c&&(s=!u.composedPath().includes(c)&&!l(u))},{passive:!0}),o&&or(i,"blur",u=>{setTimeout(()=>{var c;const f=Bn(e);((c=i.document.activeElement)==null?void 0:c.tagName)==="IFRAME"&&!f?.contains(i.document.activeElement)&&t(u)},0)})].filter(Boolean);return()=>d.forEach(u=>u())}const dg={[Ud.mounted](e,t){const a=!t.modifiers.bubble;if(typeof t.value=="function")e.__onClickOutside_stop=T1(e,t.value,{capture:a});else{const[i,n]=t.value;e.__onClickOutside_stop=T1(e,i,Object.assign({capture:a},n))}},[Ud.unmounted](e){e.__onClickOutside_stop()}};function hs(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function cg(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth1?!0:(t.preventDefault&&t.preventDefault(),!1)}function T4(e,t=!1){const a=gt(t);let i=null,n;ei(vD(e),s=>{const l=hs(nt(s));if(l){const d=l;n=d.style.overflow,a.value&&(d.style.overflow="hidden")}},{immediate:!0});const r=()=>{const s=hs(nt(e));!s||a.value||(tl&&(i=or(s,"touchmove",l=>{p4(l)},{passive:!1})),s.style.overflow="hidden",a.value=!0)},o=()=>{const s=hs(nt(e));!s||!a.value||(tl&&i?.(),s.style.overflow=n,a.value=!1)};return E0(o),st({get(){return a.value},set(s){s?r():o()}})}function D4(){let e=!1;const t=gt(!1);return(a,i)=>{if(t.value=i.value,e)return;e=!0;const n=T4(a,i.value);ei(t,r=>n.value=r)}}D4();const hg={data(){return{hasStatus:!1,userStatus:{status:null,message:null,icon:null}}},methods:{async fetchUserStatus(e){var t,a;if(!e)return;const i=_4();if(!(!Object.prototype.hasOwnProperty.call(i,"user_status")||!i.user_status.enabled)&&Ys())try{const{data:n}=await $a.get(Va("apps/user_status/api/v1/statuses/{userId}",{userId:e})),{status:r,message:o,icon:s}=n.ocs.data;this.userStatus.status=r,this.userStatus.message=o||"",this.userStatus.icon=s||"",this.hasStatus=!0}catch(n){if(n.response.status===404&&((a=(t=n.response.data.ocs)==null?void 0:t.data)==null?void 0:a.length)===0)return;console.error(n)}}}},fg=cf("nextcloud").persist().build();function E4(e){const t=fg.getItem("user-has-avatar."+e);return typeof t=="string"?!!t:null}function D1(e,t){e&&fg.setItem("user-has-avatar."+e,t)}const b4={name:"NcAvatar",directives:{ClickOutside:dg},components:{DotsHorizontal:Tu,NcActions:Du,NcActionLink:Iy,NcButton:ai,NcLoadingIcon:Ll},mixins:[hg],props:{url:{type:String,default:void 0},iconClass:{type:String,default:void 0},user:{type:String,default:void 0},showUserStatus:{type:Boolean,default:!0},showUserStatusCompact:{type:Boolean,default:!0},preloadedUserStatus:{type:Object,default:void 0},isGuest:{type:Boolean,default:!1},displayName:{type:String,default:void 0},size:{type:Number,default:32},allowPlaceholder:{type:Boolean,default:!0},disableTooltip:{type:Boolean,default:!1},disableMenu:{type:Boolean,default:!1},tooltipMessage:{type:String,default:null},isNoUser:{type:Boolean,default:!1},menuContainer:{type:[String,Object,Element,Boolean],default:"body"}},data(){return{avatarUrlLoaded:null,avatarSrcSetLoaded:null,userDoesNotExist:!1,isAvatarLoaded:!1,isMenuLoaded:!1,contactsMenuLoading:!1,contactsMenuActions:[],contactsMenuOpenState:!1}},computed:{avatarAriaLabel(){var e,t;if(this.hasMenu)return this.canDisplayUserStatus||this.showUserStatusIconOnAvatar?ie("Avatar of {displayName}, {status}",{displayName:(e=this.displayName)!=null?e:this.user,status:this.userStatusText}):ie("Avatar of {displayName}",{displayName:(t=this.displayName)!=null?t:this.user})},userStatusText(){switch(this.userStatus.status){case"away":return ie("away");case"dnd":return ie("do not disturb");case"online":return ie("online");case"offline":return ie("offline");default:return this.userStatus.status}},userStatusRole(){return this.hasMenu?void 0:{role:"img","aria-label":ie("User status: {status}",{status:this.userStatusText})}},canDisplayUserStatus(){return this.showUserStatus&&this.hasStatus&&["online","away","dnd"].includes(this.userStatus.status)},showUserStatusIconOnAvatar(){return this.showUserStatus&&this.showUserStatusCompact&&this.hasStatus&&this.userStatus.status!=="dnd"&&this.userStatus.icon},userIdentifier(){return this.isDisplayNameDefined?this.displayName:this.isUserDefined?this.user:""},isUserDefined(){return typeof this.user<"u"},isDisplayNameDefined(){return typeof this.displayName<"u"},isUrlDefined(){return typeof this.url<"u"},hasMenu(){var e;return this.disableMenu?!1:this.isMenuLoaded?this.menu.length>0:!(this.user===((e=Ys())==null?void 0:e.uid)||this.userDoesNotExist||this.url)},showInitials(){return this.allowPlaceholder&&this.userDoesNotExist&&!(this.iconClass||this.$slots.icon)},avatarStyle(){return{"--size":this.size+"px",lineHeight:this.size+"px",fontSize:Math.round(this.size*.45)+"px"}},initialsWrapperStyle(){const{r:e,g:t,b:a}=u1(this.userIdentifier);return{backgroundColor:`rgba(${e}, ${t}, ${a}, 0.1)`}},initialsStyle(){const{r:e,g:t,b:a}=u1(this.userIdentifier);return{color:`rgb(${e}, ${t}, ${a})`}},tooltip(){return this.disableTooltip?!1:this.tooltipMessage?this.tooltipMessage:this.displayName},initials(){let e="?";if(this.showInitials){const t=this.userIdentifier.trim();if(t==="")return"?";const a=t.match(/[\p{L}\p{N}\s]/gu).join(""),i=a.lastIndexOf(" ");e=String.fromCodePoint(a.codePointAt(0)),i!==-1&&(e=e.concat(String.fromCodePoint(a.codePointAt(i+1))))}return e.toLocaleUpperCase()},menu(){const e=this.contactsMenuActions.map(a=>({href:a.hyperlink,icon:a.icon,text:a.title}));function t(a){const i=document.createTextNode(a),n=document.createElement("p");return n.appendChild(i),n.innerHTML}return this.showUserStatus&&(this.userStatus.icon||this.userStatus.message)?[{href:"#",icon:`data:image/svg+xml;utf8,${t(this.userStatus.icon)}`,text:`${this.userStatus.message}`}].concat(e):e}},watch:{url(){this.userDoesNotExist=!1,this.loadAvatarUrl()},user(){this.userDoesNotExist=!1,this.isMenuLoaded=!1,this.loadAvatarUrl()}},mounted(){this.loadAvatarUrl(),zo("settings:avatar:updated",this.loadAvatarUrl),zo("settings:display-name:updated",this.loadAvatarUrl),this.showUserStatus&&this.user&&!this.isNoUser&&(this.preloadedUserStatus?(this.userStatus.status=this.preloadedUserStatus.status||"",this.userStatus.message=this.preloadedUserStatus.message||"",this.userStatus.icon=this.preloadedUserStatus.icon||"",this.hasStatus=this.preloadedUserStatus.status!==null):this.fetchUserStatus(this.user),zo("user_status:status.updated",this.handleUserStatusUpdated))},beforeDestroy(){Vo("settings:avatar:updated",this.loadAvatarUrl),Vo("settings:display-name:updated",this.loadAvatarUrl),this.showUserStatus&&this.user&&!this.isNoUser&&Vo("user_status:status.updated",this.handleUserStatusUpdated)},methods:{t:ie,handleUserStatusUpdated(e){this.user===e.userId&&(this.userStatus={status:e.status,icon:e.icon,message:e.message})},async toggleMenu(e){e.type==="keydown"&&e.key!=="Enter"||(this.contactsMenuOpenState||await this.fetchContactsMenu(),this.contactsMenuOpenState=!this.contactsMenuOpenState)},closeMenu(){this.contactsMenuOpenState=!1},async fetchContactsMenu(){this.contactsMenuLoading=!0;try{const e=encodeURIComponent(this.user),{data:t}=await $a.post(gr("contactsmenu/findOne"),`shareType=0&shareWith=${e}`);this.contactsMenuActions=t.topAction?[t.topAction].concat(t.actions):t.actions}catch{this.contactsMenuOpenState=!1}this.contactsMenuLoading=!1,this.isMenuLoaded=!0},loadAvatarUrl(){if(this.isAvatarLoaded=!1,!this.isUrlDefined&&(!this.isUserDefined||this.isNoUser)){this.isAvatarLoaded=!0,this.userDoesNotExist=!0;return}if(this.isUrlDefined){this.updateImageIfValid(this.url);return}if(this.size<=64){const e=this.avatarUrlGenerator(this.user,64),t=[e+" 1x",this.avatarUrlGenerator(this.user,512)+" 8x"].join(", ");this.updateImageIfValid(e,t)}else{const e=this.avatarUrlGenerator(this.user,512);this.updateImageIfValid(e)}},avatarUrlGenerator(e,t){var a;const i=window.getComputedStyle(document.body).getPropertyValue("--background-invert-if-dark")==="invert(100%)";let n="/avatar/{user}/{size}"+(i?"/dark":"");this.isGuest&&(n="/avatar/guest/{user}/{size}"+(i?"/dark":""));let r=gr(n,{user:e,size:t});return e===((a=Ys())==null?void 0:a.uid)&&typeof oc_userconfig<"u"&&(r+="?v="+oc_userconfig.avatar.version),r},updateImageIfValid(e,t=null){const a=E4(this.user);if(this.isUserDefined&&typeof a=="boolean"){this.isAvatarLoaded=!0,this.avatarUrlLoaded=e,t&&(this.avatarSrcSetLoaded=t),a===!1&&(this.userDoesNotExist=!0);return}const i=new Image;i.onload=()=>{this.avatarUrlLoaded=e,t&&(this.avatarSrcSetLoaded=t),this.isAvatarLoaded=!0,D1(this.user,!0)},i.onerror=()=>{console.debug("Invalid avatar url",e),this.avatarUrlLoaded=null,this.avatarSrcSetLoaded=null,this.userDoesNotExist=!0,this.isAvatarLoaded=!1,D1(this.user,!1)},t&&(i.srcset=t),i.src=e}}};var y4=function(){var e=this,t=e._self._c;return t("span",e._g({directives:[{name:"click-outside",rawName:"v-click-outside",value:e.closeMenu,expression:"closeMenu"}],ref:"main",staticClass:"avatardiv popovermenu-wrapper",class:{"avatardiv--unknown":e.userDoesNotExist,"avatardiv--with-menu":e.hasMenu,"avatardiv--with-menu-loading":e.contactsMenuLoading},style:e.avatarStyle,attrs:{title:e.tooltip,tabindex:e.hasMenu?"0":void 0,"aria-label":e.avatarAriaLabel,role:e.hasMenu?"button":void 0}},e.hasMenu?{click:e.toggleMenu,keydown:e.toggleMenu}:null),[e._t("icon",function(){return[e.iconClass?t("span",{staticClass:"avatar-class-icon",class:e.iconClass}):e.isAvatarLoaded&&!e.userDoesNotExist?t("img",{attrs:{src:e.avatarUrlLoaded,srcset:e.avatarSrcSetLoaded,alt:""}}):e._e()]}),e.hasMenu&&!e.menu.length?t("NcButton",{staticClass:"action-item action-item__menutoggle",attrs:{"aria-label":e.t("Open contact menu"),type:"tertiary-no-background"},scopedSlots:e._u([{key:"icon",fn:function(){return[e.contactsMenuLoading?t("NcLoadingIcon"):t("DotsHorizontal",{attrs:{size:20}})]},proxy:!0}],null,!1,2617833509)}):e.hasMenu?t("NcActions",{attrs:{"force-menu":"","manual-open":"",type:"tertiary-no-background",container:e.menuContainer,open:e.contactsMenuOpenState},scopedSlots:e._u([e.contactsMenuLoading?{key:"icon",fn:function(){return[t("NcLoadingIcon")]},proxy:!0}:null],null,!0)},e._l(e.menu,function(a,i){return t("NcActionLink",{key:i,attrs:{href:a.href,icon:a.icon}},[e._v(" "+e._s(a.text)+" ")])}),1):e._e(),e.showUserStatusIconOnAvatar?t("span",{staticClass:"avatardiv__user-status avatardiv__user-status--icon"},[e._v(" "+e._s(e.userStatus.icon)+" ")]):e.canDisplayUserStatus?t("span",e._b({staticClass:"avatardiv__user-status",class:"avatardiv__user-status--"+e.userStatus.status},"span",e.userStatusRole,!1)):e._e(),e.showInitials?t("span",{staticClass:"avatardiv__initials-wrapper",style:e.initialsWrapperStyle},[t("span",{staticClass:"avatardiv__initials",style:e.initialsStyle},[e._v(" "+e._s(e.initials)+" ")])]):e._e()],2)},A4=[],S4=ce(b4,y4,A4,!1,null,"b9bda6c2",null,null);const xo=S4.exports,k4=8,E1=32,v4={name:"NcListItemIcon",components:{NcAvatar:xo,NcHighlight:wo,NcIconSvgWrapper:Ef},mixins:[hg],props:{name:{type:String,required:!0},subname:{type:String,default:""},icon:{type:String,default:""},iconSvg:{type:String,default:""},iconName:{type:String,default:""},search:{type:String,default:""},avatarSize:{type:Number,default:E1},noMargin:{type:Boolean,default:!1},displayName:{type:String,default:null},isNoUser:{type:Boolean,default:!1},id:{type:String,default:null}},data(){return{margin:k4}},computed:{hasIcon(){return this.icon!==""},hasIconSvg(){return this.iconSvg!==""},isValidSubname(){var e,t;return((t=(e=this.subname)==null?void 0:e.trim)==null?void 0:t.call(e))!==""},isSizeBigEnough(){return this.avatarSize>=E1},cssVars(){const e=this.noMargin?0:this.margin;return{"--height":this.avatarSize+2*e+"px","--margin":this.margin+"px"}},searchParts(){const e=/^([^<]*)<([^>]+)>?$/,t=this.search.match(e);return this.isNoUser||!t?[this.search,this.search]:[t[1].trim(),t[2]]}},beforeMount(){!this.isNoUser&&!this.subname&&this.fetchUserStatus(this.user)}};var R4=function(){var e=this,t=e._self._c;return t("span",e._g({staticClass:"option",style:e.cssVars,attrs:{id:e.id}},e.$listeners),[t("NcAvatar",e._b({staticClass:"option__avatar",attrs:{"disable-menu":!0,"disable-tooltip":!0,"display-name":e.displayName||e.name,"is-no-user":e.isNoUser,size:e.avatarSize}},"NcAvatar",e.$attrs,!1)),t("div",{staticClass:"option__details"},[t("NcHighlight",{staticClass:"option__lineone",attrs:{text:e.name,search:e.searchParts[0]}}),e.isValidSubname&&e.isSizeBigEnough?t("NcHighlight",{staticClass:"option__linetwo",attrs:{text:e.subname,search:e.searchParts[1]}}):e.hasStatus?t("span",[t("span",[e._v(e._s(e.userStatus.icon))]),t("span",[e._v(e._s(e.userStatus.message))])]):e._e()],1),e._t("default",function(){return[e.hasIconSvg?t("NcIconSvgWrapper",{staticClass:"option__icon",attrs:{svg:e.iconSvg,name:e.iconName}}):e.hasIcon?t("span",{staticClass:"icon option__icon",class:e.icon,attrs:{"aria-label":e.iconName}}):e._e()]})],2)},N4=[],w4=ce(v4,R4,N4,!1,null,"562c32c6",null,null);const O4=w4.exports,x4={name:"NcSelect",components:{ChevronDown:Zb,NcEllipsisedOption:Jb,NcListItemIcon:O4,NcLoadingIcon:Ll,VueSelect:Z0.VueSelect},mixins:[so],props:{...Z0.VueSelect.props,ariaLabelClearSelected:{type:String,default:ie("Clear selected")},ariaLabelCombobox:{type:String,default:ie("Search for options")},ariaLabelDeselectOption:{type:Function,default:e=>ie("Deselect {option}",{option:e})},appendToBody:{type:Boolean,default:!0},calculatePosition:{type:Function,default:null},closeOnSelect:{type:Boolean,default:!0},components:{type:Object,default:()=>({Deselect:{render:e=>e(No,{props:{size:20,fillColor:"var(--vs-controls-color)"},style:{cursor:"pointer"}})}})},limit:{type:Number,default:null},disabled:{type:Boolean,default:!1},dropdownShouldOpen:{type:Function,default:({noDrop:e,open:t})=>e?!1:t},filterBy:{type:Function,default:null},inputClass:{type:[String,Object],default:null},inputId:{type:String,default:null},keyboardFocusBorder:{type:Boolean,default:!0},label:{type:String,default:null},loading:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},noWrap:{type:Boolean,default:!1},options:{type:Array,default:()=>[]},placeholder:{type:String,default:""},mapKeydown:{type:Function,default(e,t){return{...e,27:a=>{t.open&&a.stopPropagation(),e[27](a)}}}},uid:{type:String,default:()=>"-"+g0()},placement:{type:String,default:"bottom"},resetFocusOnOptionsChange:{type:Boolean,default:!0},userSelect:{type:Boolean,default:!1},value:{type:[String,Number,Object,Array],default:null}," ":{}},emits:[" "],data(){return{search:""}},computed:{localCalculatePosition(){return this.calculatePosition!==null?this.calculatePosition:(e,t,{width:a})=>{e.style.width=a;const i={name:"addClass",fn(o){return e.classList.add("vs__dropdown-menu--floating"),{}}},n={name:"togglePlacementClass",fn({placement:o}){return t.$el.classList.toggle("select--drop-up",o==="top"),e.classList.toggle("vs__dropdown-menu--floating-placement-top",o==="top"),{}}},r=()=>{Bb(t.$refs.toggle,e,{placement:this.placement,middleware:[hb(-1),i,n,db(),fb({limiter:gb()})]}).then(({x:o,y:s})=>{Object.assign(e.style,{left:`${o}px`,top:`${s}px`})})};return xb(t.$refs.toggle,e,r)}},localFilterBy(){const e=/[^<]*<([^>]+)/;return this.filterBy!==null?this.filterBy:this.userSelect?(t,a,i)=>{var n,r,o;const s=i.match(e);return s&&((o=(r=(n=t.subname)==null?void 0:n.toLocaleLowerCase)==null?void 0:r.call(n))==null?void 0:o.indexOf(s[1].toLocaleLowerCase()))>-1||`${a} ${t.subname}`.toLocaleLowerCase().indexOf(i.toLocaleLowerCase())>-1}:Z0.VueSelect.props.filterBy.default},localLabel(){return this.label!==null?this.label:this.userSelect?"displayName":Z0.VueSelect.props.label.default},propsToForward(){const{inputClass:e,noWrap:t,placement:a,userSelect:i,...n}=this.$props;return{...n,calculatePosition:this.localCalculatePosition,filterBy:this.localFilterBy,label:this.localLabel}}}};var B4=function(){var e=this,t=e._self._c;return t("VueSelect",e._g(e._b({staticClass:"select",class:{"select--no-wrap":e.noWrap,"user-select":e.userSelect},on:{search:a=>e.search=a},scopedSlots:e._u([{key:"search",fn:function({attributes:a,events:i}){return[t("input",e._g(e._b({class:["vs__search",e.inputClass]},"input",a,!1),i))]}},{key:"open-indicator",fn:function({attributes:a}){return[t("ChevronDown",e._b({attrs:{"fill-color":"var(--vs-controls-color)",size:26}},"ChevronDown",a,!1))]}},{key:"option",fn:function(a){return[e.userSelect?t("NcListItemIcon",e._b({attrs:{"avatar-size":24,name:a[e.localLabel],search:e.search}},"NcListItemIcon",a,!1)):t("NcEllipsisedOption",{attrs:{name:String(a[e.localLabel]),search:e.search}})]}},{key:"selected-option",fn:function(a){return[e.userSelect?t("NcListItemIcon",e._b({attrs:{"avatar-size":24,name:a[e.localLabel],search:e.search}},"NcListItemIcon",a,!1)):t("NcEllipsisedOption",{attrs:{name:String(a[e.localLabel]),search:e.search}})]}},{key:"spinner",fn:function(a){return[a.loading?t("NcLoadingIcon"):e._e()]}},{key:"no-options",fn:function(){return[e._v(" "+e._s(e.t("No results"))+" ")]},proxy:!0},e._l(e.$scopedSlots,function(a,i){return{key:i,fn:function(n){return[e._t(i,null,null,n)]}}})],null,!0)},"VueSelect",e.propsToForward,!1),e.$listeners))},C4=[],M4=ce(x4,B4,C4,!1,null,null,null,null);const Bo=M4.exports;function Y4(e=[],t=[]){const a={},i=[];for(const n of e){const r=n.split("/");let[o,s]=[r.shift(),r.join("/")];s||(s=o,o=ie("Global")),a[o]=a[o]||{continent:o,regions:[]},a[o].regions.push({label:gg(s),cities:[],timezoneId:n})}for(const n of t){const{continent:r,label:o,timezoneId:s}=n;a[r]=a[r]||{continent:r,regions:[]},a[r].regions.push({label:o,cities:[],timezoneId:s})}for(const n in a)Object.prototype.hasOwnProperty.call(a,n)&&(a[n].regions.sort((r,o)=>r.labeln.continent=20)return console.error("TimezoneManager.getTimezoneForIdRec() exceeds recursion limits"),null;if(this._aliases.has(t)){const i=this._aliases.get(t);return this._getTimezoneForIdRec(i,a+1)}return null}hasTimezoneForId(t){return this._timezones.has(t)||this._aliases.has(t)}isAlias(t){return!this._timezones.has(t)&&this._aliases.has(t)}listAllTimezones(t=!1){const a=Array.from(this._timezones.keys());return t?a.concat(Array.from(this._aliases.keys())):a}registerTimezone(t){this._timezones.set(t.timezoneId,t)}registerDefaultTimezones(){console.debug(`@nextcloud/calendar-js app is using version ${di.version} of the timezone database`);for(const t in di.zones)if(Object.prototype.hasOwnProperty.call(di.zones,[t])){const a=["BEGIN:VTIMEZONE","TZID:"+t,...di.zones[t].ics,"END:VTIMEZONE"].join(`\r +`);this.registerTimezoneFromICS(t,a)}for(const t in di.aliases)Object.prototype.hasOwnProperty.call(di.aliases,[t])&&this.registerAlias(t,di.aliases[t].aliasTo)}registerTimezoneFromICS(t,a){const i=new kt(t,a);this.registerTimezone(i)}registerAlias(t,a){this._aliases.set(t,a)}unregisterTimezones(t){this._timezones.delete(t)}unregisterAlias(t){this._aliases.delete(t)}clearAllTimezones(){this._aliases=new Map,this._timezones=new Map,Qi.registerTimezone(kt.utc),Qi.registerTimezone(kt.floating),Qi.registerAlias("GMT",kt.utc.timezoneId),Qi.registerAlias("Z",kt.utc.timezoneId)}}const Qi=new H9;Qi.clearAllTimezones();function u_(){return Qi}class _c{constructor(t){this._timezoneManager=t}has(t){return this._timezoneManager.hasTimezoneForId(t)}get(t){const a=this._timezoneManager.getTimezoneForId(t);if(a)return a.toICALTimezone()}register(){throw new TypeError("Not allowed to register new timezone")}remove(){throw new TypeError("Not allowed to remove timezone")}reset(){throw new TypeError("Not allowed to reset TimezoneService")}}me.TimezoneService instanceof _c||(me.TimezoneService=new _c(u_()));function z9(e=[],t=[]){const a={},i=[];for(const n of e){const r=n.split("/");let[o,s]=[r.shift(),r.join("/")];s||(s=o,o=ie("Global")),a[o]=a[o]||{continent:o,regions:[]},a[o].regions.push({label:d_(s),cities:[],timezoneId:n})}for(const n of t){const{continent:r,label:o,timezoneId:s}=n;a[r]=a[r]||{continent:r,regions:[]},a[r].regions.push({label:o,cities:[],timezoneId:s})}for(const n in a)Object.prototype.hasOwnProperty.call(a,n)&&(a[n].regions.sort((r,o)=>r.labeln.continent[]},value:{type:String,default:"floating"},uid:{type:[String,Number],default:()=>`tz-${g0(5)}`}},emits:["input"],computed:{placeholder(){return ie("Type to search time zone")},selectedTimezone(){for(const e of this.additionalTimezones)if(e.timezoneId===this.value)return e;return{label:gg(this.value),timezoneId:this.value}},options(){const e=j4(),t=Y4(e.listAllTimezones(),this.additionalTimezones);let a=[];return Object.values(t).forEach(i=>{a.push({label:i.continent,timezoneId:`tz-group__${i.continent}`,regions:i.regions}),a=a.concat(i.regions)}),a}},methods:{change(e){e&&this.$emit("input",e.timezoneId)},isSelectable(e){return!e.timezoneId.startsWith("tz-group__")},filterBy(e,t,a){const i=a.trim().split(" ");return e.timezoneId.startsWith("tz-group__")?e.regions.some(n=>this.matchTimezoneId(n.timezoneId,i)):this.matchTimezoneId(e.timezoneId,i)},matchTimezoneId(e,t){return t.every(a=>e.toLowerCase().includes(a.toLowerCase()))}}};var U4=function(){var e=this,t=e._self._c;return t("NcSelect",{attrs:{"aria-label-combobox":e.t("Search for time zone"),clearable:!1,"filter-by":e.filterBy,multiple:!1,options:e.options,placeholder:e.placeholder,selectable:e.isSelectable,uid:e.uid,value:e.selectedTimezone,label:"label"},on:{"option:selected":e.change}})},q4=[],H4=ce(G4,U4,q4,!1,null,null,null,null);const z4=H4.exports;function Fg(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Co(e){return Fg(e)?new Date(e.getTime()):e==null?new Date(NaN):new Date(e)}function V4(e){return Fg(e)&&!isNaN(e.getTime())}function mg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!(t>=0&&t<=6))throw new RangeError("weekStartsOn must be between 0 and 6");var a=Co(e),i=a.getDay(),n=(i+7-t)%7;return a.setDate(a.getDate()-n),a.setHours(0,0,0,0),a}function pg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=t.firstDayOfWeek,i=a===void 0?0:a,n=t.firstWeekContainsDate,r=n===void 0?1:n;if(!(r>=1&&r<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7");for(var o=Co(e),s=o.getFullYear(),l=new Date(0),d=s+1;d>=s-1&&(l.setFullYear(d,0,r),l.setHours(0,0,0,0),l=mg(l,i),!(o.getTime()>=l.getTime()));d--);return l}function Ru(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=t.firstDayOfWeek,i=a===void 0?0:a,n=t.firstWeekContainsDate,r=n===void 0?1:n,o=Co(e),s=mg(o,i),l=pg(o,{firstDayOfWeek:i,firstWeekContainsDate:r}),d=s.getTime()-l.getTime();return Math.round(d/(7*24*3600*1e3))+1}var Tg={months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekdaysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],firstDayOfWeek:0,firstWeekContainsDate:1},$4=/\[([^\]]+)]|YYYY|YY?|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|m{1,2}|s{1,2}|Z{1,2}|S{1,3}|w{1,2}|x|X|a|A/g;function yt(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2,a="".concat(Math.abs(e)),i=e<0?"-":"";a.length1&&arguments[1]!==void 0?arguments[1]:"",a=e>0?"-":"+",i=Math.abs(e),n=Math.floor(i/60),r=i%60;return a+yt(n,2)+t+yt(r,2)}var A1=function(e,t,a){var i=e<12?"AM":"PM";return a?i.toLocaleLowerCase():i},Vn={Y:function(e){var t=e.getFullYear();return t<=9999?"".concat(t):"+".concat(t)},YY:function(e){return yt(e.getFullYear(),4).substr(2)},YYYY:function(e){return yt(e.getFullYear(),4)},M:function(e){return e.getMonth()+1},MM:function(e){return yt(e.getMonth()+1,2)},MMM:function(e,t){return t.monthsShort[e.getMonth()]},MMMM:function(e,t){return t.months[e.getMonth()]},D:function(e){return e.getDate()},DD:function(e){return yt(e.getDate(),2)},H:function(e){return e.getHours()},HH:function(e){return yt(e.getHours(),2)},h:function(e){var t=e.getHours();return t===0?12:t>12?t%12:t},hh:function(){var e=Vn.h.apply(Vn,arguments);return yt(e,2)},m:function(e){return e.getMinutes()},mm:function(e){return yt(e.getMinutes(),2)},s:function(e){return e.getSeconds()},ss:function(e){return yt(e.getSeconds(),2)},S:function(e){return Math.floor(e.getMilliseconds()/100)},SS:function(e){return yt(Math.floor(e.getMilliseconds()/10),2)},SSS:function(e){return yt(e.getMilliseconds(),3)},d:function(e){return e.getDay()},dd:function(e,t){return t.weekdaysMin[e.getDay()]},ddd:function(e,t){return t.weekdaysShort[e.getDay()]},dddd:function(e,t){return t.weekdays[e.getDay()]},A:function(e,t){var a=t.meridiem||A1;return a(e.getHours(),e.getMinutes(),!1)},a:function(e,t){var a=t.meridiem||A1;return a(e.getHours(),e.getMinutes(),!0)},Z:function(e){return y1(b1(e),":")},ZZ:function(e){return y1(b1(e))},X:function(e){return Math.floor(e.getTime()/1e3)},x:function(e){return e.getTime()},w:function(e,t){return Ru(e,{firstDayOfWeek:t.firstDayOfWeek,firstWeekContainsDate:t.firstWeekContainsDate})},ww:function(e,t){return yt(Vn.w(e,t),2)}};function Mo(e,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=t?String(t):"YYYY-MM-DDTHH:mm:ss.SSSZ",n=Co(e);if(!V4(n))return"Invalid Date";var r=a.locale||Tg;return i.replace($4,function(o,s){return s||(typeof Vn[o]=="function"?"".concat(Vn[o](n,r)):o)})}function S1(e){return J4(e)||Q4(e)||W4()}function W4(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function Q4(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function J4(e){if(Array.isArray(e)){for(var t=0,a=new Array(e.length);t68?a-1:a)*100+i,Ga({},fs,i)}),Ye("YYYY",rA,fs),Ye("M",Gi,function(e){return Ga({},q0,parseInt(e,10)-1)}),Ye("MM",La,function(e){return Ga({},q0,parseInt(e,10)-1)}),Ye("MMM",$n("monthsShort"),Wn("monthsShort",q0)),Ye("MMMM",$n("months"),Wn("months",q0)),Ye("D",Gi,v1),Ye("DD",La,v1),Ye(["H","h"],Gi,R1),Ye(["HH","hh"],La,R1),Ye("m",Gi,N1),Ye("mm",La,N1),Ye("s",Gi,w1),Ye("ss",La,w1),Ye("S",Dg,function(e){return Ga({},gs,parseInt(e,10)*100)}),Ye("SS",La,function(e){return Ga({},gs,parseInt(e,10)*10)}),Ye("SSS",nA,gs);function uA(e){return e.meridiemParse||/[ap]\.?m?\.?/i}function dA(e){return"".concat(e).toLowerCase().charAt(0)==="p"}Ye(["A","a"],uA,function(e,t){var a=typeof t.isPM=="function"?t.isPM(e):dA(e);return{isPM:a}});function cA(e){var t=e.match(/([+-]|\d\d)/g)||["-","0","0"],a=X4(t,3),i=a[0],n=a[1],r=a[2],o=parseInt(n,10)*60+parseInt(r,10);return o===0?0:i==="+"?-o:+o}Ye(["Z","ZZ"],oA,function(e){return{offset:cA(e)}}),Ye("x",Eg,function(e){return{date:new Date(parseInt(e,10))}}),Ye("X",sA,function(e){return{date:new Date(parseFloat(e)*1e3)}}),Ye("d",Dg,"weekday"),Ye("dd",$n("weekdaysMin"),Wn("weekdaysMin","weekday")),Ye("ddd",$n("weekdaysShort"),Wn("weekdaysShort","weekday")),Ye("dddd",$n("weekdays"),Wn("weekdays","weekday")),Ye("w",Gi,"week"),Ye("ww",La,"week");function hA(e,t){if(e!==void 0&&t!==void 0){if(t){if(e<12)return e+12}else if(e===12)return 0}return e}function fA(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Date,a=[0,0,1,0,0,0,0],i=[t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()],n=!0,r=0;r<7;r++)e[r]===void 0?a[r]=n?i[r]:a[r]:(a[r]=e[r],n=!1);return a}function gA(e,t,a,i,n,r,o){var s;return e<100&&e>=0?(s=new Date(e+400,t,a,i,n,r,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,a,i,n,r,o),s}function _A(){for(var e,t=arguments.length,a=new Array(t),i=0;i=0?(a[0]+=400,e=new Date(Date.UTC.apply(Date,a)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(n)):e=new Date(Date.UTC.apply(Date,a)),e}function FA(e,t,a){var i=t.match(iA);if(!i)throw new Error;for(var n=i.length,r={},o=0;o2&&arguments[2]!==void 0?arguments[2]:{};try{var i=a.locale,n=i===void 0?Tg:i,r=a.backupDate,o=r===void 0?new Date:r,s=FA(e,t,n),l=s.year,d=s.month,u=s.day,c=s.hour,f=s.minute,h=s.second,_=s.millisecond,m=s.isPM,p=s.date,T=s.offset,R=s.weekday,S=s.week;if(p)return p;var C=[l,d,u,c,f,h,_];if(C[3]=hA(C[3],m),S!==void 0&&d===void 0&&u===void 0){var j=pg(l===void 0?o:new Date(l,3),{firstDayOfWeek:n.firstDayOfWeek,firstWeekContainsDate:n.firstWeekContainsDate});return new Date(j.getTime()+(S-1)*7*24*3600*1e3)}var E,I=fA(C,o);return T!==void 0?(I[6]+=T*60*1e3,E=_A.apply(void 0,S1(I))):E=gA.apply(void 0,S1(I)),R!==void 0&&E.getDay()!==R?new Date(NaN):E}catch{return new Date(NaN)}}function sr(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?sr=function(t){return typeof t}:sr=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sr(e)}function Di(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function _l(){return _l=Object.assign||function(e){for(var t=1;t=0)&&(a[n]=e[n]);return a}function TA(e,t){if(e==null)return{};var a=pA(e,t),i,n;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(a[i]=e[i])}return a}function Qn(e,t){return DA(e)||EA(e,t)||bA(e,t)||yA()}function DA(e){if(Array.isArray(e))return e}function EA(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var a=[],i=!0,n=!1,r=void 0;try{for(var o=e[Symbol.iterator](),s;!(i=(s=o.next()).done)&&(a.push(s.value),!(t&&a.length===t));i=!0);}catch(l){n=!0,r=l}finally{try{!i&&o.return!=null&&o.return()}finally{if(n)throw r}}return a}}function bA(e,t){if(e){if(typeof e=="string")return x1(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Array.from(a);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return x1(e,t)}}function x1(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,i=new Array(t);a1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,r=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:0,s=new Date(e,t,a,i,n,r,o);return e<100&&e>=0&&s.setFullYear(e),s}function ya(e){return e instanceof Date&&!isNaN(e)}function Yo(e){return Array.isArray(e)&&e.length===2&&e.every(ya)&&e[0]<=e[1]}function NA(e){return Array.isArray(e)&&e.every(ya)}function gn(e){var t=new Date(e);if(ya(t))return t;for(var a=arguments.length,i=new Array(a>1?a-1:0),n=1;n1&&arguments[1]!==void 0?arguments[1]:document.body;if(!e||e===t)return null;var a=function(r,o){return getComputedStyle(r,null).getPropertyValue(o)},i=/(auto|scroll)/,n=i.test(a(e,"overflow")+a(e,"overflow-y")+a(e,"overflow-x"));return n?e:Lo(e.parentNode,t)}var PA={name:"Popup",inject:{prefixClass:{default:"mx"}},props:{visible:{type:Boolean,default:!1},appendToBody:{type:Boolean,default:!0}},data:function(){return{top:"",left:""}},watch:{visible:{immediate:!0,handler:function(e){var t=this;this.$nextTick(function(){e&&t.displayPopup()})}}},mounted:function(){var e=this;this.appendToBody&&document.body.appendChild(this.$el),this._clickoutEvent="ontouchend"in document?"touchstart":"mousedown",document.addEventListener(this._clickoutEvent,this.handleClickOutside);var t=this.$parent.$el;this._displayPopup=ZA(function(){return e.displayPopup()}),this._scrollParent=Lo(t)||window,this._scrollParent.addEventListener("scroll",this._displayPopup),window.addEventListener("resize",this._displayPopup)},beforeDestroy:function(){this.appendToBody&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el),document.removeEventListener(this._clickoutEvent,this.handleClickOutside),this._scrollParent.removeEventListener("scroll",this._displayPopup),window.removeEventListener("resize",this._displayPopup)},methods:{handleClickOutside:function(e){if(this.visible){var t=e.target,a=this.$el;a&&!a.contains(t)&&this.$emit("clickoutside",e)}},displayPopup:function(){if(this.visible){var e=this.$el,t=this.$parent.$el,a=this.appendToBody;this._popupRect||(this._popupRect=IA(e));var i=this._popupRect,n=i.width,r=i.height,o=jA(t,n,r,a),s=o.left,l=o.top;this.left=s,this.top=l}}}};function jt(e,t,a,i,n,r,o,s,l,d){typeof o!="boolean"&&(l=s,s=o,o=!1);var u=typeof a=="function"?a.options:a;e&&e.render&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0,n&&(u.functional=!0)),i&&(u._scopeId=i);var c;if(r?(c=function(_){_=_||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!_&&typeof __VUE_SSR_CONTEXT__<"u"&&(_=__VUE_SSR_CONTEXT__),t&&t.call(this,l(_)),_&&_._registeredComponents&&_._registeredComponents.add(r)},u._ssrRegister=c):t&&(c=o?function(_){t.call(this,d(_,this.$root.$options.shadowRoot))}:function(_){t.call(this,s(_))}),c)if(u.functional){var f=u.render;u.render=function(_,m){return c.call(m),f(_,m)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,c):[c]}return a}var GA=PA,UA=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("transition",{attrs:{name:e.prefixClass+"-zoom-in-down"}},[e.visible?a("div",{class:e.prefixClass+"-datepicker-main "+e.prefixClass+"-datepicker-popup",style:{top:e.top,left:e.left,position:"absolute"}},[e._t("default")],2):e._e()])},qA=[],HA=void 0,zA=void 0,VA=void 0,$A=!1,WA=jt({render:UA,staticRenderFns:qA},HA,GA,zA,$A,VA,!1,void 0,void 0,void 0),QA=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:"1em",height:"1em"}},[a("path",{attrs:{d:"M940.218182 107.054545h-209.454546V46.545455h-65.163636v60.50909H363.054545V46.545455H297.890909v60.50909H83.781818c-18.618182 0-32.581818 13.963636-32.581818 32.581819v805.236363c0 18.618182 13.963636 32.581818 32.581818 32.581818h861.090909c18.618182 0 32.581818-13.963636 32.581818-32.581818V139.636364c-4.654545-18.618182-18.618182-32.581818-37.236363-32.581819zM297.890909 172.218182V232.727273h65.163636V172.218182h307.2V232.727273h65.163637V172.218182h176.872727v204.8H116.363636V172.218182h181.527273zM116.363636 912.290909V442.181818h795.927273v470.109091H116.363636z"}})])},JA=[],KA=void 0,XA=void 0,eS=void 0,tS=!1,aS=jt({render:QA,staticRenderFns:JA},KA,{},XA,tS,eS,!1,void 0,void 0,void 0),iS=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"1em",height:"1em"}},[a("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}}),e._v(" "),a("path",{attrs:{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}}),e._v(" "),a("path",{attrs:{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"}})])},nS=[],rS=void 0,oS=void 0,sS=void 0,lS=!1,uS=jt({render:iS,staticRenderFns:nS},rS,{},oS,lS,sS,!1,void 0,void 0,void 0),dS=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:"1em",height:"1em"}},[a("path",{attrs:{d:"M810.005333 274.005333l-237.994667 237.994667 237.994667 237.994667-60.010667 60.010667-237.994667-237.994667-237.994667 237.994667-60.010667-60.010667 237.994667-237.994667-237.994667-237.994667 60.010667-60.010667 237.994667 237.994667 237.994667-237.994667z"}})])},cS=[],hS=void 0,fS=void 0,gS=void 0,_S=!1,FS=jt({render:dS,staticRenderFns:cS},hS,{},fS,_S,gS,!1,void 0,void 0,void 0),mS={props:{type:String,disabled:Boolean},inject:{prefixClass:{default:"mx"}}},pS=mS,TS=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("button",e._g({class:[e.prefixClass+"-btn "+e.prefixClass+"-btn-text "+e.prefixClass+"-btn-icon-"+e.type,{disabled:e.disabled}],attrs:{type:"button",disabled:e.disabled}},e.$listeners),[a("i",{class:e.prefixClass+"-icon-"+e.type})])},DS=[],ES=void 0,bS=void 0,yS=void 0,AS=!1,wu=jt({render:TS,staticRenderFns:DS},ES,pS,bS,AS,yS,!1,void 0,void 0,void 0),SS={name:"TableDate",components:{IconButton:wu},inject:{getLocale:{default:function(){return mn}},getWeek:{default:function(){return Ru}},prefixClass:{default:"mx"},onDateMouseEnter:{default:void 0},onDateMouseLeave:{default:void 0}},props:{disabledCalendarChanger:{type:Function,default:function(){return!1}},calendar:{type:Date,default:function(){return new Date}},showWeekNumber:{type:Boolean,default:!1},titleFormat:{type:String,default:"YYYY-MM-DD"},getRowClasses:{type:Function,default:function(){return[]}},getCellClasses:{type:Function,default:function(){return[]}}},computed:{firstDayOfWeek:function(){return this.getLocale().formatLocale.firstDayOfWeek||0},yearMonth:function(){var e=this.getLocale(),t=e.yearFormat,a=e.monthBeforeYear,i=e.monthFormat,n=i===void 0?"MMM":i,r={panel:"year",label:this.formatDate(this.calendar,t)},o={panel:"month",label:this.formatDate(this.calendar,n)};return a?[o,r]:[r,o]},days:function(){var e=this.getLocale(),t=e.days||e.formatLocale.weekdaysMin;return t.concat(t).slice(this.firstDayOfWeek,this.firstDayOfWeek+7)},dates:function(){var e=this.calendar.getFullYear(),t=this.calendar.getMonth(),a=xA({firstDayOfWeek:this.firstDayOfWeek,year:e,month:t});return Nu(a,7)}},methods:{isDisabledArrows:function(e){var t=new Date(this.calendar);switch(e){case"last-year":t.setFullYear(t.getFullYear()-1,t.getMonth()+1,0),t.setHours(23,59,59,999);break;case"next-year":t.setFullYear(t.getFullYear()+1);break;case"last-month":t.setMonth(t.getMonth(),0),t.setHours(23,59,59,999);break;case"next-month":t.setMonth(t.getMonth()+1);break}return this.disabledCalendarChanger(t,e)},handleIconLeftClick:function(){this.$emit("changecalendar",pl(this.calendar,function(e){return e-1}),"last-month")},handleIconRightClick:function(){this.$emit("changecalendar",pl(this.calendar,function(e){return e+1}),"next-month")},handleIconDoubleLeftClick:function(){this.$emit("changecalendar",_n(this.calendar,function(e){return e-1}),"last-year")},handleIconDoubleRightClick:function(){this.$emit("changecalendar",_n(this.calendar,function(e){return e+1}),"next-year")},handlePanelChange:function(e){this.$emit("changepanel",e)},handleMouseEnter:function(e){typeof this.onDateMouseEnter=="function"&&this.onDateMouseEnter(e)},handleMouseLeave:function(e){typeof this.onDateMouseLeave=="function"&&this.onDateMouseLeave(e)},handleCellClick:function(e){var t=e.target;t.tagName.toUpperCase()==="DIV"&&(t=t.parentNode);var a=t.getAttribute("data-row-col");if(a){var i=a.split(",").map(function(l){return parseInt(l,10)}),n=Qn(i,2),r=n[0],o=n[1],s=this.dates[r][o];this.$emit("select",new Date(s))}},formatDate:function(e,t){return Mo(e,t,{locale:this.getLocale().formatLocale})},getCellTitle:function(e){var t=this.titleFormat;return this.formatDate(e,t)},getWeekNumber:function(e){return this.getWeek(e,this.getLocale().formatLocale)}}},kS=SS,vS=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:e.prefixClass+"-calendar "+e.prefixClass+"-calendar-panel-date"},[a("div",{class:e.prefixClass+"-calendar-header"},[a("icon-button",{attrs:{type:"double-left",disabled:e.isDisabledArrows("last-year")},on:{click:e.handleIconDoubleLeftClick}}),e._v(" "),a("icon-button",{attrs:{type:"left",disabled:e.isDisabledArrows("last-month")},on:{click:e.handleIconLeftClick}}),e._v(" "),a("icon-button",{attrs:{type:"double-right",disabled:e.isDisabledArrows("next-year")},on:{click:e.handleIconDoubleRightClick}}),e._v(" "),a("icon-button",{attrs:{type:"right",disabled:e.isDisabledArrows("next-month")},on:{click:e.handleIconRightClick}}),e._v(" "),a("span",{class:e.prefixClass+"-calendar-header-label"},e._l(e.yearMonth,function(i){return a("button",{key:i.panel,class:e.prefixClass+"-btn "+e.prefixClass+"-btn-text "+e.prefixClass+"-btn-current-"+i.panel,attrs:{type:"button"},on:{click:function(n){return e.handlePanelChange(i.panel)}}},[e._v(` +END:STANDARD`],latitude:"-0131800",longitude:"-1761000"}},ci={version:V9,aliases:$9,zones:W9},kl=u_();let c_=!1;function Q9(){return c_||J9(),kl}function J9(){t_.debug(`Using version ${ci.version} of the timezone database`);for(const e in ci.zones)if(Object.prototype.hasOwnProperty.call(ci.zones,[e])){const t=["BEGIN:VTIMEZONE","TZID:"+e,...ci.zones[e].ics,"END:VTIMEZONE"].join(`\r +`);kl.registerTimezoneFromICS(e,t)}for(const e in ci.aliases)Object.prototype.hasOwnProperty.call(ci.aliases,[e])&&kl.registerAlias(e,ci.aliases[e].aliasTo);c_=!0}const K9={name:"NcTimezonePicker",components:{NcSelect:Bo},props:{additionalTimezones:{type:Array,default:()=>[]},value:{type:String,default:"floating"},uid:{type:[String,Number],default:()=>`tz-${_0(5)}`}},emits:["input"],computed:{placeholder(){return ie("Type to search time zone")},selectedTimezone(){for(const e of this.additionalTimezones)if(e.timezoneId===this.value)return e;return{label:d_(this.value),timezoneId:this.value}},options(){const e=Q9(),t=z9(e.listAllTimezones(),this.additionalTimezones);let a=[];return Object.values(t).forEach(i=>{a.push({label:i.continent,timezoneId:`tz-group__${i.continent}`,regions:i.regions}),a=a.concat(i.regions)}),a}},methods:{change(e){e&&this.$emit("input",e.timezoneId)},isSelectable(e){return!e.timezoneId.startsWith("tz-group__")},filterBy(e,t,a){const i=a.trim().split(" ");return e.timezoneId.startsWith("tz-group__")?e.regions.some(n=>this.matchTimezoneId(n.timezoneId,i)):this.matchTimezoneId(e.timezoneId,i)},matchTimezoneId(e,t){return t.every(a=>e.toLowerCase().includes(a.toLowerCase()))}}};var X9=function(){var e=this,t=e._self._c;return t("NcSelect",{attrs:{"aria-label-combobox":e.t("Search for time zone"),clearable:!1,"filter-by":e.filterBy,multiple:!1,options:e.options,placeholder:e.placeholder,selectable:e.isSelectable,uid:e.uid,value:e.selectedTimezone,label:"label"},on:{"option:selected":e.change}})},eN=[],tN=de(K9,X9,eN,!1,null,null,null,null);const aN=tN.exports;function h_(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Go(e){return h_(e)?new Date(e.getTime()):e==null?new Date(NaN):new Date(e)}function iN(e){return h_(e)&&!isNaN(e.getTime())}function f_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!(t>=0&&t<=6))throw new RangeError("weekStartsOn must be between 0 and 6");var a=Go(e),i=a.getDay(),n=(i+7-t)%7;return a.setDate(a.getDate()-n),a.setHours(0,0,0,0),a}function g_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=t.firstDayOfWeek,i=a===void 0?0:a,n=t.firstWeekContainsDate,r=n===void 0?1:n;if(!(r>=1&&r<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7");for(var o=Go(e),s=o.getFullYear(),l=new Date(0),d=s+1;d>=s-1&&(l.setFullYear(d,0,r),l.setHours(0,0,0,0),l=f_(l,i),!(o.getTime()>=l.getTime()));d--);return l}function Hu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=t.firstDayOfWeek,i=a===void 0?0:a,n=t.firstWeekContainsDate,r=n===void 0?1:n,o=Go(e),s=f_(o,i),l=g_(o,{firstDayOfWeek:i,firstWeekContainsDate:r}),d=s.getTime()-l.getTime();return Math.round(d/(7*24*3600*1e3))+1}var __={months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekdaysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],firstDayOfWeek:0,firstWeekContainsDate:1},nN=/\[([^\]]+)]|YYYY|YY?|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|m{1,2}|s{1,2}|Z{1,2}|S{1,3}|w{1,2}|x|X|a|A/g;function yt(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2,a="".concat(Math.abs(e)),i=e<0?"-":"";a.length1&&arguments[1]!==void 0?arguments[1]:"",a=e>0?"-":"+",i=Math.abs(e),n=Math.floor(i/60),r=i%60;return a+yt(n,2)+t+yt(r,2)}var pc=function(e,t,a){var i=e<12?"AM":"PM";return a?i.toLocaleLowerCase():i},Kn={Y:function(e){var t=e.getFullYear();return t<=9999?"".concat(t):"+".concat(t)},YY:function(e){return yt(e.getFullYear(),4).substr(2)},YYYY:function(e){return yt(e.getFullYear(),4)},M:function(e){return e.getMonth()+1},MM:function(e){return yt(e.getMonth()+1,2)},MMM:function(e,t){return t.monthsShort[e.getMonth()]},MMMM:function(e,t){return t.months[e.getMonth()]},D:function(e){return e.getDate()},DD:function(e){return yt(e.getDate(),2)},H:function(e){return e.getHours()},HH:function(e){return yt(e.getHours(),2)},h:function(e){var t=e.getHours();return t===0?12:t>12?t%12:t},hh:function(){var e=Kn.h.apply(Kn,arguments);return yt(e,2)},m:function(e){return e.getMinutes()},mm:function(e){return yt(e.getMinutes(),2)},s:function(e){return e.getSeconds()},ss:function(e){return yt(e.getSeconds(),2)},S:function(e){return Math.floor(e.getMilliseconds()/100)},SS:function(e){return yt(Math.floor(e.getMilliseconds()/10),2)},SSS:function(e){return yt(e.getMilliseconds(),3)},d:function(e){return e.getDay()},dd:function(e,t){return t.weekdaysMin[e.getDay()]},ddd:function(e,t){return t.weekdaysShort[e.getDay()]},dddd:function(e,t){return t.weekdays[e.getDay()]},A:function(e,t){var a=t.meridiem||pc;return a(e.getHours(),e.getMinutes(),!1)},a:function(e,t){var a=t.meridiem||pc;return a(e.getHours(),e.getMinutes(),!0)},Z:function(e){return mc(Fc(e),":")},ZZ:function(e){return mc(Fc(e))},X:function(e){return Math.floor(e.getTime()/1e3)},x:function(e){return e.getTime()},w:function(e,t){return Hu(e,{firstDayOfWeek:t.firstDayOfWeek,firstWeekContainsDate:t.firstWeekContainsDate})},ww:function(e,t){return yt(Kn.w(e,t),2)}};function Uo(e,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=t?String(t):"YYYY-MM-DDTHH:mm:ss.SSSZ",n=Go(e);if(!iN(n))return"Invalid Date";var r=a.locale||__;return i.replace(nN,function(o,s){return s||(typeof Kn[o]=="function"?"".concat(Kn[o](n,r)):o)})}function Tc(e){return sN(e)||oN(e)||rN()}function rN(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function oN(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function sN(e){if(Array.isArray(e)){for(var t=0,a=new Array(e.length);t68?a-1:a)*100+i,Ua({},Rs,i)}),Ye("YYYY",_N,Rs),Ye("M",Gi,function(e){return Ua({},W0,parseInt(e,10)-1)}),Ye("MM",Za,function(e){return Ua({},W0,parseInt(e,10)-1)}),Ye("MMM",Xn("monthsShort"),e0("monthsShort",W0)),Ye("MMMM",Xn("months"),e0("months",W0)),Ye("D",Gi,Ec),Ye("DD",Za,Ec),Ye(["H","h"],Gi,bc),Ye(["HH","hh"],Za,bc),Ye("m",Gi,yc),Ye("mm",Za,yc),Ye("s",Gi,Ac),Ye("ss",Za,Ac),Ye("S",F_,function(e){return Ua({},Ns,parseInt(e,10)*100)}),Ye("SS",Za,function(e){return Ua({},Ns,parseInt(e,10)*10)}),Ye("SSS",gN,Ns);function TN(e){return e.meridiemParse||/[ap]\.?m?\.?/i}function DN(e){return"".concat(e).toLowerCase().charAt(0)==="p"}Ye(["A","a"],TN,function(e,t){var a=typeof t.isPM=="function"?t.isPM(e):DN(e);return{isPM:a}});function EN(e){var t=e.match(/([+-]|\d\d)/g)||["-","0","0"],a=uN(t,3),i=a[0],n=a[1],r=a[2],o=parseInt(n,10)*60+parseInt(r,10);return o===0?0:i==="+"?-o:+o}Ye(["Z","ZZ"],FN,function(e){return{offset:EN(e)}}),Ye("x",m_,function(e){return{date:new Date(parseInt(e,10))}}),Ye("X",mN,function(e){return{date:new Date(parseFloat(e)*1e3)}}),Ye("d",F_,"weekday"),Ye("dd",Xn("weekdaysMin"),e0("weekdaysMin","weekday")),Ye("ddd",Xn("weekdaysShort"),e0("weekdaysShort","weekday")),Ye("dddd",Xn("weekdays"),e0("weekdays","weekday")),Ye("w",Gi,"week"),Ye("ww",Za,"week");function bN(e,t){if(e!==void 0&&t!==void 0){if(t){if(e<12)return e+12}else if(e===12)return 0}return e}function yN(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Date,a=[0,0,1,0,0,0,0],i=[t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()],n=!0,r=0;r<7;r++)e[r]===void 0?a[r]=n?i[r]:a[r]:(a[r]=e[r],n=!1);return a}function AN(e,t,a,i,n,r,o){var s;return e<100&&e>=0?(s=new Date(e+400,t,a,i,n,r,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,a,i,n,r,o),s}function SN(){for(var e,t=arguments.length,a=new Array(t),i=0;i=0?(a[0]+=400,e=new Date(Date.UTC.apply(Date,a)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(n)):e=new Date(Date.UTC.apply(Date,a)),e}function kN(e,t,a){var i=t.match(fN);if(!i)throw new Error;for(var n=i.length,r={},o=0;o2&&arguments[2]!==void 0?arguments[2]:{};try{var i=a.locale,n=i===void 0?__:i,r=a.backupDate,o=r===void 0?new Date:r,s=kN(e,t,n),l=s.year,d=s.month,u=s.day,c=s.hour,f=s.minute,h=s.second,_=s.millisecond,m=s.isPM,p=s.date,T=s.offset,R=s.weekday,S=s.week;if(p)return p;var C=[l,d,u,c,f,h,_];if(C[3]=bN(C[3],m),S!==void 0&&d===void 0&&u===void 0){var j=g_(l===void 0?o:new Date(l,3),{firstDayOfWeek:n.firstDayOfWeek,firstWeekContainsDate:n.firstWeekContainsDate});return new Date(j.getTime()+(S-1)*7*24*3600*1e3)}var E,I=yN(C,o);return T!==void 0?(I[6]+=T*60*1e3,E=SN.apply(void 0,Tc(I))):E=AN.apply(void 0,Tc(I)),R!==void 0&&E.getDay()!==R?new Date(NaN):E}catch{return new Date(NaN)}}function gr(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?gr=function(t){return typeof t}:gr=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gr(e)}function Di(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function vl(){return vl=Object.assign||function(e){for(var t=1;t=0)&&(a[n]=e[n]);return a}function NN(e,t){if(e==null)return{};var a=RN(e,t),i,n;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(a[i]=e[i])}return a}function t0(e,t){return wN(e)||ON(e,t)||xN(e,t)||BN()}function wN(e){if(Array.isArray(e))return e}function ON(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var a=[],i=!0,n=!1,r=void 0;try{for(var o=e[Symbol.iterator](),s;!(i=(s=o.next()).done)&&(a.push(s.value),!(t&&a.length===t));i=!0);}catch(l){n=!0,r=l}finally{try{!i&&o.return!=null&&o.return()}finally{if(n)throw r}}return a}}function xN(e,t){if(e){if(typeof e=="string")return kc(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Array.from(a);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return kc(e,t)}}function kc(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,i=new Array(t);a1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,r=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:0,s=new Date(e,t,a,i,n,r,o);return e<100&&e>=0&&s.setFullYear(e),s}function Aa(e){return e instanceof Date&&!isNaN(e)}function qo(e){return Array.isArray(e)&&e.length===2&&e.every(Aa)&&e[0]<=e[1]}function IN(e){return Array.isArray(e)&&e.every(Aa)}function _n(e){var t=new Date(e);if(Aa(t))return t;for(var a=arguments.length,i=new Array(a>1?a-1:0),n=1;n1&&arguments[1]!==void 0?arguments[1]:document.body;if(!e||e===t)return null;var a=function(r,o){return getComputedStyle(r,null).getPropertyValue(o)},i=/(auto|scroll)/,n=i.test(a(e,"overflow")+a(e,"overflow-y")+a(e,"overflow-x"));return n?e:Ho(e.parentNode,t)}var JN={name:"Popup",inject:{prefixClass:{default:"mx"}},props:{visible:{type:Boolean,default:!1},appendToBody:{type:Boolean,default:!0}},data:function(){return{top:"",left:""}},watch:{visible:{immediate:!0,handler:function(e){var t=this;this.$nextTick(function(){e&&t.displayPopup()})}}},mounted:function(){var e=this;this.appendToBody&&document.body.appendChild(this.$el),this._clickoutEvent="ontouchend"in document?"touchstart":"mousedown",document.addEventListener(this._clickoutEvent,this.handleClickOutside);var t=this.$parent.$el;this._displayPopup=$N(function(){return e.displayPopup()}),this._scrollParent=Ho(t)||window,this._scrollParent.addEventListener("scroll",this._displayPopup),window.addEventListener("resize",this._displayPopup)},beforeDestroy:function(){this.appendToBody&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el),document.removeEventListener(this._clickoutEvent,this.handleClickOutside),this._scrollParent.removeEventListener("scroll",this._displayPopup),window.removeEventListener("resize",this._displayPopup)},methods:{handleClickOutside:function(e){if(this.visible){var t=e.target,a=this.$el;a&&!a.contains(t)&&this.$emit("clickoutside",e)}},displayPopup:function(){if(this.visible){var e=this.$el,t=this.$parent.$el,a=this.appendToBody;this._popupRect||(this._popupRect=WN(e));var i=this._popupRect,n=i.width,r=i.height,o=QN(t,n,r,a),s=o.left,l=o.top;this.left=s,this.top=l}}}};function jt(e,t,a,i,n,r,o,s,l,d){typeof o!="boolean"&&(l=s,s=o,o=!1);var u=typeof a=="function"?a.options:a;e&&e.render&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0,n&&(u.functional=!0)),i&&(u._scopeId=i);var c;if(r?(c=function(_){_=_||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!_&&typeof __VUE_SSR_CONTEXT__<"u"&&(_=__VUE_SSR_CONTEXT__),t&&t.call(this,l(_)),_&&_._registeredComponents&&_._registeredComponents.add(r)},u._ssrRegister=c):t&&(c=o?function(_){t.call(this,d(_,this.$root.$options.shadowRoot))}:function(_){t.call(this,s(_))}),c)if(u.functional){var f=u.render;u.render=function(_,m){return c.call(m),f(_,m)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,c):[c]}return a}var KN=JN,XN=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("transition",{attrs:{name:e.prefixClass+"-zoom-in-down"}},[e.visible?a("div",{class:e.prefixClass+"-datepicker-main "+e.prefixClass+"-datepicker-popup",style:{top:e.top,left:e.left,position:"absolute"}},[e._t("default")],2):e._e()])},ew=[],tw=void 0,aw=void 0,iw=void 0,nw=!1,rw=jt({render:XN,staticRenderFns:ew},tw,KN,aw,nw,iw,!1,void 0,void 0,void 0),ow=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:"1em",height:"1em"}},[a("path",{attrs:{d:"M940.218182 107.054545h-209.454546V46.545455h-65.163636v60.50909H363.054545V46.545455H297.890909v60.50909H83.781818c-18.618182 0-32.581818 13.963636-32.581818 32.581819v805.236363c0 18.618182 13.963636 32.581818 32.581818 32.581818h861.090909c18.618182 0 32.581818-13.963636 32.581818-32.581818V139.636364c-4.654545-18.618182-18.618182-32.581818-37.236363-32.581819zM297.890909 172.218182V232.727273h65.163636V172.218182h307.2V232.727273h65.163637V172.218182h176.872727v204.8H116.363636V172.218182h181.527273zM116.363636 912.290909V442.181818h795.927273v470.109091H116.363636z"}})])},sw=[],lw=void 0,uw=void 0,dw=void 0,cw=!1,hw=jt({render:ow,staticRenderFns:sw},lw,{},uw,cw,dw,!1,void 0,void 0,void 0),fw=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"1em",height:"1em"}},[a("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}}),e._v(" "),a("path",{attrs:{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}}),e._v(" "),a("path",{attrs:{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"}})])},gw=[],_w=void 0,Fw=void 0,mw=void 0,pw=!1,Tw=jt({render:fw,staticRenderFns:gw},_w,{},Fw,pw,mw,!1,void 0,void 0,void 0),Dw=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:"1em",height:"1em"}},[a("path",{attrs:{d:"M810.005333 274.005333l-237.994667 237.994667 237.994667 237.994667-60.010667 60.010667-237.994667-237.994667-237.994667 237.994667-60.010667-60.010667 237.994667-237.994667-237.994667-237.994667 60.010667-60.010667 237.994667 237.994667 237.994667-237.994667z"}})])},Ew=[],bw=void 0,yw=void 0,Aw=void 0,Sw=!1,kw=jt({render:Dw,staticRenderFns:Ew},bw,{},yw,Sw,Aw,!1,void 0,void 0,void 0),vw={props:{type:String,disabled:Boolean},inject:{prefixClass:{default:"mx"}}},Rw=vw,Nw=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("button",e._g({class:[e.prefixClass+"-btn "+e.prefixClass+"-btn-text "+e.prefixClass+"-btn-icon-"+e.type,{disabled:e.disabled}],attrs:{type:"button",disabled:e.disabled}},e.$listeners),[a("i",{class:e.prefixClass+"-icon-"+e.type})])},ww=[],Ow=void 0,xw=void 0,Bw=void 0,Cw=!1,Vu=jt({render:Nw,staticRenderFns:ww},Ow,Rw,xw,Cw,Bw,!1,void 0,void 0,void 0),Mw={name:"TableDate",components:{IconButton:Vu},inject:{getLocale:{default:function(){return pn}},getWeek:{default:function(){return Hu}},prefixClass:{default:"mx"},onDateMouseEnter:{default:void 0},onDateMouseLeave:{default:void 0}},props:{disabledCalendarChanger:{type:Function,default:function(){return!1}},calendar:{type:Date,default:function(){return new Date}},showWeekNumber:{type:Boolean,default:!1},titleFormat:{type:String,default:"YYYY-MM-DD"},getRowClasses:{type:Function,default:function(){return[]}},getCellClasses:{type:Function,default:function(){return[]}}},computed:{firstDayOfWeek:function(){return this.getLocale().formatLocale.firstDayOfWeek||0},yearMonth:function(){var e=this.getLocale(),t=e.yearFormat,a=e.monthBeforeYear,i=e.monthFormat,n=i===void 0?"MMM":i,r={panel:"year",label:this.formatDate(this.calendar,t)},o={panel:"month",label:this.formatDate(this.calendar,n)};return a?[o,r]:[r,o]},days:function(){var e=this.getLocale(),t=e.days||e.formatLocale.weekdaysMin;return t.concat(t).slice(this.firstDayOfWeek,this.firstDayOfWeek+7)},dates:function(){var e=this.calendar.getFullYear(),t=this.calendar.getMonth(),a=GN({firstDayOfWeek:this.firstDayOfWeek,year:e,month:t});return zu(a,7)}},methods:{isDisabledArrows:function(e){var t=new Date(this.calendar);switch(e){case"last-year":t.setFullYear(t.getFullYear()-1,t.getMonth()+1,0),t.setHours(23,59,59,999);break;case"next-year":t.setFullYear(t.getFullYear()+1);break;case"last-month":t.setMonth(t.getMonth(),0),t.setHours(23,59,59,999);break;case"next-month":t.setMonth(t.getMonth()+1);break}return this.disabledCalendarChanger(t,e)},handleIconLeftClick:function(){this.$emit("changecalendar",wl(this.calendar,function(e){return e-1}),"last-month")},handleIconRightClick:function(){this.$emit("changecalendar",wl(this.calendar,function(e){return e+1}),"next-month")},handleIconDoubleLeftClick:function(){this.$emit("changecalendar",Fn(this.calendar,function(e){return e-1}),"last-year")},handleIconDoubleRightClick:function(){this.$emit("changecalendar",Fn(this.calendar,function(e){return e+1}),"next-year")},handlePanelChange:function(e){this.$emit("changepanel",e)},handleMouseEnter:function(e){typeof this.onDateMouseEnter=="function"&&this.onDateMouseEnter(e)},handleMouseLeave:function(e){typeof this.onDateMouseLeave=="function"&&this.onDateMouseLeave(e)},handleCellClick:function(e){var t=e.target;t.tagName.toUpperCase()==="DIV"&&(t=t.parentNode);var a=t.getAttribute("data-row-col");if(a){var i=a.split(",").map(function(l){return parseInt(l,10)}),n=t0(i,2),r=n[0],o=n[1],s=this.dates[r][o];this.$emit("select",new Date(s))}},formatDate:function(e,t){return Uo(e,t,{locale:this.getLocale().formatLocale})},getCellTitle:function(e){var t=this.titleFormat;return this.formatDate(e,t)},getWeekNumber:function(e){return this.getWeek(e,this.getLocale().formatLocale)}}},Yw=Mw,Lw=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:e.prefixClass+"-calendar "+e.prefixClass+"-calendar-panel-date"},[a("div",{class:e.prefixClass+"-calendar-header"},[a("icon-button",{attrs:{type:"double-left",disabled:e.isDisabledArrows("last-year")},on:{click:e.handleIconDoubleLeftClick}}),e._v(" "),a("icon-button",{attrs:{type:"left",disabled:e.isDisabledArrows("last-month")},on:{click:e.handleIconLeftClick}}),e._v(" "),a("icon-button",{attrs:{type:"double-right",disabled:e.isDisabledArrows("next-year")},on:{click:e.handleIconDoubleRightClick}}),e._v(" "),a("icon-button",{attrs:{type:"right",disabled:e.isDisabledArrows("next-month")},on:{click:e.handleIconRightClick}}),e._v(" "),a("span",{class:e.prefixClass+"-calendar-header-label"},e._l(e.yearMonth,function(i){return a("button",{key:i.panel,class:e.prefixClass+"-btn "+e.prefixClass+"-btn-text "+e.prefixClass+"-btn-current-"+i.panel,attrs:{type:"button"},on:{click:function(n){return e.handlePanelChange(i.panel)}}},[e._v(` `+e._s(i.label)+` `)])}),0)],1),e._v(" "),a("div",{class:e.prefixClass+"-calendar-content"},[a("table",{class:e.prefixClass+"-table "+e.prefixClass+"-table-date"},[a("thead",[a("tr",[e.showWeekNumber?a("th",{class:e.prefixClass+"-week-number-header"}):e._e(),e._v(" "),e._l(e.days,function(i){return a("th",{key:i},[e._v(e._s(i))])})],2)]),e._v(" "),a("tbody",{on:{click:e.handleCellClick}},e._l(e.dates,function(i,n){return a("tr",{key:n,class:[e.prefixClass+"-date-row",e.getRowClasses(i)]},[e.showWeekNumber?a("td",{class:e.prefixClass+"-week-number",attrs:{"data-row-col":n+",0"}},[e._v(` `+e._s(e.getWeekNumber(i[0]))+` - `)]):e._e(),e._v(" "),e._l(i,function(r,o){return a("td",{key:o,staticClass:"cell",class:e.getCellClasses(r),attrs:{"data-row-col":n+","+o,title:e.getCellTitle(r)},on:{mouseenter:function(s){return e.handleMouseEnter(r)},mouseleave:function(s){return e.handleMouseLeave(r)}}},[a("div",[e._v(e._s(r.getDate()))])])})],2)}),0)])])])},RS=[],NS=void 0,wS=void 0,OS=void 0,xS=!1,BS=jt({render:vS,staticRenderFns:RS},NS,kS,wS,xS,OS,!1,void 0,void 0,void 0),CS={name:"TableMonth",components:{IconButton:wu},inject:{getLocale:{default:function(){return mn}},prefixClass:{default:"mx"}},props:{disabledCalendarChanger:{type:Function,default:function(){return!1}},calendar:{type:Date,default:function(){return new Date}},getCellClasses:{type:Function,default:function(){return[]}}},computed:{calendarYear:function(){return this.calendar.getFullYear()},months:function(){var e=this.getLocale(),t=e.months||e.formatLocale.monthsShort,a=t.map(function(i,n){return{text:i,month:n}});return Nu(a,3)}},methods:{isDisabledArrows:function(e){var t=new Date(this.calendar);switch(e){case"last-year":t.setFullYear(t.getFullYear()-1,11,31),t.setHours(23,59,59,999);break;case"next-year":t.setFullYear(t.getFullYear()+1,0,1);break}return this.disabledCalendarChanger(t,e)},handleIconDoubleLeftClick:function(){this.$emit("changecalendar",_n(this.calendar,function(e){return e-1}),"last-year")},handleIconDoubleRightClick:function(){this.$emit("changecalendar",_n(this.calendar,function(e){return e+1}),"next-year")},handlePanelChange:function(){this.$emit("changepanel","year")},handleClick:function(e){var t=e.target;t.tagName.toUpperCase()==="DIV"&&(t=t.parentNode);var a=t.getAttribute("data-month");a&&!t.classList.contains("disabled")&&this.$emit("select",parseInt(a,10))}}},MS=CS,YS=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:e.prefixClass+"-calendar "+e.prefixClass+"-calendar-panel-month"},[a("div",{class:e.prefixClass+"-calendar-header"},[a("icon-button",{attrs:{type:"double-left",disabled:e.isDisabledArrows("last-year")},on:{click:e.handleIconDoubleLeftClick}}),e._v(" "),a("icon-button",{attrs:{type:"double-right",disabled:e.isDisabledArrows("next-year")},on:{click:e.handleIconDoubleRightClick}}),e._v(" "),a("span",{class:e.prefixClass+"-calendar-header-label"},[a("button",{class:e.prefixClass+"-btn "+e.prefixClass+"-btn-text",attrs:{type:"button"},on:{click:e.handlePanelChange}},[e._v(` + `)]):e._e(),e._v(" "),e._l(i,function(r,o){return a("td",{key:o,staticClass:"cell",class:e.getCellClasses(r),attrs:{"data-row-col":n+","+o,title:e.getCellTitle(r)},on:{mouseenter:function(s){return e.handleMouseEnter(r)},mouseleave:function(s){return e.handleMouseLeave(r)}}},[a("div",[e._v(e._s(r.getDate()))])])})],2)}),0)])])])},Zw=[],Iw=void 0,jw=void 0,Pw=void 0,Gw=!1,Uw=jt({render:Lw,staticRenderFns:Zw},Iw,Yw,jw,Gw,Pw,!1,void 0,void 0,void 0),qw={name:"TableMonth",components:{IconButton:Vu},inject:{getLocale:{default:function(){return pn}},prefixClass:{default:"mx"}},props:{disabledCalendarChanger:{type:Function,default:function(){return!1}},calendar:{type:Date,default:function(){return new Date}},getCellClasses:{type:Function,default:function(){return[]}}},computed:{calendarYear:function(){return this.calendar.getFullYear()},months:function(){var e=this.getLocale(),t=e.months||e.formatLocale.monthsShort,a=t.map(function(i,n){return{text:i,month:n}});return zu(a,3)}},methods:{isDisabledArrows:function(e){var t=new Date(this.calendar);switch(e){case"last-year":t.setFullYear(t.getFullYear()-1,11,31),t.setHours(23,59,59,999);break;case"next-year":t.setFullYear(t.getFullYear()+1,0,1);break}return this.disabledCalendarChanger(t,e)},handleIconDoubleLeftClick:function(){this.$emit("changecalendar",Fn(this.calendar,function(e){return e-1}),"last-year")},handleIconDoubleRightClick:function(){this.$emit("changecalendar",Fn(this.calendar,function(e){return e+1}),"next-year")},handlePanelChange:function(){this.$emit("changepanel","year")},handleClick:function(e){var t=e.target;t.tagName.toUpperCase()==="DIV"&&(t=t.parentNode);var a=t.getAttribute("data-month");a&&!t.classList.contains("disabled")&&this.$emit("select",parseInt(a,10))}}},Hw=qw,zw=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:e.prefixClass+"-calendar "+e.prefixClass+"-calendar-panel-month"},[a("div",{class:e.prefixClass+"-calendar-header"},[a("icon-button",{attrs:{type:"double-left",disabled:e.isDisabledArrows("last-year")},on:{click:e.handleIconDoubleLeftClick}}),e._v(" "),a("icon-button",{attrs:{type:"double-right",disabled:e.isDisabledArrows("next-year")},on:{click:e.handleIconDoubleRightClick}}),e._v(" "),a("span",{class:e.prefixClass+"-calendar-header-label"},[a("button",{class:e.prefixClass+"-btn "+e.prefixClass+"-btn-text",attrs:{type:"button"},on:{click:e.handlePanelChange}},[e._v(` `+e._s(e.calendarYear)+` - `)])])],1),e._v(" "),a("div",{class:e.prefixClass+"-calendar-content"},[a("table",{class:e.prefixClass+"-table "+e.prefixClass+"-table-month",on:{click:e.handleClick}},e._l(e.months,function(i,n){return a("tr",{key:n},e._l(i,function(r,o){return a("td",{key:o,staticClass:"cell",class:e.getCellClasses(r.month),attrs:{"data-month":r.month}},[a("div",[e._v(e._s(r.text))])])}),0)}),0)])])},LS=[],ZS=void 0,IS=void 0,jS=void 0,PS=!1,GS=jt({render:YS,staticRenderFns:LS},ZS,MS,IS,PS,jS,!1,void 0,void 0,void 0),US={name:"TableYear",components:{IconButton:wu},inject:{prefixClass:{default:"mx"}},props:{disabledCalendarChanger:{type:Function,default:function(){return!1}},calendar:{type:Date,default:function(){return new Date}},getCellClasses:{type:Function,default:function(){return[]}},getYearPanel:{type:Function}},computed:{years:function(){var e=new Date(this.calendar);return typeof this.getYearPanel=="function"?this.getYearPanel(e):this.getYears(e)},firstYear:function(){return this.years[0][0]},lastYear:function(){var e=function(t){return t[t.length-1]};return e(e(this.years))}},methods:{isDisabledArrows:function(e){var t=new Date(this.calendar);switch(e){case"last-decade":t.setFullYear(this.firstYear-1,11,31),t.setHours(23,59,59,999);break;case"next-decade":t.setFullYear(this.lastYear+1,0,1);break}return this.disabledCalendarChanger(t,e)},getYears:function(e){for(var t=Math.floor(e.getFullYear()/10)*10,a=[],i=0;i<10;i++)a.push(t+i);return Nu(a,2)},handleIconDoubleLeftClick:function(){this.$emit("changecalendar",_n(this.calendar,function(e){return e-10}),"last-decade")},handleIconDoubleRightClick:function(){this.$emit("changecalendar",_n(this.calendar,function(e){return e+10}),"next-decade")},handleClick:function(e){var t=e.target;t.tagName.toUpperCase()==="DIV"&&(t=t.parentNode);var a=t.getAttribute("data-year");a&&!t.classList.contains("disabled")&&this.$emit("select",parseInt(a,10))}}},qS=US,HS=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:e.prefixClass+"-calendar "+e.prefixClass+"-calendar-panel-year"},[a("div",{class:e.prefixClass+"-calendar-header"},[a("icon-button",{attrs:{type:"double-left",disabled:e.isDisabledArrows("last-decade")},on:{click:e.handleIconDoubleLeftClick}}),e._v(" "),a("icon-button",{attrs:{type:"double-right",disabled:e.isDisabledArrows("next-decade")},on:{click:e.handleIconDoubleRightClick}}),e._v(" "),a("span",{class:e.prefixClass+"-calendar-header-label"},[a("span",[e._v(e._s(e.firstYear))]),e._v(" "),a("span",{class:e.prefixClass+"-calendar-decade-separator"}),e._v(" "),a("span",[e._v(e._s(e.lastYear))])])],1),e._v(" "),a("div",{class:e.prefixClass+"-calendar-content"},[a("table",{class:e.prefixClass+"-table "+e.prefixClass+"-table-year",on:{click:e.handleClick}},e._l(e.years,function(i,n){return a("tr",{key:n},e._l(i,function(r,o){return a("td",{key:o,staticClass:"cell",class:e.getCellClasses(r),attrs:{"data-year":r}},[a("div",[e._v(e._s(r))])])}),0)}),0)])])},zS=[],VS=void 0,$S=void 0,WS=void 0,QS=!1,JS=jt({render:HS,staticRenderFns:zS},VS,qS,$S,QS,WS,!1,void 0,void 0,void 0),yi={name:"CalendarPanel",inject:{prefixClass:{default:"mx"},dispatchDatePicker:{default:function(){return function(){}}}},props:{value:{},defaultValue:{default:function(){var e=new Date;return e.setHours(0,0,0,0),e}},defaultPanel:{type:String},disabledCalendarChanger:{type:Function,default:function(){return!1}},disabledDate:{type:Function,default:function(){return!1}},type:{type:String,default:"date"},getClasses:{type:Function,default:function(){return[]}},showWeekNumber:{type:Boolean,default:void 0},getYearPanel:{type:Function},titleFormat:{type:String,default:"YYYY-MM-DD"},calendar:Date,partialUpdate:{type:Boolean,default:!1}},data:function(){var e=["date","month","year"],t=Math.max(e.indexOf(this.type),e.indexOf(this.defaultPanel)),a=t!==-1?e[t]:"date";return{panel:a,innerCalendar:new Date}},computed:{innerValue:function(){var e=Array.isArray(this.value)?this.value:[this.value],t={year:wA,month:ml,date:OA},a=t[this.type]||t.date;return e.filter(ya).map(function(i){return a(i)})},calendarYear:function(){return this.innerCalendar.getFullYear()},calendarMonth:function(){return this.innerCalendar.getMonth()}},watch:{value:{immediate:!0,handler:"initCalendar"},calendar:{handler:"initCalendar"},defaultValue:{handler:"initCalendar"}},methods:{initCalendar:function(){var e=this.calendar;if(!ya(e)){var t=this.innerValue.length;e=gn(t>0?this.innerValue[t-1]:this.defaultValue)}this.innerCalendar=ml(e)},isDisabled:function(e){return this.disabledDate(new Date(e),this.innerValue)},emitDate:function(e,t){this.isDisabled(e)||(this.$emit("select",e,t,this.innerValue),this.dispatchDatePicker("pick",e,t))},handleCalendarChange:function(e,t){var a=new Date(this.innerCalendar);this.innerCalendar=e,this.$emit("update:calendar",e),this.dispatchDatePicker("calendar-change",e,a,t)},handelPanelChange:function(e){var t=this.panel;this.panel=e,this.dispatchDatePicker("panel-change",e,t)},handleSelectYear:function(e){if(this.type==="year"){var t=this.getYearCellDate(e);this.emitDate(t,"year")}else if(this.handleCalendarChange(Fa(e,this.calendarMonth),"year"),this.handelPanelChange("month"),this.partialUpdate&&this.innerValue.length===1){var a=new Date(this.innerValue[0]);a.setFullYear(e),this.emitDate(a,"year")}},handleSelectMonth:function(e){if(this.type==="month"){var t=this.getMonthCellDate(e);this.emitDate(t,"month")}else if(this.handleCalendarChange(Fa(this.calendarYear,e),"month"),this.handelPanelChange("date"),this.partialUpdate&&this.innerValue.length===1){var a=new Date(this.innerValue[0]);a.setFullYear(this.calendarYear),this.emitDate(pl(a,e),"month")}},handleSelectDate:function(e){this.emitDate(e,this.type==="week"?"week":"date")},getMonthCellDate:function(e){return Fa(this.calendarYear,e)},getYearCellDate:function(e){return Fa(e,0)},getDateClasses:function(e){var t=e.getMonth()!==this.calendarMonth,a=[];e.getTime()===new Date().setHours(0,0,0,0)&&a.push("today"),t&&a.push("not-current-month");var i=this.getStateClass(e);return i==="active"&&t||a.push(i),a.concat(this.getClasses(e,this.innerValue,a.join(" ")))},getMonthClasses:function(e){var t=[];if(this.type!=="month"){this.calendarMonth===e&&t.push("active");var a=this.getMonthCellDate(e);return this.disabledCalendarChanger(a,"month")&&t.push("disabled"),t}var i=this.getMonthCellDate(e);return t.push(this.getStateClass(i)),t.concat(this.getClasses(i,this.innerValue,t.join(" ")))},getYearClasses:function(e){var t=[];if(this.type!=="year"){this.calendarYear===e&&t.push("active");var a=this.getYearCellDate(e);return this.disabledCalendarChanger(a,"year")&&t.push("disabled"),t}var i=this.getYearCellDate(e);return t.push(this.getStateClass(i)),t.concat(this.getClasses(i,this.innerValue,t.join(" ")))},getStateClass:function(e){return this.isDisabled(e)?"disabled":this.innerValue.some(function(t){return t.getTime()===e.getTime()})?"active":""},getWeekState:function(e){if(this.type!=="week")return"";var t=e[0].getTime(),a=e[6].getTime(),i=this.innerValue.some(function(n){var r=n.getTime();return r>=t&&r<=a});return i?"".concat(this.prefixClass,"-active-week"):""}},render:function(){var e=arguments[0],t=this.panel,a=this.innerCalendar;return t==="year"?e(JS,{attrs:{disabledCalendarChanger:this.disabledCalendarChanger,calendar:a,getCellClasses:this.getYearClasses,getYearPanel:this.getYearPanel},on:{select:this.handleSelectYear,changecalendar:this.handleCalendarChange}}):t==="month"?e(GS,{attrs:{disabledCalendarChanger:this.disabledCalendarChanger,calendar:a,getCellClasses:this.getMonthClasses},on:{select:this.handleSelectMonth,changepanel:this.handelPanelChange,changecalendar:this.handleCalendarChange}}):e(BS,{attrs:{disabledCalendarChanger:this.disabledCalendarChanger,calendar:a,getCellClasses:this.getDateClasses,getRowClasses:this.getWeekState,titleFormat:this.titleFormat,showWeekNumber:typeof this.showWeekNumber=="boolean"?this.showWeekNumber:this.type==="week"},class:Di({},"".concat(this.prefixClass,"-calendar-week-mode"),this.type==="week"),on:{select:this.handleSelectDate,changepanel:this.handelPanelChange,changecalendar:this.handleCalendarChange}})}},Jn={name:"CalendarRange",components:{CalendarPanel:yi},provide:function(){return{onDateMouseEnter:this.onDateMouseEnter,onDateMouseLeave:this.onDateMouseLeave}},inject:{prefixClass:{default:"mx"}},props:je({},yi.props),data:function(){return{innerValue:[],calendars:[],hoveredValue:null}},computed:{calendarMinDiff:function(){var e={date:1,month:12,year:120};return e[this.type]||e.date},calendarMaxDiff:function(){return 1/0},defaultValues:function(){return Array.isArray(this.defaultValue)?this.defaultValue:[this.defaultValue,this.defaultValue]}},watch:{value:{immediate:!0,handler:function(){var e=this;this.innerValue=Yo(this.value)?this.value:[new Date(NaN),new Date(NaN)];var t=this.innerValue.map(function(a,i){return ml(gn(a,e.defaultValues[i]))});this.updateCalendars(t)}}},methods:{handleSelect:function(e,t){var a=Qn(this.innerValue,2),i=a[0],n=a[1];ya(i)&&!ya(n)?(i.getTime()>e.getTime()?this.innerValue=[e,i]:this.innerValue=[i,e],this.emitDate(this.innerValue,t)):this.innerValue=[e,new Date(NaN)]},onDateMouseEnter:function(e){this.hoveredValue=e},onDateMouseLeave:function(){this.hoveredValue=null},emitDate:function(e,t){this.$emit("select",e,t)},updateStartCalendar:function(e){this.updateCalendars([e,this.calendars[1]],1)},updateEndCalendar:function(e){this.updateCalendars([this.calendars[0],e],0)},updateCalendars:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,a=this.getCalendarGap(e);if(a){var i=new Date(e[t]);i.setMonth(i.getMonth()+(t===0?-a:a)),e[t]=i}this.calendars=e},getCalendarGap:function(e){var t=Qn(e,2),a=t[0],i=t[1],n=i.getFullYear()-a.getFullYear(),r=i.getMonth()-a.getMonth(),o=n*12+r,s=this.calendarMinDiff,l=this.calendarMaxDiff;return ol?l-o:0},getRangeClasses:function(e,t,a){var i=[].concat(this.getClasses(e,t,a));if(/disabled|active/.test(a))return i;var n=function(r,o){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(_){return _.getTime()},l=s(r),d=o.map(s),u=Qn(d,2),c=u[0],f=u[1];if(c>f){var h=[f,c];c=h[0],f=h[1]}return l>c&&l"u")return 0;if(H0!==void 0)return H0;var e=document.createElement("div");e.style.visibility="hidden",e.style.overflow="scroll",e.style.width="100px",e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e);var t=document.createElement("div");return t.style.width="100%",e.appendChild(t),H0=e.offsetWidth-t.offsetWidth,e.parentNode.removeChild(e),H0}var XS={inject:{prefixClass:{default:"mx"}},data:function(){return{scrollbarWidth:0,thumbTop:"",thumbHeight:""}},created:function(){this.scrollbarWidth=KS(),document.addEventListener("mouseup",this.handleDragend)},beforeDestroy:function(){document.addEventListener("mouseup",this.handleDragend)},mounted:function(){this.$nextTick(this.getThumbSize)},methods:{getThumbSize:function(){var e=this.$refs.wrap;if(e){var t=e.clientHeight*100/e.scrollHeight;this.thumbHeight=t<100?"".concat(t,"%"):""}},handleScroll:function(e){var t=e.currentTarget,a=t.scrollHeight,i=t.scrollTop;this.thumbTop="".concat(i*100/a,"%")},handleDragstart:function(e){e.stopImmediatePropagation(),this._draggable=!0;var t=this.$refs.thumb.offsetTop;this._prevY=e.clientY-t,document.addEventListener("mousemove",this.handleDraging)},handleDraging:function(e){if(this._draggable){var t=e.clientY,a=this.$refs.wrap,i=a.scrollHeight,n=a.clientHeight,r=t-this._prevY,o=r*i/n;a.scrollTop=o}},handleDragend:function(){this._draggable&&(this._draggable=!1,document.removeEventListener("mousemove",this.handleDraging))}}},e6=XS,t6=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:e.prefixClass+"-scrollbar",style:{position:"relative",overflow:"hidden"}},[a("div",{ref:"wrap",class:e.prefixClass+"-scrollbar-wrap",style:{marginRight:"-"+e.scrollbarWidth+"px"},on:{scroll:e.handleScroll}},[e._t("default")],2),e._v(" "),a("div",{class:e.prefixClass+"-scrollbar-track"},[a("div",{ref:"thumb",class:e.prefixClass+"-scrollbar-thumb",style:{height:e.thumbHeight,top:e.thumbTop},on:{mousedown:e.handleDragstart}})])])},a6=[],i6=void 0,n6=void 0,r6=void 0,o6=!1,Sg=jt({render:t6,staticRenderFns:a6},i6,e6,n6,o6,r6,!1,void 0,void 0,void 0),_s=function(e){return e=parseInt(e,10),e<10?"0".concat(e):"".concat(e)},Fs=function(e,t,a){if(Array.isArray(a))return a.filter(function(r){return r>=0&&r2&&arguments[2]!==void 0?arguments[2]:0;if(i<=0){requestAnimationFrame(function(){t.scrollTop=a});return}var n=a-t.scrollTop,r=n/i*10;requestAnimationFrame(function(){var o=t.scrollTop+r;if(o>=a){t.scrollTop=a;return}t.scrollTop=o,e(t,a,i-10)})},l6={name:"ListColumns",components:{ScrollbarVertical:Sg},inject:{prefixClass:{default:"mx"}},props:{date:Date,scrollDuration:{type:Number,default:100},getClasses:{type:Function,default:function(){return[]}},hourOptions:Array,minuteOptions:Array,secondOptions:Array,showHour:{type:Boolean,default:!0},showMinute:{type:Boolean,default:!0},showSecond:{type:Boolean,default:!0},hourStep:{type:Number,default:1},minuteStep:{type:Number,default:1},secondStep:{type:Number,default:1},use12h:{type:Boolean,default:!1}},computed:{columns:function(){var e=[];return this.showHour&&e.push({type:"hour",list:this.getHoursList()}),this.showMinute&&e.push({type:"minute",list:this.getMinutesList()}),this.showSecond&&e.push({type:"second",list:this.getSecondsList()}),this.use12h&&e.push({type:"ampm",list:this.getAMPMList()}),e.filter(function(t){return t.list.length>0})}},watch:{date:{handler:function(){var e=this;this.$nextTick(function(){e.scrollToSelected(e.scrollDuration)})}}},mounted:function(){this.scrollToSelected(0)},methods:{getHoursList:function(){var e=this;return Fs(this.use12h?12:24,this.hourStep,this.hourOptions).map(function(t){var a=new Date(e.date),i=_s(t);e.use12h&&(t===0&&(i="12"),a.getHours()>=12&&(t+=12));var n=a.setHours(t);return{value:n,text:i}})},getMinutesList:function(){var e=this;return Fs(60,this.minuteStep,this.minuteOptions).map(function(t){var a=new Date(e.date).setMinutes(t);return{value:a,text:_s(t)}})},getSecondsList:function(){var e=this;return Fs(60,this.secondStep,this.secondOptions).map(function(t){var a=new Date(e.date).setSeconds(t);return{value:a,text:_s(t)}})},getAMPMList:function(){var e=this;return["AM","PM"].map(function(t,a){var i=new Date(e.date),n=i.setHours(i.getHours()%12+a*12);return{text:t,value:n}})},scrollToSelected:function(e){for(var t=this.$el.querySelectorAll(".active"),a=0;a0?this.innerValue[t-1]:this.defaultValue)}this.innerCalendar=Nl(e)},isDisabled:function(e){return this.disabledDate(new Date(e),this.innerValue)},emitDate:function(e,t){this.isDisabled(e)||(this.$emit("select",e,t,this.innerValue),this.dispatchDatePicker("pick",e,t))},handleCalendarChange:function(e,t){var a=new Date(this.innerCalendar);this.innerCalendar=e,this.$emit("update:calendar",e),this.dispatchDatePicker("calendar-change",e,a,t)},handelPanelChange:function(e){var t=this.panel;this.panel=e,this.dispatchDatePicker("panel-change",e,t)},handleSelectYear:function(e){if(this.type==="year"){var t=this.getYearCellDate(e);this.emitDate(t,"year")}else if(this.handleCalendarChange(ma(e,this.calendarMonth),"year"),this.handelPanelChange("month"),this.partialUpdate&&this.innerValue.length===1){var a=new Date(this.innerValue[0]);a.setFullYear(e),this.emitDate(a,"year")}},handleSelectMonth:function(e){if(this.type==="month"){var t=this.getMonthCellDate(e);this.emitDate(t,"month")}else if(this.handleCalendarChange(ma(this.calendarYear,e),"month"),this.handelPanelChange("date"),this.partialUpdate&&this.innerValue.length===1){var a=new Date(this.innerValue[0]);a.setFullYear(this.calendarYear),this.emitDate(wl(a,e),"month")}},handleSelectDate:function(e){this.emitDate(e,this.type==="week"?"week":"date")},getMonthCellDate:function(e){return ma(this.calendarYear,e)},getYearCellDate:function(e){return ma(e,0)},getDateClasses:function(e){var t=e.getMonth()!==this.calendarMonth,a=[];e.getTime()===new Date().setHours(0,0,0,0)&&a.push("today"),t&&a.push("not-current-month");var i=this.getStateClass(e);return i==="active"&&t||a.push(i),a.concat(this.getClasses(e,this.innerValue,a.join(" ")))},getMonthClasses:function(e){var t=[];if(this.type!=="month"){this.calendarMonth===e&&t.push("active");var a=this.getMonthCellDate(e);return this.disabledCalendarChanger(a,"month")&&t.push("disabled"),t}var i=this.getMonthCellDate(e);return t.push(this.getStateClass(i)),t.concat(this.getClasses(i,this.innerValue,t.join(" ")))},getYearClasses:function(e){var t=[];if(this.type!=="year"){this.calendarYear===e&&t.push("active");var a=this.getYearCellDate(e);return this.disabledCalendarChanger(a,"year")&&t.push("disabled"),t}var i=this.getYearCellDate(e);return t.push(this.getStateClass(i)),t.concat(this.getClasses(i,this.innerValue,t.join(" ")))},getStateClass:function(e){return this.isDisabled(e)?"disabled":this.innerValue.some(function(t){return t.getTime()===e.getTime()})?"active":""},getWeekState:function(e){if(this.type!=="week")return"";var t=e[0].getTime(),a=e[6].getTime(),i=this.innerValue.some(function(n){var r=n.getTime();return r>=t&&r<=a});return i?"".concat(this.prefixClass,"-active-week"):""}},render:function(){var e=arguments[0],t=this.panel,a=this.innerCalendar;return t==="year"?e(sO,{attrs:{disabledCalendarChanger:this.disabledCalendarChanger,calendar:a,getCellClasses:this.getYearClasses,getYearPanel:this.getYearPanel},on:{select:this.handleSelectYear,changecalendar:this.handleCalendarChange}}):t==="month"?e(Kw,{attrs:{disabledCalendarChanger:this.disabledCalendarChanger,calendar:a,getCellClasses:this.getMonthClasses},on:{select:this.handleSelectMonth,changepanel:this.handelPanelChange,changecalendar:this.handleCalendarChange}}):e(Uw,{attrs:{disabledCalendarChanger:this.disabledCalendarChanger,calendar:a,getCellClasses:this.getDateClasses,getRowClasses:this.getWeekState,titleFormat:this.titleFormat,showWeekNumber:typeof this.showWeekNumber=="boolean"?this.showWeekNumber:this.type==="week"},class:Di({},"".concat(this.prefixClass,"-calendar-week-mode"),this.type==="week"),on:{select:this.handleSelectDate,changepanel:this.handelPanelChange,changecalendar:this.handleCalendarChange}})}},a0={name:"CalendarRange",components:{CalendarPanel:Ai},provide:function(){return{onDateMouseEnter:this.onDateMouseEnter,onDateMouseLeave:this.onDateMouseLeave}},inject:{prefixClass:{default:"mx"}},props:je({},Ai.props),data:function(){return{innerValue:[],calendars:[],hoveredValue:null}},computed:{calendarMinDiff:function(){var e={date:1,month:12,year:120};return e[this.type]||e.date},calendarMaxDiff:function(){return 1/0},defaultValues:function(){return Array.isArray(this.defaultValue)?this.defaultValue:[this.defaultValue,this.defaultValue]}},watch:{value:{immediate:!0,handler:function(){var e=this;this.innerValue=qo(this.value)?this.value:[new Date(NaN),new Date(NaN)];var t=this.innerValue.map(function(a,i){return Nl(_n(a,e.defaultValues[i]))});this.updateCalendars(t)}}},methods:{handleSelect:function(e,t){var a=t0(this.innerValue,2),i=a[0],n=a[1];Aa(i)&&!Aa(n)?(i.getTime()>e.getTime()?this.innerValue=[e,i]:this.innerValue=[i,e],this.emitDate(this.innerValue,t)):this.innerValue=[e,new Date(NaN)]},onDateMouseEnter:function(e){this.hoveredValue=e},onDateMouseLeave:function(){this.hoveredValue=null},emitDate:function(e,t){this.$emit("select",e,t)},updateStartCalendar:function(e){this.updateCalendars([e,this.calendars[1]],1)},updateEndCalendar:function(e){this.updateCalendars([this.calendars[0],e],0)},updateCalendars:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,a=this.getCalendarGap(e);if(a){var i=new Date(e[t]);i.setMonth(i.getMonth()+(t===0?-a:a)),e[t]=i}this.calendars=e},getCalendarGap:function(e){var t=t0(e,2),a=t[0],i=t[1],n=i.getFullYear()-a.getFullYear(),r=i.getMonth()-a.getMonth(),o=n*12+r,s=this.calendarMinDiff,l=this.calendarMaxDiff;return ol?l-o:0},getRangeClasses:function(e,t,a){var i=[].concat(this.getClasses(e,t,a));if(/disabled|active/.test(a))return i;var n=function(r,o){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(_){return _.getTime()},l=s(r),d=o.map(s),u=t0(d,2),c=u[0],f=u[1];if(c>f){var h=[f,c];c=h[0],f=h[1]}return l>c&&l"u")return 0;if(Q0!==void 0)return Q0;var e=document.createElement("div");e.style.visibility="hidden",e.style.overflow="scroll",e.style.width="100px",e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e);var t=document.createElement("div");return t.style.width="100%",e.appendChild(t),Q0=e.offsetWidth-t.offsetWidth,e.parentNode.removeChild(e),Q0}var uO={inject:{prefixClass:{default:"mx"}},data:function(){return{scrollbarWidth:0,thumbTop:"",thumbHeight:""}},created:function(){this.scrollbarWidth=lO(),document.addEventListener("mouseup",this.handleDragend)},beforeDestroy:function(){document.addEventListener("mouseup",this.handleDragend)},mounted:function(){this.$nextTick(this.getThumbSize)},methods:{getThumbSize:function(){var e=this.$refs.wrap;if(e){var t=e.clientHeight*100/e.scrollHeight;this.thumbHeight=t<100?"".concat(t,"%"):""}},handleScroll:function(e){var t=e.currentTarget,a=t.scrollHeight,i=t.scrollTop;this.thumbTop="".concat(i*100/a,"%")},handleDragstart:function(e){e.stopImmediatePropagation(),this._draggable=!0;var t=this.$refs.thumb.offsetTop;this._prevY=e.clientY-t,document.addEventListener("mousemove",this.handleDraging)},handleDraging:function(e){if(this._draggable){var t=e.clientY,a=this.$refs.wrap,i=a.scrollHeight,n=a.clientHeight,r=t-this._prevY,o=r*i/n;a.scrollTop=o}},handleDragend:function(){this._draggable&&(this._draggable=!1,document.removeEventListener("mousemove",this.handleDraging))}}},dO=uO,cO=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:e.prefixClass+"-scrollbar",style:{position:"relative",overflow:"hidden"}},[a("div",{ref:"wrap",class:e.prefixClass+"-scrollbar-wrap",style:{marginRight:"-"+e.scrollbarWidth+"px"},on:{scroll:e.handleScroll}},[e._t("default")],2),e._v(" "),a("div",{class:e.prefixClass+"-scrollbar-track"},[a("div",{ref:"thumb",class:e.prefixClass+"-scrollbar-thumb",style:{height:e.thumbHeight,top:e.thumbTop},on:{mousedown:e.handleDragstart}})])])},hO=[],fO=void 0,gO=void 0,_O=void 0,FO=!1,E_=jt({render:cO,staticRenderFns:hO},fO,dO,gO,FO,_O,!1,void 0,void 0,void 0),ws=function(e){return e=parseInt(e,10),e<10?"0".concat(e):"".concat(e)},Os=function(e,t,a){if(Array.isArray(a))return a.filter(function(r){return r>=0&&r2&&arguments[2]!==void 0?arguments[2]:0;if(i<=0){requestAnimationFrame(function(){t.scrollTop=a});return}var n=a-t.scrollTop,r=n/i*10;requestAnimationFrame(function(){var o=t.scrollTop+r;if(o>=a){t.scrollTop=a;return}t.scrollTop=o,e(t,a,i-10)})},pO={name:"ListColumns",components:{ScrollbarVertical:E_},inject:{prefixClass:{default:"mx"}},props:{date:Date,scrollDuration:{type:Number,default:100},getClasses:{type:Function,default:function(){return[]}},hourOptions:Array,minuteOptions:Array,secondOptions:Array,showHour:{type:Boolean,default:!0},showMinute:{type:Boolean,default:!0},showSecond:{type:Boolean,default:!0},hourStep:{type:Number,default:1},minuteStep:{type:Number,default:1},secondStep:{type:Number,default:1},use12h:{type:Boolean,default:!1}},computed:{columns:function(){var e=[];return this.showHour&&e.push({type:"hour",list:this.getHoursList()}),this.showMinute&&e.push({type:"minute",list:this.getMinutesList()}),this.showSecond&&e.push({type:"second",list:this.getSecondsList()}),this.use12h&&e.push({type:"ampm",list:this.getAMPMList()}),e.filter(function(t){return t.list.length>0})}},watch:{date:{handler:function(){var e=this;this.$nextTick(function(){e.scrollToSelected(e.scrollDuration)})}}},mounted:function(){this.scrollToSelected(0)},methods:{getHoursList:function(){var e=this;return Os(this.use12h?12:24,this.hourStep,this.hourOptions).map(function(t){var a=new Date(e.date),i=ws(t);e.use12h&&(t===0&&(i="12"),a.getHours()>=12&&(t+=12));var n=a.setHours(t);return{value:n,text:i}})},getMinutesList:function(){var e=this;return Os(60,this.minuteStep,this.minuteOptions).map(function(t){var a=new Date(e.date).setMinutes(t);return{value:a,text:ws(t)}})},getSecondsList:function(){var e=this;return Os(60,this.secondStep,this.secondOptions).map(function(t){var a=new Date(e.date).setSeconds(t);return{value:a,text:ws(t)}})},getAMPMList:function(){var e=this;return["AM","PM"].map(function(t,a){var i=new Date(e.date),n=i.setHours(i.getHours()%12+a*12);return{text:t,value:n}})},scrollToSelected:function(e){for(var t=this.$el.querySelectorAll(".active"),a=0;a0&&arguments[0]!==void 0?arguments[0]:"",t=e.split(":");if(t.length>=2){var a=parseInt(t[0],10),i=parseInt(t[1],10);return{hours:a,minutes:i}}return null}var m6=function(e,t){e&&(e.scrollTop=t)},p6={name:"ListOptions",components:{ScrollbarVertical:Sg},inject:{getLocale:{default:function(){return mn}},prefixClass:{default:"mx"}},props:{date:Date,options:{type:[Object,Function],default:function(){return[]}},format:{type:String,default:"HH:mm:ss"},getClasses:{type:Function,default:function(){return[]}}},computed:{list:function(){var e=[],t=this.options;if(typeof t=="function")return t()||[];var a=ms(t.start),i=ms(t.end),n=ms(t.step),r=t.format||this.format;if(a&&i&&n)for(var o=a.minutes+a.hours*60,s=i.minutes+i.hours*60,l=n.minutes+n.hours*60,d=Math.floor((s-o)/l),u=0;u<=d;u++){var c=o+u*l,f=Math.floor(c/60),h=c%60,_=new Date(this.date).setHours(f,h,0);e.push({value:_,text:this.formatDate(_,r)})}return e}},mounted:function(){this.scrollToSelected()},methods:{formatDate:function(e,t){return Mo(e,t,{locale:this.getLocale().formatLocale})},scrollToSelected:function(){var e=this.$el.querySelector(".active");if(e){var t=Lo(e,this.$el);if(t){var a=e.offsetTop;m6(t,a)}}},handleSelect:function(e){this.$emit("select",e,"time")}}},T6=p6,D6=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("scrollbar-vertical",e._l(e.list,function(i){return a("div",{key:i.value,class:[e.prefixClass+"-time-option",e.getClasses(i.value)],on:{click:function(n){return e.handleSelect(i.value)}}},[e._v(` + `)])}),0)])}),1)},EO=[],bO=void 0,yO=void 0,AO=void 0,SO=!1,kO=jt({render:DO,staticRenderFns:EO},bO,TO,yO,SO,AO,!1,void 0,void 0,void 0);function xs(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=e.split(":");if(t.length>=2){var a=parseInt(t[0],10),i=parseInt(t[1],10);return{hours:a,minutes:i}}return null}var vO=function(e,t){e&&(e.scrollTop=t)},RO={name:"ListOptions",components:{ScrollbarVertical:E_},inject:{getLocale:{default:function(){return pn}},prefixClass:{default:"mx"}},props:{date:Date,options:{type:[Object,Function],default:function(){return[]}},format:{type:String,default:"HH:mm:ss"},getClasses:{type:Function,default:function(){return[]}}},computed:{list:function(){var e=[],t=this.options;if(typeof t=="function")return t()||[];var a=xs(t.start),i=xs(t.end),n=xs(t.step),r=t.format||this.format;if(a&&i&&n)for(var o=a.minutes+a.hours*60,s=i.minutes+i.hours*60,l=n.minutes+n.hours*60,d=Math.floor((s-o)/l),u=0;u<=d;u++){var c=o+u*l,f=Math.floor(c/60),h=c%60,_=new Date(this.date).setHours(f,h,0);e.push({value:_,text:this.formatDate(_,r)})}return e}},mounted:function(){this.scrollToSelected()},methods:{formatDate:function(e,t){return Uo(e,t,{locale:this.getLocale().formatLocale})},scrollToSelected:function(){var e=this.$el.querySelector(".active");if(e){var t=Ho(e,this.$el);if(t){var a=e.offsetTop;vO(t,a)}}},handleSelect:function(e){this.$emit("select",e,"time")}}},NO=RO,wO=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("scrollbar-vertical",e._l(e.list,function(i){return a("div",{key:i.value,class:[e.prefixClass+"-time-option",e.getClasses(i.value)],on:{click:function(n){return e.handleSelect(i.value)}}},[e._v(` `+e._s(i.text)+` - `)])}),0)},E6=[],b6=void 0,y6=void 0,A6=void 0,S6=!1,k6=jt({render:D6,staticRenderFns:E6},b6,T6,y6,S6,A6,!1,void 0,void 0,void 0),v6={name:"TimePanel",components:{ListColumns:F6,ListOptions:k6},inject:{getLocale:{default:function(){return mn}},prefixClass:{default:"mx"}},props:{value:{},defaultValue:{default:function(){var e=new Date;return e.setHours(0,0,0,0),e}},format:{default:"HH:mm:ss"},timeTitleFormat:{type:String,default:"YYYY-MM-DD"},showTimeHeader:{type:Boolean,default:!1},disabledTime:{type:Function,default:function(){return!1}},timePickerOptions:{type:[Object,Function],default:function(){return null}},hourOptions:Array,minuteOptions:Array,secondOptions:Array,hourStep:{type:Number,default:1},minuteStep:{type:Number,default:1},secondStep:{type:Number,default:1},showHour:{type:Boolean,default:void 0},showMinute:{type:Boolean,default:void 0},showSecond:{type:Boolean,default:void 0},use12h:{type:Boolean,default:void 0},scrollDuration:{type:Number,default:100}},data:function(){return{innerValue:gn(this.value,this.defaultValue)}},computed:{title:function(){var e=this.timeTitleFormat,t=new Date(this.innerValue);return this.formatDate(t,e)},innerForamt:function(){return typeof this.format=="string"?this.format:"HH:mm:ss"},ShowHourMinuteSecondAMPM:function(){var e=this,t=this.innerForamt,a={showHour:/[HhKk]/.test(t),showMinute:/m/.test(t),showSecond:/s/.test(t),use12h:/a/i.test(t)},i={};return Object.keys(a).forEach(function(n){i[n]=typeof e[n]=="boolean"?e[n]:a[n]}),i}},watch:{value:{immediate:!0,handler:function(){this.innerValue=gn(this.value,this.defaultValue)}}},methods:{formatDate:function(e,t){return Mo(e,t,{locale:this.getLocale().formatLocale})},isDisabledTime:function(e){return this.disabledTime(new Date(e))},isDisabledHour:function(e){var t=new Date(e);return this.isDisabledTime(t)&&this.isDisabledTime(t.setMinutes(0,0,0))&&this.isDisabledTime(t.setMinutes(59,59,999))},isDisabledMinute:function(e){var t=new Date(e);return this.isDisabledTime(t)&&this.isDisabledTime(t.setSeconds(0,0))&&this.isDisabledTime(t.setSeconds(59,999))},isDisabledAMPM:function(e){var t=new Date(e),a=t.getHours()<12?0:12,i=a+11;return this.isDisabledTime(t)&&this.isDisabledTime(t.setHours(a,0,0,0))&&this.isDisabledTime(t.setHours(i,59,59,999))},isDisabled:function(e,t){return t==="hour"?this.isDisabledHour(e):t==="minute"?this.isDisabledMinute(e):t==="ampm"?this.isDisabledAMPM(e):this.isDisabledTime(e)},handleSelect:function(e,t){var a=new Date(e);this.isDisabled(e,t)||(this.innerValue=a,this.isDisabledTime(a)||this.$emit("select",a,t))},handleClickTitle:function(){this.$emit("clicktitle")},getClasses:function(e,t){var a=new Date(e);return this.isDisabled(e,t)?"disabled":a.getTime()===this.innerValue.getTime()?"active":""}}},R6=v6,N6=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:e.prefixClass+"-time"},[e.showTimeHeader?a("div",{class:e.prefixClass+"-time-header"},[a("button",{class:e.prefixClass+"-btn "+e.prefixClass+"-btn-text "+e.prefixClass+"-time-header-title",attrs:{type:"button"},on:{click:e.handleClickTitle}},[e._v(` + `)])}),0)},OO=[],xO=void 0,BO=void 0,CO=void 0,MO=!1,YO=jt({render:wO,staticRenderFns:OO},xO,NO,BO,MO,CO,!1,void 0,void 0,void 0),LO={name:"TimePanel",components:{ListColumns:kO,ListOptions:YO},inject:{getLocale:{default:function(){return pn}},prefixClass:{default:"mx"}},props:{value:{},defaultValue:{default:function(){var e=new Date;return e.setHours(0,0,0,0),e}},format:{default:"HH:mm:ss"},timeTitleFormat:{type:String,default:"YYYY-MM-DD"},showTimeHeader:{type:Boolean,default:!1},disabledTime:{type:Function,default:function(){return!1}},timePickerOptions:{type:[Object,Function],default:function(){return null}},hourOptions:Array,minuteOptions:Array,secondOptions:Array,hourStep:{type:Number,default:1},minuteStep:{type:Number,default:1},secondStep:{type:Number,default:1},showHour:{type:Boolean,default:void 0},showMinute:{type:Boolean,default:void 0},showSecond:{type:Boolean,default:void 0},use12h:{type:Boolean,default:void 0},scrollDuration:{type:Number,default:100}},data:function(){return{innerValue:_n(this.value,this.defaultValue)}},computed:{title:function(){var e=this.timeTitleFormat,t=new Date(this.innerValue);return this.formatDate(t,e)},innerForamt:function(){return typeof this.format=="string"?this.format:"HH:mm:ss"},ShowHourMinuteSecondAMPM:function(){var e=this,t=this.innerForamt,a={showHour:/[HhKk]/.test(t),showMinute:/m/.test(t),showSecond:/s/.test(t),use12h:/a/i.test(t)},i={};return Object.keys(a).forEach(function(n){i[n]=typeof e[n]=="boolean"?e[n]:a[n]}),i}},watch:{value:{immediate:!0,handler:function(){this.innerValue=_n(this.value,this.defaultValue)}}},methods:{formatDate:function(e,t){return Uo(e,t,{locale:this.getLocale().formatLocale})},isDisabledTime:function(e){return this.disabledTime(new Date(e))},isDisabledHour:function(e){var t=new Date(e);return this.isDisabledTime(t)&&this.isDisabledTime(t.setMinutes(0,0,0))&&this.isDisabledTime(t.setMinutes(59,59,999))},isDisabledMinute:function(e){var t=new Date(e);return this.isDisabledTime(t)&&this.isDisabledTime(t.setSeconds(0,0))&&this.isDisabledTime(t.setSeconds(59,999))},isDisabledAMPM:function(e){var t=new Date(e),a=t.getHours()<12?0:12,i=a+11;return this.isDisabledTime(t)&&this.isDisabledTime(t.setHours(a,0,0,0))&&this.isDisabledTime(t.setHours(i,59,59,999))},isDisabled:function(e,t){return t==="hour"?this.isDisabledHour(e):t==="minute"?this.isDisabledMinute(e):t==="ampm"?this.isDisabledAMPM(e):this.isDisabledTime(e)},handleSelect:function(e,t){var a=new Date(e);this.isDisabled(e,t)||(this.innerValue=a,this.isDisabledTime(a)||this.$emit("select",a,t))},handleClickTitle:function(){this.$emit("clicktitle")},getClasses:function(e,t){var a=new Date(e);return this.isDisabled(e,t)?"disabled":a.getTime()===this.innerValue.getTime()?"active":""}}},ZO=LO,IO=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:e.prefixClass+"-time"},[e.showTimeHeader?a("div",{class:e.prefixClass+"-time-header"},[a("button",{class:e.prefixClass+"-btn "+e.prefixClass+"-btn-text "+e.prefixClass+"-time-header-title",attrs:{type:"button"},on:{click:e.handleClickTitle}},[e._v(` `+e._s(e.title)+` - `)])]):e._e(),e._v(" "),a("div",{class:e.prefixClass+"-time-content"},[e.timePickerOptions?a("list-options",{attrs:{date:e.innerValue,"get-classes":e.getClasses,options:e.timePickerOptions,format:e.innerForamt},on:{select:e.handleSelect}}):a("list-columns",e._b({attrs:{date:e.innerValue,"get-classes":e.getClasses,"hour-options":e.hourOptions,"minute-options":e.minuteOptions,"second-options":e.secondOptions,"hour-step":e.hourStep,"minute-step":e.minuteStep,"second-step":e.secondStep,"scroll-duration":e.scrollDuration},on:{select:e.handleSelect}},"list-columns",e.ShowHourMinuteSecondAMPM,!1))],1)])},w6=[],O6=void 0,x6=void 0,B6=void 0,C6=!1,za=jt({render:N6,staticRenderFns:w6},O6,R6,x6,C6,B6,!1,void 0,void 0,void 0),Kn={name:"TimeRange",inject:{prefixClass:{default:"mx"}},props:je({},za.props),data:function(){return{startValue:new Date(NaN),endValue:new Date(NaN)}},watch:{value:{immediate:!0,handler:function(){if(Yo(this.value)){var e=Qn(this.value,2),t=e[0],a=e[1];this.startValue=t,this.endValue=a}else this.startValue=new Date(NaN),this.endValue=new Date(NaN)}}},methods:{emitChange:function(e,t){var a=[this.startValue,this.endValue];this.$emit("select",a,e==="time"?"time-range":e,t)},handleSelectStart:function(e,t){this.startValue=e,this.endValue.getTime()>=e.getTime()||(this.endValue=e),this.emitChange(t,0)},handleSelectEnd:function(e,t){this.endValue=e,this.startValue.getTime()<=e.getTime()||(this.startValue=e),this.emitChange(t,1)},disabledStartTime:function(e){return this.disabledTime(e,0)},disabledEndTime:function(e){return e.getTime()2&&arguments[2]!==void 0?arguments[2]:!0;this.userInput=null;var i=Array.isArray(e)?e.map(this.date2value):this.date2value(e);return this.$emit("input",i),this.$emit("change",i,t),a&&this.closePopup(),i},isValidValue:function(e){return this.validMultipleType?NA(e):this.range?Yo(e):ya(e)},isValidValueAndNotDisabled:function(e){if(!this.isValidValue(e))return!1;var t=typeof this.disabledDate=="function"?this.disabledDate:function(){return!1},a=typeof this.disabledTime=="function"?this.disabledTime:function(){return!1};return Array.isArray(e)||(e=[e]),e.every(function(i){return!t(i)&&!a(i)})},handleMultipleDates:function(e,t){if(this.validMultipleType&&t){var a=t.filter(function(i){return i.getTime()!==e.getTime()});return a.length===t.length&&a.push(e),a}return e},handleSelectDate:function(e,t,a){e=this.handleMultipleDates(e,a),this.confirm?this.currentValue=e:this.emitValue(e,t,!this.validMultipleType&&(t===this.type||t==="time"))},clear:function(){this.emitValue(this.range?[null,null]:null),this.$emit("clear")},handleClear:function(e){e.stopPropagation(),this.clear()},handleConfirmDate:function(){var e=this.emitValue(this.currentValue);this.$emit("confirm",e)},handleSelectShortcut:function(e){var t=e.currentTarget.getAttribute("data-index"),a=this.shortcuts[parseInt(t,10)];if(ta(a)&&typeof a.onClick=="function"){var i=a.onClick(this);i&&this.emitValue(i)}},openPopup:function(e){this.popupVisible||this.disabled||(this.defaultOpen=!0,this.$emit("open",e),this.$emit("update:open",!0))},closePopup:function(){this.popupVisible&&(this.defaultOpen=!1,this.$emit("close"),this.$emit("update:open",!1))},blur:function(){this.$refs.input&&this.$refs.input.blur()},focus:function(){this.$refs.input&&this.$refs.input.focus()},handleInputChange:function(){var e=this;if(!(!this.editable||this.userInput===null)){var t=this.userInput.trim();if(this.userInput=null,t===""){this.clear();return}var a;if(this.validMultipleType)a=t.split(this.innerRangeSeparator).map(function(n){return e.parseDate(n.trim())});else if(this.range){var i=t.split(this.innerRangeSeparator);i.length!==2&&(i=t.split(this.innerRangeSeparator.trim())),a=i.map(function(n){return e.parseDate(n.trim())})}else a=this.parseDate(t);this.isValidValueAndNotDisabled(a)?(this.emitValue(a),this.blur()):this.$emit("input-error",t)}},handleInputInput:function(e){this.userInput=typeof e=="string"?e:e.target.value},handleInputKeydown:function(e){var t=e.keyCode;t===9?this.closePopup():t===13&&this.handleInputChange()},handleInputBlur:function(e){this.$emit("blur",e)},handleInputFocus:function(e){this.openPopup(e),this.$emit("focus",e)},hasSlot:function(e){return!!(this.$slots[e]||this.$scopedSlots[e])},renderSlot:function(e,t,a){var i=this.$scopedSlots[e];return i?i(a)||t:this.$slots[e]||t},renderInput:function(){var e=this.$createElement,t=this.prefixClass,a=je({name:"date",type:"text",autocomplete:"off",value:this.text,class:this.inputClass||"".concat(this.prefixClass,"-input"),readonly:!this.editable,disabled:this.disabled,placeholder:this.placeholder},this.inputAttr),i=a.value,n=a.class,r=TA(a,["value","class"]),o={keydown:this.handleInputKeydown,focus:this.handleInputFocus,blur:this.handleInputBlur,input:this.handleInputInput,change:this.handleInputChange},s=this.renderSlot("input",e("input",{domProps:{value:i},class:n,attrs:je({},r),on:je({},o),ref:"input"}),{props:a,events:o}),l=this.type==="time"?e(uS):e(aS);return e("div",{class:"".concat(t,"-input-wrapper"),on:{mouseenter:this.handleMouseEnter,mouseleave:this.handleMouseLeave,click:this.openPopup},ref:"inputWrapper"},[s,this.showClearIcon?e("i",{class:"".concat(t,"-icon-clear"),on:{click:this.handleClear}},[this.renderSlot("icon-clear",e(FS))]):e("i",{class:"".concat(t,"-icon-calendar")},[this.renderSlot("icon-calendar",l)])])},renderContent:function(){var e=this.$createElement,t=this.range?Y6:M6,a=t[this.type]||t.default,i=je({},Fn(this.$props,Object.keys(a.props)),{value:this.currentValue}),n=je({},Fn(this.$listeners,a.emits||[]),{select:this.handleSelectDate}),r=e(a,h0([{},{props:i,on:n,ref:"picker"}]));return e("div",{class:"".concat(this.prefixClass,"-datepicker-body")},[this.renderSlot("content",r,{value:this.currentValue,emit:this.handleSelectDate})])},renderSidebar:function(){var e=this,t=this.$createElement,a=this.prefixClass;return t("div",{class:"".concat(a,"-datepicker-sidebar")},[this.renderSlot("sidebar",null,{value:this.currentValue,emit:this.handleSelectDate}),this.shortcuts.map(function(i,n){return t("button",{key:n,attrs:{"data-index":n,type:"button"},class:"".concat(a,"-btn ").concat(a,"-btn-text ").concat(a,"-btn-shortcut"),on:{click:e.handleSelectShortcut}},[i.text])})])},renderHeader:function(){var e=this.$createElement;return e("div",{class:"".concat(this.prefixClass,"-datepicker-header")},[this.renderSlot("header",null,{value:this.currentValue,emit:this.handleSelectDate})])},renderFooter:function(){var e=this.$createElement,t=this.prefixClass;return e("div",{class:"".concat(t,"-datepicker-footer")},[this.renderSlot("footer",null,{value:this.currentValue,emit:this.handleSelectDate}),this.confirm?e("button",{attrs:{type:"button"},class:"".concat(t,"-btn ").concat(t,"-datepicker-btn-confirm"),on:{click:this.handleConfirmDate}},[this.confirmText]):null])}},render:function(){var e,t=arguments[0],a=this.prefixClass,i=this.inline,n=this.disabled,r=this.hasSlot("sidebar")||this.shortcuts.length?this.renderSidebar():null,o=t("div",{class:"".concat(a,"-datepicker-content")},[this.hasSlot("header")?this.renderHeader():null,this.renderContent(),this.hasSlot("footer")||this.confirm?this.renderFooter():null]);return t("div",{class:(e={},Di(e,"".concat(a,"-datepicker"),!0),Di(e,"".concat(a,"-datepicker-range"),this.range),Di(e,"".concat(a,"-datepicker-inline"),i),Di(e,"disabled",n),e)},[i?null:this.renderInput(),i?t("div",{class:"".concat(a,"-datepicker-main")},[r,o]):t(WA,{ref:"popup",class:this.popupClass,style:this.popupStyle,attrs:{visible:this.popupVisible,appendToBody:this.appendToBody},on:{clickoutside:this.handleClickOutSide}},[r,o])])}};fi.locale=Ag,fi.install=function(e){e.component(fi.name,fi)},typeof window<"u"&&window.Vue&&fi.install(window.Vue),_l(fi,{CalendarPanel:yi,CalendarRange:Jn,TimePanel:za,TimeRange:Kn,DatetimePanel:Ou,DatetimeRange:kg});const xu=e=>{e.mounted?Array.isArray(e.mounted)||(e.mounted=[e.mounted]):e.mounted=[],e.mounted.push(function(){this.$el.setAttribute("data-v-cfad8df","")})},L6={name:"CalendarBlankIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Z6=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon calendar-blank-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M19,19H5V8H19M16,1V3H8V1H6V3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3H18V1"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},I6=[],j6=ce(L6,Z6,I6,!1,null,null,null,null);const P6=j6.exports,G6={name:"WebIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var U6=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon web-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M16.36,14C16.44,13.34 16.5,12.68 16.5,12C16.5,11.32 16.44,10.66 16.36,10H19.74C19.9,10.64 20,11.31 20,12C20,12.69 19.9,13.36 19.74,14M14.59,19.56C15.19,18.45 15.65,17.25 15.97,16H18.92C17.96,17.65 16.43,18.93 14.59,19.56M14.34,14H9.66C9.56,13.34 9.5,12.68 9.5,12C9.5,11.32 9.56,10.65 9.66,10H14.34C14.43,10.65 14.5,11.32 14.5,12C14.5,12.68 14.43,13.34 14.34,14M12,19.96C11.17,18.76 10.5,17.43 10.09,16H13.91C13.5,17.43 12.83,18.76 12,19.96M8,8H5.08C6.03,6.34 7.57,5.06 9.4,4.44C8.8,5.55 8.35,6.75 8,8M5.08,16H8C8.35,17.25 8.8,18.45 9.4,19.56C7.57,18.93 6.03,17.65 5.08,16M4.26,14C4.1,13.36 4,12.69 4,12C4,11.31 4.1,10.64 4.26,10H7.64C7.56,10.66 7.5,11.32 7.5,12C7.5,12.68 7.56,13.34 7.64,14M12,4.03C12.83,5.23 13.5,6.57 13.91,8H10.09C10.5,6.57 11.17,5.23 12,4.03M18.92,8H15.97C15.65,6.75 15.19,5.55 14.59,4.44C16.43,5.07 17.96,6.34 18.92,8M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},q6=[],H6=ce(G6,U6,q6,!1,null,null,null,null);const z6=H6.exports,B1={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD H:mm:ss",year:"YYYY",month:"YYYY-MM",time:"H:mm:ss",week:"w"},V6={name:"NcDateTimePicker",components:{CalendarBlank:P6,DatePicker:fi,NcPopover:pu,NcTimezonePicker:z4,Web:z6},mixins:[so],inheritAttrs:!1,props:{clearable:{type:Boolean,default:!1},minuteStep:{type:Number,default:10},type:{type:String,default:"date"},format:{type:String,default:null},formatter:{type:Object,default:null},lang:{type:Object,default:null},value:{default:()=>new Date},timezoneId:{type:String,default:"UTC"},showTimezoneSelect:{type:Boolean,default:!1},highlightTimezone:{type:Boolean,default:!1},appendToBody:{type:Boolean,default:!1},showWeekNumber:{type:Boolean,default:!1},placeholder:{type:String,default:null}},emits:["update:value","update:timezone-id"],data(){return{showTimezonePopover:!1,tzVal:this.timezoneId}},computed:{defaultLang(){return{formatLocale:{months:U_(),monthsShort:q_(),weekdays:H_(),weekdaysShort:z_(),weekdaysMin:V_(),firstDayOfWeek:$_()},monthFormat:"MMM"}},defaultPlaceholder(){return this.type==="time"?ie("Pick a time"):this.type==="month"?ie("Pick a month"):this.type==="year"?ie("Pick a year"):this.type==="week"?ie("Pick a week"):this.type==="date"?ie("Pick a date"):ie("Pick a date and a time")},formatTypeMap(){var e;return(e=B1[this.type])!=null?e:B1.date}},methods:{handleSelectYear(e){const t=this.$refs.datepicker.currentValue;if(t)try{const a=new Date(new Date(t).setFullYear(e));this.$refs.datepicker.selectDate(a)}catch{console.error("Invalid value",t,e)}},handleSelectMonth(e){const t=this.$refs.datepicker.currentValue;if(t)try{const a=new Date(new Date(t).setMonth(e));this.$refs.datepicker.selectDate(a)}catch{console.error("Invalid value",t,e)}},toggleTimezonePopover(){this.showTimezoneSelect&&(this.showTimezonePopover=!this.showTimezonePopover)}}};var $6=function(){var e=this,t=e._self._c;return t("DatePicker",e._g(e._b({ref:"datepicker",attrs:{"append-to-body":e.appendToBody,clearable:e.clearable,format:e.format?e.format:e.formatTypeMap,formatter:e.formatter,lang:e.lang?e.lang:e.defaultLang,"minute-step":e.minuteStep,placeholder:e.placeholder?e.placeholder:e.defaultPlaceholder,"popup-class":{"show-week-number":e.showWeekNumber},"show-week-number":e.showWeekNumber,type:e.type,value:e.value},on:{"select-year":e.handleSelectYear,"select-month":e.handleSelectMonth,"update:value":function(a){return e.$emit("update:value",e.value)}},scopedSlots:e._u([{key:"icon-calendar",fn:function(){return[e.showTimezoneSelect?t("NcPopover",{attrs:{shown:e.showTimezonePopover,"popover-base-class":"timezone-select__popper"},on:{"update:shown":function(a){e.showTimezonePopover=a}},scopedSlots:e._u([{key:"trigger",fn:function(){return[t("button",{staticClass:"datetime-picker-inline-icon",class:{"datetime-picker-inline-icon--highlighted":e.highlightTimezone},on:{mousedown:function(a){return a.stopPropagation(),a.preventDefault(),(()=>{}).apply(null,arguments)}}},[t("Web",{attrs:{size:20}})],1)]},proxy:!0}],null,!1,3375037618)},[t("div",{staticClass:"timezone-popover-wrapper__label"},[t("strong",[e._v(" "+e._s(e.t("Please select a time zone:"))+" ")])]),t("NcTimezonePicker",{staticClass:"timezone-popover-wrapper__timezone-select",on:{input:function(a){return e.$emit("update:timezone-id",arguments[0])}},model:{value:e.tzVal,callback:function(a){e.tzVal=a},expression:"tzVal"}})],1):t("CalendarBlank",{attrs:{size:20}})]},proxy:!0},e._l(e.$scopedSlots,function(a,i){return{key:i,fn:function(n){return[e._t(i,null,null,n)]}}})],null,!0)},"DatePicker",e.$attrs,!1),e.$listeners))},W6=[],Q6=ce(V6,$6,W6,!1,null,"26676d3b",null,null);const J6=Q6.exports;xu(J6);const K6=["date","datetime-local","month","time","week"],X6={name:"NcDateTimePickerNative",inheritAttrs:!1,props:{value:{type:Date,default:null},id:{type:String,required:!0},type:{type:String,default:"date",validate:e=>K6.includes(e)},label:{type:String,default:"Please choose a date"},min:{type:[Date,Boolean],default:null},max:{type:[Date,Boolean],default:null},hideLabel:{type:Boolean,default:!1},inputClass:{type:[Object,String],default:""}},emits:["input"],computed:{formattedValue(){return this.formatValue(this.value)},formattedMin(){return this.min?this.formatValue(this.min):!1},formattedMax(){return this.max?this.formatValue(this.max):!1},listeners(){return{...this.$listeners,input:e=>{if(isNaN(e.target.valueAsNumber))return this.$emit("input",null);if(this.type==="time"){const i=e.target.value;if(this.value===""){const{yyyy:s,MM:l,dd:d}=this.getReadableDate(new Date);return this.$emit("input",new Date(`${s}-${l}-${d}T${i}`))}const{yyyy:n,MM:r,dd:o}=this.getReadableDate(this.value);return this.$emit("input",new Date(`${n}-${r}-${o}T${i}`))}else if(this.type==="month"){const i=(new Date(e.target.value).getMonth()+1).toString().padStart(2,"0");if(this.value===""){const{yyyy:l,dd:d,hh:u,mm:c}=this.getReadableDate(new Date);return this.$emit("input",new Date(`${l}-${i}-${d}T${u}:${c}`))}const{yyyy:n,dd:r,hh:o,mm:s}=this.getReadableDate(this.value);return this.$emit("input",new Date(`${n}-${i}-${r}T${o}:${s}`))}const t=new Date(e.target.valueAsNumber).getTimezoneOffset()*1e3*60,a=e.target.valueAsNumber+t;return this.$emit("input",new Date(a))}}}},methods:{getReadableDate(e){if(e instanceof Date){const t=e.getFullYear().toString().padStart(4,"0"),a=(e.getMonth()+1).toString().padStart(2,"0"),i=e.getDate().toString().padStart(2,"0"),n=e.getHours().toString().padStart(2,"0"),r=e.getMinutes().toString().padStart(2,"0");return{yyyy:t,MM:a,dd:i,hh:n,mm:r}}},formatValue(e){if(e instanceof Date){const{yyyy:t,MM:a,dd:i,hh:n,mm:r}=this.getReadableDate(e);if(this.type==="datetime-local")return`${t}-${a}-${i}T${n}:${r}`;if(this.type==="date")return`${t}-${a}-${i}`;if(this.type==="month")return`${t}-${a}`;if(this.type==="time")return`${n}:${r}`;if(this.type==="week"){const o=new Date(t,0,1),s=Math.floor((e-o)/(24*60*60*1e3)),l=Math.ceil(s/7);return`${t}-W${l}`}}else return""}}};var ek=function(){var e=this,t=e._self._c;return t("div",{staticClass:"native-datetime-picker"},[t("label",{class:{"hidden-visually":e.hideLabel},attrs:{for:e.id}},[e._v(e._s(e.label))]),t("input",e._g(e._b({staticClass:"native-datetime-picker--input",class:e.inputClass,attrs:{id:e.id,type:e.type,min:e.formattedMin,max:e.formattedMax},domProps:{value:e.formattedValue}},"input",e.$attrs,!1),e.listeners))])},tk=[],ak=ce(X6,ek,tk,!1,null,"22982259",null,null);const ik=ak.exports;xu(ik);const nk={name:"AlertCircleOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var rk=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon alert-circle-outline-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M11,15H13V17H11V15M11,7H13V13H11V7M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},ok=[],sk=ce(nk,rk,ok,!1,null,null,null,null);const lk=sk.exports,uk={name:"CheckIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var dk=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon check-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},ck=[],hk=ce(uk,dk,ck,!1,null,null,null,null);const fk=hk.exports,gk={name:"NcInputField",components:{NcButton:ai,AlertCircle:lk,Check:fk},inheritAttrs:!1,props:{value:{type:String,required:!0},type:{type:String,default:"text",validator:e=>["text","password","email","tel","url","search","number"].includes(e)},label:{type:String,default:void 0},labelOutside:{type:Boolean,default:!1},placeholder:{type:String,default:void 0},showTrailingButton:{type:Boolean,default:!1},trailingButtonLabel:{type:String,default:""},success:{type:Boolean,default:!1},error:{type:Boolean,default:!1},helperText:{type:String,default:""},disabled:{type:Boolean,default:!1},inputClass:{type:[Object,String],default:""}},emits:["update:value","trailing-button-click"],computed:{computedId(){return this.$attrs.id&&this.$attrs.id!==""?this.$attrs.id:this.inputName},inputName(){return"input"+g0()},hasLeadingIcon(){return this.$slots.default},hasTrailingIcon(){return this.success},hasPlaceholder(){return this.placeholder!==""&&this.placeholder!==void 0},computedPlaceholder(){return this.hasPlaceholder?this.placeholder:this.label},isValidLabel(){const e=this.label||this.labelOutside;return e||console.warn("You need to add a label to the NcInputField component. Either use the prop label or use an external one, as per the example in the documentation."),e},ariaDescribedby(){const e=[];return this.helperText.length>0&&e.push(`${this.inputName}-helper-text`),this.$attrs["aria-describedby"]&&e.push(this.$attrs["aria-describedby"]),e.join(" ")||null}},methods:{focus(){this.$refs.input.focus()},select(){this.$refs.input.select()},handleInput(e){this.$emit("update:value",e.target.value)},handleTrailingButtonClick(e){this.$emit("trailing-button-click",e)}}};var _k=function(){var e=this,t=e._self._c;return t("div",{staticClass:"input-field",class:{"input-field--disabled":e.disabled}},[t("div",{staticClass:"input-field__main-wrapper"},[t("input",e._g(e._b({ref:"input",staticClass:"input-field__input",class:[e.inputClass,{"input-field__input--trailing-icon":e.showTrailingButton||e.hasTrailingIcon,"input-field__input--leading-icon":e.hasLeadingIcon,"input-field__input--label-outside":e.labelOutside,"input-field__input--success":e.success,"input-field__input--error":e.error}],attrs:{id:e.computedId,type:e.type,disabled:e.disabled,placeholder:e.computedPlaceholder,"aria-describedby":e.ariaDescribedby,"aria-live":"polite"},domProps:{value:e.value},on:{input:e.handleInput}},"input",e.$attrs,!1),e.$listeners)),!e.labelOutside&&e.isValidLabel?t("label",{staticClass:"input-field__label",class:[{"input-field__label--trailing-icon":e.showTrailingButton||e.hasTrailingIcon,"input-field__label--leading-icon":e.hasLeadingIcon}],attrs:{for:e.computedId}},[e._v(" "+e._s(e.label)+" ")]):e._e(),t("div",{directives:[{name:"show",rawName:"v-show",value:e.hasLeadingIcon,expression:"hasLeadingIcon"}],staticClass:"input-field__icon input-field__icon--leading"},[e._t("default")],2),e.showTrailingButton?t("NcButton",{staticClass:"input-field__trailing-button",attrs:{type:"tertiary-no-background","aria-label":e.trailingButtonLabel,disabled:e.disabled},on:{click:e.handleTrailingButtonClick},scopedSlots:e._u([{key:"icon",fn:function(){return[e._t("trailing-button-icon")]},proxy:!0}],null,!0)}):e.success||e.error?t("div",{staticClass:"input-field__icon input-field__icon--trailing"},[e.success?t("Check",{staticStyle:{color:"var(--color-success-text)"},attrs:{size:20}}):e.error?t("AlertCircle",{staticStyle:{color:"var(--color-error-text)"},attrs:{size:20}}):e._e()],1):e._e()],1),e.helperText.length>0?t("p",{staticClass:"input-field__helper-text-message",class:{"input-field__helper-text-message--error":e.error,"input-field__helper-text-message--success":e.success},attrs:{id:`${e.inputName}-helper-text`}},[e.success?t("Check",{staticClass:"input-field__helper-text-message__icon",attrs:{size:18}}):e.error?t("AlertCircle",{staticClass:"input-field__helper-text-message__icon",attrs:{size:18}}):e._e(),e._v(" "+e._s(e.helperText)+" ")],1):e._e()])},Fk=[],mk=ce(gk,_k,Fk,!1,null,"31a36009",null,null);const pn=mk.exports;function Tl(e,t,a){var i,n,r,o,s;t==null&&(t=100);function l(){var u=Date.now()-o;u=0?i=setTimeout(l,t-u):(i=null,a||(s=e.apply(r,n),r=n=null))}var d=function(){r=this,n=arguments,o=Date.now();var u=a&&!i;return i||(i=setTimeout(l,t)),u&&(s=e.apply(r,n),r=n=null),s};return d.clear=function(){i&&(clearTimeout(i),i=null)},d.flush=function(){i&&(s=e.apply(r,n),r=n=null,clearTimeout(i),i=null)},d}Tl.debounce=Tl;var vg=Tl;const Bu=Xa(vg),pk={name:"EyeIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Tk=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon eye-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17M12,4.5C7,4.5 2.73,7.61 1,12C2.73,16.39 7,19.5 12,19.5C17,19.5 21.27,16.39 23,12C21.27,7.61 17,4.5 12,4.5Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},Dk=[],Ek=ce(pk,Tk,Dk,!1,null,null,null,null);const bk=Ek.exports,yk={name:"EyeOffIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Ak=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon eye-off-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M11.83,9L15,12.16C15,12.11 15,12.05 15,12A3,3 0 0,0 12,9C11.94,9 11.89,9 11.83,9M7.53,9.8L9.08,11.35C9.03,11.56 9,11.77 9,12A3,3 0 0,0 12,15C12.22,15 12.44,14.97 12.65,14.92L14.2,16.47C13.53,16.8 12.79,17 12,17A5,5 0 0,1 7,12C7,11.21 7.2,10.47 7.53,9.8M2,4.27L4.28,6.55L4.73,7C3.08,8.3 1.78,10 1,12C2.73,16.39 7,19.5 12,19.5C13.55,19.5 15.03,19.2 16.38,18.66L16.81,19.08L19.73,22L21,20.73L3.27,3M12,7A5,5 0 0,1 17,12C17,12.64 16.87,13.26 16.64,13.82L19.57,16.75C21.07,15.5 22.27,13.86 23,12C21.27,7.61 17,4.5 12,4.5C10.6,4.5 9.26,4.75 8,5.2L10.17,7.35C10.74,7.13 11.35,7 12,7Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},Sk=[],kk=ce(yk,Ak,Sk,!1,null,null,null,null);const vk=kk.exports,C1=Ls("core","capabilities",{}).password_policy||null,Rk=new Set(Object.keys(pn.props)),Nk={name:"NcPasswordField",components:{NcInputField:pn,Eye:bk,EyeOff:vk},inheritAttrs:!1,props:{" ":{},...pn.props,showTrailingButton:{type:Boolean,default:!0},trailingButtonLabel:void 0,checkPasswordStrength:{type:Boolean,default:!1},minlength:{type:Number,default:0},maxlength:{type:Number,default:null}},emits:["valid","invalid","update:value"],data(){return{isPasswordHidden:!0,internalHelpMessage:"",isValid:null}},computed:{computedError(){return this.error||this.isValid===!1},computedSuccess(){return this.success||this.isValid===!0},computedHelperText(){return this.helperText.length>0?this.helperText:this.internalHelpMessage},rules(){const{minlength:e}=this;return{minlength:e??C1?.minLength}},trailingButtonLabelPassword(){return this.isPasswordHidden?ie("Show password"):ie("Hide password")},propsAndAttrsToForward(){return{...this.$attrs,...Object.fromEntries(Object.entries(this.$props).filter(([e])=>Rk.has(e)))}}},watch:{value(e){if(this.checkPasswordStrength){if(C1===null)return;this.checkPassword(e)}}},methods:{focus(){this.$refs.inputField.focus()},select(){this.$refs.inputField.select()},handleInput(e){this.$emit("update:value",e.target.value)},togglePasswordVisibility(){this.isPasswordHidden=!this.isPasswordHidden},checkPassword:Bu(async function(e){try{const{data:t}=await $a.post(Va("apps/password_policy/api/v1/validate"),{password:e});if(this.isValid=t.ocs.data.passed,t.ocs.data.passed){this.internalHelpMessage=ie("Password is secure"),this.$emit("valid");return}this.internalHelpMessage=t.ocs.data.reason,this.$emit("invalid")}catch(t){Af.error("Password policy returned an error",t)}},500)}};var wk=function(){var e=this,t=e._self._c;return t("NcInputField",e._g(e._b({ref:"inputField",attrs:{type:e.isPasswordHidden?"password":"text","trailing-button-label":e.trailingButtonLabelPassword,"helper-text":e.computedHelperText,error:e.computedError,success:e.computedSuccess,minlength:e.rules.minlength},on:{"trailing-button-click":e.togglePasswordVisibility,input:e.handleInput},scopedSlots:e._u([{key:"trailing-button-icon",fn:function(){return[e.isPasswordHidden?t("Eye",{attrs:{size:18}}):t("EyeOff",{attrs:{size:18}})]},proxy:!0}])},"NcInputField",e.propsAndAttrsToForward,!1),e.$listeners),[e._t("default")],2)},Ok=[],xk=ce(Nk,wk,Ok,!1,null,null,null,null);const PM=xk.exports,Bk={name:"UndoVariantIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Ck=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon undo-variant-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M13.5,7A6.5,6.5 0 0,1 20,13.5A6.5,6.5 0 0,1 13.5,20H10V18H13.5C16,18 18,16 18,13.5C18,11 16,9 13.5,9H7.83L10.91,12.09L9.5,13.5L4,8L9.5,2.5L10.92,3.91L7.83,7H13.5M6,18H8V20H6V18Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},Mk=[],Yk=ce(Bk,Ck,Mk,!1,null,null,null,null);const Lk=Yk.exports,Zk=new Set(Object.keys(pn.props)),Ik={name:"NcTextField",components:{NcInputField:pn,Close:No,ArrowRight:df,Undo:Lk},inheritAttrs:!1,props:{" ":{},...pn.props,trailingButtonLabel:{type:String,default:ie("Clear text")},trailingButtonIcon:{type:String,default:"close",validator:e=>["close","arrowRight","undo"].includes(e)}},emits:["update:value"],computed:{propsAndAttrsToForward(){return{...this.$attrs,...Object.fromEntries(Object.entries(this.$props).filter(([e])=>Zk.has(e)))}}},methods:{focus(){this.$refs.inputField.focus()},select(){this.$refs.inputField.select()},handleInput(e){this.$emit("update:value",e.target.value)}}};var jk=function(){var e=this,t=e._self._c;return t("NcInputField",e._g(e._b({ref:"inputField",on:{input:e.handleInput},scopedSlots:e._u([e.type!=="search"?{key:"trailing-button-icon",fn:function(){return[e.trailingButtonIcon==="close"?t("Close",{attrs:{size:20}}):e.trailingButtonIcon==="arrowRight"?t("ArrowRight",{attrs:{size:20}}):e.trailingButtonIcon==="undo"?t("Undo",{attrs:{size:20}}):e._e()]},proxy:!0}:null],null,!0)},"NcInputField",e.propsAndAttrsToForward,!1),e.$listeners),[e._t("default")],2)},Pk=[],Gk=ce(Ik,jk,Pk,!1,null,null,null,null);const Uk=Gk.exports;ie("Submit");const qk={name:"NcVNodes",props:{vnodes:{type:[Array,Object],default:null}},render(e){var t,a,i;return this.vnodes||((t=this.$slots)==null?void 0:t.default)||((i=(a=this.$scopedSlots)==null?void 0:a.default)==null?void 0:i.call(a))}},Hk=null,zk=null;var Vk=ce(qk,Hk,zk,!1,null,null,null,null);const GM=Vk.exports;const $k={props:{excludeClickOutsideSelectors:{type:[String,Array],default:()=>[]}},computed:{clickOutsideOptions(){return{ignore:Array.isArray(this.excludeClickOutsideSelectors)?this.excludeClickOutsideSelectors:[this.excludeClickOutsideSelectors]}}}},Wk={name:"CogIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Qk=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon cog-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M12,15.5A3.5,3.5 0 0,1 8.5,12A3.5,3.5 0 0,1 12,8.5A3.5,3.5 0 0,1 15.5,12A3.5,3.5 0 0,1 12,15.5M19.43,12.97C19.47,12.65 19.5,12.33 19.5,12C19.5,11.67 19.47,11.34 19.43,11L21.54,9.37C21.73,9.22 21.78,8.95 21.66,8.73L19.66,5.27C19.54,5.05 19.27,4.96 19.05,5.05L16.56,6.05C16.04,5.66 15.5,5.32 14.87,5.07L14.5,2.42C14.46,2.18 14.25,2 14,2H10C9.75,2 9.54,2.18 9.5,2.42L9.13,5.07C8.5,5.32 7.96,5.66 7.44,6.05L4.95,5.05C4.73,4.96 4.46,5.05 4.34,5.27L2.34,8.73C2.21,8.95 2.27,9.22 2.46,9.37L4.57,11C4.53,11.34 4.5,11.67 4.5,12C4.5,12.33 4.53,12.65 4.57,12.97L2.46,14.63C2.27,14.78 2.21,15.05 2.34,15.27L4.34,18.73C4.46,18.95 4.73,19.03 4.95,18.95L7.44,17.94C7.96,18.34 8.5,18.68 9.13,18.93L9.5,21.58C9.54,21.82 9.75,22 10,22H14C14.25,22 14.46,21.82 14.5,21.58L14.87,18.93C15.5,18.67 16.04,18.34 16.56,17.94L19.05,18.95C19.27,19.03 19.54,18.95 19.66,18.73L21.66,15.27C21.78,15.05 21.73,14.78 21.54,14.63L19.43,12.97Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},Jk=[],Kk=ce(Wk,Qk,Jk,!1,null,null,null,null);const Xk=Kk.exports,ev={directives:{ClickOutside:dg},components:{Cog:Xk},mixins:[$k],props:{name:{type:String,required:!1,default:ie("Settings")}},data(){return{open:!1}},computed:{clickOutsideConfig(){return[this.closeMenu,this.clickOutsideOptions]},ariaLabel(){return ie("Open settings menu")}},methods:{toggleMenu(){this.open=!this.open},closeMenu(){this.open=!1}}};var tv=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.clickOutsideConfig,expression:"clickOutsideConfig"}],class:{open:e.open},attrs:{id:"app-settings"}},[t("div",{attrs:{id:"app-settings__header"}},[t("button",{staticClass:"settings-button",attrs:{type:"button","aria-expanded":e.open?"true":"false","aria-controls":"app-settings__content","aria-label":e.ariaLabel},on:{click:e.toggleMenu}},[t("Cog",{staticClass:"settings-button__icon",attrs:{size:20}}),t("span",{staticClass:"settings-button__label"},[e._v(e._s(e.name))])],1)]),t("transition",{attrs:{name:"slide-up"}},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.open,expression:"open"}],attrs:{id:"app-settings__content"}},[e._t("default")],2)])],1)},av=[],iv=ce(ev,tv,av,!1,null,"db4cc195",null,null);const UM=iv.exports;function nv(e,t){let a,i,n=t,r;this.start=function(){r=!0,i=new Date,a=setTimeout(e,n)},this.pause=function(){r=!1,clearTimeout(a),n-=new Date-i},this.clear=function(){r=!1,clearTimeout(a),n=0},this.getTimeLeft=function(){return r&&(this.pause(),this.start()),n},this.getStateRunning=function(){return r},this.start()}const rv={name:"ChevronLeftIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var ov=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon chevron-left-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},sv=[],lv=ce(rv,ov,sv,!1,null,null,null,null);const uv=lv.exports,dv={name:"PauseIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var cv=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon pause-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M14,19H18V5H14M6,19H10V5H6V19Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},hv=[],fv=ce(dv,cv,hv,!1,null,null,null,null);const gv=fv.exports,_v={name:"PlayIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Fv=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon play-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M8,5.14V19.14L19,12.14L8,5.14Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},mv=[],pv=ce(_v,Fv,mv,!1,null,null,null,null);const Tv=pv.exports,Dv={name:"NcModal",components:{NcActions:Du,ChevronLeft:uv,ChevronRight:bf,Close:No,Pause:gv,Play:Tv,NcButton:ai},directives:{tooltip:uf},mixins:[so],props:{name:{type:String,default:""},hasPrevious:{type:Boolean,default:!1},hasNext:{type:Boolean,default:!1},outTransition:{type:Boolean,default:!1},enableSlideshow:{type:Boolean,default:!1},slideshowDelay:{type:Number,default:5e3},slideshowPaused:{type:Boolean,default:!1},enableSwipe:{type:Boolean,default:!0},spreadNavigation:{type:Boolean,default:!1},size:{type:String,default:"normal",validator:e=>["small","normal","large","full"].includes(e)},canClose:{type:Boolean,default:!0},closeOnClickOutside:{type:Boolean,default:!0},dark:{type:Boolean,default:!1},container:{type:[String,null],default:"body"},closeButtonContained:{type:Boolean,default:!0},additionalTrapElements:{type:Array,default:()=>[]},inlineActions:{type:Number,default:0},show:{type:Boolean,default:void 0}},emits:["previous","next","close","update:show"],data(){return{mc:null,playing:!1,slideshowTimeout:null,iconSize:24,focusTrap:null,randId:g0(),internalShow:!0}},computed:{showModal(){return this.show===void 0?this.internalShow:this.show},modalTransitionName(){return`modal-${this.outTransition?"out":"in"}`},playPauseName(){return this.playing?ie("Pause slideshow"):ie("Start slideshow")},cssVariables(){return{"--slideshow-duration":this.slideshowDelay+"ms","--icon-size":this.iconSize+"px"}},closeButtonAriaLabel(){return ie("Close modal")},prevButtonAriaLabel(){return ie("Previous")},nextButtonAriaLabel(){return ie("Next")}},watch:{slideshowPaused(e){this.slideshowTimeout&&(e?this.slideshowTimeout.pause():this.slideshowTimeout.start())},additionalTrapElements(e){if(this.focusTrap){const t=this.$refs.mask;this.focusTrap.updateContainerElements([t,...e])}}},beforeMount(){window.addEventListener("keydown",this.handleKeydown)},beforeDestroy(){window.removeEventListener("keydown",this.handleKeydown),this.mc.stop()},mounted(){this.useFocusTrap(),this.mc=mf(this.$refs.mask,{onSwipeEnd:this.handleSwipe}),this.container&&(this.container==="body"?document.body.insertBefore(this.$el,document.body.lastChild):document.querySelector(this.container).appendChild(this.$el))},destroyed(){this.clearFocusTrap(),this.$el.remove()},methods:{previous(e){this.hasPrevious&&(e&&this.resetSlideshow(),this.$emit("previous",e))},next(e){this.hasNext&&(e&&this.resetSlideshow(),this.$emit("next",e))},close(e){this.canClose&&(this.internalShow=!1,this.$emit("update:show",!1),setTimeout(()=>{this.$emit("close",e)},300))},handleClickModalWrapper(e){this.closeOnClickOutside&&this.close(e)},handleKeydown(e){if(e.key==="Escape"){const a=rl();return a.length>0&&a[a.length-1]!==this.focusTrap?void 0:this.close(e)}const t={ArrowLeft:this.previous,ArrowRight:this.next};if(t[e.key])return document.activeElement&&!this.$el.contains(document.activeElement)?void 0:t[e.key](e)},handleSwipe(e,t){this.enableSwipe&&(t==="left"?this.next(e):t==="right"&&this.previous(e))},togglePlayPause(){this.playing=!this.playing,this.playing?this.handleSlideshow():this.clearSlideshowTimeout()},resetSlideshow(){this.playing=!this.playing,this.clearSlideshowTimeout(),this.$nextTick(function(){this.togglePlayPause()})},handleSlideshow(){this.playing=!0,this.hasNext?this.slideshowTimeout=new nv(()=>{this.next(),this.handleSlideshow()},this.slideshowDelay):(this.playing=!1,this.clearSlideshowTimeout())},clearSlideshowTimeout(){this.slideshowTimeout&&this.slideshowTimeout.clear()},async useFocusTrap(){if(!this.showModal||this.focusTrap)return;const e=this.$refs.mask;await this.$nextTick();const t={allowOutsideClick:!0,fallbackFocus:e,trapStack:rl(),escapeDeactivates:!1};this.focusTrap=Jf([e,...this.additionalTrapElements],t),this.focusTrap.activate()},clearFocusTrap(){var e;this.focusTrap&&((e=this.focusTrap)==null||e.deactivate(),this.focusTrap=null)}}};var Ev=function(){var e=this,t=e._self._c;return t("transition",{attrs:{name:"fade",appear:""},on:{"after-enter":e.useFocusTrap,"before-leave":e.clearFocusTrap}},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.showModal,expression:"showModal"}],ref:"mask",staticClass:"modal-mask",class:{"modal-mask--dark":e.dark},style:e.cssVariables,attrs:{role:"dialog","aria-modal":"true","aria-labelledby":"modal-name-"+e.randId,"aria-describedby":"modal-description-"+e.randId,tabindex:"-1"}},[t("transition",{attrs:{name:"fade-visibility",appear:""}},[t("div",{staticClass:"modal-header"},[e.name.trim()!==""?t("h2",{staticClass:"modal-name",attrs:{id:"modal-name-"+e.randId}},[e._v(" "+e._s(e.name)+" ")]):e._e(),t("div",{staticClass:"icons-menu"},[e.hasNext&&e.enableSlideshow?t("button",{directives:[{name:"tooltip",rawName:"v-tooltip.auto",value:e.playPauseName,expression:"playPauseName",modifiers:{auto:!0}}],staticClass:"play-pause-icons",class:{"play-pause-icons--paused":e.slideshowPaused},attrs:{type:"button"},on:{click:e.togglePlayPause}},[e.playing?t("Pause",{staticClass:"play-pause-icons__pause",attrs:{size:e.iconSize}}):t("Play",{staticClass:"play-pause-icons__play",attrs:{size:e.iconSize}}),t("span",{staticClass:"hidden-visually"},[e._v(" "+e._s(e.playPauseName)+" ")]),e.playing?t("svg",{staticClass:"progress-ring",attrs:{height:"50",width:"50"}},[t("circle",{staticClass:"progress-ring__circle",attrs:{stroke:"white","stroke-width":"2",fill:"transparent",r:"15",cx:"25",cy:"25"}})]):e._e()],1):e._e(),t("NcActions",{staticClass:"header-actions",attrs:{inline:e.inlineActions}},[e._t("actions")],2),e.canClose&&!e.closeButtonContained?t("NcButton",{staticClass:"header-close",attrs:{"aria-label":e.closeButtonAriaLabel,type:"tertiary"},on:{click:e.close},scopedSlots:e._u([{key:"icon",fn:function(){return[t("Close",{attrs:{size:e.iconSize}})]},proxy:!0}],null,!1,1841713362)}):e._e()],1)])]),t("transition",{attrs:{name:e.modalTransitionName,appear:""}},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.showModal,expression:"showModal"}],staticClass:"modal-wrapper",class:[`modal-wrapper--${e.size}`,{"modal-wrapper--spread-navigation":e.spreadNavigation}],on:{mousedown:function(a){return a.target!==a.currentTarget?null:e.handleClickModalWrapper.apply(null,arguments)}}},[t("transition",{attrs:{name:"fade-visibility",appear:""}},[t("NcButton",{directives:[{name:"show",rawName:"v-show",value:e.hasPrevious,expression:"hasPrevious"}],staticClass:"prev",attrs:{type:"tertiary-no-background","aria-label":e.prevButtonAriaLabel},on:{click:e.previous},scopedSlots:e._u([{key:"icon",fn:function(){return[t("ChevronLeft",{attrs:{size:40}})]},proxy:!0}])})],1),t("div",{staticClass:"modal-container",attrs:{id:"modal-description-"+e.randId}},[e.canClose&&e.closeButtonContained?t("NcButton",{staticClass:"modal-container__close",attrs:{type:"tertiary","aria-label":e.closeButtonAriaLabel},on:{click:e.close},scopedSlots:e._u([{key:"icon",fn:function(){return[t("Close",{attrs:{size:20}})]},proxy:!0}],null,!1,2121748766)}):e._e(),t("div",{staticClass:"modal-container__content"},[e._t("default")],2)],1),t("transition",{attrs:{name:"fade-visibility",appear:""}},[t("NcButton",{directives:[{name:"show",rawName:"v-show",value:e.hasNext,expression:"hasNext"}],staticClass:"next",attrs:{type:"tertiary-no-background","aria-label":e.nextButtonAriaLabel},on:{click:e.next},scopedSlots:e._u([{key:"icon",fn:function(){return[t("ChevronRight",{attrs:{size:40}})]},proxy:!0}])})],1)],1)])],1)])},bv=[],yv=ce(Dv,Ev,bv,!1,null,"45e668d9",null,null);const Cu=yv.exports;xu(Cu);const Av=Yl({name:"NcDialogButton",components:{NcButton:ai,NcIconSvgWrapper:Ef},props:{callback:{type:Function,required:!0},label:{type:String,required:!0},icon:{type:String,required:!1,default:void 0},type:{type:String,required:!1,default:"secondary",validator:e=>typeof e=="string"&&["primary","secondary","error","warning","success"].includes(e)}},emits:["click"],setup(e,{emit:t}){return{handleClick:a=>{var i;(i=e.callback)==null||i.call(e),t("click",a)}}}});var Sv=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("NcButton",{attrs:{"aria-label":e.label,type:e.type},on:{click:e.handleClick},scopedSlots:e._u([{key:"icon",fn:function(){return[e._t("icon",function(){return[e.icon!==void 0?t("NcIconSvgWrapper",{attrs:{svg:e.icon}}):e._e()]})]},proxy:!0}],null,!0)},[e._v(" "+e._s(e.label)+" ")])},kv=[],vv=ce(Av,Sv,kv,!1,null,null,null,null);const Rv=vv.exports,Nv=Yl({name:"NcDialog",components:{NcDialogButton:Rv,NcModal:Cu},props:{name:{type:String,required:!0},message:{type:String,default:""},additionalTrapElements:{type:Array,validator:e=>Array.isArray(e)&&e.every(t=>typeof t=="string"),default:()=>[]},container:{type:String,required:!1,default:"body"},open:{type:Boolean,default:!0},size:{type:String,required:!1,default:"small",validator:e=>typeof e=="string"&&["small","normal","large","full"].includes(e)},buttons:{type:Array,required:!1,default:()=>[],validator:e=>Array.isArray(e)&&e.every(t=>typeof t=="object")},canClose:{type:Boolean,default:!0},outTransition:{type:Boolean,default:!1},navigationClasses:{type:[String,Array,Object],required:!1,default:""},contentClasses:{type:[String,Array,Object],required:!1,default:""},dialogClasses:{type:[String,Array,Object],required:!1,default:""}},emits:["closing","update:open"],setup(e,{emit:t,slots:a}){const i=gt(),{width:n}=xD(i),r=st(()=>n.value<876),o=st(()=>a?.navigation!==void 0),s=gt(!0),l=()=>{d(),window.setTimeout(()=>u(),300)},d=()=>{s.value=!1,t("closing")},u=()=>{s.value=!0,t("update:open",!1)},c=st(()=>({canClose:e.canClose,container:e.container===void 0?"body":e.container,size:e.size,show:e.open&&s.value,outTransition:e.outTransition,class:"dialog__modal",closeOnClickOutside:!1,enableSlideshow:!1,enableSwipe:!1}));return{handleButtonClose:l,handleClosing:d,handleClosed:u,hasNavigation:o,isNavigationCollapsed:r,modalProps:c,wrapper:i}}});var wv=function(){var e=this,t=e._self._c;return e._self._setupProxy,e.open?t("NcModal",e._b({on:{close:e.handleClosed,"update:show":e.handleClosing}},"NcModal",e.modalProps,!1),[t("h2",{staticClass:"dialog__name",domProps:{textContent:e._s(e.name)}}),t("div",{staticClass:"dialog",class:e.dialogClasses},[t("div",{ref:"wrapper",class:["dialog__wrapper",{"dialog__wrapper--collapsed":e.isNavigationCollapsed}]},[e.hasNavigation?t("nav",{staticClass:"dialog__navigation",class:e.navigationClasses},[e._t("navigation",null,{isCollapsed:e.isNavigationCollapsed})],2):e._e(),t("div",{staticClass:"dialog__content",class:e.contentClasses},[e._t("default",function(){return[t("p",[e._v(e._s(e.message))])]})],2)]),t("div",{staticClass:"dialog__actions"},[e._t("actions",function(){return e._l(e.buttons,function(a,i){return t("NcDialogButton",e._b({key:i,on:{click:e.handleButtonClose}},"NcDialogButton",a,!1))})})],2)])]):e._e()},Ov=[],xv=ce(Nv,wv,Ov,!1,null,"cf1c45bf",null,null);const qM=xv.exports;Bu(function(){this.selectedSection="",document.activeElement.className.includes("navigation-list__link")&&document.activeElement.blur()},300);const Bv={name:"ArrowLeftIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Cv=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon arrow-left-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M20,11V13H8L13.5,18.5L12.08,19.92L4.16,12L12.08,4.08L13.5,5.5L8,11H20Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},Mv=[],Yv=ce(Bv,Cv,Mv,!1,null,null,null,null);const Lv=Yv.exports;var Zv={exports:{}};(function(e,t){(function(a,i){e.exports=i()})(typeof self<"u"?self:Ia,function(){return function(a){function i(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return a[r].call(o.exports,o,o.exports,i),o.l=!0,o.exports}var n={};return i.m=a,i.c=n,i.d=function(r,o,s){i.o(r,o)||Object.defineProperty(r,o,{configurable:!1,enumerable:!0,get:s})},i.n=function(r){var o=r&&r.__esModule?function(){return r.default}:function(){return r};return i.d(o,"a",o),o},i.o=function(r,o){return Object.prototype.hasOwnProperty.call(r,o)},i.p="",i(i.s=60)}([function(a,i){function n(o,s){var l=o[1]||"",d=o[3];if(!d)return l;if(s&&typeof btoa=="function"){var u=r(d);return[l].concat(d.sources.map(function(c){return"/*# sourceURL="+d.sourceRoot+c+" */"})).concat([u]).join(` + `)])]):e._e(),e._v(" "),a("div",{class:e.prefixClass+"-time-content"},[e.timePickerOptions?a("list-options",{attrs:{date:e.innerValue,"get-classes":e.getClasses,options:e.timePickerOptions,format:e.innerForamt},on:{select:e.handleSelect}}):a("list-columns",e._b({attrs:{date:e.innerValue,"get-classes":e.getClasses,"hour-options":e.hourOptions,"minute-options":e.minuteOptions,"second-options":e.secondOptions,"hour-step":e.hourStep,"minute-step":e.minuteStep,"second-step":e.secondStep,"scroll-duration":e.scrollDuration},on:{select:e.handleSelect}},"list-columns",e.ShowHourMinuteSecondAMPM,!1))],1)])},jO=[],PO=void 0,GO=void 0,UO=void 0,qO=!1,Va=jt({render:IO,staticRenderFns:jO},PO,ZO,GO,qO,UO,!1,void 0,void 0,void 0),i0={name:"TimeRange",inject:{prefixClass:{default:"mx"}},props:je({},Va.props),data:function(){return{startValue:new Date(NaN),endValue:new Date(NaN)}},watch:{value:{immediate:!0,handler:function(){if(qo(this.value)){var e=t0(this.value,2),t=e[0],a=e[1];this.startValue=t,this.endValue=a}else this.startValue=new Date(NaN),this.endValue=new Date(NaN)}}},methods:{emitChange:function(e,t){var a=[this.startValue,this.endValue];this.$emit("select",a,e==="time"?"time-range":e,t)},handleSelectStart:function(e,t){this.startValue=e,this.endValue.getTime()>=e.getTime()||(this.endValue=e),this.emitChange(t,0)},handleSelectEnd:function(e,t){this.endValue=e,this.startValue.getTime()<=e.getTime()||(this.startValue=e),this.emitChange(t,1)},disabledStartTime:function(e){return this.disabledTime(e,0)},disabledEndTime:function(e){return e.getTime()2&&arguments[2]!==void 0?arguments[2]:!0;this.userInput=null;var i=Array.isArray(e)?e.map(this.date2value):this.date2value(e);return this.$emit("input",i),this.$emit("change",i,t),a&&this.closePopup(),i},isValidValue:function(e){return this.validMultipleType?IN(e):this.range?qo(e):Aa(e)},isValidValueAndNotDisabled:function(e){if(!this.isValidValue(e))return!1;var t=typeof this.disabledDate=="function"?this.disabledDate:function(){return!1},a=typeof this.disabledTime=="function"?this.disabledTime:function(){return!1};return Array.isArray(e)||(e=[e]),e.every(function(i){return!t(i)&&!a(i)})},handleMultipleDates:function(e,t){if(this.validMultipleType&&t){var a=t.filter(function(i){return i.getTime()!==e.getTime()});return a.length===t.length&&a.push(e),a}return e},handleSelectDate:function(e,t,a){e=this.handleMultipleDates(e,a),this.confirm?this.currentValue=e:this.emitValue(e,t,!this.validMultipleType&&(t===this.type||t==="time"))},clear:function(){this.emitValue(this.range?[null,null]:null),this.$emit("clear")},handleClear:function(e){e.stopPropagation(),this.clear()},handleConfirmDate:function(){var e=this.emitValue(this.currentValue);this.$emit("confirm",e)},handleSelectShortcut:function(e){var t=e.currentTarget.getAttribute("data-index"),a=this.shortcuts[parseInt(t,10)];if(ia(a)&&typeof a.onClick=="function"){var i=a.onClick(this);i&&this.emitValue(i)}},openPopup:function(e){this.popupVisible||this.disabled||(this.defaultOpen=!0,this.$emit("open",e),this.$emit("update:open",!0))},closePopup:function(){this.popupVisible&&(this.defaultOpen=!1,this.$emit("close"),this.$emit("update:open",!1))},blur:function(){this.$refs.input&&this.$refs.input.blur()},focus:function(){this.$refs.input&&this.$refs.input.focus()},handleInputChange:function(){var e=this;if(!(!this.editable||this.userInput===null)){var t=this.userInput.trim();if(this.userInput=null,t===""){this.clear();return}var a;if(this.validMultipleType)a=t.split(this.innerRangeSeparator).map(function(n){return e.parseDate(n.trim())});else if(this.range){var i=t.split(this.innerRangeSeparator);i.length!==2&&(i=t.split(this.innerRangeSeparator.trim())),a=i.map(function(n){return e.parseDate(n.trim())})}else a=this.parseDate(t);this.isValidValueAndNotDisabled(a)?(this.emitValue(a),this.blur()):this.$emit("input-error",t)}},handleInputInput:function(e){this.userInput=typeof e=="string"?e:e.target.value},handleInputKeydown:function(e){var t=e.keyCode;t===9?this.closePopup():t===13&&this.handleInputChange()},handleInputBlur:function(e){this.$emit("blur",e)},handleInputFocus:function(e){this.openPopup(e),this.$emit("focus",e)},hasSlot:function(e){return!!(this.$slots[e]||this.$scopedSlots[e])},renderSlot:function(e,t,a){var i=this.$scopedSlots[e];return i?i(a)||t:this.$slots[e]||t},renderInput:function(){var e=this.$createElement,t=this.prefixClass,a=je({name:"date",type:"text",autocomplete:"off",value:this.text,class:this.inputClass||"".concat(this.prefixClass,"-input"),readonly:!this.editable,disabled:this.disabled,placeholder:this.placeholder},this.inputAttr),i=a.value,n=a.class,r=NN(a,["value","class"]),o={keydown:this.handleInputKeydown,focus:this.handleInputFocus,blur:this.handleInputBlur,input:this.handleInputInput,change:this.handleInputChange},s=this.renderSlot("input",e("input",{domProps:{value:i},class:n,attrs:je({},r),on:je({},o),ref:"input"}),{props:a,events:o}),l=this.type==="time"?e(Tw):e(hw);return e("div",{class:"".concat(t,"-input-wrapper"),on:{mouseenter:this.handleMouseEnter,mouseleave:this.handleMouseLeave,click:this.openPopup},ref:"inputWrapper"},[s,this.showClearIcon?e("i",{class:"".concat(t,"-icon-clear"),on:{click:this.handleClear}},[this.renderSlot("icon-clear",e(kw))]):e("i",{class:"".concat(t,"-icon-calendar")},[this.renderSlot("icon-calendar",l)])])},renderContent:function(){var e=this.$createElement,t=this.range?zO:HO,a=t[this.type]||t.default,i=je({},mn(this.$props,Object.keys(a.props)),{value:this.currentValue}),n=je({},mn(this.$listeners,a.emits||[]),{select:this.handleSelectDate}),r=e(a,g0([{},{props:i,on:n,ref:"picker"}]));return e("div",{class:"".concat(this.prefixClass,"-datepicker-body")},[this.renderSlot("content",r,{value:this.currentValue,emit:this.handleSelectDate})])},renderSidebar:function(){var e=this,t=this.$createElement,a=this.prefixClass;return t("div",{class:"".concat(a,"-datepicker-sidebar")},[this.renderSlot("sidebar",null,{value:this.currentValue,emit:this.handleSelectDate}),this.shortcuts.map(function(i,n){return t("button",{key:n,attrs:{"data-index":n,type:"button"},class:"".concat(a,"-btn ").concat(a,"-btn-text ").concat(a,"-btn-shortcut"),on:{click:e.handleSelectShortcut}},[i.text])})])},renderHeader:function(){var e=this.$createElement;return e("div",{class:"".concat(this.prefixClass,"-datepicker-header")},[this.renderSlot("header",null,{value:this.currentValue,emit:this.handleSelectDate})])},renderFooter:function(){var e=this.$createElement,t=this.prefixClass;return e("div",{class:"".concat(t,"-datepicker-footer")},[this.renderSlot("footer",null,{value:this.currentValue,emit:this.handleSelectDate}),this.confirm?e("button",{attrs:{type:"button"},class:"".concat(t,"-btn ").concat(t,"-datepicker-btn-confirm"),on:{click:this.handleConfirmDate}},[this.confirmText]):null])}},render:function(){var e,t=arguments[0],a=this.prefixClass,i=this.inline,n=this.disabled,r=this.hasSlot("sidebar")||this.shortcuts.length?this.renderSidebar():null,o=t("div",{class:"".concat(a,"-datepicker-content")},[this.hasSlot("header")?this.renderHeader():null,this.renderContent(),this.hasSlot("footer")||this.confirm?this.renderFooter():null]);return t("div",{class:(e={},Di(e,"".concat(a,"-datepicker"),!0),Di(e,"".concat(a,"-datepicker-range"),this.range),Di(e,"".concat(a,"-datepicker-inline"),i),Di(e,"disabled",n),e)},[i?null:this.renderInput(),i?t("div",{class:"".concat(a,"-datepicker-main")},[r,o]):t(rw,{ref:"popup",class:this.popupClass,style:this.popupStyle,attrs:{visible:this.popupVisible,appendToBody:this.appendToBody},on:{clickoutside:this.handleClickOutSide}},[r,o])])}};fi.locale=D_,fi.install=function(e){e.component(fi.name,fi)},typeof window<"u"&&window.Vue&&fi.install(window.Vue),vl(fi,{CalendarPanel:Ai,CalendarRange:a0,TimePanel:Va,TimeRange:i0,DatetimePanel:$u,DatetimeRange:b_});const VO={name:"CalendarBlankIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var $O=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon calendar-blank-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M19,19H5V8H19M16,1V3H8V1H6V3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3H18V1"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},WO=[],QO=de(VO,$O,WO,!1,null,null,null,null);const JO=QO.exports,KO={name:"WebIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var XO=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon web-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M16.36,14C16.44,13.34 16.5,12.68 16.5,12C16.5,11.32 16.44,10.66 16.36,10H19.74C19.9,10.64 20,11.31 20,12C20,12.69 19.9,13.36 19.74,14M14.59,19.56C15.19,18.45 15.65,17.25 15.97,16H18.92C17.96,17.65 16.43,18.93 14.59,19.56M14.34,14H9.66C9.56,13.34 9.5,12.68 9.5,12C9.5,11.32 9.56,10.65 9.66,10H14.34C14.43,10.65 14.5,11.32 14.5,12C14.5,12.68 14.43,13.34 14.34,14M12,19.96C11.17,18.76 10.5,17.43 10.09,16H13.91C13.5,17.43 12.83,18.76 12,19.96M8,8H5.08C6.03,6.34 7.57,5.06 9.4,4.44C8.8,5.55 8.35,6.75 8,8M5.08,16H8C8.35,17.25 8.8,18.45 9.4,19.56C7.57,18.93 6.03,17.65 5.08,16M4.26,14C4.1,13.36 4,12.69 4,12C4,11.31 4.1,10.64 4.26,10H7.64C7.56,10.66 7.5,11.32 7.5,12C7.5,12.68 7.56,13.34 7.64,14M12,4.03C12.83,5.23 13.5,6.57 13.91,8H10.09C10.5,6.57 11.17,5.23 12,4.03M18.92,8H15.97C15.65,6.75 15.19,5.55 14.59,4.44C16.43,5.07 17.96,6.34 18.92,8M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},ex=[],tx=de(KO,XO,ex,!1,null,null,null,null);const ax=tx.exports,vc={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD H:mm:ss",year:"YYYY",month:"YYYY-MM",time:"H:mm:ss",week:"w"},ix={name:"NcDateTimePicker",components:{CalendarBlank:JO,DatePicker:fi,NcPopover:fu,NcTimezonePicker:aN,Web:ax},mixins:[ho],inheritAttrs:!1,props:{clearable:{type:Boolean,default:!1},minuteStep:{type:Number,default:10},type:{type:String,default:"date"},format:{type:String,default:null},formatter:{type:Object,default:null},lang:{type:Object,default:null},value:{default:()=>new Date},timezoneId:{type:String,default:"UTC"},showTimezoneSelect:{type:Boolean,default:!1},highlightTimezone:{type:Boolean,default:!1},appendToBody:{type:Boolean,default:!1},showWeekNumber:{type:Boolean,default:!1},placeholder:{type:String,default:null}},emits:["update:value","update:timezone-id"],data(){return{showTimezonePopover:!1,tzVal:this.timezoneId}},computed:{defaultLang(){return{formatLocale:{months:W_(),monthsShort:Q_(),weekdays:J_(),weekdaysShort:K_(),weekdaysMin:X_(),firstDayOfWeek:eF()},monthFormat:"MMM"}},defaultPlaceholder(){return this.type==="time"?ie("Pick a time"):this.type==="month"?ie("Pick a month"):this.type==="year"?ie("Pick a year"):this.type==="week"?ie("Pick a week"):this.type==="date"?ie("Pick a date"):ie("Pick a date and a time")},formatTypeMap(){var e;return(e=vc[this.type])!=null?e:vc.date}},methods:{handleSelectYear(e){const t=this.$refs.datepicker.currentValue;if(t)try{const a=new Date(new Date(t).setFullYear(e));this.$refs.datepicker.selectDate(a)}catch{console.error("Invalid value",t,e)}},handleSelectMonth(e){const t=this.$refs.datepicker.currentValue;if(t)try{const a=new Date(new Date(t).setMonth(e));this.$refs.datepicker.selectDate(a)}catch{console.error("Invalid value",t,e)}},toggleTimezonePopover(){this.showTimezoneSelect&&(this.showTimezonePopover=!this.showTimezonePopover)}}};var nx=function(){var e=this,t=e._self._c;return t("DatePicker",e._g(e._b({ref:"datepicker",attrs:{"append-to-body":e.appendToBody,clearable:e.clearable,format:e.format?e.format:e.formatTypeMap,formatter:e.formatter,lang:e.lang?e.lang:e.defaultLang,"minute-step":e.minuteStep,placeholder:e.placeholder?e.placeholder:e.defaultPlaceholder,"popup-class":{"show-week-number":e.showWeekNumber},"show-week-number":e.showWeekNumber,type:e.type,value:e.value},on:{"select-year":e.handleSelectYear,"select-month":e.handleSelectMonth,"update:value":function(a){return e.$emit("update:value",e.value)}},scopedSlots:e._u([{key:"icon-calendar",fn:function(){return[e.showTimezoneSelect?t("NcPopover",{attrs:{shown:e.showTimezonePopover,"popover-base-class":"timezone-select__popper"},on:{"update:shown":function(a){e.showTimezonePopover=a}},scopedSlots:e._u([{key:"trigger",fn:function(){return[t("button",{staticClass:"datetime-picker-inline-icon",class:{"datetime-picker-inline-icon--highlighted":e.highlightTimezone},on:{mousedown:function(a){return a.stopPropagation(),a.preventDefault(),(()=>{}).apply(null,arguments)}}},[t("Web",{attrs:{size:20}})],1)]},proxy:!0}],null,!1,3375037618)},[t("div",{staticClass:"timezone-popover-wrapper__label"},[t("strong",[e._v(" "+e._s(e.t("Please select a time zone:"))+" ")])]),t("NcTimezonePicker",{staticClass:"timezone-popover-wrapper__timezone-select",on:{input:function(a){return e.$emit("update:timezone-id",arguments[0])}},model:{value:e.tzVal,callback:function(a){e.tzVal=a},expression:"tzVal"}})],1):t("CalendarBlank",{attrs:{size:20}})]},proxy:!0},e._l(e.$scopedSlots,function(a,i){return{key:i,fn:function(n){return[e._t(i,null,null,n)]}}})],null,!0)},"DatePicker",e.$attrs,!1),e.$listeners))},rx=[],ox=de(ix,nx,rx,!1,null,"26676d3b",null,null);const sx=ox.exports;vu(sx);const lx=["date","datetime-local","month","time","week"],ux={name:"NcDateTimePickerNative",inheritAttrs:!1,props:{value:{type:Date,default:null},id:{type:String,required:!0},type:{type:String,default:"date",validate:e=>lx.includes(e)},label:{type:String,default:"Please choose a date"},min:{type:[Date,Boolean],default:null},max:{type:[Date,Boolean],default:null},hideLabel:{type:Boolean,default:!1},inputClass:{type:[Object,String],default:""}},emits:["input"],computed:{formattedValue(){return this.formatValue(this.value)},formattedMin(){return this.min?this.formatValue(this.min):!1},formattedMax(){return this.max?this.formatValue(this.max):!1},listeners(){return{...this.$listeners,input:e=>{if(isNaN(e.target.valueAsNumber))return this.$emit("input",null);if(this.type==="time"){const i=e.target.value;if(this.value===""){const{yyyy:s,MM:l,dd:d}=this.getReadableDate(new Date);return this.$emit("input",new Date(`${s}-${l}-${d}T${i}`))}const{yyyy:n,MM:r,dd:o}=this.getReadableDate(this.value);return this.$emit("input",new Date(`${n}-${r}-${o}T${i}`))}else if(this.type==="month"){const i=(new Date(e.target.value).getMonth()+1).toString().padStart(2,"0");if(this.value===""){const{yyyy:l,dd:d,hh:u,mm:c}=this.getReadableDate(new Date);return this.$emit("input",new Date(`${l}-${i}-${d}T${u}:${c}`))}const{yyyy:n,dd:r,hh:o,mm:s}=this.getReadableDate(this.value);return this.$emit("input",new Date(`${n}-${i}-${r}T${o}:${s}`))}const t=new Date(e.target.valueAsNumber).getTimezoneOffset()*1e3*60,a=e.target.valueAsNumber+t;return this.$emit("input",new Date(a))}}}},methods:{getReadableDate(e){if(e instanceof Date){const t=e.getFullYear().toString().padStart(4,"0"),a=(e.getMonth()+1).toString().padStart(2,"0"),i=e.getDate().toString().padStart(2,"0"),n=e.getHours().toString().padStart(2,"0"),r=e.getMinutes().toString().padStart(2,"0");return{yyyy:t,MM:a,dd:i,hh:n,mm:r}}},formatValue(e){if(e instanceof Date){const{yyyy:t,MM:a,dd:i,hh:n,mm:r}=this.getReadableDate(e);if(this.type==="datetime-local")return`${t}-${a}-${i}T${n}:${r}`;if(this.type==="date")return`${t}-${a}-${i}`;if(this.type==="month")return`${t}-${a}`;if(this.type==="time")return`${n}:${r}`;if(this.type==="week"){const o=new Date(t,0,1),s=Math.floor((e-o)/(24*60*60*1e3)),l=Math.ceil(s/7);return`${t}-W${l}`}}else return""}}};var dx=function(){var e=this,t=e._self._c;return t("div",{staticClass:"native-datetime-picker"},[t("label",{class:{"hidden-visually":e.hideLabel},attrs:{for:e.id}},[e._v(e._s(e.label))]),t("input",e._g(e._b({staticClass:"native-datetime-picker--input",class:e.inputClass,attrs:{id:e.id,type:e.type,min:e.formattedMin,max:e.formattedMax},domProps:{value:e.formattedValue}},"input",e.$attrs,!1),e.listeners))])},cx=[],hx=de(ux,dx,cx,!1,null,"22982259",null,null);const fx=hx.exports;vu(fx);function Ol(e,t,a){var i,n,r,o,s;t==null&&(t=100);function l(){var u=Date.now()-o;u=0?i=setTimeout(l,t-u):(i=null,a||(s=e.apply(r,n),r=n=null))}var d=function(){r=this,n=arguments,o=Date.now();var u=a&&!i;return i||(i=setTimeout(l,t)),u&&(s=e.apply(r,n),r=n=null),s};return d.clear=function(){i&&(clearTimeout(i),i=null)},d.flush=function(){i&&(s=e.apply(r,n),r=n=null,clearTimeout(i),i=null)},d}Ol.debounce=Ol;var y_=Ol;const Wu=ti(y_),gx={name:"EyeIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var _x=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon eye-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17M12,4.5C7,4.5 2.73,7.61 1,12C2.73,16.39 7,19.5 12,19.5C17,19.5 21.27,16.39 23,12C21.27,7.61 17,4.5 12,4.5Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},Fx=[],mx=de(gx,_x,Fx,!1,null,null,null,null);const px=mx.exports,Tx={name:"EyeOffIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Dx=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon eye-off-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M11.83,9L15,12.16C15,12.11 15,12.05 15,12A3,3 0 0,0 12,9C11.94,9 11.89,9 11.83,9M7.53,9.8L9.08,11.35C9.03,11.56 9,11.77 9,12A3,3 0 0,0 12,15C12.22,15 12.44,14.97 12.65,14.92L14.2,16.47C13.53,16.8 12.79,17 12,17A5,5 0 0,1 7,12C7,11.21 7.2,10.47 7.53,9.8M2,4.27L4.28,6.55L4.73,7C3.08,8.3 1.78,10 1,12C2.73,16.39 7,19.5 12,19.5C13.55,19.5 15.03,19.2 16.38,18.66L16.81,19.08L19.73,22L21,20.73L3.27,3M12,7A5,5 0 0,1 17,12C17,12.64 16.87,13.26 16.64,13.82L19.57,16.75C21.07,15.5 22.27,13.86 23,12C21.27,7.61 17,4.5 12,4.5C10.6,4.5 9.26,4.75 8,5.2L10.17,7.35C10.74,7.13 11.35,7 12,7Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},Ex=[],bx=de(Tx,Dx,Ex,!1,null,null,null,null);const yx=bx.exports,Rc=Is("core","capabilities",{}).password_policy||null,Ax=new Set(Object.keys(fn.props)),Sx={name:"NcPasswordField",components:{NcInputField:fn,Eye:px,EyeOff:yx},inheritAttrs:!1,props:{" ":{},...fn.props,showTrailingButton:{type:Boolean,default:!0},trailingButtonLabel:void 0,checkPasswordStrength:{type:Boolean,default:!1},minlength:{type:Number,default:0},maxlength:{type:Number,default:null}},emits:["valid","invalid","update:value"],data(){return{isPasswordHidden:!0,internalHelpMessage:"",isValid:null}},computed:{computedError(){return this.error||this.isValid===!1},computedSuccess(){return this.success||this.isValid===!0},computedHelperText(){return this.helperText.length>0?this.helperText:this.internalHelpMessage},rules(){const{minlength:e}=this;return{minlength:e??Rc?.minLength}},trailingButtonLabelPassword(){return this.isPasswordHidden?ie("Show password"):ie("Hide password")},propsAndAttrsToForward(){return{...this.$attrs,...Object.fromEntries(Object.entries(this.$props).filter(([e])=>Ax.has(e)))}}},watch:{value(e){if(this.checkPasswordStrength){if(Rc===null)return;this.checkPassword(e)}}},methods:{focus(){this.$refs.inputField.focus()},select(){this.$refs.inputField.select()},handleInput(e){this.$emit("update:value",e.target.value)},togglePasswordVisibility(){this.isPasswordHidden=!this.isPasswordHidden},checkPassword:Wu(async function(e){try{const{data:t}=await Wa.post($a("apps/password_policy/api/v1/validate"),{password:e});if(this.isValid=t.ocs.data.passed,t.ocs.data.passed){this.internalHelpMessage=ie("Password is secure"),this.$emit("valid");return}this.internalHelpMessage=t.ocs.data.reason,this.$emit("invalid")}catch(t){t_.error("Password policy returned an error",t)}},500)}};var kx=function(){var e=this,t=e._self._c;return t("NcInputField",e._g(e._b({ref:"inputField",attrs:{type:e.isPasswordHidden?"password":"text","trailing-button-label":e.trailingButtonLabelPassword,"helper-text":e.computedHelperText,error:e.computedError,success:e.computedSuccess,minlength:e.rules.minlength},on:{"trailing-button-click":e.togglePasswordVisibility,input:e.handleInput},scopedSlots:e._u([{key:"trailing-button-icon",fn:function(){return[e.isPasswordHidden?t("Eye",{attrs:{size:18}}):t("EyeOff",{attrs:{size:18}})]},proxy:!0}])},"NcInputField",e.propsAndAttrsToForward,!1),e.$listeners),[e._t("default")],2)},vx=[],Rx=de(Sx,kx,vx,!1,null,null,null,null);const _7=Rx.exports;ie("Submit");const Nx={name:"NcVNodes",props:{vnodes:{type:[Array,Object],default:null}},render(e){var t,a,i;return this.vnodes||((t=this.$slots)==null?void 0:t.default)||((i=(a=this.$scopedSlots)==null?void 0:a.default)==null?void 0:i.call(a))}},wx=null,Ox=null;var xx=de(Nx,wx,Ox,!1,null,null,null,null);const F7=xx.exports;const Bx={props:{excludeClickOutsideSelectors:{type:[String,Array],default:()=>[]}},computed:{clickOutsideOptions(){return{ignore:Array.isArray(this.excludeClickOutsideSelectors)?this.excludeClickOutsideSelectors:[this.excludeClickOutsideSelectors]}}}},Cx={name:"CogIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Mx=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon cog-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M12,15.5A3.5,3.5 0 0,1 8.5,12A3.5,3.5 0 0,1 12,8.5A3.5,3.5 0 0,1 15.5,12A3.5,3.5 0 0,1 12,15.5M19.43,12.97C19.47,12.65 19.5,12.33 19.5,12C19.5,11.67 19.47,11.34 19.43,11L21.54,9.37C21.73,9.22 21.78,8.95 21.66,8.73L19.66,5.27C19.54,5.05 19.27,4.96 19.05,5.05L16.56,6.05C16.04,5.66 15.5,5.32 14.87,5.07L14.5,2.42C14.46,2.18 14.25,2 14,2H10C9.75,2 9.54,2.18 9.5,2.42L9.13,5.07C8.5,5.32 7.96,5.66 7.44,6.05L4.95,5.05C4.73,4.96 4.46,5.05 4.34,5.27L2.34,8.73C2.21,8.95 2.27,9.22 2.46,9.37L4.57,11C4.53,11.34 4.5,11.67 4.5,12C4.5,12.33 4.53,12.65 4.57,12.97L2.46,14.63C2.27,14.78 2.21,15.05 2.34,15.27L4.34,18.73C4.46,18.95 4.73,19.03 4.95,18.95L7.44,17.94C7.96,18.34 8.5,18.68 9.13,18.93L9.5,21.58C9.54,21.82 9.75,22 10,22H14C14.25,22 14.46,21.82 14.5,21.58L14.87,18.93C15.5,18.67 16.04,18.34 16.56,17.94L19.05,18.95C19.27,19.03 19.54,18.95 19.66,18.73L21.66,15.27C21.78,15.05 21.73,14.78 21.54,14.63L19.43,12.97Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},Yx=[],Lx=de(Cx,Mx,Yx,!1,null,null,null,null);const Zx=Lx.exports,Ix={directives:{ClickOutside:Vf},components:{Cog:Zx},mixins:[Bx],props:{name:{type:String,required:!1,default:ie("Settings")}},data(){return{open:!1}},computed:{clickOutsideConfig(){return[this.closeMenu,this.clickOutsideOptions]},ariaLabel(){return ie("Open settings menu")}},methods:{toggleMenu(){this.open=!this.open},closeMenu(){this.open=!1}}};var jx=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.clickOutsideConfig,expression:"clickOutsideConfig"}],class:{open:e.open},attrs:{id:"app-settings"}},[t("div",{attrs:{id:"app-settings__header"}},[t("button",{staticClass:"settings-button",attrs:{type:"button","aria-expanded":e.open?"true":"false","aria-controls":"app-settings__content","aria-label":e.ariaLabel},on:{click:e.toggleMenu}},[t("Cog",{staticClass:"settings-button__icon",attrs:{size:20}}),t("span",{staticClass:"settings-button__label"},[e._v(e._s(e.name))])],1)]),t("transition",{attrs:{name:"slide-up"}},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.open,expression:"open"}],attrs:{id:"app-settings__content"}},[e._t("default")],2)])],1)},Px=[],Gx=de(Ix,jx,Px,!1,null,"db4cc195",null,null);const m7=Gx.exports;const Ux=Tn({name:"NcDialogButton",components:{NcButton:ai,NcIconSvgWrapper:Sf},props:{callback:{type:Function,required:!0},label:{type:String,required:!0},icon:{type:String,required:!1,default:void 0},type:{type:String,required:!1,default:"secondary",validator:e=>typeof e=="string"&&["primary","secondary","error","warning","success"].includes(e)}},emits:["click"],setup(e,{emit:t}){return{handleClick:a=>{var i;(i=e.callback)==null||i.call(e),t("click",a)}}}});var qx=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("NcButton",{attrs:{"aria-label":e.label,type:e.type},on:{click:e.handleClick},scopedSlots:e._u([{key:"icon",fn:function(){return[e._t("icon",function(){return[e.icon!==void 0?t("NcIconSvgWrapper",{attrs:{svg:e.icon}}):e._e()]})]},proxy:!0}],null,!0)},[e._v(" "+e._s(e.label)+" ")])},Hx=[],zx=de(Ux,qx,Hx,!1,null,null,null,null);const Vx=zx.exports,$x=Tn({name:"NcDialog",components:{NcDialogButton:Vx,NcModal:Ru},props:{name:{type:String,required:!0},message:{type:String,default:""},additionalTrapElements:{type:Array,validator:e=>Array.isArray(e)&&e.every(t=>typeof t=="string"),default:()=>[]},container:{type:String,required:!1,default:"body"},open:{type:Boolean,default:!0},size:{type:String,required:!1,default:"small",validator:e=>typeof e=="string"&&["small","normal","large","full"].includes(e)},buttons:{type:Array,required:!1,default:()=>[],validator:e=>Array.isArray(e)&&e.every(t=>typeof t=="object")},canClose:{type:Boolean,default:!0},outTransition:{type:Boolean,default:!1},navigationClasses:{type:[String,Array,Object],required:!1,default:""},contentClasses:{type:[String,Array,Object],required:!1,default:""},dialogClasses:{type:[String,Array,Object],required:!1,default:""}},emits:["closing","update:open"],setup(e,{emit:t,slots:a}){const i=ut(),{width:n}=ZD(i),r=ze(()=>n.value<876),o=ze(()=>a?.navigation!==void 0),s=ut(!0),l=()=>{d(),window.setTimeout(()=>u(),300)},d=()=>{s.value=!1,t("closing")},u=()=>{s.value=!0,t("update:open",!1)},c=ze(()=>({canClose:e.canClose,container:e.container===void 0?"body":e.container,size:e.size,show:e.open&&s.value,outTransition:e.outTransition,class:"dialog__modal",closeOnClickOutside:!1,enableSlideshow:!1,enableSwipe:!1}));return{handleButtonClose:l,handleClosing:d,handleClosed:u,hasNavigation:o,isNavigationCollapsed:r,modalProps:c,wrapper:i}}});var Wx=function(){var e=this,t=e._self._c;return e._self._setupProxy,e.open?t("NcModal",e._b({on:{close:e.handleClosed,"update:show":e.handleClosing}},"NcModal",e.modalProps,!1),[t("h2",{staticClass:"dialog__name",domProps:{textContent:e._s(e.name)}}),t("div",{staticClass:"dialog",class:e.dialogClasses},[t("div",{ref:"wrapper",class:["dialog__wrapper",{"dialog__wrapper--collapsed":e.isNavigationCollapsed}]},[e.hasNavigation?t("nav",{staticClass:"dialog__navigation",class:e.navigationClasses},[e._t("navigation",null,{isCollapsed:e.isNavigationCollapsed})],2):e._e(),t("div",{staticClass:"dialog__content",class:e.contentClasses},[e._t("default",function(){return[t("p",[e._v(e._s(e.message))])]})],2)]),t("div",{staticClass:"dialog__actions"},[e._t("actions",function(){return e._l(e.buttons,function(a,i){return t("NcDialogButton",e._b({key:i,on:{click:e.handleButtonClose}},"NcDialogButton",a,!1))})})],2)])]):e._e()},Qx=[],Jx=de($x,Wx,Qx,!1,null,"cf1c45bf",null,null);const p7=Jx.exports;Wu(function(){this.selectedSection="",document.activeElement.className.includes("navigation-list__link")&&document.activeElement.blur()},300);var Kx={exports:{}};(function(e,t){(function(a,i){e.exports=i()})(typeof self<"u"?self:ja,function(){return function(a){function i(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return a[r].call(o.exports,o,o.exports,i),o.l=!0,o.exports}var n={};return i.m=a,i.c=n,i.d=function(r,o,s){i.o(r,o)||Object.defineProperty(r,o,{configurable:!1,enumerable:!0,get:s})},i.n=function(r){var o=r&&r.__esModule?function(){return r.default}:function(){return r};return i.d(o,"a",o),o},i.o=function(r,o){return Object.prototype.hasOwnProperty.call(r,o)},i.p="",i(i.s=60)}([function(a,i){function n(o,s){var l=o[1]||"",d=o[3];if(!d)return l;if(s&&typeof btoa=="function"){var u=r(d);return[l].concat(d.sources.map(function(c){return"/*# sourceURL="+d.sourceRoot+c+" */"})).concat([u]).join(` `)}return[l].join(` `)}function r(o){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"}a.exports=function(o){var s=[];return s.toString=function(){return this.map(function(l){var d=n(l,o);return l[2]?"@media "+l[2]+"{"+d+"}":d}).join("")},s.i=function(l,d){typeof l=="string"&&(l=[[null,l,""]]);for(var u={},c=0;cM.parts.length&&(P.parts.length=M.parts.length)}else{for(var D=[],g=0;g.5?G/(2-ne-be):G/(ne+be),ne){case v:K=(Y-w)/G+(Y1&&(F-=1),F<1/6?W+6*(q-W)*F:F<.5?q:F<2/3?W+(q-W)*(2/3-F)*6:W}var se,ne,be;if(v=Z(v,360),Y=Z(Y,100),w=Z(w,100),Y===0)se=ne=be=w;else{var Be=w<.5?w*(1+Y):w+Y-w*Y,G=2*w-Be;se=K(G,Be,v+1/3),ne=K(G,Be,v),be=K(G,Be,v-1/3)}return{r:255*se,g:255*ne,b:255*be}}function f(v,Y,w){v=Z(v,255),Y=Z(Y,255),w=Z(w,255);var K,se,ne=ye(v,Y,w),be=qe(v,Y,w),Be=ne,G=ne-be;if(se=ne===0?0:G/ne,ne==be)K=0;else{switch(ne){case v:K=(Y-w)/G+(Y>1)+720)%360;--Y;)K.h=(K.h+se)%360,ne.push(s(K));return ne}function x(v,Y){Y=Y||6;for(var w=s(v).toHsv(),K=w.h,se=w.s,ne=w.v,be=[],Be=1/Y;Y--;)be.push(s({h:K,s:se,v:ne})),ne=(ne+Be)%1;return be}function L(v){return v=parseFloat(v),(isNaN(v)||v<0||v>1)&&(v=1),v}function Z(v,Y){y(v)&&(v="100%");var w=U(v);return v=qe(Y,ye(0,parseFloat(v))),w&&(v=parseInt(v*Y,10)/100),o.abs(v-Y)<1e-6?1:v%Y/parseFloat(Y)}function $(v){return qe(1,ye(0,v))}function V(v){return parseInt(v,16)}function y(v){return typeof v=="string"&&v.indexOf(".")!=-1&&parseFloat(v)===1}function U(v){return typeof v=="string"&&v.indexOf("%")!=-1}function A(v){return v.length==1?"0"+v:""+v}function z(v){return v<=1&&(v=100*v+"%"),v}function re(v){return o.round(255*parseFloat(v)).toString(16)}function O(v){return V(v)/255}function ge(v){return!!Xe.CSS_UNIT.exec(v)}function Se(v){v=v.replace(Ze,"").replace(Re,"").toLowerCase();var Y=!1;if(Ke[v])v=Ke[v],Y=!0;else if(v=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var w;return(w=Xe.rgb.exec(v))?{r:w[1],g:w[2],b:w[3]}:(w=Xe.rgba.exec(v))?{r:w[1],g:w[2],b:w[3],a:w[4]}:(w=Xe.hsl.exec(v))?{h:w[1],s:w[2],l:w[3]}:(w=Xe.hsla.exec(v))?{h:w[1],s:w[2],l:w[3],a:w[4]}:(w=Xe.hsv.exec(v))?{h:w[1],s:w[2],v:w[3]}:(w=Xe.hsva.exec(v))?{h:w[1],s:w[2],v:w[3],a:w[4]}:(w=Xe.hex8.exec(v))?{r:V(w[1]),g:V(w[2]),b:V(w[3]),a:O(w[4]),format:Y?"name":"hex8"}:(w=Xe.hex6.exec(v))?{r:V(w[1]),g:V(w[2]),b:V(w[3]),format:Y?"name":"hex"}:(w=Xe.hex4.exec(v))?{r:V(w[1]+""+w[1]),g:V(w[2]+""+w[2]),b:V(w[3]+""+w[3]),a:O(w[4]+""+w[4]),format:Y?"name":"hex8"}:!!(w=Xe.hex3.exec(v))&&{r:V(w[1]+""+w[1]),g:V(w[2]+""+w[2]),b:V(w[3]+""+w[3]),format:Y?"name":"hex"}}function Fe(v){var Y,w;return v=v||{level:"AA",size:"small"},Y=(v.level||"AA").toUpperCase(),w=(v.size||"small").toLowerCase(),Y!=="AA"&&Y!=="AAA"&&(Y="AA"),w!=="small"&&w!=="large"&&(w="small"),{level:Y,size:w}}var Ze=/^\s+/,Re=/\s+$/,We=0,le=o.round,qe=o.min,ye=o.max,Je=o.random;s.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var v=this.toRgb();return(299*v.r+587*v.g+114*v.b)/1e3},getLuminance:function(){var v,Y,w,K,se,ne,be=this.toRgb();return v=be.r/255,Y=be.g/255,w=be.b/255,K=v<=.03928?v/12.92:o.pow((v+.055)/1.055,2.4),se=Y<=.03928?Y/12.92:o.pow((Y+.055)/1.055,2.4),ne=w<=.03928?w/12.92:o.pow((w+.055)/1.055,2.4),.2126*K+.7152*se+.0722*ne},setAlpha:function(v){return this._a=L(v),this._roundA=le(100*this._a)/100,this},toHsv:function(){var v=f(this._r,this._g,this._b);return{h:360*v.h,s:v.s,v:v.v,a:this._a}},toHsvString:function(){var v=f(this._r,this._g,this._b),Y=le(360*v.h),w=le(100*v.s),K=le(100*v.v);return this._a==1?"hsv("+Y+", "+w+"%, "+K+"%)":"hsva("+Y+", "+w+"%, "+K+"%, "+this._roundA+")"},toHsl:function(){var v=u(this._r,this._g,this._b);return{h:360*v.h,s:v.s,l:v.l,a:this._a}},toHslString:function(){var v=u(this._r,this._g,this._b),Y=le(360*v.h),w=le(100*v.s),K=le(100*v.l);return this._a==1?"hsl("+Y+", "+w+"%, "+K+"%)":"hsla("+Y+", "+w+"%, "+K+"%, "+this._roundA+")"},toHex:function(v){return _(this._r,this._g,this._b,v)},toHexString:function(v){return"#"+this.toHex(v)},toHex8:function(v){return m(this._r,this._g,this._b,this._a,v)},toHex8String:function(v){return"#"+this.toHex8(v)},toRgb:function(){return{r:le(this._r),g:le(this._g),b:le(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+le(this._r)+", "+le(this._g)+", "+le(this._b)+")":"rgba("+le(this._r)+", "+le(this._g)+", "+le(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:le(100*Z(this._r,255))+"%",g:le(100*Z(this._g,255))+"%",b:le(100*Z(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+le(100*Z(this._r,255))+"%, "+le(100*Z(this._g,255))+"%, "+le(100*Z(this._b,255))+"%)":"rgba("+le(100*Z(this._r,255))+"%, "+le(100*Z(this._g,255))+"%, "+le(100*Z(this._b,255))+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":!(this._a<1)&&(ht[_(this._r,this._g,this._b,!0)]||!1)},toFilter:function(v){var Y="#"+p(this._r,this._g,this._b,this._a),w=Y,K=this._gradientType?"GradientType = 1, ":"";if(v){var se=s(v);w="#"+p(se._r,se._g,se._b,se._a)}return"progid:DXImageTransform.Microsoft.gradient("+K+"startColorstr="+Y+",endColorstr="+w+")"},toString:function(v){var Y=!!v;v=v||this._format;var w=!1,K=this._a<1&&this._a>=0;return Y||!K||v!=="hex"&&v!=="hex6"&&v!=="hex3"&&v!=="hex4"&&v!=="hex8"&&v!=="name"?(v==="rgb"&&(w=this.toRgbString()),v==="prgb"&&(w=this.toPercentageRgbString()),v!=="hex"&&v!=="hex6"||(w=this.toHexString()),v==="hex3"&&(w=this.toHexString(!0)),v==="hex4"&&(w=this.toHex8String(!0)),v==="hex8"&&(w=this.toHex8String()),v==="name"&&(w=this.toName()),v==="hsl"&&(w=this.toHslString()),v==="hsv"&&(w=this.toHsvString()),w||this.toHexString()):v==="name"&&this._a===0?this.toName():this.toRgbString()},clone:function(){return s(this.toString())},_applyModification:function(v,Y){var w=v.apply(null,[this].concat([].slice.call(Y)));return this._r=w._r,this._g=w._g,this._b=w._b,this.setAlpha(w._a),this},lighten:function(){return this._applyModification(C,arguments)},brighten:function(){return this._applyModification(j,arguments)},darken:function(){return this._applyModification(E,arguments)},desaturate:function(){return this._applyModification(T,arguments)},saturate:function(){return this._applyModification(R,arguments)},greyscale:function(){return this._applyModification(S,arguments)},spin:function(){return this._applyModification(I,arguments)},_applyCombination:function(v,Y){return v.apply(null,[this].concat([].slice.call(Y)))},analogous:function(){return this._applyCombination(k,arguments)},complement:function(){return this._applyCombination(M,arguments)},monochromatic:function(){return this._applyCombination(x,arguments)},splitcomplement:function(){return this._applyCombination(D,arguments)},triad:function(){return this._applyCombination(P,arguments)},tetrad:function(){return this._applyCombination(g,arguments)}},s.fromRatio=function(v,Y){if(typeof v=="object"){var w={};for(var K in v)v.hasOwnProperty(K)&&(w[K]=K==="a"?v[K]:z(v[K]));v=w}return s(v,Y)},s.equals=function(v,Y){return!(!v||!Y)&&s(v).toRgbString()==s(Y).toRgbString()},s.random=function(){return s.fromRatio({r:Je(),g:Je(),b:Je()})},s.mix=function(v,Y,w){w=w===0?0:w||50;var K=s(v).toRgb(),se=s(Y).toRgb(),ne=w/100;return s({r:(se.r-K.r)*ne+K.r,g:(se.g-K.g)*ne+K.g,b:(se.b-K.b)*ne+K.b,a:(se.a-K.a)*ne+K.a})},s.readability=function(v,Y){var w=s(v),K=s(Y);return(o.max(w.getLuminance(),K.getLuminance())+.05)/(o.min(w.getLuminance(),K.getLuminance())+.05)},s.isReadable=function(v,Y,w){var K,se,ne=s.readability(v,Y);switch(se=!1,K=Fe(w),K.level+K.size){case"AAsmall":case"AAAlarge":se=ne>=4.5;break;case"AAlarge":se=ne>=3;break;case"AAAsmall":se=ne>=7}return se},s.mostReadable=function(v,Y,w){var K,se,ne,be,Be=null,G=0;w=w||{},se=w.includeFallbackColors,ne=w.level,be=w.size;for(var W=0;WG&&(G=K,Be=s(Y[W]));return s.isReadable(v,Be,{level:ne,size:be})||!se?Be:(w.includeFallbackColors=!1,s.mostReadable(v,["#fff","#000"],w))};var Ke=s.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},ht=s.hexNames=function(v){var Y={};for(var w in v)v.hasOwnProperty(w)&&(Y[v[w]]=w);return Y}(Ke),Xe=function(){var v="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",Y="[\\s|\\(]+("+v+")[,|\\s]+("+v+")[,|\\s]+("+v+")\\s*\\)?",w="[\\s|\\(]+("+v+")[,|\\s]+("+v+")[,|\\s]+("+v+")[,|\\s]+("+v+")\\s*\\)?";return{CSS_UNIT:new RegExp(v),rgb:new RegExp("rgb"+Y),rgba:new RegExp("rgba"+w),hsl:new RegExp("hsl"+Y),hsla:new RegExp("hsla"+w),hsv:new RegExp("hsv"+Y),hsva:new RegExp("hsva"+w),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();a!==void 0&&a.exports?a.exports=s:(r=(function(){return s}).call(i,n,i,a))!==void 0&&(a.exports=r)})(Math)},function(a,i,n){var r=n(67);typeof r=="string"&&(r=[[a.i,r,""]]),r.locals&&(a.exports=r.locals),n(1)("0f73e73c",r,!1,{})},function(a,i,n){i=a.exports=n(0)(!1),i.push([a.i,` +`,""])},function(a,i){a.exports=function(n,r){for(var o=[],s={},l=0;l.5?G/(2-ne-be):G/(ne+be),ne){case v:K=(Y-w)/G+(Y1&&(F-=1),F<1/6?W+6*(q-W)*F:F<.5?q:F<2/3?W+(q-W)*(2/3-F)*6:W}var se,ne,be;if(v=Z(v,360),Y=Z(Y,100),w=Z(w,100),Y===0)se=ne=be=w;else{var Be=w<.5?w*(1+Y):w+Y-w*Y,G=2*w-Be;se=K(G,Be,v+1/3),ne=K(G,Be,v),be=K(G,Be,v-1/3)}return{r:255*se,g:255*ne,b:255*be}}function f(v,Y,w){v=Z(v,255),Y=Z(Y,255),w=Z(w,255);var K,se,ne=ye(v,Y,w),be=qe(v,Y,w),Be=ne,G=ne-be;if(se=ne===0?0:G/ne,ne==be)K=0;else{switch(ne){case v:K=(Y-w)/G+(Y>1)+720)%360;--Y;)K.h=(K.h+se)%360,ne.push(s(K));return ne}function x(v,Y){Y=Y||6;for(var w=s(v).toHsv(),K=w.h,se=w.s,ne=w.v,be=[],Be=1/Y;Y--;)be.push(s({h:K,s:se,v:ne})),ne=(ne+Be)%1;return be}function L(v){return v=parseFloat(v),(isNaN(v)||v<0||v>1)&&(v=1),v}function Z(v,Y){y(v)&&(v="100%");var w=U(v);return v=qe(Y,ye(0,parseFloat(v))),w&&(v=parseInt(v*Y,10)/100),o.abs(v-Y)<1e-6?1:v%Y/parseFloat(Y)}function $(v){return qe(1,ye(0,v))}function V(v){return parseInt(v,16)}function y(v){return typeof v=="string"&&v.indexOf(".")!=-1&&parseFloat(v)===1}function U(v){return typeof v=="string"&&v.indexOf("%")!=-1}function A(v){return v.length==1?"0"+v:""+v}function z(v){return v<=1&&(v=100*v+"%"),v}function re(v){return o.round(255*parseFloat(v)).toString(16)}function O(v){return V(v)/255}function ge(v){return!!et.CSS_UNIT.exec(v)}function Se(v){v=v.replace(Ze,"").replace(Re,"").toLowerCase();var Y=!1;if(Xe[v])v=Xe[v],Y=!0;else if(v=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var w;return(w=et.rgb.exec(v))?{r:w[1],g:w[2],b:w[3]}:(w=et.rgba.exec(v))?{r:w[1],g:w[2],b:w[3],a:w[4]}:(w=et.hsl.exec(v))?{h:w[1],s:w[2],l:w[3]}:(w=et.hsla.exec(v))?{h:w[1],s:w[2],l:w[3],a:w[4]}:(w=et.hsv.exec(v))?{h:w[1],s:w[2],v:w[3]}:(w=et.hsva.exec(v))?{h:w[1],s:w[2],v:w[3],a:w[4]}:(w=et.hex8.exec(v))?{r:V(w[1]),g:V(w[2]),b:V(w[3]),a:O(w[4]),format:Y?"name":"hex8"}:(w=et.hex6.exec(v))?{r:V(w[1]),g:V(w[2]),b:V(w[3]),format:Y?"name":"hex"}:(w=et.hex4.exec(v))?{r:V(w[1]+""+w[1]),g:V(w[2]+""+w[2]),b:V(w[3]+""+w[3]),a:O(w[4]+""+w[4]),format:Y?"name":"hex8"}:!!(w=et.hex3.exec(v))&&{r:V(w[1]+""+w[1]),g:V(w[2]+""+w[2]),b:V(w[3]+""+w[3]),format:Y?"name":"hex"}}function Fe(v){var Y,w;return v=v||{level:"AA",size:"small"},Y=(v.level||"AA").toUpperCase(),w=(v.size||"small").toLowerCase(),Y!=="AA"&&Y!=="AAA"&&(Y="AA"),w!=="small"&&w!=="large"&&(w="small"),{level:Y,size:w}}var Ze=/^\s+/,Re=/\s+$/,Qe=0,le=o.round,qe=o.min,ye=o.max,Ke=o.random;s.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var v=this.toRgb();return(299*v.r+587*v.g+114*v.b)/1e3},getLuminance:function(){var v,Y,w,K,se,ne,be=this.toRgb();return v=be.r/255,Y=be.g/255,w=be.b/255,K=v<=.03928?v/12.92:o.pow((v+.055)/1.055,2.4),se=Y<=.03928?Y/12.92:o.pow((Y+.055)/1.055,2.4),ne=w<=.03928?w/12.92:o.pow((w+.055)/1.055,2.4),.2126*K+.7152*se+.0722*ne},setAlpha:function(v){return this._a=L(v),this._roundA=le(100*this._a)/100,this},toHsv:function(){var v=f(this._r,this._g,this._b);return{h:360*v.h,s:v.s,v:v.v,a:this._a}},toHsvString:function(){var v=f(this._r,this._g,this._b),Y=le(360*v.h),w=le(100*v.s),K=le(100*v.v);return this._a==1?"hsv("+Y+", "+w+"%, "+K+"%)":"hsva("+Y+", "+w+"%, "+K+"%, "+this._roundA+")"},toHsl:function(){var v=u(this._r,this._g,this._b);return{h:360*v.h,s:v.s,l:v.l,a:this._a}},toHslString:function(){var v=u(this._r,this._g,this._b),Y=le(360*v.h),w=le(100*v.s),K=le(100*v.l);return this._a==1?"hsl("+Y+", "+w+"%, "+K+"%)":"hsla("+Y+", "+w+"%, "+K+"%, "+this._roundA+")"},toHex:function(v){return _(this._r,this._g,this._b,v)},toHexString:function(v){return"#"+this.toHex(v)},toHex8:function(v){return m(this._r,this._g,this._b,this._a,v)},toHex8String:function(v){return"#"+this.toHex8(v)},toRgb:function(){return{r:le(this._r),g:le(this._g),b:le(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+le(this._r)+", "+le(this._g)+", "+le(this._b)+")":"rgba("+le(this._r)+", "+le(this._g)+", "+le(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:le(100*Z(this._r,255))+"%",g:le(100*Z(this._g,255))+"%",b:le(100*Z(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+le(100*Z(this._r,255))+"%, "+le(100*Z(this._g,255))+"%, "+le(100*Z(this._b,255))+"%)":"rgba("+le(100*Z(this._r,255))+"%, "+le(100*Z(this._g,255))+"%, "+le(100*Z(this._b,255))+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":!(this._a<1)&&(ft[_(this._r,this._g,this._b,!0)]||!1)},toFilter:function(v){var Y="#"+p(this._r,this._g,this._b,this._a),w=Y,K=this._gradientType?"GradientType = 1, ":"";if(v){var se=s(v);w="#"+p(se._r,se._g,se._b,se._a)}return"progid:DXImageTransform.Microsoft.gradient("+K+"startColorstr="+Y+",endColorstr="+w+")"},toString:function(v){var Y=!!v;v=v||this._format;var w=!1,K=this._a<1&&this._a>=0;return Y||!K||v!=="hex"&&v!=="hex6"&&v!=="hex3"&&v!=="hex4"&&v!=="hex8"&&v!=="name"?(v==="rgb"&&(w=this.toRgbString()),v==="prgb"&&(w=this.toPercentageRgbString()),v!=="hex"&&v!=="hex6"||(w=this.toHexString()),v==="hex3"&&(w=this.toHexString(!0)),v==="hex4"&&(w=this.toHex8String(!0)),v==="hex8"&&(w=this.toHex8String()),v==="name"&&(w=this.toName()),v==="hsl"&&(w=this.toHslString()),v==="hsv"&&(w=this.toHsvString()),w||this.toHexString()):v==="name"&&this._a===0?this.toName():this.toRgbString()},clone:function(){return s(this.toString())},_applyModification:function(v,Y){var w=v.apply(null,[this].concat([].slice.call(Y)));return this._r=w._r,this._g=w._g,this._b=w._b,this.setAlpha(w._a),this},lighten:function(){return this._applyModification(C,arguments)},brighten:function(){return this._applyModification(j,arguments)},darken:function(){return this._applyModification(E,arguments)},desaturate:function(){return this._applyModification(T,arguments)},saturate:function(){return this._applyModification(R,arguments)},greyscale:function(){return this._applyModification(S,arguments)},spin:function(){return this._applyModification(I,arguments)},_applyCombination:function(v,Y){return v.apply(null,[this].concat([].slice.call(Y)))},analogous:function(){return this._applyCombination(k,arguments)},complement:function(){return this._applyCombination(M,arguments)},monochromatic:function(){return this._applyCombination(x,arguments)},splitcomplement:function(){return this._applyCombination(D,arguments)},triad:function(){return this._applyCombination(P,arguments)},tetrad:function(){return this._applyCombination(g,arguments)}},s.fromRatio=function(v,Y){if(typeof v=="object"){var w={};for(var K in v)v.hasOwnProperty(K)&&(w[K]=K==="a"?v[K]:z(v[K]));v=w}return s(v,Y)},s.equals=function(v,Y){return!(!v||!Y)&&s(v).toRgbString()==s(Y).toRgbString()},s.random=function(){return s.fromRatio({r:Ke(),g:Ke(),b:Ke()})},s.mix=function(v,Y,w){w=w===0?0:w||50;var K=s(v).toRgb(),se=s(Y).toRgb(),ne=w/100;return s({r:(se.r-K.r)*ne+K.r,g:(se.g-K.g)*ne+K.g,b:(se.b-K.b)*ne+K.b,a:(se.a-K.a)*ne+K.a})},s.readability=function(v,Y){var w=s(v),K=s(Y);return(o.max(w.getLuminance(),K.getLuminance())+.05)/(o.min(w.getLuminance(),K.getLuminance())+.05)},s.isReadable=function(v,Y,w){var K,se,ne=s.readability(v,Y);switch(se=!1,K=Fe(w),K.level+K.size){case"AAsmall":case"AAAlarge":se=ne>=4.5;break;case"AAlarge":se=ne>=3;break;case"AAAsmall":se=ne>=7}return se},s.mostReadable=function(v,Y,w){var K,se,ne,be,Be=null,G=0;w=w||{},se=w.includeFallbackColors,ne=w.level,be=w.size;for(var W=0;WG&&(G=K,Be=s(Y[W]));return s.isReadable(v,Be,{level:ne,size:be})||!se?Be:(w.includeFallbackColors=!1,s.mostReadable(v,["#fff","#000"],w))};var Xe=s.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},ft=s.hexNames=function(v){var Y={};for(var w in v)v.hasOwnProperty(w)&&(Y[v[w]]=w);return Y}(Xe),et=function(){var v="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",Y="[\\s|\\(]+("+v+")[,|\\s]+("+v+")[,|\\s]+("+v+")\\s*\\)?",w="[\\s|\\(]+("+v+")[,|\\s]+("+v+")[,|\\s]+("+v+")[,|\\s]+("+v+")\\s*\\)?";return{CSS_UNIT:new RegExp(v),rgb:new RegExp("rgb"+Y),rgba:new RegExp("rgba"+w),hsl:new RegExp("hsl"+Y),hsla:new RegExp("hsla"+w),hsv:new RegExp("hsv"+Y),hsva:new RegExp("hsva"+w),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();a!==void 0&&a.exports?a.exports=s:(r=(function(){return s}).call(i,n,i,a))!==void 0&&(a.exports=r)})(Math)},function(a,i,n){var r=n(67);typeof r=="string"&&(r=[[a.i,r,""]]),r.locals&&(a.exports=r.locals),n(1)("0f73e73c",r,!1,{})},function(a,i,n){i=a.exports=n(0)(!1),i.push([a.i,` .vc-editable-input { position: relative; } @@ -8410,7 +8423,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho .vc-slider-swatch-picker--active.vc-slider-swatch-picker--white { box-shadow: inset 0 0 0 0.6px #ddd; } -`,""])},function(a,i,n){function r(c){return c&&c.__esModule?c:{default:c}}i.__esModule=!0;var o=n(82),s=r(o),l=n(100),d=r(l),u=typeof d.default=="function"&&typeof s.default=="symbol"?function(c){return typeof c}:function(c){return c&&typeof d.default=="function"&&c.constructor===d.default&&c!==d.default.prototype?"symbol":typeof c};i.default=typeof d.default=="function"&&u(s.default)==="symbol"?function(c){return c===void 0?"undefined":u(c)}:function(c){return c&&typeof d.default=="function"&&c.constructor===d.default&&c!==d.default.prototype?"symbol":c===void 0?"undefined":u(c)}},function(a,i,n){a.exports={default:n(83),__esModule:!0}},function(a,i,n){n(84),n(96),a.exports=n(32).f("iterator")},function(a,i,n){var r=n(85)(!0);n(40)(String,"String",function(o){this._t=String(o),this._i=0},function(){var o,s=this._t,l=this._i;return l>=s.length?{value:void 0,done:!0}:(o=r(s,l),this._i+=o.length,{value:o,done:!1})})},function(a,i,n){var r=n(23),o=n(24);a.exports=function(s){return function(l,d){var u,c,f=String(o(l)),h=r(d),_=f.length;return h<0||h>=_?s?"":void 0:(u=f.charCodeAt(h),u<55296||u>56319||h+1===_||(c=f.charCodeAt(h+1))<56320||c>57343?s?f.charAt(h):u:s?f.slice(h,h+2):c-56320+(u-55296<<10)+65536)}}},function(a,i,n){var r=n(87);a.exports=function(o,s,l){if(r(o),s===void 0)return o;switch(l){case 1:return function(d){return o.call(s,d)};case 2:return function(d,u){return o.call(s,d,u)};case 3:return function(d,u,c){return o.call(s,d,u,c)}}return function(){return o.apply(s,arguments)}}},function(a,i){a.exports=function(n){if(typeof n!="function")throw TypeError(n+" is not a function!");return n}},function(a,i,n){var r=n(45),o=n(18),s=n(31),l={};n(7)(l,n(11)("iterator"),function(){return this}),a.exports=function(d,u,c){d.prototype=r(l,{next:o(1,c)}),s(d,u+" Iterator")}},function(a,i,n){var r=n(8),o=n(16),s=n(27);a.exports=n(9)?Object.defineProperties:function(l,d){o(l);for(var u,c=s(d),f=c.length,h=0;f>h;)r.f(l,u=c[h++],d[u]);return l}},function(a,i,n){var r=n(47);a.exports=Object("z").propertyIsEnumerable(0)?Object:function(o){return r(o)=="String"?o.split(""):Object(o)}},function(a,i,n){var r=n(10),o=n(92),s=n(93);a.exports=function(l){return function(d,u,c){var f,h=r(d),_=o(h.length),m=s(c,_);if(l&&u!=u){for(;_>m;)if((f=h[m++])!=f)return!0}else for(;_>m;m++)if((l||m in h)&&h[m]===u)return l||m||0;return!l&&-1}}},function(a,i,n){var r=n(23),o=Math.min;a.exports=function(s){return s>0?o(r(s),9007199254740991):0}},function(a,i,n){var r=n(23),o=Math.max,s=Math.min;a.exports=function(l,d){return l=r(l),l<0?o(l+d,0):s(l,d)}},function(a,i,n){var r=n(4).document;a.exports=r&&r.documentElement},function(a,i,n){var r=n(6),o=n(48),s=n(28)("IE_PROTO"),l=Object.prototype;a.exports=Object.getPrototypeOf||function(d){return d=o(d),r(d,s)?d[s]:typeof d.constructor=="function"&&d instanceof d.constructor?d.constructor.prototype:d instanceof Object?l:null}},function(a,i,n){n(97);for(var r=n(4),o=n(7),s=n(26),l=n(11)("toStringTag"),d="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u=d.length?(this._t=void 0,o(1)):u=="keys"?o(0,c):u=="values"?o(0,d[c]):o(0,[c,d[c]])},"values"),s.Arguments=s.Array,r("keys"),r("values"),r("entries")},function(a,i){a.exports=function(){}},function(a,i){a.exports=function(n,r){return{value:r,done:!!n}}},function(a,i,n){a.exports={default:n(101),__esModule:!0}},function(a,i,n){n(102),n(108),n(109),n(110),a.exports=n(15).Symbol},function(a,i,n){var r=n(4),o=n(6),s=n(9),l=n(41),d=n(44),u=n(103).KEY,c=n(17),f=n(29),h=n(31),_=n(19),m=n(11),p=n(32),T=n(33),R=n(104),S=n(105),C=n(16),j=n(12),E=n(48),I=n(10),M=n(25),P=n(18),g=n(45),D=n(106),k=n(107),x=n(49),L=n(8),Z=n(27),$=k.f,V=L.f,y=D.f,U=r.Symbol,A=r.JSON,z=A&&A.stringify,re=m("_hidden"),O=m("toPrimitive"),ge={}.propertyIsEnumerable,Se=f("symbol-registry"),Fe=f("symbols"),Ze=f("op-symbols"),Re=Object.prototype,We=typeof U=="function"&&!!x.f,le=r.QObject,qe=!le||!le.prototype||!le.prototype.findChild,ye=s&&c(function(){return g(V({},"a",{get:function(){return V(this,"a",{value:7}).a}})).a!=7})?function(q,F,b){var N=$(Re,F);N&&delete Re[F],V(q,F,b),N&&q!==Re&&V(Re,F,N)}:V,Je=function(q){var F=Fe[q]=g(U.prototype);return F._k=q,F},Ke=We&&typeof U.iterator=="symbol"?function(q){return typeof q=="symbol"}:function(q){return q instanceof U},ht=function(q,F,b){return q===Re&&ht(Ze,F,b),C(q),F=M(F,!0),C(b),o(Fe,F)?(b.enumerable?(o(q,re)&&q[re][F]&&(q[re][F]=!1),b=g(b,{enumerable:P(0,!1)})):(o(q,re)||V(q,re,P(1,{})),q[re][F]=!0),ye(q,F,b)):V(q,F,b)},Xe=function(q,F){C(q);for(var b,N=R(F=I(F)),B=0,H=N.length;H>B;)ht(q,b=N[B++],F[b]);return q},v=function(q,F){return F===void 0?g(q):Xe(g(q),F)},Y=function(q){var F=ge.call(this,q=M(q,!0));return!(this===Re&&o(Fe,q)&&!o(Ze,q))&&(!(F||!o(this,q)||!o(Fe,q)||o(this,re)&&this[re][q])||F)},w=function(q,F){if(q=I(q),F=M(F,!0),q!==Re||!o(Fe,F)||o(Ze,F)){var b=$(q,F);return!b||!o(Fe,F)||o(q,re)&&q[re][F]||(b.enumerable=!0),b}},K=function(q){for(var F,b=y(I(q)),N=[],B=0;b.length>B;)o(Fe,F=b[B++])||F==re||F==u||N.push(F);return N},se=function(q){for(var F,b=q===Re,N=y(b?Ze:I(q)),B=[],H=0;N.length>H;)!o(Fe,F=N[H++])||b&&!o(Re,F)||B.push(Fe[F]);return B};We||(U=function(){if(this instanceof U)throw TypeError("Symbol is not a constructor!");var q=_(arguments.length>0?arguments[0]:void 0),F=function(b){this===Re&&F.call(Ze,b),o(this,re)&&o(this[re],q)&&(this[re][q]=!1),ye(this,q,P(1,b))};return s&&qe&&ye(Re,q,{configurable:!0,set:F}),Je(q)},d(U.prototype,"toString",function(){return this._k}),k.f=w,L.f=ht,n(50).f=D.f=K,n(34).f=Y,x.f=se,s&&!n(14)&&d(Re,"propertyIsEnumerable",Y,!0),p.f=function(q){return Je(m(q))}),l(l.G+l.W+l.F*!We,{Symbol:U});for(var ne="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),be=0;ne.length>be;)m(ne[be++]);for(var Be=Z(m.store),G=0;Be.length>G;)T(Be[G++]);l(l.S+l.F*!We,"Symbol",{for:function(q){return o(Se,q+="")?Se[q]:Se[q]=U(q)},keyFor:function(q){if(!Ke(q))throw TypeError(q+" is not a symbol!");for(var F in Se)if(Se[F]===q)return F},useSetter:function(){qe=!0},useSimple:function(){qe=!1}}),l(l.S+l.F*!We,"Object",{create:v,defineProperty:ht,defineProperties:Xe,getOwnPropertyDescriptor:w,getOwnPropertyNames:K,getOwnPropertySymbols:se});var W=c(function(){x.f(1)});l(l.S+l.F*W,"Object",{getOwnPropertySymbols:function(q){return x.f(E(q))}}),A&&l(l.S+l.F*(!We||c(function(){var q=U();return z([q])!="[null]"||z({a:q})!="{}"||z(Object(q))!="{}"})),"JSON",{stringify:function(q){for(var F,b,N=[q],B=1;arguments.length>B;)N.push(arguments[B++]);if(b=F=N[1],(j(F)||q!==void 0)&&!Ke(q))return S(F)||(F=function(H,ee){if(typeof b=="function"&&(ee=b.call(this,H,ee)),!Ke(ee))return ee}),N[1]=F,z.apply(A,N)}}),U.prototype[O]||n(7)(U.prototype,O,U.prototype.valueOf),h(U,"Symbol"),h(Math,"Math",!0),h(r.JSON,"JSON",!0)},function(a,i,n){var r=n(19)("meta"),o=n(12),s=n(6),l=n(8).f,d=0,u=Object.isExtensible||function(){return!0},c=!n(17)(function(){return u(Object.preventExtensions({}))}),f=function(T){l(T,r,{value:{i:"O"+ ++d,w:{}}})},h=function(T,R){if(!o(T))return typeof T=="symbol"?T:(typeof T=="string"?"S":"P")+T;if(!s(T,r)){if(!u(T))return"F";if(!R)return"E";f(T)}return T[r].i},_=function(T,R){if(!s(T,r)){if(!u(T))return!0;if(!R)return!1;f(T)}return T[r].w},m=function(T){return c&&p.NEED&&u(T)&&!s(T,r)&&f(T),T},p=a.exports={KEY:r,NEED:!1,fastKey:h,getWeak:_,onFreeze:m}},function(a,i,n){var r=n(27),o=n(49),s=n(34);a.exports=function(l){var d=r(l),u=o.f;if(u)for(var c,f=u(l),h=s.f,_=0;f.length>_;)h.call(l,c=f[_++])&&d.push(c);return d}},function(a,i,n){var r=n(47);a.exports=Array.isArray||function(o){return r(o)=="Array"}},function(a,i,n){var r=n(10),o=n(50).f,s={}.toString,l=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],d=function(u){try{return o(u)}catch{return l.slice()}};a.exports.f=function(u){return l&&s.call(u)=="[object Window]"?d(u):o(r(u))}},function(a,i,n){var r=n(34),o=n(18),s=n(10),l=n(25),d=n(6),u=n(42),c=Object.getOwnPropertyDescriptor;i.f=n(9)?c:function(f,h){if(f=s(f),h=l(h,!0),u)try{return c(f,h)}catch{}if(d(f,h))return o(!r.f.call(f,h),f[h])}},function(a,i){},function(a,i,n){n(33)("asyncIterator")},function(a,i,n){n(33)("observable")},function(a,i,n){var r=n(112);typeof r=="string"&&(r=[[a.i,r,""]]),r.locals&&(a.exports=r.locals),n(1)("7c5f1a1c",r,!1,{})},function(a,i,n){i=a.exports=n(0)(!1),i.push([a.i,` +`,""])},function(a,i,n){function r(c){return c&&c.__esModule?c:{default:c}}i.__esModule=!0;var o=n(82),s=r(o),l=n(100),d=r(l),u=typeof d.default=="function"&&typeof s.default=="symbol"?function(c){return typeof c}:function(c){return c&&typeof d.default=="function"&&c.constructor===d.default&&c!==d.default.prototype?"symbol":typeof c};i.default=typeof d.default=="function"&&u(s.default)==="symbol"?function(c){return c===void 0?"undefined":u(c)}:function(c){return c&&typeof d.default=="function"&&c.constructor===d.default&&c!==d.default.prototype?"symbol":c===void 0?"undefined":u(c)}},function(a,i,n){a.exports={default:n(83),__esModule:!0}},function(a,i,n){n(84),n(96),a.exports=n(32).f("iterator")},function(a,i,n){var r=n(85)(!0);n(40)(String,"String",function(o){this._t=String(o),this._i=0},function(){var o,s=this._t,l=this._i;return l>=s.length?{value:void 0,done:!0}:(o=r(s,l),this._i+=o.length,{value:o,done:!1})})},function(a,i,n){var r=n(23),o=n(24);a.exports=function(s){return function(l,d){var u,c,f=String(o(l)),h=r(d),_=f.length;return h<0||h>=_?s?"":void 0:(u=f.charCodeAt(h),u<55296||u>56319||h+1===_||(c=f.charCodeAt(h+1))<56320||c>57343?s?f.charAt(h):u:s?f.slice(h,h+2):c-56320+(u-55296<<10)+65536)}}},function(a,i,n){var r=n(87);a.exports=function(o,s,l){if(r(o),s===void 0)return o;switch(l){case 1:return function(d){return o.call(s,d)};case 2:return function(d,u){return o.call(s,d,u)};case 3:return function(d,u,c){return o.call(s,d,u,c)}}return function(){return o.apply(s,arguments)}}},function(a,i){a.exports=function(n){if(typeof n!="function")throw TypeError(n+" is not a function!");return n}},function(a,i,n){var r=n(45),o=n(18),s=n(31),l={};n(7)(l,n(11)("iterator"),function(){return this}),a.exports=function(d,u,c){d.prototype=r(l,{next:o(1,c)}),s(d,u+" Iterator")}},function(a,i,n){var r=n(8),o=n(16),s=n(27);a.exports=n(9)?Object.defineProperties:function(l,d){o(l);for(var u,c=s(d),f=c.length,h=0;f>h;)r.f(l,u=c[h++],d[u]);return l}},function(a,i,n){var r=n(47);a.exports=Object("z").propertyIsEnumerable(0)?Object:function(o){return r(o)=="String"?o.split(""):Object(o)}},function(a,i,n){var r=n(10),o=n(92),s=n(93);a.exports=function(l){return function(d,u,c){var f,h=r(d),_=o(h.length),m=s(c,_);if(l&&u!=u){for(;_>m;)if((f=h[m++])!=f)return!0}else for(;_>m;m++)if((l||m in h)&&h[m]===u)return l||m||0;return!l&&-1}}},function(a,i,n){var r=n(23),o=Math.min;a.exports=function(s){return s>0?o(r(s),9007199254740991):0}},function(a,i,n){var r=n(23),o=Math.max,s=Math.min;a.exports=function(l,d){return l=r(l),l<0?o(l+d,0):s(l,d)}},function(a,i,n){var r=n(4).document;a.exports=r&&r.documentElement},function(a,i,n){var r=n(6),o=n(48),s=n(28)("IE_PROTO"),l=Object.prototype;a.exports=Object.getPrototypeOf||function(d){return d=o(d),r(d,s)?d[s]:typeof d.constructor=="function"&&d instanceof d.constructor?d.constructor.prototype:d instanceof Object?l:null}},function(a,i,n){n(97);for(var r=n(4),o=n(7),s=n(26),l=n(11)("toStringTag"),d="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u=d.length?(this._t=void 0,o(1)):u=="keys"?o(0,c):u=="values"?o(0,d[c]):o(0,[c,d[c]])},"values"),s.Arguments=s.Array,r("keys"),r("values"),r("entries")},function(a,i){a.exports=function(){}},function(a,i){a.exports=function(n,r){return{value:r,done:!!n}}},function(a,i,n){a.exports={default:n(101),__esModule:!0}},function(a,i,n){n(102),n(108),n(109),n(110),a.exports=n(15).Symbol},function(a,i,n){var r=n(4),o=n(6),s=n(9),l=n(41),d=n(44),u=n(103).KEY,c=n(17),f=n(29),h=n(31),_=n(19),m=n(11),p=n(32),T=n(33),R=n(104),S=n(105),C=n(16),j=n(12),E=n(48),I=n(10),M=n(25),P=n(18),g=n(45),D=n(106),k=n(107),x=n(49),L=n(8),Z=n(27),$=k.f,V=L.f,y=D.f,U=r.Symbol,A=r.JSON,z=A&&A.stringify,re=m("_hidden"),O=m("toPrimitive"),ge={}.propertyIsEnumerable,Se=f("symbol-registry"),Fe=f("symbols"),Ze=f("op-symbols"),Re=Object.prototype,Qe=typeof U=="function"&&!!x.f,le=r.QObject,qe=!le||!le.prototype||!le.prototype.findChild,ye=s&&c(function(){return g(V({},"a",{get:function(){return V(this,"a",{value:7}).a}})).a!=7})?function(q,F,b){var N=$(Re,F);N&&delete Re[F],V(q,F,b),N&&q!==Re&&V(Re,F,N)}:V,Ke=function(q){var F=Fe[q]=g(U.prototype);return F._k=q,F},Xe=Qe&&typeof U.iterator=="symbol"?function(q){return typeof q=="symbol"}:function(q){return q instanceof U},ft=function(q,F,b){return q===Re&&ft(Ze,F,b),C(q),F=M(F,!0),C(b),o(Fe,F)?(b.enumerable?(o(q,re)&&q[re][F]&&(q[re][F]=!1),b=g(b,{enumerable:P(0,!1)})):(o(q,re)||V(q,re,P(1,{})),q[re][F]=!0),ye(q,F,b)):V(q,F,b)},et=function(q,F){C(q);for(var b,N=R(F=I(F)),B=0,H=N.length;H>B;)ft(q,b=N[B++],F[b]);return q},v=function(q,F){return F===void 0?g(q):et(g(q),F)},Y=function(q){var F=ge.call(this,q=M(q,!0));return!(this===Re&&o(Fe,q)&&!o(Ze,q))&&(!(F||!o(this,q)||!o(Fe,q)||o(this,re)&&this[re][q])||F)},w=function(q,F){if(q=I(q),F=M(F,!0),q!==Re||!o(Fe,F)||o(Ze,F)){var b=$(q,F);return!b||!o(Fe,F)||o(q,re)&&q[re][F]||(b.enumerable=!0),b}},K=function(q){for(var F,b=y(I(q)),N=[],B=0;b.length>B;)o(Fe,F=b[B++])||F==re||F==u||N.push(F);return N},se=function(q){for(var F,b=q===Re,N=y(b?Ze:I(q)),B=[],H=0;N.length>H;)!o(Fe,F=N[H++])||b&&!o(Re,F)||B.push(Fe[F]);return B};Qe||(U=function(){if(this instanceof U)throw TypeError("Symbol is not a constructor!");var q=_(arguments.length>0?arguments[0]:void 0),F=function(b){this===Re&&F.call(Ze,b),o(this,re)&&o(this[re],q)&&(this[re][q]=!1),ye(this,q,P(1,b))};return s&&qe&&ye(Re,q,{configurable:!0,set:F}),Ke(q)},d(U.prototype,"toString",function(){return this._k}),k.f=w,L.f=ft,n(50).f=D.f=K,n(34).f=Y,x.f=se,s&&!n(14)&&d(Re,"propertyIsEnumerable",Y,!0),p.f=function(q){return Ke(m(q))}),l(l.G+l.W+l.F*!Qe,{Symbol:U});for(var ne="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),be=0;ne.length>be;)m(ne[be++]);for(var Be=Z(m.store),G=0;Be.length>G;)T(Be[G++]);l(l.S+l.F*!Qe,"Symbol",{for:function(q){return o(Se,q+="")?Se[q]:Se[q]=U(q)},keyFor:function(q){if(!Xe(q))throw TypeError(q+" is not a symbol!");for(var F in Se)if(Se[F]===q)return F},useSetter:function(){qe=!0},useSimple:function(){qe=!1}}),l(l.S+l.F*!Qe,"Object",{create:v,defineProperty:ft,defineProperties:et,getOwnPropertyDescriptor:w,getOwnPropertyNames:K,getOwnPropertySymbols:se});var W=c(function(){x.f(1)});l(l.S+l.F*W,"Object",{getOwnPropertySymbols:function(q){return x.f(E(q))}}),A&&l(l.S+l.F*(!Qe||c(function(){var q=U();return z([q])!="[null]"||z({a:q})!="{}"||z(Object(q))!="{}"})),"JSON",{stringify:function(q){for(var F,b,N=[q],B=1;arguments.length>B;)N.push(arguments[B++]);if(b=F=N[1],(j(F)||q!==void 0)&&!Xe(q))return S(F)||(F=function(H,ee){if(typeof b=="function"&&(ee=b.call(this,H,ee)),!Xe(ee))return ee}),N[1]=F,z.apply(A,N)}}),U.prototype[O]||n(7)(U.prototype,O,U.prototype.valueOf),h(U,"Symbol"),h(Math,"Math",!0),h(r.JSON,"JSON",!0)},function(a,i,n){var r=n(19)("meta"),o=n(12),s=n(6),l=n(8).f,d=0,u=Object.isExtensible||function(){return!0},c=!n(17)(function(){return u(Object.preventExtensions({}))}),f=function(T){l(T,r,{value:{i:"O"+ ++d,w:{}}})},h=function(T,R){if(!o(T))return typeof T=="symbol"?T:(typeof T=="string"?"S":"P")+T;if(!s(T,r)){if(!u(T))return"F";if(!R)return"E";f(T)}return T[r].i},_=function(T,R){if(!s(T,r)){if(!u(T))return!0;if(!R)return!1;f(T)}return T[r].w},m=function(T){return c&&p.NEED&&u(T)&&!s(T,r)&&f(T),T},p=a.exports={KEY:r,NEED:!1,fastKey:h,getWeak:_,onFreeze:m}},function(a,i,n){var r=n(27),o=n(49),s=n(34);a.exports=function(l){var d=r(l),u=o.f;if(u)for(var c,f=u(l),h=s.f,_=0;f.length>_;)h.call(l,c=f[_++])&&d.push(c);return d}},function(a,i,n){var r=n(47);a.exports=Array.isArray||function(o){return r(o)=="Array"}},function(a,i,n){var r=n(10),o=n(50).f,s={}.toString,l=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],d=function(u){try{return o(u)}catch{return l.slice()}};a.exports.f=function(u){return l&&s.call(u)=="[object Window]"?d(u):o(r(u))}},function(a,i,n){var r=n(34),o=n(18),s=n(10),l=n(25),d=n(6),u=n(42),c=Object.getOwnPropertyDescriptor;i.f=n(9)?c:function(f,h){if(f=s(f),h=l(h,!0),u)try{return c(f,h)}catch{}if(d(f,h))return o(!r.f.call(f,h),f[h])}},function(a,i){},function(a,i,n){n(33)("asyncIterator")},function(a,i,n){n(33)("observable")},function(a,i,n){var r=n(112);typeof r=="string"&&(r=[[a.i,r,""]]),r.locals&&(a.exports=r.locals),n(1)("7c5f1a1c",r,!1,{})},function(a,i,n){i=a.exports=n(0)(!1),i.push([a.i,` .vc-hue { position: absolute; top: 0px; @@ -8694,7 +8707,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho border-radius: 50%; transform: translate(-2px, -2px); } -`,""])},function(a,i){function n(r,o,s){return os?s:r:ro?o:r}a.exports=n},function(a,i){function n(g,D,k){function x(ye){var Je=re,Ke=O;return re=O=void 0,Re=ye,Se=g.apply(Ke,Je)}function L(ye){return Re=ye,Fe=setTimeout(V,D),We?x(ye):Se}function Z(ye){var Je=ye-Ze,Ke=ye-Re,ht=D-Je;return le?M(ht,ge-Ke):ht}function $(ye){var Je=ye-Ze,Ke=ye-Re;return Ze===void 0||Je>=D||Je<0||le&&Ke>=ge}function V(){var ye=P();if($(ye))return y(ye);Fe=setTimeout(V,Z(ye))}function y(ye){return Fe=void 0,qe&&re?x(ye):(re=O=void 0,Se)}function U(){Fe!==void 0&&clearTimeout(Fe),Re=0,re=Ze=O=Fe=void 0}function A(){return Fe===void 0?Se:y(P())}function z(){var ye=P(),Je=$(ye);if(re=arguments,O=this,Ze=ye,Je){if(Fe===void 0)return L(Ze);if(le)return Fe=setTimeout(V,D),x(Ze)}return Fe===void 0&&(Fe=setTimeout(V,D)),Se}var re,O,ge,Se,Fe,Ze,Re=0,We=!1,le=!1,qe=!0;if(typeof g!="function")throw new TypeError(u);return D=d(D)||0,o(k)&&(We=!!k.leading,le="maxWait"in k,ge=le?I(d(k.maxWait)||0,D):ge,qe="trailing"in k?!!k.trailing:qe),z.cancel=U,z.flush=A,z}function r(g,D,k){var x=!0,L=!0;if(typeof g!="function")throw new TypeError(u);return o(k)&&(x="leading"in k?!!k.leading:x,L="trailing"in k?!!k.trailing:L),n(g,D,{leading:x,maxWait:D,trailing:L})}function o(g){var D=typeof g;return!!g&&(D=="object"||D=="function")}function s(g){return!!g&&typeof g=="object"}function l(g){return typeof g=="symbol"||s(g)&&E.call(g)==f}function d(g){if(typeof g=="number")return g;if(l(g))return c;if(o(g)){var D=typeof g.valueOf=="function"?g.valueOf():g;g=o(D)?D+"":D}if(typeof g!="string")return g===0?g:+g;g=g.replace(h,"");var k=m.test(g);return k||p.test(g)?T(g.slice(2),k?2:8):_.test(g)?c:+g}var u="Expected a function",c=NaN,f="[object Symbol]",h=/^\s+|\s+$/g,_=/^[-+]0x[0-9a-f]+$/i,m=/^0b[01]+$/i,p=/^0o[0-7]+$/i,T=parseInt,R=typeof Ia=="object"&&Ia&&Ia.Object===Object&&Ia,S=typeof self=="object"&&self&&self.Object===Object&&self,C=R||S||Function("return this")(),j=Object.prototype,E=j.toString,I=Math.max,M=Math.min,P=function(){return C.Date.now()};a.exports=r},function(a,i,n){var r=function(){var l=this,d=l.$createElement,u=l._self._c||d;return u("div",{ref:"container",staticClass:"vc-saturation",style:{background:l.bgColor},on:{mousedown:l.handleMouseDown,touchmove:l.handleChange,touchstart:l.handleChange}},[u("div",{staticClass:"vc-saturation--white"}),l._v(" "),u("div",{staticClass:"vc-saturation--black"}),l._v(" "),u("div",{staticClass:"vc-saturation-pointer",style:{top:l.pointerTop,left:l.pointerLeft}},[u("div",{staticClass:"vc-saturation-circle"})])])},o=[];r._withStripped=!0;var s={render:r,staticRenderFns:o};i.a=s},function(a,i,n){var r=n(129);typeof r=="string"&&(r=[[a.i,r,""]]),r.locals&&(a.exports=r.locals),n(1)("4dc1b086",r,!1,{})},function(a,i,n){i=a.exports=n(0)(!1),i.push([a.i,` +`,""])},function(a,i){function n(r,o,s){return os?s:r:ro?o:r}a.exports=n},function(a,i){function n(g,D,k){function x(ye){var Ke=re,Xe=O;return re=O=void 0,Re=ye,Se=g.apply(Xe,Ke)}function L(ye){return Re=ye,Fe=setTimeout(V,D),Qe?x(ye):Se}function Z(ye){var Ke=ye-Ze,Xe=ye-Re,ft=D-Ke;return le?M(ft,ge-Xe):ft}function $(ye){var Ke=ye-Ze,Xe=ye-Re;return Ze===void 0||Ke>=D||Ke<0||le&&Xe>=ge}function V(){var ye=P();if($(ye))return y(ye);Fe=setTimeout(V,Z(ye))}function y(ye){return Fe=void 0,qe&&re?x(ye):(re=O=void 0,Se)}function U(){Fe!==void 0&&clearTimeout(Fe),Re=0,re=Ze=O=Fe=void 0}function A(){return Fe===void 0?Se:y(P())}function z(){var ye=P(),Ke=$(ye);if(re=arguments,O=this,Ze=ye,Ke){if(Fe===void 0)return L(Ze);if(le)return Fe=setTimeout(V,D),x(Ze)}return Fe===void 0&&(Fe=setTimeout(V,D)),Se}var re,O,ge,Se,Fe,Ze,Re=0,Qe=!1,le=!1,qe=!0;if(typeof g!="function")throw new TypeError(u);return D=d(D)||0,o(k)&&(Qe=!!k.leading,le="maxWait"in k,ge=le?I(d(k.maxWait)||0,D):ge,qe="trailing"in k?!!k.trailing:qe),z.cancel=U,z.flush=A,z}function r(g,D,k){var x=!0,L=!0;if(typeof g!="function")throw new TypeError(u);return o(k)&&(x="leading"in k?!!k.leading:x,L="trailing"in k?!!k.trailing:L),n(g,D,{leading:x,maxWait:D,trailing:L})}function o(g){var D=typeof g;return!!g&&(D=="object"||D=="function")}function s(g){return!!g&&typeof g=="object"}function l(g){return typeof g=="symbol"||s(g)&&E.call(g)==f}function d(g){if(typeof g=="number")return g;if(l(g))return c;if(o(g)){var D=typeof g.valueOf=="function"?g.valueOf():g;g=o(D)?D+"":D}if(typeof g!="string")return g===0?g:+g;g=g.replace(h,"");var k=m.test(g);return k||p.test(g)?T(g.slice(2),k?2:8):_.test(g)?c:+g}var u="Expected a function",c=NaN,f="[object Symbol]",h=/^\s+|\s+$/g,_=/^[-+]0x[0-9a-f]+$/i,m=/^0b[01]+$/i,p=/^0o[0-7]+$/i,T=parseInt,R=typeof ja=="object"&&ja&&ja.Object===Object&&ja,S=typeof self=="object"&&self&&self.Object===Object&&self,C=R||S||Function("return this")(),j=Object.prototype,E=j.toString,I=Math.max,M=Math.min,P=function(){return C.Date.now()};a.exports=r},function(a,i,n){var r=function(){var l=this,d=l.$createElement,u=l._self._c||d;return u("div",{ref:"container",staticClass:"vc-saturation",style:{background:l.bgColor},on:{mousedown:l.handleMouseDown,touchmove:l.handleChange,touchstart:l.handleChange}},[u("div",{staticClass:"vc-saturation--white"}),l._v(" "),u("div",{staticClass:"vc-saturation--black"}),l._v(" "),u("div",{staticClass:"vc-saturation-pointer",style:{top:l.pointerTop,left:l.pointerLeft}},[u("div",{staticClass:"vc-saturation-circle"})])])},o=[];r._withStripped=!0;var s={render:r,staticRenderFns:o};i.a=s},function(a,i,n){var r=n(129);typeof r=="string"&&(r=[[a.i,r,""]]),r.locals&&(a.exports=r.locals),n(1)("4dc1b086",r,!1,{})},function(a,i,n){i=a.exports=n(0)(!1),i.push([a.i,` .vc-alpha { position: absolute; top: 0px; @@ -9087,23 +9100,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho top: -11px; right: 12px; } -`,""])},function(a,i,n){var r=function(){var l=this,d=l.$createElement,u=l._self._c||d;return u("div",{staticClass:"vc-twitter",class:{"vc-twitter-hide-triangle ":l.triangle==="hide","vc-twitter-top-left-triangle ":l.triangle==="top-left","vc-twitter-top-right-triangle ":l.triangle==="top-right"},style:{width:typeof l.width=="number"?l.width+"px":l.width}},[u("div",{staticClass:"vc-twitter-triangle-shadow"}),l._v(" "),u("div",{staticClass:"vc-twitter-triangle"}),l._v(" "),u("div",{staticClass:"vc-twitter-body"},[l._l(l.defaultColors,function(c,f){return u("span",{key:f,staticClass:"vc-twitter-swatch",style:{background:c,boxShadow:"0 0 4px "+(l.equal(c)?c:"transparent")},on:{click:function(h){return l.handlerClick(c)}}})}),l._v(" "),u("div",{staticClass:"vc-twitter-hash"},[l._v("#")]),l._v(" "),u("editable-input",{attrs:{label:"#",value:l.hex},on:{change:l.inputChange}}),l._v(" "),u("div",{staticClass:"vc-twitter-clear"})],2)])},o=[];r._withStripped=!0;var s={render:r,staticRenderFns:o};i.a=s}])})})(Zv);const Iv={name:"NcDashboardWidgetItem",components:{NcAvatar:xo,NcActions:Du,NcActionButton:wE},props:{id:{type:[String,Number],default:void 0},targetUrl:{type:String,default:void 0},avatarUrl:{type:String,default:void 0},avatarUsername:{type:String,default:void 0},avatarIsNoUser:{type:Boolean,default:!1},overlayIconUrl:{type:String,default:void 0},mainText:{type:String,required:!0},subText:{type:String,default:""},itemMenu:{type:Object,default:()=>({})},forceMenu:{type:Boolean,default:!0}},data(){return{hovered:!1}},computed:{item(){return{id:this.id,targetUrl:this.targetUrl,avatarUrl:this.avatarUrl,avatarUsername:this.avatarUsername,overlayIconUrl:this.overlayIconUrl,mainText:this.mainText,subText:this.subText}},gotMenu(){return Object.keys(this.itemMenu).length!==0||!!this.$slots.actions},gotOverlayIcon(){return this.overlayIconUrl&&this.overlayIconUrl!==""}},methods:{onLinkClick(e){e.target.closest(".action-item")&&e.preventDefault()}}};var jv=function(){var e=this,t=e._self._c;return t("div",{on:{mouseover:function(a){e.hovered=!0},mouseleave:function(a){e.hovered=!1}}},[t(e.targetUrl?"a":"div",{tag:"component",class:{"item-list__entry":!0,"item-list__entry--has-actions-menu":e.gotMenu},attrs:{href:e.targetUrl||void 0,target:e.targetUrl?"_blank":void 0},on:{click:e.onLinkClick}},[e._t("avatar",function(){return[t("NcAvatar",{staticClass:"item-avatar",attrs:{size:44,url:e.avatarUrl,user:e.avatarUsername,"is-no-user":e.avatarIsNoUser,"show-user-status":!e.gotOverlayIcon}})]},{avatarUrl:e.avatarUrl,avatarUsername:e.avatarUsername}),e.overlayIconUrl?t("img",{staticClass:"item-icon",attrs:{alt:"",src:e.overlayIconUrl}}):e._e(),t("div",{staticClass:"item__details"},[t("h3",{attrs:{title:e.mainText}},[e._v(" "+e._s(e.mainText)+" ")]),t("span",{staticClass:"message",attrs:{title:e.subText}},[e._v(" "+e._s(e.subText)+" ")])]),e.gotMenu?t("NcActions",{attrs:{"force-menu":e.forceMenu}},[e._t("actions",function(){return e._l(e.itemMenu,function(a,i){return t("NcActionButton",{key:i,attrs:{icon:a.icon,"close-after-click":!0},on:{click:function(n){return n.preventDefault(),n.stopPropagation(),e.$emit(i,e.item)}}},[e._v(" "+e._s(a.text)+" ")])})})],2):e._e()],2)],1)},Pv=[],Gv=ce(Iv,jv,Pv,!1,null,"00e861ef",null,null);const HM=Gv.exports;ie("More items …"),ie("a few seconds ago"),ie("seconds ago"),ie("sec. ago");var Rg={exports:{}};(function(e,t){(function(a,i){e.exports=i()})(typeof self<"u"?self:Ia,function(){return function(){var a={661:function(){typeof window<"u"&&function(){for(var o=0,s=["ms","moz","webkit","o"],l=0;lF.length)&&(b=F.length);for(var N=0,B=new Array(b);N=ee.length?{done:!0}:{done:!1,value:ee[fe++]}},e:function($e){throw $e},f:de}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ve,da=!0,rt=!1;return{s:function(){ue=ue.call(ee)},n:function(){var $e=ue.next();return da=$e.done,$e},e:function($e){rt=!0,Ve=$e},f:function(){try{da||ue.return==null||ue.return()}finally{if(rt)throw Ve}}}}(Object.getOwnPropertyNames(F));try{for(N.s();!(b=N.n()).done;){var B=b.value,H=F[B];F[B]=H&&h(H)==="object"?T(H):H}}catch(ee){N.e(ee)}finally{N.f()}return Object.freeze(F)}var R,S,C=function(F){if(!F.compressed)return F;for(var b in F.compressed=!1,F.emojis){var N=F.emojis[b];for(var B in m)N[B]=N[m[B]],delete N[m[B]];N.short_names||(N.short_names=[]),N.short_names.unshift(b),N.sheet_x=N.sheet[0],N.sheet_y=N.sheet[1],delete N.sheet,N.text||(N.text=""),N.added_in||(N.added_in=6),N.added_in=N.added_in.toFixed(1),N.search=p(N)}return T(F)},j=["+1","grinning","kissing_heart","heart_eyes","laughing","stuck_out_tongue_winking_eye","sweat_smile","joy","scream","disappointed","unamused","weary","sob","sunglasses","heart","hankey"],E={};function I(){S=!0,R=f.get("frequently")}var M={add:function(F){S||I();var b=F.id;R||(R=E),R[b]||(R[b]=0),R[b]+=1,f.set("last",b),f.set("frequently",R)},get:function(F){if(S||I(),!R){E={};for(var b=[],N=Math.min(F,j.length),B=0;B',custom:'',flags:'',foods:'',nature:'',objects:'',smileys:'',people:' ',places:'',recent:'',symbols:''};function g(F,b,N,B,H,ee,te,ue){var fe,de=typeof F=="function"?F.options:F;if(b&&(de.render=b,de.staticRenderFns=N,de._compiled=!0),B&&(de.functional=!0),ee&&(de._scopeId="data-v-"+ee),te?(fe=function(rt){(rt=rt||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||typeof __VUE_SSR_CONTEXT__>"u"||(rt=__VUE_SSR_CONTEXT__),H&&H.call(this,rt),rt&&rt._registeredComponents&&rt._registeredComponents.add(te)},de._ssrRegister=fe):H&&(fe=ue?function(){H.call(this,(de.functional?this.parent:this).$root.$options.shadowRoot)}:H),fe)if(de.functional){de._injectStyles=fe;var Ve=de.render;de.render=function(rt,$e){return fe.call($e),Ve(rt,$e)}}else{var da=de.beforeCreate;de.beforeCreate=da?[].concat(da,fe):[fe]}return{exports:F,options:de}}var D=g({props:{i18n:{type:Object,required:!0},color:{type:String},categories:{type:Array,required:!0},activeCategory:{type:Object,default:function(){return{}}}},created:function(){this.svgs=P}},function(){var F=this,b=F.$createElement,N=F._self._c||b;return N("div",{staticClass:"emoji-mart-anchors",attrs:{role:"tablist"}},F._l(F.categories,function(B){return N("button",{key:B.id,class:{"emoji-mart-anchor":!0,"emoji-mart-anchor-selected":B.id==F.activeCategory.id},style:{color:B.id==F.activeCategory.id?F.color:""},attrs:{role:"tab",type:"button","aria-label":B.name,"aria-selected":B.id==F.activeCategory.id,"data-title":F.i18n.categories[B.id]},on:{click:function(H){return F.$emit("click",B)}}},[N("div",{attrs:{"aria-hidden":"true"},domProps:{innerHTML:F._s(F.svgs[B.id])}}),F._v(" "),N("span",{staticClass:"emoji-mart-anchor-bar",style:{backgroundColor:F.color},attrs:{"aria-hidden":"true"}})])}),0)},[],!1,null,null,null),k=D.exports;function x(F,b){if(!(F instanceof b))throw new TypeError("Cannot call a class as a function")}function L(F,b){for(var N=0;N1114111||Math.floor(te)!=te)throw RangeError("Invalid code point: "+te);te<=65535?N.push(te):(F=55296+((te-=65536)>>10),b=te%1024+56320,N.push(F,b)),(B+1===H||N.length>16384)&&(ee+=String.fromCharCode.apply(null,N),N.length=0)}return ee};function V(F){var b=F.split("-").map(function(N){return"0x".concat(N)});return $.apply(null,b)}function y(F){return F.reduce(function(b,N){return b.indexOf(N)===-1&&b.push(N),b},[])}function U(F,b){var N=y(F),B=y(b);return N.filter(function(H){return B.indexOf(H)>=0})}function A(F,b){var N={};for(var B in F){var H=F[B],ee=H;b.hasOwnProperty(B)&&(ee=b[B]),h(ee)==="object"&&(ee=A(H,ee)),N[B]=ee}return N}function z(F,b){var N=typeof Symbol<"u"&&F[Symbol.iterator]||F["@@iterator"];if(!N){if(Array.isArray(F)||(N=function(fe,de){if(fe){if(typeof fe=="string")return re(fe,de);var Ve=Object.prototype.toString.call(fe).slice(8,-1);return Ve==="Object"&&fe.constructor&&(Ve=fe.constructor.name),Ve==="Map"||Ve==="Set"?Array.from(fe):Ve==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ve)?re(fe,de):void 0}}(F))||b&&F&&typeof F.length=="number"){N&&(F=N);var B=0,H=function(){};return{s:H,n:function(){return B>=F.length?{done:!0}:{done:!1,value:F[B++]}},e:function(fe){throw fe},f:H}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ee,te=!0,ue=!1;return{s:function(){N=N.call(F)},n:function(){var fe=N.next();return te=fe.done,fe},e:function(fe){ue=!0,ee=fe},f:function(){try{te||N.return==null||N.return()}finally{if(ue)throw ee}}}}function re(F,b){(b==null||b>F.length)&&(b=F.length);for(var N=0,B=new Array(b);N1&&arguments[1]!==void 0?arguments[1]:{},B=N.emojisToShowFilter,H=N.include,ee=N.exclude,te=N.custom,ue=N.recent,fe=N.recentLength,de=fe===void 0?20:fe;x(this,F),this._data=C(b),this._emojisFilter=B||null,this._include=H||null,this._exclude=ee||null,this._custom=te||[],this._recent=ue||M.get(de),this._emojis={},this._nativeEmojis={},this._emoticons={},this._categories=[],this._recentCategory={id:"recent",name:"Recent",emojis:[]},this._customCategory={id:"custom",name:"Custom",emojis:[]},this._searchIndex={},this.buildIndex(),Object.freeze(this)}return Z(F,[{key:"buildIndex",value:function(){var b=this,N=this._data.categories;if(this._include&&(N=(N=N.filter(function(te){return b._include.includes(te.id)})).sort(function(te,ue){var fe=b._include.indexOf(te.id),de=b._include.indexOf(ue.id);return fede?1:0})),N.forEach(function(te){if(b.isCategoryNeeded(te.id)){var ue={id:te.id,name:te.name,emojis:[]};te.emojis.forEach(function(fe){var de=b.addEmoji(fe);de&&ue.emojis.push(de)}),ue.emojis.length&&b._categories.push(ue)}}),this.isCategoryNeeded("custom")){if(this._custom.length>0){var B,H=z(this._custom);try{for(H.s();!(B=H.n()).done;){var ee=B.value;this.addCustomEmoji(ee)}}catch(te){H.e(te)}finally{H.f()}}this._customCategory.emojis.length&&this._categories.push(this._customCategory)}this.isCategoryNeeded("recent")&&(this._recent.length&&this._recent.map(function(te){var ue,fe=z(b._customCategory.emojis);try{for(fe.s();!(ue=fe.n()).done;){var de=ue.value;if(de.id===te)return void b._recentCategory.emojis.push(de)}}catch(Ve){fe.e(Ve)}finally{fe.f()}b.hasEmoji(te)&&b._recentCategory.emojis.push(b.emoji(te))}),this._recentCategory.emojis.length&&this._categories.unshift(this._recentCategory))}},{key:"findEmoji",value:function(b,N){var B=b.match(O);if(B&&(b=B[1],B[2]&&(N=parseInt(B[2],10))),this._data.aliases.hasOwnProperty(b)&&(b=this._data.aliases[b]),this._emojis.hasOwnProperty(b)){var H=this._emojis[b];return N?H.getSkin(N):H}return this._nativeEmojis.hasOwnProperty(b)?this._nativeEmojis[b]:null}},{key:"categories",value:function(){return this._categories}},{key:"emoji",value:function(b){this._data.aliases.hasOwnProperty(b)&&(b=this._data.aliases[b]);var N=this._emojis[b];if(!N)throw new Error("Can not find emoji by id: "+b);return N}},{key:"firstEmoji",value:function(){var b=this._emojis[Object.keys(this._emojis)[0]];if(!b)throw new Error("Can not get first emoji");return b}},{key:"hasEmoji",value:function(b){return this._data.aliases.hasOwnProperty(b)&&(b=this._data.aliases[b]),!!this._emojis[b]}},{key:"nativeEmoji",value:function(b){return this._nativeEmojis.hasOwnProperty(b)?this._nativeEmojis[b]:null}},{key:"search",value:function(b,N){var B=this;if(N||(N=75),!b.length)return null;if(b=="-"||b=="-1")return[this.emoji("-1")];var H,ee=b.toLowerCase().split(/[\s|,|\-|_]+/);ee.length>2&&(ee=[ee[0],ee[1]]),H=ee.map(function(ue){for(var fe=B._emojis,de=B._searchIndex,Ve=0,da=0;da1?U.apply(null,H):H.length?H[0]:[])&&te.length>N&&(te=te.slice(0,N)),te}},{key:"addCustomEmoji",value:function(b){var N=Object.assign({},b,{id:b.short_names[0],custom:!0});N.search||(N.search=p(N));var B=new Fe(N);return this._emojis[B.id]=B,this._customCategory.emojis.push(B),B}},{key:"addEmoji",value:function(b){var N=this,B=this._data.emojis[b];if(!this.isEmojiNeeded(B))return!1;var H=new Fe(B);if(this._emojis[b]=H,H.native&&(this._nativeEmojis[H.native]=H),H._skins)for(var ee in H._skins){var te=H._skins[ee];te.native&&(this._nativeEmojis[te.native]=te)}return H.emoticons&&H.emoticons.forEach(function(ue){N._emoticons[ue]||(N._emoticons[ue]=b)}),H}},{key:"isCategoryNeeded",value:function(b){var N=!this._include||!this._include.length||this._include.indexOf(b)>-1,B=!(!this._exclude||!this._exclude.length)&&this._exclude.indexOf(b)>-1;return!(!N||B)}},{key:"isEmojiNeeded",value:function(b){return!this._emojisFilter||this._emojisFilter(b)}}]),F}(),Fe=function(){function F(b){if(x(this,F),this._data=Object.assign({},b),this._skins=null,this._data.skin_variations)for(var N in this._skins=[],ge){var B=ge[N],H=this._data.skin_variations[B],ee=Object.assign({},b);for(var te in H)ee[te]=H[te];delete ee.skin_variations,ee.skin_tone=parseInt(N)+1,this._skins.push(new F(ee))}for(var ue in this._sanitized=Re(this._data),this._sanitized)this[ue]=this._sanitized[ue];this.short_names=this._data.short_names,this.short_name=this._data.short_names[0],Object.freeze(this)}return Z(F,[{key:"getSkin",value:function(b){return b&&b!="native"&&this._skins?this._skins[b-1]:this}},{key:"getPosition",value:function(){var b=+(1.6666666666666667*this._data.sheet_x).toFixed(2),N=+(100/60*this._data.sheet_y).toFixed(2);return"".concat(b,"% ").concat(N,"%")}},{key:"ariaLabel",value:function(){return[this.native].concat(this.short_names).filter(Boolean).join(", ")}}]),F}(),Ze=function(){function F(b,N,B,H,ee,te,ue){x(this,F),this._emoji=b,this._native=H,this._skin=N,this._set=B,this._fallback=ee,this.canRender=this._canRender(),this.cssClass=this._cssClass(),this.cssStyle=this._cssStyle(ue),this.content=this._content(),this.title=te===!0?b.short_name:null,this.ariaLabel=b.ariaLabel(),Object.freeze(this)}return Z(F,[{key:"getEmoji",value:function(){return this._emoji.getSkin(this._skin)}},{key:"_canRender",value:function(){return this._isCustom()||this._isNative()||this._hasEmoji()||this._fallback}},{key:"_cssClass",value:function(){return["emoji-set-"+this._set,"emoji-type-"+this._emojiType()]}},{key:"_cssStyle",value:function(b){var N={};return this._isCustom()?N={backgroundImage:"url("+this.getEmoji()._data.imageUrl+")",backgroundSize:"100%",width:b+"px",height:b+"px"}:this._hasEmoji()&&!this._isNative()&&(N={backgroundPosition:this.getEmoji().getPosition()}),b&&(N=this._isNative()?Object.assign(N,{fontSize:Math.round(.95*b*10)/10+"px"}):Object.assign(N,{width:b+"px",height:b+"px"})),N}},{key:"_content",value:function(){return this._isCustom()?"":this._isNative()?this.getEmoji().native:this._hasEmoji()?"":this._fallback?this._fallback(this.getEmoji()):null}},{key:"_isNative",value:function(){return this._native}},{key:"_isCustom",value:function(){return this.getEmoji().custom}},{key:"_hasEmoji",value:function(){if(!this.getEmoji()._data)return!1;var b=this.getEmoji()._data["has_img_"+this._set];return b===void 0||b}},{key:"_emojiType",value:function(){return this._isCustom()?"custom":this._isNative()?"native":this._hasEmoji()?"image":"fallback"}}]),F}();function Re(F){var b=F.name,N=F.short_names,B=F.skin_tone,H=F.skin_variations,ee=F.emoticons,te=F.unified,ue=F.custom,fe=F.imageUrl,de=F.id||N[0],Ve=":".concat(de,":");return ue?{id:de,name:b,colons:Ve,emoticons:ee,custom:ue,imageUrl:fe}:(B&&(Ve+=":skin-tone-".concat(B,":")),{id:de,name:b,colons:Ve,emoticons:ee,unified:te.toLowerCase(),skin:B||(H?1:null),native:V(te)})}function We(F,b,N){return b in F?Object.defineProperty(F,b,{value:N,enumerable:!0,configurable:!0,writable:!0}):F[b]=N,F}var le={native:{type:Boolean,default:!1},tooltip:{type:Boolean,default:!1},fallback:{type:Function},skin:{type:Number,default:1},set:{type:String,default:"apple"},emoji:{type:[String,Object],required:!0},size:{type:Number,default:null},tag:{type:String,default:"span"}},qe={perLine:{type:Number,default:9},maxSearchResults:{type:Number,default:75},emojiSize:{type:Number,default:24},title:{type:String,default:"Emoji Mart™"},emoji:{type:String,default:"department_store"},color:{type:String,default:"#ae65c5"},set:{type:String,default:"apple"},skin:{type:Number,default:null},defaultSkin:{type:Number,default:1},native:{type:Boolean,default:!1},emojiTooltip:{type:Boolean,default:!1},autoFocus:{type:Boolean,default:!1},i18n:{type:Object,default:function(){return{}}},showPreview:{type:Boolean,default:!0},showSearch:{type:Boolean,default:!0},showCategories:{type:Boolean,default:!0},showSkinTones:{type:Boolean,default:!0},infiniteScroll:{type:Boolean,default:!0},pickerStyles:{type:Object,default:function(){return{}}}};function ye(F,b){var N=Object.keys(F);if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(F);b&&(B=B.filter(function(H){return Object.getOwnPropertyDescriptor(F,H).enumerable})),N.push.apply(N,B)}return N}function Je(F){for(var b=1;b0},emojiObjects:function(){var F=this;return this.emojis.map(function(b){return{emojiObject:b,emojiView:new Ze(b,F.emojiProps.skin,F.emojiProps.set,F.emojiProps.native,F.emojiProps.fallback,F.emojiProps.emojiTooltip,F.emojiProps.emojiSize)}})}},components:{Emoji:Ke}},function(){var F=this,b=F.$createElement,N=F._self._c||b;return F.isVisible&&(F.isSearch||F.hasResults)?N("section",{class:{"emoji-mart-category":!0,"emoji-mart-no-results":!F.hasResults},attrs:{"aria-label":F.i18n.categories[F.id]}},[N("div",{staticClass:"emoji-mart-category-label"},[N("h3",{staticClass:"emoji-mart-category-label"},[F._v(F._s(F.i18n.categories[F.id]))])]),F._v(" "),F._l(F.emojiObjects,function(B){var H=B.emojiObject,ee=B.emojiView;return[ee.canRender?N("button",{key:H.id,staticClass:"emoji-mart-emoji",class:F.activeClass(H),attrs:{"aria-label":ee.ariaLabel,role:"option","aria-selected":"false","aria-posinset":"1","aria-setsize":"1812",type:"button","data-title":H.short_name,title:ee.title},on:{mouseenter:function(te){F.emojiProps.onEnter(ee.getEmoji())},mouseleave:function(te){F.emojiProps.onLeave(ee.getEmoji())},click:function(te){F.emojiProps.onClick(ee.getEmoji())}}},[N("span",{class:ee.cssClass,style:ee.cssStyle},[F._v(F._s(ee.content))])]):F._e()]}),F._v(" "),F.hasResults?F._e():N("div",[N("emoji",{attrs:{data:F.data,emoji:"sleuth_or_spy",native:F.emojiProps.native,skin:F.emojiProps.skin,set:F.emojiProps.set}}),F._v(" "),N("div",{staticClass:"emoji-mart-no-results-label"},[F._v(F._s(F.i18n.notfound))])],1)],2):F._e()},[],!1,null,null,null).exports,Xe=g({props:{skin:{type:Number,required:!0}},data:function(){return{opened:!1}},methods:{onClick:function(F){this.opened&&F!=this.skin&&this.$emit("change",F),this.opened=!this.opened}}},function(){var F=this,b=F.$createElement,N=F._self._c||b;return N("div",{class:{"emoji-mart-skin-swatches":!0,"emoji-mart-skin-swatches-opened":F.opened}},F._l(6,function(B){return N("span",{key:B,class:{"emoji-mart-skin-swatch":!0,"emoji-mart-skin-swatch-selected":F.skin==B}},[N("span",{class:"emoji-mart-skin emoji-mart-skin-tone-"+B,on:{click:function(H){return F.onClick(B)}}})])}),0)},[],!1,null,null,null).exports,v=g({props:{data:{type:Object,required:!0},title:{type:String,required:!0},emoji:{type:[String,Object]},idleEmoji:{type:[String,Object],required:!0},showSkinTones:{type:Boolean,default:!0},emojiProps:{type:Object,required:!0},skinProps:{type:Object,required:!0},onSkinChange:{type:Function,required:!0}},computed:{emojiData:function(){return this.emoji?this.emoji:{}},emojiShortNames:function(){return this.emojiData.short_names},emojiEmoticons:function(){return this.emojiData.emoticons}},components:{Emoji:Ke,Skins:Xe}},function(){var F=this,b=F.$createElement,N=F._self._c||b;return N("div",{staticClass:"emoji-mart-preview"},[F.emoji?[N("div",{staticClass:"emoji-mart-preview-emoji"},[N("emoji",{attrs:{data:F.data,emoji:F.emoji,native:F.emojiProps.native,skin:F.emojiProps.skin,set:F.emojiProps.set}})],1),F._v(" "),N("div",{staticClass:"emoji-mart-preview-data"},[N("div",{staticClass:"emoji-mart-preview-name"},[F._v(F._s(F.emoji.name))]),F._v(" "),N("div",{staticClass:"emoji-mart-preview-shortnames"},F._l(F.emojiShortNames,function(B){return N("span",{key:B,staticClass:"emoji-mart-preview-shortname"},[F._v(":"+F._s(B)+":")])}),0),F._v(" "),N("div",{staticClass:"emoji-mart-preview-emoticons"},F._l(F.emojiEmoticons,function(B){return N("span",{key:B,staticClass:"emoji-mart-preview-emoticon"},[F._v(F._s(B))])}),0)])]:[N("div",{staticClass:"emoji-mart-preview-emoji"},[N("emoji",{attrs:{data:F.data,emoji:F.idleEmoji,native:F.emojiProps.native,skin:F.emojiProps.skin,set:F.emojiProps.set}})],1),F._v(" "),N("div",{staticClass:"emoji-mart-preview-data"},[N("span",{staticClass:"emoji-mart-title-label"},[F._v(F._s(F.title))])]),F._v(" "),F.showSkinTones?N("div",{staticClass:"emoji-mart-preview-skins"},[N("skins",{attrs:{skin:F.skinProps.skin},on:{change:function(B){return F.onSkinChange(B)}}})],1):F._e()]],2)},[],!1,null,null,null).exports,Y=g({props:{data:{type:Object,required:!0},i18n:{type:Object,required:!0},autoFocus:{type:Boolean,default:!1},onSearch:{type:Function,required:!0},onArrowLeft:{type:Function,required:!1},onArrowRight:{type:Function,required:!1},onArrowDown:{type:Function,required:!1},onArrowUp:{type:Function,required:!1},onEnter:{type:Function,required:!1}},data:function(){return{value:""}},computed:{emojiIndex:function(){return this.data}},watch:{value:function(){this.$emit("search",this.value)}},methods:{clear:function(){this.value=""}},mounted:function(){var F=this.$el.querySelector("input");this.autoFocus&&F.focus()}},function(){var F=this,b=F.$createElement,N=F._self._c||b;return N("div",{staticClass:"emoji-mart-search"},[N("input",{directives:[{name:"model",rawName:"v-model",value:F.value,expression:"value"}],attrs:{type:"text",placeholder:F.i18n.search,role:"textbox","aria-autocomplete":"list","aria-owns":"emoji-mart-list","aria-label":"Search for an emoji","aria-describedby":"emoji-mart-search-description"},domProps:{value:F.value},on:{keydown:[function(B){return!B.type.indexOf("key")&&F._k(B.keyCode,"left",37,B.key,["Left","ArrowLeft"])||"button"in B&&B.button!==0?null:(function(H){return F.$emit("arrowLeft",H)}).apply(null,arguments)},function(B){return!B.type.indexOf("key")&&F._k(B.keyCode,"right",39,B.key,["Right","ArrowRight"])||"button"in B&&B.button!==2?null:(function(){return F.$emit("arrowRight")}).apply(null,arguments)},function(B){return!B.type.indexOf("key")&&F._k(B.keyCode,"down",40,B.key,["Down","ArrowDown"])?null:(function(){return F.$emit("arrowDown")}).apply(null,arguments)},function(B){return!B.type.indexOf("key")&&F._k(B.keyCode,"up",38,B.key,["Up","ArrowUp"])?null:(function(H){return F.$emit("arrowUp",H)}).apply(null,arguments)},function(B){return!B.type.indexOf("key")&&F._k(B.keyCode,"enter",13,B.key,"Enter")?null:(function(){return F.$emit("enter")}).apply(null,arguments)}],input:function(B){B.target.composing||(F.value=B.target.value)}}}),F._v(" "),N("span",{staticClass:"hidden",attrs:{id:"emoji-picker-search-description"}},[F._v(`Use the left, right, up and down arrow keys to navigate the emoji search +`,""])},function(a,i,n){var r=function(){var l=this,d=l.$createElement,u=l._self._c||d;return u("div",{staticClass:"vc-twitter",class:{"vc-twitter-hide-triangle ":l.triangle==="hide","vc-twitter-top-left-triangle ":l.triangle==="top-left","vc-twitter-top-right-triangle ":l.triangle==="top-right"},style:{width:typeof l.width=="number"?l.width+"px":l.width}},[u("div",{staticClass:"vc-twitter-triangle-shadow"}),l._v(" "),u("div",{staticClass:"vc-twitter-triangle"}),l._v(" "),u("div",{staticClass:"vc-twitter-body"},[l._l(l.defaultColors,function(c,f){return u("span",{key:f,staticClass:"vc-twitter-swatch",style:{background:c,boxShadow:"0 0 4px "+(l.equal(c)?c:"transparent")},on:{click:function(h){return l.handlerClick(c)}}})}),l._v(" "),u("div",{staticClass:"vc-twitter-hash"},[l._v("#")]),l._v(" "),u("editable-input",{attrs:{label:"#",value:l.hex},on:{change:l.inputChange}}),l._v(" "),u("div",{staticClass:"vc-twitter-clear"})],2)])},o=[];r._withStripped=!0;var s={render:r,staticRenderFns:o};i.a=s}])})})(Kx);const Xx={name:"NcDashboardWidgetItem",components:{NcAvatar:y0,NcActions:_u,NcActionButton:E9},props:{id:{type:[String,Number],default:void 0},targetUrl:{type:String,default:void 0},avatarUrl:{type:String,default:void 0},avatarUsername:{type:String,default:void 0},avatarIsNoUser:{type:Boolean,default:!1},overlayIconUrl:{type:String,default:void 0},mainText:{type:String,required:!0},subText:{type:String,default:""},itemMenu:{type:Object,default:()=>({})},forceMenu:{type:Boolean,default:!0}},data(){return{hovered:!1}},computed:{item(){return{id:this.id,targetUrl:this.targetUrl,avatarUrl:this.avatarUrl,avatarUsername:this.avatarUsername,overlayIconUrl:this.overlayIconUrl,mainText:this.mainText,subText:this.subText}},gotMenu(){return Object.keys(this.itemMenu).length!==0||!!this.$slots.actions},gotOverlayIcon(){return this.overlayIconUrl&&this.overlayIconUrl!==""}},methods:{onLinkClick(e){e.target.closest(".action-item")&&e.preventDefault()}}};var e5=function(){var e=this,t=e._self._c;return t("div",{on:{mouseover:function(a){e.hovered=!0},mouseleave:function(a){e.hovered=!1}}},[t(e.targetUrl?"a":"div",{tag:"component",class:{"item-list__entry":!0,"item-list__entry--has-actions-menu":e.gotMenu},attrs:{href:e.targetUrl||void 0,target:e.targetUrl?"_blank":void 0},on:{click:e.onLinkClick}},[e._t("avatar",function(){return[t("NcAvatar",{staticClass:"item-avatar",attrs:{size:44,url:e.avatarUrl,user:e.avatarUsername,"is-no-user":e.avatarIsNoUser,"show-user-status":!e.gotOverlayIcon}})]},{avatarUrl:e.avatarUrl,avatarUsername:e.avatarUsername}),e.overlayIconUrl?t("img",{staticClass:"item-icon",attrs:{alt:"",src:e.overlayIconUrl}}):e._e(),t("div",{staticClass:"item__details"},[t("h3",{attrs:{title:e.mainText}},[e._v(" "+e._s(e.mainText)+" ")]),t("span",{staticClass:"message",attrs:{title:e.subText}},[e._v(" "+e._s(e.subText)+" ")])]),e.gotMenu?t("NcActions",{attrs:{"force-menu":e.forceMenu}},[e._t("actions",function(){return e._l(e.itemMenu,function(a,i){return t("NcActionButton",{key:i,attrs:{icon:a.icon,"close-after-click":!0},on:{click:function(n){return n.preventDefault(),n.stopPropagation(),e.$emit(i,e.item)}}},[e._v(" "+e._s(a.text)+" ")])})})],2):e._e()],2)],1)},t5=[],a5=de(Xx,e5,t5,!1,null,"00e861ef",null,null);const T7=a5.exports;ie("More items …");var A_={exports:{}};(function(e,t){(function(a,i){e.exports=i()})(typeof self<"u"?self:ja,function(){return function(){var a={661:function(){typeof window<"u"&&function(){for(var o=0,s=["ms","moz","webkit","o"],l=0;lF.length)&&(b=F.length);for(var N=0,B=new Array(b);N=ee.length?{done:!0}:{done:!1,value:ee[fe++]}},e:function(We){throw We},f:ce}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var $e,ca=!0,ot=!1;return{s:function(){ue=ue.call(ee)},n:function(){var We=ue.next();return ca=We.done,We},e:function(We){ot=!0,$e=We},f:function(){try{ca||ue.return==null||ue.return()}finally{if(ot)throw $e}}}}(Object.getOwnPropertyNames(F));try{for(N.s();!(b=N.n()).done;){var B=b.value,H=F[B];F[B]=H&&h(H)==="object"?T(H):H}}catch(ee){N.e(ee)}finally{N.f()}return Object.freeze(F)}var R,S,C=function(F){if(!F.compressed)return F;for(var b in F.compressed=!1,F.emojis){var N=F.emojis[b];for(var B in m)N[B]=N[m[B]],delete N[m[B]];N.short_names||(N.short_names=[]),N.short_names.unshift(b),N.sheet_x=N.sheet[0],N.sheet_y=N.sheet[1],delete N.sheet,N.text||(N.text=""),N.added_in||(N.added_in=6),N.added_in=N.added_in.toFixed(1),N.search=p(N)}return T(F)},j=["+1","grinning","kissing_heart","heart_eyes","laughing","stuck_out_tongue_winking_eye","sweat_smile","joy","scream","disappointed","unamused","weary","sob","sunglasses","heart","hankey"],E={};function I(){S=!0,R=f.get("frequently")}var M={add:function(F){S||I();var b=F.id;R||(R=E),R[b]||(R[b]=0),R[b]+=1,f.set("last",b),f.set("frequently",R)},get:function(F){if(S||I(),!R){E={};for(var b=[],N=Math.min(F,j.length),B=0;B',custom:'',flags:'',foods:'',nature:'',objects:'',smileys:'',people:' ',places:'',recent:'',symbols:''};function g(F,b,N,B,H,ee,te,ue){var fe,ce=typeof F=="function"?F.options:F;if(b&&(ce.render=b,ce.staticRenderFns=N,ce._compiled=!0),B&&(ce.functional=!0),ee&&(ce._scopeId="data-v-"+ee),te?(fe=function(ot){(ot=ot||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||typeof __VUE_SSR_CONTEXT__>"u"||(ot=__VUE_SSR_CONTEXT__),H&&H.call(this,ot),ot&&ot._registeredComponents&&ot._registeredComponents.add(te)},ce._ssrRegister=fe):H&&(fe=ue?function(){H.call(this,(ce.functional?this.parent:this).$root.$options.shadowRoot)}:H),fe)if(ce.functional){ce._injectStyles=fe;var $e=ce.render;ce.render=function(ot,We){return fe.call(We),$e(ot,We)}}else{var ca=ce.beforeCreate;ce.beforeCreate=ca?[].concat(ca,fe):[fe]}return{exports:F,options:ce}}var D=g({props:{i18n:{type:Object,required:!0},color:{type:String},categories:{type:Array,required:!0},activeCategory:{type:Object,default:function(){return{}}}},created:function(){this.svgs=P}},function(){var F=this,b=F.$createElement,N=F._self._c||b;return N("div",{staticClass:"emoji-mart-anchors",attrs:{role:"tablist"}},F._l(F.categories,function(B){return N("button",{key:B.id,class:{"emoji-mart-anchor":!0,"emoji-mart-anchor-selected":B.id==F.activeCategory.id},style:{color:B.id==F.activeCategory.id?F.color:""},attrs:{role:"tab",type:"button","aria-label":B.name,"aria-selected":B.id==F.activeCategory.id,"data-title":F.i18n.categories[B.id]},on:{click:function(H){return F.$emit("click",B)}}},[N("div",{attrs:{"aria-hidden":"true"},domProps:{innerHTML:F._s(F.svgs[B.id])}}),F._v(" "),N("span",{staticClass:"emoji-mart-anchor-bar",style:{backgroundColor:F.color},attrs:{"aria-hidden":"true"}})])}),0)},[],!1,null,null,null),k=D.exports;function x(F,b){if(!(F instanceof b))throw new TypeError("Cannot call a class as a function")}function L(F,b){for(var N=0;N1114111||Math.floor(te)!=te)throw RangeError("Invalid code point: "+te);te<=65535?N.push(te):(F=55296+((te-=65536)>>10),b=te%1024+56320,N.push(F,b)),(B+1===H||N.length>16384)&&(ee+=String.fromCharCode.apply(null,N),N.length=0)}return ee};function V(F){var b=F.split("-").map(function(N){return"0x".concat(N)});return $.apply(null,b)}function y(F){return F.reduce(function(b,N){return b.indexOf(N)===-1&&b.push(N),b},[])}function U(F,b){var N=y(F),B=y(b);return N.filter(function(H){return B.indexOf(H)>=0})}function A(F,b){var N={};for(var B in F){var H=F[B],ee=H;b.hasOwnProperty(B)&&(ee=b[B]),h(ee)==="object"&&(ee=A(H,ee)),N[B]=ee}return N}function z(F,b){var N=typeof Symbol<"u"&&F[Symbol.iterator]||F["@@iterator"];if(!N){if(Array.isArray(F)||(N=function(fe,ce){if(fe){if(typeof fe=="string")return re(fe,ce);var $e=Object.prototype.toString.call(fe).slice(8,-1);return $e==="Object"&&fe.constructor&&($e=fe.constructor.name),$e==="Map"||$e==="Set"?Array.from(fe):$e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($e)?re(fe,ce):void 0}}(F))||b&&F&&typeof F.length=="number"){N&&(F=N);var B=0,H=function(){};return{s:H,n:function(){return B>=F.length?{done:!0}:{done:!1,value:F[B++]}},e:function(fe){throw fe},f:H}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ee,te=!0,ue=!1;return{s:function(){N=N.call(F)},n:function(){var fe=N.next();return te=fe.done,fe},e:function(fe){ue=!0,ee=fe},f:function(){try{te||N.return==null||N.return()}finally{if(ue)throw ee}}}}function re(F,b){(b==null||b>F.length)&&(b=F.length);for(var N=0,B=new Array(b);N1&&arguments[1]!==void 0?arguments[1]:{},B=N.emojisToShowFilter,H=N.include,ee=N.exclude,te=N.custom,ue=N.recent,fe=N.recentLength,ce=fe===void 0?20:fe;x(this,F),this._data=C(b),this._emojisFilter=B||null,this._include=H||null,this._exclude=ee||null,this._custom=te||[],this._recent=ue||M.get(ce),this._emojis={},this._nativeEmojis={},this._emoticons={},this._categories=[],this._recentCategory={id:"recent",name:"Recent",emojis:[]},this._customCategory={id:"custom",name:"Custom",emojis:[]},this._searchIndex={},this.buildIndex(),Object.freeze(this)}return Z(F,[{key:"buildIndex",value:function(){var b=this,N=this._data.categories;if(this._include&&(N=(N=N.filter(function(te){return b._include.includes(te.id)})).sort(function(te,ue){var fe=b._include.indexOf(te.id),ce=b._include.indexOf(ue.id);return fece?1:0})),N.forEach(function(te){if(b.isCategoryNeeded(te.id)){var ue={id:te.id,name:te.name,emojis:[]};te.emojis.forEach(function(fe){var ce=b.addEmoji(fe);ce&&ue.emojis.push(ce)}),ue.emojis.length&&b._categories.push(ue)}}),this.isCategoryNeeded("custom")){if(this._custom.length>0){var B,H=z(this._custom);try{for(H.s();!(B=H.n()).done;){var ee=B.value;this.addCustomEmoji(ee)}}catch(te){H.e(te)}finally{H.f()}}this._customCategory.emojis.length&&this._categories.push(this._customCategory)}this.isCategoryNeeded("recent")&&(this._recent.length&&this._recent.map(function(te){var ue,fe=z(b._customCategory.emojis);try{for(fe.s();!(ue=fe.n()).done;){var ce=ue.value;if(ce.id===te)return void b._recentCategory.emojis.push(ce)}}catch($e){fe.e($e)}finally{fe.f()}b.hasEmoji(te)&&b._recentCategory.emojis.push(b.emoji(te))}),this._recentCategory.emojis.length&&this._categories.unshift(this._recentCategory))}},{key:"findEmoji",value:function(b,N){var B=b.match(O);if(B&&(b=B[1],B[2]&&(N=parseInt(B[2],10))),this._data.aliases.hasOwnProperty(b)&&(b=this._data.aliases[b]),this._emojis.hasOwnProperty(b)){var H=this._emojis[b];return N?H.getSkin(N):H}return this._nativeEmojis.hasOwnProperty(b)?this._nativeEmojis[b]:null}},{key:"categories",value:function(){return this._categories}},{key:"emoji",value:function(b){this._data.aliases.hasOwnProperty(b)&&(b=this._data.aliases[b]);var N=this._emojis[b];if(!N)throw new Error("Can not find emoji by id: "+b);return N}},{key:"firstEmoji",value:function(){var b=this._emojis[Object.keys(this._emojis)[0]];if(!b)throw new Error("Can not get first emoji");return b}},{key:"hasEmoji",value:function(b){return this._data.aliases.hasOwnProperty(b)&&(b=this._data.aliases[b]),!!this._emojis[b]}},{key:"nativeEmoji",value:function(b){return this._nativeEmojis.hasOwnProperty(b)?this._nativeEmojis[b]:null}},{key:"search",value:function(b,N){var B=this;if(N||(N=75),!b.length)return null;if(b=="-"||b=="-1")return[this.emoji("-1")];var H,ee=b.toLowerCase().split(/[\s|,|\-|_]+/);ee.length>2&&(ee=[ee[0],ee[1]]),H=ee.map(function(ue){for(var fe=B._emojis,ce=B._searchIndex,$e=0,ca=0;ca1?U.apply(null,H):H.length?H[0]:[])&&te.length>N&&(te=te.slice(0,N)),te}},{key:"addCustomEmoji",value:function(b){var N=Object.assign({},b,{id:b.short_names[0],custom:!0});N.search||(N.search=p(N));var B=new Fe(N);return this._emojis[B.id]=B,this._customCategory.emojis.push(B),B}},{key:"addEmoji",value:function(b){var N=this,B=this._data.emojis[b];if(!this.isEmojiNeeded(B))return!1;var H=new Fe(B);if(this._emojis[b]=H,H.native&&(this._nativeEmojis[H.native]=H),H._skins)for(var ee in H._skins){var te=H._skins[ee];te.native&&(this._nativeEmojis[te.native]=te)}return H.emoticons&&H.emoticons.forEach(function(ue){N._emoticons[ue]||(N._emoticons[ue]=b)}),H}},{key:"isCategoryNeeded",value:function(b){var N=!this._include||!this._include.length||this._include.indexOf(b)>-1,B=!(!this._exclude||!this._exclude.length)&&this._exclude.indexOf(b)>-1;return!(!N||B)}},{key:"isEmojiNeeded",value:function(b){return!this._emojisFilter||this._emojisFilter(b)}}]),F}(),Fe=function(){function F(b){if(x(this,F),this._data=Object.assign({},b),this._skins=null,this._data.skin_variations)for(var N in this._skins=[],ge){var B=ge[N],H=this._data.skin_variations[B],ee=Object.assign({},b);for(var te in H)ee[te]=H[te];delete ee.skin_variations,ee.skin_tone=parseInt(N)+1,this._skins.push(new F(ee))}for(var ue in this._sanitized=Re(this._data),this._sanitized)this[ue]=this._sanitized[ue];this.short_names=this._data.short_names,this.short_name=this._data.short_names[0],Object.freeze(this)}return Z(F,[{key:"getSkin",value:function(b){return b&&b!="native"&&this._skins?this._skins[b-1]:this}},{key:"getPosition",value:function(){var b=+(1.6666666666666667*this._data.sheet_x).toFixed(2),N=+(100/60*this._data.sheet_y).toFixed(2);return"".concat(b,"% ").concat(N,"%")}},{key:"ariaLabel",value:function(){return[this.native].concat(this.short_names).filter(Boolean).join(", ")}}]),F}(),Ze=function(){function F(b,N,B,H,ee,te,ue){x(this,F),this._emoji=b,this._native=H,this._skin=N,this._set=B,this._fallback=ee,this.canRender=this._canRender(),this.cssClass=this._cssClass(),this.cssStyle=this._cssStyle(ue),this.content=this._content(),this.title=te===!0?b.short_name:null,this.ariaLabel=b.ariaLabel(),Object.freeze(this)}return Z(F,[{key:"getEmoji",value:function(){return this._emoji.getSkin(this._skin)}},{key:"_canRender",value:function(){return this._isCustom()||this._isNative()||this._hasEmoji()||this._fallback}},{key:"_cssClass",value:function(){return["emoji-set-"+this._set,"emoji-type-"+this._emojiType()]}},{key:"_cssStyle",value:function(b){var N={};return this._isCustom()?N={backgroundImage:"url("+this.getEmoji()._data.imageUrl+")",backgroundSize:"100%",width:b+"px",height:b+"px"}:this._hasEmoji()&&!this._isNative()&&(N={backgroundPosition:this.getEmoji().getPosition()}),b&&(N=this._isNative()?Object.assign(N,{fontSize:Math.round(.95*b*10)/10+"px"}):Object.assign(N,{width:b+"px",height:b+"px"})),N}},{key:"_content",value:function(){return this._isCustom()?"":this._isNative()?this.getEmoji().native:this._hasEmoji()?"":this._fallback?this._fallback(this.getEmoji()):null}},{key:"_isNative",value:function(){return this._native}},{key:"_isCustom",value:function(){return this.getEmoji().custom}},{key:"_hasEmoji",value:function(){if(!this.getEmoji()._data)return!1;var b=this.getEmoji()._data["has_img_"+this._set];return b===void 0||b}},{key:"_emojiType",value:function(){return this._isCustom()?"custom":this._isNative()?"native":this._hasEmoji()?"image":"fallback"}}]),F}();function Re(F){var b=F.name,N=F.short_names,B=F.skin_tone,H=F.skin_variations,ee=F.emoticons,te=F.unified,ue=F.custom,fe=F.imageUrl,ce=F.id||N[0],$e=":".concat(ce,":");return ue?{id:ce,name:b,colons:$e,emoticons:ee,custom:ue,imageUrl:fe}:(B&&($e+=":skin-tone-".concat(B,":")),{id:ce,name:b,colons:$e,emoticons:ee,unified:te.toLowerCase(),skin:B||(H?1:null),native:V(te)})}function Qe(F,b,N){return b in F?Object.defineProperty(F,b,{value:N,enumerable:!0,configurable:!0,writable:!0}):F[b]=N,F}var le={native:{type:Boolean,default:!1},tooltip:{type:Boolean,default:!1},fallback:{type:Function},skin:{type:Number,default:1},set:{type:String,default:"apple"},emoji:{type:[String,Object],required:!0},size:{type:Number,default:null},tag:{type:String,default:"span"}},qe={perLine:{type:Number,default:9},maxSearchResults:{type:Number,default:75},emojiSize:{type:Number,default:24},title:{type:String,default:"Emoji Mart™"},emoji:{type:String,default:"department_store"},color:{type:String,default:"#ae65c5"},set:{type:String,default:"apple"},skin:{type:Number,default:null},defaultSkin:{type:Number,default:1},native:{type:Boolean,default:!1},emojiTooltip:{type:Boolean,default:!1},autoFocus:{type:Boolean,default:!1},i18n:{type:Object,default:function(){return{}}},showPreview:{type:Boolean,default:!0},showSearch:{type:Boolean,default:!0},showCategories:{type:Boolean,default:!0},showSkinTones:{type:Boolean,default:!0},infiniteScroll:{type:Boolean,default:!0},pickerStyles:{type:Object,default:function(){return{}}}};function ye(F,b){var N=Object.keys(F);if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(F);b&&(B=B.filter(function(H){return Object.getOwnPropertyDescriptor(F,H).enumerable})),N.push.apply(N,B)}return N}function Ke(F){for(var b=1;b0},emojiObjects:function(){var F=this;return this.emojis.map(function(b){return{emojiObject:b,emojiView:new Ze(b,F.emojiProps.skin,F.emojiProps.set,F.emojiProps.native,F.emojiProps.fallback,F.emojiProps.emojiTooltip,F.emojiProps.emojiSize)}})}},components:{Emoji:Xe}},function(){var F=this,b=F.$createElement,N=F._self._c||b;return F.isVisible&&(F.isSearch||F.hasResults)?N("section",{class:{"emoji-mart-category":!0,"emoji-mart-no-results":!F.hasResults},attrs:{"aria-label":F.i18n.categories[F.id]}},[N("div",{staticClass:"emoji-mart-category-label"},[N("h3",{staticClass:"emoji-mart-category-label"},[F._v(F._s(F.i18n.categories[F.id]))])]),F._v(" "),F._l(F.emojiObjects,function(B){var H=B.emojiObject,ee=B.emojiView;return[ee.canRender?N("button",{key:H.id,staticClass:"emoji-mart-emoji",class:F.activeClass(H),attrs:{"aria-label":ee.ariaLabel,role:"option","aria-selected":"false","aria-posinset":"1","aria-setsize":"1812",type:"button","data-title":H.short_name,title:ee.title},on:{mouseenter:function(te){F.emojiProps.onEnter(ee.getEmoji())},mouseleave:function(te){F.emojiProps.onLeave(ee.getEmoji())},click:function(te){F.emojiProps.onClick(ee.getEmoji())}}},[N("span",{class:ee.cssClass,style:ee.cssStyle},[F._v(F._s(ee.content))])]):F._e()]}),F._v(" "),F.hasResults?F._e():N("div",[N("emoji",{attrs:{data:F.data,emoji:"sleuth_or_spy",native:F.emojiProps.native,skin:F.emojiProps.skin,set:F.emojiProps.set}}),F._v(" "),N("div",{staticClass:"emoji-mart-no-results-label"},[F._v(F._s(F.i18n.notfound))])],1)],2):F._e()},[],!1,null,null,null).exports,et=g({props:{skin:{type:Number,required:!0}},data:function(){return{opened:!1}},methods:{onClick:function(F){this.opened&&F!=this.skin&&this.$emit("change",F),this.opened=!this.opened}}},function(){var F=this,b=F.$createElement,N=F._self._c||b;return N("div",{class:{"emoji-mart-skin-swatches":!0,"emoji-mart-skin-swatches-opened":F.opened}},F._l(6,function(B){return N("span",{key:B,class:{"emoji-mart-skin-swatch":!0,"emoji-mart-skin-swatch-selected":F.skin==B}},[N("span",{class:"emoji-mart-skin emoji-mart-skin-tone-"+B,on:{click:function(H){return F.onClick(B)}}})])}),0)},[],!1,null,null,null).exports,v=g({props:{data:{type:Object,required:!0},title:{type:String,required:!0},emoji:{type:[String,Object]},idleEmoji:{type:[String,Object],required:!0},showSkinTones:{type:Boolean,default:!0},emojiProps:{type:Object,required:!0},skinProps:{type:Object,required:!0},onSkinChange:{type:Function,required:!0}},computed:{emojiData:function(){return this.emoji?this.emoji:{}},emojiShortNames:function(){return this.emojiData.short_names},emojiEmoticons:function(){return this.emojiData.emoticons}},components:{Emoji:Xe,Skins:et}},function(){var F=this,b=F.$createElement,N=F._self._c||b;return N("div",{staticClass:"emoji-mart-preview"},[F.emoji?[N("div",{staticClass:"emoji-mart-preview-emoji"},[N("emoji",{attrs:{data:F.data,emoji:F.emoji,native:F.emojiProps.native,skin:F.emojiProps.skin,set:F.emojiProps.set}})],1),F._v(" "),N("div",{staticClass:"emoji-mart-preview-data"},[N("div",{staticClass:"emoji-mart-preview-name"},[F._v(F._s(F.emoji.name))]),F._v(" "),N("div",{staticClass:"emoji-mart-preview-shortnames"},F._l(F.emojiShortNames,function(B){return N("span",{key:B,staticClass:"emoji-mart-preview-shortname"},[F._v(":"+F._s(B)+":")])}),0),F._v(" "),N("div",{staticClass:"emoji-mart-preview-emoticons"},F._l(F.emojiEmoticons,function(B){return N("span",{key:B,staticClass:"emoji-mart-preview-emoticon"},[F._v(F._s(B))])}),0)])]:[N("div",{staticClass:"emoji-mart-preview-emoji"},[N("emoji",{attrs:{data:F.data,emoji:F.idleEmoji,native:F.emojiProps.native,skin:F.emojiProps.skin,set:F.emojiProps.set}})],1),F._v(" "),N("div",{staticClass:"emoji-mart-preview-data"},[N("span",{staticClass:"emoji-mart-title-label"},[F._v(F._s(F.title))])]),F._v(" "),F.showSkinTones?N("div",{staticClass:"emoji-mart-preview-skins"},[N("skins",{attrs:{skin:F.skinProps.skin},on:{change:function(B){return F.onSkinChange(B)}}})],1):F._e()]],2)},[],!1,null,null,null).exports,Y=g({props:{data:{type:Object,required:!0},i18n:{type:Object,required:!0},autoFocus:{type:Boolean,default:!1},onSearch:{type:Function,required:!0},onArrowLeft:{type:Function,required:!1},onArrowRight:{type:Function,required:!1},onArrowDown:{type:Function,required:!1},onArrowUp:{type:Function,required:!1},onEnter:{type:Function,required:!1}},data:function(){return{value:""}},computed:{emojiIndex:function(){return this.data}},watch:{value:function(){this.$emit("search",this.value)}},methods:{clear:function(){this.value=""}},mounted:function(){var F=this.$el.querySelector("input");this.autoFocus&&F.focus()}},function(){var F=this,b=F.$createElement,N=F._self._c||b;return N("div",{staticClass:"emoji-mart-search"},[N("input",{directives:[{name:"model",rawName:"v-model",value:F.value,expression:"value"}],attrs:{type:"text",placeholder:F.i18n.search,role:"textbox","aria-autocomplete":"list","aria-owns":"emoji-mart-list","aria-label":"Search for an emoji","aria-describedby":"emoji-mart-search-description"},domProps:{value:F.value},on:{keydown:[function(B){return!B.type.indexOf("key")&&F._k(B.keyCode,"left",37,B.key,["Left","ArrowLeft"])||"button"in B&&B.button!==0?null:(function(H){return F.$emit("arrowLeft",H)}).apply(null,arguments)},function(B){return!B.type.indexOf("key")&&F._k(B.keyCode,"right",39,B.key,["Right","ArrowRight"])||"button"in B&&B.button!==2?null:(function(){return F.$emit("arrowRight")}).apply(null,arguments)},function(B){return!B.type.indexOf("key")&&F._k(B.keyCode,"down",40,B.key,["Down","ArrowDown"])?null:(function(){return F.$emit("arrowDown")}).apply(null,arguments)},function(B){return!B.type.indexOf("key")&&F._k(B.keyCode,"up",38,B.key,["Up","ArrowUp"])?null:(function(H){return F.$emit("arrowUp",H)}).apply(null,arguments)},function(B){return!B.type.indexOf("key")&&F._k(B.keyCode,"enter",13,B.key,"Enter")?null:(function(){return F.$emit("enter")}).apply(null,arguments)}],input:function(B){B.target.composing||(F.value=B.target.value)}}}),F._v(" "),N("span",{staticClass:"hidden",attrs:{id:"emoji-picker-search-description"}},[F._v(`Use the left, right, up and down arrow keys to navigate the emoji search results.`)])])},[],!1,null,null,null),w=Y.exports;function K(F,b){(b==null||b>F.length)&&(b=F.length);for(var N=0,B=new Array(b);N0}),this._categories[0].first=!0,Object.freeze(this._categories),this.activeCategory=this._categories[0],this.searchEmojis=null,this.previewEmoji=null,this.previewEmojiCategoryIdx=0,this.previewEmojiIdx=-1}return Z(F,[{key:"onScroll",value:function(){for(var b=this._vm.$refs.scroll.scrollTop,N=this.filteredCategories[0],B=0,H=this.filteredCategories.length;Bb)break;N=ee}this.activeCategory=N}},{key:"allCategories",get:function(){return this._categories}},{key:"filteredCategories",get:function(){return this.searchEmojis?[{id:"search",name:"Search",emojis:this.searchEmojis}]:this._categories.filter(function(b){return b.emojis.length>0})}},{key:"previewEmojiCategory",get:function(){return this.previewEmojiCategoryIdx>=0?this.filteredCategories[this.previewEmojiCategoryIdx]:null}},{key:"onAnchorClick",value:function(b){var N=this;if(!this.searchEmojis){var B=this.filteredCategories.indexOf(b),H=this._vm.getCategoryComponent(B);this._vm.infiniteScroll?function(){if(H){var ee=H.$el.offsetTop;b.first&&(ee=0),N._vm.$refs.scroll.scrollTop=ee}}():this.activeCategory=this.filteredCategories[B]}}},{key:"onSearch",value:function(b){var N=this._data.search(b,this.maxSearchResults);this.searchEmojis=N,this.previewEmojiCategoryIdx=0,this.previewEmojiIdx=0,this.updatePreviewEmoji()}},{key:"onEmojiEnter",value:function(b){this.previewEmoji=b,this.previewEmojiIdx=-1,this.previewEmojiCategoryIdx=-1}},{key:"onEmojiLeave",value:function(b){this.previewEmoji=null}},{key:"onArrowLeft",value:function(){this.previewEmojiIdx>0?this.previewEmojiIdx-=1:(this.previewEmojiCategoryIdx-=1,this.previewEmojiCategoryIdx<0?this.previewEmojiCategoryIdx=0:this.previewEmojiIdx=this.filteredCategories[this.previewEmojiCategoryIdx].emojis.length-1),this.updatePreviewEmoji()}},{key:"onArrowRight",value:function(){this.previewEmojiIdx=this.filteredCategories.length?this.previewEmojiCategoryIdx=this.filteredCategories.length-1:this.previewEmojiIdx=0),this.updatePreviewEmoji()}},{key:"onArrowDown",value:function(){if(this.previewEmojiIdx==-1)return this.onArrowRight();var b=this.filteredCategories[this.previewEmojiCategoryIdx].emojis.length,N=this._perLine;this.previewEmojiIdx+N>b&&(N=b%this._perLine);for(var B=0;B0?this.filteredCategories[this.previewEmojiCategoryIdx-1].emojis.length%this._perLine:0);for(var N=0;NH+N.scrollTop&&(N.scrollTop+=B.offsetHeight),B&&B.offsetTop"u")return 0;var F=document.createElement("div");F.style.width="100px",F.style.height="100px",F.style.overflow="scroll",F.style.position="absolute",F.style.top="-9999px",document.body.appendChild(F);var b=F.offsetWidth-F.clientWidth;return document.body.removeChild(F),b}()},filteredCategories:function(){return this.view.filteredCategories},mergedI18n:function(){return Object.freeze(A(Be,this.i18n))},idleEmoji:function(){try{return this.data.emoji(this.emoji)}catch(F){return console.error("Default preview emoji `"+this.emoji+"` is not available, check the Picker `emoji` property"),console.error(F),this.data.firstEmoji()}}},methods:{onScroll:function(){this.infiniteScroll&&!this.waitingForPaint&&(this.waitingForPaint=!0,window.requestAnimationFrame(this.onScrollPaint.bind(this)))},onScrollPaint:function(){this.waitingForPaint=!1,this.view.onScroll()},onAnchorClick:function(F){this.view.onAnchorClick(F)},onSearch:function(F){this.view.onSearch(F)},onEmojiEnter:function(F){this.view.onEmojiEnter(F)},onEmojiLeave:function(F){this.view.onEmojiLeave(F)},onArrowLeft:function(F){var b=this.view.previewEmojiIdx;this.view.onArrowLeft(),F&&this.view.previewEmojiIdx!==b&&F.preventDefault()},onArrowRight:function(){this.view.onArrowRight()},onArrowDown:function(){this.view.onArrowDown()},onArrowUp:function(F){this.view.onArrowUp(),F.preventDefault()},onEnter:function(){this.view.previewEmoji&&(this.$emit("select",this.view.previewEmoji),M.add(this.view.previewEmoji))},onEmojiClick:function(F){this.$emit("select",F),M.add(F)},onTextSelect:function(F){F.stopPropagation()},onSkinChange:function(F){this.activeSkin=F,f.update({skin:F}),this.$emit("skin-change",F)},getCategoryComponent:function(F){var b=this.$refs["categories_"+F];return b&&"0"in b?b[0]:b}},components:{Anchors:k,Category:ht,Preview:v,Search:w}},W=g(G,function(){var F=this,b=F.$createElement,N=F._self._c||b;return N("section",{staticClass:"emoji-mart emoji-mart-static",style:F.customStyles},[F.showCategories?N("div",{staticClass:"emoji-mart-bar emoji-mart-bar-anchors"},[N("anchors",{attrs:{data:F.data,i18n:F.mergedI18n,color:F.color,categories:F.view.allCategories,"active-category":F.view.activeCategory},on:{click:F.onAnchorClick}})],1):F._e(),F._v(" "),F._t("searchTemplate",function(){return[F.showSearch?N("search",{ref:"search",attrs:{data:F.data,i18n:F.mergedI18n,"auto-focus":F.autoFocus,"on-search":F.onSearch},on:{search:F.onSearch,arrowLeft:F.onArrowLeft,arrowRight:F.onArrowRight,arrowDown:F.onArrowDown,arrowUp:F.onArrowUp,enter:F.onEnter,select:F.onTextSelect}}):F._e()]},{data:F.data,i18n:F.i18n,autoFocus:F.autoFocus,onSearch:F.onSearch}),F._v(" "),N("div",{ref:"scroll",staticClass:"emoji-mart-scroll",attrs:{role:"tabpanel"},on:{scroll:F.onScroll}},[N("div",{ref:"scrollContent",attrs:{id:"emoji-mart-list",role:"listbox","aria-expanded":"true"}},[F._t("customCategory"),F._v(" "),F._l(F.view.filteredCategories,function(B,H){return N("category",{directives:[{name:"show",rawName:"v-show",value:F.infiniteScroll||B==F.view.activeCategory,expression:"infiniteScroll || category == view.activeCategory"}],key:B.id,ref:"categories_"+H,refInFor:!0,attrs:{data:F.data,i18n:F.mergedI18n,id:B.id,name:B.name,emojis:B.emojis,"emoji-props":F.emojiProps}})})],2)]),F._v(" "),F._t("previewTemplate",function(){return[F.showPreview?N("div",{staticClass:"emoji-mart-bar emoji-mart-bar-preview"},[N("preview",{attrs:{data:F.data,title:F.title,emoji:F.view.previewEmoji,"idle-emoji":F.idleEmoji,"show-skin-tones":F.showSkinTones,"emoji-props":F.emojiProps,"skin-props":F.skinProps,"on-skin-change":F.onSkinChange}})],1):F._e()]},{data:F.data,title:F.title,emoji:F.view.previewEmoji,idleEmoji:F.idleEmoji,showSkinTones:F.showSkinTones,emojiProps:F.emojiProps,skinProps:F.skinProps,onSkinChange:F.onSkinChange})],2)},[],!1,null,null,null),q=W.exports}(),r}()})})(Rg);var M1=Rg.exports;const zM={search:ie("Search emoji"),notfound:ie("No emoji found"),categories:{search:ie("Search results"),recent:ie("Frequently used"),smileys:ie("Smileys & Emotion"),people:ie("People & Body"),nature:ie("Animals & Nature"),foods:ie("Food & Drink"),activity:ie("Activities"),places:ie("Travel & Places"),objects:ie("Objects"),symbols:ie("Symbols"),flags:ie("Flags"),custom:ie("Custom")}};M1.Emoji,M1.Picker,ie("Pick an emoji"),ie;const Uv={name:"NcResource",components:{NcButton:ai},props:{icon:{type:String,required:!0},name:{type:String,required:!0},url:{type:String,required:!0}},data(){return{labelTranslated:ie('Open link to "{resourceName}"',{resourceName:this.name})}},methods:{t:ie}};var qv=function(){var e=this,t=e._self._c;return t("li",{staticClass:"resource"},[t("NcButton",{staticClass:"resource__button",attrs:{"aria-label":e.labelTranslated,type:"tertiary",href:e.url},scopedSlots:e._u([{key:"icon",fn:function(){return[t("div",{staticClass:"resource__icon"},[t("img",{attrs:{src:e.icon}})])]},proxy:!0}])},[e._v(" "+e._s(e.name)+" ")])],1)},Hv=[],zv=ce(Uv,qv,Hv,!1,null,"1a960bef",null,null);const VM=zv.exports;ie("Related resources"),ie("Anything shared with the same group of people will show up here"),ie;const Vv={name:"NcMentionBubble",props:{id:{type:String,required:!0},title:{type:String,required:!0},icon:{type:String,required:!0},iconUrl:{type:[String,null],default:null},source:{type:String,required:!0},primary:{type:Boolean,default:!1}},computed:{avatarUrl(){return this.iconUrl?this.iconUrl:this.id&&this.source==="users"?this.getAvatarUrl(this.id,44):null},mentionText(){return!this.id.includes(" ")&&!this.id.includes("/")?`@${this.id}`:`@"${this.id}"`}},methods:{getAvatarUrl(e,t){return gr("/avatar/{user}/{size}",{user:e,size:t})}}};var $v=function(){var e=this,t=e._self._c;return t("span",{staticClass:"mention-bubble",class:{"mention-bubble--primary":e.primary},attrs:{contenteditable:"false"}},[t("span",{staticClass:"mention-bubble__wrapper"},[t("span",{staticClass:"mention-bubble__content"},[t("span",{staticClass:"mention-bubble__icon",class:[e.icon,`mention-bubble__icon--${e.avatarUrl?"with-avatar":""}`],style:e.avatarUrl?{backgroundImage:`url(${e.avatarUrl})`}:null}),t("span",{staticClass:"mention-bubble__title",attrs:{role:"heading",title:e.title}})]),t("span",{staticClass:"mention-bubble__select",attrs:{role:"none"}},[e._v(e._s(e.mentionText))])])])},Wv=[],Qv=ce(Vv,$v,Wv,!1,null,"357e6d0e",null,null);const $M=Qv.exports,Ng="(?:^|\\s)",wg="(?:[^a-z]|$)",WM=new RegExp(`${Ng}(@[a-zA-Z0-9_.@\\-']+)(${wg})`,"gi"),QM=new RegExp(`${Ng}(@"[a-zA-Z0-9 _.@\\-']+")(${wg})`,"gi");window._vue_richtext_widgets||(window._vue_richtext_widgets={});const Jv=e=>!!window._vue_richtext_widgets[e],Kv=(e,t,a=i=>{})=>{if(window._vue_richtext_widgets[e]){console.error("Widget for id "+e+" already registered");return}window._vue_richtext_widgets[e]={id:e,callback:t,onDestroy:a}},Xv=(e,{richObjectType:t,richObject:a,accessible:i})=>{if(t!=="open-graph"){if(!window._vue_richtext_widgets[t]){console.error("Widget for rich object type "+t+" not registered");return}window._vue_richtext_widgets[t].callback(e,{richObjectType:t,richObject:a,accessible:i})}},eR=(e,t)=>{e!=="open-graph"&&window._vue_richtext_widgets[e]&&window._vue_richtext_widgets[e].onDestroy(t)};window._registerWidget=Kv;const tR={name:"NcReferenceWidget",props:{reference:{type:Object,required:!0}},data(){return{compact:3}},computed:{hasCustomWidget(){return Jv(this.reference.richObjectType)},noAccess(){return this.reference&&!this.reference.accessible},descriptionStyle(){if(this.compact===0)return{display:"none"};const e=this.compact<4?this.compact:3;return{lineClamp:e,webkitLineClamp:e}},compactLink(){const e=this.reference.openGraphObject.link;return e?e.startsWith("https://")?e.substring(8):e.startsWith("http://")?e.substring(7):e:""}},mounted(){this.renderWidget(),this.observer=new ResizeObserver(e=>{e[0].contentRect.width<450?this.compact=0:e[0].contentRect.width<550?this.compact=1:e[0].contentRect.width<650?this.compact=2:this.compact=3}),this.observer.observe(this.$el)},beforeDestroy(){this.observer.disconnect(),eR(this.reference.richObjectType,this.$el)},methods:{renderWidget(){var e;this.$refs.customWidget&&(this.$refs.customWidget.innerHTML=""),((e=this==null?void 0:this.reference)==null?void 0:e.richObjectType)!=="open-graph"&&this.$nextTick(()=>{Xv(this.$refs.customWidget,this.reference)})}}};var aR=function(){var e=this,t=e._self._c;return t("div",[e.reference&&e.hasCustomWidget?t("div",{staticClass:"widget-custom"},[t("div",{ref:"customWidget"})]):!e.noAccess&&e.reference&&e.reference.openGraphObject&&!e.hasCustomWidget?t("a",{staticClass:"widget-default",attrs:{href:e.reference.openGraphObject.link,rel:"noopener noreferrer",target:"_blank"}},[e.reference.openGraphObject.thumb?t("img",{staticClass:"widget-default--image",attrs:{src:e.reference.openGraphObject.thumb}}):e._e(),t("div",{staticClass:"widget-default--details"},[t("p",{staticClass:"widget-default--name"},[e._v(e._s(e.reference.openGraphObject.name))]),t("p",{staticClass:"widget-default--description",style:e.descriptionStyle},[e._v(e._s(e.reference.openGraphObject.description))]),t("p",{staticClass:"widget-default--link"},[e._v(e._s(e.compactLink))])])]):e._e()])},iR=[],nR=ce(tR,aR,iR,!1,null,"b1c5a80f",null,null);const Og=nR.exports;window._vue_richtext_custom_picker_elements||(window._vue_richtext_custom_picker_elements={});const f0=e=>!!window._vue_richtext_custom_picker_elements[e],rR=e=>{var t;const a=(t=window._vue_richtext_custom_picker_elements[e])==null?void 0:t.size;return["small","normal","large","full"].includes(a)?a:null},oR=(e,t,a=n=>{},i="large")=>{if(window._vue_richtext_custom_picker_elements[e]){console.error("Custom reference picker element for id "+e+" already registered");return}window._vue_richtext_custom_picker_elements[e]={id:e,callback:t,onDestroy:a,size:i}},sR=(e,{providerId:t,accessible:a})=>{if(!window._vue_richtext_custom_picker_elements[t]){console.error("Custom reference picker element for reference provider ID "+t+" not registered");return}return window._vue_richtext_custom_picker_elements[t].callback(e,{providerId:t,accessible:a})},lR=(e,t,a)=>{window._vue_richtext_custom_picker_elements[e]&&window._vue_richtext_custom_picker_elements[e].onDestroy(t,a)};window._registerCustomPickerElement=oR;const uR={name:"NcCustomPickerElement",props:{provider:{type:Object,required:!0}},emits:["cancel","submit"],data(){return{isRegistered:f0(this.provider.id),renderResult:null}},mounted(){this.isRegistered&&this.renderElement()},beforeDestroy(){this.isRegistered&&lR(this.provider.id,this.$el,this.renderResult)},methods:{renderElement(){this.$refs.domElement&&(this.$refs.domElement.innerHTML="");const e=sR(this.$refs.domElement,{providerId:this.provider.id,accessible:!1});Promise.resolve(e).then(t=>{var a,i;this.renderResult=t,(a=this.renderResult.object)!=null&&a._isVue&&(i=this.renderResult.object)!=null&&i.$on&&(this.renderResult.object.$on("submit",this.onSubmit),this.renderResult.object.$on("cancel",this.onCancel)),this.renderResult.element.addEventListener("submit",n=>{this.onSubmit(n.detail)}),this.renderResult.element.addEventListener("cancel",this.onCancel)})},onSubmit(e){this.$emit("submit",e)},onCancel(){this.$emit("cancel")}}};var dR=function(){var e=this,t=e._self._c;return t("div",{ref:"domElement"})},cR=[],hR=ce(uR,dR,cR,!1,null,"cf695ff9",null,null);const fR=hR.exports,gR="any-link",_R={id:gR,title:ie("Any link"),icon_url:W_("core","filetypes/link.svg")};window._vue_richtext_reference_providers||(window._vue_richtext_reference_providers=Ls("core","reference-provider-list",[])),window._vue_richtext_reference_provider_timestamps||(window._vue_richtext_reference_provider_timestamps=Ls("core","reference-provider-timestamps",{}));function FR(){return window._vue_richtext_reference_providers.filter(e=>{const t=!!e.search_providers_ids&&e.search_providers_ids.length>0||f0(e.id);return t||console.debug("[smart picker]",e.id,"reference provider is discoverable but does not have any related search provider or custom picker component registered"),t})}function mR(e){const t=window._vue_richtext_reference_provider_timestamps;return e.sort((a,i)=>a.order===i.order?0:a.order>i.order?1:-1).sort((a,i)=>{const n=t[a.id],r=t[i.id];return n===r?0:r===void 0?-1:n===void 0?1:n>r?-1:1})}function pR(e,t=null){const a=FR(),i=e.replace(/[/\-\\^$*+?.()|[\]{}]/g,"\\$&"),n=new RegExp(i,"i"),r=mR(a).filter(s=>s.title.match(n)),o=t?r.slice(0,t):r;return(e===""||o.length===0)&&o.push(_R),o}function TR(e){const t=Math.floor(Date.now()/1e3),a={timestamp:t},i=Va("references/provider/{providerId}",{providerId:e});$a.put(i,a).then(n=>{window._vue_richtext_reference_provider_timestamps[e]=t})}let Y1=0;function xg(e,t){return function(){const a=this,i=arguments;clearTimeout(Y1),Y1=setTimeout(function(){e.apply(a,i)},t||0)}}function Mu(e){try{return!!new URL(e)}catch{return!1}}const DR={name:"LinkVariantIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var ER=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon link-variant-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M10.59,13.41C11,13.8 11,14.44 10.59,14.83C10.2,15.22 9.56,15.22 9.17,14.83C7.22,12.88 7.22,9.71 9.17,7.76V7.76L12.71,4.22C14.66,2.27 17.83,2.27 19.78,4.22C21.73,6.17 21.73,9.34 19.78,11.29L18.29,12.78C18.3,11.96 18.17,11.14 17.89,10.36L18.36,9.88C19.54,8.71 19.54,6.81 18.36,5.64C17.19,4.46 15.29,4.46 14.12,5.64L10.59,9.17C9.41,10.34 9.41,12.24 10.59,13.41M13.41,9.17C13.8,8.78 14.44,8.78 14.83,9.17C16.78,11.12 16.78,14.29 14.83,16.24V16.24L11.29,19.78C9.34,21.73 6.17,21.73 4.22,19.78C2.27,17.83 2.27,14.66 4.22,12.71L5.71,11.22C5.7,12.04 5.83,12.86 6.11,13.65L5.64,14.12C4.46,15.29 4.46,17.19 5.64,18.36C6.81,19.54 8.71,19.54 9.88,18.36L13.41,14.83C14.59,13.66 14.59,11.76 13.41,10.59C13,10.2 13,9.56 13.41,9.17Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},bR=[],yR=ce(DR,ER,bR,!1,null,null,null,null);const Yu=yR.exports,AR={name:"NcProviderList",components:{NcSelect:Bo,NcHighlight:wo,NcEmptyContent:du,LinkVariantIcon:Yu},emits:["select-provider","submit"],data(){return{selectedProvider:null,query:"",multiselectPlaceholder:ie("Select provider"),providerIconAlt:ie("Provider icon")}},computed:{options(){const e=[];return this.query!==""&&Mu(this.query)&&e.push({id:this.query,title:this.query,isLink:!0}),e.push(...pR(this.query)),e}},methods:{focus(){setTimeout(()=>{var e,t,a;(a=(t=(e=this.$refs["provider-select"])==null?void 0:e.$el)==null?void 0:t.querySelector("#provider-select-input"))==null||a.focus()},300)},onProviderSelected(e){e!==null&&(e.isLink?this.$emit("submit",e.title):this.$emit("select-provider",e),this.selectedProvider=null)},onSearch(e,t){this.query=e}}};var SR=function(){var e=this,t=e._self._c;return t("div",{staticClass:"provider-list"},[t("NcSelect",{ref:"provider-select",staticClass:"provider-list--select",attrs:{"input-id":"provider-select-input",label:"title",placeholder:e.multiselectPlaceholder,options:e.options,"append-to-body":!1,"clear-search-on-select":!0,"clear-search-on-blur":()=>!1,filterable:!1},on:{search:e.onSearch,input:e.onProviderSelected},scopedSlots:e._u([{key:"option",fn:function(a){return[a.isLink?t("div",{staticClass:"provider"},[t("LinkVariantIcon",{staticClass:"link-icon",attrs:{size:20}}),t("span",[e._v(e._s(a.title))])],1):t("div",{staticClass:"provider"},[t("img",{staticClass:"provider-icon",attrs:{src:a.icon_url,alt:e.providerIconAlt}}),t("NcHighlight",{staticClass:"option-text",attrs:{search:e.query,text:a.title}})],1)]}}]),model:{value:e.selectedProvider,callback:function(a){e.selectedProvider=a},expression:"selectedProvider"}}),t("NcEmptyContent",{staticClass:"provider-list--empty-content",scopedSlots:e._u([{key:"icon",fn:function(){return[t("LinkVariantIcon")]},proxy:!0}])})],1)},kR=[],vR=ce(AR,SR,kR,!1,null,"9d850ea5",null,null);const RR=vR.exports,NR={name:"NcRawLinkInput",components:{LinkVariantIcon:Yu,NcEmptyContent:du,NcLoadingIcon:Ll,NcReferenceWidget:Og,NcTextField:Uk},props:{provider:{type:Object,required:!0}},emits:["submit"],data(){return{inputValue:"",loading:!1,reference:null,abortController:null,inputPlaceholder:ie("Enter link")}},computed:{isLinkValid(){return Mu(this.inputValue)}},methods:{focus(){var e;(e=this.$refs["url-input"].$el.getElementsByTagName("input")[0])==null||e.focus()},onSubmit(e){const t=e.target.value;this.isLinkValid&&this.$emit("submit",t)},onClear(){this.inputValue="",this.reference=null},onInput(){this.reference=null,this.abortController&&this.abortController.abort(),this.isLinkValid&&xg(()=>{this.updateReference()},500)()},updateReference(){this.loading=!0,this.abortController=new AbortController,$a.get(Va("references/resolve",2)+"?reference="+encodeURIComponent(this.inputValue),{signal:this.abortController.signal}).then(e=>{this.reference=e.data.ocs.data.references[this.inputValue]}).catch(e=>{console.error(e)}).then(()=>{this.loading=!1})}}};var wR=function(){var e=this,t=e._self._c;return t("div",{staticClass:"raw-link"},[t("div",{staticClass:"input-wrapper"},[t("NcTextField",{ref:"url-input",attrs:{value:e.inputValue,"show-trailing-button":e.inputValue!=="",label:e.inputPlaceholder},on:{"update:value":[function(a){e.inputValue=a},e.onInput],"trailing-button-click":e.onClear},nativeOn:{keyup:function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"enter",13,a.key,"Enter")?null:e.onSubmit.apply(null,arguments)}}},[e.loading?t("NcLoadingIcon",{attrs:{size:16}}):t("LinkVariantIcon",{attrs:{size:16}})],1)],1),e.reference!==null?t("NcReferenceWidget",{staticClass:"reference-widget",attrs:{reference:e.reference}}):t("NcEmptyContent",{staticClass:"raw-link--empty-content",scopedSlots:e._u([{key:"icon",fn:function(){return[e.provider.icon_url?t("img",{staticClass:"provider-icon",attrs:{src:e.provider.icon_url}}):t("LinkVariantIcon")]},proxy:!0}])})],1)},OR=[],xR=ce(NR,wR,OR,!1,null,"d0ba247a",null,null);const BR=xR.exports,CR={name:"NcSearchResult",components:{NcHighlight:wo},props:{entry:{type:Object,required:!0},query:{type:String,required:!0}}};var MR=function(){var e=this,t=e._self._c;return t("div",{staticClass:"result"},[e.entry.icon?t("div",{staticClass:"result--icon-class",class:{[e.entry.icon]:!0,rounded:e.entry.rounded}}):t("img",{staticClass:"result--image",class:{rounded:e.entry.rounded},attrs:{src:e.entry.thumbnailUrl}}),t("div",{staticClass:"result--content"},[t("span",{staticClass:"result--content--name"},[t("NcHighlight",{attrs:{search:e.query,text:e.entry.title}})],1),t("span",{staticClass:"result--content--subline"},[t("NcHighlight",{attrs:{search:e.query,text:e.entry.subline}})],1)])])},YR=[],LR=ce(CR,MR,YR,!1,null,"7a394a58",null,null);const ZR=LR.exports,L1=5,IR={name:"NcSearch",components:{LinkVariantIcon:Yu,DotsHorizontalIcon:Tu,NcEmptyContent:du,NcSelect:Bo,NcSearchResult:ZR},props:{provider:{type:Object,required:!0},showEmptyContent:{type:Boolean,default:!0},searchPlaceholder:{type:String,default:null}},emits:["submit"],data(){return{searchQuery:"",selectedResult:null,resultsBySearchProvider:{},searching:!1,searchingMoreOf:null,abortController:null,noOptionsText:ie("Start typing to search"),providerIconAlt:ie("Provider icon")}},computed:{mySearchPlaceholder(){return this.searchPlaceholder||ie("Search")},searchProviderIds(){return this.provider.search_providers_ids},options(){if(this.searchQuery==="")return[];const e=[];return Mu(this.searchQuery)&&e.push(this.rawLinkEntry),e.push(...this.formattedSearchResults),e},rawLinkEntry(){return{id:"rawLinkEntry",resourceUrl:this.searchQuery,isRawLink:!0}},formattedSearchResults(){const e=[];return this.searchProviderIds.forEach(t=>{if(this.resultsBySearchProvider[t].entries.length>0){(this.searchProviderIds.length>1||this.resultsBySearchProvider[t].entries.length>1)&&e.push({id:"groupTitle-"+t,name:this.resultsBySearchProvider[t].name,isCustomGroupTitle:!0,providerId:t});const a=this.resultsBySearchProvider[t].entries.map((i,n)=>({id:"provider-"+t+"-entry-"+n,...i}));e.push(...a),this.resultsBySearchProvider[t].isPaginated&&e.push({id:"moreOf-"+t,name:this.resultsBySearchProvider[t].name,isMore:!0,providerId:t,isLoading:this.searchingMoreOf===t})}}),e}},mounted(){this.resetResults()},beforeDestroy(){this.cancelSearchRequests()},methods:{t:ie,resetResults(){const e={};this.searchProviderIds.forEach(t=>{e[t]={entries:[]}}),this.resultsBySearchProvider=e},focus(){setTimeout(()=>{var e,t,a;(a=(t=(e=this.$refs["search-select"])==null?void 0:e.$el)==null?void 0:t.querySelector("#search-select-input"))==null||a.focus()},300)},cancelSearchRequests(){this.abortController&&this.abortController.abort()},onSearchInput(e,t){this.searchQuery=e,xg(()=>{this.updateSearch()},500)()},onSelectResultSelected(e){e!==null&&(e.resourceUrl?(this.cancelSearchRequests(),this.$emit("submit",e.resourceUrl)):e.isMore&&this.searchMoreOf(e.providerId).then(()=>{this.selectedResult=null}))},searchMoreOf(e){return this.searchingMoreOf=e,this.cancelSearchRequests(),this.searchProviders(e)},updateSearch(){if(this.cancelSearchRequests(),this.resetResults(),this.searchQuery===""){this.searching=!1;return}return this.searchProviders()},searchProviders(e=null){var t,a;this.abortController=new AbortController,this.searching=!0;const i=e===null?[...this.searchProviderIds].map(n=>this.searchOneProvider(n)):[this.searchOneProvider(e,(a=(t=this.resultsBySearchProvider[e])==null?void 0:t.cursor)!=null?a:null)];return Promise.allSettled(i).then(n=>{n.find(r=>r.status==="rejected"&&(r.reason.name==="CanceledError"||r.reason.code==="ERR_CANCELED"))||(this.searching=!1,this.searchingMoreOf=null)})},searchOneProvider(e,t=null){const a=t===null?Va("search/providers/{providerId}/search?term={term}&limit={limit}",{providerId:e,term:this.searchQuery,limit:L1}):Va("search/providers/{providerId}/search?term={term}&limit={limit}&cursor={cursor}",{providerId:e,term:this.searchQuery,limit:L1,cursor:t});return $a.get(a,{signal:this.abortController.signal}).then(i=>{const n=i.data.ocs.data;this.resultsBySearchProvider[e].name=n.name,this.resultsBySearchProvider[e].cursor=n.cursor,this.resultsBySearchProvider[e].isPaginated=n.isPaginated,this.resultsBySearchProvider[e].entries.push(...n.entries)})}}};var jR=function(){var e=this,t=e._self._c;return t("div",{staticClass:"smart-picker-search",class:{"with-empty-content":e.showEmptyContent}},[t("NcSelect",{ref:"search-select",staticClass:"smart-picker-search--select",attrs:{"input-id":"search-select-input",label:"name",placeholder:e.mySearchPlaceholder,options:e.options,"append-to-body":!1,"close-on-select":!1,"clear-search-on-select":!1,"clear-search-on-blur":()=>!1,"reset-focus-on-options-change":!1,filterable:!1,autoscroll:!0,"reset-on-options-change":!1,loading:e.searching},on:{search:e.onSearchInput,input:e.onSelectResultSelected},scopedSlots:e._u([{key:"option",fn:function(a){return[a.isRawLink?t("div",{staticClass:"custom-option"},[t("LinkVariantIcon",{staticClass:"option-simple-icon",attrs:{size:20}}),t("span",{staticClass:"option-text"},[e._v(" "+e._s(e.t("Raw link {options}",{options:a.resourceUrl}))+" ")])],1):a.resourceUrl?t("NcSearchResult",{staticClass:"search-result",attrs:{entry:a,query:e.searchQuery}}):a.isCustomGroupTitle?t("span",{staticClass:"custom-option group-name"},[e.provider.icon_url?t("img",{staticClass:"provider-icon group-name-icon",attrs:{src:e.provider.icon_url}}):e._e(),t("span",{staticClass:"option-text"},[t("strong",[e._v(e._s(a.name))])])]):a.isMore?t("span",{class:{"custom-option":!0}},[a.isLoading?t("span",{staticClass:"option-simple-icon icon-loading-small"}):t("DotsHorizontalIcon",{staticClass:"option-simple-icon",attrs:{size:20}}),t("span",{staticClass:"option-text"},[e._v(" "+e._s(e.t('Load more "{options}"',{options:a.name}))+" ")])],1):e._e()]}},{key:"no-options",fn:function(){return[e._v(" "+e._s(e.noOptionsText)+" ")]},proxy:!0}]),model:{value:e.selectedResult,callback:function(a){e.selectedResult=a},expression:"selectedResult"}}),e.showEmptyContent?t("NcEmptyContent",{staticClass:"smart-picker-search--empty-content",scopedSlots:e._u([{key:"icon",fn:function(){return[e.provider.icon_url?t("img",{staticClass:"provider-icon",attrs:{alt:e.providerIconAlt,src:e.provider.icon_url}}):t("LinkVariantIcon")]},proxy:!0}],null,!1,2922132592)}):e._e()],1)},PR=[],GR=ce(IR,jR,PR,!1,null,"97d196f0",null,null);const UR=GR.exports,vn={providerList:1,standardLinkInput:2,searchInput:3,customElement:4},qR={name:"NcReferencePicker",components:{NcCustomPickerElement:fR,NcProviderList:RR,NcRawLinkInput:BR,NcSearch:UR},props:{initialProvider:{type:Object,default:()=>null},width:{type:Number,default:null},focusOnCreate:{type:Boolean,default:!0}},emits:["cancel","cancel-raw-link","cancel-search","provider-selected","submit"],data(){return{MODES:vn,selectedProvider:this.initialProvider}},computed:{mode(){return this.selectedProvider===null?vn.providerList:f0(this.selectedProvider.id)?vn.customElement:this.selectedProvider.search_providers_ids?vn.searchInput:vn.standardLinkInput},pickerWrapperStyle(){return{width:this.width?this.width+"px":void 0}}},mounted(){this.focusOnCreate&&(this.initialProvider?setTimeout(()=>{var e;(e=this.$refs["url-input"])==null||e.focus()},300):this.$nextTick(()=>{var e;(e=this.$refs["provider-list"])==null||e.focus()}))},methods:{onEscapePressed(){this.selectedProvider!==null?this.deselectProvider():this.cancelProviderSelection()},onProviderSelected(e){this.selectedProvider=e,this.$emit("provider-selected",e),this.$nextTick(()=>{var t;(t=this.$refs["url-input"])==null||t.focus()})},cancelCustomElement(){this.deselectProvider()},cancelSearch(){var e;this.$emit("cancel-search",(e=this.selectedProvider)==null?void 0:e.title),this.deselectProvider()},cancelRawLinkInput(){var e;this.$emit("cancel-raw-link",(e=this.selectedProvider)==null?void 0:e.title),this.deselectProvider()},cancelProviderSelection(){this.$emit("cancel")},submitLink(e){this.selectedProvider!==null&&TR(this.selectedProvider.id),this.$emit("submit",e),this.deselectProvider()},deselectProvider(){this.selectedProvider=null,this.$emit("provider-selected",null),setTimeout(()=>{var e;(e=this.$refs["provider-list"])==null||e.focus()},300)}}};var HR=function(){var e=this,t=e._self._c;return t("div",{staticClass:"reference-picker",style:e.pickerWrapperStyle,attrs:{tabindex:"-1"},on:{keydown:function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"esc",27,a.key,["Esc","Escape"])?null:(a.stopPropagation(),a.preventDefault(),e.onEscapePressed.apply(null,arguments))}}},[e.mode===e.MODES.providerList?t("NcProviderList",{ref:"provider-list",on:{"select-provider":e.onProviderSelected,submit:e.submitLink,cancel:e.cancelProviderSelection}}):e.mode===e.MODES.standardLinkInput?t("NcRawLinkInput",{ref:"url-input",attrs:{provider:e.selectedProvider},on:{submit:e.submitLink,cancel:e.cancelRawLinkInput}}):e.mode===e.MODES.searchInput?t("NcSearch",{ref:"url-input",attrs:{provider:e.selectedProvider},on:{cancel:e.cancelSearch,submit:e.submitLink}}):e.mode===e.MODES.customElement?t("div",{staticClass:"custom-element-wrapper"},[t("NcCustomPickerElement",{attrs:{provider:e.selectedProvider},on:{submit:e.submitLink,cancel:e.cancelCustomElement}})],1):e._e()],1)},zR=[],VR=ce(qR,HR,zR,!1,null,"aa77d0d3",null,null);const $R=VR.exports,WR={name:"NcReferencePickerModal",components:{NcReferencePicker:$R,NcModal:Cu,NcButton:ai,ArrowLeftIcon:Lv,CloseIcon:No},props:{initialProvider:{type:Object,default:()=>null},focusOnCreate:{type:Boolean,default:!0},isInsideViewer:{type:Boolean,default:!1}},emits:["cancel","submit"],data(){return{show:!0,selectedProvider:this.initialProvider,backButtonTitle:ie("Back to provider selection"),closeButtonTitle:ie("Close"),closeButtonLabel:ie("Close Smart Picker")}},computed:{isProviderSelected(){return this.selectedProvider!==null},showBackButton(){return this.initialProvider===null&&this.isProviderSelected},modalSize(){var e;return this.isProviderSelected&&f0(this.selectedProvider.id)?(e=rR(this.selectedProvider.id))!=null?e:"large":"normal"},showModalName(){return!this.isProviderSelected||!f0(this.selectedProvider.id)},modalName(){return this.isProviderSelected?this.selectedProvider.title:ie("Smart Picker")}},mounted(){if(this.isInsideViewer){const e=this.$refs.modal_content;_r("viewer:trapElements:changed",e)}},methods:{onCancel(){this.show=!1,this.$emit("cancel")},onSubmit(e){this.show=!1,this.$emit("submit",e)},onProviderSelect(e){this.selectedProvider=e,e===null&&this.initialProvider!==null&&this.onCancel()},onBackClicked(){this.$refs.referencePicker.deselectProvider()}}};var QR=function(){var e=this,t=e._self._c;return e.show?t("NcModal",{staticClass:"reference-picker-modal",attrs:{size:e.modalSize,"can-close":!1},on:{close:e.onCancel}},[t("div",{ref:"modal_content",staticClass:"reference-picker-modal--content"},[e.showBackButton?t("NcButton",{staticClass:"back-button",attrs:{"aria-label":e.backButtonTitle,title:e.backButtonTitle},on:{click:e.onBackClicked},scopedSlots:e._u([{key:"icon",fn:function(){return[t("ArrowLeftIcon")]},proxy:!0}],null,!1,3001860362)}):e._e(),t("NcButton",{staticClass:"close-button",attrs:{"aria-label":e.closeButtonLabel,title:e.closeButtonTitle,type:"tertiary"},on:{click:e.onCancel},scopedSlots:e._u([{key:"icon",fn:function(){return[t("CloseIcon")]},proxy:!0}],null,!1,2491825086)}),e.showModalName?t("h2",[e._v(" "+e._s(e.modalName)+" ")]):e._e(),t("NcReferencePicker",{ref:"referencePicker",attrs:{"initial-provider":e.initialProvider,"focus-on-create":e.focusOnCreate},on:{"provider-selected":e.onProviderSelect,submit:e.onSubmit,cancel:e.onCancel}})],1)]):e._e()},JR=[],KR=ce(WR,QR,JR,!1,null,"3f1a4ac7",null,null);const JM=KR.exports;const Lu=function(e){if(e==null)return a9;if(typeof e=="function")return Zo(e);if(typeof e=="object")return Array.isArray(e)?XR(e):e9(e);if(typeof e=="string")return t9(e);throw new Error("Expected function, string, or object as test")};function XR(e){const t=[];let a=-1;for(;++a":""))+")"})}return f;function f(){let h=Bg,_,m,p;if((!t||r(l,d,u[u.length-1]||void 0))&&(h=r9(a(l,u)),h[0]===Z1))return h;if("children"in l&&l.children){const T=l;if(T.children&&h[0]!==Cg)for(m=(i?T.children.length:-1)+o,p=u.concat(T);m>-1&&m"u"||lr.call(e,i)},q1=function(e,t){j1&&t.name==="__proto__"?j1(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},H1=function(e,t){if(t==="__proto__")if(lr.call(e,t)){if(P1)return P1(e,t).value}else return;return e[t]},o9=function e(){var t,a,i,n,r,o,s=arguments[0],l=1,d=arguments.length,u=!1;for(typeof s=="boolean"&&(u=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});lo.length;let l;s&&o.push(n);try{l=e.apply(this,o)}catch(d){const u=d;if(s&&a)throw u;return n(u)}s||(l instanceof Promise?l.then(r,n):l instanceof Error?n(l):r(l))}function n(o,...s){a||(a=!0,t(o,...s))}function r(o){n(null,o)}}function e0(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?z1(e.position):"start"in e||"end"in e?z1(e):"line"in e||"column"in e?El(e):""}function El(e){return V1(e&&e.line)+":"+V1(e&&e.column)}function z1(e){return El(e&&e.start)+"-"+El(e&&e.end)}function V1(e){return e&&typeof e=="number"?e:1}class _t extends Error{constructor(t,a,i){super(),typeof a=="string"&&(i=a,a=void 0);let n="",r={},o=!1;if(a&&("line"in a&&"column"in a?r={place:a}:"start"in a&&"end"in a?r={place:a}:"type"in a?r={ancestors:[a],place:a.position}:r={...a}),typeof t=="string"?n=t:!r.cause&&t&&(o=!0,n=t.message,r.cause=t),!r.ruleId&&!r.source&&typeof i=="string"){const l=i.indexOf(":");l===-1?r.ruleId=i:(r.source=i.slice(0,l),r.ruleId=i.slice(l+1))}if(!r.place&&r.ancestors&&r.ancestors){const l=r.ancestors[r.ancestors.length-1];l&&(r.place=l.position)}const s=r.place&&"start"in r.place?r.place.start:r.place;this.ancestors=r.ancestors||void 0,this.cause=r.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=n,this.line=s?s.line:void 0,this.name=e0(r.place)||"1:1",this.place=r.place||void 0,this.reason=this.message,this.ruleId=r.ruleId||void 0,this.source=r.source||void 0,this.stack=o&&r.cause&&typeof r.cause.stack=="string"?r.cause.stack:"",this.actual,this.expected,this.note,this.url}}_t.prototype.file="",_t.prototype.name="",_t.prototype.reason="",_t.prototype.message="",_t.prototype.stack="",_t.prototype.column=void 0,_t.prototype.line=void 0,_t.prototype.ancestors=void 0,_t.prototype.cause=void 0,_t.prototype.fatal=void 0,_t.prototype.place=void 0,_t.prototype.ruleId=void 0,_t.prototype.source=void 0;const Jt={basename:u9,dirname:d9,extname:c9,join:h9,sep:"/"};function u9(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');k0(e);let a=0,i=-1,n=e.length,r;if(t===void 0||t.length===0||t.length>e.length){for(;n--;)if(e.codePointAt(n)===47){if(r){a=n+1;break}}else i<0&&(r=!0,i=n+1);return i<0?"":e.slice(a,i)}if(t===e)return"";let o=-1,s=t.length-1;for(;n--;)if(e.codePointAt(n)===47){if(r){a=n+1;break}}else o<0&&(r=!0,o=n+1),s>-1&&(e.codePointAt(n)===t.codePointAt(s--)?s<0&&(i=n):(s=-1,i=o));return a===i?i=o:i<0&&(i=e.length),e.slice(a,i)}function d9(e){if(k0(e),e.length===0)return".";let t=-1,a=e.length,i;for(;--a;)if(e.codePointAt(a)===47){if(i){t=a;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function c9(e){k0(e);let t=e.length,a=-1,i=0,n=-1,r=0,o;for(;t--;){const s=e.codePointAt(t);if(s===47){if(o){i=t+1;break}continue}a<0&&(o=!0,a=t+1),s===46?n<0?n=t:r!==1&&(r=1):n>-1&&(r=-1)}return n<0||a<0||r===0||r===1&&n===a-1&&n===i+1?"":e.slice(n,a)}function h9(...e){let t=-1,a;for(;++t0&&e.codePointAt(e.length-1)===47&&(a+="/"),t?"/"+a:a}function g9(e,t){let a="",i=0,n=-1,r=0,o=-1,s,l;for(;++o<=e.length;){if(o2){if(l=a.lastIndexOf("/"),l!==a.length-1){l<0?(a="",i=0):(a=a.slice(0,l),i=a.length-1-a.lastIndexOf("/")),n=o,r=0;continue}}else if(a.length>0){a="",i=0,n=o,r=0;continue}}t&&(a=a.length>0?a+"/..":"..",i=2)}else a.length>0?a+="/"+e.slice(n+1,o):a=e.slice(n+1,o),i=o-n-1;n=o,r=0}else s===46&&r>-1?r++:r=-1}return a}function k0(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const _9={cwd:F9};function F9(){return"/"}function bl(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function m9(e){if(typeof e=="string")e=new URL(e);else if(!bl(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return p9(e)}function p9(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let a=-1;for(;++a0){let[h,..._]=u;const m=i[f][1];Dl(m)&&Dl(h)&&(h=ps(!0,m,h)),i[f]=[d,h,..._]}}}}const y9=new Zu().freeze();function bs(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function ys(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function As(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function W1(e){if(!Dl(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Q1(e,t,a){if(!a)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function z0(e){return A9(e)?e:new T9(e)}function A9(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function S9(e){return typeof e=="string"||k9(e)}function k9(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const v9={};function R9(e,t){const a=t||v9,i=typeof a.includeImageAlt=="boolean"?a.includeImageAlt:!0,n=typeof a.includeHtml=="boolean"?a.includeHtml:!0;return Lg(e,i,n)}function Lg(e,t,a){if(N9(e)){if("value"in e)return e.type==="html"&&!a?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return J1(e.children,t,a)}return Array.isArray(e)?J1(e,t,a):""}function J1(e,t,a){const i=[];let n=-1;for(;++nn?0:n+t:t=t>n?n:t,a=a>0?a:0,i.length<1e4)o=Array.from(i),o.unshift(t,a),e.splice(...o);else for(a&&e.splice(t,a);r0?(sa(e,e.length,0,t),e):t}const X1={}.hasOwnProperty;function w9(e){const t={};let a=-1;for(;++a13&&a<32||a>126&&a<160||a>55295&&a<57344||a>64975&&a<65008||(a&65535)===65535||(a&65535)===65534||a>1114111?"�":String.fromCodePoint(a)}function rn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const B9=ri(/\p{P}/u),aa=ri(/[A-Za-z]/),vt=ri(/[\dA-Za-z]/),C9=ri(/[#-'*+\--9=?A-Z^-~]/);function yl(e){return e!==null&&(e<32||e===127)}const Al=ri(/\d/),M9=ri(/[\dA-Fa-f]/),Ig=ri(/[!-/:-@[-`{-~]/);function pe(e){return e!==null&&e<-2}function Et(e){return e!==null&&(e<0||e===32)}function Me(e){return e===-2||e===-1||e===32}function Y9(e){return Ig(e)||B9(e)}const L9=ri(/\s/);function ri(e){return t;function t(a){return a!==null&&a>-1&&e.test(String.fromCharCode(a))}}function bn(e){const t=[];let a=-1,i=0,n=0;for(;++a55295&&r<57344){const s=e.charCodeAt(a+1);r<56320&&s>56319&&s<57344?(o=String.fromCharCode(r,s),n=1):o="�"}else o=String.fromCharCode(r);o&&(t.push(e.slice(i,a),encodeURIComponent(o)),i=a+n+1,o=""),n&&(a+=n,n=0)}return t.join("")+e.slice(i)}function Pe(e,t,a,i){const n=i?i-1:Number.POSITIVE_INFINITY;let r=0;return o;function o(l){return Me(l)?(e.enter(a),s(l)):t(l)}function s(l){return Me(l)&&r++o))return;const I=t.events.length;let M=I,P,g;for(;M--;)if(t.events[M][0]==="exit"&&t.events[M][1].type==="chunkFlow"){if(P){g=t.events[M][1].end;break}P=!0}for(T(i),E=I;ES;){const j=a[C];t.containerState=j[1],j[0].exit.call(t,e)}a.length=S}function R(){n.write([null]),r=void 0,n=void 0,t.containerState._closeFlow=void 0}}function G9(e,t,a){return Pe(e,e.attempt(this.parser.constructs.document,t,a),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function tc(e){if(e===null||Et(e)||L9(e))return 1;if(Y9(e))return 2}function ju(e,t,a){const i=[];let n=-1;for(;++n1&&e[a][1].end.offset-e[a][1].start.offset>1?2:1;const c=Object.assign({},e[i][1].end),f=Object.assign({},e[a][1].start);ac(c,-l),ac(f,l),o={type:l>1?"strongSequence":"emphasisSequence",start:c,end:Object.assign({},e[i][1].end)},s={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[a][1].start),end:f},r={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[i][1].end),end:Object.assign({},e[a][1].start)},n={type:l>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},s.end)},e[i][1].end=Object.assign({},o.start),e[a][1].start=Object.assign({},s.end),d=[],e[i][1].end.offset-e[i][1].start.offset&&(d=Ct(d,[["enter",e[i][1],t],["exit",e[i][1],t]])),d=Ct(d,[["enter",n,t],["enter",o,t],["exit",o,t],["enter",r,t]]),d=Ct(d,ju(t.parser.constructs.insideSpan.null,e.slice(i+1,a),t)),d=Ct(d,[["exit",r,t],["enter",s,t],["exit",s,t],["exit",n,t]]),e[a][1].end.offset-e[a][1].start.offset?(u=2,d=Ct(d,[["enter",e[a][1],t],["exit",e[a][1],t]])):u=0,sa(e,i-1,a-i+3,d),a=i+d.length-u-2;break}}for(a=-1;++a0&&Me(E)?Pe(e,R,"linePrefix",r+1)(E):R(E)}function R(E){return E===null||pe(E)?e.check(ic,m,C)(E):(e.enter("codeFlowValue"),S(E))}function S(E){return E===null||pe(E)?(e.exit("codeFlowValue"),R(E)):(e.consume(E),S)}function C(E){return e.exit("codeFenced"),t(E)}function j(E,I,M){let P=0;return g;function g(Z){return E.enter("lineEnding"),E.consume(Z),E.exit("lineEnding"),D}function D(Z){return E.enter("codeFencedFence"),Me(Z)?Pe(E,k,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Z):k(Z)}function k(Z){return Z===s?(E.enter("codeFencedFenceSequence"),x(Z)):M(Z)}function x(Z){return Z===s?(P++,E.consume(Z),x):P>=o?(E.exit("codeFencedFenceSequence"),Me(Z)?Pe(E,L,"whitespace")(Z):L(Z)):M(Z)}function L(Z){return Z===null||pe(Z)?(E.exit("codeFencedFence"),I(Z)):M(Z)}}}function eN(e,t,a){const i=this;return n;function n(o){return o===null?a(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),r)}function r(o){return i.parser.lazy[i.now().line]?a(o):t(o)}}const Ss={name:"codeIndented",tokenize:aN},tN={tokenize:iN,partial:!0};function aN(e,t,a){const i=this;return n;function n(d){return e.enter("codeIndented"),Pe(e,r,"linePrefix",4+1)(d)}function r(d){const u=i.events[i.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?o(d):a(d)}function o(d){return d===null?l(d):pe(d)?e.attempt(tN,o,l)(d):(e.enter("codeFlowValue"),s(d))}function s(d){return d===null||pe(d)?(e.exit("codeFlowValue"),o(d)):(e.consume(d),s)}function l(d){return e.exit("codeIndented"),t(d)}}function iN(e,t,a){const i=this;return n;function n(o){return i.parser.lazy[i.now().line]?a(o):pe(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n):Pe(e,r,"linePrefix",4+1)(o)}function r(o){const s=i.events[i.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):pe(o)?n(o):a(o)}}const nN={name:"codeText",tokenize:sN,resolve:rN,previous:oN};function rN(e){let t=e.length-4,a=3,i,n;if((e[a][1].type==="lineEnding"||e[a][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=a;++i=4?t(o):e.interrupt(i.parser.constructs.flow,a,t)(o)}}function qg(e,t,a,i,n,r,o,s,l){const d=l||Number.POSITIVE_INFINITY;let u=0;return c;function c(T){return T===60?(e.enter(i),e.enter(n),e.enter(r),e.consume(T),e.exit(r),f):T===null||T===32||T===41||yl(T)?a(T):(e.enter(i),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),m(T))}function f(T){return T===62?(e.enter(r),e.consume(T),e.exit(r),e.exit(n),e.exit(i),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(T))}function h(T){return T===62?(e.exit("chunkString"),e.exit(s),f(T)):T===null||T===60||pe(T)?a(T):(e.consume(T),T===92?_:h)}function _(T){return T===60||T===62||T===92?(e.consume(T),h):h(T)}function m(T){return!u&&(T===null||T===41||Et(T))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(i),t(T)):u999||h===null||h===91||h===93&&!l||h===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?a(h):h===93?(e.exit(r),e.enter(n),e.consume(h),e.exit(n),e.exit(i),t):pe(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===null||h===91||h===93||pe(h)||s++>999?(e.exit("chunkString"),u(h)):(e.consume(h),l||(l=!Me(h)),h===92?f:c)}function f(h){return h===91||h===92||h===93?(e.consume(h),s++,c):c(h)}}function zg(e,t,a,i,n,r){let o;return s;function s(f){return f===34||f===39||f===40?(e.enter(i),e.enter(n),e.consume(f),e.exit(n),o=f===40?41:f,l):a(f)}function l(f){return f===o?(e.enter(n),e.consume(f),e.exit(n),e.exit(i),t):(e.enter(r),d(f))}function d(f){return f===o?(e.exit(r),l(o)):f===null?a(f):pe(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Pe(e,d,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(f))}function u(f){return f===o||f===null||pe(f)?(e.exit("chunkString"),d(f)):(e.consume(f),f===92?c:u)}function c(f){return f===o||f===92?(e.consume(f),u):u(f)}}function t0(e,t){let a;return i;function i(n){return pe(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),a=!0,i):Me(n)?Pe(e,i,a?"linePrefix":"lineSuffix")(n):t(n)}}const gN={name:"definition",tokenize:FN},_N={tokenize:mN,partial:!0};function FN(e,t,a){const i=this;let n;return r;function r(h){return e.enter("definition"),o(h)}function o(h){return Hg.call(i,e,s,a,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function s(h){return n=rn(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):a(h)}function l(h){return Et(h)?t0(e,d)(h):d(h)}function d(h){return qg(e,u,a,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function u(h){return e.attempt(_N,c,c)(h)}function c(h){return Me(h)?Pe(e,f,"whitespace")(h):f(h)}function f(h){return h===null||pe(h)?(e.exit("definition"),i.parser.defined.push(n),t(h)):a(h)}}function mN(e,t,a){return i;function i(s){return Et(s)?t0(e,n)(s):a(s)}function n(s){return zg(e,r,a,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function r(s){return Me(s)?Pe(e,o,"whitespace")(s):o(s)}function o(s){return s===null||pe(s)?t(s):a(s)}}const pN={name:"hardBreakEscape",tokenize:TN};function TN(e,t,a){return i;function i(r){return e.enter("hardBreakEscape"),e.consume(r),n}function n(r){return pe(r)?(e.exit("hardBreakEscape"),t(r)):a(r)}}const DN={name:"headingAtx",tokenize:bN,resolve:EN};function EN(e,t){let a=e.length-2,i=3,n,r;return e[i][1].type==="whitespace"&&(i+=2),a-2>i&&e[a][1].type==="whitespace"&&(a-=2),e[a][1].type==="atxHeadingSequence"&&(i===a-1||a-4>i&&e[a-2][1].type==="whitespace")&&(a-=i+1===a?2:4),a>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[a][1].end},r={type:"chunkText",start:e[i][1].start,end:e[a][1].end,contentType:"text"},sa(e,i,a-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e}function bN(e,t,a){let i=0;return n;function n(u){return e.enter("atxHeading"),r(u)}function r(u){return e.enter("atxHeadingSequence"),o(u)}function o(u){return u===35&&i++<6?(e.consume(u),o):u===null||Et(u)?(e.exit("atxHeadingSequence"),s(u)):a(u)}function s(u){return u===35?(e.enter("atxHeadingSequence"),l(u)):u===null||pe(u)?(e.exit("atxHeading"),t(u)):Me(u)?Pe(e,s,"whitespace")(u):(e.enter("atxHeadingText"),d(u))}function l(u){return u===35?(e.consume(u),l):(e.exit("atxHeadingSequence"),s(u))}function d(u){return u===null||u===35||Et(u)?(e.exit("atxHeadingText"),s(u)):(e.consume(u),d)}}const yN=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],rc=["pre","script","style","textarea"],AN={name:"htmlFlow",tokenize:RN,resolveTo:vN,concrete:!0},SN={tokenize:wN,partial:!0},kN={tokenize:NN,partial:!0};function vN(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function RN(e,t,a){const i=this;let n,r,o,s,l;return d;function d(O){return u(O)}function u(O){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(O),c}function c(O){return O===33?(e.consume(O),f):O===47?(e.consume(O),r=!0,m):O===63?(e.consume(O),n=3,i.interrupt?t:A):aa(O)?(e.consume(O),o=String.fromCharCode(O),p):a(O)}function f(O){return O===45?(e.consume(O),n=2,h):O===91?(e.consume(O),n=5,s=0,_):aa(O)?(e.consume(O),n=4,i.interrupt?t:A):a(O)}function h(O){return O===45?(e.consume(O),i.interrupt?t:A):a(O)}function _(O){const ge="CDATA[";return O===ge.charCodeAt(s++)?(e.consume(O),s===ge.length?i.interrupt?t:k:_):a(O)}function m(O){return aa(O)?(e.consume(O),o=String.fromCharCode(O),p):a(O)}function p(O){if(O===null||O===47||O===62||Et(O)){const ge=O===47,Se=o.toLowerCase();return!ge&&!r&&rc.includes(Se)?(n=1,i.interrupt?t(O):k(O)):yN.includes(o.toLowerCase())?(n=6,ge?(e.consume(O),T):i.interrupt?t(O):k(O)):(n=7,i.interrupt&&!i.parser.lazy[i.now().line]?a(O):r?R(O):S(O))}return O===45||vt(O)?(e.consume(O),o+=String.fromCharCode(O),p):a(O)}function T(O){return O===62?(e.consume(O),i.interrupt?t:k):a(O)}function R(O){return Me(O)?(e.consume(O),R):g(O)}function S(O){return O===47?(e.consume(O),g):O===58||O===95||aa(O)?(e.consume(O),C):Me(O)?(e.consume(O),S):g(O)}function C(O){return O===45||O===46||O===58||O===95||vt(O)?(e.consume(O),C):j(O)}function j(O){return O===61?(e.consume(O),E):Me(O)?(e.consume(O),j):S(O)}function E(O){return O===null||O===60||O===61||O===62||O===96?a(O):O===34||O===39?(e.consume(O),l=O,I):Me(O)?(e.consume(O),E):M(O)}function I(O){return O===l?(e.consume(O),l=null,P):O===null||pe(O)?a(O):(e.consume(O),I)}function M(O){return O===null||O===34||O===39||O===47||O===60||O===61||O===62||O===96||Et(O)?j(O):(e.consume(O),M)}function P(O){return O===47||O===62||Me(O)?S(O):a(O)}function g(O){return O===62?(e.consume(O),D):a(O)}function D(O){return O===null||pe(O)?k(O):Me(O)?(e.consume(O),D):a(O)}function k(O){return O===45&&n===2?(e.consume(O),$):O===60&&n===1?(e.consume(O),V):O===62&&n===4?(e.consume(O),z):O===63&&n===3?(e.consume(O),A):O===93&&n===5?(e.consume(O),U):pe(O)&&(n===6||n===7)?(e.exit("htmlFlowData"),e.check(SN,re,x)(O)):O===null||pe(O)?(e.exit("htmlFlowData"),x(O)):(e.consume(O),k)}function x(O){return e.check(kN,L,re)(O)}function L(O){return e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),Z}function Z(O){return O===null||pe(O)?x(O):(e.enter("htmlFlowData"),k(O))}function $(O){return O===45?(e.consume(O),A):k(O)}function V(O){return O===47?(e.consume(O),o="",y):k(O)}function y(O){if(O===62){const ge=o.toLowerCase();return rc.includes(ge)?(e.consume(O),z):k(O)}return aa(O)&&o.length<8?(e.consume(O),o+=String.fromCharCode(O),y):k(O)}function U(O){return O===93?(e.consume(O),A):k(O)}function A(O){return O===62?(e.consume(O),z):O===45&&n===2?(e.consume(O),A):k(O)}function z(O){return O===null||pe(O)?(e.exit("htmlFlowData"),re(O)):(e.consume(O),z)}function re(O){return e.exit("htmlFlow"),t(O)}}function NN(e,t,a){const i=this;return n;function n(o){return pe(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),r):a(o)}function r(o){return i.parser.lazy[i.now().line]?a(o):t(o)}}function wN(e,t,a){return i;function i(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),e.attempt(jo,t,a)}}const ON={name:"htmlText",tokenize:xN};function xN(e,t,a){const i=this;let n,r,o;return s;function s(A){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(A),l}function l(A){return A===33?(e.consume(A),d):A===47?(e.consume(A),j):A===63?(e.consume(A),S):aa(A)?(e.consume(A),M):a(A)}function d(A){return A===45?(e.consume(A),u):A===91?(e.consume(A),r=0,_):aa(A)?(e.consume(A),R):a(A)}function u(A){return A===45?(e.consume(A),h):a(A)}function c(A){return A===null?a(A):A===45?(e.consume(A),f):pe(A)?(o=c,V(A)):(e.consume(A),c)}function f(A){return A===45?(e.consume(A),h):c(A)}function h(A){return A===62?$(A):A===45?f(A):c(A)}function _(A){const z="CDATA[";return A===z.charCodeAt(r++)?(e.consume(A),r===z.length?m:_):a(A)}function m(A){return A===null?a(A):A===93?(e.consume(A),p):pe(A)?(o=m,V(A)):(e.consume(A),m)}function p(A){return A===93?(e.consume(A),T):m(A)}function T(A){return A===62?$(A):A===93?(e.consume(A),T):m(A)}function R(A){return A===null||A===62?$(A):pe(A)?(o=R,V(A)):(e.consume(A),R)}function S(A){return A===null?a(A):A===63?(e.consume(A),C):pe(A)?(o=S,V(A)):(e.consume(A),S)}function C(A){return A===62?$(A):S(A)}function j(A){return aa(A)?(e.consume(A),E):a(A)}function E(A){return A===45||vt(A)?(e.consume(A),E):I(A)}function I(A){return pe(A)?(o=I,V(A)):Me(A)?(e.consume(A),I):$(A)}function M(A){return A===45||vt(A)?(e.consume(A),M):A===47||A===62||Et(A)?P(A):a(A)}function P(A){return A===47?(e.consume(A),$):A===58||A===95||aa(A)?(e.consume(A),g):pe(A)?(o=P,V(A)):Me(A)?(e.consume(A),P):$(A)}function g(A){return A===45||A===46||A===58||A===95||vt(A)?(e.consume(A),g):D(A)}function D(A){return A===61?(e.consume(A),k):pe(A)?(o=D,V(A)):Me(A)?(e.consume(A),D):P(A)}function k(A){return A===null||A===60||A===61||A===62||A===96?a(A):A===34||A===39?(e.consume(A),n=A,x):pe(A)?(o=k,V(A)):Me(A)?(e.consume(A),k):(e.consume(A),L)}function x(A){return A===n?(e.consume(A),n=void 0,Z):A===null?a(A):pe(A)?(o=x,V(A)):(e.consume(A),x)}function L(A){return A===null||A===34||A===39||A===60||A===61||A===96?a(A):A===47||A===62||Et(A)?P(A):(e.consume(A),L)}function Z(A){return A===47||A===62||Et(A)?P(A):a(A)}function $(A){return A===62?(e.consume(A),e.exit("htmlTextData"),e.exit("htmlText"),t):a(A)}function V(A){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),y}function y(A){return Me(A)?Pe(e,U,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):U(A)}function U(A){return e.enter("htmlTextData"),o(A)}}const Pu={name:"labelEnd",tokenize:ZN,resolveTo:LN,resolveAll:YN},BN={tokenize:IN},CN={tokenize:jN},MN={tokenize:PN};function YN(e){let t=-1;for(;++t=3&&(d===null||pe(d))?(e.exit("thematicBreak"),t(d)):a(d)}function l(d){return d===n?(e.consume(d),i++,l):(e.exit("thematicBreakSequence"),Me(d)?Pe(e,s,"whitespace")(d):s(d))}}const Ft={name:"list",tokenize:QN,continuation:{tokenize:JN},exit:XN},$N={tokenize:ew,partial:!0},WN={tokenize:KN,partial:!0};function QN(e,t,a){const i=this,n=i.events[i.events.length-1];let r=n&&n[1].type==="linePrefix"?n[2].sliceSerialize(n[1],!0).length:0,o=0;return s;function s(h){const _=i.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(_==="listUnordered"?!i.containerState.marker||h===i.containerState.marker:Al(h)){if(i.containerState.type||(i.containerState.type=_,e.enter(_,{_container:!0})),_==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(ur,a,d)(h):d(h);if(!i.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return a(h)}function l(h){return Al(h)&&++o<10?(e.consume(h),l):(!i.interrupt||o<2)&&(i.containerState.marker?h===i.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),d(h)):a(h)}function d(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||h,e.check(jo,i.interrupt?a:u,e.attempt($N,f,c))}function u(h){return i.containerState.initialBlankLine=!0,r++,f(h)}function c(h){return Me(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),f):a(h)}function f(h){return i.containerState.size=r+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function JN(e,t,a){const i=this;return i.containerState._closeFlow=void 0,e.check(jo,n,r);function n(s){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,Pe(e,t,"listItemIndent",i.containerState.size+1)(s)}function r(s){return i.containerState.furtherBlankLines||!Me(s)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,o(s)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(WN,t,o)(s))}function o(s){return i.containerState._closeFlow=!0,i.interrupt=void 0,Pe(e,e.attempt(Ft,t,a),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function KN(e,t,a){const i=this;return Pe(e,n,"listItemIndent",i.containerState.size+1);function n(r){const o=i.events[i.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===i.containerState.size?t(r):a(r)}}function XN(e){e.exit(this.containerState.type)}function ew(e,t,a){const i=this;return Pe(e,n,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function n(r){const o=i.events[i.events.length-1];return!Me(r)&&o&&o[1].type==="listItemPrefixWhitespace"?t(r):a(r)}}const oc={name:"setextUnderline",tokenize:aw,resolveTo:tw};function tw(e,t){let a=e.length,i,n,r;for(;a--;)if(e[a][0]==="enter"){if(e[a][1].type==="content"){i=a;break}e[a][1].type==="paragraph"&&(n=a)}else e[a][1].type==="content"&&e.splice(a,1),!r&&e[a][1].type==="definition"&&(r=a);const o={type:"setextHeading",start:Object.assign({},e[n][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[n][1].type="setextHeadingText",r?(e.splice(n,0,["enter",o,t]),e.splice(r+1,0,["exit",e[i][1],t]),e[i][1].end=Object.assign({},e[r][1].end)):e[i][1]=o,e.push(["exit",o,t]),e}function aw(e,t,a){const i=this;let n;return r;function r(d){let u=i.events.length,c;for(;u--;)if(i.events[u][1].type!=="lineEnding"&&i.events[u][1].type!=="linePrefix"&&i.events[u][1].type!=="content"){c=i.events[u][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||c)?(e.enter("setextHeadingLine"),n=d,o(d)):a(d)}function o(d){return e.enter("setextHeadingLineSequence"),s(d)}function s(d){return d===n?(e.consume(d),s):(e.exit("setextHeadingLineSequence"),Me(d)?Pe(e,l,"lineSuffix")(d):l(d))}function l(d){return d===null||pe(d)?(e.exit("setextHeadingLine"),t(d)):a(d)}}const iw={tokenize:nw};function nw(e){const t=this,a=e.attempt(jo,i,e.attempt(this.parser.constructs.flowInitial,n,Pe(e,e.attempt(this.parser.constructs.flow,n,e.attempt(uN,n)),"linePrefix")));return a;function i(r){if(r===null){e.consume(r);return}return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,a}function n(r){if(r===null){e.consume(r);return}return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,a}}const rw={resolveAll:$g()},ow=Vg("string"),sw=Vg("text");function Vg(e){return{tokenize:t,resolveAll:$g(e==="text"?lw:void 0)};function t(a){const i=this,n=this.parser.constructs[e],r=a.attempt(n,o,s);return o;function o(u){return d(u)?r(u):s(u)}function s(u){if(u===null){a.consume(u);return}return a.enter("data"),a.consume(u),l}function l(u){return d(u)?(a.exit("data"),r(u)):(a.consume(u),l)}function d(u){if(u===null)return!0;const c=n[u];let f=-1;if(c)for(;++f-1){const s=o[0];typeof s=="string"?o[0]=s.slice(i):o.shift()}r>0&&o.push(e[n].slice(0,r))}return o}function cw(e,t){let a=-1;const i=[];let n;for(;++a0){const N=q.tokenStack[q.tokenStack.length-1];(N[1]||lc).call(q,void 0,N[0])}for(W.position={start:Ba(G.length>0?G[0][1].start:{line:1,column:1,offset:0}),end:Ba(G.length>0?G[G.length-2][1].end:{line:1,column:1,offset:0})},b=-1;++b0?{type:"text",value:C}:void 0),C===!1?c.lastIndex=R+1:(h!==R&&p.push({type:"text",value:l.value.slice(h,R)}),Array.isArray(C)?p.push(...C):C&&p.push(C),h=R+T[0].length,m=!0),!c.global)break;T=c.exec(l.value)}return m?(h1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,l);const d={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,d),e.applyData(t,d)}function zw(e,t){const a={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function Vw(e,t){if(e.options.allowDangerousHtml){const a={type:"raw",value:t.value};return e.patch(t,a),e.applyData(t,a)}}function Jg(e,t){const a=t.referenceType;let i="]";if(a==="collapsed"?i+="[]":a==="full"&&(i+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+i}];const n=e.all(t),r=n[0];r&&r.type==="text"?r.value="["+r.value:n.unshift({type:"text",value:"["});const o=n[n.length-1];return o&&o.type==="text"?o.value+=i:n.push({type:"text",value:i}),n}function $w(e,t){const a=String(t.identifier).toUpperCase(),i=e.definitionById.get(a);if(!i)return Jg(e,t);const n={src:bn(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(n.title=i.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Ww(e,t){const a={src:bn(t.url)};t.alt!==null&&t.alt!==void 0&&(a.alt=t.alt),t.title!==null&&t.title!==void 0&&(a.title=t.title);const i={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,i),e.applyData(t,i)}function Qw(e,t){const a={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,a);const i={type:"element",tagName:"code",properties:{},children:[a]};return e.patch(t,i),e.applyData(t,i)}function Jw(e,t){const a=String(t.identifier).toUpperCase(),i=e.definitionById.get(a);if(!i)return Jg(e,t);const n={href:bn(i.url||"")};i.title!==null&&i.title!==void 0&&(n.title=i.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Kw(e,t){const a={href:bn(t.url)};t.title!==null&&t.title!==void 0&&(a.title=t.title);const i={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function Xw(e,t,a){const i=e.all(t),n=a?eO(a):Kg(t),r={},o=[];if(typeof t.checked=="boolean"){const u=i[0];let c;u&&u.type==="element"&&u.tagName==="p"?c=u:(c={type:"element",tagName:"p",properties:{},children:[]},i.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),r.className=["task-list-item"]}let s=-1;for(;++s1}function tO(e,t){const a={},i=e.all(t);let n=-1;for(typeof t.start=="number"&&t.start!==1&&(a.start=t.start);++n0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function rO(e){const t=e_(e),a=Xg(e);if(t&&a)return{start:t,end:a}}function oO(e,t){const a=e.all(t),i=a.shift(),n=[];if(i){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],o),n.push(o)}if(a.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(a,!0)},s=e_(t.children[1]),l=Xg(t.children[t.children.length-1]);s&&l&&(o.position={start:s,end:l}),n.push(o)}const r={type:"element",tagName:"table",properties:{},children:e.wrap(n,!0)};return e.patch(t,r),e.applyData(t,r)}function sO(e,t,a){const i=a?a.children:void 0,n=(i?i.indexOf(t):1)===0?"th":"td",r=a&&a.type==="table"?a.align:void 0,o=r?r.length:t.children.length;let s=-1;const l=[];for(;++s0,!0),i[0]),n=i.index+i[0].length,i=a.exec(t);return r.push(cc(t.slice(n),n>0,!1)),r.join("")}function cc(e,t,a){let i=0,n=e.length;if(t){let r=e.codePointAt(i);for(;r===uc||r===dc;)i++,r=e.codePointAt(i)}if(a){let r=e.codePointAt(n-1);for(;r===uc||r===dc;)n--,r=e.codePointAt(n-1)}return n>i?e.slice(i,n):""}function dO(e,t){const a={type:"text",value:uO(String(t.value))};return e.patch(t,a),e.applyData(t,a)}function cO(e,t){const a={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,a),e.applyData(t,a)}const hO={blockquote:jw,break:Pw,code:Gw,delete:Uw,emphasis:qw,footnoteReference:Hw,heading:zw,html:Vw,imageReference:$w,image:Ww,inlineCode:Qw,linkReference:Jw,link:Kw,listItem:Xw,list:tO,paragraph:aO,root:iO,strong:nO,table:oO,tableCell:lO,tableRow:sO,text:dO,thematicBreak:cO,toml:V0,yaml:V0,definition:V0,footnoteDefinition:V0};function V0(){}const a_=-1,Po=0,no=1,ro=2,Gu=3,Uu=4,qu=5,Hu=6,i_=7,n_=8,hc=typeof self=="object"?self:globalThis,fO=(e,t)=>{const a=(n,r)=>(e.set(r,n),n),i=n=>{if(e.has(n))return e.get(n);const[r,o]=t[n];switch(r){case Po:case a_:return a(o,n);case no:{const s=a([],n);for(const l of o)s.push(i(l));return s}case ro:{const s=a({},n);for(const[l,d]of o)s[i(l)]=i(d);return s}case Gu:return a(new Date(o),n);case Uu:{const{source:s,flags:l}=o;return a(new RegExp(s,l),n)}case qu:{const s=a(new Map,n);for(const[l,d]of o)s.set(i(l),i(d));return s}case Hu:{const s=a(new Set,n);for(const l of o)s.add(i(l));return s}case i_:{const{name:s,message:l}=o;return a(new hc[s](l),n)}case n_:return a(BigInt(o),n);case"BigInt":return a(Object(BigInt(o)),n)}return a(new hc[r](o),n)};return i},fc=e=>fO(new Map,e)(0),Yi="",{toString:gO}={},{keys:_O}=Object,Rn=e=>{const t=typeof e;if(t!=="object"||!e)return[Po,t];const a=gO.call(e).slice(8,-1);switch(a){case"Array":return[no,Yi];case"Object":return[ro,Yi];case"Date":return[Gu,Yi];case"RegExp":return[Uu,Yi];case"Map":return[qu,Yi];case"Set":return[Hu,Yi]}return a.includes("Array")?[no,a]:a.includes("Error")?[i_,a]:[ro,a]},$0=([e,t])=>e===Po&&(t==="function"||t==="symbol"),FO=(e,t,a,i)=>{const n=(o,s)=>{const l=i.push(o)-1;return a.set(s,l),l},r=o=>{if(a.has(o))return a.get(o);let[s,l]=Rn(o);switch(s){case Po:{let u=o;switch(l){case"bigint":s=n_,u=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);u=null;break;case"undefined":return n([a_],o)}return n([s,u],o)}case no:{if(l)return n([l,[...o]],o);const u=[],c=n([s,u],o);for(const f of o)u.push(r(f));return c}case ro:{if(l)switch(l){case"BigInt":return n([l,o.toString()],o);case"Boolean":case"Number":case"String":return n([l,o.valueOf()],o)}if(t&&"toJSON"in o)return r(o.toJSON());const u=[],c=n([s,u],o);for(const f of _O(o))(e||!$0(Rn(o[f])))&&u.push([r(f),r(o[f])]);return c}case Gu:return n([s,o.toISOString()],o);case Uu:{const{source:u,flags:c}=o;return n([s,{source:u,flags:c}],o)}case qu:{const u=[],c=n([s,u],o);for(const[f,h]of o)(e||!($0(Rn(f))||$0(Rn(h))))&&u.push([r(f),r(h)]);return c}case Hu:{const u=[],c=n([s,u],o);for(const f of o)(e||!$0(Rn(f)))&&u.push(r(f));return c}}const{message:d}=o;return n([s,{name:l,message:d}],o)};return r},gc=(e,{json:t,lossy:a}={})=>{const i=[];return FO(!(t||a),!!t,new Map,i)(e),i},Ai=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?fc(gc(e,t)):structuredClone(e):(e,t)=>fc(gc(e,t));function mO(e,t){const a=[{type:"text",value:"↩"}];return t>1&&a.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),a}function pO(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function TO(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",a=e.options.footnoteBackContent||mO,i=e.options.footnoteBackLabel||pO,n=e.options.footnoteLabel||"Footnotes",r=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l0&&_.push({type:"text",value:" "});let R=typeof a=="string"?a:a(l,h);typeof R=="string"&&(R={type:"text",value:R}),_.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+f+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(l,h),className:["data-footnote-backref"]},children:Array.isArray(R)?R:[R]})}const p=u[u.length-1];if(p&&p.type==="element"&&p.tagName==="p"){const R=p.children[p.children.length-1];R&&R.type==="text"?R.value+=" ":p.children.push({type:"text",value:" "}),p.children.push(..._)}else u.push(..._);const T={type:"element",tagName:"li",properties:{id:t+"fn-"+f},children:e.wrap(u,!0)};e.patch(d,T),s.push(T)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:r,properties:{...Ai(o),id:"footnote-label"},children:[{type:"text",value:n}]},{type:"text",value:` -`},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:` -`}]}}const kl={}.hasOwnProperty,DO={};function EO(e,t){const a=t||DO,i=new Map,n=new Map,r=new Map,o={...hO,...a.handlers},s={all:d,applyData:yO,definitionById:i,footnoteById:n,footnoteCounts:r,footnoteOrder:[],handlers:o,one:l,options:a,patch:bO,wrap:SO};return Io(e,function(u){if(u.type==="definition"||u.type==="footnoteDefinition"){const c=u.type==="definition"?i:n,f=String(u.identifier).toUpperCase();c.has(f)||c.set(f,u)}}),s;function l(u,c){const f=u.type,h=s.handlers[f];if(kl.call(s.handlers,f)&&h)return h(s,u,c);if(s.options.passThrough&&s.options.passThrough.includes(f)){if("children"in u){const{children:_,...m}=u,p=Ai(m);return p.children=s.all(u),p}return Ai(u)}return(s.options.unknownHandler||AO)(s,u,c)}function d(u){const c=[];if("children"in u){const f=u.children;let h=-1;for(;++h0&&a.push({type:"text",value:` -`}),a}function _c(e){let t=0,a=e.charCodeAt(t);for(;a===9||a===32;)t++,a=e.charCodeAt(t);return e.slice(t)}function Fc(e,t){const a=EO(e,t),i=a.one(e,void 0),n=TO(a),r=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return n&&r.children.push({type:"text",value:` -`},n),r}function kO(e,t){return e&&"run"in e?async function(a,i){const n=Fc(a,t);await e.run(n,i)}:function(a){return Fc(a,t||e)}}class a0{constructor(t,a,i){this.property=t,this.normal=a,i&&(this.space=i)}}a0.prototype.property={},a0.prototype.normal={},a0.prototype.space=null;function r_(e,t){const a={},i={};let n=-1;for(;++n4&&a.slice(0,4)==="data"&&OO.test(t)){if(t.charAt(4)==="-"){const r=t.slice(5).replace(pc,MO);i="data"+r.charAt(0).toUpperCase()+r.slice(1)}else{const r=t.slice(4);if(!pc.test(r)){let o=r.replace(xO,CO);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}n=zu}return new n(i,t)}function CO(e){return"-"+e.toLowerCase()}function MO(e){return e.charAt(1).toUpperCase()}const YO={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},LO=r_([l_,s_,c_,h_,NO],"html"),f_=r_([l_,s_,c_,h_,wO],"svg");function ZO(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function IO(e){return e.join(" ").trim()}function jO(e,t){const a=t||{};return(e[e.length-1]===""?[...e,""]:e).join((a.padRight?" ":"")+","+(a.padLeft===!1?"":" ")).trim()}var Nl={exports:{}},Tc=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,PO=/\n/g,GO=/^\s*/,UO=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,qO=/^:\s*/,HO=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,zO=/^[;\s]*/,VO=/^\s+|\s+$/g,$O=` -`,Dc="/",Ec="*",mi="",WO="comment",QO="declaration",JO=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var a=1,i=1;function n(_){var m=_.match(PO);m&&(a+=m.length);var p=_.lastIndexOf($O);i=~p?_.length-p:i+_.length}function r(){var _={line:a,column:i};return function(m){return m.position=new o(_),d(),m}}function o(_){this.start=_,this.end={line:a,column:i},this.source=t.source}o.prototype.content=e;function s(_){var m=new Error(t.source+":"+a+":"+i+": "+_);if(m.reason=_,m.filename=t.source,m.line=a,m.column=i,m.source=e,!t.silent)throw m}function l(_){var m=_.exec(e);if(m){var p=m[0];return n(p),e=e.slice(p.length),m}}function d(){l(GO)}function u(_){var m;for(_=_||[];m=c();)m!==!1&&_.push(m);return _}function c(){var _=r();if(!(Dc!=e.charAt(0)||Ec!=e.charAt(1))){for(var m=2;mi!=e.charAt(m)&&(Ec!=e.charAt(m)||Dc!=e.charAt(m+1));)++m;if(m+=2,mi===e.charAt(m-1))return s("End of comment missing");var p=e.slice(2,m-2);return i+=2,n(p),e=e.slice(m),i+=2,_({type:WO,comment:p})}}function f(){var _=r(),m=l(UO);if(m){if(c(),!l(qO))return s("property missing ':'");var p=l(HO),T=_({type:QO,property:bc(m[0].replace(Tc,mi)),value:p?bc(p[0].replace(Tc,mi)):mi});return l(zO),T}}function h(){var _=[];u(_);for(var m;m=f();)m!==!1&&(_.push(m),u(_));return _}return d(),h()};function bc(e){return e?e.replace(VO,mi):mi}var KO=JO;function yc(e,t){var a=null;if(!e||typeof e!="string")return a;for(var i,n=KO(e),r=typeof t=="function",o,s,l=0,d=n.length;l0?e.call(t,r,o,s):e.call(t,r,o)}function nx(e,t,a,i,n){const r=BO(i.schema,t);let o;a==null||typeof a=="number"&&Number.isNaN(a)||a===!1&&(i.vue||i.vdom||i.hyperscript)||!a&&r.boolean&&(i.vue||i.vdom||i.hyperscript)||(Array.isArray(a)&&(a=r.commaSeparated?jO(a):IO(a)),r.boolean&&i.hyperscript&&(a=""),r.property==="style"&&typeof a=="string"&&(i.react||i.vue||i.vdom)&&(a=ux(a,n)),i.vue?r.property!=="style"&&(o="attrs"):r.mustUseProperty||(i.vdom?r.property!=="style"&&(o="attributes"):i.hyperscript&&(o="attrs")),o?e[o]=Object.assign(e[o]||{},{[r.attribute]:a}):r.space&&i.react?e[YO[r.property]||r.property]=a:e[r.attribute]=a)}function rx(e){const t=e("div",{});return!!(t&&("_owner"in t||"_store"in t)&&(t.key===void 0||t.key===null))}function ox(e){return"context"in e&&"cleanup"in e}function sx(e){return e("div",{}).type==="VirtualNode"}function lx(e){const t=e("div",{});return!!(t&&t.context&&t.context._isVue)}function ux(e,t){const a={};try{ex(e,(i,n)=>{i.slice(0,4)==="-ms-"&&(i="ms-"+i.slice(4)),a[i.replace(/-([a-z])/g,(r,o)=>o.toUpperCase())]=n})}catch(i){const n=i;throw n.message=t+"[style]"+n.message.slice(9),n}return a}var dx=__;function __(e){if(typeof e=="string")return gx(e);if(e==null)return _x;if(typeof e=="object")return("length"in e?fx:hx)(e);if(typeof e=="function")return e;throw new Error("Expected function, string, or object as test")}function cx(e){for(var t=[],a=e.length,i=-1;++id&&c!Rx(l))),e.components&&Nx.call(e.components,r)){const l=e.components[r];return e.passNode&&typeof l=="function"&&(o=Object.assign({node:this},o)),t(l,o,s)}return t(r,o,s)}}const p_=function(e){if(e==null)return Cx;if(typeof e=="string")return Bx(e);if(typeof e=="object")return xx(e);if(typeof e=="function")return Vu(e);throw new Error("Expected function, string, or array as `test`")};function xx(e){const t=[];let a=-1;for(;++a0&&(r.properties.rel=[...f]),h&&(r.properties.target=h),u){const m=Nn(t.contentProperties,r)||{};r.children.push({type:"element",tagName:"span",properties:Ai(m),children:Ai(u)})}}}})}}function Nn(e,t){return typeof e=="function"?e(t):e}if(Array.prototype.find||(Array.prototype.find=function(e){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof e!="function")throw new TypeError("predicate must be a function");for(var t=Object(this),a=t.length>>>0,i=arguments[1],n,r=0;r<~]))"].join("|");return new RegExp(t,e?void 0:"g")}const KM=Ux();const qx={name:"NcAutoCompleteResult",props:{title:{type:String,required:!0},subline:{type:String,default:null},id:{type:String,default:null},icon:{type:String,required:!0},iconUrl:{type:String,default:null},source:{type:String,required:!0},status:{type:[Object,Array],default:()=>({})}},computed:{avatarUrl(){return this.iconUrl?this.iconUrl:this.id&&this.source==="users"?this.getAvatarUrl(this.id,44):null},haveStatus(){var e,t,a;return((e=this.status)==null?void 0:e.icon)||((t=this.status)==null?void 0:t.status)&&((a=this.status)==null?void 0:a.status)!=="offline"}},methods:{getAvatarUrl(e,t){return gr("/avatar/{user}/{size}",{user:e,size:t})}}};var Hx=function(){var e=this,t=e._self._c;return t("div",{staticClass:"autocomplete-result"},[t("div",{staticClass:"autocomplete-result__icon",class:[e.icon,`autocomplete-result__icon--${e.avatarUrl?"with-avatar":""}`],style:e.avatarUrl?{backgroundImage:`url(${e.avatarUrl})`}:null},[e.haveStatus?t("div",{staticClass:"autocomplete-result__status",class:[`autocomplete-result__status--${e.status&&e.status.icon?"icon":e.status.status}`]},[e._v(" "+e._s(e.status&&e.status.icon||"")+" ")]):e._e()]),t("span",{staticClass:"autocomplete-result__content"},[t("span",{staticClass:"autocomplete-result__title",attrs:{title:e.title}},[e._v(" "+e._s(e.title)+" ")]),e.subline?t("span",{staticClass:"autocomplete-result__subline"},[e._v(" "+e._s(e.subline)+" ")]):e._e()])])},zx=[],Vx=ce(qx,Hx,zx,!1,null,"25cf09d8",null,null);const XM=Vx.exports;ie("Write a message …"),Bu(async function(e,t){this.autoComplete(e,t)},100);const Sc=/(\s|^)(https?:\/\/)((?:[-A-Z0-9+_]+\.)+[-A-Z]+(?:\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*)(\s|$)/ig,kc=/(\s|\(|^)((https?:\/\/)((?:[-A-Z0-9+_]+\.)+[-A-Z0-9]+(?::[0-9]+)?(?:\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*))(?=\s|\)|$)/ig,$x={name:"NcReferenceList",components:{NcReferenceWidget:Og},props:{text:{type:String,default:""},referenceData:{type:Object,default:null},limit:{type:Number,default:1}},data(){return{references:null,loading:!0}},computed:{isVisible(){return this.loading||this.displayedReferences},values(){return this.referenceData?this.referenceData:this.references?Object.values(this.references):[]},firstReference(){var e;return(e=this.values[0])!=null?e:null},displayedReferences(){return this.values.slice(0,this.limit)}},watch:{text:"fetch"},mounted(){this.fetch()},methods:{fetch(){if(this.loading=!0,this.referenceData){this.loading=!1;return}if(!new RegExp(Sc).exec(this.text)){this.loading=!1;return}this.resolve().then(e=>{this.references=e.data.ocs.data.references,this.loading=!1}).catch(e=>{console.error("Failed to extract references",e),this.loading=!1})},resolve(){const e=new RegExp(Sc).exec(this.text.trim());return this.limit===1&&e?$a.get(Va("references/resolve",2)+`?reference=${encodeURIComponent(e[0])}`):$a.post(Va("references/extract",2),{text:this.text,resolve:!0,limit:this.limit})}}};var Wx=function(){var e=this,t=e._self._c;return e.isVisible?t("div",{staticClass:"widgets--list",class:{"icon-loading":e.loading}},e._l(e.displayedReferences,function(a){var i;return t("div",{key:(i=a?.openGraphObject)==null?void 0:i.id},[t("NcReferenceWidget",{attrs:{reference:a}})],1)}),0):e._e()},Qx=[],Jx=ce($x,Wx,Qx,!1,null,"bd1fbb02",null,null);const Ns=Jx.exports,Kx={name:"NcLink",props:{href:{type:String,required:!0}},render(e){return e("a",{attrs:{href:this.href,rel:"noopener noreferrer",target:"_blank",class:"rich-text--external-link"}},[this.href.trim()])}},Xx=function({autolink:e,useMarkdown:t}){return function(a){!t||!e||Io(a,i=>i.type==="text",(i,n,r)=>{let o=T_(i.value);return o=o.map(s=>typeof s=="string"?Xn("text",s):Xn("link",{url:s.props.href},[Xn("text",s.props.href)])).filter(s=>s),r.children.splice(n,1,...o.flat()),[Cg,n+o.flat().length]})}},T_=e=>{let t=kc.exec(e);const a=[];let i=0;for(;t!==null;){let r=t[2],o,s=e.substring(i,t.index+t[1].length);r[0]===" "&&(s+=r[0],r=r.substring(1).trim());const l=r[r.length-1];(l==="."||l===","||l===";"||t[0][0]==="("&&l===")")&&(r=r.substring(0,r.length-1),o=l),a.push(s),a.push({component:Kx,props:{href:r}}),o&&a.push(o),i=t.index+t[0].length,t=kc.exec(e)}a.push(e.substring(i));const n=a.map(r=>typeof r=="string"?r:r.props.href).join("");return e===n?a:(console.error("Failed to reassemble the chunked text: "+e),e)},e5=function(){return function(e){Io(e,a=>a.type==="text",t);function t(a,i,n){const r=a.value.split(/(\{[a-z\-_.0-9]+\})/ig).map((o,s,l)=>{const d=o.match(/^\{([a-z\-_.0-9]+)\}$/i);if(!d)return Xn("text",o);const[,u]=d;return Xn("element",{tagName:`#${u}`})});n.children.splice(i,1,...r)}}},t5=({h:e,context:t},a)=>(t.autolink&&(a=T_(a)),Array.isArray(a)?a.map(i=>{if(typeof i=="string")return i;const{component:n,props:r}=i,o=n.name==="NcLink"?void 0:"rich-text--component";return e(n,{props:r,class:o})}):a),a5={name:"NcRichText",components:{NcReferenceList:Ns},props:{text:{type:String,default:""},arguments:{type:Object,default:()=>({})},referenceLimit:{type:Number,default:0},references:{type:Object,default:null},markdownCssClasses:{type:Object,default:()=>({a:"rich-text--external-link",ol:"rich-text--ordered-list",ul:"rich-text--un-ordered-list",li:"rich-text--list-item",strong:"rich-text--strong",em:"rich-text--italic",h1:"rich-text--heading rich-text--heading-1",h2:"rich-text--heading rich-text--heading-2",h3:"rich-text--heading rich-text--heading-3",h4:"rich-text--heading rich-text--heading-4",h5:"rich-text--heading rich-text--heading-5",h6:"rich-text--heading rich-text--heading-6",hr:"rich-text--hr",table:"rich-text--table",pre:"rich-text--pre",code:"rich-text--code",blockquote:"rich-text--blockquote"})},useMarkdown:{type:Boolean,default:!1},autolink:{type:Boolean,default:!0}},methods:{renderPlaintext(e){const t=this,a=this.text.split(/(\{[a-z\-_.0-9]+\})/ig).map(function(i,n,r){const o=i.match(/^\{([a-z\-_.0-9]+)\}$/i);if(!o)return t5({h:e,context:t},i);const s=o[1],l=t.arguments[s];if(typeof l=="object"){const{component:d,props:u}=l;return e(d,{props:u,class:"rich-text--component"})}return l?e("span",{class:"rich-text--fallback"},l):i});return e("div",{class:"rich-text--wrapper"},[e("div",{},a.flat()),this.referenceLimit>0?e("div",{class:"rich-text--reference-widget"},[e(Ns,{props:{text:this.text,referenceData:this.references}})]):null])},renderMarkdown(e){const t=y9().use(Ow).use(Xx,{autolink:this.autolink,useMarkdown:this.useMarkdown}).use(Iw).use(kO,{handlers:{component(a,i){return a(i,i.component,{value:i.value})}}}).use(e5).use(Gx,{target:"_blank",rel:["noopener noreferrer"]}).use(Ox,{createElement:(a,i,n)=>{if(n=n?.map(o=>typeof o=="string"?o.replace(/</gmi,"<"):o),!a.startsWith("#"))return e(a,i,n);const r=this.arguments[a.slice(1)];return r?r.component?e(r.component,{attrs:i,props:r.props,class:"rich-text--component"},n):e("span",i,[r]):e("span",{attrs:i,class:"rich-text--fallback"},[`{${a.slice(1)}}`])},prefix:!1}).processSync(this.text.replace(/")).result;return e("div",{class:"rich-text--wrapper rich-text--wrapper-markdown"},[t,this.referenceLimit>0?e("div",{class:"rich-text--reference-widget"},[e(Ns,{props:{text:this.text,referenceData:this.references}})]):null])}},render(e){return this.useMarkdown?this.renderMarkdown(e):this.renderPlaintext(e)}},i5=null,n5=null;var r5=ce(a5,i5,n5,!1,null,"5f33f45b",null,null);const o5=r5.exports;({...Bo.props,placeholder:ie("Select a tag")});so,vg.debounce(function(e){this.loadGroup(e)},200);const s5={name:"NcUserBubbleDiv"};var l5=function(){var e=this,t=e._self._c;return t("div",[e._t("trigger")],2)},u5=[],d5=ce(s5,l5,u5,!1,null,null,null,null);const c5=d5.exports,h5={name:"NcUserBubble",components:{NcAvatar:xo,NcPopover:pu,NcUserBubbleDiv:c5},props:{avatarImage:{type:String,default:void 0},user:{type:String,default:void 0},displayName:{type:String,default:void 0},showUserStatus:{type:Boolean,default:!1},url:{type:String,default:void 0,validator:e=>{var t;try{return e=new URL(e,(t=e?.startsWith)!=null&&t.call(e,"/")?window.location.href:void 0),!0}catch{return!1}}},open:{type:Boolean,default:!1},primary:{type:Boolean,default:!1},size:{type:Number,default:20},margin:{type:Number,default:2}},emits:["click","update:open"],computed:{isPopoverComponent(){return this.popoverEmpty?"NcUserBubbleDiv":"NcPopover"},isAvatarUrl(){if(!this.avatarImage)return!1;try{return!!new URL(this.avatarImage)}catch{return!1}},isCustomAvatar(){return!!this.avatarImage},hasUrl(){return this.url&&this.url.trim()!==""},isLinkComponent(){return this.hasUrl?"a":"div"},popoverEmpty(){return!("default"in this.$slots)},styles(){return{content:{height:this.size+"px",lineHeight:this.size+"px",borderRadius:this.size/2+"px"},avatar:{marginLeft:this.margin+"px"}}}},mounted(){!this.displayName&&!this.user&&Aa.util.warn("[NcUserBubble] At least `displayName` or `user` property should be set.")},methods:{onOpenChange(e){this.$emit("update:open",e)},onClick(e){this.$emit("click",e)}}};var f5=function(){var e=this,t=e._self._c;return t(e.isPopoverComponent,{tag:"component",staticClass:"user-bubble__wrapper",attrs:{trigger:"hover focus",shown:e.open},on:{"update:open":e.onOpenChange},scopedSlots:e._u([{key:"trigger",fn:function(){return[t(e.isLinkComponent,{tag:"component",staticClass:"user-bubble__content",class:{"user-bubble__content--primary":e.primary},style:e.styles.content,attrs:{href:e.hasUrl?e.url:null},on:{click:e.onClick}},[t("NcAvatar",{staticClass:"user-bubble__avatar",style:e.styles.avatar,attrs:{url:e.isCustomAvatar&&e.isAvatarUrl?e.avatarImage:void 0,"icon-class":e.isCustomAvatar&&!e.isAvatarUrl?e.avatarImage:void 0,user:e.user,"display-name":e.displayName,size:e.size-e.margin*2,"disable-tooltip":!0,"disable-menu":!0,"show-user-status":e.showUserStatus}}),t("span",{staticClass:"user-bubble__name"},[e._v(" "+e._s(e.displayName||e.user)+" ")]),e.$slots.name?t("span",{staticClass:"user-bubble__secondary"},[e._t("name")],2):e._e()],1)]},proxy:!0}],null,!0)},[e._t("default")],2)},g5=[],_5=ce(h5,f5,g5,!1,null,"55ab76f1",null,null);const vc=_5.exports;var sn={},F5=Sa,m5=Tn,p5=Zl,T5=m5("species"),$u=function(e){return p5>=51||!F5(function(){var t=[],a=t.constructor={};return a[T5]=function(){return{foo:1}},t[e](Boolean).foo!==1})},D5=_0,E5=$c.map,b5=$u,y5=b5("map");D5({target:"Array",proto:!0,forced:!y5},{map:function(e){return E5(this,e,arguments.length>1?arguments[1]:void 0)}});var A5=F0,S5=function(){var e=A5(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},Wu=Sa,k5=lo,Qu=k5.RegExp,Ju=Wu(function(){var e=Qu("a","y");return e.lastIndex=2,e.exec("abcd")!==null}),v5=Ju||Wu(function(){return!Qu("a","y").sticky}),R5=Ju||Wu(function(){var e=Qu("^r","gy");return e.lastIndex=2,e.exec("str")!==null}),D_={BROKEN_CARET:R5,MISSED_STICKY:v5,UNSUPPORTED_Y:Ju},N5=Sa,w5=lo,O5=w5.RegExp,x5=N5(function(){var e=O5(".","s");return!(e.dotAll&&e.test(` -`)&&e.flags==="s")}),B5=Sa,C5=lo,M5=C5.RegExp,Y5=B5(function(){var e=M5("(?b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$c")!=="bc"}),Ji=uo,Uo=co,L5=Il,Z5=S5,I5=D_,j5=eF,P5=tF,G5=X_.get,U5=x5,q5=Y5,H5=j5("native-string-replace",String.prototype.replace),oo=RegExp.prototype.exec,wl=oo,z5=Uo("".charAt),V5=Uo("".indexOf),$5=Uo("".replace),ws=Uo("".slice),Ol=function(){var e=/a/,t=/b*/g;return Ji(oo,e,"a"),Ji(oo,t,"a"),e.lastIndex!==0||t.lastIndex!==0}(),E_=I5.BROKEN_CARET,xl=/()??/.exec("")[1]!==void 0,W5=Ol||xl||E_||U5||q5;W5&&(wl=function(e){var t=this,a=G5(t),i=L5(e),n=a.raw,r,o,s,l,d,u,c;if(n)return n.lastIndex=t.lastIndex,r=Ji(wl,n,i),t.lastIndex=n.lastIndex,r;var f=a.groups,h=E_&&t.sticky,_=Ji(Z5,t),m=t.source,p=0,T=i;if(h&&(_=$5(_,"y",""),V5(_,"g")===-1&&(_+="g"),T=ws(i,t.lastIndex),t.lastIndex>0&&(!t.multiline||t.multiline&&z5(i,t.lastIndex-1)!==` -`)&&(m="(?: "+m+")",T=" "+T,p++),o=new RegExp("^(?:"+m+")",_)),xl&&(o=new RegExp("^"+m+"$(?!\\s)",_)),Ol&&(s=t.lastIndex),l=Ji(oo,h?o:t,T),h?l?(l.input=ws(l.input,p),l[0]=ws(l[0],p),l.index=t.lastIndex,t.lastIndex+=l[0].length):t.lastIndex=0:Ol&&l&&(t.lastIndex=t.global?l.index+l[0].length:s),xl&&l&&l.length>1&&Ji(H5,l[0],o,function(){for(d=1;d1||"".split(/.?/).length?i=function(n,r){var o=xs(Cc(this)),s=r===void 0?Lc:r>>>0;if(s===0)return[];if(n===void 0)return[o];if(!AB(n))return wn(t,o,n,s);for(var l=[],d=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")+(n.sticky?"y":""),u=0,c=new RegExp(n.source,d+"g"),f,h,_;(f=wn(NB,c,o))&&(h=c.lastIndex,!(h>u&&(Zi(l,On(o,u,f.index)),f.length>1&&f.index=s)));)c.lastIndex===f.index&&c.lastIndex++;return u===o.length?(_||!BB(c,""))&&Zi(l,""):Zi(l,On(o,u)),l.length>s?Mc(l,0,s):l}:"0".split(void 0,0).length?i=function(n,r){return n===void 0&&r===0?[]:wn(t,this,n,r)}:i=t,[function(n,r){var o=Cc(this),s=yB(n)?void 0:RB(n,e);return s?wn(s,n,o,r):wn(i,xs(o),n,r)},function(n,r){var o=bB(this),s=xs(n),l=a(i,o,s,r,i!==t);if(l.done)return l.value;var d=SB(o,RegExp),u=o.unicode,c=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(Li?"g":"y"),f=new d(Li?"^(?:"+o.source+")":o,c),h=r===void 0?Lc:r>>>0;if(h===0)return[];if(s.length===0)return Yc(f,s)===null?[s]:[];for(var _=0,m=0,p=[];m]*>)/g,IB=/\$([$&'`]|\d{1,2})/g,jB=function(e,t,a,i,n,r){var o=a+e.length,s=i.length,l=IB;return n!==void 0&&(n=MB(n),l=ZB),LB(r,l,function(d,u){var c;switch(Bs(u,0)){case"$":return"$";case"&":return e;case"`":return Cs(t,0,a);case"'":return Cs(t,o);case"<":c=n[Cs(u,1,-1)];break;default:var f=+u;if(f===0)return d;if(f>s){var h=YB(f/10);return h===0?d:h<=s?i[h-1]===void 0?Bs(u,1):i[h-1]+Bs(u,1):d}c=i[f-1]}return c===void 0?"":c})},PB=eh,Zc=uo,Ho=co,GB=y_,UB=Sa,qB=F0,HB=Qc,zB=Pl,VB=uF,$B=Kc,Ii=Il,WB=Jc,QB=A_,JB=Xc,KB=jB,XB=S_,eC=Tn,Bl=eC("replace"),tC=Math.max,aC=Math.min,iC=Ho([].concat),Ms=Ho([].push),Ic=Ho("".indexOf),jc=Ho("".slice),nC=function(e){return e===void 0?e:String(e)},rC=function(){return"a".replace(/./,"$0")==="$0"}(),Pc=function(){return/./[Bl]?/./[Bl]("a","$0")==="":!1}(),oC=!UB(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$")!=="7"});GB("replace",function(e,t,a){var i=Pc?"$":"$0";return[function(n,r){var o=WB(this),s=zB(n)?void 0:JB(n,Bl);return s?Zc(s,n,o,r):Zc(t,Ii(o),n,r)},function(n,r){var o=qB(this),s=Ii(n);if(typeof r=="string"&&Ic(r,i)===-1&&Ic(r,"$<")===-1){var l=a(t,o,s,r);if(l.done)return l.value}var d=HB(r);d||(r=Ii(r));var u=o.global,c;u&&(c=o.unicode,o.lastIndex=0);for(var f=[],h;h=XB(o,s),!(h===null||(Ms(f,h),!u));){var _=Ii(h[0]);_===""&&(o.lastIndex=QB(s,$B(o.lastIndex),c))}for(var m="",p=0,T=0;T=p&&(m+=jc(s,p,S)+j,p=S+R.length)}return m+jc(s,p)}]},!oC||!rC||Pc);var sC=_0,lC=$c.filter,uC=$u,dC=uC("filter");sC({target:"Array",proto:!0,forced:!dC},{filter:function(e){return lC(this,e,arguments.length>1?arguments[1]:void 0)}});var cC=dF,hC=Gl,fC=cF,gC=th,_C=TypeError,Gc=function(e){return function(t,a,i,n){cC(a);var r=hC(t),o=fC(r),s=gC(r),l=e?s-1:0,d=e?-1:1;if(i<2)for(;;){if(l in o){n=o[l],l+=d;break}if(l+=d,e?l<0:s<=l)throw new _C("Reduce of empty array with no initial value")}for(;e?l>=0:s>l;l+=d)l in o&&(n=a(n,o[l],l,r));return n}},FC={left:Gc(!1),right:Gc(!0)},mC=Sa,pC=function(e,t){var a=[][e];return!!a&&mC(function(){a.call(null,t||function(){return 1},1)})},TC=lo,DC=jl,EC=DC(TC.process)==="process",bC=_0,yC=FC.left,AC=pC,Uc=Zl,SC=EC,kC=!SC&&Uc>79&&Uc<83,vC=kC||!AC("reduce");bC({target:"Array",proto:!0,forced:vC},{reduce:function(e){var t=arguments.length;return yC(this,e,t,t>1?arguments[1]:void 0)}});var RC=TypeError,NC=9007199254740991,wC=function(e){if(e>NC)throw RC("Maximum allowed index exceeded");return e},OC=_0,xC=Sa,BC=gF,CC=Wc,MC=Gl,YC=th,qc=wC,Hc=hF,LC=fF,ZC=$u,IC=Tn,jC=Zl,v_=IC("isConcatSpreadable"),PC=jC>=51||!xC(function(){var e=[];return e[v_]=!1,e.concat()[0]!==e}),GC=function(e){if(!CC(e))return!1;var t=e[v_];return t!==void 0?!!t:BC(e)},UC=!PC||!ZC("concat");OC({target:"Array",proto:!0,arity:1,forced:UC},{concat:function(e){var t=MC(this),a=LC(t,0),i=0,n,r,o,s,l;for(n=-1,o=arguments.length;n0});if(i.length<1)return"";var n=i[i.length-1],r=i[0].charAt(0)==="/",o=n.charAt(n.length-1)==="/",s=i.reduce(function(u,c){return u.concat(c.split("/"))},[]),l=!r,d=s.reduce(function(u,c){return c===""?u:l?(l=!1,u+c):u+"/"+c},"");return o?d+"/":d}function $C(e,t){var a=(e||"").split("/").filter(function(n){return n!=="."}),i=(t||"").split("/").filter(function(n){return n!=="."});return e=Cl.apply(void 0,a),t=Cl.apply(void 0,i),e===t}const WC={name:"FileRichArgument",props:{name:{type:String,required:!0},path:{type:String,required:!0},link:{type:String,required:!0}},methods:{t:Vc},computed:{isRoot(){return zc(this.path,"")},parentPathIsRoot(){return zc(this.parentFolder,"/")},parentFolder(){return qC(this.name)}}};var QC=function(){var e=this,t=e._self._c;return t("span",{staticClass:"rich-text-file"},[!e.isRoot&&e.parentPathIsRoot?t("a",{attrs:{href:e.link}},[e._v(e._s(e.name))]):e._e(),!e.isRoot&&!e.parentPathIsRoot?t("a",{attrs:{title:e.t("activity","in {path}",{path:e.parentFolder}),"aria-label":e.t("activity","in {path}",{path:e.parentFolder}),href:e.link}},[e._v(e._s(e.name))]):e._e(),e.isRoot?t("span",{staticClass:"icon-home",attrs:{title:e.t("activity","Home"),"aria-label":"t('activity', 'Home')"}}):e._e()])},JC=[],KC=ti(WC,QC,JC,!1,null,"f30ef6d6",null,null);const XC=KC.exports,eM={name:"EmailRichArgument",props:{id:{type:String,required:!0},name:{type:String,required:!0}}};var tM=function(){var e=this,t=e._self._c;return t("a",{attrs:{href:`mailto:${e.id}`}},[e._v(e._s(e.name))])},aM=[],iM=ti(eM,tM,aM,!1,null,null,null,null);const nM=iM.exports;const rM={name:"SystemTagRichArgument",props:{name:{type:String,required:!0}}};var oM=function(){var e=this,t=e._self._c;return t("strong",[e._v(e._s(e.name))])},sM=[],lM=ti(rM,oM,sM,!1,null,"b8794790",null,null);const uM=lM.exports,dM={name:"CalendarRichArgument",props:{name:{type:String,required:!0}}};var cM=function(){var e=this,t=e._self._c;return t("strong",[e._v(e._s(e.name))])},hM=[],fM=ti(dM,cM,hM,!1,null,null,null,null);const gM=fM.exports,_M={name:"CalendarEventRichArgument",props:{name:{type:String,required:!0},title:{type:String,required:!0},link:{type:String,required:!0}}};var FM=function(){var e=this,t=e._self._c;return t("a",{attrs:{href:e.link,title:e.title}},[t("strong",[e._v(e._s(e.name))])])},mM=[],pM=ti(_M,FM,mM,!1,null,null,null,null);const TM=pM.exports,DM={name:"OpenGraphRichArgument",props:{id:{type:String,required:!0},name:{type:String,required:!0},description:{type:String,required:!0},thumb:{type:String,default:""},link:{type:String,required:!0},website:{type:String,required:!0}},computed:{thumbIsDefined(){return this.thumb!==""}}};var EM=function(){var e=this,t=e._self._c;return t("a",{attrs:{href:e.link}},[t("div",{staticClass:"opengraph",attrs:{id:`opengraph-${e.id}`}},[e.thumbIsDefined?t("div",{staticClass:"opengraph-thumb",style:`background-image: url('${e.thumb}')`}):e._e(),t("div",{staticClass:"opengraph-name",class:{"opengraph-with-thumb":e.thumbIsDefined}},[e._v(e._s(e.name))]),t("div",{staticClass:"opengraph-description",class:{"opengraph-with-thumb":e.thumbIsDefined}},[e._v(e._s(e.description))]),t("span",{staticClass:"opengraph-website"},[e._v(e._s(e.website))])])])},bM=[],yM=ti(DM,EM,bM,!1,null,null,null,null);const AM=yM.exports,SM={name:"AddressBookRichArgument",props:{name:{type:String,required:!0}}};var kM=function(){var e=this,t=e._self._c;return t("strong",[e._v(e._s(e.name))])},vM=[],RM=ti(SM,kM,vM,!1,null,null,null,null);const NM=RM.exports,wM=Yl({name:"Activity",components:{NcAvatar:xo,NcRichText:o5},props:{activity:{type:TE,required:!0},showPreviews:{type:Boolean,default:!1}},data(){return{dateFromNow:"",dateInterval:0}},computed:{messageText(){return this.activity.messageRichTemplate||this.activity.message},messageArguments(){return this.mapRichObjectsToRichArguments(this.activity.messageRichObjects)},subjectText(){return this.activity.subjectRichTemplate||this.activity.subject},subjectArguments(){return this.mapRichObjectsToRichArguments(this.activity.subjectRichObjects)},applyMonochromeIconColor(){return this.activity.type!=="file_created"&&this.activity.type!=="file_deleted"&&this.activity.type!=="favorite"&&!this.activity.icon.endsWith("-color.svg")?"monochrome":""}},created(){this.updateDateFromNow(),this.dateInterval=window.setInterval(this.updateDateFromNow,60*1e3)},destroyed(){clearInterval(this.dateInterval)},methods:{t:Vc,handlePreviewClick(e,t){if(t.filePath&&window?.OCA?.Viewer?.open!==void 0&&window.OCA.Viewer.mimetypes.includes(t.mimeType))try{window.OCA.Viewer.open({path:t.filePath.replace(/^\/[^/]+\/files/,"")}),e.preventDefault(),e.stopPropagation()}catch(a){_F.debug(a)}},updateDateFromNow(){this.dateFromNow=this.activity.dateFromNow},mapRichObjectsToRichArguments(e){const t={};for(const a in e)t[a]=this.mapRichObjectToRichArgument(e[a]);return t},mapRichObjectToRichArgument(e){switch(e.type){case"file":return{component:XC,props:e};case"user":return{component:vc,props:{displayName:e.name,user:e.id,url:e.link}};case"group":return{component:vc,props:{avatarImage:"icon-group",displayName:e.name,primary:!0}};case"email":return{component:nM,props:e};case"systemtag":return{component:uM,props:e};case"opengraph":return{component:AM,props:e};case"calendar":return{component:gM,props:e};case"calendar-event":return{component:TM,props:e};case"addressbook":return{component:NM,props:e};default:return e}}}});var OM=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("li",{staticClass:"activity-entry"},[t("NcAvatar",{class:[e.applyMonochromeIconColor,"activity-entry__icon","activity-icon"],attrs:{"disable-menu":!0,"disable-tooltip":!0,url:e.activity.icon,size:20}}),t("div",{staticClass:"activity-entry__content"},[t("NcRichText",{staticClass:"activity-entry__content__subject",attrs:{text:e.subjectText,arguments:e.subjectArguments}}),t("NcRichText",{staticClass:"activity-entry__content__message",attrs:{text:e.messageText,arguments:e.messageArguments}})],1),t("span",{staticClass:"hidden-visually"},[e._v(e._s(e.activity.formattedDate))]),t("span",{staticClass:"activity-entry__date",attrs:{title:e.activity.formattedDate,"data-testid":"activity-date"}},[e._v(e._s(e.dateFromNow))]),e.showPreviews?t("div",{staticClass:"activity-entry__preview-wrapper"},e._l(e.activity.previews,function(a,i){return t(a.link?"a":"span",{key:a.fileId??`preview-${i}`,tag:"component",staticClass:"activity-entry__preview",attrs:{href:a.link},on:{click:function(n){return e.handlePreviewClick(n,a)}}},[t("img",{staticClass:"activity-entry__preview-image",class:{"activity-entry__preview-mimetype":a.isMimeTypeIcon},attrs:{src:a.source,alt:a.link?e.t("activity","Open {filename}",{filename:a.filename}):""}})])}),1):e._e()],1)},xM=[],BM=ti(wM,OM,xM,!1,null,"7cfe8c52",null,null);const e7=BM.exports;export{UM as $,e7 as A,uf as V,IM as W,df as _,No as a,wE as b,Jf as c,Zb as d,es as e,ZM as f,TE as g,pn as h,Du as i,ai as m,rl as n,du as p,uD as t,GM as u,Ef as v}; +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()),this._categories=this._categories.filter(function(H){return H.emojis.length>0}),this._categories[0].first=!0,Object.freeze(this._categories),this.activeCategory=this._categories[0],this.searchEmojis=null,this.previewEmoji=null,this.previewEmojiCategoryIdx=0,this.previewEmojiIdx=-1}return Z(F,[{key:"onScroll",value:function(){for(var b=this._vm.$refs.scroll.scrollTop,N=this.filteredCategories[0],B=0,H=this.filteredCategories.length;Bb)break;N=ee}this.activeCategory=N}},{key:"allCategories",get:function(){return this._categories}},{key:"filteredCategories",get:function(){return this.searchEmojis?[{id:"search",name:"Search",emojis:this.searchEmojis}]:this._categories.filter(function(b){return b.emojis.length>0})}},{key:"previewEmojiCategory",get:function(){return this.previewEmojiCategoryIdx>=0?this.filteredCategories[this.previewEmojiCategoryIdx]:null}},{key:"onAnchorClick",value:function(b){var N=this;if(!this.searchEmojis){var B=this.filteredCategories.indexOf(b),H=this._vm.getCategoryComponent(B);this._vm.infiniteScroll?function(){if(H){var ee=H.$el.offsetTop;b.first&&(ee=0),N._vm.$refs.scroll.scrollTop=ee}}():this.activeCategory=this.filteredCategories[B]}}},{key:"onSearch",value:function(b){var N=this._data.search(b,this.maxSearchResults);this.searchEmojis=N,this.previewEmojiCategoryIdx=0,this.previewEmojiIdx=0,this.updatePreviewEmoji()}},{key:"onEmojiEnter",value:function(b){this.previewEmoji=b,this.previewEmojiIdx=-1,this.previewEmojiCategoryIdx=-1}},{key:"onEmojiLeave",value:function(b){this.previewEmoji=null}},{key:"onArrowLeft",value:function(){this.previewEmojiIdx>0?this.previewEmojiIdx-=1:(this.previewEmojiCategoryIdx-=1,this.previewEmojiCategoryIdx<0?this.previewEmojiCategoryIdx=0:this.previewEmojiIdx=this.filteredCategories[this.previewEmojiCategoryIdx].emojis.length-1),this.updatePreviewEmoji()}},{key:"onArrowRight",value:function(){this.previewEmojiIdx=this.filteredCategories.length?this.previewEmojiCategoryIdx=this.filteredCategories.length-1:this.previewEmojiIdx=0),this.updatePreviewEmoji()}},{key:"onArrowDown",value:function(){if(this.previewEmojiIdx==-1)return this.onArrowRight();var b=this.filteredCategories[this.previewEmojiCategoryIdx].emojis.length,N=this._perLine;this.previewEmojiIdx+N>b&&(N=b%this._perLine);for(var B=0;B0?this.filteredCategories[this.previewEmojiCategoryIdx-1].emojis.length%this._perLine:0);for(var N=0;NH+N.scrollTop&&(N.scrollTop+=B.offsetHeight),B&&B.offsetTop"u")return 0;var F=document.createElement("div");F.style.width="100px",F.style.height="100px",F.style.overflow="scroll",F.style.position="absolute",F.style.top="-9999px",document.body.appendChild(F);var b=F.offsetWidth-F.clientWidth;return document.body.removeChild(F),b}()},filteredCategories:function(){return this.view.filteredCategories},mergedI18n:function(){return Object.freeze(A(Be,this.i18n))},idleEmoji:function(){try{return this.data.emoji(this.emoji)}catch(F){return console.error("Default preview emoji `"+this.emoji+"` is not available, check the Picker `emoji` property"),console.error(F),this.data.firstEmoji()}}},methods:{onScroll:function(){this.infiniteScroll&&!this.waitingForPaint&&(this.waitingForPaint=!0,window.requestAnimationFrame(this.onScrollPaint.bind(this)))},onScrollPaint:function(){this.waitingForPaint=!1,this.view.onScroll()},onAnchorClick:function(F){this.view.onAnchorClick(F)},onSearch:function(F){this.view.onSearch(F)},onEmojiEnter:function(F){this.view.onEmojiEnter(F)},onEmojiLeave:function(F){this.view.onEmojiLeave(F)},onArrowLeft:function(F){var b=this.view.previewEmojiIdx;this.view.onArrowLeft(),F&&this.view.previewEmojiIdx!==b&&F.preventDefault()},onArrowRight:function(){this.view.onArrowRight()},onArrowDown:function(){this.view.onArrowDown()},onArrowUp:function(F){this.view.onArrowUp(),F.preventDefault()},onEnter:function(){this.view.previewEmoji&&(this.$emit("select",this.view.previewEmoji),M.add(this.view.previewEmoji))},onEmojiClick:function(F){this.$emit("select",F),M.add(F)},onTextSelect:function(F){F.stopPropagation()},onSkinChange:function(F){this.activeSkin=F,f.update({skin:F}),this.$emit("skin-change",F)},getCategoryComponent:function(F){var b=this.$refs["categories_"+F];return b&&"0"in b?b[0]:b}},components:{Anchors:k,Category:ft,Preview:v,Search:w}},W=g(G,function(){var F=this,b=F.$createElement,N=F._self._c||b;return N("section",{staticClass:"emoji-mart emoji-mart-static",style:F.customStyles},[F.showCategories?N("div",{staticClass:"emoji-mart-bar emoji-mart-bar-anchors"},[N("anchors",{attrs:{data:F.data,i18n:F.mergedI18n,color:F.color,categories:F.view.allCategories,"active-category":F.view.activeCategory},on:{click:F.onAnchorClick}})],1):F._e(),F._v(" "),F._t("searchTemplate",function(){return[F.showSearch?N("search",{ref:"search",attrs:{data:F.data,i18n:F.mergedI18n,"auto-focus":F.autoFocus,"on-search":F.onSearch},on:{search:F.onSearch,arrowLeft:F.onArrowLeft,arrowRight:F.onArrowRight,arrowDown:F.onArrowDown,arrowUp:F.onArrowUp,enter:F.onEnter,select:F.onTextSelect}}):F._e()]},{data:F.data,i18n:F.i18n,autoFocus:F.autoFocus,onSearch:F.onSearch}),F._v(" "),N("div",{ref:"scroll",staticClass:"emoji-mart-scroll",attrs:{role:"tabpanel"},on:{scroll:F.onScroll}},[N("div",{ref:"scrollContent",attrs:{id:"emoji-mart-list",role:"listbox","aria-expanded":"true"}},[F._t("customCategory"),F._v(" "),F._l(F.view.filteredCategories,function(B,H){return N("category",{directives:[{name:"show",rawName:"v-show",value:F.infiniteScroll||B==F.view.activeCategory,expression:"infiniteScroll || category == view.activeCategory"}],key:B.id,ref:"categories_"+H,refInFor:!0,attrs:{data:F.data,i18n:F.mergedI18n,id:B.id,name:B.name,emojis:B.emojis,"emoji-props":F.emojiProps}})})],2)]),F._v(" "),F._t("previewTemplate",function(){return[F.showPreview?N("div",{staticClass:"emoji-mart-bar emoji-mart-bar-preview"},[N("preview",{attrs:{data:F.data,title:F.title,emoji:F.view.previewEmoji,"idle-emoji":F.idleEmoji,"show-skin-tones":F.showSkinTones,"emoji-props":F.emojiProps,"skin-props":F.skinProps,"on-skin-change":F.onSkinChange}})],1):F._e()]},{data:F.data,title:F.title,emoji:F.view.previewEmoji,idleEmoji:F.idleEmoji,showSkinTones:F.showSkinTones,emojiProps:F.emojiProps,skinProps:F.skinProps,onSkinChange:F.onSkinChange})],2)},[],!1,null,null,null),q=W.exports}(),r}()})})(A_);var Nc=A_.exports;const D7={search:ie("Search emoji"),notfound:ie("No emoji found"),categories:{search:ie("Search results"),recent:ie("Frequently used"),smileys:ie("Smileys & Emotion"),people:ie("People & Body"),nature:ie("Animals & Nature"),foods:ie("Food & Drink"),activity:ie("Activities"),places:ie("Travel & Places"),objects:ie("Objects"),symbols:ie("Symbols"),flags:ie("Flags"),custom:ie("Custom")}};Nc.Emoji,Nc.Picker,ie("Pick an emoji"),ie;const i5={name:"NcResource",components:{NcButton:ai},props:{icon:{type:String,required:!0},name:{type:String,required:!0},url:{type:String,required:!0}},data(){return{labelTranslated:ie('Open link to "{resourceName}"',{resourceName:this.name})}},methods:{t:ie}};var n5=function(){var e=this,t=e._self._c;return t("li",{staticClass:"resource"},[t("NcButton",{staticClass:"resource__button",attrs:{"aria-label":e.labelTranslated,type:"tertiary",href:e.url},scopedSlots:e._u([{key:"icon",fn:function(){return[t("div",{staticClass:"resource__icon"},[t("img",{attrs:{src:e.icon}})])]},proxy:!0}])},[e._v(" "+e._s(e.name)+" ")])],1)},r5=[],o5=de(i5,n5,r5,!1,null,"1a960bef",null,null);const E7=o5.exports;ie("Related resources"),ie("Anything shared with the same group of people will show up here"),ie;const s5={name:"NcMentionBubble",props:{id:{type:String,required:!0},title:{type:String,required:!0},icon:{type:String,required:!0},iconUrl:{type:[String,null],default:null},source:{type:String,required:!0},primary:{type:Boolean,default:!1}},computed:{avatarUrl(){return this.iconUrl?this.iconUrl:this.id&&this.source==="users"?this.getAvatarUrl(this.id,44):null},mentionText(){return!this.id.includes(" ")&&!this.id.includes("/")?`@${this.id}`:`@"${this.id}"`}},methods:{getAvatarUrl(e,t){return _r("/avatar/{user}/{size}",{user:e,size:t})}}};var l5=function(){var e=this,t=e._self._c;return t("span",{staticClass:"mention-bubble",class:{"mention-bubble--primary":e.primary},attrs:{contenteditable:"false"}},[t("span",{staticClass:"mention-bubble__wrapper"},[t("span",{staticClass:"mention-bubble__content"},[t("span",{staticClass:"mention-bubble__icon",class:[e.icon,`mention-bubble__icon--${e.avatarUrl?"with-avatar":""}`],style:e.avatarUrl?{backgroundImage:`url(${e.avatarUrl})`}:null}),t("span",{staticClass:"mention-bubble__title",attrs:{role:"heading",title:e.title}})]),t("span",{staticClass:"mention-bubble__select",attrs:{role:"none"}},[e._v(e._s(e.mentionText))])])])},u5=[],d5=de(s5,l5,u5,!1,null,"357e6d0e",null,null);const b7=d5.exports,S_="(?:^|\\s)",k_="(?:[^a-z]|$)",y7=new RegExp(`${S_}(@[a-zA-Z0-9_.@\\-']+)(${k_})`,"gi"),A7=new RegExp(`${S_}(@"[a-zA-Z0-9 _.@\\-']+")(${k_})`,"gi");if(Array.prototype.find||(Array.prototype.find=function(e){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof e!="function")throw new TypeError("predicate must be a function");for(var t=Object(this),a=t.length>>>0,i=arguments[1],n,r=0;r<~]))"].join("|");return new RegExp(t,e?void 0:"g")}const S7=c5();const h5={name:"NcAutoCompleteResult",props:{title:{type:String,required:!0},subline:{type:String,default:null},id:{type:String,default:null},icon:{type:String,required:!0},iconUrl:{type:String,default:null},source:{type:String,required:!0},status:{type:[Object,Array],default:()=>({})}},computed:{avatarUrl(){return this.iconUrl?this.iconUrl:this.id&&this.source==="users"?this.getAvatarUrl(this.id,44):null},haveStatus(){var e,t,a;return((e=this.status)==null?void 0:e.icon)||((t=this.status)==null?void 0:t.status)&&((a=this.status)==null?void 0:a.status)!=="offline"}},methods:{getAvatarUrl(e,t){return _r("/avatar/{user}/{size}",{user:e,size:t})}}};var f5=function(){var e=this,t=e._self._c;return t("div",{staticClass:"autocomplete-result"},[t("div",{staticClass:"autocomplete-result__icon",class:[e.icon,`autocomplete-result__icon--${e.avatarUrl?"with-avatar":""}`],style:e.avatarUrl?{backgroundImage:`url(${e.avatarUrl})`}:null},[e.haveStatus?t("div",{staticClass:"autocomplete-result__status",class:[`autocomplete-result__status--${e.status&&e.status.icon?"icon":e.status.status}`]},[e._v(" "+e._s(e.status&&e.status.icon||"")+" ")]):e._e()]),t("span",{staticClass:"autocomplete-result__content"},[t("span",{staticClass:"autocomplete-result__title",attrs:{title:e.title}},[e._v(" "+e._s(e.title)+" ")]),e.subline?t("span",{staticClass:"autocomplete-result__subline"},[e._v(" "+e._s(e.subline)+" ")]):e._e()])])},g5=[],_5=de(h5,f5,g5,!1,null,"25cf09d8",null,null);const k7=_5.exports;ie("Write a message …"),Wu(async function(e,t){this.autoComplete(e,t)},100);({...Bo.props,placeholder:ie("Select a tag")});ho,y_.debounce(function(e){this.loadGroup(e)},200);const F5={name:"NcUserBubbleDiv"};var m5=function(){var e=this,t=e._self._c;return t("div",[e._t("trigger")],2)},p5=[],T5=de(F5,m5,p5,!1,null,null,null,null);const D5=T5.exports,E5={name:"NcUserBubble",components:{NcAvatar:y0,NcPopover:fu,NcUserBubbleDiv:D5},props:{avatarImage:{type:String,default:void 0},user:{type:String,default:void 0},displayName:{type:String,default:void 0},showUserStatus:{type:Boolean,default:!1},url:{type:String,default:void 0,validator:e=>{var t;try{return e=new URL(e,(t=e?.startsWith)!=null&&t.call(e,"/")?window.location.href:void 0),!0}catch{return!1}}},open:{type:Boolean,default:!1},primary:{type:Boolean,default:!1},size:{type:Number,default:20},margin:{type:Number,default:2}},emits:["click","update:open"],computed:{isPopoverComponent(){return this.popoverEmpty?"NcUserBubbleDiv":"NcPopover"},isAvatarUrl(){if(!this.avatarImage)return!1;try{return!!new URL(this.avatarImage)}catch{return!1}},isCustomAvatar(){return!!this.avatarImage},hasUrl(){return this.url&&this.url.trim()!==""},isLinkComponent(){return this.hasUrl?"a":"div"},popoverEmpty(){return!("default"in this.$slots)},styles(){return{content:{height:this.size+"px",lineHeight:this.size+"px",borderRadius:this.size/2+"px"},avatar:{marginLeft:this.margin+"px"}}}},mounted(){!this.displayName&&!this.user&&Sa.util.warn("[NcUserBubble] At least `displayName` or `user` property should be set.")},methods:{onOpenChange(e){this.$emit("update:open",e)},onClick(e){this.$emit("click",e)}}};var b5=function(){var e=this,t=e._self._c;return t(e.isPopoverComponent,{tag:"component",staticClass:"user-bubble__wrapper",attrs:{trigger:"hover focus",shown:e.open},on:{"update:open":e.onOpenChange},scopedSlots:e._u([{key:"trigger",fn:function(){return[t(e.isLinkComponent,{tag:"component",staticClass:"user-bubble__content",class:{"user-bubble__content--primary":e.primary},style:e.styles.content,attrs:{href:e.hasUrl?e.url:null},on:{click:e.onClick}},[t("NcAvatar",{staticClass:"user-bubble__avatar",style:e.styles.avatar,attrs:{url:e.isCustomAvatar&&e.isAvatarUrl?e.avatarImage:void 0,"icon-class":e.isCustomAvatar&&!e.isAvatarUrl?e.avatarImage:void 0,user:e.user,"display-name":e.displayName,size:e.size-e.margin*2,"disable-tooltip":!0,"disable-menu":!0,"show-user-status":e.showUserStatus}}),t("span",{staticClass:"user-bubble__name"},[e._v(" "+e._s(e.displayName||e.user)+" ")]),e.$slots.name?t("span",{staticClass:"user-bubble__secondary"},[e._t("name")],2):e._e()],1)]},proxy:!0}],null,!0)},[e._t("default")],2)},y5=[],A5=de(E5,b5,y5,!1,null,"55ab76f1",null,null);const wc=A5.exports;var sn={},S5=ka,k5=Dn,v5=jl,R5=k5("species"),Qu=function(e){return v5>=51||!S5(function(){var t=[],a=t.constructor={};return a[R5]=function(){return{foo:1}},t[e](Boolean).foo!==1})},N5=F0,w5=Kc.map,O5=Qu,x5=O5("map");N5({target:"Array",proto:!0,forced:!x5},{map:function(e){return w5(this,e,arguments.length>1?arguments[1]:void 0)}});var B5=m0,C5=function(){var e=B5(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},Ju=ka,M5=fo,Ku=M5.RegExp,Xu=Ju(function(){var e=Ku("a","y");return e.lastIndex=2,e.exec("abcd")!==null}),Y5=Xu||Ju(function(){return!Ku("a","y").sticky}),L5=Xu||Ju(function(){var e=Ku("^r","gy");return e.lastIndex=2,e.exec("str")!==null}),v_={BROKEN_CARET:L5,MISSED_STICKY:Y5,UNSUPPORTED_Y:Xu},Z5=ka,I5=fo,j5=I5.RegExp,P5=Z5(function(){var e=j5(".","s");return!(e.dotAll&&e.test(` +`)&&e.flags==="s")}),G5=ka,U5=fo,q5=U5.RegExp,H5=G5(function(){var e=q5("(?b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$c")!=="bc"}),Ji=go,zo=_o,z5=Pl,V5=C5,$5=v_,W5=oF,Q5=sF,J5=rF.get,K5=P5,X5=H5,eB=W5("native-string-replace",String.prototype.replace),co=RegExp.prototype.exec,xl=co,tB=zo("".charAt),aB=zo("".indexOf),iB=zo("".replace),Bs=zo("".slice),Bl=function(){var e=/a/,t=/b*/g;return Ji(co,e,"a"),Ji(co,t,"a"),e.lastIndex!==0||t.lastIndex!==0}(),R_=$5.BROKEN_CARET,Cl=/()??/.exec("")[1]!==void 0,nB=Bl||Cl||R_||K5||X5;nB&&(xl=function(e){var t=this,a=J5(t),i=z5(e),n=a.raw,r,o,s,l,d,u,c;if(n)return n.lastIndex=t.lastIndex,r=Ji(xl,n,i),t.lastIndex=n.lastIndex,r;var f=a.groups,h=R_&&t.sticky,_=Ji(V5,t),m=t.source,p=0,T=i;if(h&&(_=iB(_,"y",""),aB(_,"g")===-1&&(_+="g"),T=Bs(i,t.lastIndex),t.lastIndex>0&&(!t.multiline||t.multiline&&tB(i,t.lastIndex-1)!==` +`)&&(m="(?: "+m+")",T=" "+T,p++),o=new RegExp("^(?:"+m+")",_)),Cl&&(o=new RegExp("^"+m+"$(?!\\s)",_)),Bl&&(s=t.lastIndex),l=Ji(co,h?o:t,T),h?l?(l.input=Bs(l.input,p),l[0]=Bs(l[0],p),l.index=t.lastIndex,t.lastIndex+=l[0].length):t.lastIndex=0:Bl&&l&&(t.lastIndex=t.global?l.index+l[0].length:s),Cl&&l&&l.length>1&&Ji(eB,l[0],o,function(){for(d=1;d1||"".split(/.?/).length?i=function(n,r){var o=Ms(Lc(this)),s=r===void 0?jc:r>>>0;if(s===0)return[];if(n===void 0)return[o];if(!BB(n))return On(t,o,n,s);for(var l=[],d=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")+(n.sticky?"y":""),u=0,c=new RegExp(n.source,d+"g"),f,h,_;(f=On(ZB,c,o))&&(h=c.lastIndex,!(h>u&&(Zi(l,xn(o,u,f.index)),f.length>1&&f.index=s)));)c.lastIndex===f.index&&c.lastIndex++;return u===o.length?(_||!GB(c,""))&&Zi(l,""):Zi(l,xn(o,u)),l.length>s?Zc(l,0,s):l}:"0".split(void 0,0).length?i=function(n,r){return n===void 0&&r===0?[]:On(t,this,n,r)}:i=t,[function(n,r){var o=Lc(this),s=xB(n)?void 0:LB(n,e);return s?On(s,n,o,r):On(i,Ms(o),n,r)},function(n,r){var o=OB(this),s=Ms(n),l=a(i,o,s,r,i!==t);if(l.done)return l.value;var d=CB(o,RegExp),u=o.unicode,c=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(Li?"g":"y"),f=new d(Li?"^(?:"+o.source+")":o,c),h=r===void 0?jc:r>>>0;if(h===0)return[];if(s.length===0)return Ic(f,s)===null?[s]:[];for(var _=0,m=0,p=[];m]*>)/g,$B=/\$([$&'`]|\d{1,2})/g,WB=function(e,t,a,i,n,r){var o=a+e.length,s=i.length,l=$B;return n!==void 0&&(n=qB(n),l=VB),zB(r,l,function(d,u){var c;switch(Ys(u,0)){case"$":return"$";case"&":return e;case"`":return Ls(t,0,a);case"'":return Ls(t,o);case"<":c=n[Ls(u,1,-1)];break;default:var f=+u;if(f===0)return d;if(f>s){var h=HB(f/10);return h===0?d:h<=s?i[h-1]===void 0?Ys(u,1):i[h-1]+Ys(u,1):d}c=i[f-1]}return c===void 0?"":c})},QB=nh,Pc=go,$o=_o,JB=w_,KB=ka,XB=m0,eC=eh,tC=Ul,aC=_F,iC=ah,Ii=Pl,nC=th,rC=O_,oC=ih,sC=WB,lC=x_,uC=Dn,Ml=uC("replace"),dC=Math.max,cC=Math.min,hC=$o([].concat),Zs=$o([].push),Gc=$o("".indexOf),Uc=$o("".slice),fC=function(e){return e===void 0?e:String(e)},gC=function(){return"a".replace(/./,"$0")==="$0"}(),qc=function(){return/./[Ml]?/./[Ml]("a","$0")==="":!1}(),_C=!KB(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$")!=="7"});JB("replace",function(e,t,a){var i=qc?"$":"$0";return[function(n,r){var o=nC(this),s=tC(n)?void 0:oC(n,Ml);return s?Pc(s,n,o,r):Pc(t,Ii(o),n,r)},function(n,r){var o=XB(this),s=Ii(n);if(typeof r=="string"&&Gc(r,i)===-1&&Gc(r,"$<")===-1){var l=a(t,o,s,r);if(l.done)return l.value}var d=eC(r);d||(r=Ii(r));var u=o.global,c;u&&(c=o.unicode,o.lastIndex=0);for(var f=[],h;h=lC(o,s),!(h===null||(Zs(f,h),!u));){var _=Ii(h[0]);_===""&&(o.lastIndex=rC(s,iC(o.lastIndex),c))}for(var m="",p=0,T=0;T=p&&(m+=Uc(s,p,S)+j,p=S+R.length)}return m+Uc(s,p)}]},!_C||!gC||qc);var FC=F0,mC=Kc.filter,pC=Qu,TC=pC("filter");FC({target:"Array",proto:!0,forced:!TC},{filter:function(e){return mC(this,e,arguments.length>1?arguments[1]:void 0)}});var DC=FF,EC=ql,bC=mF,yC=rh,AC=TypeError,Hc=function(e){return function(t,a,i,n){DC(a);var r=EC(t),o=bC(r),s=yC(r),l=e?s-1:0,d=e?-1:1;if(i<2)for(;;){if(l in o){n=o[l],l+=d;break}if(l+=d,e?l<0:s<=l)throw new AC("Reduce of empty array with no initial value")}for(;e?l>=0:s>l;l+=d)l in o&&(n=a(n,o[l],l,r));return n}},SC={left:Hc(!1),right:Hc(!0)},kC=ka,vC=function(e,t){var a=[][e];return!!a&&kC(function(){a.call(null,t||function(){return 1},1)})},RC=fo,NC=Gl,wC=NC(RC.process)==="process",OC=F0,xC=SC.left,BC=vC,zc=jl,CC=wC,MC=!CC&&zc>79&&zc<83,YC=MC||!BC("reduce");OC({target:"Array",proto:!0,forced:YC},{reduce:function(e){var t=arguments.length;return xC(this,e,t,t>1?arguments[1]:void 0)}});var LC=TypeError,ZC=9007199254740991,IC=function(e){if(e>ZC)throw LC("Maximum allowed index exceeded");return e},jC=F0,PC=ka,GC=DF,UC=Xc,qC=ql,HC=rh,Vc=IC,$c=pF,zC=TF,VC=Qu,$C=Dn,WC=jl,C_=$C("isConcatSpreadable"),QC=WC>=51||!PC(function(){var e=[];return e[C_]=!1,e.concat()[0]!==e}),JC=function(e){if(!UC(e))return!1;var t=e[C_];return t!==void 0?!!t:GC(e)},KC=!QC||!VC("concat");jC({target:"Array",proto:!0,arity:1,forced:KC},{concat:function(e){var t=qC(this),a=zC(t,0),i=0,n,r,o,s,l;for(n=-1,o=arguments.length;n0});if(i.length<1)return"";var n=i[i.length-1],r=i[0].charAt(0)==="/",o=n.charAt(n.length-1)==="/",s=i.reduce(function(u,c){return u.concat(c.split("/"))},[]),l=!r,d=s.reduce(function(u,c){return c===""?u:l?(l=!1,u+c):u+"/"+c},"");return o?d+"/":d}function iM(e,t){var a=(e||"").split("/").filter(function(n){return n!=="."}),i=(t||"").split("/").filter(function(n){return n!=="."});return e=Yl.apply(void 0,a),t=Yl.apply(void 0,i),e===t}const nM={name:"FileRichArgument",props:{name:{type:String,required:!0},path:{type:String,required:!0},link:{type:String,required:!0}},methods:{t:Fr},computed:{isRoot(){return Wc(this.path,"")},parentPathIsRoot(){return Wc(this.parentFolder,"/")},parentFolder(){return XC(this.name)}}};var rM=function(){var e=this,t=e._self._c;return t("span",{staticClass:"rich-text-file"},[!e.isRoot&&e.parentPathIsRoot?t("a",{attrs:{href:e.link}},[e._v(e._s(e.name))]):e._e(),!e.isRoot&&!e.parentPathIsRoot?t("a",{attrs:{title:e.t("activity","in {path}",{path:e.parentFolder}),"aria-label":e.t("activity","in {path}",{path:e.parentFolder}),href:e.link}},[e._v(e._s(e.name))]):e._e(),e.isRoot?t("span",{staticClass:"icon-home",attrs:{title:e.t("activity","Home"),"aria-label":"t('activity', 'Home')"}}):e._e()])},oM=[],sM=zt(nM,rM,oM,!1,null,"f30ef6d6",null,null);const lM=sM.exports,uM={name:"EmailRichArgument",props:{id:{type:String,required:!0},name:{type:String,required:!0}}};var dM=function(){var e=this,t=e._self._c;return t("a",{attrs:{href:`mailto:${e.id}`}},[e._v(e._s(e.name))])},cM=[],hM=zt(uM,dM,cM,!1,null,null,null,null);const fM=hM.exports;const gM={name:"SystemTagRichArgument",props:{name:{type:String,required:!0}}};var _M=function(){var e=this,t=e._self._c;return t("strong",[e._v(e._s(e.name))])},FM=[],mM=zt(gM,_M,FM,!1,null,"b8794790",null,null);const pM=mM.exports,TM={name:"CalendarRichArgument",props:{name:{type:String,required:!0}}};var DM=function(){var e=this,t=e._self._c;return t("strong",[e._v(e._s(e.name))])},EM=[],bM=zt(TM,DM,EM,!1,null,null,null,null);const yM=bM.exports,AM={name:"CalendarEventRichArgument",props:{name:{type:String,required:!0},title:{type:String,required:!0},link:{type:String,required:!0}}};var SM=function(){var e=this,t=e._self._c;return t("a",{attrs:{href:e.link,title:e.title}},[t("strong",[e._v(e._s(e.name))])])},kM=[],vM=zt(AM,SM,kM,!1,null,null,null,null);const RM=vM.exports,NM={name:"OpenGraphRichArgument",props:{id:{type:String,required:!0},name:{type:String,required:!0},description:{type:String,required:!0},thumb:{type:String,default:""},link:{type:String,required:!0},website:{type:String,required:!0}},computed:{thumbIsDefined(){return this.thumb!==""}}};var wM=function(){var e=this,t=e._self._c;return t("a",{attrs:{href:e.link}},[t("div",{staticClass:"opengraph",attrs:{id:`opengraph-${e.id}`}},[e.thumbIsDefined?t("div",{staticClass:"opengraph-thumb",style:`background-image: url('${e.thumb}')`}):e._e(),t("div",{staticClass:"opengraph-name",class:{"opengraph-with-thumb":e.thumbIsDefined}},[e._v(e._s(e.name))]),t("div",{staticClass:"opengraph-description",class:{"opengraph-with-thumb":e.thumbIsDefined}},[e._v(e._s(e.description))]),t("span",{staticClass:"opengraph-website"},[e._v(e._s(e.website))])])])},OM=[],xM=zt(NM,wM,OM,!1,null,null,null,null);const BM=xM.exports,CM={name:"AddressBookRichArgument",props:{name:{type:String,required:!0}}};var MM=function(){var e=this,t=e._self._c;return t("strong",[e._v(e._s(e.name))])},YM=[],LM=zt(CM,MM,YM,!1,null,null,null,null);const ZM=LM.exports;function Ll(e){const t={};for(const a in e)t[a]=IM(e[a]);return t}function IM(e){switch(e.type){case"file":return{component:lM,props:e};case"user":return{component:wc,props:{displayName:e.name,user:e.id,url:e.link}};case"group":return{component:wc,props:{avatarImage:"icon-group",displayName:e.name,primary:!0}};case"email":return{component:fM,props:e};case"systemtag":return{component:pM,props:e};case"opengraph":return{component:BM,props:e};case"calendar":return{component:yM,props:e};case"calendar-event":return{component:RM,props:e};case"addressbook":return{component:ZM,props:e};default:return e}}const jM=Tn({__name:"CommentActivity",props:{activity:null,showPreviews:{type:Boolean}},setup(e){const t=e,a=ze(()=>t.activity.subjectRichObjects?.author?.id??t.activity.user),i=ze(()=>t.activity.user===Tr()?.uid?Fr("activity","You commented"):t.activity.subjectRichObjects?.author?.name??t.activity.user),n=ze(()=>t.activity.timestamp*1e3),r=ze(()=>t.activity.messageRichTemplate||t.activity.message||Fr("activity","Message deleted by author")),o=ze(()=>t.activity.subjectRichTemplate||t.activity.subject),s=ze(()=>Ll(t.activity.subjectRichObjects));return{__sfc:!0,props:t,authorId:a,authorDisplayName:i,timestamp:n,messageText:r,subjectText:o,subjectArguments:s,NcAvatar:y0,NcDateTime:Jf,NcRichText:e_}}});var PM=function(){var e=this,t=e._self._c,a=e._self._setupProxy;return t("li",{staticClass:"activity-entry comments-activity"},[t(a.NcAvatar,{staticClass:"comments-activity__icon",attrs:{"disable-menu":!1,user:a.authorId}}),t("div",{staticClass:"comments-activity__content"},[e.showPreviews?t(a.NcRichText,{staticClass:"comments-activity__title",attrs:{text:a.subjectText,arguments:a.subjectArguments}}):t("div",{staticClass:"comments-activity__title"},[e._v(" "+e._s(a.authorDisplayName)+" ")]),t(a.NcRichText,{staticClass:"comments-activity__subline",attrs:{text:a.messageText,arguments:e.activity.messageRichObjects}})],1),t("span",{staticClass:"hidden-visually"},[e._v(e._s(e.activity.formattedDate))]),t(a.NcDateTime,{staticClass:"comments-activity__date",attrs:{"data-testid":"activity-date",timestamp:a.timestamp,"ignore-seconds":!0}})],1)},GM=[],UM=zt(jM,PM,GM,!1,null,"d0df7393",null,null);const qM=UM.exports,HM=Tn({name:"GenericActivity",components:{NcAvatar:y0,NcDateTime:Jf,NcRichText:e_},props:{activity:{type:kf,required:!0},showPreviews:{type:Boolean,default:!1}},computed:{timestamp(){return this.activity.timestamp*1e3},messageText(){return this.activity.messageRichTemplate||this.activity.message},messageArguments(){return Ll(this.activity.messageRichObjects)},subjectText(){return this.activity.subjectRichTemplate||this.activity.subject},subjectArguments(){return Ll(this.activity.subjectRichObjects)},applyMonochromeIconColor(){return this.activity.type!=="file_created"&&this.activity.type!=="file_deleted"&&this.activity.type!=="favorite"&&!this.activity.icon.endsWith("-color.svg")?"monochrome":""}},methods:{t:Fr,handlePreviewClick(e,t){if(t.filePath&&window?.OCA?.Viewer?.open!==void 0&&window.OCA.Viewer.mimetypes.includes(t.mimeType))try{window.OCA.Viewer.open({path:t.filePath.replace(/^\/[^/]+\/files/,"")}),e.preventDefault(),e.stopPropagation()}catch(a){EF.debug(a)}}}});var zM=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("li",{staticClass:"activity-entry"},[t("NcAvatar",{class:[e.applyMonochromeIconColor,"activity-entry__icon","activity-icon"],attrs:{"disable-menu":!0,"disable-tooltip":!0,url:e.activity.icon,size:20}}),t("div",{staticClass:"activity-entry__content"},[t("NcRichText",{staticClass:"activity-entry__content__subject",attrs:{text:e.subjectText,arguments:e.subjectArguments}}),t("NcRichText",{staticClass:"activity-entry__content__message",attrs:{text:e.messageText,arguments:e.messageArguments}})],1),t("span",{staticClass:"hidden-visually"},[e._v(e._s(e.activity.formattedDate))]),t("NcDateTime",{staticClass:"activity-entry__date",attrs:{timestamp:e.timestamp,"ignore-seconds":!0,"data-testid":"activity-date"}}),e.showPreviews?t("div",{staticClass:"activity-entry__preview-wrapper"},e._l(e.activity.previews,function(a,i){return t(a.link?"a":"span",{key:a.fileId??`preview-${i}`,tag:"component",staticClass:"activity-entry__preview",attrs:{href:a.link},on:{click:function(n){return e.handlePreviewClick(n,a)}}},[t("img",{staticClass:"activity-entry__preview-image",class:{"activity-entry__preview-mimetype":a.isMimeTypeIcon},attrs:{src:a.source,alt:a.link?e.t("activity","Open {filename}",{filename:a.filename}):""}})])}),1):e._e()],1)},VM=[],$M=zt(HM,zM,VM,!1,null,"d3cd8992",null,null);const WM=$M.exports,QM=Tn({__name:"PluginActivity",props:{activity:null,showPreviews:{type:Boolean}},emits:["reload"],setup(e,{emit:t}){const a=e,i=ut();return Jc(()=>a.activity.mount(i.value,{context:Qc()?.proxy,reload:()=>t("reload")})),tF(()=>a.activity.unmount()),{__sfc:!0,props:a,emit:t,activityMount:i}}});var JM=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("li",{ref:"activityMount"})},KM=[],XM=zt(QM,JM,KM,!1,null,null,null,null);const e7=XM.exports,t7=Tn({__name:"Activity",props:{activity:null,showPreviews:{type:Boolean}},setup(e){const t=e,a=ze(()=>t),i=ze(()=>{if(!(t.activity instanceof kf))return console.warn(t.activity),e7;switch(t.activity.type){case"comments":return qM;default:return WM}});return{__sfc:!0,props:t,activityOptions:a,activityComponent:i}}});var a7=function(){var e=this,t=e._self._c,a=e._self._setupProxy;return t(a.activityComponent,e._b({tag:"component",on:{reload:function(i){return e.$emit("reload")}}},"component",a.activityOptions,!1))},i7=[],n7=zt(t7,a7,i7,!1,null,null,null,null);const v7=n7.exports;export{m7 as $,v7 as A,ff as V,h7 as W,gf as _,xo as a,E9 as b,Bf as c,Vy as d,is as e,c7 as f,kf as g,fn as h,_u as i,ai as m,rl as n,hu as p,_D as t,F7 as u,Sf as v}; diff --git a/js/Activity-9797d778.mjs.map b/js/Activity-9797d778.mjs.map new file mode 100644 index 000000000..0bf0c9d07 --- /dev/null +++ b/js/Activity-9797d778.mjs.map @@ -0,0 +1 @@ +{"version":3,"file":"Activity-9797d778.mjs","sources":["../node_modules/moment/dist/moment.js","../node_modules/@nextcloud/moment/dist/index.js","../node_modules/@nextcloud/vue/dist/Components/NcButton.mjs","../node_modules/floating-vue/node_modules/@floating-ui/core/dist/floating-ui.core.esm.js","../node_modules/floating-vue/node_modules/@floating-ui/dom/dist/floating-ui.dom.esm.js","../node_modules/floating-vue/dist/floating-vue.es.js","../node_modules/@nextcloud/vue/dist/Directives/Tooltip.mjs","../node_modules/@nextcloud/vue/dist/chunks/ArrowRight-74a9fcb2.mjs","../node_modules/@nextcloud/vue/dist/Mixins/isMobile.mjs","../node_modules/@nextcloud/browser-storage/dist/scopedstorage.js","../node_modules/@nextcloud/browser-storage/dist/storagebuilder.js","../node_modules/@nextcloud/browser-storage/dist/index.js","../node_modules/@vueuse/shared/node_modules/vue-demi/lib/index.mjs","../node_modules/@vueuse/shared/index.mjs","../node_modules/@vueuse/core/node_modules/vue-demi/lib/index.mjs","../node_modules/@vueuse/core/index.mjs","../node_modules/splitpanes/dist/splitpanes.es.js","../node_modules/@nextcloud/vue/dist/Components/NcAppContent.mjs","../node_modules/@nextcloud/vue/dist/Components/NcIconSvgWrapper.mjs","../node_modules/@nextcloud/vue/dist/Components/NcEmptyContent.mjs","../src/models/ActivityModel.ts","../node_modules/tabbable/dist/index.esm.js","../node_modules/focus-trap/dist/focus-trap.esm.js","../node_modules/@nextcloud/vue/dist/chunks/focusTrap-5d0f71d4.mjs","../node_modules/@nextcloud/vue/dist/Components/NcPopover.mjs","../node_modules/@nextcloud/vue/dist/chunks/DotsHorizontal-0ee7d901.mjs","../node_modules/@nextcloud/vue/dist/Components/NcActions.mjs","../node_modules/@nextcloud/vue/dist/chunks/actionGlobal-8c1c28c9.mjs","../node_modules/@nextcloud/vue/dist/chunks/actionText-a64be267.mjs","../node_modules/@nextcloud/vue/dist/Components/NcActionLink.mjs","../node_modules/@nextcloud/vue/dist/chunks/GenColors-38246c38.mjs","../node_modules/crypt/crypt.js","../node_modules/charenc/charenc.js","../node_modules/is-buffer/index.js","../node_modules/md5/md5.js","../node_modules/@nextcloud/vue/dist/Functions/usernameToColor.mjs","../node_modules/linkifyjs/dist/linkify.es.js","../node_modules/linkify-string/dist/linkify-string.es.js","../node_modules/striptags/src/striptags.js","../node_modules/@nextcloud/capabilities/dist/index.js","../node_modules/@vueuse/components/node_modules/vue-demi/lib/index.mjs","../node_modules/@vueuse/components/index.mjs","../node_modules/@nextcloud/vue/dist/chunks/index-a01ff595.mjs","../node_modules/@nextcloud/vue/dist/Components/NcDateTime.mjs","../node_modules/@nextcloud/vue/dist/chunks/index-20a9ace9.mjs","../node_modules/@nextcloud/vue-select/dist/vue-select.js","../node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs","../node_modules/@floating-ui/core/dist/floating-ui.core.mjs","../node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.mjs","../node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs","../node_modules/@nextcloud/vue/dist/chunks/ChevronDown-a72d365d.mjs","../node_modules/@nextcloud/vue/dist/chunks/Close-271f72e2.mjs","../node_modules/@nextcloud/vue/dist/Components/NcEllipsisedOption.mjs","../node_modules/@nextcloud/vue/dist/Components/NcListItemIcon.mjs","../node_modules/@nextcloud/vue/dist/Components/NcSelect.mjs","../node_modules/@nextcloud/vue/dist/chunks/AlertCircleOutline-b73838e0.mjs","../node_modules/@nextcloud/vue/dist/chunks/Check-2ea0a88a.mjs","../node_modules/@nextcloud/vue/dist/Components/NcInputField.mjs","../node_modules/@nextcloud/vue/dist/Components/NcTextField.mjs","../node_modules/@nextcloud/vue/dist/chunks/ScopeComponent-5b9e60d8.mjs","../node_modules/@nextcloud/vue/dist/chunks/ChevronRight-1a6a6cf2.mjs","../node_modules/@nextcloud/vue/dist/Components/NcModal.mjs","../node_modules/@nextcloud/vue/dist/chunks/ArrowLeft-3779ba88.mjs","../node_modules/@nextcloud/vue/dist/chunks/referencePickerModal-58498cac.mjs","../node_modules/unist-util-is/lib/index.js","../node_modules/unist-util-visit-parents/lib/index.js","../node_modules/unist-util-visit/lib/index.js","../node_modules/unist-builder/lib/index.js","../node_modules/bail/index.js","../node_modules/extend/index.js","../node_modules/unified/node_modules/is-plain-obj/index.js","../node_modules/trough/index.js","../node_modules/unist-util-stringify-position/lib/index.js","../node_modules/vfile-message/lib/index.js","../node_modules/vfile/lib/minpath.browser.js","../node_modules/vfile/lib/minproc.browser.js","../node_modules/vfile/lib/minurl.shared.js","../node_modules/vfile/lib/minurl.browser.js","../node_modules/vfile/lib/index.js","../node_modules/unified/lib/callable-instance.js","../node_modules/unified/lib/index.js","../node_modules/mdast-util-to-string/lib/index.js","../node_modules/decode-named-character-reference/index.dom.js","../node_modules/micromark-util-chunked/index.js","../node_modules/micromark-util-combine-extensions/index.js","../node_modules/micromark-util-decode-numeric-character-reference/index.js","../node_modules/micromark-util-normalize-identifier/index.js","../node_modules/micromark-util-character/index.js","../node_modules/micromark-util-sanitize-uri/index.js","../node_modules/micromark-factory-space/index.js","../node_modules/micromark/lib/initialize/content.js","../node_modules/micromark/lib/initialize/document.js","../node_modules/micromark-util-classify-character/index.js","../node_modules/micromark-util-resolve-all/index.js","../node_modules/micromark-core-commonmark/lib/attention.js","../node_modules/micromark-core-commonmark/lib/autolink.js","../node_modules/micromark-core-commonmark/lib/blank-line.js","../node_modules/micromark-core-commonmark/lib/block-quote.js","../node_modules/micromark-core-commonmark/lib/character-escape.js","../node_modules/micromark-core-commonmark/lib/character-reference.js","../node_modules/micromark-core-commonmark/lib/code-fenced.js","../node_modules/micromark-core-commonmark/lib/code-indented.js","../node_modules/micromark-core-commonmark/lib/code-text.js","../node_modules/micromark-util-subtokenize/index.js","../node_modules/micromark-core-commonmark/lib/content.js","../node_modules/micromark-factory-destination/index.js","../node_modules/micromark-factory-label/index.js","../node_modules/micromark-factory-title/index.js","../node_modules/micromark-factory-whitespace/index.js","../node_modules/micromark-core-commonmark/lib/definition.js","../node_modules/micromark-core-commonmark/lib/hard-break-escape.js","../node_modules/micromark-core-commonmark/lib/heading-atx.js","../node_modules/micromark-util-html-tag-name/index.js","../node_modules/micromark-core-commonmark/lib/html-flow.js","../node_modules/micromark-core-commonmark/lib/html-text.js","../node_modules/micromark-core-commonmark/lib/label-end.js","../node_modules/micromark-core-commonmark/lib/label-start-image.js","../node_modules/micromark-core-commonmark/lib/label-start-link.js","../node_modules/micromark-core-commonmark/lib/line-ending.js","../node_modules/micromark-core-commonmark/lib/thematic-break.js","../node_modules/micromark-core-commonmark/lib/list.js","../node_modules/micromark-core-commonmark/lib/setext-underline.js","../node_modules/micromark/lib/initialize/flow.js","../node_modules/micromark/lib/initialize/text.js","../node_modules/micromark/lib/create-tokenizer.js","../node_modules/micromark/lib/constructs.js","../node_modules/micromark/lib/parse.js","../node_modules/micromark/lib/postprocess.js","../node_modules/micromark/lib/preprocess.js","../node_modules/micromark-util-decode-string/index.js","../node_modules/mdast-util-from-markdown/lib/index.js","../node_modules/remark-parse/lib/index.js","../node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.js","../node_modules/mdast-util-find-and-replace/lib/index.js","../node_modules/mdast-util-newline-to-break/lib/index.js","../node_modules/remark-breaks/lib/index.js","../node_modules/mdast-util-to-hast/lib/handlers/blockquote.js","../node_modules/mdast-util-to-hast/lib/handlers/break.js","../node_modules/mdast-util-to-hast/lib/handlers/code.js","../node_modules/mdast-util-to-hast/lib/handlers/delete.js","../node_modules/mdast-util-to-hast/lib/handlers/emphasis.js","../node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js","../node_modules/mdast-util-to-hast/lib/handlers/heading.js","../node_modules/mdast-util-to-hast/lib/handlers/html.js","../node_modules/mdast-util-to-hast/lib/revert.js","../node_modules/mdast-util-to-hast/lib/handlers/image-reference.js","../node_modules/mdast-util-to-hast/lib/handlers/image.js","../node_modules/mdast-util-to-hast/lib/handlers/inline-code.js","../node_modules/mdast-util-to-hast/lib/handlers/link-reference.js","../node_modules/mdast-util-to-hast/lib/handlers/link.js","../node_modules/mdast-util-to-hast/lib/handlers/list-item.js","../node_modules/mdast-util-to-hast/lib/handlers/list.js","../node_modules/mdast-util-to-hast/lib/handlers/paragraph.js","../node_modules/mdast-util-to-hast/lib/handlers/root.js","../node_modules/mdast-util-to-hast/lib/handlers/strong.js","../node_modules/unist-util-position/lib/index.js","../node_modules/mdast-util-to-hast/lib/handlers/table.js","../node_modules/mdast-util-to-hast/lib/handlers/table-row.js","../node_modules/mdast-util-to-hast/lib/handlers/table-cell.js","../node_modules/trim-lines/index.js","../node_modules/mdast-util-to-hast/lib/handlers/text.js","../node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js","../node_modules/mdast-util-to-hast/lib/handlers/index.js","../node_modules/@ungap/structured-clone/esm/types.js","../node_modules/@ungap/structured-clone/esm/deserialize.js","../node_modules/@ungap/structured-clone/esm/serialize.js","../node_modules/@ungap/structured-clone/esm/index.js","../node_modules/mdast-util-to-hast/lib/footer.js","../node_modules/mdast-util-to-hast/lib/state.js","../node_modules/mdast-util-to-hast/lib/index.js","../node_modules/remark-rehype/lib/index.js","../node_modules/property-information/lib/util/schema.js","../node_modules/property-information/lib/util/merge.js","../node_modules/property-information/lib/normalize.js","../node_modules/property-information/lib/util/info.js","../node_modules/property-information/lib/util/types.js","../node_modules/property-information/lib/util/defined-info.js","../node_modules/property-information/lib/util/create.js","../node_modules/property-information/lib/xlink.js","../node_modules/property-information/lib/xml.js","../node_modules/property-information/lib/util/case-sensitive-transform.js","../node_modules/property-information/lib/util/case-insensitive-transform.js","../node_modules/property-information/lib/xmlns.js","../node_modules/property-information/lib/aria.js","../node_modules/property-information/lib/html.js","../node_modules/property-information/lib/svg.js","../node_modules/property-information/lib/find.js","../node_modules/property-information/lib/hast-to-react.js","../node_modules/property-information/index.js","../node_modules/space-separated-tokens/index.js","../node_modules/comma-separated-tokens/index.js","../node_modules/inline-style-parser/index.js","../node_modules/style-to-object/index.js","../node_modules/web-namespaces/index.js","../node_modules/hast-to-hyperscript/lib/index.js","../node_modules/@mapbox/hast-util-table-cell-style/node_modules/unist-util-is/convert.js","../node_modules/@mapbox/hast-util-table-cell-style/node_modules/unist-util-visit-parents/index.js","../node_modules/@mapbox/hast-util-table-cell-style/node_modules/unist-util-visit/index.js","../node_modules/@mapbox/hast-util-table-cell-style/index.js","../node_modules/hast-util-whitespace/index.js","../node_modules/rehype-react/lib/index.js","../node_modules/hast-util-is-element/lib/index.js","../node_modules/is-absolute-url/index.js","../node_modules/rehype-external-links/lib/index.js","../node_modules/@nextcloud/vue/dist/chunks/NcRichText-25edeb8e.mjs","../node_modules/@nextcloud/vue/dist/Components/NcActionButton.mjs","../node_modules/@nextcloud/vue/dist/chunks/logger-3612e664.mjs","../node_modules/ical.js/build/ical.js","../node_modules/@nextcloud/vue/node_modules/uuid/dist/esm-browser/rng.js","../node_modules/@nextcloud/vue/node_modules/uuid/dist/esm-browser/stringify.js","../node_modules/@nextcloud/vue/node_modules/uuid/dist/esm-browser/native.js","../node_modules/@nextcloud/vue/node_modules/uuid/dist/esm-browser/v4.js","../node_modules/@nextcloud/vue/node_modules/@nextcloud/calendar-js/dist/index.es.mjs","../node_modules/@nextcloud/vue/dist/Components/NcTimezonePicker.mjs","../node_modules/date-format-parse/es/util.js","../node_modules/date-format-parse/es/locale/en.js","../node_modules/date-format-parse/es/format.js","../node_modules/date-format-parse/es/parse.js","../node_modules/vue2-datepicker/index.esm.js","../node_modules/@nextcloud/vue/dist/Components/NcDateTimePicker.mjs","../node_modules/@nextcloud/vue/dist/Components/NcDateTimePickerNative.mjs","../node_modules/debounce/index.js","../node_modules/@nextcloud/vue/dist/Components/NcPasswordField.mjs","../node_modules/@nextcloud/vue/dist/Components/NcActionInput.mjs","../node_modules/@nextcloud/vue/dist/Components/NcVNodes.mjs","../node_modules/@nextcloud/vue/dist/Mixins/clickOutsideOptions.mjs","../node_modules/@nextcloud/vue/dist/Components/NcAppNavigationSettings.mjs","../node_modules/@nextcloud/vue/dist/Components/NcDialogButton.mjs","../node_modules/@nextcloud/vue/dist/Components/NcDialog.mjs","../node_modules/@nextcloud/vue/dist/Components/NcAppSettingsDialog.mjs","../node_modules/vue-color/dist/vue-color.min.js","../node_modules/@nextcloud/vue/dist/Components/NcDashboardWidgetItem.mjs","../node_modules/@nextcloud/vue/dist/Components/NcDashboardWidget.mjs","../node_modules/emoji-mart-vue-fast/dist/emoji-mart.js","../node_modules/@nextcloud/vue/dist/Components/NcEmojiPicker.mjs","../node_modules/@nextcloud/vue/dist/Components/NcRelatedResourcesPanel.mjs","../node_modules/@nextcloud/vue/dist/chunks/index-5f2a5f57.mjs","../node_modules/tributejs/dist/tribute.esm.js","../node_modules/string-length/node_modules/ansi-regex/index.js","../node_modules/string-length/node_modules/strip-ansi/index.js","../node_modules/@nextcloud/vue/dist/Components/NcRichContenteditable.mjs","../node_modules/@nextcloud/vue/dist/Components/NcSelectTags.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcSettingsSelectGroup-fd91d31a.mjs","../node_modules/@nextcloud/vue/dist/Components/NcUserBubble.mjs","../node_modules/core-js/internals/array-method-has-species-support.js","../node_modules/core-js/modules/es.array.map.js","../node_modules/core-js/internals/regexp-flags.js","../node_modules/core-js/internals/regexp-sticky-helpers.js","../node_modules/core-js/internals/regexp-unsupported-dot-all.js","../node_modules/core-js/internals/regexp-unsupported-ncg.js","../node_modules/core-js/internals/regexp-exec.js","../node_modules/core-js/modules/es.regexp.exec.js","../node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js","../node_modules/core-js/internals/is-regexp.js","../node_modules/core-js/internals/a-constructor.js","../node_modules/core-js/internals/species-constructor.js","../node_modules/core-js/internals/advance-string-index.js","../node_modules/core-js/internals/regexp-exec-abstract.js","../node_modules/core-js/modules/es.string.split.js","../node_modules/core-js/internals/get-substitution.js","../node_modules/core-js/modules/es.string.replace.js","../node_modules/core-js/modules/es.array.filter.js","../node_modules/core-js/internals/array-reduce.js","../node_modules/core-js/internals/array-method-is-strict.js","../node_modules/core-js/internals/engine-is-node.js","../node_modules/core-js/modules/es.array.reduce.js","../node_modules/core-js/internals/does-not-exceed-safe-integer.js","../node_modules/core-js/modules/es.array.concat.js","../node_modules/@nextcloud/paths/dist/index.js","../src/components/richArgumentsTypes/FileRichArgument.vue","../src/components/richArgumentsTypes/EmailRichArgument.vue","../src/components/richArgumentsTypes/SystemTagRichArgument.vue","../src/components/richArgumentsTypes/CalendarRichArgument.vue","../src/components/richArgumentsTypes/CalendarEventRichArgument.vue","../src/components/richArgumentsTypes/OpenGraphRichArgument.vue","../src/components/richArgumentsTypes/AddressBookRichArgument.vue","../src/utils/richObjects.ts","../src/components/activities/CommentActivity.vue","../src/components/activities/GenericActivity.vue","../src/components/activities/PluginActivity.vue","../src/components/Activity.vue"],"sourcesContent":["//! moment.js\n//! version : 2.29.4\n//! authors : Tim Wood, Iskren Chernev, Moment.js contributors\n//! license : MIT\n//! momentjs.com\n\nvar hookCallback;\n\nfunction hooks() {\n return hookCallback.apply(null, arguments);\n}\n\n// This is done to register the method called with moment()\n// without creating circular dependencies.\nfunction setHookCallback(callback) {\n hookCallback = callback;\n}\n\nfunction isArray(input) {\n return (\n input instanceof Array ||\n Object.prototype.toString.call(input) === '[object Array]'\n );\n}\n\nfunction isObject(input) {\n // IE8 will treat undefined and null as object if it wasn't for\n // input != null\n return (\n input != null &&\n Object.prototype.toString.call(input) === '[object Object]'\n );\n}\n\nfunction hasOwnProp(a, b) {\n return Object.prototype.hasOwnProperty.call(a, b);\n}\n\nfunction isObjectEmpty(obj) {\n if (Object.getOwnPropertyNames) {\n return Object.getOwnPropertyNames(obj).length === 0;\n } else {\n var k;\n for (k in obj) {\n if (hasOwnProp(obj, k)) {\n return false;\n }\n }\n return true;\n }\n}\n\nfunction isUndefined(input) {\n return input === void 0;\n}\n\nfunction isNumber(input) {\n return (\n typeof input === 'number' ||\n Object.prototype.toString.call(input) === '[object Number]'\n );\n}\n\nfunction isDate(input) {\n return (\n input instanceof Date ||\n Object.prototype.toString.call(input) === '[object Date]'\n );\n}\n\nfunction map(arr, fn) {\n var res = [],\n i,\n arrLen = arr.length;\n for (i = 0; i < arrLen; ++i) {\n res.push(fn(arr[i], i));\n }\n return res;\n}\n\nfunction extend(a, b) {\n for (var i in b) {\n if (hasOwnProp(b, i)) {\n a[i] = b[i];\n }\n }\n\n if (hasOwnProp(b, 'toString')) {\n a.toString = b.toString;\n }\n\n if (hasOwnProp(b, 'valueOf')) {\n a.valueOf = b.valueOf;\n }\n\n return a;\n}\n\nfunction createUTC(input, format, locale, strict) {\n return createLocalOrUTC(input, format, locale, strict, true).utc();\n}\n\nfunction defaultParsingFlags() {\n // We need to deep clone this object.\n return {\n empty: false,\n unusedTokens: [],\n unusedInput: [],\n overflow: -2,\n charsLeftOver: 0,\n nullInput: false,\n invalidEra: null,\n invalidMonth: null,\n invalidFormat: false,\n userInvalidated: false,\n iso: false,\n parsedDateParts: [],\n era: null,\n meridiem: null,\n rfc2822: false,\n weekdayMismatch: false,\n };\n}\n\nfunction getParsingFlags(m) {\n if (m._pf == null) {\n m._pf = defaultParsingFlags();\n }\n return m._pf;\n}\n\nvar some;\nif (Array.prototype.some) {\n some = Array.prototype.some;\n} else {\n some = function (fun) {\n var t = Object(this),\n len = t.length >>> 0,\n i;\n\n for (i = 0; i < len; i++) {\n if (i in t && fun.call(this, t[i], i, t)) {\n return true;\n }\n }\n\n return false;\n };\n}\n\nfunction isValid(m) {\n if (m._isValid == null) {\n var flags = getParsingFlags(m),\n parsedParts = some.call(flags.parsedDateParts, function (i) {\n return i != null;\n }),\n isNowValid =\n !isNaN(m._d.getTime()) &&\n flags.overflow < 0 &&\n !flags.empty &&\n !flags.invalidEra &&\n !flags.invalidMonth &&\n !flags.invalidWeekday &&\n !flags.weekdayMismatch &&\n !flags.nullInput &&\n !flags.invalidFormat &&\n !flags.userInvalidated &&\n (!flags.meridiem || (flags.meridiem && parsedParts));\n\n if (m._strict) {\n isNowValid =\n isNowValid &&\n flags.charsLeftOver === 0 &&\n flags.unusedTokens.length === 0 &&\n flags.bigHour === undefined;\n }\n\n if (Object.isFrozen == null || !Object.isFrozen(m)) {\n m._isValid = isNowValid;\n } else {\n return isNowValid;\n }\n }\n return m._isValid;\n}\n\nfunction createInvalid(flags) {\n var m = createUTC(NaN);\n if (flags != null) {\n extend(getParsingFlags(m), flags);\n } else {\n getParsingFlags(m).userInvalidated = true;\n }\n\n return m;\n}\n\n// Plugins that add properties should also add the key here (null value),\n// so we can properly clone ourselves.\nvar momentProperties = (hooks.momentProperties = []),\n updateInProgress = false;\n\nfunction copyConfig(to, from) {\n var i,\n prop,\n val,\n momentPropertiesLen = momentProperties.length;\n\n if (!isUndefined(from._isAMomentObject)) {\n to._isAMomentObject = from._isAMomentObject;\n }\n if (!isUndefined(from._i)) {\n to._i = from._i;\n }\n if (!isUndefined(from._f)) {\n to._f = from._f;\n }\n if (!isUndefined(from._l)) {\n to._l = from._l;\n }\n if (!isUndefined(from._strict)) {\n to._strict = from._strict;\n }\n if (!isUndefined(from._tzm)) {\n to._tzm = from._tzm;\n }\n if (!isUndefined(from._isUTC)) {\n to._isUTC = from._isUTC;\n }\n if (!isUndefined(from._offset)) {\n to._offset = from._offset;\n }\n if (!isUndefined(from._pf)) {\n to._pf = getParsingFlags(from);\n }\n if (!isUndefined(from._locale)) {\n to._locale = from._locale;\n }\n\n if (momentPropertiesLen > 0) {\n for (i = 0; i < momentPropertiesLen; i++) {\n prop = momentProperties[i];\n val = from[prop];\n if (!isUndefined(val)) {\n to[prop] = val;\n }\n }\n }\n\n return to;\n}\n\n// Moment prototype object\nfunction Moment(config) {\n copyConfig(this, config);\n this._d = new Date(config._d != null ? config._d.getTime() : NaN);\n if (!this.isValid()) {\n this._d = new Date(NaN);\n }\n // Prevent infinite loop in case updateOffset creates new moment\n // objects.\n if (updateInProgress === false) {\n updateInProgress = true;\n hooks.updateOffset(this);\n updateInProgress = false;\n }\n}\n\nfunction isMoment(obj) {\n return (\n obj instanceof Moment || (obj != null && obj._isAMomentObject != null)\n );\n}\n\nfunction warn(msg) {\n if (\n hooks.suppressDeprecationWarnings === false &&\n typeof console !== 'undefined' &&\n console.warn\n ) {\n console.warn('Deprecation warning: ' + msg);\n }\n}\n\nfunction deprecate(msg, fn) {\n var firstTime = true;\n\n return extend(function () {\n if (hooks.deprecationHandler != null) {\n hooks.deprecationHandler(null, msg);\n }\n if (firstTime) {\n var args = [],\n arg,\n i,\n key,\n argLen = arguments.length;\n for (i = 0; i < argLen; i++) {\n arg = '';\n if (typeof arguments[i] === 'object') {\n arg += '\\n[' + i + '] ';\n for (key in arguments[0]) {\n if (hasOwnProp(arguments[0], key)) {\n arg += key + ': ' + arguments[0][key] + ', ';\n }\n }\n arg = arg.slice(0, -2); // Remove trailing comma and space\n } else {\n arg = arguments[i];\n }\n args.push(arg);\n }\n warn(\n msg +\n '\\nArguments: ' +\n Array.prototype.slice.call(args).join('') +\n '\\n' +\n new Error().stack\n );\n firstTime = false;\n }\n return fn.apply(this, arguments);\n }, fn);\n}\n\nvar deprecations = {};\n\nfunction deprecateSimple(name, msg) {\n if (hooks.deprecationHandler != null) {\n hooks.deprecationHandler(name, msg);\n }\n if (!deprecations[name]) {\n warn(msg);\n deprecations[name] = true;\n }\n}\n\nhooks.suppressDeprecationWarnings = false;\nhooks.deprecationHandler = null;\n\nfunction isFunction(input) {\n return (\n (typeof Function !== 'undefined' && input instanceof Function) ||\n Object.prototype.toString.call(input) === '[object Function]'\n );\n}\n\nfunction set(config) {\n var prop, i;\n for (i in config) {\n if (hasOwnProp(config, i)) {\n prop = config[i];\n if (isFunction(prop)) {\n this[i] = prop;\n } else {\n this['_' + i] = prop;\n }\n }\n }\n this._config = config;\n // Lenient ordinal parsing accepts just a number in addition to\n // number + (possibly) stuff coming from _dayOfMonthOrdinalParse.\n // TODO: Remove \"ordinalParse\" fallback in next major release.\n this._dayOfMonthOrdinalParseLenient = new RegExp(\n (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) +\n '|' +\n /\\d{1,2}/.source\n );\n}\n\nfunction mergeConfigs(parentConfig, childConfig) {\n var res = extend({}, parentConfig),\n prop;\n for (prop in childConfig) {\n if (hasOwnProp(childConfig, prop)) {\n if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) {\n res[prop] = {};\n extend(res[prop], parentConfig[prop]);\n extend(res[prop], childConfig[prop]);\n } else if (childConfig[prop] != null) {\n res[prop] = childConfig[prop];\n } else {\n delete res[prop];\n }\n }\n }\n for (prop in parentConfig) {\n if (\n hasOwnProp(parentConfig, prop) &&\n !hasOwnProp(childConfig, prop) &&\n isObject(parentConfig[prop])\n ) {\n // make sure changes to properties don't modify parent config\n res[prop] = extend({}, res[prop]);\n }\n }\n return res;\n}\n\nfunction Locale(config) {\n if (config != null) {\n this.set(config);\n }\n}\n\nvar keys;\n\nif (Object.keys) {\n keys = Object.keys;\n} else {\n keys = function (obj) {\n var i,\n res = [];\n for (i in obj) {\n if (hasOwnProp(obj, i)) {\n res.push(i);\n }\n }\n return res;\n };\n}\n\nvar defaultCalendar = {\n sameDay: '[Today at] LT',\n nextDay: '[Tomorrow at] LT',\n nextWeek: 'dddd [at] LT',\n lastDay: '[Yesterday at] LT',\n lastWeek: '[Last] dddd [at] LT',\n sameElse: 'L',\n};\n\nfunction calendar(key, mom, now) {\n var output = this._calendar[key] || this._calendar['sameElse'];\n return isFunction(output) ? output.call(mom, now) : output;\n}\n\nfunction zeroFill(number, targetLength, forceSign) {\n var absNumber = '' + Math.abs(number),\n zerosToFill = targetLength - absNumber.length,\n sign = number >= 0;\n return (\n (sign ? (forceSign ? '+' : '') : '-') +\n Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) +\n absNumber\n );\n}\n\nvar formattingTokens =\n /(\\[[^\\[]*\\])|(\\\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,\n localFormattingTokens = /(\\[[^\\[]*\\])|(\\\\)?(LTS|LT|LL?L?L?|l{1,4})/g,\n formatFunctions = {},\n formatTokenFunctions = {};\n\n// token: 'M'\n// padded: ['MM', 2]\n// ordinal: 'Mo'\n// callback: function () { this.month() + 1 }\nfunction addFormatToken(token, padded, ordinal, callback) {\n var func = callback;\n if (typeof callback === 'string') {\n func = function () {\n return this[callback]();\n };\n }\n if (token) {\n formatTokenFunctions[token] = func;\n }\n if (padded) {\n formatTokenFunctions[padded[0]] = function () {\n return zeroFill(func.apply(this, arguments), padded[1], padded[2]);\n };\n }\n if (ordinal) {\n formatTokenFunctions[ordinal] = function () {\n return this.localeData().ordinal(\n func.apply(this, arguments),\n token\n );\n };\n }\n}\n\nfunction removeFormattingTokens(input) {\n if (input.match(/\\[[\\s\\S]/)) {\n return input.replace(/^\\[|\\]$/g, '');\n }\n return input.replace(/\\\\/g, '');\n}\n\nfunction makeFormatFunction(format) {\n var array = format.match(formattingTokens),\n i,\n length;\n\n for (i = 0, length = array.length; i < length; i++) {\n if (formatTokenFunctions[array[i]]) {\n array[i] = formatTokenFunctions[array[i]];\n } else {\n array[i] = removeFormattingTokens(array[i]);\n }\n }\n\n return function (mom) {\n var output = '',\n i;\n for (i = 0; i < length; i++) {\n output += isFunction(array[i])\n ? array[i].call(mom, format)\n : array[i];\n }\n return output;\n };\n}\n\n// format date using native date object\nfunction formatMoment(m, format) {\n if (!m.isValid()) {\n return m.localeData().invalidDate();\n }\n\n format = expandFormat(format, m.localeData());\n formatFunctions[format] =\n formatFunctions[format] || makeFormatFunction(format);\n\n return formatFunctions[format](m);\n}\n\nfunction expandFormat(format, locale) {\n var i = 5;\n\n function replaceLongDateFormatTokens(input) {\n return locale.longDateFormat(input) || input;\n }\n\n localFormattingTokens.lastIndex = 0;\n while (i >= 0 && localFormattingTokens.test(format)) {\n format = format.replace(\n localFormattingTokens,\n replaceLongDateFormatTokens\n );\n localFormattingTokens.lastIndex = 0;\n i -= 1;\n }\n\n return format;\n}\n\nvar defaultLongDateFormat = {\n LTS: 'h:mm:ss A',\n LT: 'h:mm A',\n L: 'MM/DD/YYYY',\n LL: 'MMMM D, YYYY',\n LLL: 'MMMM D, YYYY h:mm A',\n LLLL: 'dddd, MMMM D, YYYY h:mm A',\n};\n\nfunction longDateFormat(key) {\n var format = this._longDateFormat[key],\n formatUpper = this._longDateFormat[key.toUpperCase()];\n\n if (format || !formatUpper) {\n return format;\n }\n\n this._longDateFormat[key] = formatUpper\n .match(formattingTokens)\n .map(function (tok) {\n if (\n tok === 'MMMM' ||\n tok === 'MM' ||\n tok === 'DD' ||\n tok === 'dddd'\n ) {\n return tok.slice(1);\n }\n return tok;\n })\n .join('');\n\n return this._longDateFormat[key];\n}\n\nvar defaultInvalidDate = 'Invalid date';\n\nfunction invalidDate() {\n return this._invalidDate;\n}\n\nvar defaultOrdinal = '%d',\n defaultDayOfMonthOrdinalParse = /\\d{1,2}/;\n\nfunction ordinal(number) {\n return this._ordinal.replace('%d', number);\n}\n\nvar defaultRelativeTime = {\n future: 'in %s',\n past: '%s ago',\n s: 'a few seconds',\n ss: '%d seconds',\n m: 'a minute',\n mm: '%d minutes',\n h: 'an hour',\n hh: '%d hours',\n d: 'a day',\n dd: '%d days',\n w: 'a week',\n ww: '%d weeks',\n M: 'a month',\n MM: '%d months',\n y: 'a year',\n yy: '%d years',\n};\n\nfunction relativeTime(number, withoutSuffix, string, isFuture) {\n var output = this._relativeTime[string];\n return isFunction(output)\n ? output(number, withoutSuffix, string, isFuture)\n : output.replace(/%d/i, number);\n}\n\nfunction pastFuture(diff, output) {\n var format = this._relativeTime[diff > 0 ? 'future' : 'past'];\n return isFunction(format) ? format(output) : format.replace(/%s/i, output);\n}\n\nvar aliases = {};\n\nfunction addUnitAlias(unit, shorthand) {\n var lowerCase = unit.toLowerCase();\n aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit;\n}\n\nfunction normalizeUnits(units) {\n return typeof units === 'string'\n ? aliases[units] || aliases[units.toLowerCase()]\n : undefined;\n}\n\nfunction normalizeObjectUnits(inputObject) {\n var normalizedInput = {},\n normalizedProp,\n prop;\n\n for (prop in inputObject) {\n if (hasOwnProp(inputObject, prop)) {\n normalizedProp = normalizeUnits(prop);\n if (normalizedProp) {\n normalizedInput[normalizedProp] = inputObject[prop];\n }\n }\n }\n\n return normalizedInput;\n}\n\nvar priorities = {};\n\nfunction addUnitPriority(unit, priority) {\n priorities[unit] = priority;\n}\n\nfunction getPrioritizedUnits(unitsObj) {\n var units = [],\n u;\n for (u in unitsObj) {\n if (hasOwnProp(unitsObj, u)) {\n units.push({ unit: u, priority: priorities[u] });\n }\n }\n units.sort(function (a, b) {\n return a.priority - b.priority;\n });\n return units;\n}\n\nfunction isLeapYear(year) {\n return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;\n}\n\nfunction absFloor(number) {\n if (number < 0) {\n // -0 -> 0\n return Math.ceil(number) || 0;\n } else {\n return Math.floor(number);\n }\n}\n\nfunction toInt(argumentForCoercion) {\n var coercedNumber = +argumentForCoercion,\n value = 0;\n\n if (coercedNumber !== 0 && isFinite(coercedNumber)) {\n value = absFloor(coercedNumber);\n }\n\n return value;\n}\n\nfunction makeGetSet(unit, keepTime) {\n return function (value) {\n if (value != null) {\n set$1(this, unit, value);\n hooks.updateOffset(this, keepTime);\n return this;\n } else {\n return get(this, unit);\n }\n };\n}\n\nfunction get(mom, unit) {\n return mom.isValid()\n ? mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]()\n : NaN;\n}\n\nfunction set$1(mom, unit, value) {\n if (mom.isValid() && !isNaN(value)) {\n if (\n unit === 'FullYear' &&\n isLeapYear(mom.year()) &&\n mom.month() === 1 &&\n mom.date() === 29\n ) {\n value = toInt(value);\n mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](\n value,\n mom.month(),\n daysInMonth(value, mom.month())\n );\n } else {\n mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value);\n }\n }\n}\n\n// MOMENTS\n\nfunction stringGet(units) {\n units = normalizeUnits(units);\n if (isFunction(this[units])) {\n return this[units]();\n }\n return this;\n}\n\nfunction stringSet(units, value) {\n if (typeof units === 'object') {\n units = normalizeObjectUnits(units);\n var prioritized = getPrioritizedUnits(units),\n i,\n prioritizedLen = prioritized.length;\n for (i = 0; i < prioritizedLen; i++) {\n this[prioritized[i].unit](units[prioritized[i].unit]);\n }\n } else {\n units = normalizeUnits(units);\n if (isFunction(this[units])) {\n return this[units](value);\n }\n }\n return this;\n}\n\nvar match1 = /\\d/, // 0 - 9\n match2 = /\\d\\d/, // 00 - 99\n match3 = /\\d{3}/, // 000 - 999\n match4 = /\\d{4}/, // 0000 - 9999\n match6 = /[+-]?\\d{6}/, // -999999 - 999999\n match1to2 = /\\d\\d?/, // 0 - 99\n match3to4 = /\\d\\d\\d\\d?/, // 999 - 9999\n match5to6 = /\\d\\d\\d\\d\\d\\d?/, // 99999 - 999999\n match1to3 = /\\d{1,3}/, // 0 - 999\n match1to4 = /\\d{1,4}/, // 0 - 9999\n match1to6 = /[+-]?\\d{1,6}/, // -999999 - 999999\n matchUnsigned = /\\d+/, // 0 - inf\n matchSigned = /[+-]?\\d+/, // -inf - inf\n matchOffset = /Z|[+-]\\d\\d:?\\d\\d/gi, // +00:00 -00:00 +0000 -0000 or Z\n matchShortOffset = /Z|[+-]\\d\\d(?::?\\d\\d)?/gi, // +00 -00 +00:00 -00:00 +0000 -0000 or Z\n matchTimestamp = /[+-]?\\d+(\\.\\d{1,3})?/, // 123456789 123456789.123\n // any word (or two) characters or numbers including two/three word month in arabic.\n // includes scottish gaelic two word and hyphenated months\n matchWord =\n /[0-9]{0,256}['a-z\\u00A0-\\u05FF\\u0700-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFF07\\uFF10-\\uFFEF]{1,256}|[\\u0600-\\u06FF\\/]{1,256}(\\s*?[\\u0600-\\u06FF]{1,256}){1,2}/i,\n regexes;\n\nregexes = {};\n\nfunction addRegexToken(token, regex, strictRegex) {\n regexes[token] = isFunction(regex)\n ? regex\n : function (isStrict, localeData) {\n return isStrict && strictRegex ? strictRegex : regex;\n };\n}\n\nfunction getParseRegexForToken(token, config) {\n if (!hasOwnProp(regexes, token)) {\n return new RegExp(unescapeFormat(token));\n }\n\n return regexes[token](config._strict, config._locale);\n}\n\n// Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript\nfunction unescapeFormat(s) {\n return regexEscape(\n s\n .replace('\\\\', '')\n .replace(\n /\\\\(\\[)|\\\\(\\])|\\[([^\\]\\[]*)\\]|\\\\(.)/g,\n function (matched, p1, p2, p3, p4) {\n return p1 || p2 || p3 || p4;\n }\n )\n );\n}\n\nfunction regexEscape(s) {\n return s.replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g, '\\\\$&');\n}\n\nvar tokens = {};\n\nfunction addParseToken(token, callback) {\n var i,\n func = callback,\n tokenLen;\n if (typeof token === 'string') {\n token = [token];\n }\n if (isNumber(callback)) {\n func = function (input, array) {\n array[callback] = toInt(input);\n };\n }\n tokenLen = token.length;\n for (i = 0; i < tokenLen; i++) {\n tokens[token[i]] = func;\n }\n}\n\nfunction addWeekParseToken(token, callback) {\n addParseToken(token, function (input, array, config, token) {\n config._w = config._w || {};\n callback(input, config._w, config, token);\n });\n}\n\nfunction addTimeToArrayFromToken(token, input, config) {\n if (input != null && hasOwnProp(tokens, token)) {\n tokens[token](input, config._a, config, token);\n }\n}\n\nvar YEAR = 0,\n MONTH = 1,\n DATE = 2,\n HOUR = 3,\n MINUTE = 4,\n SECOND = 5,\n MILLISECOND = 6,\n WEEK = 7,\n WEEKDAY = 8;\n\nfunction mod(n, x) {\n return ((n % x) + x) % x;\n}\n\nvar indexOf;\n\nif (Array.prototype.indexOf) {\n indexOf = Array.prototype.indexOf;\n} else {\n indexOf = function (o) {\n // I know\n var i;\n for (i = 0; i < this.length; ++i) {\n if (this[i] === o) {\n return i;\n }\n }\n return -1;\n };\n}\n\nfunction daysInMonth(year, month) {\n if (isNaN(year) || isNaN(month)) {\n return NaN;\n }\n var modMonth = mod(month, 12);\n year += (month - modMonth) / 12;\n return modMonth === 1\n ? isLeapYear(year)\n ? 29\n : 28\n : 31 - ((modMonth % 7) % 2);\n}\n\n// FORMATTING\n\naddFormatToken('M', ['MM', 2], 'Mo', function () {\n return this.month() + 1;\n});\n\naddFormatToken('MMM', 0, 0, function (format) {\n return this.localeData().monthsShort(this, format);\n});\n\naddFormatToken('MMMM', 0, 0, function (format) {\n return this.localeData().months(this, format);\n});\n\n// ALIASES\n\naddUnitAlias('month', 'M');\n\n// PRIORITY\n\naddUnitPriority('month', 8);\n\n// PARSING\n\naddRegexToken('M', match1to2);\naddRegexToken('MM', match1to2, match2);\naddRegexToken('MMM', function (isStrict, locale) {\n return locale.monthsShortRegex(isStrict);\n});\naddRegexToken('MMMM', function (isStrict, locale) {\n return locale.monthsRegex(isStrict);\n});\n\naddParseToken(['M', 'MM'], function (input, array) {\n array[MONTH] = toInt(input) - 1;\n});\n\naddParseToken(['MMM', 'MMMM'], function (input, array, config, token) {\n var month = config._locale.monthsParse(input, token, config._strict);\n // if we didn't find a month name, mark the date as invalid.\n if (month != null) {\n array[MONTH] = month;\n } else {\n getParsingFlags(config).invalidMonth = input;\n }\n});\n\n// LOCALES\n\nvar defaultLocaleMonths =\n 'January_February_March_April_May_June_July_August_September_October_November_December'.split(\n '_'\n ),\n defaultLocaleMonthsShort =\n 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n MONTHS_IN_FORMAT = /D[oD]?(\\[[^\\[\\]]*\\]|\\s)+MMMM?/,\n defaultMonthsShortRegex = matchWord,\n defaultMonthsRegex = matchWord;\n\nfunction localeMonths(m, format) {\n if (!m) {\n return isArray(this._months)\n ? this._months\n : this._months['standalone'];\n }\n return isArray(this._months)\n ? this._months[m.month()]\n : this._months[\n (this._months.isFormat || MONTHS_IN_FORMAT).test(format)\n ? 'format'\n : 'standalone'\n ][m.month()];\n}\n\nfunction localeMonthsShort(m, format) {\n if (!m) {\n return isArray(this._monthsShort)\n ? this._monthsShort\n : this._monthsShort['standalone'];\n }\n return isArray(this._monthsShort)\n ? this._monthsShort[m.month()]\n : this._monthsShort[\n MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone'\n ][m.month()];\n}\n\nfunction handleStrictParse(monthName, format, strict) {\n var i,\n ii,\n mom,\n llc = monthName.toLocaleLowerCase();\n if (!this._monthsParse) {\n // this is not used\n this._monthsParse = [];\n this._longMonthsParse = [];\n this._shortMonthsParse = [];\n for (i = 0; i < 12; ++i) {\n mom = createUTC([2000, i]);\n this._shortMonthsParse[i] = this.monthsShort(\n mom,\n ''\n ).toLocaleLowerCase();\n this._longMonthsParse[i] = this.months(mom, '').toLocaleLowerCase();\n }\n }\n\n if (strict) {\n if (format === 'MMM') {\n ii = indexOf.call(this._shortMonthsParse, llc);\n return ii !== -1 ? ii : null;\n } else {\n ii = indexOf.call(this._longMonthsParse, llc);\n return ii !== -1 ? ii : null;\n }\n } else {\n if (format === 'MMM') {\n ii = indexOf.call(this._shortMonthsParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._longMonthsParse, llc);\n return ii !== -1 ? ii : null;\n } else {\n ii = indexOf.call(this._longMonthsParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._shortMonthsParse, llc);\n return ii !== -1 ? ii : null;\n }\n }\n}\n\nfunction localeMonthsParse(monthName, format, strict) {\n var i, mom, regex;\n\n if (this._monthsParseExact) {\n return handleStrictParse.call(this, monthName, format, strict);\n }\n\n if (!this._monthsParse) {\n this._monthsParse = [];\n this._longMonthsParse = [];\n this._shortMonthsParse = [];\n }\n\n // TODO: add sorting\n // Sorting makes sure if one month (or abbr) is a prefix of another\n // see sorting in computeMonthsParse\n for (i = 0; i < 12; i++) {\n // make the regex if we don't have it already\n mom = createUTC([2000, i]);\n if (strict && !this._longMonthsParse[i]) {\n this._longMonthsParse[i] = new RegExp(\n '^' + this.months(mom, '').replace('.', '') + '$',\n 'i'\n );\n this._shortMonthsParse[i] = new RegExp(\n '^' + this.monthsShort(mom, '').replace('.', '') + '$',\n 'i'\n );\n }\n if (!strict && !this._monthsParse[i]) {\n regex =\n '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, '');\n this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i');\n }\n // test the regex\n if (\n strict &&\n format === 'MMMM' &&\n this._longMonthsParse[i].test(monthName)\n ) {\n return i;\n } else if (\n strict &&\n format === 'MMM' &&\n this._shortMonthsParse[i].test(monthName)\n ) {\n return i;\n } else if (!strict && this._monthsParse[i].test(monthName)) {\n return i;\n }\n }\n}\n\n// MOMENTS\n\nfunction setMonth(mom, value) {\n var dayOfMonth;\n\n if (!mom.isValid()) {\n // No op\n return mom;\n }\n\n if (typeof value === 'string') {\n if (/^\\d+$/.test(value)) {\n value = toInt(value);\n } else {\n value = mom.localeData().monthsParse(value);\n // TODO: Another silent failure?\n if (!isNumber(value)) {\n return mom;\n }\n }\n }\n\n dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value));\n mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth);\n return mom;\n}\n\nfunction getSetMonth(value) {\n if (value != null) {\n setMonth(this, value);\n hooks.updateOffset(this, true);\n return this;\n } else {\n return get(this, 'Month');\n }\n}\n\nfunction getDaysInMonth() {\n return daysInMonth(this.year(), this.month());\n}\n\nfunction monthsShortRegex(isStrict) {\n if (this._monthsParseExact) {\n if (!hasOwnProp(this, '_monthsRegex')) {\n computeMonthsParse.call(this);\n }\n if (isStrict) {\n return this._monthsShortStrictRegex;\n } else {\n return this._monthsShortRegex;\n }\n } else {\n if (!hasOwnProp(this, '_monthsShortRegex')) {\n this._monthsShortRegex = defaultMonthsShortRegex;\n }\n return this._monthsShortStrictRegex && isStrict\n ? this._monthsShortStrictRegex\n : this._monthsShortRegex;\n }\n}\n\nfunction monthsRegex(isStrict) {\n if (this._monthsParseExact) {\n if (!hasOwnProp(this, '_monthsRegex')) {\n computeMonthsParse.call(this);\n }\n if (isStrict) {\n return this._monthsStrictRegex;\n } else {\n return this._monthsRegex;\n }\n } else {\n if (!hasOwnProp(this, '_monthsRegex')) {\n this._monthsRegex = defaultMonthsRegex;\n }\n return this._monthsStrictRegex && isStrict\n ? this._monthsStrictRegex\n : this._monthsRegex;\n }\n}\n\nfunction computeMonthsParse() {\n function cmpLenRev(a, b) {\n return b.length - a.length;\n }\n\n var shortPieces = [],\n longPieces = [],\n mixedPieces = [],\n i,\n mom;\n for (i = 0; i < 12; i++) {\n // make the regex if we don't have it already\n mom = createUTC([2000, i]);\n shortPieces.push(this.monthsShort(mom, ''));\n longPieces.push(this.months(mom, ''));\n mixedPieces.push(this.months(mom, ''));\n mixedPieces.push(this.monthsShort(mom, ''));\n }\n // Sorting makes sure if one month (or abbr) is a prefix of another it\n // will match the longer piece.\n shortPieces.sort(cmpLenRev);\n longPieces.sort(cmpLenRev);\n mixedPieces.sort(cmpLenRev);\n for (i = 0; i < 12; i++) {\n shortPieces[i] = regexEscape(shortPieces[i]);\n longPieces[i] = regexEscape(longPieces[i]);\n }\n for (i = 0; i < 24; i++) {\n mixedPieces[i] = regexEscape(mixedPieces[i]);\n }\n\n this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');\n this._monthsShortRegex = this._monthsRegex;\n this._monthsStrictRegex = new RegExp(\n '^(' + longPieces.join('|') + ')',\n 'i'\n );\n this._monthsShortStrictRegex = new RegExp(\n '^(' + shortPieces.join('|') + ')',\n 'i'\n );\n}\n\n// FORMATTING\n\naddFormatToken('Y', 0, 0, function () {\n var y = this.year();\n return y <= 9999 ? zeroFill(y, 4) : '+' + y;\n});\n\naddFormatToken(0, ['YY', 2], 0, function () {\n return this.year() % 100;\n});\n\naddFormatToken(0, ['YYYY', 4], 0, 'year');\naddFormatToken(0, ['YYYYY', 5], 0, 'year');\naddFormatToken(0, ['YYYYYY', 6, true], 0, 'year');\n\n// ALIASES\n\naddUnitAlias('year', 'y');\n\n// PRIORITIES\n\naddUnitPriority('year', 1);\n\n// PARSING\n\naddRegexToken('Y', matchSigned);\naddRegexToken('YY', match1to2, match2);\naddRegexToken('YYYY', match1to4, match4);\naddRegexToken('YYYYY', match1to6, match6);\naddRegexToken('YYYYYY', match1to6, match6);\n\naddParseToken(['YYYYY', 'YYYYYY'], YEAR);\naddParseToken('YYYY', function (input, array) {\n array[YEAR] =\n input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);\n});\naddParseToken('YY', function (input, array) {\n array[YEAR] = hooks.parseTwoDigitYear(input);\n});\naddParseToken('Y', function (input, array) {\n array[YEAR] = parseInt(input, 10);\n});\n\n// HELPERS\n\nfunction daysInYear(year) {\n return isLeapYear(year) ? 366 : 365;\n}\n\n// HOOKS\n\nhooks.parseTwoDigitYear = function (input) {\n return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);\n};\n\n// MOMENTS\n\nvar getSetYear = makeGetSet('FullYear', true);\n\nfunction getIsLeapYear() {\n return isLeapYear(this.year());\n}\n\nfunction createDate(y, m, d, h, M, s, ms) {\n // can't just apply() to create a date:\n // https://stackoverflow.com/q/181348\n var date;\n // the date constructor remaps years 0-99 to 1900-1999\n if (y < 100 && y >= 0) {\n // preserve leap years using a full 400 year cycle, then reset\n date = new Date(y + 400, m, d, h, M, s, ms);\n if (isFinite(date.getFullYear())) {\n date.setFullYear(y);\n }\n } else {\n date = new Date(y, m, d, h, M, s, ms);\n }\n\n return date;\n}\n\nfunction createUTCDate(y) {\n var date, args;\n // the Date.UTC function remaps years 0-99 to 1900-1999\n if (y < 100 && y >= 0) {\n args = Array.prototype.slice.call(arguments);\n // preserve leap years using a full 400 year cycle, then reset\n args[0] = y + 400;\n date = new Date(Date.UTC.apply(null, args));\n if (isFinite(date.getUTCFullYear())) {\n date.setUTCFullYear(y);\n }\n } else {\n date = new Date(Date.UTC.apply(null, arguments));\n }\n\n return date;\n}\n\n// start-of-first-week - start-of-year\nfunction firstWeekOffset(year, dow, doy) {\n var // first-week day -- which january is always in the first week (4 for iso, 1 for other)\n fwd = 7 + dow - doy,\n // first-week day local weekday -- which local weekday is fwd\n fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7;\n\n return -fwdlw + fwd - 1;\n}\n\n// https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday\nfunction dayOfYearFromWeeks(year, week, weekday, dow, doy) {\n var localWeekday = (7 + weekday - dow) % 7,\n weekOffset = firstWeekOffset(year, dow, doy),\n dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset,\n resYear,\n resDayOfYear;\n\n if (dayOfYear <= 0) {\n resYear = year - 1;\n resDayOfYear = daysInYear(resYear) + dayOfYear;\n } else if (dayOfYear > daysInYear(year)) {\n resYear = year + 1;\n resDayOfYear = dayOfYear - daysInYear(year);\n } else {\n resYear = year;\n resDayOfYear = dayOfYear;\n }\n\n return {\n year: resYear,\n dayOfYear: resDayOfYear,\n };\n}\n\nfunction weekOfYear(mom, dow, doy) {\n var weekOffset = firstWeekOffset(mom.year(), dow, doy),\n week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1,\n resWeek,\n resYear;\n\n if (week < 1) {\n resYear = mom.year() - 1;\n resWeek = week + weeksInYear(resYear, dow, doy);\n } else if (week > weeksInYear(mom.year(), dow, doy)) {\n resWeek = week - weeksInYear(mom.year(), dow, doy);\n resYear = mom.year() + 1;\n } else {\n resYear = mom.year();\n resWeek = week;\n }\n\n return {\n week: resWeek,\n year: resYear,\n };\n}\n\nfunction weeksInYear(year, dow, doy) {\n var weekOffset = firstWeekOffset(year, dow, doy),\n weekOffsetNext = firstWeekOffset(year + 1, dow, doy);\n return (daysInYear(year) - weekOffset + weekOffsetNext) / 7;\n}\n\n// FORMATTING\n\naddFormatToken('w', ['ww', 2], 'wo', 'week');\naddFormatToken('W', ['WW', 2], 'Wo', 'isoWeek');\n\n// ALIASES\n\naddUnitAlias('week', 'w');\naddUnitAlias('isoWeek', 'W');\n\n// PRIORITIES\n\naddUnitPriority('week', 5);\naddUnitPriority('isoWeek', 5);\n\n// PARSING\n\naddRegexToken('w', match1to2);\naddRegexToken('ww', match1to2, match2);\naddRegexToken('W', match1to2);\naddRegexToken('WW', match1to2, match2);\n\naddWeekParseToken(\n ['w', 'ww', 'W', 'WW'],\n function (input, week, config, token) {\n week[token.substr(0, 1)] = toInt(input);\n }\n);\n\n// HELPERS\n\n// LOCALES\n\nfunction localeWeek(mom) {\n return weekOfYear(mom, this._week.dow, this._week.doy).week;\n}\n\nvar defaultLocaleWeek = {\n dow: 0, // Sunday is the first day of the week.\n doy: 6, // The week that contains Jan 6th is the first week of the year.\n};\n\nfunction localeFirstDayOfWeek() {\n return this._week.dow;\n}\n\nfunction localeFirstDayOfYear() {\n return this._week.doy;\n}\n\n// MOMENTS\n\nfunction getSetWeek(input) {\n var week = this.localeData().week(this);\n return input == null ? week : this.add((input - week) * 7, 'd');\n}\n\nfunction getSetISOWeek(input) {\n var week = weekOfYear(this, 1, 4).week;\n return input == null ? week : this.add((input - week) * 7, 'd');\n}\n\n// FORMATTING\n\naddFormatToken('d', 0, 'do', 'day');\n\naddFormatToken('dd', 0, 0, function (format) {\n return this.localeData().weekdaysMin(this, format);\n});\n\naddFormatToken('ddd', 0, 0, function (format) {\n return this.localeData().weekdaysShort(this, format);\n});\n\naddFormatToken('dddd', 0, 0, function (format) {\n return this.localeData().weekdays(this, format);\n});\n\naddFormatToken('e', 0, 0, 'weekday');\naddFormatToken('E', 0, 0, 'isoWeekday');\n\n// ALIASES\n\naddUnitAlias('day', 'd');\naddUnitAlias('weekday', 'e');\naddUnitAlias('isoWeekday', 'E');\n\n// PRIORITY\naddUnitPriority('day', 11);\naddUnitPriority('weekday', 11);\naddUnitPriority('isoWeekday', 11);\n\n// PARSING\n\naddRegexToken('d', match1to2);\naddRegexToken('e', match1to2);\naddRegexToken('E', match1to2);\naddRegexToken('dd', function (isStrict, locale) {\n return locale.weekdaysMinRegex(isStrict);\n});\naddRegexToken('ddd', function (isStrict, locale) {\n return locale.weekdaysShortRegex(isStrict);\n});\naddRegexToken('dddd', function (isStrict, locale) {\n return locale.weekdaysRegex(isStrict);\n});\n\naddWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) {\n var weekday = config._locale.weekdaysParse(input, token, config._strict);\n // if we didn't get a weekday name, mark the date as invalid\n if (weekday != null) {\n week.d = weekday;\n } else {\n getParsingFlags(config).invalidWeekday = input;\n }\n});\n\naddWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) {\n week[token] = toInt(input);\n});\n\n// HELPERS\n\nfunction parseWeekday(input, locale) {\n if (typeof input !== 'string') {\n return input;\n }\n\n if (!isNaN(input)) {\n return parseInt(input, 10);\n }\n\n input = locale.weekdaysParse(input);\n if (typeof input === 'number') {\n return input;\n }\n\n return null;\n}\n\nfunction parseIsoWeekday(input, locale) {\n if (typeof input === 'string') {\n return locale.weekdaysParse(input) % 7 || 7;\n }\n return isNaN(input) ? null : input;\n}\n\n// LOCALES\nfunction shiftWeekdays(ws, n) {\n return ws.slice(n, 7).concat(ws.slice(0, n));\n}\n\nvar defaultLocaleWeekdays =\n 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),\n defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n defaultWeekdaysRegex = matchWord,\n defaultWeekdaysShortRegex = matchWord,\n defaultWeekdaysMinRegex = matchWord;\n\nfunction localeWeekdays(m, format) {\n var weekdays = isArray(this._weekdays)\n ? this._weekdays\n : this._weekdays[\n m && m !== true && this._weekdays.isFormat.test(format)\n ? 'format'\n : 'standalone'\n ];\n return m === true\n ? shiftWeekdays(weekdays, this._week.dow)\n : m\n ? weekdays[m.day()]\n : weekdays;\n}\n\nfunction localeWeekdaysShort(m) {\n return m === true\n ? shiftWeekdays(this._weekdaysShort, this._week.dow)\n : m\n ? this._weekdaysShort[m.day()]\n : this._weekdaysShort;\n}\n\nfunction localeWeekdaysMin(m) {\n return m === true\n ? shiftWeekdays(this._weekdaysMin, this._week.dow)\n : m\n ? this._weekdaysMin[m.day()]\n : this._weekdaysMin;\n}\n\nfunction handleStrictParse$1(weekdayName, format, strict) {\n var i,\n ii,\n mom,\n llc = weekdayName.toLocaleLowerCase();\n if (!this._weekdaysParse) {\n this._weekdaysParse = [];\n this._shortWeekdaysParse = [];\n this._minWeekdaysParse = [];\n\n for (i = 0; i < 7; ++i) {\n mom = createUTC([2000, 1]).day(i);\n this._minWeekdaysParse[i] = this.weekdaysMin(\n mom,\n ''\n ).toLocaleLowerCase();\n this._shortWeekdaysParse[i] = this.weekdaysShort(\n mom,\n ''\n ).toLocaleLowerCase();\n this._weekdaysParse[i] = this.weekdays(mom, '').toLocaleLowerCase();\n }\n }\n\n if (strict) {\n if (format === 'dddd') {\n ii = indexOf.call(this._weekdaysParse, llc);\n return ii !== -1 ? ii : null;\n } else if (format === 'ddd') {\n ii = indexOf.call(this._shortWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n } else {\n ii = indexOf.call(this._minWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n }\n } else {\n if (format === 'dddd') {\n ii = indexOf.call(this._weekdaysParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._shortWeekdaysParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._minWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n } else if (format === 'ddd') {\n ii = indexOf.call(this._shortWeekdaysParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._weekdaysParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._minWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n } else {\n ii = indexOf.call(this._minWeekdaysParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._weekdaysParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._shortWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n }\n }\n}\n\nfunction localeWeekdaysParse(weekdayName, format, strict) {\n var i, mom, regex;\n\n if (this._weekdaysParseExact) {\n return handleStrictParse$1.call(this, weekdayName, format, strict);\n }\n\n if (!this._weekdaysParse) {\n this._weekdaysParse = [];\n this._minWeekdaysParse = [];\n this._shortWeekdaysParse = [];\n this._fullWeekdaysParse = [];\n }\n\n for (i = 0; i < 7; i++) {\n // make the regex if we don't have it already\n\n mom = createUTC([2000, 1]).day(i);\n if (strict && !this._fullWeekdaysParse[i]) {\n this._fullWeekdaysParse[i] = new RegExp(\n '^' + this.weekdays(mom, '').replace('.', '\\\\.?') + '$',\n 'i'\n );\n this._shortWeekdaysParse[i] = new RegExp(\n '^' + this.weekdaysShort(mom, '').replace('.', '\\\\.?') + '$',\n 'i'\n );\n this._minWeekdaysParse[i] = new RegExp(\n '^' + this.weekdaysMin(mom, '').replace('.', '\\\\.?') + '$',\n 'i'\n );\n }\n if (!this._weekdaysParse[i]) {\n regex =\n '^' +\n this.weekdays(mom, '') +\n '|^' +\n this.weekdaysShort(mom, '') +\n '|^' +\n this.weekdaysMin(mom, '');\n this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i');\n }\n // test the regex\n if (\n strict &&\n format === 'dddd' &&\n this._fullWeekdaysParse[i].test(weekdayName)\n ) {\n return i;\n } else if (\n strict &&\n format === 'ddd' &&\n this._shortWeekdaysParse[i].test(weekdayName)\n ) {\n return i;\n } else if (\n strict &&\n format === 'dd' &&\n this._minWeekdaysParse[i].test(weekdayName)\n ) {\n return i;\n } else if (!strict && this._weekdaysParse[i].test(weekdayName)) {\n return i;\n }\n }\n}\n\n// MOMENTS\n\nfunction getSetDayOfWeek(input) {\n if (!this.isValid()) {\n return input != null ? this : NaN;\n }\n var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay();\n if (input != null) {\n input = parseWeekday(input, this.localeData());\n return this.add(input - day, 'd');\n } else {\n return day;\n }\n}\n\nfunction getSetLocaleDayOfWeek(input) {\n if (!this.isValid()) {\n return input != null ? this : NaN;\n }\n var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;\n return input == null ? weekday : this.add(input - weekday, 'd');\n}\n\nfunction getSetISODayOfWeek(input) {\n if (!this.isValid()) {\n return input != null ? this : NaN;\n }\n\n // behaves the same as moment#day except\n // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)\n // as a setter, sunday should belong to the previous week.\n\n if (input != null) {\n var weekday = parseIsoWeekday(input, this.localeData());\n return this.day(this.day() % 7 ? weekday : weekday - 7);\n } else {\n return this.day() || 7;\n }\n}\n\nfunction weekdaysRegex(isStrict) {\n if (this._weekdaysParseExact) {\n if (!hasOwnProp(this, '_weekdaysRegex')) {\n computeWeekdaysParse.call(this);\n }\n if (isStrict) {\n return this._weekdaysStrictRegex;\n } else {\n return this._weekdaysRegex;\n }\n } else {\n if (!hasOwnProp(this, '_weekdaysRegex')) {\n this._weekdaysRegex = defaultWeekdaysRegex;\n }\n return this._weekdaysStrictRegex && isStrict\n ? this._weekdaysStrictRegex\n : this._weekdaysRegex;\n }\n}\n\nfunction weekdaysShortRegex(isStrict) {\n if (this._weekdaysParseExact) {\n if (!hasOwnProp(this, '_weekdaysRegex')) {\n computeWeekdaysParse.call(this);\n }\n if (isStrict) {\n return this._weekdaysShortStrictRegex;\n } else {\n return this._weekdaysShortRegex;\n }\n } else {\n if (!hasOwnProp(this, '_weekdaysShortRegex')) {\n this._weekdaysShortRegex = defaultWeekdaysShortRegex;\n }\n return this._weekdaysShortStrictRegex && isStrict\n ? this._weekdaysShortStrictRegex\n : this._weekdaysShortRegex;\n }\n}\n\nfunction weekdaysMinRegex(isStrict) {\n if (this._weekdaysParseExact) {\n if (!hasOwnProp(this, '_weekdaysRegex')) {\n computeWeekdaysParse.call(this);\n }\n if (isStrict) {\n return this._weekdaysMinStrictRegex;\n } else {\n return this._weekdaysMinRegex;\n }\n } else {\n if (!hasOwnProp(this, '_weekdaysMinRegex')) {\n this._weekdaysMinRegex = defaultWeekdaysMinRegex;\n }\n return this._weekdaysMinStrictRegex && isStrict\n ? this._weekdaysMinStrictRegex\n : this._weekdaysMinRegex;\n }\n}\n\nfunction computeWeekdaysParse() {\n function cmpLenRev(a, b) {\n return b.length - a.length;\n }\n\n var minPieces = [],\n shortPieces = [],\n longPieces = [],\n mixedPieces = [],\n i,\n mom,\n minp,\n shortp,\n longp;\n for (i = 0; i < 7; i++) {\n // make the regex if we don't have it already\n mom = createUTC([2000, 1]).day(i);\n minp = regexEscape(this.weekdaysMin(mom, ''));\n shortp = regexEscape(this.weekdaysShort(mom, ''));\n longp = regexEscape(this.weekdays(mom, ''));\n minPieces.push(minp);\n shortPieces.push(shortp);\n longPieces.push(longp);\n mixedPieces.push(minp);\n mixedPieces.push(shortp);\n mixedPieces.push(longp);\n }\n // Sorting makes sure if one weekday (or abbr) is a prefix of another it\n // will match the longer piece.\n minPieces.sort(cmpLenRev);\n shortPieces.sort(cmpLenRev);\n longPieces.sort(cmpLenRev);\n mixedPieces.sort(cmpLenRev);\n\n this._weekdaysRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');\n this._weekdaysShortRegex = this._weekdaysRegex;\n this._weekdaysMinRegex = this._weekdaysRegex;\n\n this._weekdaysStrictRegex = new RegExp(\n '^(' + longPieces.join('|') + ')',\n 'i'\n );\n this._weekdaysShortStrictRegex = new RegExp(\n '^(' + shortPieces.join('|') + ')',\n 'i'\n );\n this._weekdaysMinStrictRegex = new RegExp(\n '^(' + minPieces.join('|') + ')',\n 'i'\n );\n}\n\n// FORMATTING\n\nfunction hFormat() {\n return this.hours() % 12 || 12;\n}\n\nfunction kFormat() {\n return this.hours() || 24;\n}\n\naddFormatToken('H', ['HH', 2], 0, 'hour');\naddFormatToken('h', ['hh', 2], 0, hFormat);\naddFormatToken('k', ['kk', 2], 0, kFormat);\n\naddFormatToken('hmm', 0, 0, function () {\n return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2);\n});\n\naddFormatToken('hmmss', 0, 0, function () {\n return (\n '' +\n hFormat.apply(this) +\n zeroFill(this.minutes(), 2) +\n zeroFill(this.seconds(), 2)\n );\n});\n\naddFormatToken('Hmm', 0, 0, function () {\n return '' + this.hours() + zeroFill(this.minutes(), 2);\n});\n\naddFormatToken('Hmmss', 0, 0, function () {\n return (\n '' +\n this.hours() +\n zeroFill(this.minutes(), 2) +\n zeroFill(this.seconds(), 2)\n );\n});\n\nfunction meridiem(token, lowercase) {\n addFormatToken(token, 0, 0, function () {\n return this.localeData().meridiem(\n this.hours(),\n this.minutes(),\n lowercase\n );\n });\n}\n\nmeridiem('a', true);\nmeridiem('A', false);\n\n// ALIASES\n\naddUnitAlias('hour', 'h');\n\n// PRIORITY\naddUnitPriority('hour', 13);\n\n// PARSING\n\nfunction matchMeridiem(isStrict, locale) {\n return locale._meridiemParse;\n}\n\naddRegexToken('a', matchMeridiem);\naddRegexToken('A', matchMeridiem);\naddRegexToken('H', match1to2);\naddRegexToken('h', match1to2);\naddRegexToken('k', match1to2);\naddRegexToken('HH', match1to2, match2);\naddRegexToken('hh', match1to2, match2);\naddRegexToken('kk', match1to2, match2);\n\naddRegexToken('hmm', match3to4);\naddRegexToken('hmmss', match5to6);\naddRegexToken('Hmm', match3to4);\naddRegexToken('Hmmss', match5to6);\n\naddParseToken(['H', 'HH'], HOUR);\naddParseToken(['k', 'kk'], function (input, array, config) {\n var kInput = toInt(input);\n array[HOUR] = kInput === 24 ? 0 : kInput;\n});\naddParseToken(['a', 'A'], function (input, array, config) {\n config._isPm = config._locale.isPM(input);\n config._meridiem = input;\n});\naddParseToken(['h', 'hh'], function (input, array, config) {\n array[HOUR] = toInt(input);\n getParsingFlags(config).bigHour = true;\n});\naddParseToken('hmm', function (input, array, config) {\n var pos = input.length - 2;\n array[HOUR] = toInt(input.substr(0, pos));\n array[MINUTE] = toInt(input.substr(pos));\n getParsingFlags(config).bigHour = true;\n});\naddParseToken('hmmss', function (input, array, config) {\n var pos1 = input.length - 4,\n pos2 = input.length - 2;\n array[HOUR] = toInt(input.substr(0, pos1));\n array[MINUTE] = toInt(input.substr(pos1, 2));\n array[SECOND] = toInt(input.substr(pos2));\n getParsingFlags(config).bigHour = true;\n});\naddParseToken('Hmm', function (input, array, config) {\n var pos = input.length - 2;\n array[HOUR] = toInt(input.substr(0, pos));\n array[MINUTE] = toInt(input.substr(pos));\n});\naddParseToken('Hmmss', function (input, array, config) {\n var pos1 = input.length - 4,\n pos2 = input.length - 2;\n array[HOUR] = toInt(input.substr(0, pos1));\n array[MINUTE] = toInt(input.substr(pos1, 2));\n array[SECOND] = toInt(input.substr(pos2));\n});\n\n// LOCALES\n\nfunction localeIsPM(input) {\n // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays\n // Using charAt should be more compatible.\n return (input + '').toLowerCase().charAt(0) === 'p';\n}\n\nvar defaultLocaleMeridiemParse = /[ap]\\.?m?\\.?/i,\n // Setting the hour should keep the time, because the user explicitly\n // specified which hour they want. So trying to maintain the same hour (in\n // a new timezone) makes sense. Adding/subtracting hours does not follow\n // this rule.\n getSetHour = makeGetSet('Hours', true);\n\nfunction localeMeridiem(hours, minutes, isLower) {\n if (hours > 11) {\n return isLower ? 'pm' : 'PM';\n } else {\n return isLower ? 'am' : 'AM';\n }\n}\n\nvar baseConfig = {\n calendar: defaultCalendar,\n longDateFormat: defaultLongDateFormat,\n invalidDate: defaultInvalidDate,\n ordinal: defaultOrdinal,\n dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse,\n relativeTime: defaultRelativeTime,\n\n months: defaultLocaleMonths,\n monthsShort: defaultLocaleMonthsShort,\n\n week: defaultLocaleWeek,\n\n weekdays: defaultLocaleWeekdays,\n weekdaysMin: defaultLocaleWeekdaysMin,\n weekdaysShort: defaultLocaleWeekdaysShort,\n\n meridiemParse: defaultLocaleMeridiemParse,\n};\n\n// internal storage for locale config files\nvar locales = {},\n localeFamilies = {},\n globalLocale;\n\nfunction commonPrefix(arr1, arr2) {\n var i,\n minl = Math.min(arr1.length, arr2.length);\n for (i = 0; i < minl; i += 1) {\n if (arr1[i] !== arr2[i]) {\n return i;\n }\n }\n return minl;\n}\n\nfunction normalizeLocale(key) {\n return key ? key.toLowerCase().replace('_', '-') : key;\n}\n\n// pick the locale from the array\n// try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each\n// substring from most specific to least, but move to the next array item if it's a more specific variant than the current root\nfunction chooseLocale(names) {\n var i = 0,\n j,\n next,\n locale,\n split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (\n next &&\n next.length >= j &&\n commonPrefix(split, next) >= j - 1\n ) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return globalLocale;\n}\n\nfunction isLocaleNameSane(name) {\n // Prevent names that look like filesystem paths, i.e contain '/' or '\\'\n return name.match('^[^/\\\\\\\\]*$') != null;\n}\n\nfunction loadLocale(name) {\n var oldLocale = null,\n aliasedRequire;\n // TODO: Find a better way to register and load all the locales in Node\n if (\n locales[name] === undefined &&\n typeof module !== 'undefined' &&\n module &&\n module.exports &&\n isLocaleNameSane(name)\n ) {\n try {\n oldLocale = globalLocale._abbr;\n aliasedRequire = require;\n aliasedRequire('./locale/' + name);\n getSetGlobalLocale(oldLocale);\n } catch (e) {\n // mark as not found to avoid repeating expensive file require call causing high CPU\n // when trying to find en-US, en_US, en-us for every format call\n locales[name] = null; // null means not found\n }\n }\n return locales[name];\n}\n\n// This function will load locale and then set the global locale. If\n// no arguments are passed in, it will simply return the current global\n// locale key.\nfunction getSetGlobalLocale(key, values) {\n var data;\n if (key) {\n if (isUndefined(values)) {\n data = getLocale(key);\n } else {\n data = defineLocale(key, values);\n }\n\n if (data) {\n // moment.duration._locale = moment._locale = data;\n globalLocale = data;\n } else {\n if (typeof console !== 'undefined' && console.warn) {\n //warn user if arguments are passed but the locale could not be set\n console.warn(\n 'Locale ' + key + ' not found. Did you forget to load it?'\n );\n }\n }\n }\n\n return globalLocale._abbr;\n}\n\nfunction defineLocale(name, config) {\n if (config !== null) {\n var locale,\n parentConfig = baseConfig;\n config.abbr = name;\n if (locales[name] != null) {\n deprecateSimple(\n 'defineLocaleOverride',\n 'use moment.updateLocale(localeName, config) to change ' +\n 'an existing locale. moment.defineLocale(localeName, ' +\n 'config) should only be used for creating a new locale ' +\n 'See http://momentjs.com/guides/#/warnings/define-locale/ for more info.'\n );\n parentConfig = locales[name]._config;\n } else if (config.parentLocale != null) {\n if (locales[config.parentLocale] != null) {\n parentConfig = locales[config.parentLocale]._config;\n } else {\n locale = loadLocale(config.parentLocale);\n if (locale != null) {\n parentConfig = locale._config;\n } else {\n if (!localeFamilies[config.parentLocale]) {\n localeFamilies[config.parentLocale] = [];\n }\n localeFamilies[config.parentLocale].push({\n name: name,\n config: config,\n });\n return null;\n }\n }\n }\n locales[name] = new Locale(mergeConfigs(parentConfig, config));\n\n if (localeFamilies[name]) {\n localeFamilies[name].forEach(function (x) {\n defineLocale(x.name, x.config);\n });\n }\n\n // backwards compat for now: also set the locale\n // make sure we set the locale AFTER all child locales have been\n // created, so we won't end up with the child locale set.\n getSetGlobalLocale(name);\n\n return locales[name];\n } else {\n // useful for testing\n delete locales[name];\n return null;\n }\n}\n\nfunction updateLocale(name, config) {\n if (config != null) {\n var locale,\n tmpLocale,\n parentConfig = baseConfig;\n\n if (locales[name] != null && locales[name].parentLocale != null) {\n // Update existing child locale in-place to avoid memory-leaks\n locales[name].set(mergeConfigs(locales[name]._config, config));\n } else {\n // MERGE\n tmpLocale = loadLocale(name);\n if (tmpLocale != null) {\n parentConfig = tmpLocale._config;\n }\n config = mergeConfigs(parentConfig, config);\n if (tmpLocale == null) {\n // updateLocale is called for creating a new locale\n // Set abbr so it will have a name (getters return\n // undefined otherwise).\n config.abbr = name;\n }\n locale = new Locale(config);\n locale.parentLocale = locales[name];\n locales[name] = locale;\n }\n\n // backwards compat for now: also set the locale\n getSetGlobalLocale(name);\n } else {\n // pass null for config to unupdate, useful for tests\n if (locales[name] != null) {\n if (locales[name].parentLocale != null) {\n locales[name] = locales[name].parentLocale;\n if (name === getSetGlobalLocale()) {\n getSetGlobalLocale(name);\n }\n } else if (locales[name] != null) {\n delete locales[name];\n }\n }\n }\n return locales[name];\n}\n\n// returns locale data\nfunction getLocale(key) {\n var locale;\n\n if (key && key._locale && key._locale._abbr) {\n key = key._locale._abbr;\n }\n\n if (!key) {\n return globalLocale;\n }\n\n if (!isArray(key)) {\n //short-circuit everything else\n locale = loadLocale(key);\n if (locale) {\n return locale;\n }\n key = [key];\n }\n\n return chooseLocale(key);\n}\n\nfunction listLocales() {\n return keys(locales);\n}\n\nfunction checkOverflow(m) {\n var overflow,\n a = m._a;\n\n if (a && getParsingFlags(m).overflow === -2) {\n overflow =\n a[MONTH] < 0 || a[MONTH] > 11\n ? MONTH\n : a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH])\n ? DATE\n : a[HOUR] < 0 ||\n a[HOUR] > 24 ||\n (a[HOUR] === 24 &&\n (a[MINUTE] !== 0 ||\n a[SECOND] !== 0 ||\n a[MILLISECOND] !== 0))\n ? HOUR\n : a[MINUTE] < 0 || a[MINUTE] > 59\n ? MINUTE\n : a[SECOND] < 0 || a[SECOND] > 59\n ? SECOND\n : a[MILLISECOND] < 0 || a[MILLISECOND] > 999\n ? MILLISECOND\n : -1;\n\n if (\n getParsingFlags(m)._overflowDayOfYear &&\n (overflow < YEAR || overflow > DATE)\n ) {\n overflow = DATE;\n }\n if (getParsingFlags(m)._overflowWeeks && overflow === -1) {\n overflow = WEEK;\n }\n if (getParsingFlags(m)._overflowWeekday && overflow === -1) {\n overflow = WEEKDAY;\n }\n\n getParsingFlags(m).overflow = overflow;\n }\n\n return m;\n}\n\n// iso 8601 regex\n// 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00)\nvar extendedIsoRegex =\n /^\\s*((?:[+-]\\d{6}|\\d{4})-(?:\\d\\d-\\d\\d|W\\d\\d-\\d|W\\d\\d|\\d\\d\\d|\\d\\d))(?:(T| )(\\d\\d(?::\\d\\d(?::\\d\\d(?:[.,]\\d+)?)?)?)([+-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?$/,\n basicIsoRegex =\n /^\\s*((?:[+-]\\d{6}|\\d{4})(?:\\d\\d\\d\\d|W\\d\\d\\d|W\\d\\d|\\d\\d\\d|\\d\\d|))(?:(T| )(\\d\\d(?:\\d\\d(?:\\d\\d(?:[.,]\\d+)?)?)?)([+-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?$/,\n tzRegex = /Z|[+-]\\d\\d(?::?\\d\\d)?/,\n isoDates = [\n ['YYYYYY-MM-DD', /[+-]\\d{6}-\\d\\d-\\d\\d/],\n ['YYYY-MM-DD', /\\d{4}-\\d\\d-\\d\\d/],\n ['GGGG-[W]WW-E', /\\d{4}-W\\d\\d-\\d/],\n ['GGGG-[W]WW', /\\d{4}-W\\d\\d/, false],\n ['YYYY-DDD', /\\d{4}-\\d{3}/],\n ['YYYY-MM', /\\d{4}-\\d\\d/, false],\n ['YYYYYYMMDD', /[+-]\\d{10}/],\n ['YYYYMMDD', /\\d{8}/],\n ['GGGG[W]WWE', /\\d{4}W\\d{3}/],\n ['GGGG[W]WW', /\\d{4}W\\d{2}/, false],\n ['YYYYDDD', /\\d{7}/],\n ['YYYYMM', /\\d{6}/, false],\n ['YYYY', /\\d{4}/, false],\n ],\n // iso time formats and regexes\n isoTimes = [\n ['HH:mm:ss.SSSS', /\\d\\d:\\d\\d:\\d\\d\\.\\d+/],\n ['HH:mm:ss,SSSS', /\\d\\d:\\d\\d:\\d\\d,\\d+/],\n ['HH:mm:ss', /\\d\\d:\\d\\d:\\d\\d/],\n ['HH:mm', /\\d\\d:\\d\\d/],\n ['HHmmss.SSSS', /\\d\\d\\d\\d\\d\\d\\.\\d+/],\n ['HHmmss,SSSS', /\\d\\d\\d\\d\\d\\d,\\d+/],\n ['HHmmss', /\\d\\d\\d\\d\\d\\d/],\n ['HHmm', /\\d\\d\\d\\d/],\n ['HH', /\\d\\d/],\n ],\n aspNetJsonRegex = /^\\/?Date\\((-?\\d+)/i,\n // RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3\n rfc2822 =\n /^(?:(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{4}))$/,\n obsOffsets = {\n UT: 0,\n GMT: 0,\n EDT: -4 * 60,\n EST: -5 * 60,\n CDT: -5 * 60,\n CST: -6 * 60,\n MDT: -6 * 60,\n MST: -7 * 60,\n PDT: -7 * 60,\n PST: -8 * 60,\n };\n\n// date from iso format\nfunction configFromISO(config) {\n var i,\n l,\n string = config._i,\n match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string),\n allowTime,\n dateFormat,\n timeFormat,\n tzFormat,\n isoDatesLen = isoDates.length,\n isoTimesLen = isoTimes.length;\n\n if (match) {\n getParsingFlags(config).iso = true;\n for (i = 0, l = isoDatesLen; i < l; i++) {\n if (isoDates[i][1].exec(match[1])) {\n dateFormat = isoDates[i][0];\n allowTime = isoDates[i][2] !== false;\n break;\n }\n }\n if (dateFormat == null) {\n config._isValid = false;\n return;\n }\n if (match[3]) {\n for (i = 0, l = isoTimesLen; i < l; i++) {\n if (isoTimes[i][1].exec(match[3])) {\n // match[2] should be 'T' or space\n timeFormat = (match[2] || ' ') + isoTimes[i][0];\n break;\n }\n }\n if (timeFormat == null) {\n config._isValid = false;\n return;\n }\n }\n if (!allowTime && timeFormat != null) {\n config._isValid = false;\n return;\n }\n if (match[4]) {\n if (tzRegex.exec(match[4])) {\n tzFormat = 'Z';\n } else {\n config._isValid = false;\n return;\n }\n }\n config._f = dateFormat + (timeFormat || '') + (tzFormat || '');\n configFromStringAndFormat(config);\n } else {\n config._isValid = false;\n }\n}\n\nfunction extractFromRFC2822Strings(\n yearStr,\n monthStr,\n dayStr,\n hourStr,\n minuteStr,\n secondStr\n) {\n var result = [\n untruncateYear(yearStr),\n defaultLocaleMonthsShort.indexOf(monthStr),\n parseInt(dayStr, 10),\n parseInt(hourStr, 10),\n parseInt(minuteStr, 10),\n ];\n\n if (secondStr) {\n result.push(parseInt(secondStr, 10));\n }\n\n return result;\n}\n\nfunction untruncateYear(yearStr) {\n var year = parseInt(yearStr, 10);\n if (year <= 49) {\n return 2000 + year;\n } else if (year <= 999) {\n return 1900 + year;\n }\n return year;\n}\n\nfunction preprocessRFC2822(s) {\n // Remove comments and folding whitespace and replace multiple-spaces with a single space\n return s\n .replace(/\\([^()]*\\)|[\\n\\t]/g, ' ')\n .replace(/(\\s\\s+)/g, ' ')\n .replace(/^\\s\\s*/, '')\n .replace(/\\s\\s*$/, '');\n}\n\nfunction checkWeekday(weekdayStr, parsedInput, config) {\n if (weekdayStr) {\n // TODO: Replace the vanilla JS Date object with an independent day-of-week check.\n var weekdayProvided = defaultLocaleWeekdaysShort.indexOf(weekdayStr),\n weekdayActual = new Date(\n parsedInput[0],\n parsedInput[1],\n parsedInput[2]\n ).getDay();\n if (weekdayProvided !== weekdayActual) {\n getParsingFlags(config).weekdayMismatch = true;\n config._isValid = false;\n return false;\n }\n }\n return true;\n}\n\nfunction calculateOffset(obsOffset, militaryOffset, numOffset) {\n if (obsOffset) {\n return obsOffsets[obsOffset];\n } else if (militaryOffset) {\n // the only allowed military tz is Z\n return 0;\n } else {\n var hm = parseInt(numOffset, 10),\n m = hm % 100,\n h = (hm - m) / 100;\n return h * 60 + m;\n }\n}\n\n// date and time from ref 2822 format\nfunction configFromRFC2822(config) {\n var match = rfc2822.exec(preprocessRFC2822(config._i)),\n parsedArray;\n if (match) {\n parsedArray = extractFromRFC2822Strings(\n match[4],\n match[3],\n match[2],\n match[5],\n match[6],\n match[7]\n );\n if (!checkWeekday(match[1], parsedArray, config)) {\n return;\n }\n\n config._a = parsedArray;\n config._tzm = calculateOffset(match[8], match[9], match[10]);\n\n config._d = createUTCDate.apply(null, config._a);\n config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);\n\n getParsingFlags(config).rfc2822 = true;\n } else {\n config._isValid = false;\n }\n}\n\n// date from 1) ASP.NET, 2) ISO, 3) RFC 2822 formats, or 4) optional fallback if parsing isn't strict\nfunction configFromString(config) {\n var matched = aspNetJsonRegex.exec(config._i);\n if (matched !== null) {\n config._d = new Date(+matched[1]);\n return;\n }\n\n configFromISO(config);\n if (config._isValid === false) {\n delete config._isValid;\n } else {\n return;\n }\n\n configFromRFC2822(config);\n if (config._isValid === false) {\n delete config._isValid;\n } else {\n return;\n }\n\n if (config._strict) {\n config._isValid = false;\n } else {\n // Final attempt, use Input Fallback\n hooks.createFromInputFallback(config);\n }\n}\n\nhooks.createFromInputFallback = deprecate(\n 'value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), ' +\n 'which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are ' +\n 'discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.',\n function (config) {\n config._d = new Date(config._i + (config._useUTC ? ' UTC' : ''));\n }\n);\n\n// Pick the first defined of two or three arguments.\nfunction defaults(a, b, c) {\n if (a != null) {\n return a;\n }\n if (b != null) {\n return b;\n }\n return c;\n}\n\nfunction currentDateArray(config) {\n // hooks is actually the exported moment object\n var nowValue = new Date(hooks.now());\n if (config._useUTC) {\n return [\n nowValue.getUTCFullYear(),\n nowValue.getUTCMonth(),\n nowValue.getUTCDate(),\n ];\n }\n return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()];\n}\n\n// convert an array to a date.\n// the array should mirror the parameters below\n// note: all values past the year are optional and will default to the lowest possible value.\n// [year, month, day , hour, minute, second, millisecond]\nfunction configFromArray(config) {\n var i,\n date,\n input = [],\n currentDate,\n expectedWeekday,\n yearToUse;\n\n if (config._d) {\n return;\n }\n\n currentDate = currentDateArray(config);\n\n //compute day of the year from weeks and weekdays\n if (config._w && config._a[DATE] == null && config._a[MONTH] == null) {\n dayOfYearFromWeekInfo(config);\n }\n\n //if the day of the year is set, figure out what it is\n if (config._dayOfYear != null) {\n yearToUse = defaults(config._a[YEAR], currentDate[YEAR]);\n\n if (\n config._dayOfYear > daysInYear(yearToUse) ||\n config._dayOfYear === 0\n ) {\n getParsingFlags(config)._overflowDayOfYear = true;\n }\n\n date = createUTCDate(yearToUse, 0, config._dayOfYear);\n config._a[MONTH] = date.getUTCMonth();\n config._a[DATE] = date.getUTCDate();\n }\n\n // Default to current date.\n // * if no year, month, day of month are given, default to today\n // * if day of month is given, default month and year\n // * if month is given, default only year\n // * if year is given, don't default anything\n for (i = 0; i < 3 && config._a[i] == null; ++i) {\n config._a[i] = input[i] = currentDate[i];\n }\n\n // Zero out whatever was not defaulted, including time\n for (; i < 7; i++) {\n config._a[i] = input[i] =\n config._a[i] == null ? (i === 2 ? 1 : 0) : config._a[i];\n }\n\n // Check for 24:00:00.000\n if (\n config._a[HOUR] === 24 &&\n config._a[MINUTE] === 0 &&\n config._a[SECOND] === 0 &&\n config._a[MILLISECOND] === 0\n ) {\n config._nextDay = true;\n config._a[HOUR] = 0;\n }\n\n config._d = (config._useUTC ? createUTCDate : createDate).apply(\n null,\n input\n );\n expectedWeekday = config._useUTC\n ? config._d.getUTCDay()\n : config._d.getDay();\n\n // Apply timezone offset from input. The actual utcOffset can be changed\n // with parseZone.\n if (config._tzm != null) {\n config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);\n }\n\n if (config._nextDay) {\n config._a[HOUR] = 24;\n }\n\n // check for mismatching day of week\n if (\n config._w &&\n typeof config._w.d !== 'undefined' &&\n config._w.d !== expectedWeekday\n ) {\n getParsingFlags(config).weekdayMismatch = true;\n }\n}\n\nfunction dayOfYearFromWeekInfo(config) {\n var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow, curWeek;\n\n w = config._w;\n if (w.GG != null || w.W != null || w.E != null) {\n dow = 1;\n doy = 4;\n\n // TODO: We need to take the current isoWeekYear, but that depends on\n // how we interpret now (local, utc, fixed offset). So create\n // a now version of current config (take local/utc/offset flags, and\n // create now).\n weekYear = defaults(\n w.GG,\n config._a[YEAR],\n weekOfYear(createLocal(), 1, 4).year\n );\n week = defaults(w.W, 1);\n weekday = defaults(w.E, 1);\n if (weekday < 1 || weekday > 7) {\n weekdayOverflow = true;\n }\n } else {\n dow = config._locale._week.dow;\n doy = config._locale._week.doy;\n\n curWeek = weekOfYear(createLocal(), dow, doy);\n\n weekYear = defaults(w.gg, config._a[YEAR], curWeek.year);\n\n // Default to current week.\n week = defaults(w.w, curWeek.week);\n\n if (w.d != null) {\n // weekday -- low day numbers are considered next week\n weekday = w.d;\n if (weekday < 0 || weekday > 6) {\n weekdayOverflow = true;\n }\n } else if (w.e != null) {\n // local weekday -- counting starts from beginning of week\n weekday = w.e + dow;\n if (w.e < 0 || w.e > 6) {\n weekdayOverflow = true;\n }\n } else {\n // default to beginning of week\n weekday = dow;\n }\n }\n if (week < 1 || week > weeksInYear(weekYear, dow, doy)) {\n getParsingFlags(config)._overflowWeeks = true;\n } else if (weekdayOverflow != null) {\n getParsingFlags(config)._overflowWeekday = true;\n } else {\n temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy);\n config._a[YEAR] = temp.year;\n config._dayOfYear = temp.dayOfYear;\n }\n}\n\n// constant that refers to the ISO standard\nhooks.ISO_8601 = function () {};\n\n// constant that refers to the RFC 2822 form\nhooks.RFC_2822 = function () {};\n\n// date from string and format string\nfunction configFromStringAndFormat(config) {\n // TODO: Move this to another part of the creation flow to prevent circular deps\n if (config._f === hooks.ISO_8601) {\n configFromISO(config);\n return;\n }\n if (config._f === hooks.RFC_2822) {\n configFromRFC2822(config);\n return;\n }\n config._a = [];\n getParsingFlags(config).empty = true;\n\n // This array is used to make a Date, either with `new Date` or `Date.UTC`\n var string = '' + config._i,\n i,\n parsedInput,\n tokens,\n token,\n skipped,\n stringLength = string.length,\n totalParsedInputLength = 0,\n era,\n tokenLen;\n\n tokens =\n expandFormat(config._f, config._locale).match(formattingTokens) || [];\n tokenLen = tokens.length;\n for (i = 0; i < tokenLen; i++) {\n token = tokens[i];\n parsedInput = (string.match(getParseRegexForToken(token, config)) ||\n [])[0];\n if (parsedInput) {\n skipped = string.substr(0, string.indexOf(parsedInput));\n if (skipped.length > 0) {\n getParsingFlags(config).unusedInput.push(skipped);\n }\n string = string.slice(\n string.indexOf(parsedInput) + parsedInput.length\n );\n totalParsedInputLength += parsedInput.length;\n }\n // don't parse if it's not a known token\n if (formatTokenFunctions[token]) {\n if (parsedInput) {\n getParsingFlags(config).empty = false;\n } else {\n getParsingFlags(config).unusedTokens.push(token);\n }\n addTimeToArrayFromToken(token, parsedInput, config);\n } else if (config._strict && !parsedInput) {\n getParsingFlags(config).unusedTokens.push(token);\n }\n }\n\n // add remaining unparsed input length to the string\n getParsingFlags(config).charsLeftOver =\n stringLength - totalParsedInputLength;\n if (string.length > 0) {\n getParsingFlags(config).unusedInput.push(string);\n }\n\n // clear _12h flag if hour is <= 12\n if (\n config._a[HOUR] <= 12 &&\n getParsingFlags(config).bigHour === true &&\n config._a[HOUR] > 0\n ) {\n getParsingFlags(config).bigHour = undefined;\n }\n\n getParsingFlags(config).parsedDateParts = config._a.slice(0);\n getParsingFlags(config).meridiem = config._meridiem;\n // handle meridiem\n config._a[HOUR] = meridiemFixWrap(\n config._locale,\n config._a[HOUR],\n config._meridiem\n );\n\n // handle era\n era = getParsingFlags(config).era;\n if (era !== null) {\n config._a[YEAR] = config._locale.erasConvertYear(era, config._a[YEAR]);\n }\n\n configFromArray(config);\n checkOverflow(config);\n}\n\nfunction meridiemFixWrap(locale, hour, meridiem) {\n var isPm;\n\n if (meridiem == null) {\n // nothing to do\n return hour;\n }\n if (locale.meridiemHour != null) {\n return locale.meridiemHour(hour, meridiem);\n } else if (locale.isPM != null) {\n // Fallback\n isPm = locale.isPM(meridiem);\n if (isPm && hour < 12) {\n hour += 12;\n }\n if (!isPm && hour === 12) {\n hour = 0;\n }\n return hour;\n } else {\n // this is not supposed to happen\n return hour;\n }\n}\n\n// date from string and array of format strings\nfunction configFromStringAndArray(config) {\n var tempConfig,\n bestMoment,\n scoreToBeat,\n i,\n currentScore,\n validFormatFound,\n bestFormatIsValid = false,\n configfLen = config._f.length;\n\n if (configfLen === 0) {\n getParsingFlags(config).invalidFormat = true;\n config._d = new Date(NaN);\n return;\n }\n\n for (i = 0; i < configfLen; i++) {\n currentScore = 0;\n validFormatFound = false;\n tempConfig = copyConfig({}, config);\n if (config._useUTC != null) {\n tempConfig._useUTC = config._useUTC;\n }\n tempConfig._f = config._f[i];\n configFromStringAndFormat(tempConfig);\n\n if (isValid(tempConfig)) {\n validFormatFound = true;\n }\n\n // if there is any input that was not parsed add a penalty for that format\n currentScore += getParsingFlags(tempConfig).charsLeftOver;\n\n //or tokens\n currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10;\n\n getParsingFlags(tempConfig).score = currentScore;\n\n if (!bestFormatIsValid) {\n if (\n scoreToBeat == null ||\n currentScore < scoreToBeat ||\n validFormatFound\n ) {\n scoreToBeat = currentScore;\n bestMoment = tempConfig;\n if (validFormatFound) {\n bestFormatIsValid = true;\n }\n }\n } else {\n if (currentScore < scoreToBeat) {\n scoreToBeat = currentScore;\n bestMoment = tempConfig;\n }\n }\n }\n\n extend(config, bestMoment || tempConfig);\n}\n\nfunction configFromObject(config) {\n if (config._d) {\n return;\n }\n\n var i = normalizeObjectUnits(config._i),\n dayOrDate = i.day === undefined ? i.date : i.day;\n config._a = map(\n [i.year, i.month, dayOrDate, i.hour, i.minute, i.second, i.millisecond],\n function (obj) {\n return obj && parseInt(obj, 10);\n }\n );\n\n configFromArray(config);\n}\n\nfunction createFromConfig(config) {\n var res = new Moment(checkOverflow(prepareConfig(config)));\n if (res._nextDay) {\n // Adding is smart enough around DST\n res.add(1, 'd');\n res._nextDay = undefined;\n }\n\n return res;\n}\n\nfunction prepareConfig(config) {\n var input = config._i,\n format = config._f;\n\n config._locale = config._locale || getLocale(config._l);\n\n if (input === null || (format === undefined && input === '')) {\n return createInvalid({ nullInput: true });\n }\n\n if (typeof input === 'string') {\n config._i = input = config._locale.preparse(input);\n }\n\n if (isMoment(input)) {\n return new Moment(checkOverflow(input));\n } else if (isDate(input)) {\n config._d = input;\n } else if (isArray(format)) {\n configFromStringAndArray(config);\n } else if (format) {\n configFromStringAndFormat(config);\n } else {\n configFromInput(config);\n }\n\n if (!isValid(config)) {\n config._d = null;\n }\n\n return config;\n}\n\nfunction configFromInput(config) {\n var input = config._i;\n if (isUndefined(input)) {\n config._d = new Date(hooks.now());\n } else if (isDate(input)) {\n config._d = new Date(input.valueOf());\n } else if (typeof input === 'string') {\n configFromString(config);\n } else if (isArray(input)) {\n config._a = map(input.slice(0), function (obj) {\n return parseInt(obj, 10);\n });\n configFromArray(config);\n } else if (isObject(input)) {\n configFromObject(config);\n } else if (isNumber(input)) {\n // from milliseconds\n config._d = new Date(input);\n } else {\n hooks.createFromInputFallback(config);\n }\n}\n\nfunction createLocalOrUTC(input, format, locale, strict, isUTC) {\n var c = {};\n\n if (format === true || format === false) {\n strict = format;\n format = undefined;\n }\n\n if (locale === true || locale === false) {\n strict = locale;\n locale = undefined;\n }\n\n if (\n (isObject(input) && isObjectEmpty(input)) ||\n (isArray(input) && input.length === 0)\n ) {\n input = undefined;\n }\n // object construction must be done this way.\n // https://github.com/moment/moment/issues/1423\n c._isAMomentObject = true;\n c._useUTC = c._isUTC = isUTC;\n c._l = locale;\n c._i = input;\n c._f = format;\n c._strict = strict;\n\n return createFromConfig(c);\n}\n\nfunction createLocal(input, format, locale, strict) {\n return createLocalOrUTC(input, format, locale, strict, false);\n}\n\nvar prototypeMin = deprecate(\n 'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/',\n function () {\n var other = createLocal.apply(null, arguments);\n if (this.isValid() && other.isValid()) {\n return other < this ? this : other;\n } else {\n return createInvalid();\n }\n }\n ),\n prototypeMax = deprecate(\n 'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/',\n function () {\n var other = createLocal.apply(null, arguments);\n if (this.isValid() && other.isValid()) {\n return other > this ? this : other;\n } else {\n return createInvalid();\n }\n }\n );\n\n// Pick a moment m from moments so that m[fn](other) is true for all\n// other. This relies on the function fn to be transitive.\n//\n// moments should either be an array of moment objects or an array, whose\n// first element is an array of moment objects.\nfunction pickBy(fn, moments) {\n var res, i;\n if (moments.length === 1 && isArray(moments[0])) {\n moments = moments[0];\n }\n if (!moments.length) {\n return createLocal();\n }\n res = moments[0];\n for (i = 1; i < moments.length; ++i) {\n if (!moments[i].isValid() || moments[i][fn](res)) {\n res = moments[i];\n }\n }\n return res;\n}\n\n// TODO: Use [].sort instead?\nfunction min() {\n var args = [].slice.call(arguments, 0);\n\n return pickBy('isBefore', args);\n}\n\nfunction max() {\n var args = [].slice.call(arguments, 0);\n\n return pickBy('isAfter', args);\n}\n\nvar now = function () {\n return Date.now ? Date.now() : +new Date();\n};\n\nvar ordering = [\n 'year',\n 'quarter',\n 'month',\n 'week',\n 'day',\n 'hour',\n 'minute',\n 'second',\n 'millisecond',\n];\n\nfunction isDurationValid(m) {\n var key,\n unitHasDecimal = false,\n i,\n orderLen = ordering.length;\n for (key in m) {\n if (\n hasOwnProp(m, key) &&\n !(\n indexOf.call(ordering, key) !== -1 &&\n (m[key] == null || !isNaN(m[key]))\n )\n ) {\n return false;\n }\n }\n\n for (i = 0; i < orderLen; ++i) {\n if (m[ordering[i]]) {\n if (unitHasDecimal) {\n return false; // only allow non-integers for smallest unit\n }\n if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) {\n unitHasDecimal = true;\n }\n }\n }\n\n return true;\n}\n\nfunction isValid$1() {\n return this._isValid;\n}\n\nfunction createInvalid$1() {\n return createDuration(NaN);\n}\n\nfunction Duration(duration) {\n var normalizedInput = normalizeObjectUnits(duration),\n years = normalizedInput.year || 0,\n quarters = normalizedInput.quarter || 0,\n months = normalizedInput.month || 0,\n weeks = normalizedInput.week || normalizedInput.isoWeek || 0,\n days = normalizedInput.day || 0,\n hours = normalizedInput.hour || 0,\n minutes = normalizedInput.minute || 0,\n seconds = normalizedInput.second || 0,\n milliseconds = normalizedInput.millisecond || 0;\n\n this._isValid = isDurationValid(normalizedInput);\n\n // representation for dateAddRemove\n this._milliseconds =\n +milliseconds +\n seconds * 1e3 + // 1000\n minutes * 6e4 + // 1000 * 60\n hours * 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978\n // Because of dateAddRemove treats 24 hours as different from a\n // day when working around DST, we need to store them separately\n this._days = +days + weeks * 7;\n // It is impossible to translate months into days without knowing\n // which months you are are talking about, so we have to store\n // it separately.\n this._months = +months + quarters * 3 + years * 12;\n\n this._data = {};\n\n this._locale = getLocale();\n\n this._bubble();\n}\n\nfunction isDuration(obj) {\n return obj instanceof Duration;\n}\n\nfunction absRound(number) {\n if (number < 0) {\n return Math.round(-1 * number) * -1;\n } else {\n return Math.round(number);\n }\n}\n\n// compare two arrays, return the number of differences\nfunction compareArrays(array1, array2, dontConvert) {\n var len = Math.min(array1.length, array2.length),\n lengthDiff = Math.abs(array1.length - array2.length),\n diffs = 0,\n i;\n for (i = 0; i < len; i++) {\n if (\n (dontConvert && array1[i] !== array2[i]) ||\n (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))\n ) {\n diffs++;\n }\n }\n return diffs + lengthDiff;\n}\n\n// FORMATTING\n\nfunction offset(token, separator) {\n addFormatToken(token, 0, 0, function () {\n var offset = this.utcOffset(),\n sign = '+';\n if (offset < 0) {\n offset = -offset;\n sign = '-';\n }\n return (\n sign +\n zeroFill(~~(offset / 60), 2) +\n separator +\n zeroFill(~~offset % 60, 2)\n );\n });\n}\n\noffset('Z', ':');\noffset('ZZ', '');\n\n// PARSING\n\naddRegexToken('Z', matchShortOffset);\naddRegexToken('ZZ', matchShortOffset);\naddParseToken(['Z', 'ZZ'], function (input, array, config) {\n config._useUTC = true;\n config._tzm = offsetFromString(matchShortOffset, input);\n});\n\n// HELPERS\n\n// timezone chunker\n// '+10:00' > ['10', '00']\n// '-1530' > ['-15', '30']\nvar chunkOffset = /([\\+\\-]|\\d\\d)/gi;\n\nfunction offsetFromString(matcher, string) {\n var matches = (string || '').match(matcher),\n chunk,\n parts,\n minutes;\n\n if (matches === null) {\n return null;\n }\n\n chunk = matches[matches.length - 1] || [];\n parts = (chunk + '').match(chunkOffset) || ['-', 0, 0];\n minutes = +(parts[1] * 60) + toInt(parts[2]);\n\n return minutes === 0 ? 0 : parts[0] === '+' ? minutes : -minutes;\n}\n\n// Return a moment from input, that is local/utc/zone equivalent to model.\nfunction cloneWithOffset(input, model) {\n var res, diff;\n if (model._isUTC) {\n res = model.clone();\n diff =\n (isMoment(input) || isDate(input)\n ? input.valueOf()\n : createLocal(input).valueOf()) - res.valueOf();\n // Use low-level api, because this fn is low-level api.\n res._d.setTime(res._d.valueOf() + diff);\n hooks.updateOffset(res, false);\n return res;\n } else {\n return createLocal(input).local();\n }\n}\n\nfunction getDateOffset(m) {\n // On Firefox.24 Date#getTimezoneOffset returns a floating point.\n // https://github.com/moment/moment/pull/1871\n return -Math.round(m._d.getTimezoneOffset());\n}\n\n// HOOKS\n\n// This function will be called whenever a moment is mutated.\n// It is intended to keep the offset in sync with the timezone.\nhooks.updateOffset = function () {};\n\n// MOMENTS\n\n// keepLocalTime = true means only change the timezone, without\n// affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->\n// 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset\n// +0200, so we adjust the time as needed, to be valid.\n//\n// Keeping the time actually adds/subtracts (one hour)\n// from the actual represented time. That is why we call updateOffset\n// a second time. In case it wants us to change the offset again\n// _changeInProgress == true case, then we have to adjust, because\n// there is no such time in the given timezone.\nfunction getSetOffset(input, keepLocalTime, keepMinutes) {\n var offset = this._offset || 0,\n localAdjust;\n if (!this.isValid()) {\n return input != null ? this : NaN;\n }\n if (input != null) {\n if (typeof input === 'string') {\n input = offsetFromString(matchShortOffset, input);\n if (input === null) {\n return this;\n }\n } else if (Math.abs(input) < 16 && !keepMinutes) {\n input = input * 60;\n }\n if (!this._isUTC && keepLocalTime) {\n localAdjust = getDateOffset(this);\n }\n this._offset = input;\n this._isUTC = true;\n if (localAdjust != null) {\n this.add(localAdjust, 'm');\n }\n if (offset !== input) {\n if (!keepLocalTime || this._changeInProgress) {\n addSubtract(\n this,\n createDuration(input - offset, 'm'),\n 1,\n false\n );\n } else if (!this._changeInProgress) {\n this._changeInProgress = true;\n hooks.updateOffset(this, true);\n this._changeInProgress = null;\n }\n }\n return this;\n } else {\n return this._isUTC ? offset : getDateOffset(this);\n }\n}\n\nfunction getSetZone(input, keepLocalTime) {\n if (input != null) {\n if (typeof input !== 'string') {\n input = -input;\n }\n\n this.utcOffset(input, keepLocalTime);\n\n return this;\n } else {\n return -this.utcOffset();\n }\n}\n\nfunction setOffsetToUTC(keepLocalTime) {\n return this.utcOffset(0, keepLocalTime);\n}\n\nfunction setOffsetToLocal(keepLocalTime) {\n if (this._isUTC) {\n this.utcOffset(0, keepLocalTime);\n this._isUTC = false;\n\n if (keepLocalTime) {\n this.subtract(getDateOffset(this), 'm');\n }\n }\n return this;\n}\n\nfunction setOffsetToParsedOffset() {\n if (this._tzm != null) {\n this.utcOffset(this._tzm, false, true);\n } else if (typeof this._i === 'string') {\n var tZone = offsetFromString(matchOffset, this._i);\n if (tZone != null) {\n this.utcOffset(tZone);\n } else {\n this.utcOffset(0, true);\n }\n }\n return this;\n}\n\nfunction hasAlignedHourOffset(input) {\n if (!this.isValid()) {\n return false;\n }\n input = input ? createLocal(input).utcOffset() : 0;\n\n return (this.utcOffset() - input) % 60 === 0;\n}\n\nfunction isDaylightSavingTime() {\n return (\n this.utcOffset() > this.clone().month(0).utcOffset() ||\n this.utcOffset() > this.clone().month(5).utcOffset()\n );\n}\n\nfunction isDaylightSavingTimeShifted() {\n if (!isUndefined(this._isDSTShifted)) {\n return this._isDSTShifted;\n }\n\n var c = {},\n other;\n\n copyConfig(c, this);\n c = prepareConfig(c);\n\n if (c._a) {\n other = c._isUTC ? createUTC(c._a) : createLocal(c._a);\n this._isDSTShifted =\n this.isValid() && compareArrays(c._a, other.toArray()) > 0;\n } else {\n this._isDSTShifted = false;\n }\n\n return this._isDSTShifted;\n}\n\nfunction isLocal() {\n return this.isValid() ? !this._isUTC : false;\n}\n\nfunction isUtcOffset() {\n return this.isValid() ? this._isUTC : false;\n}\n\nfunction isUtc() {\n return this.isValid() ? this._isUTC && this._offset === 0 : false;\n}\n\n// ASP.NET json date format regex\nvar aspNetRegex = /^(-|\\+)?(?:(\\d*)[. ])?(\\d+):(\\d+)(?::(\\d+)(\\.\\d*)?)?$/,\n // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html\n // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere\n // and further modified to allow for strings containing both week and day\n isoRegex =\n /^(-|\\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;\n\nfunction createDuration(input, key) {\n var duration = input,\n // matching against regexp is expensive, do it on demand\n match = null,\n sign,\n ret,\n diffRes;\n\n if (isDuration(input)) {\n duration = {\n ms: input._milliseconds,\n d: input._days,\n M: input._months,\n };\n } else if (isNumber(input) || !isNaN(+input)) {\n duration = {};\n if (key) {\n duration[key] = +input;\n } else {\n duration.milliseconds = +input;\n }\n } else if ((match = aspNetRegex.exec(input))) {\n sign = match[1] === '-' ? -1 : 1;\n duration = {\n y: 0,\n d: toInt(match[DATE]) * sign,\n h: toInt(match[HOUR]) * sign,\n m: toInt(match[MINUTE]) * sign,\n s: toInt(match[SECOND]) * sign,\n ms: toInt(absRound(match[MILLISECOND] * 1000)) * sign, // the millisecond decimal point is included in the match\n };\n } else if ((match = isoRegex.exec(input))) {\n sign = match[1] === '-' ? -1 : 1;\n duration = {\n y: parseIso(match[2], sign),\n M: parseIso(match[3], sign),\n w: parseIso(match[4], sign),\n d: parseIso(match[5], sign),\n h: parseIso(match[6], sign),\n m: parseIso(match[7], sign),\n s: parseIso(match[8], sign),\n };\n } else if (duration == null) {\n // checks for null or undefined\n duration = {};\n } else if (\n typeof duration === 'object' &&\n ('from' in duration || 'to' in duration)\n ) {\n diffRes = momentsDifference(\n createLocal(duration.from),\n createLocal(duration.to)\n );\n\n duration = {};\n duration.ms = diffRes.milliseconds;\n duration.M = diffRes.months;\n }\n\n ret = new Duration(duration);\n\n if (isDuration(input) && hasOwnProp(input, '_locale')) {\n ret._locale = input._locale;\n }\n\n if (isDuration(input) && hasOwnProp(input, '_isValid')) {\n ret._isValid = input._isValid;\n }\n\n return ret;\n}\n\ncreateDuration.fn = Duration.prototype;\ncreateDuration.invalid = createInvalid$1;\n\nfunction parseIso(inp, sign) {\n // We'd normally use ~~inp for this, but unfortunately it also\n // converts floats to ints.\n // inp may be undefined, so careful calling replace on it.\n var res = inp && parseFloat(inp.replace(',', '.'));\n // apply sign while we're at it\n return (isNaN(res) ? 0 : res) * sign;\n}\n\nfunction positiveMomentsDifference(base, other) {\n var res = {};\n\n res.months =\n other.month() - base.month() + (other.year() - base.year()) * 12;\n if (base.clone().add(res.months, 'M').isAfter(other)) {\n --res.months;\n }\n\n res.milliseconds = +other - +base.clone().add(res.months, 'M');\n\n return res;\n}\n\nfunction momentsDifference(base, other) {\n var res;\n if (!(base.isValid() && other.isValid())) {\n return { milliseconds: 0, months: 0 };\n }\n\n other = cloneWithOffset(other, base);\n if (base.isBefore(other)) {\n res = positiveMomentsDifference(base, other);\n } else {\n res = positiveMomentsDifference(other, base);\n res.milliseconds = -res.milliseconds;\n res.months = -res.months;\n }\n\n return res;\n}\n\n// TODO: remove 'name' arg after deprecation is removed\nfunction createAdder(direction, name) {\n return function (val, period) {\n var dur, tmp;\n //invert the arguments, but complain about it\n if (period !== null && !isNaN(+period)) {\n deprecateSimple(\n name,\n 'moment().' +\n name +\n '(period, number) is deprecated. Please use moment().' +\n name +\n '(number, period). ' +\n 'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.'\n );\n tmp = val;\n val = period;\n period = tmp;\n }\n\n dur = createDuration(val, period);\n addSubtract(this, dur, direction);\n return this;\n };\n}\n\nfunction addSubtract(mom, duration, isAdding, updateOffset) {\n var milliseconds = duration._milliseconds,\n days = absRound(duration._days),\n months = absRound(duration._months);\n\n if (!mom.isValid()) {\n // No op\n return;\n }\n\n updateOffset = updateOffset == null ? true : updateOffset;\n\n if (months) {\n setMonth(mom, get(mom, 'Month') + months * isAdding);\n }\n if (days) {\n set$1(mom, 'Date', get(mom, 'Date') + days * isAdding);\n }\n if (milliseconds) {\n mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding);\n }\n if (updateOffset) {\n hooks.updateOffset(mom, days || months);\n }\n}\n\nvar add = createAdder(1, 'add'),\n subtract = createAdder(-1, 'subtract');\n\nfunction isString(input) {\n return typeof input === 'string' || input instanceof String;\n}\n\n// type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined\nfunction isMomentInput(input) {\n return (\n isMoment(input) ||\n isDate(input) ||\n isString(input) ||\n isNumber(input) ||\n isNumberOrStringArray(input) ||\n isMomentInputObject(input) ||\n input === null ||\n input === undefined\n );\n}\n\nfunction isMomentInputObject(input) {\n var objectTest = isObject(input) && !isObjectEmpty(input),\n propertyTest = false,\n properties = [\n 'years',\n 'year',\n 'y',\n 'months',\n 'month',\n 'M',\n 'days',\n 'day',\n 'd',\n 'dates',\n 'date',\n 'D',\n 'hours',\n 'hour',\n 'h',\n 'minutes',\n 'minute',\n 'm',\n 'seconds',\n 'second',\n 's',\n 'milliseconds',\n 'millisecond',\n 'ms',\n ],\n i,\n property,\n propertyLen = properties.length;\n\n for (i = 0; i < propertyLen; i += 1) {\n property = properties[i];\n propertyTest = propertyTest || hasOwnProp(input, property);\n }\n\n return objectTest && propertyTest;\n}\n\nfunction isNumberOrStringArray(input) {\n var arrayTest = isArray(input),\n dataTypeTest = false;\n if (arrayTest) {\n dataTypeTest =\n input.filter(function (item) {\n return !isNumber(item) && isString(input);\n }).length === 0;\n }\n return arrayTest && dataTypeTest;\n}\n\nfunction isCalendarSpec(input) {\n var objectTest = isObject(input) && !isObjectEmpty(input),\n propertyTest = false,\n properties = [\n 'sameDay',\n 'nextDay',\n 'lastDay',\n 'nextWeek',\n 'lastWeek',\n 'sameElse',\n ],\n i,\n property;\n\n for (i = 0; i < properties.length; i += 1) {\n property = properties[i];\n propertyTest = propertyTest || hasOwnProp(input, property);\n }\n\n return objectTest && propertyTest;\n}\n\nfunction getCalendarFormat(myMoment, now) {\n var diff = myMoment.diff(now, 'days', true);\n return diff < -6\n ? 'sameElse'\n : diff < -1\n ? 'lastWeek'\n : diff < 0\n ? 'lastDay'\n : diff < 1\n ? 'sameDay'\n : diff < 2\n ? 'nextDay'\n : diff < 7\n ? 'nextWeek'\n : 'sameElse';\n}\n\nfunction calendar$1(time, formats) {\n // Support for single parameter, formats only overload to the calendar function\n if (arguments.length === 1) {\n if (!arguments[0]) {\n time = undefined;\n formats = undefined;\n } else if (isMomentInput(arguments[0])) {\n time = arguments[0];\n formats = undefined;\n } else if (isCalendarSpec(arguments[0])) {\n formats = arguments[0];\n time = undefined;\n }\n }\n // We want to compare the start of today, vs this.\n // Getting start-of-today depends on whether we're local/utc/offset or not.\n var now = time || createLocal(),\n sod = cloneWithOffset(now, this).startOf('day'),\n format = hooks.calendarFormat(this, sod) || 'sameElse',\n output =\n formats &&\n (isFunction(formats[format])\n ? formats[format].call(this, now)\n : formats[format]);\n\n return this.format(\n output || this.localeData().calendar(format, this, createLocal(now))\n );\n}\n\nfunction clone() {\n return new Moment(this);\n}\n\nfunction isAfter(input, units) {\n var localInput = isMoment(input) ? input : createLocal(input);\n if (!(this.isValid() && localInput.isValid())) {\n return false;\n }\n units = normalizeUnits(units) || 'millisecond';\n if (units === 'millisecond') {\n return this.valueOf() > localInput.valueOf();\n } else {\n return localInput.valueOf() < this.clone().startOf(units).valueOf();\n }\n}\n\nfunction isBefore(input, units) {\n var localInput = isMoment(input) ? input : createLocal(input);\n if (!(this.isValid() && localInput.isValid())) {\n return false;\n }\n units = normalizeUnits(units) || 'millisecond';\n if (units === 'millisecond') {\n return this.valueOf() < localInput.valueOf();\n } else {\n return this.clone().endOf(units).valueOf() < localInput.valueOf();\n }\n}\n\nfunction isBetween(from, to, units, inclusivity) {\n var localFrom = isMoment(from) ? from : createLocal(from),\n localTo = isMoment(to) ? to : createLocal(to);\n if (!(this.isValid() && localFrom.isValid() && localTo.isValid())) {\n return false;\n }\n inclusivity = inclusivity || '()';\n return (\n (inclusivity[0] === '('\n ? this.isAfter(localFrom, units)\n : !this.isBefore(localFrom, units)) &&\n (inclusivity[1] === ')'\n ? this.isBefore(localTo, units)\n : !this.isAfter(localTo, units))\n );\n}\n\nfunction isSame(input, units) {\n var localInput = isMoment(input) ? input : createLocal(input),\n inputMs;\n if (!(this.isValid() && localInput.isValid())) {\n return false;\n }\n units = normalizeUnits(units) || 'millisecond';\n if (units === 'millisecond') {\n return this.valueOf() === localInput.valueOf();\n } else {\n inputMs = localInput.valueOf();\n return (\n this.clone().startOf(units).valueOf() <= inputMs &&\n inputMs <= this.clone().endOf(units).valueOf()\n );\n }\n}\n\nfunction isSameOrAfter(input, units) {\n return this.isSame(input, units) || this.isAfter(input, units);\n}\n\nfunction isSameOrBefore(input, units) {\n return this.isSame(input, units) || this.isBefore(input, units);\n}\n\nfunction diff(input, units, asFloat) {\n var that, zoneDelta, output;\n\n if (!this.isValid()) {\n return NaN;\n }\n\n that = cloneWithOffset(input, this);\n\n if (!that.isValid()) {\n return NaN;\n }\n\n zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4;\n\n units = normalizeUnits(units);\n\n switch (units) {\n case 'year':\n output = monthDiff(this, that) / 12;\n break;\n case 'month':\n output = monthDiff(this, that);\n break;\n case 'quarter':\n output = monthDiff(this, that) / 3;\n break;\n case 'second':\n output = (this - that) / 1e3;\n break; // 1000\n case 'minute':\n output = (this - that) / 6e4;\n break; // 1000 * 60\n case 'hour':\n output = (this - that) / 36e5;\n break; // 1000 * 60 * 60\n case 'day':\n output = (this - that - zoneDelta) / 864e5;\n break; // 1000 * 60 * 60 * 24, negate dst\n case 'week':\n output = (this - that - zoneDelta) / 6048e5;\n break; // 1000 * 60 * 60 * 24 * 7, negate dst\n default:\n output = this - that;\n }\n\n return asFloat ? output : absFloor(output);\n}\n\nfunction monthDiff(a, b) {\n if (a.date() < b.date()) {\n // end-of-month calculations work correct when the start month has more\n // days than the end month.\n return -monthDiff(b, a);\n }\n // difference in months\n var wholeMonthDiff = (b.year() - a.year()) * 12 + (b.month() - a.month()),\n // b is in (anchor - 1 month, anchor + 1 month)\n anchor = a.clone().add(wholeMonthDiff, 'months'),\n anchor2,\n adjust;\n\n if (b - anchor < 0) {\n anchor2 = a.clone().add(wholeMonthDiff - 1, 'months');\n // linear across the month\n adjust = (b - anchor) / (anchor - anchor2);\n } else {\n anchor2 = a.clone().add(wholeMonthDiff + 1, 'months');\n // linear across the month\n adjust = (b - anchor) / (anchor2 - anchor);\n }\n\n //check for negative zero, return zero if negative zero\n return -(wholeMonthDiff + adjust) || 0;\n}\n\nhooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ';\nhooks.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]';\n\nfunction toString() {\n return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ');\n}\n\nfunction toISOString(keepOffset) {\n if (!this.isValid()) {\n return null;\n }\n var utc = keepOffset !== true,\n m = utc ? this.clone().utc() : this;\n if (m.year() < 0 || m.year() > 9999) {\n return formatMoment(\n m,\n utc\n ? 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]'\n : 'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ'\n );\n }\n if (isFunction(Date.prototype.toISOString)) {\n // native implementation is ~50x faster, use it when we can\n if (utc) {\n return this.toDate().toISOString();\n } else {\n return new Date(this.valueOf() + this.utcOffset() * 60 * 1000)\n .toISOString()\n .replace('Z', formatMoment(m, 'Z'));\n }\n }\n return formatMoment(\n m,\n utc ? 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYY-MM-DD[T]HH:mm:ss.SSSZ'\n );\n}\n\n/**\n * Return a human readable representation of a moment that can\n * also be evaluated to get a new moment which is the same\n *\n * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects\n */\nfunction inspect() {\n if (!this.isValid()) {\n return 'moment.invalid(/* ' + this._i + ' */)';\n }\n var func = 'moment',\n zone = '',\n prefix,\n year,\n datetime,\n suffix;\n if (!this.isLocal()) {\n func = this.utcOffset() === 0 ? 'moment.utc' : 'moment.parseZone';\n zone = 'Z';\n }\n prefix = '[' + func + '(\"]';\n year = 0 <= this.year() && this.year() <= 9999 ? 'YYYY' : 'YYYYYY';\n datetime = '-MM-DD[T]HH:mm:ss.SSS';\n suffix = zone + '[\")]';\n\n return this.format(prefix + year + datetime + suffix);\n}\n\nfunction format(inputString) {\n if (!inputString) {\n inputString = this.isUtc()\n ? hooks.defaultFormatUtc\n : hooks.defaultFormat;\n }\n var output = formatMoment(this, inputString);\n return this.localeData().postformat(output);\n}\n\nfunction from(time, withoutSuffix) {\n if (\n this.isValid() &&\n ((isMoment(time) && time.isValid()) || createLocal(time).isValid())\n ) {\n return createDuration({ to: this, from: time })\n .locale(this.locale())\n .humanize(!withoutSuffix);\n } else {\n return this.localeData().invalidDate();\n }\n}\n\nfunction fromNow(withoutSuffix) {\n return this.from(createLocal(), withoutSuffix);\n}\n\nfunction to(time, withoutSuffix) {\n if (\n this.isValid() &&\n ((isMoment(time) && time.isValid()) || createLocal(time).isValid())\n ) {\n return createDuration({ from: this, to: time })\n .locale(this.locale())\n .humanize(!withoutSuffix);\n } else {\n return this.localeData().invalidDate();\n }\n}\n\nfunction toNow(withoutSuffix) {\n return this.to(createLocal(), withoutSuffix);\n}\n\n// If passed a locale key, it will set the locale for this\n// instance. Otherwise, it will return the locale configuration\n// variables for this instance.\nfunction locale(key) {\n var newLocaleData;\n\n if (key === undefined) {\n return this._locale._abbr;\n } else {\n newLocaleData = getLocale(key);\n if (newLocaleData != null) {\n this._locale = newLocaleData;\n }\n return this;\n }\n}\n\nvar lang = deprecate(\n 'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.',\n function (key) {\n if (key === undefined) {\n return this.localeData();\n } else {\n return this.locale(key);\n }\n }\n);\n\nfunction localeData() {\n return this._locale;\n}\n\nvar MS_PER_SECOND = 1000,\n MS_PER_MINUTE = 60 * MS_PER_SECOND,\n MS_PER_HOUR = 60 * MS_PER_MINUTE,\n MS_PER_400_YEARS = (365 * 400 + 97) * 24 * MS_PER_HOUR;\n\n// actual modulo - handles negative numbers (for dates before 1970):\nfunction mod$1(dividend, divisor) {\n return ((dividend % divisor) + divisor) % divisor;\n}\n\nfunction localStartOfDate(y, m, d) {\n // the date constructor remaps years 0-99 to 1900-1999\n if (y < 100 && y >= 0) {\n // preserve leap years using a full 400 year cycle, then reset\n return new Date(y + 400, m, d) - MS_PER_400_YEARS;\n } else {\n return new Date(y, m, d).valueOf();\n }\n}\n\nfunction utcStartOfDate(y, m, d) {\n // Date.UTC remaps years 0-99 to 1900-1999\n if (y < 100 && y >= 0) {\n // preserve leap years using a full 400 year cycle, then reset\n return Date.UTC(y + 400, m, d) - MS_PER_400_YEARS;\n } else {\n return Date.UTC(y, m, d);\n }\n}\n\nfunction startOf(units) {\n var time, startOfDate;\n units = normalizeUnits(units);\n if (units === undefined || units === 'millisecond' || !this.isValid()) {\n return this;\n }\n\n startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;\n\n switch (units) {\n case 'year':\n time = startOfDate(this.year(), 0, 1);\n break;\n case 'quarter':\n time = startOfDate(\n this.year(),\n this.month() - (this.month() % 3),\n 1\n );\n break;\n case 'month':\n time = startOfDate(this.year(), this.month(), 1);\n break;\n case 'week':\n time = startOfDate(\n this.year(),\n this.month(),\n this.date() - this.weekday()\n );\n break;\n case 'isoWeek':\n time = startOfDate(\n this.year(),\n this.month(),\n this.date() - (this.isoWeekday() - 1)\n );\n break;\n case 'day':\n case 'date':\n time = startOfDate(this.year(), this.month(), this.date());\n break;\n case 'hour':\n time = this._d.valueOf();\n time -= mod$1(\n time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE),\n MS_PER_HOUR\n );\n break;\n case 'minute':\n time = this._d.valueOf();\n time -= mod$1(time, MS_PER_MINUTE);\n break;\n case 'second':\n time = this._d.valueOf();\n time -= mod$1(time, MS_PER_SECOND);\n break;\n }\n\n this._d.setTime(time);\n hooks.updateOffset(this, true);\n return this;\n}\n\nfunction endOf(units) {\n var time, startOfDate;\n units = normalizeUnits(units);\n if (units === undefined || units === 'millisecond' || !this.isValid()) {\n return this;\n }\n\n startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;\n\n switch (units) {\n case 'year':\n time = startOfDate(this.year() + 1, 0, 1) - 1;\n break;\n case 'quarter':\n time =\n startOfDate(\n this.year(),\n this.month() - (this.month() % 3) + 3,\n 1\n ) - 1;\n break;\n case 'month':\n time = startOfDate(this.year(), this.month() + 1, 1) - 1;\n break;\n case 'week':\n time =\n startOfDate(\n this.year(),\n this.month(),\n this.date() - this.weekday() + 7\n ) - 1;\n break;\n case 'isoWeek':\n time =\n startOfDate(\n this.year(),\n this.month(),\n this.date() - (this.isoWeekday() - 1) + 7\n ) - 1;\n break;\n case 'day':\n case 'date':\n time = startOfDate(this.year(), this.month(), this.date() + 1) - 1;\n break;\n case 'hour':\n time = this._d.valueOf();\n time +=\n MS_PER_HOUR -\n mod$1(\n time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE),\n MS_PER_HOUR\n ) -\n 1;\n break;\n case 'minute':\n time = this._d.valueOf();\n time += MS_PER_MINUTE - mod$1(time, MS_PER_MINUTE) - 1;\n break;\n case 'second':\n time = this._d.valueOf();\n time += MS_PER_SECOND - mod$1(time, MS_PER_SECOND) - 1;\n break;\n }\n\n this._d.setTime(time);\n hooks.updateOffset(this, true);\n return this;\n}\n\nfunction valueOf() {\n return this._d.valueOf() - (this._offset || 0) * 60000;\n}\n\nfunction unix() {\n return Math.floor(this.valueOf() / 1000);\n}\n\nfunction toDate() {\n return new Date(this.valueOf());\n}\n\nfunction toArray() {\n var m = this;\n return [\n m.year(),\n m.month(),\n m.date(),\n m.hour(),\n m.minute(),\n m.second(),\n m.millisecond(),\n ];\n}\n\nfunction toObject() {\n var m = this;\n return {\n years: m.year(),\n months: m.month(),\n date: m.date(),\n hours: m.hours(),\n minutes: m.minutes(),\n seconds: m.seconds(),\n milliseconds: m.milliseconds(),\n };\n}\n\nfunction toJSON() {\n // new Date(NaN).toJSON() === null\n return this.isValid() ? this.toISOString() : null;\n}\n\nfunction isValid$2() {\n return isValid(this);\n}\n\nfunction parsingFlags() {\n return extend({}, getParsingFlags(this));\n}\n\nfunction invalidAt() {\n return getParsingFlags(this).overflow;\n}\n\nfunction creationData() {\n return {\n input: this._i,\n format: this._f,\n locale: this._locale,\n isUTC: this._isUTC,\n strict: this._strict,\n };\n}\n\naddFormatToken('N', 0, 0, 'eraAbbr');\naddFormatToken('NN', 0, 0, 'eraAbbr');\naddFormatToken('NNN', 0, 0, 'eraAbbr');\naddFormatToken('NNNN', 0, 0, 'eraName');\naddFormatToken('NNNNN', 0, 0, 'eraNarrow');\n\naddFormatToken('y', ['y', 1], 'yo', 'eraYear');\naddFormatToken('y', ['yy', 2], 0, 'eraYear');\naddFormatToken('y', ['yyy', 3], 0, 'eraYear');\naddFormatToken('y', ['yyyy', 4], 0, 'eraYear');\n\naddRegexToken('N', matchEraAbbr);\naddRegexToken('NN', matchEraAbbr);\naddRegexToken('NNN', matchEraAbbr);\naddRegexToken('NNNN', matchEraName);\naddRegexToken('NNNNN', matchEraNarrow);\n\naddParseToken(\n ['N', 'NN', 'NNN', 'NNNN', 'NNNNN'],\n function (input, array, config, token) {\n var era = config._locale.erasParse(input, token, config._strict);\n if (era) {\n getParsingFlags(config).era = era;\n } else {\n getParsingFlags(config).invalidEra = input;\n }\n }\n);\n\naddRegexToken('y', matchUnsigned);\naddRegexToken('yy', matchUnsigned);\naddRegexToken('yyy', matchUnsigned);\naddRegexToken('yyyy', matchUnsigned);\naddRegexToken('yo', matchEraYearOrdinal);\n\naddParseToken(['y', 'yy', 'yyy', 'yyyy'], YEAR);\naddParseToken(['yo'], function (input, array, config, token) {\n var match;\n if (config._locale._eraYearOrdinalRegex) {\n match = input.match(config._locale._eraYearOrdinalRegex);\n }\n\n if (config._locale.eraYearOrdinalParse) {\n array[YEAR] = config._locale.eraYearOrdinalParse(input, match);\n } else {\n array[YEAR] = parseInt(input, 10);\n }\n});\n\nfunction localeEras(m, format) {\n var i,\n l,\n date,\n eras = this._eras || getLocale('en')._eras;\n for (i = 0, l = eras.length; i < l; ++i) {\n switch (typeof eras[i].since) {\n case 'string':\n // truncate time\n date = hooks(eras[i].since).startOf('day');\n eras[i].since = date.valueOf();\n break;\n }\n\n switch (typeof eras[i].until) {\n case 'undefined':\n eras[i].until = +Infinity;\n break;\n case 'string':\n // truncate time\n date = hooks(eras[i].until).startOf('day').valueOf();\n eras[i].until = date.valueOf();\n break;\n }\n }\n return eras;\n}\n\nfunction localeErasParse(eraName, format, strict) {\n var i,\n l,\n eras = this.eras(),\n name,\n abbr,\n narrow;\n eraName = eraName.toUpperCase();\n\n for (i = 0, l = eras.length; i < l; ++i) {\n name = eras[i].name.toUpperCase();\n abbr = eras[i].abbr.toUpperCase();\n narrow = eras[i].narrow.toUpperCase();\n\n if (strict) {\n switch (format) {\n case 'N':\n case 'NN':\n case 'NNN':\n if (abbr === eraName) {\n return eras[i];\n }\n break;\n\n case 'NNNN':\n if (name === eraName) {\n return eras[i];\n }\n break;\n\n case 'NNNNN':\n if (narrow === eraName) {\n return eras[i];\n }\n break;\n }\n } else if ([name, abbr, narrow].indexOf(eraName) >= 0) {\n return eras[i];\n }\n }\n}\n\nfunction localeErasConvertYear(era, year) {\n var dir = era.since <= era.until ? +1 : -1;\n if (year === undefined) {\n return hooks(era.since).year();\n } else {\n return hooks(era.since).year() + (year - era.offset) * dir;\n }\n}\n\nfunction getEraName() {\n var i,\n l,\n val,\n eras = this.localeData().eras();\n for (i = 0, l = eras.length; i < l; ++i) {\n // truncate time\n val = this.clone().startOf('day').valueOf();\n\n if (eras[i].since <= val && val <= eras[i].until) {\n return eras[i].name;\n }\n if (eras[i].until <= val && val <= eras[i].since) {\n return eras[i].name;\n }\n }\n\n return '';\n}\n\nfunction getEraNarrow() {\n var i,\n l,\n val,\n eras = this.localeData().eras();\n for (i = 0, l = eras.length; i < l; ++i) {\n // truncate time\n val = this.clone().startOf('day').valueOf();\n\n if (eras[i].since <= val && val <= eras[i].until) {\n return eras[i].narrow;\n }\n if (eras[i].until <= val && val <= eras[i].since) {\n return eras[i].narrow;\n }\n }\n\n return '';\n}\n\nfunction getEraAbbr() {\n var i,\n l,\n val,\n eras = this.localeData().eras();\n for (i = 0, l = eras.length; i < l; ++i) {\n // truncate time\n val = this.clone().startOf('day').valueOf();\n\n if (eras[i].since <= val && val <= eras[i].until) {\n return eras[i].abbr;\n }\n if (eras[i].until <= val && val <= eras[i].since) {\n return eras[i].abbr;\n }\n }\n\n return '';\n}\n\nfunction getEraYear() {\n var i,\n l,\n dir,\n val,\n eras = this.localeData().eras();\n for (i = 0, l = eras.length; i < l; ++i) {\n dir = eras[i].since <= eras[i].until ? +1 : -1;\n\n // truncate time\n val = this.clone().startOf('day').valueOf();\n\n if (\n (eras[i].since <= val && val <= eras[i].until) ||\n (eras[i].until <= val && val <= eras[i].since)\n ) {\n return (\n (this.year() - hooks(eras[i].since).year()) * dir +\n eras[i].offset\n );\n }\n }\n\n return this.year();\n}\n\nfunction erasNameRegex(isStrict) {\n if (!hasOwnProp(this, '_erasNameRegex')) {\n computeErasParse.call(this);\n }\n return isStrict ? this._erasNameRegex : this._erasRegex;\n}\n\nfunction erasAbbrRegex(isStrict) {\n if (!hasOwnProp(this, '_erasAbbrRegex')) {\n computeErasParse.call(this);\n }\n return isStrict ? this._erasAbbrRegex : this._erasRegex;\n}\n\nfunction erasNarrowRegex(isStrict) {\n if (!hasOwnProp(this, '_erasNarrowRegex')) {\n computeErasParse.call(this);\n }\n return isStrict ? this._erasNarrowRegex : this._erasRegex;\n}\n\nfunction matchEraAbbr(isStrict, locale) {\n return locale.erasAbbrRegex(isStrict);\n}\n\nfunction matchEraName(isStrict, locale) {\n return locale.erasNameRegex(isStrict);\n}\n\nfunction matchEraNarrow(isStrict, locale) {\n return locale.erasNarrowRegex(isStrict);\n}\n\nfunction matchEraYearOrdinal(isStrict, locale) {\n return locale._eraYearOrdinalRegex || matchUnsigned;\n}\n\nfunction computeErasParse() {\n var abbrPieces = [],\n namePieces = [],\n narrowPieces = [],\n mixedPieces = [],\n i,\n l,\n eras = this.eras();\n\n for (i = 0, l = eras.length; i < l; ++i) {\n namePieces.push(regexEscape(eras[i].name));\n abbrPieces.push(regexEscape(eras[i].abbr));\n narrowPieces.push(regexEscape(eras[i].narrow));\n\n mixedPieces.push(regexEscape(eras[i].name));\n mixedPieces.push(regexEscape(eras[i].abbr));\n mixedPieces.push(regexEscape(eras[i].narrow));\n }\n\n this._erasRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');\n this._erasNameRegex = new RegExp('^(' + namePieces.join('|') + ')', 'i');\n this._erasAbbrRegex = new RegExp('^(' + abbrPieces.join('|') + ')', 'i');\n this._erasNarrowRegex = new RegExp(\n '^(' + narrowPieces.join('|') + ')',\n 'i'\n );\n}\n\n// FORMATTING\n\naddFormatToken(0, ['gg', 2], 0, function () {\n return this.weekYear() % 100;\n});\n\naddFormatToken(0, ['GG', 2], 0, function () {\n return this.isoWeekYear() % 100;\n});\n\nfunction addWeekYearFormatToken(token, getter) {\n addFormatToken(0, [token, token.length], 0, getter);\n}\n\naddWeekYearFormatToken('gggg', 'weekYear');\naddWeekYearFormatToken('ggggg', 'weekYear');\naddWeekYearFormatToken('GGGG', 'isoWeekYear');\naddWeekYearFormatToken('GGGGG', 'isoWeekYear');\n\n// ALIASES\n\naddUnitAlias('weekYear', 'gg');\naddUnitAlias('isoWeekYear', 'GG');\n\n// PRIORITY\n\naddUnitPriority('weekYear', 1);\naddUnitPriority('isoWeekYear', 1);\n\n// PARSING\n\naddRegexToken('G', matchSigned);\naddRegexToken('g', matchSigned);\naddRegexToken('GG', match1to2, match2);\naddRegexToken('gg', match1to2, match2);\naddRegexToken('GGGG', match1to4, match4);\naddRegexToken('gggg', match1to4, match4);\naddRegexToken('GGGGG', match1to6, match6);\naddRegexToken('ggggg', match1to6, match6);\n\naddWeekParseToken(\n ['gggg', 'ggggg', 'GGGG', 'GGGGG'],\n function (input, week, config, token) {\n week[token.substr(0, 2)] = toInt(input);\n }\n);\n\naddWeekParseToken(['gg', 'GG'], function (input, week, config, token) {\n week[token] = hooks.parseTwoDigitYear(input);\n});\n\n// MOMENTS\n\nfunction getSetWeekYear(input) {\n return getSetWeekYearHelper.call(\n this,\n input,\n this.week(),\n this.weekday(),\n this.localeData()._week.dow,\n this.localeData()._week.doy\n );\n}\n\nfunction getSetISOWeekYear(input) {\n return getSetWeekYearHelper.call(\n this,\n input,\n this.isoWeek(),\n this.isoWeekday(),\n 1,\n 4\n );\n}\n\nfunction getISOWeeksInYear() {\n return weeksInYear(this.year(), 1, 4);\n}\n\nfunction getISOWeeksInISOWeekYear() {\n return weeksInYear(this.isoWeekYear(), 1, 4);\n}\n\nfunction getWeeksInYear() {\n var weekInfo = this.localeData()._week;\n return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy);\n}\n\nfunction getWeeksInWeekYear() {\n var weekInfo = this.localeData()._week;\n return weeksInYear(this.weekYear(), weekInfo.dow, weekInfo.doy);\n}\n\nfunction getSetWeekYearHelper(input, week, weekday, dow, doy) {\n var weeksTarget;\n if (input == null) {\n return weekOfYear(this, dow, doy).year;\n } else {\n weeksTarget = weeksInYear(input, dow, doy);\n if (week > weeksTarget) {\n week = weeksTarget;\n }\n return setWeekAll.call(this, input, week, weekday, dow, doy);\n }\n}\n\nfunction setWeekAll(weekYear, week, weekday, dow, doy) {\n var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy),\n date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear);\n\n this.year(date.getUTCFullYear());\n this.month(date.getUTCMonth());\n this.date(date.getUTCDate());\n return this;\n}\n\n// FORMATTING\n\naddFormatToken('Q', 0, 'Qo', 'quarter');\n\n// ALIASES\n\naddUnitAlias('quarter', 'Q');\n\n// PRIORITY\n\naddUnitPriority('quarter', 7);\n\n// PARSING\n\naddRegexToken('Q', match1);\naddParseToken('Q', function (input, array) {\n array[MONTH] = (toInt(input) - 1) * 3;\n});\n\n// MOMENTS\n\nfunction getSetQuarter(input) {\n return input == null\n ? Math.ceil((this.month() + 1) / 3)\n : this.month((input - 1) * 3 + (this.month() % 3));\n}\n\n// FORMATTING\n\naddFormatToken('D', ['DD', 2], 'Do', 'date');\n\n// ALIASES\n\naddUnitAlias('date', 'D');\n\n// PRIORITY\naddUnitPriority('date', 9);\n\n// PARSING\n\naddRegexToken('D', match1to2);\naddRegexToken('DD', match1to2, match2);\naddRegexToken('Do', function (isStrict, locale) {\n // TODO: Remove \"ordinalParse\" fallback in next major release.\n return isStrict\n ? locale._dayOfMonthOrdinalParse || locale._ordinalParse\n : locale._dayOfMonthOrdinalParseLenient;\n});\n\naddParseToken(['D', 'DD'], DATE);\naddParseToken('Do', function (input, array) {\n array[DATE] = toInt(input.match(match1to2)[0]);\n});\n\n// MOMENTS\n\nvar getSetDayOfMonth = makeGetSet('Date', true);\n\n// FORMATTING\n\naddFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear');\n\n// ALIASES\n\naddUnitAlias('dayOfYear', 'DDD');\n\n// PRIORITY\naddUnitPriority('dayOfYear', 4);\n\n// PARSING\n\naddRegexToken('DDD', match1to3);\naddRegexToken('DDDD', match3);\naddParseToken(['DDD', 'DDDD'], function (input, array, config) {\n config._dayOfYear = toInt(input);\n});\n\n// HELPERS\n\n// MOMENTS\n\nfunction getSetDayOfYear(input) {\n var dayOfYear =\n Math.round(\n (this.clone().startOf('day') - this.clone().startOf('year')) / 864e5\n ) + 1;\n return input == null ? dayOfYear : this.add(input - dayOfYear, 'd');\n}\n\n// FORMATTING\n\naddFormatToken('m', ['mm', 2], 0, 'minute');\n\n// ALIASES\n\naddUnitAlias('minute', 'm');\n\n// PRIORITY\n\naddUnitPriority('minute', 14);\n\n// PARSING\n\naddRegexToken('m', match1to2);\naddRegexToken('mm', match1to2, match2);\naddParseToken(['m', 'mm'], MINUTE);\n\n// MOMENTS\n\nvar getSetMinute = makeGetSet('Minutes', false);\n\n// FORMATTING\n\naddFormatToken('s', ['ss', 2], 0, 'second');\n\n// ALIASES\n\naddUnitAlias('second', 's');\n\n// PRIORITY\n\naddUnitPriority('second', 15);\n\n// PARSING\n\naddRegexToken('s', match1to2);\naddRegexToken('ss', match1to2, match2);\naddParseToken(['s', 'ss'], SECOND);\n\n// MOMENTS\n\nvar getSetSecond = makeGetSet('Seconds', false);\n\n// FORMATTING\n\naddFormatToken('S', 0, 0, function () {\n return ~~(this.millisecond() / 100);\n});\n\naddFormatToken(0, ['SS', 2], 0, function () {\n return ~~(this.millisecond() / 10);\n});\n\naddFormatToken(0, ['SSS', 3], 0, 'millisecond');\naddFormatToken(0, ['SSSS', 4], 0, function () {\n return this.millisecond() * 10;\n});\naddFormatToken(0, ['SSSSS', 5], 0, function () {\n return this.millisecond() * 100;\n});\naddFormatToken(0, ['SSSSSS', 6], 0, function () {\n return this.millisecond() * 1000;\n});\naddFormatToken(0, ['SSSSSSS', 7], 0, function () {\n return this.millisecond() * 10000;\n});\naddFormatToken(0, ['SSSSSSSS', 8], 0, function () {\n return this.millisecond() * 100000;\n});\naddFormatToken(0, ['SSSSSSSSS', 9], 0, function () {\n return this.millisecond() * 1000000;\n});\n\n// ALIASES\n\naddUnitAlias('millisecond', 'ms');\n\n// PRIORITY\n\naddUnitPriority('millisecond', 16);\n\n// PARSING\n\naddRegexToken('S', match1to3, match1);\naddRegexToken('SS', match1to3, match2);\naddRegexToken('SSS', match1to3, match3);\n\nvar token, getSetMillisecond;\nfor (token = 'SSSS'; token.length <= 9; token += 'S') {\n addRegexToken(token, matchUnsigned);\n}\n\nfunction parseMs(input, array) {\n array[MILLISECOND] = toInt(('0.' + input) * 1000);\n}\n\nfor (token = 'S'; token.length <= 9; token += 'S') {\n addParseToken(token, parseMs);\n}\n\ngetSetMillisecond = makeGetSet('Milliseconds', false);\n\n// FORMATTING\n\naddFormatToken('z', 0, 0, 'zoneAbbr');\naddFormatToken('zz', 0, 0, 'zoneName');\n\n// MOMENTS\n\nfunction getZoneAbbr() {\n return this._isUTC ? 'UTC' : '';\n}\n\nfunction getZoneName() {\n return this._isUTC ? 'Coordinated Universal Time' : '';\n}\n\nvar proto = Moment.prototype;\n\nproto.add = add;\nproto.calendar = calendar$1;\nproto.clone = clone;\nproto.diff = diff;\nproto.endOf = endOf;\nproto.format = format;\nproto.from = from;\nproto.fromNow = fromNow;\nproto.to = to;\nproto.toNow = toNow;\nproto.get = stringGet;\nproto.invalidAt = invalidAt;\nproto.isAfter = isAfter;\nproto.isBefore = isBefore;\nproto.isBetween = isBetween;\nproto.isSame = isSame;\nproto.isSameOrAfter = isSameOrAfter;\nproto.isSameOrBefore = isSameOrBefore;\nproto.isValid = isValid$2;\nproto.lang = lang;\nproto.locale = locale;\nproto.localeData = localeData;\nproto.max = prototypeMax;\nproto.min = prototypeMin;\nproto.parsingFlags = parsingFlags;\nproto.set = stringSet;\nproto.startOf = startOf;\nproto.subtract = subtract;\nproto.toArray = toArray;\nproto.toObject = toObject;\nproto.toDate = toDate;\nproto.toISOString = toISOString;\nproto.inspect = inspect;\nif (typeof Symbol !== 'undefined' && Symbol.for != null) {\n proto[Symbol.for('nodejs.util.inspect.custom')] = function () {\n return 'Moment<' + this.format() + '>';\n };\n}\nproto.toJSON = toJSON;\nproto.toString = toString;\nproto.unix = unix;\nproto.valueOf = valueOf;\nproto.creationData = creationData;\nproto.eraName = getEraName;\nproto.eraNarrow = getEraNarrow;\nproto.eraAbbr = getEraAbbr;\nproto.eraYear = getEraYear;\nproto.year = getSetYear;\nproto.isLeapYear = getIsLeapYear;\nproto.weekYear = getSetWeekYear;\nproto.isoWeekYear = getSetISOWeekYear;\nproto.quarter = proto.quarters = getSetQuarter;\nproto.month = getSetMonth;\nproto.daysInMonth = getDaysInMonth;\nproto.week = proto.weeks = getSetWeek;\nproto.isoWeek = proto.isoWeeks = getSetISOWeek;\nproto.weeksInYear = getWeeksInYear;\nproto.weeksInWeekYear = getWeeksInWeekYear;\nproto.isoWeeksInYear = getISOWeeksInYear;\nproto.isoWeeksInISOWeekYear = getISOWeeksInISOWeekYear;\nproto.date = getSetDayOfMonth;\nproto.day = proto.days = getSetDayOfWeek;\nproto.weekday = getSetLocaleDayOfWeek;\nproto.isoWeekday = getSetISODayOfWeek;\nproto.dayOfYear = getSetDayOfYear;\nproto.hour = proto.hours = getSetHour;\nproto.minute = proto.minutes = getSetMinute;\nproto.second = proto.seconds = getSetSecond;\nproto.millisecond = proto.milliseconds = getSetMillisecond;\nproto.utcOffset = getSetOffset;\nproto.utc = setOffsetToUTC;\nproto.local = setOffsetToLocal;\nproto.parseZone = setOffsetToParsedOffset;\nproto.hasAlignedHourOffset = hasAlignedHourOffset;\nproto.isDST = isDaylightSavingTime;\nproto.isLocal = isLocal;\nproto.isUtcOffset = isUtcOffset;\nproto.isUtc = isUtc;\nproto.isUTC = isUtc;\nproto.zoneAbbr = getZoneAbbr;\nproto.zoneName = getZoneName;\nproto.dates = deprecate(\n 'dates accessor is deprecated. Use date instead.',\n getSetDayOfMonth\n);\nproto.months = deprecate(\n 'months accessor is deprecated. Use month instead',\n getSetMonth\n);\nproto.years = deprecate(\n 'years accessor is deprecated. Use year instead',\n getSetYear\n);\nproto.zone = deprecate(\n 'moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/',\n getSetZone\n);\nproto.isDSTShifted = deprecate(\n 'isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information',\n isDaylightSavingTimeShifted\n);\n\nfunction createUnix(input) {\n return createLocal(input * 1000);\n}\n\nfunction createInZone() {\n return createLocal.apply(null, arguments).parseZone();\n}\n\nfunction preParsePostFormat(string) {\n return string;\n}\n\nvar proto$1 = Locale.prototype;\n\nproto$1.calendar = calendar;\nproto$1.longDateFormat = longDateFormat;\nproto$1.invalidDate = invalidDate;\nproto$1.ordinal = ordinal;\nproto$1.preparse = preParsePostFormat;\nproto$1.postformat = preParsePostFormat;\nproto$1.relativeTime = relativeTime;\nproto$1.pastFuture = pastFuture;\nproto$1.set = set;\nproto$1.eras = localeEras;\nproto$1.erasParse = localeErasParse;\nproto$1.erasConvertYear = localeErasConvertYear;\nproto$1.erasAbbrRegex = erasAbbrRegex;\nproto$1.erasNameRegex = erasNameRegex;\nproto$1.erasNarrowRegex = erasNarrowRegex;\n\nproto$1.months = localeMonths;\nproto$1.monthsShort = localeMonthsShort;\nproto$1.monthsParse = localeMonthsParse;\nproto$1.monthsRegex = monthsRegex;\nproto$1.monthsShortRegex = monthsShortRegex;\nproto$1.week = localeWeek;\nproto$1.firstDayOfYear = localeFirstDayOfYear;\nproto$1.firstDayOfWeek = localeFirstDayOfWeek;\n\nproto$1.weekdays = localeWeekdays;\nproto$1.weekdaysMin = localeWeekdaysMin;\nproto$1.weekdaysShort = localeWeekdaysShort;\nproto$1.weekdaysParse = localeWeekdaysParse;\n\nproto$1.weekdaysRegex = weekdaysRegex;\nproto$1.weekdaysShortRegex = weekdaysShortRegex;\nproto$1.weekdaysMinRegex = weekdaysMinRegex;\n\nproto$1.isPM = localeIsPM;\nproto$1.meridiem = localeMeridiem;\n\nfunction get$1(format, index, field, setter) {\n var locale = getLocale(),\n utc = createUTC().set(setter, index);\n return locale[field](utc, format);\n}\n\nfunction listMonthsImpl(format, index, field) {\n if (isNumber(format)) {\n index = format;\n format = undefined;\n }\n\n format = format || '';\n\n if (index != null) {\n return get$1(format, index, field, 'month');\n }\n\n var i,\n out = [];\n for (i = 0; i < 12; i++) {\n out[i] = get$1(format, i, field, 'month');\n }\n return out;\n}\n\n// ()\n// (5)\n// (fmt, 5)\n// (fmt)\n// (true)\n// (true, 5)\n// (true, fmt, 5)\n// (true, fmt)\nfunction listWeekdaysImpl(localeSorted, format, index, field) {\n if (typeof localeSorted === 'boolean') {\n if (isNumber(format)) {\n index = format;\n format = undefined;\n }\n\n format = format || '';\n } else {\n format = localeSorted;\n index = format;\n localeSorted = false;\n\n if (isNumber(format)) {\n index = format;\n format = undefined;\n }\n\n format = format || '';\n }\n\n var locale = getLocale(),\n shift = localeSorted ? locale._week.dow : 0,\n i,\n out = [];\n\n if (index != null) {\n return get$1(format, (index + shift) % 7, field, 'day');\n }\n\n for (i = 0; i < 7; i++) {\n out[i] = get$1(format, (i + shift) % 7, field, 'day');\n }\n return out;\n}\n\nfunction listMonths(format, index) {\n return listMonthsImpl(format, index, 'months');\n}\n\nfunction listMonthsShort(format, index) {\n return listMonthsImpl(format, index, 'monthsShort');\n}\n\nfunction listWeekdays(localeSorted, format, index) {\n return listWeekdaysImpl(localeSorted, format, index, 'weekdays');\n}\n\nfunction listWeekdaysShort(localeSorted, format, index) {\n return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort');\n}\n\nfunction listWeekdaysMin(localeSorted, format, index) {\n return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin');\n}\n\ngetSetGlobalLocale('en', {\n eras: [\n {\n since: '0001-01-01',\n until: +Infinity,\n offset: 1,\n name: 'Anno Domini',\n narrow: 'AD',\n abbr: 'AD',\n },\n {\n since: '0000-12-31',\n until: -Infinity,\n offset: 1,\n name: 'Before Christ',\n narrow: 'BC',\n abbr: 'BC',\n },\n ],\n dayOfMonthOrdinalParse: /\\d{1,2}(th|st|nd|rd)/,\n ordinal: function (number) {\n var b = number % 10,\n output =\n toInt((number % 100) / 10) === 1\n ? 'th'\n : b === 1\n ? 'st'\n : b === 2\n ? 'nd'\n : b === 3\n ? 'rd'\n : 'th';\n return number + output;\n },\n});\n\n// Side effect imports\n\nhooks.lang = deprecate(\n 'moment.lang is deprecated. Use moment.locale instead.',\n getSetGlobalLocale\n);\nhooks.langData = deprecate(\n 'moment.langData is deprecated. Use moment.localeData instead.',\n getLocale\n);\n\nvar mathAbs = Math.abs;\n\nfunction abs() {\n var data = this._data;\n\n this._milliseconds = mathAbs(this._milliseconds);\n this._days = mathAbs(this._days);\n this._months = mathAbs(this._months);\n\n data.milliseconds = mathAbs(data.milliseconds);\n data.seconds = mathAbs(data.seconds);\n data.minutes = mathAbs(data.minutes);\n data.hours = mathAbs(data.hours);\n data.months = mathAbs(data.months);\n data.years = mathAbs(data.years);\n\n return this;\n}\n\nfunction addSubtract$1(duration, input, value, direction) {\n var other = createDuration(input, value);\n\n duration._milliseconds += direction * other._milliseconds;\n duration._days += direction * other._days;\n duration._months += direction * other._months;\n\n return duration._bubble();\n}\n\n// supports only 2.0-style add(1, 's') or add(duration)\nfunction add$1(input, value) {\n return addSubtract$1(this, input, value, 1);\n}\n\n// supports only 2.0-style subtract(1, 's') or subtract(duration)\nfunction subtract$1(input, value) {\n return addSubtract$1(this, input, value, -1);\n}\n\nfunction absCeil(number) {\n if (number < 0) {\n return Math.floor(number);\n } else {\n return Math.ceil(number);\n }\n}\n\nfunction bubble() {\n var milliseconds = this._milliseconds,\n days = this._days,\n months = this._months,\n data = this._data,\n seconds,\n minutes,\n hours,\n years,\n monthsFromDays;\n\n // if we have a mix of positive and negative values, bubble down first\n // check: https://github.com/moment/moment/issues/2166\n if (\n !(\n (milliseconds >= 0 && days >= 0 && months >= 0) ||\n (milliseconds <= 0 && days <= 0 && months <= 0)\n )\n ) {\n milliseconds += absCeil(monthsToDays(months) + days) * 864e5;\n days = 0;\n months = 0;\n }\n\n // The following code bubbles up values, see the tests for\n // examples of what that means.\n data.milliseconds = milliseconds % 1000;\n\n seconds = absFloor(milliseconds / 1000);\n data.seconds = seconds % 60;\n\n minutes = absFloor(seconds / 60);\n data.minutes = minutes % 60;\n\n hours = absFloor(minutes / 60);\n data.hours = hours % 24;\n\n days += absFloor(hours / 24);\n\n // convert days to months\n monthsFromDays = absFloor(daysToMonths(days));\n months += monthsFromDays;\n days -= absCeil(monthsToDays(monthsFromDays));\n\n // 12 months -> 1 year\n years = absFloor(months / 12);\n months %= 12;\n\n data.days = days;\n data.months = months;\n data.years = years;\n\n return this;\n}\n\nfunction daysToMonths(days) {\n // 400 years have 146097 days (taking into account leap year rules)\n // 400 years have 12 months === 4800\n return (days * 4800) / 146097;\n}\n\nfunction monthsToDays(months) {\n // the reverse of daysToMonths\n return (months * 146097) / 4800;\n}\n\nfunction as(units) {\n if (!this.isValid()) {\n return NaN;\n }\n var days,\n months,\n milliseconds = this._milliseconds;\n\n units = normalizeUnits(units);\n\n if (units === 'month' || units === 'quarter' || units === 'year') {\n days = this._days + milliseconds / 864e5;\n months = this._months + daysToMonths(days);\n switch (units) {\n case 'month':\n return months;\n case 'quarter':\n return months / 3;\n case 'year':\n return months / 12;\n }\n } else {\n // handle milliseconds separately because of floating point math errors (issue #1867)\n days = this._days + Math.round(monthsToDays(this._months));\n switch (units) {\n case 'week':\n return days / 7 + milliseconds / 6048e5;\n case 'day':\n return days + milliseconds / 864e5;\n case 'hour':\n return days * 24 + milliseconds / 36e5;\n case 'minute':\n return days * 1440 + milliseconds / 6e4;\n case 'second':\n return days * 86400 + milliseconds / 1000;\n // Math.floor prevents floating point math errors here\n case 'millisecond':\n return Math.floor(days * 864e5) + milliseconds;\n default:\n throw new Error('Unknown unit ' + units);\n }\n }\n}\n\n// TODO: Use this.as('ms')?\nfunction valueOf$1() {\n if (!this.isValid()) {\n return NaN;\n }\n return (\n this._milliseconds +\n this._days * 864e5 +\n (this._months % 12) * 2592e6 +\n toInt(this._months / 12) * 31536e6\n );\n}\n\nfunction makeAs(alias) {\n return function () {\n return this.as(alias);\n };\n}\n\nvar asMilliseconds = makeAs('ms'),\n asSeconds = makeAs('s'),\n asMinutes = makeAs('m'),\n asHours = makeAs('h'),\n asDays = makeAs('d'),\n asWeeks = makeAs('w'),\n asMonths = makeAs('M'),\n asQuarters = makeAs('Q'),\n asYears = makeAs('y');\n\nfunction clone$1() {\n return createDuration(this);\n}\n\nfunction get$2(units) {\n units = normalizeUnits(units);\n return this.isValid() ? this[units + 's']() : NaN;\n}\n\nfunction makeGetter(name) {\n return function () {\n return this.isValid() ? this._data[name] : NaN;\n };\n}\n\nvar milliseconds = makeGetter('milliseconds'),\n seconds = makeGetter('seconds'),\n minutes = makeGetter('minutes'),\n hours = makeGetter('hours'),\n days = makeGetter('days'),\n months = makeGetter('months'),\n years = makeGetter('years');\n\nfunction weeks() {\n return absFloor(this.days() / 7);\n}\n\nvar round = Math.round,\n thresholds = {\n ss: 44, // a few seconds to seconds\n s: 45, // seconds to minute\n m: 45, // minutes to hour\n h: 22, // hours to day\n d: 26, // days to month/week\n w: null, // weeks to month\n M: 11, // months to year\n };\n\n// helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize\nfunction substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {\n return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture);\n}\n\nfunction relativeTime$1(posNegDuration, withoutSuffix, thresholds, locale) {\n var duration = createDuration(posNegDuration).abs(),\n seconds = round(duration.as('s')),\n minutes = round(duration.as('m')),\n hours = round(duration.as('h')),\n days = round(duration.as('d')),\n months = round(duration.as('M')),\n weeks = round(duration.as('w')),\n years = round(duration.as('y')),\n a =\n (seconds <= thresholds.ss && ['s', seconds]) ||\n (seconds < thresholds.s && ['ss', seconds]) ||\n (minutes <= 1 && ['m']) ||\n (minutes < thresholds.m && ['mm', minutes]) ||\n (hours <= 1 && ['h']) ||\n (hours < thresholds.h && ['hh', hours]) ||\n (days <= 1 && ['d']) ||\n (days < thresholds.d && ['dd', days]);\n\n if (thresholds.w != null) {\n a =\n a ||\n (weeks <= 1 && ['w']) ||\n (weeks < thresholds.w && ['ww', weeks]);\n }\n a = a ||\n (months <= 1 && ['M']) ||\n (months < thresholds.M && ['MM', months]) ||\n (years <= 1 && ['y']) || ['yy', years];\n\n a[2] = withoutSuffix;\n a[3] = +posNegDuration > 0;\n a[4] = locale;\n return substituteTimeAgo.apply(null, a);\n}\n\n// This function allows you to set the rounding function for relative time strings\nfunction getSetRelativeTimeRounding(roundingFunction) {\n if (roundingFunction === undefined) {\n return round;\n }\n if (typeof roundingFunction === 'function') {\n round = roundingFunction;\n return true;\n }\n return false;\n}\n\n// This function allows you to set a threshold for relative time strings\nfunction getSetRelativeTimeThreshold(threshold, limit) {\n if (thresholds[threshold] === undefined) {\n return false;\n }\n if (limit === undefined) {\n return thresholds[threshold];\n }\n thresholds[threshold] = limit;\n if (threshold === 's') {\n thresholds.ss = limit - 1;\n }\n return true;\n}\n\nfunction humanize(argWithSuffix, argThresholds) {\n if (!this.isValid()) {\n return this.localeData().invalidDate();\n }\n\n var withSuffix = false,\n th = thresholds,\n locale,\n output;\n\n if (typeof argWithSuffix === 'object') {\n argThresholds = argWithSuffix;\n argWithSuffix = false;\n }\n if (typeof argWithSuffix === 'boolean') {\n withSuffix = argWithSuffix;\n }\n if (typeof argThresholds === 'object') {\n th = Object.assign({}, thresholds, argThresholds);\n if (argThresholds.s != null && argThresholds.ss == null) {\n th.ss = argThresholds.s - 1;\n }\n }\n\n locale = this.localeData();\n output = relativeTime$1(this, !withSuffix, th, locale);\n\n if (withSuffix) {\n output = locale.pastFuture(+this, output);\n }\n\n return locale.postformat(output);\n}\n\nvar abs$1 = Math.abs;\n\nfunction sign(x) {\n return (x > 0) - (x < 0) || +x;\n}\n\nfunction toISOString$1() {\n // for ISO strings we do not use the normal bubbling rules:\n // * milliseconds bubble up until they become hours\n // * days do not bubble at all\n // * months bubble up until they become years\n // This is because there is no context-free conversion between hours and days\n // (think of clock changes)\n // and also not between days and months (28-31 days per month)\n if (!this.isValid()) {\n return this.localeData().invalidDate();\n }\n\n var seconds = abs$1(this._milliseconds) / 1000,\n days = abs$1(this._days),\n months = abs$1(this._months),\n minutes,\n hours,\n years,\n s,\n total = this.asSeconds(),\n totalSign,\n ymSign,\n daysSign,\n hmsSign;\n\n if (!total) {\n // this is the same as C#'s (Noda) and python (isodate)...\n // but not other JS (goog.date)\n return 'P0D';\n }\n\n // 3600 seconds -> 60 minutes -> 1 hour\n minutes = absFloor(seconds / 60);\n hours = absFloor(minutes / 60);\n seconds %= 60;\n minutes %= 60;\n\n // 12 months -> 1 year\n years = absFloor(months / 12);\n months %= 12;\n\n // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js\n s = seconds ? seconds.toFixed(3).replace(/\\.?0+$/, '') : '';\n\n totalSign = total < 0 ? '-' : '';\n ymSign = sign(this._months) !== sign(total) ? '-' : '';\n daysSign = sign(this._days) !== sign(total) ? '-' : '';\n hmsSign = sign(this._milliseconds) !== sign(total) ? '-' : '';\n\n return (\n totalSign +\n 'P' +\n (years ? ymSign + years + 'Y' : '') +\n (months ? ymSign + months + 'M' : '') +\n (days ? daysSign + days + 'D' : '') +\n (hours || minutes || seconds ? 'T' : '') +\n (hours ? hmsSign + hours + 'H' : '') +\n (minutes ? hmsSign + minutes + 'M' : '') +\n (seconds ? hmsSign + s + 'S' : '')\n );\n}\n\nvar proto$2 = Duration.prototype;\n\nproto$2.isValid = isValid$1;\nproto$2.abs = abs;\nproto$2.add = add$1;\nproto$2.subtract = subtract$1;\nproto$2.as = as;\nproto$2.asMilliseconds = asMilliseconds;\nproto$2.asSeconds = asSeconds;\nproto$2.asMinutes = asMinutes;\nproto$2.asHours = asHours;\nproto$2.asDays = asDays;\nproto$2.asWeeks = asWeeks;\nproto$2.asMonths = asMonths;\nproto$2.asQuarters = asQuarters;\nproto$2.asYears = asYears;\nproto$2.valueOf = valueOf$1;\nproto$2._bubble = bubble;\nproto$2.clone = clone$1;\nproto$2.get = get$2;\nproto$2.milliseconds = milliseconds;\nproto$2.seconds = seconds;\nproto$2.minutes = minutes;\nproto$2.hours = hours;\nproto$2.days = days;\nproto$2.weeks = weeks;\nproto$2.months = months;\nproto$2.years = years;\nproto$2.humanize = humanize;\nproto$2.toISOString = toISOString$1;\nproto$2.toString = toISOString$1;\nproto$2.toJSON = toISOString$1;\nproto$2.locale = locale;\nproto$2.localeData = localeData;\n\nproto$2.toIsoString = deprecate(\n 'toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)',\n toISOString$1\n);\nproto$2.lang = lang;\n\n// FORMATTING\n\naddFormatToken('X', 0, 0, 'unix');\naddFormatToken('x', 0, 0, 'valueOf');\n\n// PARSING\n\naddRegexToken('x', matchSigned);\naddRegexToken('X', matchTimestamp);\naddParseToken('X', function (input, array, config) {\n config._d = new Date(parseFloat(input) * 1000);\n});\naddParseToken('x', function (input, array, config) {\n config._d = new Date(toInt(input));\n});\n\n//! moment.js\n\nhooks.version = '2.29.4';\n\nsetHookCallback(createLocal);\n\nhooks.fn = proto;\nhooks.min = min;\nhooks.max = max;\nhooks.now = now;\nhooks.utc = createUTC;\nhooks.unix = createUnix;\nhooks.months = listMonths;\nhooks.isDate = isDate;\nhooks.locale = getSetGlobalLocale;\nhooks.invalid = createInvalid;\nhooks.duration = createDuration;\nhooks.isMoment = isMoment;\nhooks.weekdays = listWeekdays;\nhooks.parseZone = createInZone;\nhooks.localeData = getLocale;\nhooks.isDuration = isDuration;\nhooks.monthsShort = listMonthsShort;\nhooks.weekdaysMin = listWeekdaysMin;\nhooks.defineLocale = defineLocale;\nhooks.updateLocale = updateLocale;\nhooks.locales = listLocales;\nhooks.weekdaysShort = listWeekdaysShort;\nhooks.normalizeUnits = normalizeUnits;\nhooks.relativeTimeRounding = getSetRelativeTimeRounding;\nhooks.relativeTimeThreshold = getSetRelativeTimeThreshold;\nhooks.calendarFormat = getCalendarFormat;\nhooks.prototype = proto;\n\n// currently HTML5 input type only supports 24-hour formats\nhooks.HTML5_FMT = {\n DATETIME_LOCAL: 'YYYY-MM-DDTHH:mm', // \n DATETIME_LOCAL_SECONDS: 'YYYY-MM-DDTHH:mm:ss', // \n DATETIME_LOCAL_MS: 'YYYY-MM-DDTHH:mm:ss.SSS', // \n DATE: 'YYYY-MM-DD', // \n TIME: 'HH:mm', // \n TIME_SECONDS: 'HH:mm:ss', // \n TIME_MS: 'HH:mm:ss.SSS', // \n WEEK: 'GGGG-[W]WW', // \n MONTH: 'YYYY-MM', // \n};\n\nexport default hooks;\n","!function(n,a){\"object\"==typeof exports&&\"object\"==typeof module?module.exports=a():\"function\"==typeof define&&define.amd?define([],a):\"object\"==typeof exports?exports.NextcloudMoment=a():n.NextcloudMoment=a()}(self,(function(){return function(){\"use strict\";var n={n:function(a){var s=a&&a.__esModule?function(){return a.default}:function(){return a};return n.d(s,{a:s}),s},d:function(a,s){for(var t in s)n.o(s,t)&&!n.o(a,t)&&Object.defineProperty(a,t,{enumerable:!0,get:s[t]})},o:function(n,a){return Object.prototype.hasOwnProperty.call(n,a)},r:function(n){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(n,\"__esModule\",{value:!0})}},a={};n.r(a),n.d(a,{default:function(){return p}});var s=require(\"moment\"),t=n.n(s),o=require(\"node-gettext\"),e=n.n(o),l=require(\"@nextcloud/l10n\"),r=new(e()),m=(0,l.getLocale)();[{locale:\"ar\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"Ali , 2023\",\"Language-Team\":\"Arabic (https://app.transifex.com/nextcloud/teams/64236/ar/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"ar\",\"Plural-Forms\":\"nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nAli , 2023\\n\"},msgstr:[\"Last-Translator: Ali , 2023\\nLanguage-Team: Arabic (https://app.transifex.com/nextcloud/teams/64236/ar/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: ar\\nPlural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"ثوانٍ\"]}}}}},{locale:\"ast\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Asturian (https://app.transifex.com/nextcloud/teams/64236/ast/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"ast\",\"Plural-Forms\":\"nplurals=2; plural=(n != 1);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Asturian (https://app.transifex.com/nextcloud/teams/64236/ast/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: ast\\nPlural-Forms: nplurals=2; plural=(n != 1);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"segundos\"]}}}}},{locale:\"br\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Breton (https://app.transifex.com/nextcloud/teams/64236/br/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"br\",\"Plural-Forms\":\"nplurals=5; plural=((n%10 == 1) && (n%100 != 11) && (n%100 !=71) && (n%100 !=91) ? 0 :(n%10 == 2) && (n%100 != 12) && (n%100 !=72) && (n%100 !=92) ? 1 :(n%10 ==3 || n%10==4 || n%10==9) && (n%100 < 10 || n% 100 > 19) && (n%100 < 70 || n%100 > 79) && (n%100 < 90 || n%100 > 99) ? 2 :(n != 0 && n % 1000000 == 0) ? 3 : 4);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Breton (https://app.transifex.com/nextcloud/teams/64236/br/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: br\\nPlural-Forms: nplurals=5; plural=((n%10 == 1) && (n%100 != 11) && (n%100 !=71) && (n%100 !=91) ? 0 :(n%10 == 2) && (n%100 != 12) && (n%100 !=72) && (n%100 !=92) ? 1 :(n%10 ==3 || n%10==4 || n%10==9) && (n%100 < 10 || n% 100 > 19) && (n%100 < 70 || n%100 > 79) && (n%100 < 90 || n%100 > 99) ? 2 :(n != 0 && n % 1000000 == 0) ? 3 : 4);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"eilennoù\"]}}}}},{locale:\"ca\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Catalan (https://app.transifex.com/nextcloud/teams/64236/ca/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"ca\",\"Plural-Forms\":\"nplurals=2; plural=(n != 1);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Catalan (https://app.transifex.com/nextcloud/teams/64236/ca/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: ca\\nPlural-Forms: nplurals=2; plural=(n != 1);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"segons\"]}}}}},{locale:\"cs_CZ\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Czech (Czech Republic) (https://app.transifex.com/nextcloud/teams/64236/cs_CZ/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"cs_CZ\",\"Plural-Forms\":\"nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n >= 2 && n <= 4 && n % 1 == 0) ? 1: (n % 1 != 0 ) ? 2 : 3;\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Czech (Czech Republic) (https://app.transifex.com/nextcloud/teams/64236/cs_CZ/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: cs_CZ\\nPlural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n >= 2 && n <= 4 && n % 1 == 0) ? 1: (n % 1 != 0 ) ? 2 : 3;\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"sekund(y)\"]}}}}},{locale:\"da\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Danish (https://app.transifex.com/nextcloud/teams/64236/da/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"da\",\"Plural-Forms\":\"nplurals=2; plural=(n != 1);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Danish (https://app.transifex.com/nextcloud/teams/64236/da/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: da\\nPlural-Forms: nplurals=2; plural=(n != 1);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"sekunder\"]}}}}},{locale:\"de\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"Markus Eckstein, 2023\",\"Language-Team\":\"German (https://app.transifex.com/nextcloud/teams/64236/de/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"de\",\"Plural-Forms\":\"nplurals=2; plural=(n != 1);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nMarkus Eckstein, 2023\\n\"},msgstr:[\"Last-Translator: Markus Eckstein, 2023\\nLanguage-Team: German (https://app.transifex.com/nextcloud/teams/64236/de/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: de\\nPlural-Forms: nplurals=2; plural=(n != 1);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"Sekunden\"]}}}}},{locale:\"de_DE\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"German (Germany) (https://app.transifex.com/nextcloud/teams/64236/de_DE/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"de_DE\",\"Plural-Forms\":\"nplurals=2; plural=(n != 1);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: German (Germany) (https://app.transifex.com/nextcloud/teams/64236/de_DE/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: de_DE\\nPlural-Forms: nplurals=2; plural=(n != 1);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"Sekunden\"]}}}}},{locale:\"el\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Greek (https://app.transifex.com/nextcloud/teams/64236/el/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"el\",\"Plural-Forms\":\"nplurals=2; plural=(n != 1);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Greek (https://app.transifex.com/nextcloud/teams/64236/el/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: el\\nPlural-Forms: nplurals=2; plural=(n != 1);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"δευτερόλεπτα\"]}}}}},{locale:\"en_GB\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"English (United Kingdom) (https://app.transifex.com/nextcloud/teams/64236/en_GB/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"en_GB\",\"Plural-Forms\":\"nplurals=2; plural=(n != 1);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: English (United Kingdom) (https://app.transifex.com/nextcloud/teams/64236/en_GB/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: en_GB\\nPlural-Forms: nplurals=2; plural=(n != 1);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"seconds\"]}}}}},{locale:\"eo\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Esperanto (https://app.transifex.com/nextcloud/teams/64236/eo/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"eo\",\"Plural-Forms\":\"nplurals=2; plural=(n != 1);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Esperanto (https://app.transifex.com/nextcloud/teams/64236/eo/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: eo\\nPlural-Forms: nplurals=2; plural=(n != 1);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"sekundoj\"]}}}}},{locale:\"es\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Spanish (https://app.transifex.com/nextcloud/teams/64236/es/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"es\",\"Plural-Forms\":\"nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Spanish (https://app.transifex.com/nextcloud/teams/64236/es/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: es\\nPlural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"segundos\"]}}}}},{locale:\"es_AR\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Spanish (Argentina) (https://app.transifex.com/nextcloud/teams/64236/es_AR/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"es_AR\",\"Plural-Forms\":\"nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Spanish (Argentina) (https://app.transifex.com/nextcloud/teams/64236/es_AR/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: es_AR\\nPlural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"segundos\"]}}}}},{locale:\"es_MX\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Spanish (Mexico) (https://app.transifex.com/nextcloud/teams/64236/es_MX/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"es_MX\",\"Plural-Forms\":\"nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Spanish (Mexico) (https://app.transifex.com/nextcloud/teams/64236/es_MX/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: es_MX\\nPlural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"segundos\"]}}}}},{locale:\"et_EE\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Estonian (Estonia) (https://app.transifex.com/nextcloud/teams/64236/et_EE/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"et_EE\",\"Plural-Forms\":\"nplurals=2; plural=(n != 1);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Estonian (Estonia) (https://app.transifex.com/nextcloud/teams/64236/et_EE/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: et_EE\\nPlural-Forms: nplurals=2; plural=(n != 1);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"sekundid\"]}}}}},{locale:\"eu\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Basque (https://app.transifex.com/nextcloud/teams/64236/eu/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"eu\",\"Plural-Forms\":\"nplurals=2; plural=(n != 1);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Basque (https://app.transifex.com/nextcloud/teams/64236/eu/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: eu\\nPlural-Forms: nplurals=2; plural=(n != 1);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"segundo\"]}}}}},{locale:\"fa\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Persian (https://app.transifex.com/nextcloud/teams/64236/fa/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"fa\",\"Plural-Forms\":\"nplurals=2; plural=(n > 1);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Persian (https://app.transifex.com/nextcloud/teams/64236/fa/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: fa\\nPlural-Forms: nplurals=2; plural=(n > 1);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"ثانیه\"]}}}}},{locale:\"fi_FI\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Finnish (Finland) (https://app.transifex.com/nextcloud/teams/64236/fi_FI/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"fi_FI\",\"Plural-Forms\":\"nplurals=2; plural=(n != 1);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Finnish (Finland) (https://app.transifex.com/nextcloud/teams/64236/fi_FI/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: fi_FI\\nPlural-Forms: nplurals=2; plural=(n != 1);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"sekuntia\"]}}}}},{locale:\"fr\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"French (https://app.transifex.com/nextcloud/teams/64236/fr/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"fr\",\"Plural-Forms\":\"nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: French (https://app.transifex.com/nextcloud/teams/64236/fr/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: fr\\nPlural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"secondes\"]}}}}},{locale:\"gl\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Galician (https://app.transifex.com/nextcloud/teams/64236/gl/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"gl\",\"Plural-Forms\":\"nplurals=2; plural=(n != 1);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Galician (https://app.transifex.com/nextcloud/teams/64236/gl/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: gl\\nPlural-Forms: nplurals=2; plural=(n != 1);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"segundos\"]}}}}},{locale:\"he\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Hebrew (https://app.transifex.com/nextcloud/teams/64236/he/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"he\",\"Plural-Forms\":\"nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n == 2 && n % 1 == 0) ? 1: (n % 10 == 0 && n % 1 == 0 && n > 10) ? 2 : 3;\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Hebrew (https://app.transifex.com/nextcloud/teams/64236/he/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: he\\nPlural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n == 2 && n % 1 == 0) ? 1: (n % 10 == 0 && n % 1 == 0 && n > 10) ? 2 : 3;\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"שניות\"]}}}}},{locale:\"hu_HU\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Hungarian (Hungary) (https://app.transifex.com/nextcloud/teams/64236/hu_HU/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"hu_HU\",\"Plural-Forms\":\"nplurals=2; plural=(n != 1);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Hungarian (Hungary) (https://app.transifex.com/nextcloud/teams/64236/hu_HU/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: hu_HU\\nPlural-Forms: nplurals=2; plural=(n != 1);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"másodperc\"]}}}}},{locale:\"id\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Indonesian (https://app.transifex.com/nextcloud/teams/64236/id/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"id\",\"Plural-Forms\":\"nplurals=1; plural=0;\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Indonesian (https://app.transifex.com/nextcloud/teams/64236/id/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: id\\nPlural-Forms: nplurals=1; plural=0;\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"detik\"]}}}}},{locale:\"is\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Icelandic (https://app.transifex.com/nextcloud/teams/64236/is/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"is\",\"Plural-Forms\":\"nplurals=2; plural=(n % 10 != 1 || n % 100 == 11);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Icelandic (https://app.transifex.com/nextcloud/teams/64236/is/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: is\\nPlural-Forms: nplurals=2; plural=(n % 10 != 1 || n % 100 == 11);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"sekúndur\"]}}}}},{locale:\"it\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Italian (https://app.transifex.com/nextcloud/teams/64236/it/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"it\",\"Plural-Forms\":\"nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Italian (https://app.transifex.com/nextcloud/teams/64236/it/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: it\\nPlural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"secondi\"]}}}}},{locale:\"ja_JP\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Japanese (Japan) (https://app.transifex.com/nextcloud/teams/64236/ja_JP/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"ja_JP\",\"Plural-Forms\":\"nplurals=1; plural=0;\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Japanese (Japan) (https://app.transifex.com/nextcloud/teams/64236/ja_JP/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: ja_JP\\nPlural-Forms: nplurals=1; plural=0;\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"秒\"]}}}}},{locale:\"kab\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Kabyle (https://app.transifex.com/nextcloud/teams/64236/kab/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"kab\",\"Plural-Forms\":\"nplurals=2; plural=(n != 1);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Kabyle (https://app.transifex.com/nextcloud/teams/64236/kab/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: kab\\nPlural-Forms: nplurals=2; plural=(n != 1);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"tasinin\"]}}}}},{locale:\"ko\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Korean (https://app.transifex.com/nextcloud/teams/64236/ko/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"ko\",\"Plural-Forms\":\"nplurals=1; plural=0;\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Korean (https://app.transifex.com/nextcloud/teams/64236/ko/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: ko\\nPlural-Forms: nplurals=1; plural=0;\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"초\"]}}}}},{locale:\"lo\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Lao (https://app.transifex.com/nextcloud/teams/64236/lo/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"lo\",\"Plural-Forms\":\"nplurals=1; plural=0;\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Lao (https://app.transifex.com/nextcloud/teams/64236/lo/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: lo\\nPlural-Forms: nplurals=1; plural=0;\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"ວິນາທີ\"]}}}}},{locale:\"lt_LT\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Lithuanian (Lithuania) (https://app.transifex.com/nextcloud/teams/64236/lt_LT/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"lt_LT\",\"Plural-Forms\":\"nplurals=4; plural=(n % 10 == 1 && (n % 100 > 19 || n % 100 < 11) ? 0 : (n % 10 >= 2 && n % 10 <=9) && (n % 100 > 19 || n % 100 < 11) ? 1 : n % 1 != 0 ? 2: 3);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Lithuanian (Lithuania) (https://app.transifex.com/nextcloud/teams/64236/lt_LT/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: lt_LT\\nPlural-Forms: nplurals=4; plural=(n % 10 == 1 && (n % 100 > 19 || n % 100 < 11) ? 0 : (n % 10 >= 2 && n % 10 <=9) && (n % 100 > 19 || n % 100 < 11) ? 1 : n % 1 != 0 ? 2: 3);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"sek.\"]}}}}},{locale:\"lv\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Latvian (https://app.transifex.com/nextcloud/teams/64236/lv/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"lv\",\"Plural-Forms\":\"nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : 2);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Latvian (https://app.transifex.com/nextcloud/teams/64236/lv/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: lv\\nPlural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : 2);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"sekundes\"]}}}}},{locale:\"mk\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Macedonian (https://app.transifex.com/nextcloud/teams/64236/mk/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"mk\",\"Plural-Forms\":\"nplurals=2; plural=(n % 10 == 1 && n % 100 != 11) ? 0 : 1;\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Macedonian (https://app.transifex.com/nextcloud/teams/64236/mk/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: mk\\nPlural-Forms: nplurals=2; plural=(n % 10 == 1 && n % 100 != 11) ? 0 : 1;\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"секунди\"]}}}}},{locale:\"mn\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Mongolian (https://app.transifex.com/nextcloud/teams/64236/mn/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"mn\",\"Plural-Forms\":\"nplurals=2; plural=(n != 1);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Mongolian (https://app.transifex.com/nextcloud/teams/64236/mn/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: mn\\nPlural-Forms: nplurals=2; plural=(n != 1);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"секунд\"]}}}}},{locale:\"my\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Burmese (https://app.transifex.com/nextcloud/teams/64236/my/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"my\",\"Plural-Forms\":\"nplurals=1; plural=0;\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Burmese (https://app.transifex.com/nextcloud/teams/64236/my/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: my\\nPlural-Forms: nplurals=1; plural=0;\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"စက္ကန့်\"]}}}}},{locale:\"nb_NO\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Norwegian Bokmål (Norway) (https://app.transifex.com/nextcloud/teams/64236/nb_NO/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"nb_NO\",\"Plural-Forms\":\"nplurals=2; plural=(n != 1);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Norwegian Bokmål (Norway) (https://app.transifex.com/nextcloud/teams/64236/nb_NO/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: nb_NO\\nPlural-Forms: nplurals=2; plural=(n != 1);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"sekunder\"]}}}}},{locale:\"nl\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Dutch (https://app.transifex.com/nextcloud/teams/64236/nl/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"nl\",\"Plural-Forms\":\"nplurals=2; plural=(n != 1);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Dutch (https://app.transifex.com/nextcloud/teams/64236/nl/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: nl\\nPlural-Forms: nplurals=2; plural=(n != 1);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"seconden\"]}}}}},{locale:\"oc\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Occitan (post 1500) (https://app.transifex.com/nextcloud/teams/64236/oc/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"oc\",\"Plural-Forms\":\"nplurals=2; plural=(n > 1);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Occitan (post 1500) (https://app.transifex.com/nextcloud/teams/64236/oc/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: oc\\nPlural-Forms: nplurals=2; plural=(n > 1);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"segondas\"]}}}}},{locale:\"pl\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Polish (https://app.transifex.com/nextcloud/teams/64236/pl/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"pl\",\"Plural-Forms\":\"nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Polish (https://app.transifex.com/nextcloud/teams/64236/pl/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: pl\\nPlural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"sekundy\"]}}}}},{locale:\"pt_BR\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Portuguese (Brazil) (https://app.transifex.com/nextcloud/teams/64236/pt_BR/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"pt_BR\",\"Plural-Forms\":\"nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Portuguese (Brazil) (https://app.transifex.com/nextcloud/teams/64236/pt_BR/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: pt_BR\\nPlural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"segundos\"]}}}}},{locale:\"pt_PT\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Portuguese (Portugal) (https://app.transifex.com/nextcloud/teams/64236/pt_PT/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"pt_PT\",\"Plural-Forms\":\"nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Portuguese (Portugal) (https://app.transifex.com/nextcloud/teams/64236/pt_PT/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: pt_PT\\nPlural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"segundos\"]}}}}},{locale:\"ro\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Romanian (https://app.transifex.com/nextcloud/teams/64236/ro/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"ro\",\"Plural-Forms\":\"nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Romanian (https://app.transifex.com/nextcloud/teams/64236/ro/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: ro\\nPlural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"secunde\"]}}}}},{locale:\"ru\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Russian (https://app.transifex.com/nextcloud/teams/64236/ru/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"ru\",\"Plural-Forms\":\"nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n%100>=11 && n%100<=14)? 2 : 3);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Russian (https://app.transifex.com/nextcloud/teams/64236/ru/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: ru\\nPlural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n%100>=11 && n%100<=14)? 2 : 3);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"секунды\"]}}}}},{locale:\"si\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Sinhala (https://app.transifex.com/nextcloud/teams/64236/si/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"si\",\"Plural-Forms\":\"nplurals=2; plural=(n != 1);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Sinhala (https://app.transifex.com/nextcloud/teams/64236/si/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: si\\nPlural-Forms: nplurals=2; plural=(n != 1);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"තත්පර\"]}}}}},{locale:\"sk_SK\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Slovak (Slovakia) (https://app.transifex.com/nextcloud/teams/64236/sk_SK/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"sk_SK\",\"Plural-Forms\":\"nplurals=4; plural=(n % 1 == 0 && n == 1 ? 0 : n % 1 == 0 && n >= 2 && n <= 4 ? 1 : n % 1 != 0 ? 2: 3);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Slovak (Slovakia) (https://app.transifex.com/nextcloud/teams/64236/sk_SK/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: sk_SK\\nPlural-Forms: nplurals=4; plural=(n % 1 == 0 && n == 1 ? 0 : n % 1 == 0 && n >= 2 && n <= 4 ? 1 : n % 1 != 0 ? 2: 3);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"sekundy\"]}}}}},{locale:\"sl\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Slovenian (https://app.transifex.com/nextcloud/teams/64236/sl/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"sl\",\"Plural-Forms\":\"nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Slovenian (https://app.transifex.com/nextcloud/teams/64236/sl/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: sl\\nPlural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"sekunde\"]}}}}},{locale:\"sq\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Albanian (https://app.transifex.com/nextcloud/teams/64236/sq/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"sq\",\"Plural-Forms\":\"nplurals=2; plural=(n != 1);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Albanian (https://app.transifex.com/nextcloud/teams/64236/sq/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: sq\\nPlural-Forms: nplurals=2; plural=(n != 1);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"sekonda\"]}}}}},{locale:\"sr\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Serbian (https://app.transifex.com/nextcloud/teams/64236/sr/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"sr\",\"Plural-Forms\":\"nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Serbian (https://app.transifex.com/nextcloud/teams/64236/sr/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: sr\\nPlural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"секунде\"]}}}}},{locale:\"sv\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Swedish (https://app.transifex.com/nextcloud/teams/64236/sv/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"sv\",\"Plural-Forms\":\"nplurals=2; plural=(n != 1);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Swedish (https://app.transifex.com/nextcloud/teams/64236/sv/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: sv\\nPlural-Forms: nplurals=2; plural=(n != 1);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"sekunder\"]}}}}},{locale:\"th_TH\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Thai (Thailand) (https://app.transifex.com/nextcloud/teams/64236/th_TH/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"th_TH\",\"Plural-Forms\":\"nplurals=1; plural=0;\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Thai (Thailand) (https://app.transifex.com/nextcloud/teams/64236/th_TH/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: th_TH\\nPlural-Forms: nplurals=1; plural=0;\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"วินาที\"]}}}}},{locale:\"tr\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Turkish (https://app.transifex.com/nextcloud/teams/64236/tr/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"tr\",\"Plural-Forms\":\"nplurals=2; plural=(n > 1);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Turkish (https://app.transifex.com/nextcloud/teams/64236/tr/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: tr\\nPlural-Forms: nplurals=2; plural=(n > 1);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"saniye\"]}}}}},{locale:\"uk\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Ukrainian (https://app.transifex.com/nextcloud/teams/64236/uk/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"uk\",\"Plural-Forms\":\"nplurals=4; plural=(n % 1 == 0 && n % 10 == 1 && n % 100 != 11 ? 0 : n % 1 == 0 && n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14) ? 1 : n % 1 == 0 && (n % 10 ==0 || (n % 10 >=5 && n % 10 <=9) || (n % 100 >=11 && n % 100 <=14 )) ? 2: 3);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Ukrainian (https://app.transifex.com/nextcloud/teams/64236/uk/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: uk\\nPlural-Forms: nplurals=4; plural=(n % 1 == 0 && n % 10 == 1 && n % 100 != 11 ? 0 : n % 1 == 0 && n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14) ? 1 : n % 1 == 0 && (n % 10 ==0 || (n % 10 >=5 && n % 10 <=9) || (n % 100 >=11 && n % 100 <=14 )) ? 2: 3);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"секунд\"]}}}}},{locale:\"vi\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Vietnamese (https://app.transifex.com/nextcloud/teams/64236/vi/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"vi\",\"Plural-Forms\":\"nplurals=1; plural=0;\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Vietnamese (https://app.transifex.com/nextcloud/teams/64236/vi/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: vi\\nPlural-Forms: nplurals=1; plural=0;\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"giây\"]}}}}},{locale:\"zh_CN\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Chinese (China) (https://app.transifex.com/nextcloud/teams/64236/zh_CN/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"zh_CN\",\"Plural-Forms\":\"nplurals=1; plural=0;\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Chinese (China) (https://app.transifex.com/nextcloud/teams/64236/zh_CN/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: zh_CN\\nPlural-Forms: nplurals=1; plural=0;\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"秒\"]}}}}},{locale:\"zh_HK\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Chinese (Hong Kong) (https://app.transifex.com/nextcloud/teams/64236/zh_HK/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"zh_HK\",\"Plural-Forms\":\"nplurals=1; plural=0;\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Chinese (Hong Kong) (https://app.transifex.com/nextcloud/teams/64236/zh_HK/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: zh_HK\\nPlural-Forms: nplurals=1; plural=0;\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"秒\"]}}}}},{locale:\"zh_TW\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Chinese (Taiwan) (https://app.transifex.com/nextcloud/teams/64236/zh_TW/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"zh_TW\",\"Plural-Forms\":\"nplurals=1; plural=0;\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Chinese (Taiwan) (https://app.transifex.com/nextcloud/teams/64236/zh_TW/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: zh_TW\\nPlural-Forms: nplurals=1; plural=0;\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"秒\"]}}}}}].map((function(n){r.addTranslations(n.locale,\"messages\",n.json)})),r.setLocale(m),t().locale(m),(\"en\"===m||[{locale:\"ar\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"Ali , 2023\",\"Language-Team\":\"Arabic (https://app.transifex.com/nextcloud/teams/64236/ar/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"ar\",\"Plural-Forms\":\"nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nAli , 2023\\n\"},msgstr:[\"Last-Translator: Ali , 2023\\nLanguage-Team: Arabic (https://app.transifex.com/nextcloud/teams/64236/ar/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: ar\\nPlural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"ثوانٍ\"]}}}}},{locale:\"ast\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Asturian (https://app.transifex.com/nextcloud/teams/64236/ast/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"ast\",\"Plural-Forms\":\"nplurals=2; plural=(n != 1);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Asturian (https://app.transifex.com/nextcloud/teams/64236/ast/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: ast\\nPlural-Forms: nplurals=2; plural=(n != 1);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"segundos\"]}}}}},{locale:\"br\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Breton (https://app.transifex.com/nextcloud/teams/64236/br/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"br\",\"Plural-Forms\":\"nplurals=5; plural=((n%10 == 1) && (n%100 != 11) && (n%100 !=71) && (n%100 !=91) ? 0 :(n%10 == 2) && (n%100 != 12) && (n%100 !=72) && (n%100 !=92) ? 1 :(n%10 ==3 || n%10==4 || n%10==9) && (n%100 < 10 || n% 100 > 19) && (n%100 < 70 || n%100 > 79) && (n%100 < 90 || n%100 > 99) ? 2 :(n != 0 && n % 1000000 == 0) ? 3 : 4);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Breton (https://app.transifex.com/nextcloud/teams/64236/br/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: br\\nPlural-Forms: nplurals=5; plural=((n%10 == 1) && (n%100 != 11) && (n%100 !=71) && (n%100 !=91) ? 0 :(n%10 == 2) && (n%100 != 12) && (n%100 !=72) && (n%100 !=92) ? 1 :(n%10 ==3 || n%10==4 || n%10==9) && (n%100 < 10 || n% 100 > 19) && (n%100 < 70 || n%100 > 79) && (n%100 < 90 || n%100 > 99) ? 2 :(n != 0 && n % 1000000 == 0) ? 3 : 4);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"eilennoù\"]}}}}},{locale:\"ca\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Catalan (https://app.transifex.com/nextcloud/teams/64236/ca/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"ca\",\"Plural-Forms\":\"nplurals=2; plural=(n != 1);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Catalan (https://app.transifex.com/nextcloud/teams/64236/ca/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: ca\\nPlural-Forms: nplurals=2; plural=(n != 1);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"segons\"]}}}}},{locale:\"cs_CZ\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Czech (Czech Republic) (https://app.transifex.com/nextcloud/teams/64236/cs_CZ/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"cs_CZ\",\"Plural-Forms\":\"nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n >= 2 && n <= 4 && n % 1 == 0) ? 1: (n % 1 != 0 ) ? 2 : 3;\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Czech (Czech Republic) (https://app.transifex.com/nextcloud/teams/64236/cs_CZ/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: cs_CZ\\nPlural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n >= 2 && n <= 4 && n % 1 == 0) ? 1: (n % 1 != 0 ) ? 2 : 3;\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"sekund(y)\"]}}}}},{locale:\"da\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Danish (https://app.transifex.com/nextcloud/teams/64236/da/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"da\",\"Plural-Forms\":\"nplurals=2; plural=(n != 1);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Danish (https://app.transifex.com/nextcloud/teams/64236/da/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: da\\nPlural-Forms: nplurals=2; plural=(n != 1);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"sekunder\"]}}}}},{locale:\"de\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"Markus Eckstein, 2023\",\"Language-Team\":\"German (https://app.transifex.com/nextcloud/teams/64236/de/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"de\",\"Plural-Forms\":\"nplurals=2; plural=(n != 1);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nMarkus Eckstein, 2023\\n\"},msgstr:[\"Last-Translator: Markus Eckstein, 2023\\nLanguage-Team: German (https://app.transifex.com/nextcloud/teams/64236/de/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: de\\nPlural-Forms: nplurals=2; plural=(n != 1);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"Sekunden\"]}}}}},{locale:\"de_DE\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"German (Germany) (https://app.transifex.com/nextcloud/teams/64236/de_DE/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"de_DE\",\"Plural-Forms\":\"nplurals=2; plural=(n != 1);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: German (Germany) (https://app.transifex.com/nextcloud/teams/64236/de_DE/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: de_DE\\nPlural-Forms: nplurals=2; plural=(n != 1);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"Sekunden\"]}}}}},{locale:\"el\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Greek (https://app.transifex.com/nextcloud/teams/64236/el/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"el\",\"Plural-Forms\":\"nplurals=2; plural=(n != 1);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Greek (https://app.transifex.com/nextcloud/teams/64236/el/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: el\\nPlural-Forms: nplurals=2; plural=(n != 1);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"δευτερόλεπτα\"]}}}}},{locale:\"en_GB\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"English (United Kingdom) (https://app.transifex.com/nextcloud/teams/64236/en_GB/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"en_GB\",\"Plural-Forms\":\"nplurals=2; plural=(n != 1);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: English (United Kingdom) (https://app.transifex.com/nextcloud/teams/64236/en_GB/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: en_GB\\nPlural-Forms: nplurals=2; plural=(n != 1);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"seconds\"]}}}}},{locale:\"eo\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Esperanto (https://app.transifex.com/nextcloud/teams/64236/eo/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"eo\",\"Plural-Forms\":\"nplurals=2; plural=(n != 1);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Esperanto (https://app.transifex.com/nextcloud/teams/64236/eo/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: eo\\nPlural-Forms: nplurals=2; plural=(n != 1);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"sekundoj\"]}}}}},{locale:\"es\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Spanish (https://app.transifex.com/nextcloud/teams/64236/es/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"es\",\"Plural-Forms\":\"nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Spanish (https://app.transifex.com/nextcloud/teams/64236/es/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: es\\nPlural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"segundos\"]}}}}},{locale:\"es_AR\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Spanish (Argentina) (https://app.transifex.com/nextcloud/teams/64236/es_AR/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"es_AR\",\"Plural-Forms\":\"nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Spanish (Argentina) (https://app.transifex.com/nextcloud/teams/64236/es_AR/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: es_AR\\nPlural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"segundos\"]}}}}},{locale:\"es_MX\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Spanish (Mexico) (https://app.transifex.com/nextcloud/teams/64236/es_MX/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"es_MX\",\"Plural-Forms\":\"nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Spanish (Mexico) (https://app.transifex.com/nextcloud/teams/64236/es_MX/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: es_MX\\nPlural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"segundos\"]}}}}},{locale:\"et_EE\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Estonian (Estonia) (https://app.transifex.com/nextcloud/teams/64236/et_EE/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"et_EE\",\"Plural-Forms\":\"nplurals=2; plural=(n != 1);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Estonian (Estonia) (https://app.transifex.com/nextcloud/teams/64236/et_EE/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: et_EE\\nPlural-Forms: nplurals=2; plural=(n != 1);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"sekundid\"]}}}}},{locale:\"eu\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Basque (https://app.transifex.com/nextcloud/teams/64236/eu/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"eu\",\"Plural-Forms\":\"nplurals=2; plural=(n != 1);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Basque (https://app.transifex.com/nextcloud/teams/64236/eu/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: eu\\nPlural-Forms: nplurals=2; plural=(n != 1);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"segundo\"]}}}}},{locale:\"fa\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Persian (https://app.transifex.com/nextcloud/teams/64236/fa/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"fa\",\"Plural-Forms\":\"nplurals=2; plural=(n > 1);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Persian (https://app.transifex.com/nextcloud/teams/64236/fa/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: fa\\nPlural-Forms: nplurals=2; plural=(n > 1);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"ثانیه\"]}}}}},{locale:\"fi_FI\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Finnish (Finland) (https://app.transifex.com/nextcloud/teams/64236/fi_FI/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"fi_FI\",\"Plural-Forms\":\"nplurals=2; plural=(n != 1);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Finnish (Finland) (https://app.transifex.com/nextcloud/teams/64236/fi_FI/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: fi_FI\\nPlural-Forms: nplurals=2; plural=(n != 1);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"sekuntia\"]}}}}},{locale:\"fr\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"French (https://app.transifex.com/nextcloud/teams/64236/fr/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"fr\",\"Plural-Forms\":\"nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: French (https://app.transifex.com/nextcloud/teams/64236/fr/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: fr\\nPlural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"secondes\"]}}}}},{locale:\"gl\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Galician (https://app.transifex.com/nextcloud/teams/64236/gl/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"gl\",\"Plural-Forms\":\"nplurals=2; plural=(n != 1);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Galician (https://app.transifex.com/nextcloud/teams/64236/gl/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: gl\\nPlural-Forms: nplurals=2; plural=(n != 1);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"segundos\"]}}}}},{locale:\"he\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Hebrew (https://app.transifex.com/nextcloud/teams/64236/he/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"he\",\"Plural-Forms\":\"nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n == 2 && n % 1 == 0) ? 1: (n % 10 == 0 && n % 1 == 0 && n > 10) ? 2 : 3;\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Hebrew (https://app.transifex.com/nextcloud/teams/64236/he/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: he\\nPlural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n == 2 && n % 1 == 0) ? 1: (n % 10 == 0 && n % 1 == 0 && n > 10) ? 2 : 3;\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"שניות\"]}}}}},{locale:\"hu_HU\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Hungarian (Hungary) (https://app.transifex.com/nextcloud/teams/64236/hu_HU/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"hu_HU\",\"Plural-Forms\":\"nplurals=2; plural=(n != 1);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Hungarian (Hungary) (https://app.transifex.com/nextcloud/teams/64236/hu_HU/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: hu_HU\\nPlural-Forms: nplurals=2; plural=(n != 1);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"másodperc\"]}}}}},{locale:\"id\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Indonesian (https://app.transifex.com/nextcloud/teams/64236/id/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"id\",\"Plural-Forms\":\"nplurals=1; plural=0;\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Indonesian (https://app.transifex.com/nextcloud/teams/64236/id/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: id\\nPlural-Forms: nplurals=1; plural=0;\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"detik\"]}}}}},{locale:\"is\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Icelandic (https://app.transifex.com/nextcloud/teams/64236/is/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"is\",\"Plural-Forms\":\"nplurals=2; plural=(n % 10 != 1 || n % 100 == 11);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Icelandic (https://app.transifex.com/nextcloud/teams/64236/is/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: is\\nPlural-Forms: nplurals=2; plural=(n % 10 != 1 || n % 100 == 11);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"sekúndur\"]}}}}},{locale:\"it\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Italian (https://app.transifex.com/nextcloud/teams/64236/it/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"it\",\"Plural-Forms\":\"nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Italian (https://app.transifex.com/nextcloud/teams/64236/it/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: it\\nPlural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"secondi\"]}}}}},{locale:\"ja_JP\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Japanese (Japan) (https://app.transifex.com/nextcloud/teams/64236/ja_JP/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"ja_JP\",\"Plural-Forms\":\"nplurals=1; plural=0;\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Japanese (Japan) (https://app.transifex.com/nextcloud/teams/64236/ja_JP/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: ja_JP\\nPlural-Forms: nplurals=1; plural=0;\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"秒\"]}}}}},{locale:\"kab\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Kabyle (https://app.transifex.com/nextcloud/teams/64236/kab/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"kab\",\"Plural-Forms\":\"nplurals=2; plural=(n != 1);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Kabyle (https://app.transifex.com/nextcloud/teams/64236/kab/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: kab\\nPlural-Forms: nplurals=2; plural=(n != 1);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"tasinin\"]}}}}},{locale:\"ko\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Korean (https://app.transifex.com/nextcloud/teams/64236/ko/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"ko\",\"Plural-Forms\":\"nplurals=1; plural=0;\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Korean (https://app.transifex.com/nextcloud/teams/64236/ko/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: ko\\nPlural-Forms: nplurals=1; plural=0;\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"초\"]}}}}},{locale:\"lo\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Lao (https://app.transifex.com/nextcloud/teams/64236/lo/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"lo\",\"Plural-Forms\":\"nplurals=1; plural=0;\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Lao (https://app.transifex.com/nextcloud/teams/64236/lo/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: lo\\nPlural-Forms: nplurals=1; plural=0;\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"ວິນາທີ\"]}}}}},{locale:\"lt_LT\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Lithuanian (Lithuania) (https://app.transifex.com/nextcloud/teams/64236/lt_LT/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"lt_LT\",\"Plural-Forms\":\"nplurals=4; plural=(n % 10 == 1 && (n % 100 > 19 || n % 100 < 11) ? 0 : (n % 10 >= 2 && n % 10 <=9) && (n % 100 > 19 || n % 100 < 11) ? 1 : n % 1 != 0 ? 2: 3);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Lithuanian (Lithuania) (https://app.transifex.com/nextcloud/teams/64236/lt_LT/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: lt_LT\\nPlural-Forms: nplurals=4; plural=(n % 10 == 1 && (n % 100 > 19 || n % 100 < 11) ? 0 : (n % 10 >= 2 && n % 10 <=9) && (n % 100 > 19 || n % 100 < 11) ? 1 : n % 1 != 0 ? 2: 3);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"sek.\"]}}}}},{locale:\"lv\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Latvian (https://app.transifex.com/nextcloud/teams/64236/lv/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"lv\",\"Plural-Forms\":\"nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : 2);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Latvian (https://app.transifex.com/nextcloud/teams/64236/lv/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: lv\\nPlural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : 2);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"sekundes\"]}}}}},{locale:\"mk\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Macedonian (https://app.transifex.com/nextcloud/teams/64236/mk/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"mk\",\"Plural-Forms\":\"nplurals=2; plural=(n % 10 == 1 && n % 100 != 11) ? 0 : 1;\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Macedonian (https://app.transifex.com/nextcloud/teams/64236/mk/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: mk\\nPlural-Forms: nplurals=2; plural=(n % 10 == 1 && n % 100 != 11) ? 0 : 1;\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"секунди\"]}}}}},{locale:\"mn\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Mongolian (https://app.transifex.com/nextcloud/teams/64236/mn/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"mn\",\"Plural-Forms\":\"nplurals=2; plural=(n != 1);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Mongolian (https://app.transifex.com/nextcloud/teams/64236/mn/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: mn\\nPlural-Forms: nplurals=2; plural=(n != 1);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"секунд\"]}}}}},{locale:\"my\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Burmese (https://app.transifex.com/nextcloud/teams/64236/my/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"my\",\"Plural-Forms\":\"nplurals=1; plural=0;\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Burmese (https://app.transifex.com/nextcloud/teams/64236/my/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: my\\nPlural-Forms: nplurals=1; plural=0;\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"စက္ကန့်\"]}}}}},{locale:\"nb_NO\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Norwegian Bokmål (Norway) (https://app.transifex.com/nextcloud/teams/64236/nb_NO/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"nb_NO\",\"Plural-Forms\":\"nplurals=2; plural=(n != 1);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Norwegian Bokmål (Norway) (https://app.transifex.com/nextcloud/teams/64236/nb_NO/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: nb_NO\\nPlural-Forms: nplurals=2; plural=(n != 1);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"sekunder\"]}}}}},{locale:\"nl\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Dutch (https://app.transifex.com/nextcloud/teams/64236/nl/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"nl\",\"Plural-Forms\":\"nplurals=2; plural=(n != 1);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Dutch (https://app.transifex.com/nextcloud/teams/64236/nl/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: nl\\nPlural-Forms: nplurals=2; plural=(n != 1);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"seconden\"]}}}}},{locale:\"oc\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Occitan (post 1500) (https://app.transifex.com/nextcloud/teams/64236/oc/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"oc\",\"Plural-Forms\":\"nplurals=2; plural=(n > 1);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Occitan (post 1500) (https://app.transifex.com/nextcloud/teams/64236/oc/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: oc\\nPlural-Forms: nplurals=2; plural=(n > 1);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"segondas\"]}}}}},{locale:\"pl\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Polish (https://app.transifex.com/nextcloud/teams/64236/pl/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"pl\",\"Plural-Forms\":\"nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Polish (https://app.transifex.com/nextcloud/teams/64236/pl/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: pl\\nPlural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"sekundy\"]}}}}},{locale:\"pt_BR\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Portuguese (Brazil) (https://app.transifex.com/nextcloud/teams/64236/pt_BR/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"pt_BR\",\"Plural-Forms\":\"nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Portuguese (Brazil) (https://app.transifex.com/nextcloud/teams/64236/pt_BR/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: pt_BR\\nPlural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"segundos\"]}}}}},{locale:\"pt_PT\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Portuguese (Portugal) (https://app.transifex.com/nextcloud/teams/64236/pt_PT/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"pt_PT\",\"Plural-Forms\":\"nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Portuguese (Portugal) (https://app.transifex.com/nextcloud/teams/64236/pt_PT/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: pt_PT\\nPlural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"segundos\"]}}}}},{locale:\"ro\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Romanian (https://app.transifex.com/nextcloud/teams/64236/ro/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"ro\",\"Plural-Forms\":\"nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Romanian (https://app.transifex.com/nextcloud/teams/64236/ro/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: ro\\nPlural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"secunde\"]}}}}},{locale:\"ru\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Russian (https://app.transifex.com/nextcloud/teams/64236/ru/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"ru\",\"Plural-Forms\":\"nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n%100>=11 && n%100<=14)? 2 : 3);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Russian (https://app.transifex.com/nextcloud/teams/64236/ru/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: ru\\nPlural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n%100>=11 && n%100<=14)? 2 : 3);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"секунды\"]}}}}},{locale:\"si\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Sinhala (https://app.transifex.com/nextcloud/teams/64236/si/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"si\",\"Plural-Forms\":\"nplurals=2; plural=(n != 1);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Sinhala (https://app.transifex.com/nextcloud/teams/64236/si/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: si\\nPlural-Forms: nplurals=2; plural=(n != 1);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"තත්පර\"]}}}}},{locale:\"sk_SK\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Slovak (Slovakia) (https://app.transifex.com/nextcloud/teams/64236/sk_SK/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"sk_SK\",\"Plural-Forms\":\"nplurals=4; plural=(n % 1 == 0 && n == 1 ? 0 : n % 1 == 0 && n >= 2 && n <= 4 ? 1 : n % 1 != 0 ? 2: 3);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Slovak (Slovakia) (https://app.transifex.com/nextcloud/teams/64236/sk_SK/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: sk_SK\\nPlural-Forms: nplurals=4; plural=(n % 1 == 0 && n == 1 ? 0 : n % 1 == 0 && n >= 2 && n <= 4 ? 1 : n % 1 != 0 ? 2: 3);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"sekundy\"]}}}}},{locale:\"sl\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Slovenian (https://app.transifex.com/nextcloud/teams/64236/sl/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"sl\",\"Plural-Forms\":\"nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Slovenian (https://app.transifex.com/nextcloud/teams/64236/sl/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: sl\\nPlural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"sekunde\"]}}}}},{locale:\"sq\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Albanian (https://app.transifex.com/nextcloud/teams/64236/sq/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"sq\",\"Plural-Forms\":\"nplurals=2; plural=(n != 1);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Albanian (https://app.transifex.com/nextcloud/teams/64236/sq/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: sq\\nPlural-Forms: nplurals=2; plural=(n != 1);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"sekonda\"]}}}}},{locale:\"sr\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Serbian (https://app.transifex.com/nextcloud/teams/64236/sr/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"sr\",\"Plural-Forms\":\"nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Serbian (https://app.transifex.com/nextcloud/teams/64236/sr/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: sr\\nPlural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"секунде\"]}}}}},{locale:\"sv\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Swedish (https://app.transifex.com/nextcloud/teams/64236/sv/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"sv\",\"Plural-Forms\":\"nplurals=2; plural=(n != 1);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Swedish (https://app.transifex.com/nextcloud/teams/64236/sv/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: sv\\nPlural-Forms: nplurals=2; plural=(n != 1);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"sekunder\"]}}}}},{locale:\"th_TH\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Thai (Thailand) (https://app.transifex.com/nextcloud/teams/64236/th_TH/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"th_TH\",\"Plural-Forms\":\"nplurals=1; plural=0;\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Thai (Thailand) (https://app.transifex.com/nextcloud/teams/64236/th_TH/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: th_TH\\nPlural-Forms: nplurals=1; plural=0;\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"วินาที\"]}}}}},{locale:\"tr\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Turkish (https://app.transifex.com/nextcloud/teams/64236/tr/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"tr\",\"Plural-Forms\":\"nplurals=2; plural=(n > 1);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Turkish (https://app.transifex.com/nextcloud/teams/64236/tr/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: tr\\nPlural-Forms: nplurals=2; plural=(n > 1);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"saniye\"]}}}}},{locale:\"uk\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Ukrainian (https://app.transifex.com/nextcloud/teams/64236/uk/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"uk\",\"Plural-Forms\":\"nplurals=4; plural=(n % 1 == 0 && n % 10 == 1 && n % 100 != 11 ? 0 : n % 1 == 0 && n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14) ? 1 : n % 1 == 0 && (n % 10 ==0 || (n % 10 >=5 && n % 10 <=9) || (n % 100 >=11 && n % 100 <=14 )) ? 2: 3);\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Ukrainian (https://app.transifex.com/nextcloud/teams/64236/uk/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: uk\\nPlural-Forms: nplurals=4; plural=(n % 1 == 0 && n % 10 == 1 && n % 100 != 11 ? 0 : n % 1 == 0 && n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14) ? 1 : n % 1 == 0 && (n % 10 ==0 || (n % 10 >=5 && n % 10 <=9) || (n % 100 >=11 && n % 100 <=14 )) ? 2: 3);\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"секунд\"]}}}}},{locale:\"vi\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Vietnamese (https://app.transifex.com/nextcloud/teams/64236/vi/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"vi\",\"Plural-Forms\":\"nplurals=1; plural=0;\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Vietnamese (https://app.transifex.com/nextcloud/teams/64236/vi/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: vi\\nPlural-Forms: nplurals=1; plural=0;\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"giây\"]}}}}},{locale:\"zh_CN\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Chinese (China) (https://app.transifex.com/nextcloud/teams/64236/zh_CN/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"zh_CN\",\"Plural-Forms\":\"nplurals=1; plural=0;\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Chinese (China) (https://app.transifex.com/nextcloud/teams/64236/zh_CN/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: zh_CN\\nPlural-Forms: nplurals=1; plural=0;\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"秒\"]}}}}},{locale:\"zh_HK\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Chinese (Hong Kong) (https://app.transifex.com/nextcloud/teams/64236/zh_HK/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"zh_HK\",\"Plural-Forms\":\"nplurals=1; plural=0;\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Chinese (Hong Kong) (https://app.transifex.com/nextcloud/teams/64236/zh_HK/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: zh_HK\\nPlural-Forms: nplurals=1; plural=0;\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"秒\"]}}}}},{locale:\"zh_TW\",json:{charset:\"utf-8\",headers:{\"Last-Translator\":\"John Molakvoæ , 2023\",\"Language-Team\":\"Chinese (Taiwan) (https://app.transifex.com/nextcloud/teams/64236/zh_TW/)\",\"Content-Type\":\"text/plain; charset=UTF-8\",Language:\"zh_TW\",\"Plural-Forms\":\"nplurals=1; plural=0;\"},translations:{\"\":{\"\":{msgid:\"\",comments:{translator:\"\\nTranslators:\\nJohn Molakvoæ , 2023\\n\"},msgstr:[\"Last-Translator: John Molakvoæ , 2023\\nLanguage-Team: Chinese (Taiwan) (https://app.transifex.com/nextcloud/teams/64236/zh_TW/)\\nContent-Type: text/plain; charset=UTF-8\\nLanguage: zh_TW\\nPlural-Forms: nplurals=1; plural=0;\\n\"]},seconds:{msgid:\"seconds\",comments:{reference:\"lib/index.ts:22\"},msgstr:[\"秒\"]}}}}}].find((function(n){return n.locale===m})))&&t().updateLocale(t().locale(),{relativeTime:{s:r.gettext(\"seconds\")}});var p=t();return a}()}));\n//# sourceMappingURL=index.js.map","import \"../assets/index-d812ed9e.css\";\nimport { n as h } from \"../chunks/_plugin-vue2_normalizer-71e2aa87.mjs\";\nconst p = {\n name: \"NcButton\",\n props: {\n /**\n * Set the text and icon alignment\n *\n * @default 'center'\n */\n alignment: {\n type: String,\n default: \"center\",\n validator: (t) => [\"start\", \"start-reverse\", \"center\", \"center-reverse\", \"end\", \"end-reverse\"].includes(t)\n },\n /**\n * Toggles the disabled state of the button on and off.\n */\n disabled: {\n type: Boolean,\n default: !1\n },\n /**\n * Specifies the button type\n * Accepted values: primary, secondary, tertiary, tertiary-no-background, tertiary-on-primary, error, warning, success. If left empty,\n * the default button style will be applied.\n */\n type: {\n type: String,\n validator(t) {\n return [\"primary\", \"secondary\", \"tertiary\", \"tertiary-no-background\", \"tertiary-on-primary\", \"error\", \"warning\", \"success\"].indexOf(t) !== -1;\n },\n default: \"secondary\"\n },\n /**\n * Specifies the button native type\n * Accepted values: submit, reset, button. If left empty,\n * the default \"button\" type will be used.\n */\n nativeType: {\n type: String,\n validator(t) {\n return [\"submit\", \"reset\", \"button\"].indexOf(t) !== -1;\n },\n default: \"button\"\n },\n /**\n * Specifies whether the button should span all the available width.\n * By default, buttons span the whole width of the container.\n */\n wide: {\n type: Boolean,\n default: !1\n },\n /**\n * Always try to provide an aria-label to your button. Make it more\n * specific than the button's name by provide some more context. E.g. if\n * the name of the button is \"send\" in the Mail app, the aria label could\n * be \"Send email\".\n */\n ariaLabel: {\n type: String,\n default: null\n },\n /**\n * Providing the href attribute turns the button component into an `a`\n * element.\n */\n href: {\n type: String,\n default: null\n },\n /**\n * Providing the download attribute with href downloads file when clicking.\n */\n download: {\n type: String,\n default: null\n },\n /**\n * Providing the to attribute turns the button component into a `router-link`\n * element. Takes precedence over the href attribute.\n */\n to: {\n type: [String, Object],\n default: null\n },\n /**\n * Pass in `true` if you want the matching behaviour of `router-link` to\n * be non-inclusive: https://router.vuejs.org/api/#exact\n */\n exact: {\n type: Boolean,\n default: !1\n },\n /**\n * aria-hidden attribute for the icon slot\n */\n ariaHidden: {\n type: Boolean,\n default: null\n },\n /**\n * The pressed state of the button if it has a checked state\n * This will add the `aria-pressed` attribute and for the button to have the primary style in checked state.\n */\n pressed: {\n type: Boolean,\n default: null\n }\n },\n emits: [\"update:pressed\", \"click\"],\n computed: {\n /**\n * The real type to be used for the button, enforces `primary` for pressed state and, if stateful button, any other type for not pressed state\n * Otherwise the type property is used.\n */\n realType() {\n return this.pressed ? \"primary\" : this.pressed === !1 && this.type === \"primary\" ? \"secondary\" : this.type;\n },\n /**\n * The flexbox alignment of the button content\n */\n flexAlignment() {\n return this.alignment.split(\"-\")[0];\n },\n /**\n * If the button content should be reversed (icon on the end)\n */\n isReverseAligned() {\n return this.alignment.includes(\"-\");\n }\n },\n /**\n * The render function to display the component\n *\n * @param {Function} h The function to create VNodes\n * @return {object|undefined} The created VNode\n */\n render(t) {\n var i, l, a;\n const e = !!this.$slots.default, s = (i = this.$slots) == null ? void 0 : i.icon;\n !e && !this.ariaLabel && console.warn(\n \"You need to fill either the text or the ariaLabel props in the button component.\",\n {\n text: (a = (l = this.$slots.default) == null ? void 0 : l[0]) == null ? void 0 : a.text,\n ariaLabel: this.ariaLabel\n },\n this\n );\n const r = ({ navigate: n, isActive: u, isExactActive: d } = {}) => t(\n this.to || !this.href ? \"button\" : \"a\",\n {\n class: [\n \"button-vue\",\n {\n \"button-vue--icon-only\": s && !e,\n \"button-vue--text-only\": e && !s,\n \"button-vue--icon-and-text\": s && e,\n [`button-vue--vue-${this.realType}`]: this.realType,\n \"button-vue--wide\": this.wide,\n [`button-vue--${this.flexAlignment}`]: this.flexAlignment !== \"center\",\n \"button-vue--reverse\": this.isReverseAligned,\n active: u,\n \"router-link-exact-active\": d\n }\n ],\n attrs: {\n \"aria-label\": this.ariaLabel,\n \"aria-pressed\": this.pressed,\n disabled: this.disabled,\n type: this.href ? null : this.nativeType,\n role: this.href ? \"button\" : null,\n href: !this.to && this.href ? this.href : null,\n target: !this.to && this.href ? \"_self\" : null,\n rel: !this.to && this.href ? \"nofollow noreferrer noopener\" : null,\n download: !this.to && this.href && this.download ? this.download : null,\n ...this.$attrs\n },\n on: {\n ...this.$listeners,\n click: (o) => {\n typeof this.pressed == \"boolean\" && this.$emit(\"update:pressed\", !this.pressed), this.$emit(\"click\", o), n == null || n(o);\n }\n }\n },\n [\n t(\"span\", { class: \"button-vue__wrapper\" }, [\n s ? t(\n \"span\",\n {\n class: \"button-vue__icon\",\n attrs: {\n \"aria-hidden\": this.ariaHidden\n }\n },\n [this.$slots.icon]\n ) : null,\n e ? t(\"span\", { class: \"button-vue__text\" }, [this.$slots.default]) : null\n ])\n ]\n );\n return this.to ? t(\"router-link\", {\n props: {\n custom: !0,\n to: this.to,\n exact: this.exact\n },\n scopedSlots: {\n default: r\n }\n }) : r();\n }\n}, c = null, f = null;\nvar y = /* @__PURE__ */ h(\n p,\n c,\n f,\n !1,\n null,\n \"f507b497\",\n null,\n null\n);\nconst m = y.exports;\nexport {\n m as default\n};\n","function getBasePlacement(placement) {\n return placement.split('-')[0];\n}\n\nfunction getAlignment(placement) {\n return placement.split('-')[1];\n}\n\nfunction getMainAxisFromPlacement(placement) {\n return ['top', 'bottom'].includes(getBasePlacement(placement)) ? 'x' : 'y';\n}\n\nfunction getLengthFromAxis(axis) {\n return axis === 'y' ? 'height' : 'width';\n}\n\nfunction computeCoordsFromPlacement(_ref) {\n let {\n reference,\n floating,\n placement\n } = _ref;\n const commonX = reference.x + reference.width / 2 - floating.width / 2;\n const commonY = reference.y + reference.height / 2 - floating.height / 2;\n let coords;\n\n switch (getBasePlacement(placement)) {\n case 'top':\n coords = {\n x: commonX,\n y: reference.y - floating.height\n };\n break;\n\n case 'bottom':\n coords = {\n x: commonX,\n y: reference.y + reference.height\n };\n break;\n\n case 'right':\n coords = {\n x: reference.x + reference.width,\n y: commonY\n };\n break;\n\n case 'left':\n coords = {\n x: reference.x - floating.width,\n y: commonY\n };\n break;\n\n default:\n coords = {\n x: reference.x,\n y: reference.y\n };\n }\n\n const mainAxis = getMainAxisFromPlacement(placement);\n const length = getLengthFromAxis(mainAxis);\n\n switch (getAlignment(placement)) {\n case 'start':\n coords[mainAxis] = coords[mainAxis] - (reference[length] / 2 - floating[length] / 2);\n break;\n\n case 'end':\n coords[mainAxis] = coords[mainAxis] + (reference[length] / 2 - floating[length] / 2);\n break;\n }\n\n return coords;\n}\n\nconst computePosition = async (reference, floating, config) => {\n const {\n placement = 'bottom',\n strategy = 'absolute',\n middleware = [],\n platform\n } = config;\n\n if (process.env.NODE_ENV !== \"production\") {\n if (platform == null) {\n console.error(['Floating UI: `platform` property was not passed to config. If you', 'want to use Floating UI on the web, install @floating-ui/dom', 'instead of the /core package. Otherwise, you can create your own', '`platform`: https://floating-ui.com/docs/platform'].join(' '));\n }\n\n if (middleware.filter(_ref => {\n let {\n name\n } = _ref;\n return name === 'autoPlacement' || name === 'flip';\n }).length > 1) {\n throw new Error(['Floating UI: duplicate `flip` and/or `autoPlacement`', 'middleware detected. This will lead to an infinite loop. Ensure only', 'one of either has been passed to the `middleware` array.'].join(' '));\n }\n }\n\n let rects = await platform.getElementRects({\n reference,\n floating,\n strategy\n });\n let {\n x,\n y\n } = computeCoordsFromPlacement({ ...rects,\n placement\n });\n let statefulPlacement = placement;\n let middlewareData = {};\n let _debug_loop_count_ = 0;\n\n for (let i = 0; i < middleware.length; i++) {\n if (process.env.NODE_ENV !== \"production\") {\n _debug_loop_count_++;\n\n if (_debug_loop_count_ > 100) {\n throw new Error(['Floating UI: The middleware lifecycle appears to be', 'running in an infinite loop. This is usually caused by a `reset`', 'continually being returned without a break condition.'].join(' '));\n }\n }\n\n const {\n name,\n fn\n } = middleware[i];\n const {\n x: nextX,\n y: nextY,\n data,\n reset\n } = await fn({\n x,\n y,\n initialPlacement: placement,\n placement: statefulPlacement,\n strategy,\n middlewareData,\n rects,\n platform,\n elements: {\n reference,\n floating\n }\n });\n x = nextX != null ? nextX : x;\n y = nextY != null ? nextY : y;\n middlewareData = { ...middlewareData,\n [name]: data != null ? data : {}\n };\n\n if (reset) {\n if (typeof reset === 'object') {\n if (reset.placement) {\n statefulPlacement = reset.placement;\n }\n\n if (reset.rects) {\n rects = reset.rects === true ? await platform.getElementRects({\n reference,\n floating,\n strategy\n }) : reset.rects;\n }\n\n ({\n x,\n y\n } = computeCoordsFromPlacement({ ...rects,\n placement: statefulPlacement\n }));\n }\n\n i = -1;\n continue;\n }\n }\n\n return {\n x,\n y,\n placement: statefulPlacement,\n strategy,\n middlewareData\n };\n};\n\nfunction expandPaddingObject(padding) {\n return {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n ...padding\n };\n}\n\nfunction getSideObjectFromPadding(padding) {\n return typeof padding !== 'number' ? expandPaddingObject(padding) : {\n top: padding,\n right: padding,\n bottom: padding,\n left: padding\n };\n}\n\nfunction rectToClientRect(rect) {\n return { ...rect,\n top: rect.y,\n left: rect.x,\n right: rect.x + rect.width,\n bottom: rect.y + rect.height\n };\n}\n\nasync function detectOverflow(middlewareArguments, options) {\n if (options === void 0) {\n options = {};\n }\n\n const {\n x,\n y,\n platform,\n rects,\n elements,\n strategy\n } = middlewareArguments;\n const {\n boundary = 'clippingParents',\n rootBoundary = 'viewport',\n elementContext = 'floating',\n altBoundary = false,\n padding = 0\n } = options;\n const paddingObject = getSideObjectFromPadding(padding);\n const altContext = elementContext === 'floating' ? 'reference' : 'floating';\n const element = elements[altBoundary ? altContext : elementContext];\n const clippingClientRect = await platform.getClippingClientRect({\n element: (await platform.isElement(element)) ? element : element.contextElement || (await platform.getDocumentElement({\n element: elements.floating\n })),\n boundary,\n rootBoundary\n });\n const elementClientRect = rectToClientRect(await platform.convertOffsetParentRelativeRectToViewportRelativeRect({\n rect: elementContext === 'floating' ? { ...rects.floating,\n x,\n y\n } : rects.reference,\n offsetParent: await platform.getOffsetParent({\n element: elements.floating\n }),\n strategy\n })); // positive = overflowing the clipping rect\n // 0 or negative = within the clipping rect\n\n return {\n top: clippingClientRect.top - elementClientRect.top + paddingObject.top,\n bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,\n left: clippingClientRect.left - elementClientRect.left + paddingObject.left,\n right: elementClientRect.right - clippingClientRect.right + paddingObject.right\n };\n}\n\nconst min = Math.min;\nconst max = Math.max;\n\nfunction within(min$1, value, max$1) {\n return max(min$1, min(value, max$1));\n}\n\nconst arrow = options => ({\n name: 'arrow',\n options,\n\n async fn(middlewareArguments) {\n // Since `element` is required, we don't Partial<> the type\n const {\n element,\n padding = 0\n } = options != null ? options : {};\n const {\n x,\n y,\n placement,\n rects,\n platform\n } = middlewareArguments;\n\n if (element == null) {\n if (process.env.NODE_ENV !== \"production\") {\n console.warn('Floating UI: No `element` was passed to the `arrow` middleware.');\n }\n\n return {};\n }\n\n const paddingObject = getSideObjectFromPadding(padding);\n const coords = {\n x,\n y\n };\n const basePlacement = getBasePlacement(placement);\n const axis = getMainAxisFromPlacement(basePlacement);\n const length = getLengthFromAxis(axis);\n const arrowDimensions = await platform.getDimensions({\n element\n });\n const minProp = axis === 'y' ? 'top' : 'left';\n const maxProp = axis === 'y' ? 'bottom' : 'right';\n const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];\n const startDiff = coords[axis] - rects.reference[axis];\n const arrowOffsetParent = await platform.getOffsetParent({\n element\n });\n const clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;\n const centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the floating element if the center\n // point is outside of the floating element's bounds\n\n const min = paddingObject[minProp];\n const max = clientSize - arrowDimensions[length] - paddingObject[maxProp];\n const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;\n const offset = within(min, center, max);\n return {\n data: {\n [axis]: offset,\n centerOffset: center - offset\n }\n };\n }\n\n});\n\nconst hash$1 = {\n left: 'right',\n right: 'left',\n bottom: 'top',\n top: 'bottom'\n};\nfunction getOppositePlacement(placement) {\n return placement.replace(/left|right|bottom|top/g, matched => hash$1[matched]);\n}\n\nfunction getAlignmentSides(placement, rects) {\n const isStart = getAlignment(placement) === 'start';\n const mainAxis = getMainAxisFromPlacement(placement);\n const length = getLengthFromAxis(mainAxis);\n let mainAlignmentSide = mainAxis === 'x' ? isStart ? 'right' : 'left' : isStart ? 'bottom' : 'top';\n\n if (rects.reference[length] > rects.floating[length]) {\n mainAlignmentSide = getOppositePlacement(mainAlignmentSide);\n }\n\n return {\n main: mainAlignmentSide,\n cross: getOppositePlacement(mainAlignmentSide)\n };\n}\n\nconst hash = {\n start: 'end',\n end: 'start'\n};\nfunction getOppositeAlignmentPlacement(placement) {\n return placement.replace(/start|end/g, matched => hash[matched]);\n}\n\nconst basePlacements = ['top', 'right', 'bottom', 'left'];\nconst allPlacements = /*#__PURE__*/basePlacements.reduce((acc, basePlacement) => acc.concat(basePlacement, basePlacement + \"-start\", basePlacement + \"-end\"), []);\n\nfunction getPlacementList(alignment, autoAlignment, allowedPlacements) {\n const allowedPlacementsSortedByAlignment = alignment ? [...allowedPlacements.filter(placement => getAlignment(placement) === alignment), ...allowedPlacements.filter(placement => getAlignment(placement) !== alignment)] : allowedPlacements.filter(placement => getBasePlacement(placement) === placement);\n return allowedPlacementsSortedByAlignment.filter(placement => {\n if (alignment) {\n return getAlignment(placement) === alignment || (autoAlignment ? getOppositeAlignmentPlacement(placement) !== placement : false);\n }\n\n return true;\n });\n}\nconst autoPlacement = function (options) {\n if (options === void 0) {\n options = {};\n }\n\n return {\n name: 'autoPlacement',\n options,\n\n async fn(middlewareArguments) {\n var _middlewareData$autoP, _middlewareData$autoP2, _middlewareData$autoP3, _middlewareData$autoP4, _middlewareData$autoP5, _placementsSortedByLe;\n\n const {\n x,\n y,\n rects,\n middlewareData,\n placement\n } = middlewareArguments;\n const {\n alignment = null,\n allowedPlacements = allPlacements,\n autoAlignment = true,\n ...detectOverflowOptions\n } = options;\n\n if ((_middlewareData$autoP = middlewareData.autoPlacement) != null && _middlewareData$autoP.skip) {\n return {};\n }\n\n const placements = getPlacementList(alignment, autoAlignment, allowedPlacements);\n const overflow = await detectOverflow(middlewareArguments, detectOverflowOptions);\n const currentIndex = (_middlewareData$autoP2 = (_middlewareData$autoP3 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP3.index) != null ? _middlewareData$autoP2 : 0;\n const currentPlacement = placements[currentIndex];\n const {\n main,\n cross\n } = getAlignmentSides(currentPlacement, rects); // Make `computeCoords` start from the right place\n\n if (placement !== currentPlacement) {\n return {\n x,\n y,\n reset: {\n placement: placements[0]\n }\n };\n }\n\n const currentOverflows = [overflow[getBasePlacement(currentPlacement)], overflow[main], overflow[cross]];\n const allOverflows = [...((_middlewareData$autoP4 = (_middlewareData$autoP5 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP5.overflows) != null ? _middlewareData$autoP4 : []), {\n placement: currentPlacement,\n overflows: currentOverflows\n }];\n const nextPlacement = placements[currentIndex + 1]; // There are more placements to check\n\n if (nextPlacement) {\n return {\n data: {\n index: currentIndex + 1,\n overflows: allOverflows\n },\n reset: {\n placement: nextPlacement\n }\n };\n }\n\n const placementsSortedByLeastOverflow = allOverflows.slice().sort((a, b) => a.overflows[0] - b.overflows[0]);\n const placementThatFitsOnAllSides = (_placementsSortedByLe = placementsSortedByLeastOverflow.find(_ref => {\n let {\n overflows\n } = _ref;\n return overflows.every(overflow => overflow <= 0);\n })) == null ? void 0 : _placementsSortedByLe.placement;\n return {\n data: {\n skip: true\n },\n reset: {\n placement: placementThatFitsOnAllSides != null ? placementThatFitsOnAllSides : placementsSortedByLeastOverflow[0].placement\n }\n };\n }\n\n };\n};\n\nfunction getExpandedPlacements(placement) {\n const oppositePlacement = getOppositePlacement(placement);\n return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];\n}\n\nconst flip = function (options) {\n if (options === void 0) {\n options = {};\n }\n\n return {\n name: 'flip',\n options,\n\n async fn(middlewareArguments) {\n var _middlewareData$flip, _middlewareData$flip2;\n\n const {\n placement,\n middlewareData,\n rects,\n initialPlacement\n } = middlewareArguments;\n\n if ((_middlewareData$flip = middlewareData.flip) != null && _middlewareData$flip.skip) {\n return {};\n }\n\n const {\n mainAxis: checkMainAxis = true,\n crossAxis: checkCrossAxis = true,\n fallbackPlacements: specifiedFallbackPlacements,\n fallbackStrategy = 'bestFit',\n flipAlignment = true,\n ...detectOverflowOptions\n } = options;\n const basePlacement = getBasePlacement(placement);\n const isBasePlacement = basePlacement === initialPlacement;\n const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));\n const placements = [initialPlacement, ...fallbackPlacements];\n const overflow = await detectOverflow(middlewareArguments, detectOverflowOptions);\n const overflows = [];\n let overflowsData = ((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.overflows) || [];\n\n if (checkMainAxis) {\n overflows.push(overflow[basePlacement]);\n }\n\n if (checkCrossAxis) {\n const {\n main,\n cross\n } = getAlignmentSides(placement, rects);\n overflows.push(overflow[main], overflow[cross]);\n }\n\n overflowsData = [...overflowsData, {\n placement,\n overflows\n }]; // One or more sides is overflowing\n\n if (!overflows.every(side => side <= 0)) {\n var _middlewareData$flip$, _middlewareData$flip3;\n\n const nextIndex = ((_middlewareData$flip$ = (_middlewareData$flip3 = middlewareData.flip) == null ? void 0 : _middlewareData$flip3.index) != null ? _middlewareData$flip$ : 0) + 1;\n const nextPlacement = placements[nextIndex];\n\n if (nextPlacement) {\n // Try next placement and re-run the lifecycle\n return {\n data: {\n index: nextIndex,\n overflows: overflowsData\n },\n reset: {\n placement: nextPlacement\n }\n };\n }\n\n let resetPlacement = 'bottom';\n\n switch (fallbackStrategy) {\n case 'bestFit':\n {\n var _overflowsData$slice$;\n\n const placement = (_overflowsData$slice$ = overflowsData.slice().sort((a, b) => a.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0) - b.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0))[0]) == null ? void 0 : _overflowsData$slice$.placement;\n\n if (placement) {\n resetPlacement = placement;\n }\n\n break;\n }\n\n case 'initialPlacement':\n resetPlacement = initialPlacement;\n break;\n }\n\n return {\n data: {\n skip: true\n },\n reset: {\n placement: resetPlacement\n }\n };\n }\n\n return {};\n }\n\n };\n};\n\nfunction getSideOffsets(overflow, rect) {\n return {\n top: overflow.top - rect.height,\n right: overflow.right - rect.width,\n bottom: overflow.bottom - rect.height,\n left: overflow.left - rect.width\n };\n}\n\nfunction isAnySideFullyClipped(overflow) {\n return basePlacements.some(side => overflow[side] >= 0);\n}\n\nconst hide = () => ({\n name: 'hide',\n\n async fn(modifierArguments) {\n const referenceOverflow = await detectOverflow(modifierArguments, {\n elementContext: 'reference'\n });\n const floatingAltOverflow = await detectOverflow(modifierArguments, {\n altBoundary: true\n });\n const referenceHiddenOffsets = getSideOffsets(referenceOverflow, modifierArguments.rects.reference);\n const escapedOffsets = getSideOffsets(floatingAltOverflow, modifierArguments.rects.floating);\n const referenceHidden = isAnySideFullyClipped(referenceHiddenOffsets);\n const escaped = isAnySideFullyClipped(escapedOffsets);\n return {\n data: {\n referenceHidden,\n referenceHiddenOffsets,\n escaped,\n escapedOffsets\n }\n };\n }\n\n});\n\nfunction convertValueToCoords(_ref) {\n let {\n placement,\n rects,\n value\n } = _ref;\n const basePlacement = getBasePlacement(placement);\n const multiplier = ['left', 'top'].includes(basePlacement) ? -1 : 1;\n const rawValue = typeof value === 'function' ? value({ ...rects,\n placement\n }) : value;\n const {\n mainAxis,\n crossAxis\n } = typeof rawValue === 'number' ? {\n mainAxis: rawValue,\n crossAxis: 0\n } : {\n mainAxis: 0,\n crossAxis: 0,\n ...rawValue\n };\n return getMainAxisFromPlacement(basePlacement) === 'x' ? {\n x: crossAxis,\n y: mainAxis * multiplier\n } : {\n x: mainAxis * multiplier,\n y: crossAxis\n };\n}\nconst offset = function (value) {\n if (value === void 0) {\n value = 0;\n }\n\n return {\n name: 'offset',\n options: value,\n\n fn(middlewareArguments) {\n const {\n x,\n y,\n placement,\n rects\n } = middlewareArguments;\n const diffCoords = convertValueToCoords({\n placement,\n rects,\n value\n });\n return {\n x: x + diffCoords.x,\n y: y + diffCoords.y,\n data: diffCoords\n };\n }\n\n };\n};\n\nfunction getCrossAxis(axis) {\n return axis === 'x' ? 'y' : 'x';\n}\n\nconst shift = function (options) {\n if (options === void 0) {\n options = {};\n }\n\n return {\n name: 'shift',\n options,\n\n async fn(middlewareArguments) {\n const {\n x,\n y,\n placement\n } = middlewareArguments;\n const {\n mainAxis: checkMainAxis = true,\n crossAxis: checkCrossAxis = false,\n limiter = {\n fn: _ref => {\n let {\n x,\n y\n } = _ref;\n return {\n x,\n y\n };\n }\n },\n ...detectOverflowOptions\n } = options;\n const coords = {\n x,\n y\n };\n const overflow = await detectOverflow(middlewareArguments, detectOverflowOptions);\n const mainAxis = getMainAxisFromPlacement(getBasePlacement(placement));\n const crossAxis = getCrossAxis(mainAxis);\n let mainAxisCoord = coords[mainAxis];\n let crossAxisCoord = coords[crossAxis];\n\n if (checkMainAxis) {\n const minSide = mainAxis === 'y' ? 'top' : 'left';\n const maxSide = mainAxis === 'y' ? 'bottom' : 'right';\n const min = mainAxisCoord + overflow[minSide];\n const max = mainAxisCoord - overflow[maxSide];\n mainAxisCoord = within(min, mainAxisCoord, max);\n }\n\n if (checkCrossAxis) {\n const minSide = crossAxis === 'y' ? 'top' : 'left';\n const maxSide = crossAxis === 'y' ? 'bottom' : 'right';\n const min = crossAxisCoord + overflow[minSide];\n const max = crossAxisCoord - overflow[maxSide];\n crossAxisCoord = within(min, crossAxisCoord, max);\n }\n\n const limitedCoords = limiter.fn({ ...middlewareArguments,\n [mainAxis]: mainAxisCoord,\n [crossAxis]: crossAxisCoord\n });\n return { ...limitedCoords,\n data: {\n x: limitedCoords.x - x,\n y: limitedCoords.y - y\n }\n };\n }\n\n };\n};\nconst limitShift = function (options) {\n if (options === void 0) {\n options = {};\n }\n\n return {\n options,\n\n fn(middlewareArguments) {\n const {\n x,\n y,\n placement,\n rects,\n middlewareData\n } = middlewareArguments;\n const {\n offset = 0,\n mainAxis: checkMainAxis = true,\n crossAxis: checkCrossAxis = true\n } = options;\n const coords = {\n x,\n y\n };\n const mainAxis = getMainAxisFromPlacement(placement);\n const crossAxis = getCrossAxis(mainAxis);\n let mainAxisCoord = coords[mainAxis];\n let crossAxisCoord = coords[crossAxis];\n const rawOffset = typeof offset === 'function' ? offset({ ...rects,\n placement\n }) : offset;\n const computedOffset = typeof rawOffset === 'number' ? {\n mainAxis: rawOffset,\n crossAxis: 0\n } : {\n mainAxis: 0,\n crossAxis: 0,\n ...rawOffset\n };\n\n if (checkMainAxis) {\n const len = mainAxis === 'y' ? 'height' : 'width';\n const limitMin = rects.reference[mainAxis] - rects.floating[len] + computedOffset.mainAxis;\n const limitMax = rects.reference[mainAxis] + rects.reference[len] - computedOffset.mainAxis;\n\n if (mainAxisCoord < limitMin) {\n mainAxisCoord = limitMin;\n } else if (mainAxisCoord > limitMax) {\n mainAxisCoord = limitMax;\n }\n }\n\n if (checkCrossAxis) {\n var _middlewareData$offse, _middlewareData$offse2, _middlewareData$offse3, _middlewareData$offse4;\n\n const len = mainAxis === 'y' ? 'width' : 'height';\n const isOriginSide = ['top', 'left'].includes(getBasePlacement(placement));\n const limitMin = rects.reference[crossAxis] - rects.floating[len] + (isOriginSide ? (_middlewareData$offse = (_middlewareData$offse2 = middlewareData.offset) == null ? void 0 : _middlewareData$offse2[crossAxis]) != null ? _middlewareData$offse : 0 : 0) + (isOriginSide ? 0 : computedOffset.crossAxis);\n const limitMax = rects.reference[crossAxis] + rects.reference[len] + (isOriginSide ? 0 : (_middlewareData$offse3 = (_middlewareData$offse4 = middlewareData.offset) == null ? void 0 : _middlewareData$offse4[crossAxis]) != null ? _middlewareData$offse3 : 0) - (isOriginSide ? computedOffset.crossAxis : 0);\n\n if (crossAxisCoord < limitMin) {\n crossAxisCoord = limitMin;\n } else if (crossAxisCoord > limitMax) {\n crossAxisCoord = limitMax;\n }\n }\n\n return {\n [mainAxis]: mainAxisCoord,\n [crossAxis]: crossAxisCoord\n };\n }\n\n };\n};\n\nconst size = function (options) {\n if (options === void 0) {\n options = {};\n }\n\n return {\n name: 'size',\n options,\n\n async fn(middlewareArguments) {\n var _middlewareData$size;\n\n const {\n placement,\n rects,\n middlewareData\n } = middlewareArguments;\n const {\n apply,\n ...detectOverflowOptions\n } = options;\n\n if ((_middlewareData$size = middlewareData.size) != null && _middlewareData$size.skip) {\n return {};\n }\n\n const overflow = await detectOverflow(middlewareArguments, detectOverflowOptions);\n const basePlacement = getBasePlacement(placement);\n const isEnd = getAlignment(placement) === 'end';\n let heightSide;\n let widthSide;\n\n if (basePlacement === 'top' || basePlacement === 'bottom') {\n heightSide = basePlacement;\n widthSide = isEnd ? 'left' : 'right';\n } else {\n widthSide = basePlacement;\n heightSide = isEnd ? 'top' : 'bottom';\n }\n\n const xMin = max(overflow.left, 0);\n const xMax = max(overflow.right, 0);\n const yMin = max(overflow.top, 0);\n const yMax = max(overflow.bottom, 0);\n const dimensions = {\n height: rects.floating.height - (['left', 'right'].includes(placement) ? 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : max(overflow.top, overflow.bottom)) : overflow[heightSide]),\n width: rects.floating.width - (['top', 'bottom'].includes(placement) ? 2 * (xMin !== 0 || xMax !== 0 ? xMin + xMax : max(overflow.left, overflow.right)) : overflow[widthSide])\n };\n apply == null ? void 0 : apply({ ...dimensions,\n ...rects\n });\n return {\n data: {\n skip: true\n },\n reset: {\n rects: true\n }\n };\n }\n\n };\n};\n\nconst inline = function (options) {\n if (options === void 0) {\n options = {};\n }\n\n return {\n name: 'inline',\n options,\n\n async fn(middlewareArguments) {\n var _middlewareData$inlin, _await$platform$getCl;\n\n const {\n placement,\n elements,\n rects,\n platform,\n strategy,\n middlewareData\n } = middlewareArguments; // A MouseEvent's client{X,Y} coords can be up to 2 pixels off a\n // ClientRect's bounds, despite the event listener being triggered. A\n // padding of 2 seems to handle this issue.\n\n const {\n padding = 2,\n x,\n y\n } = options;\n\n if ((_middlewareData$inlin = middlewareData.inline) != null && _middlewareData$inlin.skip) {\n return {};\n }\n\n const fallback = rectToClientRect(await platform.convertOffsetParentRelativeRectToViewportRelativeRect({\n rect: rects.reference,\n offsetParent: await platform.getOffsetParent({\n element: elements.floating\n }),\n strategy\n }));\n const clientRects = Array.from((_await$platform$getCl = await (platform.getClientRects == null ? void 0 : platform.getClientRects({\n element: elements.reference\n }))) != null ? _await$platform$getCl : []);\n const paddingObject = getSideObjectFromPadding(padding);\n\n function getBoundingClientRect() {\n // There are two rects and they are disjoined\n if (clientRects.length === 2 && clientRects[0].left > clientRects[1].right && x != null && y != null) {\n var _clientRects$find;\n\n // Find the first rect in which the point is fully inside\n return (_clientRects$find = clientRects.find(rect => x > rect.left - paddingObject.left && x < rect.right + paddingObject.right && y > rect.top - paddingObject.top && y < rect.bottom + paddingObject.bottom)) != null ? _clientRects$find : fallback;\n } // There are 2 or more connected rects\n\n\n if (clientRects.length >= 2) {\n if (getMainAxisFromPlacement(placement) === 'x') {\n const firstRect = clientRects[0];\n const lastRect = clientRects[clientRects.length - 1];\n const isTop = getBasePlacement(placement) === 'top';\n const top = firstRect.top;\n const bottom = lastRect.bottom;\n const left = isTop ? firstRect.left : lastRect.left;\n const right = isTop ? firstRect.right : lastRect.right;\n const width = right - left;\n const height = bottom - top;\n return {\n top,\n bottom,\n left,\n right,\n width,\n height,\n x: left,\n y: top\n };\n }\n\n const isLeftPlacement = getBasePlacement(placement) === 'left';\n const maxRight = max(...clientRects.map(rect => rect.right));\n const minLeft = min(...clientRects.map(rect => rect.left));\n const measureRects = clientRects.filter(rect => isLeftPlacement ? rect.left === minLeft : rect.right === maxRight);\n const top = measureRects[0].top;\n const bottom = measureRects[measureRects.length - 1].bottom;\n const left = minLeft;\n const right = maxRight;\n const width = right - left;\n const height = bottom - top;\n return {\n top,\n bottom,\n left,\n right,\n width,\n height,\n x: left,\n y: top\n };\n }\n\n return fallback;\n }\n\n return {\n data: {\n skip: true\n },\n reset: {\n rects: await platform.getElementRects({\n reference: {\n getBoundingClientRect\n },\n floating: elements.floating,\n strategy\n })\n }\n };\n }\n\n };\n};\n\nexport { arrow, autoPlacement, computePosition, detectOverflow, flip, hide, inline, limitShift, offset, rectToClientRect, shift, size };\n","import { rectToClientRect, computePosition as computePosition$1 } from '@floating-ui/core';\nexport { arrow, autoPlacement, detectOverflow, flip, hide, inline, limitShift, offset, shift, size } from '@floating-ui/core';\n\nfunction isWindow(value) {\n return (value == null ? void 0 : value.toString()) === '[object Window]';\n}\nfunction getWindow(node) {\n if (node == null) {\n return window;\n }\n\n if (!isWindow(node)) {\n const ownerDocument = node.ownerDocument;\n return ownerDocument ? ownerDocument.defaultView || window : window;\n }\n\n return node;\n}\n\nfunction getComputedStyle$1(element) {\n return getWindow(element).getComputedStyle(element);\n}\n\nfunction getNodeName(node) {\n return isWindow(node) ? '' : node ? (node.nodeName || '').toLowerCase() : '';\n}\n\nfunction isHTMLElement(value) {\n return value instanceof getWindow(value).HTMLElement;\n}\nfunction isElement(value) {\n return value instanceof getWindow(value).Element;\n}\nfunction isNode(value) {\n return value instanceof getWindow(value).Node;\n}\nfunction isShadowRoot(node) {\n const OwnElement = getWindow(node).ShadowRoot;\n return node instanceof OwnElement || node instanceof ShadowRoot;\n}\nfunction isScrollParent(element) {\n // Firefox wants us to check `-x` and `-y` variations as well\n const {\n overflow,\n overflowX,\n overflowY\n } = getComputedStyle$1(element);\n return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);\n}\nfunction isTableElement(element) {\n return ['table', 'td', 'th'].includes(getNodeName(element));\n}\nfunction isContainingBlock(element) {\n // TODO: Try and use feature detection here instead\n const isFirefox = navigator.userAgent.toLowerCase().includes('firefox');\n const css = getComputedStyle$1(element); // This is non-exhaustive but covers the most common CSS properties that\n // create a containing block.\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n\n return css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].includes(css.willChange) || isFirefox && css.willChange === 'filter' || isFirefox && (css.filter ? css.filter !== 'none' : false);\n}\n\nconst min = Math.min;\nconst max = Math.max;\nconst round = Math.round;\n\nfunction getBoundingClientRect(element, includeScale) {\n if (includeScale === void 0) {\n includeScale = false;\n }\n\n const clientRect = element.getBoundingClientRect();\n let scaleX = 1;\n let scaleY = 1;\n\n if (includeScale && isHTMLElement(element)) {\n scaleX = element.offsetWidth > 0 ? round(clientRect.width) / element.offsetWidth || 1 : 1;\n scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;\n }\n\n return {\n width: clientRect.width / scaleX,\n height: clientRect.height / scaleY,\n top: clientRect.top / scaleY,\n right: clientRect.right / scaleX,\n bottom: clientRect.bottom / scaleY,\n left: clientRect.left / scaleX,\n x: clientRect.left / scaleX,\n y: clientRect.top / scaleY\n };\n}\n\nfunction getDocumentElement(node) {\n return ((isNode(node) ? node.ownerDocument : node.document) || window.document).documentElement;\n}\n\nfunction getNodeScroll(element) {\n if (isWindow(element)) {\n return {\n scrollLeft: element.pageXOffset,\n scrollTop: element.pageYOffset\n };\n }\n\n return {\n scrollLeft: element.scrollLeft,\n scrollTop: element.scrollTop\n };\n}\n\nfunction getWindowScrollBarX(element) {\n // If has a CSS width greater than the viewport, then this will be\n // incorrect for RTL.\n return getBoundingClientRect(getDocumentElement(element)).left + getNodeScroll(element).scrollLeft;\n}\n\nfunction isScaled(element) {\n const rect = getBoundingClientRect(element);\n return round(rect.width) !== element.offsetWidth || round(rect.height) !== element.offsetHeight;\n}\n\nfunction getRectRelativeToOffsetParent(element, offsetParent, strategy) {\n const isOffsetParentAnElement = isHTMLElement(offsetParent);\n const documentElement = getDocumentElement(offsetParent);\n const rect = getBoundingClientRect(element, isOffsetParentAnElement && isScaled(offsetParent));\n let scroll = {\n scrollLeft: 0,\n scrollTop: 0\n };\n const offsets = {\n x: 0,\n y: 0\n };\n\n if (isOffsetParentAnElement || !isOffsetParentAnElement && strategy !== 'fixed') {\n if (getNodeName(offsetParent) !== 'body' || isScrollParent(documentElement)) {\n scroll = getNodeScroll(offsetParent);\n }\n\n if (isHTMLElement(offsetParent)) {\n const offsetRect = getBoundingClientRect(offsetParent, true);\n offsets.x = offsetRect.x + offsetParent.clientLeft;\n offsets.y = offsetRect.y + offsetParent.clientTop;\n } else if (documentElement) {\n offsets.x = getWindowScrollBarX(documentElement);\n }\n }\n\n return {\n x: rect.left + scroll.scrollLeft - offsets.x,\n y: rect.top + scroll.scrollTop - offsets.y,\n width: rect.width,\n height: rect.height\n };\n}\n\nfunction getParentNode(node) {\n if (getNodeName(node) === 'html') {\n return node;\n }\n\n return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle\n // @ts-ignore\n node.assignedSlot || // step into the shadow DOM of the parent of a slotted node\n node.parentNode || ( // DOM Element detected\n isShadowRoot(node) ? node.host : null) || // ShadowRoot detected\n getDocumentElement(node) // fallback\n\n );\n}\n\nfunction getTrueOffsetParent(element) {\n if (!isHTMLElement(element) || getComputedStyle(element).position === 'fixed') {\n return null;\n }\n\n return element.offsetParent;\n}\n\nfunction getContainingBlock(element) {\n let currentNode = getParentNode(element);\n\n while (isHTMLElement(currentNode) && !['html', 'body'].includes(getNodeName(currentNode))) {\n if (isContainingBlock(currentNode)) {\n return currentNode;\n } else {\n currentNode = currentNode.parentNode;\n }\n }\n\n return null;\n} // Gets the closest ancestor positioned element. Handles some edge cases,\n// such as table ancestors and cross browser bugs.\n\n\nfunction getOffsetParent(element) {\n const window = getWindow(element);\n let offsetParent = getTrueOffsetParent(element);\n\n while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === 'static') {\n offsetParent = getTrueOffsetParent(offsetParent);\n }\n\n if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle(offsetParent).position === 'static' && !isContainingBlock(offsetParent))) {\n return window;\n }\n\n return offsetParent || getContainingBlock(element) || window;\n}\n\nfunction getDimensions(element) {\n return {\n width: element.offsetWidth,\n height: element.offsetHeight\n };\n}\n\nfunction convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {\n let {\n rect,\n offsetParent,\n strategy\n } = _ref;\n const isOffsetParentAnElement = isHTMLElement(offsetParent);\n const documentElement = getDocumentElement(offsetParent);\n\n if (offsetParent === documentElement) {\n return rect;\n }\n\n let scroll = {\n scrollLeft: 0,\n scrollTop: 0\n };\n const offsets = {\n x: 0,\n y: 0\n };\n\n if (isOffsetParentAnElement || !isOffsetParentAnElement && strategy !== 'fixed') {\n if (getNodeName(offsetParent) !== 'body' || isScrollParent(documentElement)) {\n scroll = getNodeScroll(offsetParent);\n }\n\n if (isHTMLElement(offsetParent)) {\n const offsetRect = getBoundingClientRect(offsetParent, true);\n offsets.x = offsetRect.x + offsetParent.clientLeft;\n offsets.y = offsetRect.y + offsetParent.clientTop;\n } // This doesn't appear to be need to be negated.\n // else if (documentElement) {\n // offsets.x = getWindowScrollBarX(documentElement);\n // }\n\n }\n\n return { ...rect,\n x: rect.x - scroll.scrollLeft + offsets.x,\n y: rect.y - scroll.scrollTop + offsets.y\n };\n}\n\nfunction getViewportRect(element) {\n const win = getWindow(element);\n const html = getDocumentElement(element);\n const visualViewport = win.visualViewport;\n let width = html.clientWidth;\n let height = html.clientHeight;\n let x = 0;\n let y = 0;\n\n if (visualViewport) {\n width = visualViewport.width;\n height = visualViewport.height; // Uses Layout Viewport (like Chrome; Safari does not currently)\n // In Chrome, it returns a value very close to 0 (+/-) but contains rounding\n // errors due to floating point numbers, so we need to check precision.\n // Safari returns a number <= 0, usually < -1 when pinch-zoomed\n\n if (Math.abs(win.innerWidth / visualViewport.scale - visualViewport.width) < 0.01) {\n x = visualViewport.offsetLeft;\n y = visualViewport.offsetTop;\n }\n }\n\n return {\n width,\n height,\n x,\n y\n };\n}\n\n// of the `` and `` rect bounds if horizontally scrollable\n\nfunction getDocumentRect(element) {\n var _element$ownerDocumen;\n\n const html = getDocumentElement(element);\n const scroll = getNodeScroll(element);\n const body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;\n const width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);\n const height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);\n let x = -scroll.scrollLeft + getWindowScrollBarX(element);\n const y = -scroll.scrollTop;\n\n if (getComputedStyle$1(body || html).direction === 'rtl') {\n x += max(html.clientWidth, body ? body.clientWidth : 0) - width;\n }\n\n return {\n width,\n height,\n x,\n y\n };\n}\n\nfunction getScrollParent(node) {\n if (['html', 'body', '#document'].includes(getNodeName(node))) {\n // @ts-ignore assume body is always available\n return node.ownerDocument.body;\n }\n\n if (isHTMLElement(node) && isScrollParent(node)) {\n return node;\n }\n\n return getScrollParent(getParentNode(node));\n}\n\nfunction getScrollParents(node, list) {\n var _node$ownerDocument;\n\n if (list === void 0) {\n list = [];\n }\n\n const scrollParent = getScrollParent(node);\n const isBody = scrollParent === ((_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.body);\n const win = getWindow(scrollParent);\n const target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;\n const updatedList = list.concat(target);\n return isBody ? updatedList : // @ts-ignore: isBody tells us target will be an HTMLElement here\n updatedList.concat(getScrollParents(getParentNode(target)));\n}\n\nfunction contains(parent, child) {\n const rootNode = child.getRootNode == null ? void 0 : child.getRootNode(); // First, attempt with faster native method\n\n if (parent.contains(child)) {\n return true;\n } // then fallback to custom implementation with Shadow DOM support\n else if (rootNode && isShadowRoot(rootNode)) {\n let next = child;\n\n do {\n // use `===` replace node.isSameNode()\n if (next && parent === next) {\n return true;\n } // @ts-ignore: need a better way to handle this...\n\n\n next = next.parentNode || next.host;\n } while (next);\n }\n\n return false;\n}\n\nfunction getInnerBoundingClientRect(element) {\n const clientRect = getBoundingClientRect(element);\n const top = clientRect.top + element.clientTop;\n const left = clientRect.left + element.clientLeft;\n return {\n top,\n left,\n x: left,\n y: top,\n right: left + element.clientWidth,\n bottom: top + element.clientHeight,\n width: element.clientWidth,\n height: element.clientHeight\n };\n}\n\nfunction getClientRectFromClippingParent(element, clippingParent) {\n if (clippingParent === 'viewport') {\n return rectToClientRect(getViewportRect(element));\n }\n\n if (isElement(clippingParent)) {\n return getInnerBoundingClientRect(clippingParent);\n }\n\n return rectToClientRect(getDocumentRect(getDocumentElement(element)));\n} // A \"clipping parent\" is an overflowable container with the characteristic of\n// clipping (or hiding) overflowing elements with a position different from\n// `initial`\n\n\nfunction getClippingParents(element) {\n const clippingParents = getScrollParents(getParentNode(element));\n const canEscapeClipping = ['absolute', 'fixed'].includes(getComputedStyle$1(element).position);\n const clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;\n\n if (!isElement(clipperElement)) {\n return [];\n } // @ts-ignore isElement check ensures we return Array\n\n\n return clippingParents.filter(clippingParent => isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body');\n} // Gets the maximum area that the element is visible in due to any number of\n// clipping parents\n\n\nfunction getClippingClientRect(_ref) {\n let {\n element,\n boundary,\n rootBoundary\n } = _ref;\n const mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);\n const clippingParents = [...mainClippingParents, rootBoundary];\n const firstClippingParent = clippingParents[0];\n const clippingRect = clippingParents.reduce((accRect, clippingParent) => {\n const rect = getClientRectFromClippingParent(element, clippingParent);\n accRect.top = max(rect.top, accRect.top);\n accRect.right = min(rect.right, accRect.right);\n accRect.bottom = min(rect.bottom, accRect.bottom);\n accRect.left = max(rect.left, accRect.left);\n return accRect;\n }, getClientRectFromClippingParent(element, firstClippingParent));\n clippingRect.width = clippingRect.right - clippingRect.left;\n clippingRect.height = clippingRect.bottom - clippingRect.top;\n clippingRect.x = clippingRect.left;\n clippingRect.y = clippingRect.top;\n return clippingRect;\n}\n\nconst platform = {\n getElementRects: _ref => {\n let {\n reference,\n floating,\n strategy\n } = _ref;\n return {\n reference: getRectRelativeToOffsetParent(reference, getOffsetParent(floating), strategy),\n floating: { ...getDimensions(floating),\n x: 0,\n y: 0\n }\n };\n },\n convertOffsetParentRelativeRectToViewportRelativeRect: args => convertOffsetParentRelativeRectToViewportRelativeRect(args),\n getOffsetParent: _ref2 => {\n let {\n element\n } = _ref2;\n return getOffsetParent(element);\n },\n isElement: value => isElement(value),\n getDocumentElement: _ref3 => {\n let {\n element\n } = _ref3;\n return getDocumentElement(element);\n },\n getClippingClientRect: args => getClippingClientRect(args),\n getDimensions: _ref4 => {\n let {\n element\n } = _ref4;\n return getDimensions(element);\n },\n getClientRects: _ref5 => {\n let {\n element\n } = _ref5;\n return element.getClientRects();\n }\n};\n\nconst computePosition = (reference, floating, options) => computePosition$1(reference, floating, {\n platform,\n ...options\n});\n\nexport { computePosition, getScrollParents };\n","var __defProp = Object.defineProperty;\nvar __defProps = Object.defineProperties;\nvar __getOwnPropDescs = Object.getOwnPropertyDescriptors;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nvar __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));\nvar __objRest = (source, exclude) => {\n var target = {};\n for (var prop in source)\n if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)\n target[prop] = source[prop];\n if (source != null && __getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(source)) {\n if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))\n target[prop] = source[prop];\n }\n return target;\n};\nimport { offset, autoPlacement, shift, flip, arrow, size, computePosition, getScrollParents } from \"@floating-ui/dom\";\nimport Vue from \"vue\";\nfunction assign(to, from) {\n for (const key in from) {\n if (Object.prototype.hasOwnProperty.call(from, key)) {\n if (typeof from[key] === \"object\" && to[key]) {\n assign(to[key], from[key]);\n } else {\n to[key] = from[key];\n }\n }\n }\n}\nconst config = {\n disabled: false,\n distance: 5,\n skidding: 0,\n container: \"body\",\n boundary: void 0,\n instantMove: false,\n disposeTimeout: 5e3,\n popperTriggers: [],\n strategy: \"absolute\",\n preventOverflow: true,\n flip: true,\n shift: true,\n overflowPadding: 0,\n arrowPadding: 0,\n arrowOverflow: true,\n themes: {\n tooltip: {\n placement: \"top\",\n triggers: [\"hover\", \"focus\", \"touch\"],\n hideTriggers: (events) => [...events, \"click\"],\n delay: {\n show: 200,\n hide: 0\n },\n handleResize: false,\n html: false,\n loadingContent: \"...\"\n },\n dropdown: {\n placement: \"bottom\",\n triggers: [\"click\"],\n delay: 0,\n handleResize: true,\n autoHide: true\n },\n menu: {\n $extend: \"dropdown\",\n triggers: [\"hover\", \"focus\"],\n popperTriggers: [\"hover\", \"focus\"],\n delay: {\n show: 0,\n hide: 400\n }\n }\n }\n};\nfunction getDefaultConfig(theme, key) {\n let themeConfig = config.themes[theme] || {};\n let value;\n do {\n value = themeConfig[key];\n if (typeof value === \"undefined\") {\n if (themeConfig.$extend) {\n themeConfig = config.themes[themeConfig.$extend] || {};\n } else {\n themeConfig = null;\n value = config[key];\n }\n } else {\n themeConfig = null;\n }\n } while (themeConfig);\n return value;\n}\nfunction getThemeClasses(theme) {\n const result = [theme];\n let themeConfig = config.themes[theme] || {};\n do {\n if (themeConfig.$extend && !themeConfig.$resetCss) {\n result.push(themeConfig.$extend);\n themeConfig = config.themes[themeConfig.$extend] || {};\n } else {\n themeConfig = null;\n }\n } while (themeConfig);\n return result.map((c) => `v-popper--theme-${c}`);\n}\nfunction getAllParentThemes(theme) {\n const result = [theme];\n let themeConfig = config.themes[theme] || {};\n do {\n if (themeConfig.$extend) {\n result.push(themeConfig.$extend);\n themeConfig = config.themes[themeConfig.$extend] || {};\n } else {\n themeConfig = null;\n }\n } while (themeConfig);\n return result;\n}\nvar vueResize = \"\";\nlet supportsPassive = false;\nif (typeof window !== \"undefined\") {\n supportsPassive = false;\n try {\n const opts = Object.defineProperty({}, \"passive\", {\n get() {\n supportsPassive = true;\n }\n });\n window.addEventListener(\"test\", null, opts);\n } catch (e) {\n }\n}\nlet isIOS = false;\nif (typeof window !== \"undefined\" && typeof navigator !== \"undefined\") {\n isIOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;\n}\nconst placements = [\"auto\", \"top\", \"bottom\", \"left\", \"right\"].reduce((acc, base) => acc.concat([\n base,\n `${base}-start`,\n `${base}-end`\n]), []);\nconst SHOW_EVENT_MAP = {\n hover: \"mouseenter\",\n focus: \"focus\",\n click: \"click\",\n touch: \"touchstart\"\n};\nconst HIDE_EVENT_MAP = {\n hover: \"mouseleave\",\n focus: \"blur\",\n click: \"click\",\n touch: \"touchend\"\n};\nfunction removeFromArray(array, item) {\n const index = array.indexOf(item);\n if (index !== -1) {\n array.splice(index, 1);\n }\n}\nfunction nextFrame() {\n return new Promise((resolve) => requestAnimationFrame(() => {\n requestAnimationFrame(resolve);\n }));\n}\nconst shownPoppers = [];\nlet hidingPopper = null;\nconst shownPoppersByTheme = {};\nfunction getShownPoppersByTheme(theme) {\n let list = shownPoppersByTheme[theme];\n if (!list) {\n list = shownPoppersByTheme[theme] = [];\n }\n return list;\n}\nlet Element = function() {\n};\nif (typeof window !== \"undefined\") {\n Element = window.Element;\n}\nfunction defaultPropFactory(prop) {\n return function() {\n const props = this.$props;\n return getDefaultConfig(props.theme, prop);\n };\n}\nconst PROVIDE_KEY = \"__floating-vue__popper\";\nvar PrivatePopper = () => ({\n name: \"VPopper\",\n props: {\n theme: {\n type: String,\n required: true\n },\n targetNodes: {\n type: Function,\n required: true\n },\n referenceNode: {\n type: Function,\n required: true\n },\n popperNode: {\n type: Function,\n required: true\n },\n shown: {\n type: Boolean,\n default: false\n },\n showGroup: {\n type: String,\n default: null\n },\n ariaId: {\n default: null\n },\n disabled: {\n type: Boolean,\n default: defaultPropFactory(\"disabled\")\n },\n positioningDisabled: {\n type: Boolean,\n default: defaultPropFactory(\"positioningDisabled\")\n },\n placement: {\n type: String,\n default: defaultPropFactory(\"placement\"),\n validator: (value) => placements.includes(value)\n },\n delay: {\n type: [String, Number, Object],\n default: defaultPropFactory(\"delay\")\n },\n distance: {\n type: [Number, String],\n default: defaultPropFactory(\"distance\")\n },\n skidding: {\n type: [Number, String],\n default: defaultPropFactory(\"skidding\")\n },\n triggers: {\n type: Array,\n default: defaultPropFactory(\"triggers\")\n },\n showTriggers: {\n type: [Array, Function],\n default: defaultPropFactory(\"showTriggers\")\n },\n hideTriggers: {\n type: [Array, Function],\n default: defaultPropFactory(\"hideTriggers\")\n },\n popperTriggers: {\n type: Array,\n default: defaultPropFactory(\"popperTriggers\")\n },\n popperShowTriggers: {\n type: [Array, Function],\n default: defaultPropFactory(\"popperShowTriggers\")\n },\n popperHideTriggers: {\n type: [Array, Function],\n default: defaultPropFactory(\"popperHideTriggers\")\n },\n container: {\n type: [String, Object, Element, Boolean],\n default: defaultPropFactory(\"container\")\n },\n boundary: {\n type: [String, Element],\n default: defaultPropFactory(\"boundary\")\n },\n strategy: {\n type: String,\n validator: (value) => [\"absolute\", \"fixed\"].includes(value),\n default: defaultPropFactory(\"strategy\")\n },\n autoHide: {\n type: [Boolean, Function],\n default: defaultPropFactory(\"autoHide\")\n },\n handleResize: {\n type: Boolean,\n default: defaultPropFactory(\"handleResize\")\n },\n instantMove: {\n type: Boolean,\n default: defaultPropFactory(\"instantMove\")\n },\n eagerMount: {\n type: Boolean,\n default: defaultPropFactory(\"eagerMount\")\n },\n popperClass: {\n type: [String, Array, Object],\n default: defaultPropFactory(\"popperClass\")\n },\n computeTransformOrigin: {\n type: Boolean,\n default: defaultPropFactory(\"computeTransformOrigin\")\n },\n autoMinSize: {\n type: Boolean,\n default: defaultPropFactory(\"autoMinSize\")\n },\n autoSize: {\n type: [Boolean, String],\n default: defaultPropFactory(\"autoSize\")\n },\n autoMaxSize: {\n type: Boolean,\n default: defaultPropFactory(\"autoMaxSize\")\n },\n autoBoundaryMaxSize: {\n type: Boolean,\n default: defaultPropFactory(\"autoBoundaryMaxSize\")\n },\n preventOverflow: {\n type: Boolean,\n default: defaultPropFactory(\"preventOverflow\")\n },\n overflowPadding: {\n type: [Number, String],\n default: defaultPropFactory(\"overflowPadding\")\n },\n arrowPadding: {\n type: [Number, String],\n default: defaultPropFactory(\"arrowPadding\")\n },\n arrowOverflow: {\n type: Boolean,\n default: defaultPropFactory(\"arrowOverflow\")\n },\n flip: {\n type: Boolean,\n default: defaultPropFactory(\"flip\")\n },\n shift: {\n type: Boolean,\n default: defaultPropFactory(\"shift\")\n },\n shiftCrossAxis: {\n type: Boolean,\n default: defaultPropFactory(\"shiftCrossAxis\")\n },\n noAutoFocus: {\n type: Boolean,\n default: defaultPropFactory(\"noAutoFocus\")\n }\n },\n provide() {\n return {\n [PROVIDE_KEY]: {\n parentPopper: this\n }\n };\n },\n inject: {\n [PROVIDE_KEY]: { default: null }\n },\n data() {\n return {\n isShown: false,\n isMounted: false,\n skipTransition: false,\n classes: {\n showFrom: false,\n showTo: false,\n hideFrom: false,\n hideTo: true\n },\n result: {\n x: 0,\n y: 0,\n placement: \"\",\n strategy: this.strategy,\n arrow: {\n x: 0,\n y: 0,\n centerOffset: 0\n },\n transformOrigin: null\n },\n shownChildren: /* @__PURE__ */ new Set(),\n lastAutoHide: true\n };\n },\n computed: {\n popperId() {\n return this.ariaId != null ? this.ariaId : this.randomId;\n },\n shouldMountContent() {\n return this.eagerMount || this.isMounted;\n },\n slotData() {\n return {\n popperId: this.popperId,\n isShown: this.isShown,\n shouldMountContent: this.shouldMountContent,\n skipTransition: this.skipTransition,\n autoHide: typeof this.autoHide === \"function\" ? this.lastAutoHide : this.autoHide,\n show: this.show,\n hide: this.hide,\n handleResize: this.handleResize,\n onResize: this.onResize,\n classes: __spreadProps(__spreadValues({}, this.classes), {\n popperClass: this.popperClass\n }),\n result: this.positioningDisabled ? null : this.result\n };\n },\n parentPopper() {\n var _a;\n return (_a = this[PROVIDE_KEY]) == null ? void 0 : _a.parentPopper;\n },\n hasPopperShowTriggerHover() {\n var _a, _b;\n return ((_a = this.popperTriggers) == null ? void 0 : _a.includes(\"hover\")) || ((_b = this.popperShowTriggers) == null ? void 0 : _b.includes(\"hover\"));\n }\n },\n watch: __spreadValues(__spreadValues({\n shown: \"$_autoShowHide\",\n disabled(value) {\n if (value) {\n this.dispose();\n } else {\n this.init();\n }\n },\n async container() {\n if (this.isShown) {\n this.$_ensureTeleport();\n await this.$_computePosition();\n }\n }\n }, [\n \"triggers\",\n \"positioningDisabled\"\n ].reduce((acc, prop) => {\n acc[prop] = \"$_refreshListeners\";\n return acc;\n }, {})), [\n \"placement\",\n \"distance\",\n \"skidding\",\n \"boundary\",\n \"strategy\",\n \"overflowPadding\",\n \"arrowPadding\",\n \"preventOverflow\",\n \"shift\",\n \"shiftCrossAxis\",\n \"flip\"\n ].reduce((acc, prop) => {\n acc[prop] = \"$_computePosition\";\n return acc;\n }, {})),\n created() {\n this.$_isDisposed = true;\n this.randomId = `popper_${[Math.random(), Date.now()].map((n) => n.toString(36).substring(2, 10)).join(\"_\")}`;\n if (this.autoMinSize) {\n console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize=\"min\"` instead.');\n }\n if (this.autoMaxSize) {\n console.warn(\"[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.\");\n }\n },\n mounted() {\n this.init();\n this.$_detachPopperNode();\n },\n activated() {\n this.$_autoShowHide();\n },\n deactivated() {\n this.hide();\n },\n beforeDestroy() {\n this.dispose();\n },\n methods: {\n show({ event = null, skipDelay = false, force = false } = {}) {\n var _a, _b;\n if (((_a = this.parentPopper) == null ? void 0 : _a.lockedChild) && this.parentPopper.lockedChild !== this)\n return;\n this.$_pendingHide = false;\n if (force || !this.disabled) {\n if (((_b = this.parentPopper) == null ? void 0 : _b.lockedChild) === this) {\n this.parentPopper.lockedChild = null;\n }\n this.$_scheduleShow(event, skipDelay);\n this.$emit(\"show\");\n this.$_showFrameLocked = true;\n requestAnimationFrame(() => {\n this.$_showFrameLocked = false;\n });\n }\n this.$emit(\"update:shown\", true);\n },\n hide({ event = null, skipDelay = false, skipAiming = false } = {}) {\n var _a;\n if (this.$_hideInProgress)\n return;\n if (this.shownChildren.size > 0) {\n this.$_pendingHide = true;\n return;\n }\n if (!skipAiming && this.hasPopperShowTriggerHover && this.$_isAimingPopper()) {\n if (this.parentPopper) {\n this.parentPopper.lockedChild = this;\n clearTimeout(this.parentPopper.lockedChildTimer);\n this.parentPopper.lockedChildTimer = setTimeout(() => {\n if (this.parentPopper.lockedChild === this) {\n this.parentPopper.lockedChild.hide({ skipDelay });\n this.parentPopper.lockedChild = null;\n }\n }, 1e3);\n }\n return;\n }\n if (((_a = this.parentPopper) == null ? void 0 : _a.lockedChild) === this) {\n this.parentPopper.lockedChild = null;\n }\n this.$_pendingHide = false;\n this.$_scheduleHide(event, skipDelay);\n this.$emit(\"hide\");\n this.$emit(\"update:shown\", false);\n },\n init() {\n if (!this.$_isDisposed)\n return;\n this.$_isDisposed = false;\n this.isMounted = false;\n this.$_events = [];\n this.$_preventShow = false;\n this.$_referenceNode = this.referenceNode();\n this.$_targetNodes = this.targetNodes().filter((e) => e.nodeType === e.ELEMENT_NODE);\n this.$_popperNode = this.popperNode();\n this.$_innerNode = this.$_popperNode.querySelector(\".v-popper__inner\");\n this.$_arrowNode = this.$_popperNode.querySelector(\".v-popper__arrow-container\");\n this.$_swapTargetAttrs(\"title\", \"data-original-title\");\n this.$_detachPopperNode();\n if (this.triggers.length) {\n this.$_addEventListeners();\n }\n if (this.shown) {\n this.show();\n }\n },\n dispose() {\n if (this.$_isDisposed)\n return;\n this.$_isDisposed = true;\n this.$_removeEventListeners();\n this.hide({ skipDelay: true });\n this.$_detachPopperNode();\n this.isMounted = false;\n this.isShown = false;\n this.$_updateParentShownChildren(false);\n this.$_swapTargetAttrs(\"data-original-title\", \"title\");\n this.$emit(\"dispose\");\n },\n async onResize() {\n if (this.isShown) {\n await this.$_computePosition();\n this.$emit(\"resize\");\n }\n },\n async $_computePosition() {\n var _a;\n if (this.$_isDisposed || this.positioningDisabled)\n return;\n const options2 = {\n strategy: this.strategy,\n middleware: []\n };\n if (this.distance || this.skidding) {\n options2.middleware.push(offset({\n mainAxis: this.distance,\n crossAxis: this.skidding\n }));\n }\n const isPlacementAuto = this.placement.startsWith(\"auto\");\n if (isPlacementAuto) {\n options2.middleware.push(autoPlacement({\n alignment: (_a = this.placement.split(\"-\")[1]) != null ? _a : \"\"\n }));\n } else {\n options2.placement = this.placement;\n }\n if (this.preventOverflow) {\n if (this.shift) {\n options2.middleware.push(shift({\n padding: this.overflowPadding,\n boundary: this.boundary,\n crossAxis: this.shiftCrossAxis\n }));\n }\n if (!isPlacementAuto && this.flip) {\n options2.middleware.push(flip({\n padding: this.overflowPadding,\n boundary: this.boundary\n }));\n }\n }\n options2.middleware.push(arrow({\n element: this.$_arrowNode,\n padding: this.arrowPadding\n }));\n if (this.arrowOverflow) {\n options2.middleware.push({\n name: \"arrowOverflow\",\n fn: ({ placement, rects, middlewareData }) => {\n let overflow;\n const { centerOffset } = middlewareData.arrow;\n if (placement.startsWith(\"top\") || placement.startsWith(\"bottom\")) {\n overflow = Math.abs(centerOffset) > rects.reference.width / 2;\n } else {\n overflow = Math.abs(centerOffset) > rects.reference.height / 2;\n }\n return {\n data: {\n overflow\n }\n };\n }\n });\n }\n if (this.autoMinSize || this.autoSize) {\n const autoSize = this.autoSize ? this.autoSize : this.autoMinSize ? \"min\" : null;\n options2.middleware.push({\n name: \"autoSize\",\n fn: ({ rects, placement, middlewareData }) => {\n var _a2;\n if ((_a2 = middlewareData.autoSize) == null ? void 0 : _a2.skip) {\n return {};\n }\n let width;\n let height;\n if (placement.startsWith(\"top\") || placement.startsWith(\"bottom\")) {\n width = rects.reference.width;\n } else {\n height = rects.reference.height;\n }\n this.$_innerNode.style[autoSize === \"min\" ? \"minWidth\" : autoSize === \"max\" ? \"maxWidth\" : \"width\"] = width != null ? `${width}px` : null;\n this.$_innerNode.style[autoSize === \"min\" ? \"minHeight\" : autoSize === \"max\" ? \"maxHeight\" : \"height\"] = height != null ? `${height}px` : null;\n return {\n data: {\n skip: true\n },\n reset: {\n rects: true\n }\n };\n }\n });\n }\n if (this.autoMaxSize || this.autoBoundaryMaxSize) {\n this.$_innerNode.style.maxWidth = null;\n this.$_innerNode.style.maxHeight = null;\n options2.middleware.push(size({\n boundary: this.boundary,\n padding: this.overflowPadding,\n apply: ({ width, height }) => {\n this.$_innerNode.style.maxWidth = width != null ? `${width}px` : null;\n this.$_innerNode.style.maxHeight = height != null ? `${height}px` : null;\n }\n }));\n }\n const data = await computePosition(this.$_referenceNode, this.$_popperNode, options2);\n Object.assign(this.result, {\n x: data.x,\n y: data.y,\n placement: data.placement,\n strategy: data.strategy,\n arrow: __spreadValues(__spreadValues({}, data.middlewareData.arrow), data.middlewareData.arrowOverflow)\n });\n },\n $_scheduleShow(event = null, skipDelay = false) {\n this.$_updateParentShownChildren(true);\n this.$_hideInProgress = false;\n clearTimeout(this.$_scheduleTimer);\n if (hidingPopper && this.instantMove && hidingPopper.instantMove && hidingPopper !== this.parentPopper) {\n hidingPopper.$_applyHide(true);\n this.$_applyShow(true);\n return;\n }\n if (skipDelay) {\n this.$_applyShow();\n } else {\n this.$_scheduleTimer = setTimeout(this.$_applyShow.bind(this), this.$_computeDelay(\"show\"));\n }\n },\n $_scheduleHide(event = null, skipDelay = false) {\n if (this.shownChildren.size > 0) {\n this.$_pendingHide = true;\n return;\n }\n this.$_updateParentShownChildren(false);\n this.$_hideInProgress = true;\n clearTimeout(this.$_scheduleTimer);\n if (this.isShown) {\n hidingPopper = this;\n }\n if (skipDelay) {\n this.$_applyHide();\n } else {\n this.$_scheduleTimer = setTimeout(this.$_applyHide.bind(this), this.$_computeDelay(\"hide\"));\n }\n },\n $_computeDelay(type) {\n const delay = this.delay;\n return parseInt(delay && delay[type] || delay || 0);\n },\n async $_applyShow(skipTransition = false) {\n clearTimeout(this.$_disposeTimer);\n clearTimeout(this.$_scheduleTimer);\n this.skipTransition = skipTransition;\n if (this.isShown) {\n return;\n }\n this.$_ensureTeleport();\n await nextFrame();\n await this.$_computePosition();\n await this.$_applyShowEffect();\n if (!this.positioningDisabled) {\n this.$_registerEventListeners([\n ...getScrollParents(this.$_referenceNode),\n ...getScrollParents(this.$_popperNode)\n ], \"scroll\", () => {\n this.$_computePosition();\n });\n }\n },\n async $_applyShowEffect() {\n if (this.$_hideInProgress)\n return;\n if (this.computeTransformOrigin) {\n const bounds = this.$_referenceNode.getBoundingClientRect();\n const popperWrapper = this.$_popperNode.querySelector(\".v-popper__wrapper\");\n const parentBounds = popperWrapper.parentNode.getBoundingClientRect();\n const x = bounds.x + bounds.width / 2 - (parentBounds.left + popperWrapper.offsetLeft);\n const y = bounds.y + bounds.height / 2 - (parentBounds.top + popperWrapper.offsetTop);\n this.result.transformOrigin = `${x}px ${y}px`;\n }\n this.isShown = true;\n this.$_applyAttrsToTarget({\n \"aria-describedby\": this.popperId,\n \"data-popper-shown\": \"\"\n });\n const showGroup = this.showGroup;\n if (showGroup) {\n let popover;\n for (let i = 0; i < shownPoppers.length; i++) {\n popover = shownPoppers[i];\n if (popover.showGroup !== showGroup) {\n popover.hide();\n popover.$emit(\"close-group\");\n }\n }\n }\n shownPoppers.push(this);\n document.body.classList.add(\"v-popper--some-open\");\n for (const theme of getAllParentThemes(this.theme)) {\n getShownPoppersByTheme(theme).push(this);\n document.body.classList.add(`v-popper--some-open--${theme}`);\n }\n this.$emit(\"apply-show\");\n this.classes.showFrom = true;\n this.classes.showTo = false;\n this.classes.hideFrom = false;\n this.classes.hideTo = false;\n await nextFrame();\n this.classes.showFrom = false;\n this.classes.showTo = true;\n if (!this.noAutoFocus)\n this.$_popperNode.focus();\n },\n async $_applyHide(skipTransition = false) {\n if (this.shownChildren.size > 0) {\n this.$_pendingHide = true;\n this.$_hideInProgress = false;\n return;\n }\n clearTimeout(this.$_scheduleTimer);\n if (!this.isShown) {\n return;\n }\n this.skipTransition = skipTransition;\n removeFromArray(shownPoppers, this);\n if (shownPoppers.length === 0) {\n document.body.classList.remove(\"v-popper--some-open\");\n }\n for (const theme of getAllParentThemes(this.theme)) {\n const list = getShownPoppersByTheme(theme);\n removeFromArray(list, this);\n if (list.length === 0) {\n document.body.classList.remove(`v-popper--some-open--${theme}`);\n }\n }\n if (hidingPopper === this) {\n hidingPopper = null;\n }\n this.isShown = false;\n this.$_applyAttrsToTarget({\n \"aria-describedby\": void 0,\n \"data-popper-shown\": void 0\n });\n clearTimeout(this.$_disposeTimer);\n const disposeTime = getDefaultConfig(this.theme, \"disposeTimeout\");\n if (disposeTime !== null) {\n this.$_disposeTimer = setTimeout(() => {\n if (this.$_popperNode) {\n this.$_detachPopperNode();\n this.isMounted = false;\n }\n }, disposeTime);\n }\n this.$_removeEventListeners(\"scroll\");\n this.$emit(\"apply-hide\");\n this.classes.showFrom = false;\n this.classes.showTo = false;\n this.classes.hideFrom = true;\n this.classes.hideTo = false;\n await nextFrame();\n this.classes.hideFrom = false;\n this.classes.hideTo = true;\n },\n $_autoShowHide() {\n if (this.shown) {\n this.show();\n } else {\n this.hide();\n }\n },\n $_ensureTeleport() {\n if (this.$_isDisposed)\n return;\n let container = this.container;\n if (typeof container === \"string\") {\n container = window.document.querySelector(container);\n } else if (container === false) {\n container = this.$_targetNodes[0].parentNode;\n }\n if (!container) {\n throw new Error(\"No container for popover: \" + this.container);\n }\n container.appendChild(this.$_popperNode);\n this.isMounted = true;\n },\n $_addEventListeners() {\n const handleShow = (event) => {\n if (this.isShown && !this.$_hideInProgress) {\n return;\n }\n event.usedByTooltip = true;\n !this.$_preventShow && this.show({ event });\n };\n this.$_registerTriggerListeners(this.$_targetNodes, SHOW_EVENT_MAP, this.triggers, this.showTriggers, handleShow);\n this.$_registerTriggerListeners([this.$_popperNode], SHOW_EVENT_MAP, this.popperTriggers, this.popperShowTriggers, handleShow);\n const handleHide = (skipAiming) => (event) => {\n if (event.usedByTooltip) {\n return;\n }\n this.hide({ event, skipAiming });\n };\n this.$_registerTriggerListeners(this.$_targetNodes, HIDE_EVENT_MAP, this.triggers, this.hideTriggers, handleHide(false));\n this.$_registerTriggerListeners([this.$_popperNode], HIDE_EVENT_MAP, this.popperTriggers, this.popperHideTriggers, handleHide(true));\n },\n $_registerEventListeners(targetNodes, eventType, handler) {\n this.$_events.push({ targetNodes, eventType, handler });\n targetNodes.forEach((node) => node.addEventListener(eventType, handler, supportsPassive ? {\n passive: true\n } : void 0));\n },\n $_registerTriggerListeners(targetNodes, eventMap, commonTriggers, customTrigger, handler) {\n let triggers = commonTriggers;\n if (customTrigger != null) {\n triggers = typeof customTrigger === \"function\" ? customTrigger(triggers) : customTrigger;\n }\n triggers.forEach((trigger) => {\n const eventType = eventMap[trigger];\n if (eventType) {\n this.$_registerEventListeners(targetNodes, eventType, handler);\n }\n });\n },\n $_removeEventListeners(filterEventType) {\n const newList = [];\n this.$_events.forEach((listener) => {\n const { targetNodes, eventType, handler } = listener;\n if (!filterEventType || filterEventType === eventType) {\n targetNodes.forEach((node) => node.removeEventListener(eventType, handler));\n } else {\n newList.push(listener);\n }\n });\n this.$_events = newList;\n },\n $_refreshListeners() {\n if (!this.$_isDisposed) {\n this.$_removeEventListeners();\n this.$_addEventListeners();\n }\n },\n $_handleGlobalClose(event, touch = false) {\n if (this.$_showFrameLocked)\n return;\n this.hide({ event });\n if (event.closePopover) {\n this.$emit(\"close-directive\");\n } else {\n this.$emit(\"auto-hide\");\n }\n if (touch) {\n this.$_preventShow = true;\n setTimeout(() => {\n this.$_preventShow = false;\n }, 300);\n }\n },\n $_detachPopperNode() {\n this.$_popperNode.parentNode && this.$_popperNode.parentNode.removeChild(this.$_popperNode);\n },\n $_swapTargetAttrs(attrFrom, attrTo) {\n for (const el of this.$_targetNodes) {\n const value = el.getAttribute(attrFrom);\n if (value) {\n el.removeAttribute(attrFrom);\n el.setAttribute(attrTo, value);\n }\n }\n },\n $_applyAttrsToTarget(attrs) {\n for (const el of this.$_targetNodes) {\n for (const n in attrs) {\n const value = attrs[n];\n if (value == null) {\n el.removeAttribute(n);\n } else {\n el.setAttribute(n, value);\n }\n }\n }\n },\n $_updateParentShownChildren(value) {\n let parent = this.parentPopper;\n while (parent) {\n if (value) {\n parent.shownChildren.add(this.randomId);\n } else {\n parent.shownChildren.delete(this.randomId);\n if (parent.$_pendingHide) {\n parent.hide();\n }\n }\n parent = parent.parentPopper;\n }\n },\n $_isAimingPopper() {\n const referenceBounds = this.$el.getBoundingClientRect();\n if (mouseX >= referenceBounds.left && mouseX <= referenceBounds.right && mouseY >= referenceBounds.top && mouseY <= referenceBounds.bottom) {\n const popperBounds = this.$_popperNode.getBoundingClientRect();\n const vectorX = mouseX - mousePreviousX;\n const vectorY = mouseY - mousePreviousY;\n const distance = popperBounds.left + popperBounds.width / 2 - mousePreviousX + (popperBounds.top + popperBounds.height / 2) - mousePreviousY;\n const newVectorLength = distance + popperBounds.width + popperBounds.height;\n const edgeX = mousePreviousX + vectorX * newVectorLength;\n const edgeY = mousePreviousY + vectorY * newVectorLength;\n return lineIntersectsLine(mousePreviousX, mousePreviousY, edgeX, edgeY, popperBounds.left, popperBounds.top, popperBounds.left, popperBounds.bottom) || lineIntersectsLine(mousePreviousX, mousePreviousY, edgeX, edgeY, popperBounds.left, popperBounds.top, popperBounds.right, popperBounds.top) || lineIntersectsLine(mousePreviousX, mousePreviousY, edgeX, edgeY, popperBounds.right, popperBounds.top, popperBounds.right, popperBounds.bottom) || lineIntersectsLine(mousePreviousX, mousePreviousY, edgeX, edgeY, popperBounds.left, popperBounds.bottom, popperBounds.right, popperBounds.bottom);\n }\n return false;\n }\n },\n render() {\n return this.$scopedSlots.default(this.slotData)[0];\n }\n});\nif (typeof document !== \"undefined\" && typeof window !== \"undefined\") {\n if (isIOS) {\n document.addEventListener(\"touchstart\", handleGlobalMousedown, supportsPassive ? {\n passive: true,\n capture: true\n } : true);\n document.addEventListener(\"touchend\", handleGlobalTouchend, supportsPassive ? {\n passive: true,\n capture: true\n } : true);\n } else {\n window.addEventListener(\"mousedown\", handleGlobalMousedown, true);\n window.addEventListener(\"click\", handleGlobalClick, true);\n }\n window.addEventListener(\"resize\", computePositionAllShownPoppers);\n}\nfunction handleGlobalMousedown(event) {\n for (let i = 0; i < shownPoppers.length; i++) {\n const popper = shownPoppers[i];\n try {\n const popperContent = popper.popperNode();\n popper.$_mouseDownContains = popperContent.contains(event.target);\n } catch (e) {\n }\n }\n}\nfunction handleGlobalClick(event) {\n handleGlobalClose(event);\n}\nfunction handleGlobalTouchend(event) {\n handleGlobalClose(event, true);\n}\nfunction handleGlobalClose(event, touch = false) {\n const preventClose = {};\n for (let i = shownPoppers.length - 1; i >= 0; i--) {\n const popper = shownPoppers[i];\n try {\n const contains = popper.$_containsGlobalTarget = isContainingEventTarget(popper, event);\n popper.$_pendingHide = false;\n requestAnimationFrame(() => {\n popper.$_pendingHide = false;\n if (preventClose[popper.randomId])\n return;\n if (shouldAutoHide(popper, contains, event)) {\n popper.$_handleGlobalClose(event, touch);\n if (!event.closeAllPopover && event.closePopover && contains) {\n let parent2 = popper.parentPopper;\n while (parent2) {\n preventClose[parent2.randomId] = true;\n parent2 = parent2.parentPopper;\n }\n return;\n }\n let parent = popper.parentPopper;\n while (parent) {\n if (shouldAutoHide(parent, parent.$_containsGlobalTarget, event)) {\n parent.$_handleGlobalClose(event, touch);\n } else {\n break;\n }\n parent = parent.parentPopper;\n }\n }\n });\n } catch (e) {\n }\n }\n}\nfunction isContainingEventTarget(popper, event) {\n const popperContent = popper.popperNode();\n return popper.$_mouseDownContains || popperContent.contains(event.target);\n}\nfunction shouldAutoHide(popper, contains, event) {\n return event.closeAllPopover || event.closePopover && contains || getAutoHideResult(popper, event) && !contains;\n}\nfunction getAutoHideResult(popper, event) {\n if (typeof popper.autoHide === \"function\") {\n const result = popper.autoHide(event);\n popper.lastAutoHide = result;\n return result;\n }\n return popper.autoHide;\n}\nfunction computePositionAllShownPoppers(event) {\n for (let i = 0; i < shownPoppers.length; i++) {\n const popper = shownPoppers[i];\n popper.$_computePosition(event);\n }\n}\nfunction hideAllPoppers() {\n for (let i = 0; i < shownPoppers.length; i++) {\n const popper = shownPoppers[i];\n popper.hide();\n }\n}\nlet mousePreviousX = 0;\nlet mousePreviousY = 0;\nlet mouseX = 0;\nlet mouseY = 0;\nif (typeof window !== \"undefined\") {\n window.addEventListener(\"mousemove\", (event) => {\n mousePreviousX = mouseX;\n mousePreviousY = mouseY;\n mouseX = event.clientX;\n mouseY = event.clientY;\n }, supportsPassive ? {\n passive: true\n } : void 0);\n}\nfunction lineIntersectsLine(x1, y1, x2, y2, x3, y3, x4, y4) {\n const uA = ((x4 - x3) * (y1 - y3) - (y4 - y3) * (x1 - x3)) / ((y4 - y3) * (x2 - x1) - (x4 - x3) * (y2 - y1));\n const uB = ((x2 - x1) * (y1 - y3) - (y2 - y1) * (x1 - x3)) / ((y4 - y3) * (x2 - x1) - (x4 - x3) * (y2 - y1));\n return uA >= 0 && uA <= 1 && uB >= 0 && uB <= 1;\n}\nfunction getInternetExplorerVersion() {\n var ua = window.navigator.userAgent;\n var msie = ua.indexOf(\"MSIE \");\n if (msie > 0) {\n return parseInt(ua.substring(msie + 5, ua.indexOf(\".\", msie)), 10);\n }\n var trident = ua.indexOf(\"Trident/\");\n if (trident > 0) {\n var rv = ua.indexOf(\"rv:\");\n return parseInt(ua.substring(rv + 3, ua.indexOf(\".\", rv)), 10);\n }\n var edge = ua.indexOf(\"Edge/\");\n if (edge > 0) {\n return parseInt(ua.substring(edge + 5, ua.indexOf(\".\", edge)), 10);\n }\n return -1;\n}\nvar isIE;\nfunction initCompat() {\n if (!initCompat.init) {\n initCompat.init = true;\n isIE = getInternetExplorerVersion() !== -1;\n }\n}\nvar script = {\n name: \"ResizeObserver\",\n props: {\n emitOnMount: {\n type: Boolean,\n default: false\n },\n ignoreWidth: {\n type: Boolean,\n default: false\n },\n ignoreHeight: {\n type: Boolean,\n default: false\n }\n },\n mounted: function mounted() {\n var _this = this;\n initCompat();\n this.$nextTick(function() {\n _this._w = _this.$el.offsetWidth;\n _this._h = _this.$el.offsetHeight;\n if (_this.emitOnMount) {\n _this.emitSize();\n }\n });\n var object = document.createElement(\"object\");\n this._resizeObject = object;\n object.setAttribute(\"aria-hidden\", \"true\");\n object.setAttribute(\"tabindex\", -1);\n object.onload = this.addResizeHandlers;\n object.type = \"text/html\";\n if (isIE) {\n this.$el.appendChild(object);\n }\n object.data = \"about:blank\";\n if (!isIE) {\n this.$el.appendChild(object);\n }\n },\n beforeDestroy: function beforeDestroy() {\n this.removeResizeHandlers();\n },\n methods: {\n compareAndNotify: function compareAndNotify() {\n if (!this.ignoreWidth && this._w !== this.$el.offsetWidth || !this.ignoreHeight && this._h !== this.$el.offsetHeight) {\n this._w = this.$el.offsetWidth;\n this._h = this.$el.offsetHeight;\n this.emitSize();\n }\n },\n emitSize: function emitSize() {\n this.$emit(\"notify\", {\n width: this._w,\n height: this._h\n });\n },\n addResizeHandlers: function addResizeHandlers() {\n this._resizeObject.contentDocument.defaultView.addEventListener(\"resize\", this.compareAndNotify);\n this.compareAndNotify();\n },\n removeResizeHandlers: function removeResizeHandlers() {\n if (this._resizeObject && this._resizeObject.onload) {\n if (!isIE && this._resizeObject.contentDocument) {\n this._resizeObject.contentDocument.defaultView.removeEventListener(\"resize\", this.compareAndNotify);\n }\n this.$el.removeChild(this._resizeObject);\n this._resizeObject.onload = null;\n this._resizeObject = null;\n }\n }\n }\n};\nfunction normalizeComponent$1(template, style, script2, scopeId, isFunctionalTemplate, moduleIdentifier, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {\n if (typeof shadowMode !== \"boolean\") {\n createInjectorSSR = createInjector;\n createInjector = shadowMode;\n shadowMode = false;\n }\n var options2 = typeof script2 === \"function\" ? script2.options : script2;\n if (template && template.render) {\n options2.render = template.render;\n options2.staticRenderFns = template.staticRenderFns;\n options2._compiled = true;\n if (isFunctionalTemplate) {\n options2.functional = true;\n }\n }\n if (scopeId) {\n options2._scopeId = scopeId;\n }\n var hook;\n if (moduleIdentifier) {\n hook = function hook2(context) {\n context = context || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext;\n if (!context && typeof __VUE_SSR_CONTEXT__ !== \"undefined\") {\n context = __VUE_SSR_CONTEXT__;\n }\n if (style) {\n style.call(this, createInjectorSSR(context));\n }\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier);\n }\n };\n options2._ssrRegister = hook;\n } else if (style) {\n hook = shadowMode ? function(context) {\n style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));\n } : function(context) {\n style.call(this, createInjector(context));\n };\n }\n if (hook) {\n if (options2.functional) {\n var originalRender = options2.render;\n options2.render = function renderWithStyleInjection(h, context) {\n hook.call(context);\n return originalRender(h, context);\n };\n } else {\n var existing = options2.beforeCreate;\n options2.beforeCreate = existing ? [].concat(existing, hook) : [hook];\n }\n }\n return script2;\n}\nvar __vue_script__ = script;\nvar __vue_render__ = function __vue_render__2() {\n var _vm = this;\n var _h = _vm.$createElement;\n var _c = _vm._self._c || _h;\n return _c(\"div\", {\n staticClass: \"resize-observer\",\n attrs: {\n tabindex: \"-1\"\n }\n });\n};\nvar __vue_staticRenderFns__ = [];\n__vue_render__._withStripped = true;\nvar __vue_inject_styles__ = void 0;\nvar __vue_scope_id__ = \"data-v-8859cc6c\";\nvar __vue_module_identifier__ = void 0;\nvar __vue_is_functional_template__ = false;\nvar __vue_component__ = /* @__PURE__ */ normalizeComponent$1({\n render: __vue_render__,\n staticRenderFns: __vue_staticRenderFns__\n}, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, void 0, void 0, void 0);\nfunction install$1(Vue2) {\n Vue2.component(\"resize-observer\", __vue_component__);\n Vue2.component(\"ResizeObserver\", __vue_component__);\n}\nvar plugin$1 = {\n version: \"1.0.1\",\n install: install$1\n};\nvar GlobalVue$1 = null;\nif (typeof window !== \"undefined\") {\n GlobalVue$1 = window.Vue;\n} else if (typeof global !== \"undefined\") {\n GlobalVue$1 = global.Vue;\n}\nif (GlobalVue$1) {\n GlobalVue$1.use(plugin$1);\n}\nvar PrivateThemeClass = {\n computed: {\n themeClass() {\n return getThemeClasses(this.theme);\n }\n }\n};\nvar __vue2_script$5 = {\n name: \"VPopperContent\",\n components: {\n ResizeObserver: __vue_component__\n },\n mixins: [\n PrivateThemeClass\n ],\n props: {\n popperId: String,\n theme: String,\n shown: Boolean,\n mounted: Boolean,\n skipTransition: Boolean,\n autoHide: Boolean,\n handleResize: Boolean,\n classes: Object,\n result: Object\n },\n methods: {\n toPx(value) {\n if (value != null && !isNaN(value)) {\n return `${value}px`;\n }\n return null;\n }\n }\n};\nvar render$2 = function() {\n var _vm = this;\n var _h = _vm.$createElement;\n var _c = _vm._self._c || _h;\n return _c(\"div\", { ref: \"popover\", staticClass: \"v-popper__popper\", class: [\n _vm.themeClass,\n _vm.classes.popperClass,\n {\n \"v-popper__popper--shown\": _vm.shown,\n \"v-popper__popper--hidden\": !_vm.shown,\n \"v-popper__popper--show-from\": _vm.classes.showFrom,\n \"v-popper__popper--show-to\": _vm.classes.showTo,\n \"v-popper__popper--hide-from\": _vm.classes.hideFrom,\n \"v-popper__popper--hide-to\": _vm.classes.hideTo,\n \"v-popper__popper--skip-transition\": _vm.skipTransition,\n \"v-popper__popper--arrow-overflow\": _vm.result && _vm.result.arrow.overflow,\n \"v-popper__popper--no-positioning\": !_vm.result\n }\n ], style: _vm.result ? {\n position: _vm.result.strategy,\n transform: \"translate3d(\" + Math.round(_vm.result.x) + \"px,\" + Math.round(_vm.result.y) + \"px,0)\"\n } : void 0, attrs: { \"id\": _vm.popperId, \"aria-hidden\": _vm.shown ? \"false\" : \"true\", \"tabindex\": _vm.autoHide ? 0 : void 0, \"data-popper-placement\": _vm.result ? _vm.result.placement : void 0 }, on: { \"keyup\": function($event) {\n if (!$event.type.indexOf(\"key\") && _vm._k($event.keyCode, \"esc\", 27, $event.key, [\"Esc\", \"Escape\"])) {\n return null;\n }\n _vm.autoHide && _vm.$emit(\"hide\");\n } } }, [_c(\"div\", { staticClass: \"v-popper__backdrop\", on: { \"click\": function($event) {\n _vm.autoHide && _vm.$emit(\"hide\");\n } } }), _c(\"div\", { staticClass: \"v-popper__wrapper\", style: _vm.result ? {\n transformOrigin: _vm.result.transformOrigin\n } : void 0 }, [_c(\"div\", { ref: \"inner\", staticClass: \"v-popper__inner\" }, [_vm.mounted ? [_c(\"div\", [_vm._t(\"default\")], 2), _vm.handleResize ? _c(\"ResizeObserver\", { on: { \"notify\": function($event) {\n return _vm.$emit(\"resize\", $event);\n } } }) : _vm._e()] : _vm._e()], 2), _c(\"div\", { ref: \"arrow\", staticClass: \"v-popper__arrow-container\", style: _vm.result ? {\n left: _vm.toPx(_vm.result.arrow.x),\n top: _vm.toPx(_vm.result.arrow.y)\n } : void 0 }, [_c(\"div\", { staticClass: \"v-popper__arrow-outer\" }), _c(\"div\", { staticClass: \"v-popper__arrow-inner\" })])])]);\n};\nvar staticRenderFns$2 = [];\nvar PopperContent_vue_vue_type_style_index_0_lang = \"\";\nfunction normalizeComponent(scriptExports, render2, staticRenderFns2, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {\n var options2 = typeof scriptExports === \"function\" ? scriptExports.options : scriptExports;\n if (render2) {\n options2.render = render2;\n options2.staticRenderFns = staticRenderFns2;\n options2._compiled = true;\n }\n if (functionalTemplate) {\n options2.functional = true;\n }\n if (scopeId) {\n options2._scopeId = \"data-v-\" + scopeId;\n }\n var hook;\n if (moduleIdentifier) {\n hook = function(context) {\n context = context || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext;\n if (!context && typeof __VUE_SSR_CONTEXT__ !== \"undefined\") {\n context = __VUE_SSR_CONTEXT__;\n }\n if (injectStyles) {\n injectStyles.call(this, context);\n }\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier);\n }\n };\n options2._ssrRegister = hook;\n } else if (injectStyles) {\n hook = shadowMode ? function() {\n injectStyles.call(this, (options2.functional ? this.parent : this).$root.$options.shadowRoot);\n } : injectStyles;\n }\n if (hook) {\n if (options2.functional) {\n options2._injectStyles = hook;\n var originalRender = options2.render;\n options2.render = function renderWithStyleInjection(h, context) {\n hook.call(context);\n return originalRender(h, context);\n };\n } else {\n var existing = options2.beforeCreate;\n options2.beforeCreate = existing ? [].concat(existing, hook) : [hook];\n }\n }\n return {\n exports: scriptExports,\n options: options2\n };\n}\nconst __cssModules$5 = {};\nvar __component__$5 = /* @__PURE__ */ normalizeComponent(__vue2_script$5, render$2, staticRenderFns$2, false, __vue2_injectStyles$5, null, null, null);\nfunction __vue2_injectStyles$5(context) {\n for (let o in __cssModules$5) {\n this[o] = __cssModules$5[o];\n }\n}\nvar PrivatePopperContent = /* @__PURE__ */ function() {\n return __component__$5.exports;\n}();\nvar PrivatePopperMethods = {\n methods: {\n show(...args) {\n return this.$refs.popper.show(...args);\n },\n hide(...args) {\n return this.$refs.popper.hide(...args);\n },\n dispose(...args) {\n return this.$refs.popper.dispose(...args);\n },\n onResize(...args) {\n return this.$refs.popper.onResize(...args);\n }\n }\n};\nvar __vue2_script$4 = {\n name: \"VPopperWrapper\",\n components: {\n Popper: PrivatePopper(),\n PopperContent: PrivatePopperContent\n },\n mixins: [\n PrivatePopperMethods,\n PrivateThemeClass\n ],\n inheritAttrs: false,\n props: {\n theme: {\n type: String,\n default() {\n return this.$options.vPopperTheme;\n }\n }\n },\n methods: {\n getTargetNodes() {\n return Array.from(this.$refs.reference.children).filter((node) => node !== this.$refs.popperContent.$el);\n }\n }\n};\nvar render$1 = function() {\n var _vm = this;\n var _h = _vm.$createElement;\n var _c = _vm._self._c || _h;\n return _c(\"Popper\", _vm._g(_vm._b({ ref: \"popper\", attrs: { \"theme\": _vm.theme, \"target-nodes\": _vm.getTargetNodes, \"reference-node\": function() {\n return _vm.$refs.reference;\n }, \"popper-node\": function() {\n return _vm.$refs.popperContent.$el;\n } }, scopedSlots: _vm._u([{ key: \"default\", fn: function(ref) {\n var popperId = ref.popperId;\n var isShown = ref.isShown;\n var shouldMountContent = ref.shouldMountContent;\n var skipTransition = ref.skipTransition;\n var autoHide = ref.autoHide;\n var show = ref.show;\n var hide = ref.hide;\n var handleResize = ref.handleResize;\n var onResize = ref.onResize;\n var classes = ref.classes;\n var result = ref.result;\n return [_c(\"div\", { ref: \"reference\", staticClass: \"v-popper\", class: [\n _vm.themeClass,\n {\n \"v-popper--shown\": isShown\n }\n ] }, [_vm._t(\"default\", null, { \"shown\": isShown, \"show\": show, \"hide\": hide }), _c(\"PopperContent\", { ref: \"popperContent\", attrs: { \"popper-id\": popperId, \"theme\": _vm.theme, \"shown\": isShown, \"mounted\": shouldMountContent, \"skip-transition\": skipTransition, \"auto-hide\": autoHide, \"handle-resize\": handleResize, \"classes\": classes, \"result\": result }, on: { \"hide\": hide, \"resize\": onResize } }, [_vm._t(\"popper\", null, { \"shown\": isShown, \"hide\": hide })], 2)], 2)];\n } }], null, true) }, \"Popper\", _vm.$attrs, false), _vm.$listeners));\n};\nvar staticRenderFns$1 = [];\nconst __cssModules$4 = {};\nvar __component__$4 = /* @__PURE__ */ normalizeComponent(__vue2_script$4, render$1, staticRenderFns$1, false, __vue2_injectStyles$4, null, null, null);\nfunction __vue2_injectStyles$4(context) {\n for (let o in __cssModules$4) {\n this[o] = __cssModules$4[o];\n }\n}\nvar PrivatePopperWrapper = /* @__PURE__ */ function() {\n return __component__$4.exports;\n}();\nvar __vue2_script$3 = __spreadProps(__spreadValues({}, PrivatePopperWrapper), {\n name: \"VDropdown\",\n vPopperTheme: \"dropdown\"\n});\nvar Dropdown_vue_vue_type_style_index_0_lang = \"\";\nlet __vue2_render$2, __vue2_staticRenderFns$2;\nconst __cssModules$3 = {};\nvar __component__$3 = /* @__PURE__ */ normalizeComponent(__vue2_script$3, __vue2_render$2, __vue2_staticRenderFns$2, false, __vue2_injectStyles$3, null, null, null);\nfunction __vue2_injectStyles$3(context) {\n for (let o in __cssModules$3) {\n this[o] = __cssModules$3[o];\n }\n}\nvar PrivateDropdown = /* @__PURE__ */ function() {\n return __component__$3.exports;\n}();\nvar __vue2_script$2 = __spreadProps(__spreadValues({}, PrivatePopperWrapper), {\n name: \"VMenu\",\n vPopperTheme: \"menu\"\n});\nlet __vue2_render$1, __vue2_staticRenderFns$1;\nconst __cssModules$2 = {};\nvar __component__$2 = /* @__PURE__ */ normalizeComponent(__vue2_script$2, __vue2_render$1, __vue2_staticRenderFns$1, false, __vue2_injectStyles$2, null, null, null);\nfunction __vue2_injectStyles$2(context) {\n for (let o in __cssModules$2) {\n this[o] = __cssModules$2[o];\n }\n}\nvar PrivateMenu = /* @__PURE__ */ function() {\n return __component__$2.exports;\n}();\nvar __vue2_script$1 = __spreadProps(__spreadValues({}, PrivatePopperWrapper), {\n name: \"VTooltip\",\n vPopperTheme: \"tooltip\"\n});\nvar Tooltip_vue_vue_type_style_index_0_lang = \"\";\nlet __vue2_render, __vue2_staticRenderFns;\nconst __cssModules$1 = {};\nvar __component__$1 = /* @__PURE__ */ normalizeComponent(__vue2_script$1, __vue2_render, __vue2_staticRenderFns, false, __vue2_injectStyles$1, null, null, null);\nfunction __vue2_injectStyles$1(context) {\n for (let o in __cssModules$1) {\n this[o] = __cssModules$1[o];\n }\n}\nvar PrivateTooltip = /* @__PURE__ */ function() {\n return __component__$1.exports;\n}();\nvar __vue2_script = {\n name: \"VTooltipDirective\",\n components: {\n Popper: PrivatePopper(),\n PopperContent: PrivatePopperContent\n },\n mixins: [\n PrivatePopperMethods\n ],\n inheritAttrs: false,\n props: {\n theme: {\n type: String,\n default: \"tooltip\"\n },\n html: {\n type: Boolean,\n default() {\n return getDefaultConfig(this.theme, \"html\");\n }\n },\n content: {\n type: [String, Number, Function],\n default: null\n },\n loadingContent: {\n type: String,\n default() {\n return getDefaultConfig(this.theme, \"loadingContent\");\n }\n }\n },\n data() {\n return {\n asyncContent: null\n };\n },\n computed: {\n isContentAsync() {\n return typeof this.content === \"function\";\n },\n loading() {\n return this.isContentAsync && this.asyncContent == null;\n },\n finalContent() {\n if (this.isContentAsync) {\n return this.loading ? this.loadingContent : this.asyncContent;\n }\n return this.content;\n }\n },\n watch: {\n content: {\n handler() {\n this.fetchContent(true);\n },\n immediate: true\n },\n async finalContent(value) {\n await this.$nextTick();\n this.$refs.popper.onResize();\n }\n },\n created() {\n this.$_fetchId = 0;\n },\n methods: {\n fetchContent(force) {\n if (typeof this.content === \"function\" && this.$_isShown && (force || !this.$_loading && this.asyncContent == null)) {\n this.asyncContent = null;\n this.$_loading = true;\n const fetchId = ++this.$_fetchId;\n const result = this.content(this);\n if (result.then) {\n result.then((res) => this.onResult(fetchId, res));\n } else {\n this.onResult(fetchId, result);\n }\n }\n },\n onResult(fetchId, result) {\n if (fetchId !== this.$_fetchId)\n return;\n this.$_loading = false;\n this.asyncContent = result;\n },\n onShow() {\n this.$_isShown = true;\n this.fetchContent();\n },\n onHide() {\n this.$_isShown = false;\n }\n }\n};\nvar render = function() {\n var _vm = this;\n var _h = _vm.$createElement;\n var _c = _vm._self._c || _h;\n return _c(\"Popper\", _vm._g(_vm._b({ ref: \"popper\", attrs: { \"theme\": _vm.theme, \"popper-node\": function() {\n return _vm.$refs.popperContent.$el;\n } }, on: { \"apply-show\": _vm.onShow, \"apply-hide\": _vm.onHide }, scopedSlots: _vm._u([{ key: \"default\", fn: function(ref) {\n var popperId = ref.popperId;\n var isShown = ref.isShown;\n var shouldMountContent = ref.shouldMountContent;\n var skipTransition = ref.skipTransition;\n var autoHide = ref.autoHide;\n var hide = ref.hide;\n var handleResize = ref.handleResize;\n var onResize = ref.onResize;\n var classes = ref.classes;\n var result = ref.result;\n return [_c(\"PopperContent\", { ref: \"popperContent\", class: {\n \"v-popper--tooltip-loading\": _vm.loading\n }, attrs: { \"popper-id\": popperId, \"theme\": _vm.theme, \"shown\": isShown, \"mounted\": shouldMountContent, \"skip-transition\": skipTransition, \"auto-hide\": autoHide, \"handle-resize\": handleResize, \"classes\": classes, \"result\": result }, on: { \"hide\": hide, \"resize\": onResize } }, [_vm.html ? _c(\"div\", { domProps: { \"innerHTML\": _vm._s(_vm.finalContent) } }) : _c(\"div\", { domProps: { \"textContent\": _vm._s(_vm.finalContent) } })])];\n } }]) }, \"Popper\", _vm.$attrs, false), _vm.$listeners));\n};\nvar staticRenderFns = [];\nconst __cssModules = {};\nvar __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render, staticRenderFns, false, __vue2_injectStyles, null, null, null);\nfunction __vue2_injectStyles(context) {\n for (let o in __cssModules) {\n this[o] = __cssModules[o];\n }\n}\nvar PrivateTooltipDirective = /* @__PURE__ */ function() {\n return __component__.exports;\n}();\nconst TARGET_CLASS = \"v-popper--has-tooltip\";\nfunction getPlacement(options2, modifiers) {\n let result = options2.placement;\n if (!result && modifiers) {\n for (const pos of placements) {\n if (modifiers[pos]) {\n result = pos;\n }\n }\n }\n if (!result) {\n result = getDefaultConfig(options2.theme || \"tooltip\", \"placement\");\n }\n return result;\n}\nfunction getOptions(el, value, modifiers) {\n let options2;\n const type = typeof value;\n if (type === \"string\") {\n options2 = { content: value };\n } else if (value && type === \"object\") {\n options2 = value;\n } else {\n options2 = { content: false };\n }\n options2.placement = getPlacement(options2, modifiers);\n options2.targetNodes = () => [el];\n options2.referenceNode = () => el;\n return options2;\n}\nfunction createTooltip(el, value, modifiers) {\n const options2 = getOptions(el, value, modifiers);\n const tooltipApp = el.$_popper = new Vue({\n mixins: [\n PrivatePopperMethods\n ],\n data() {\n return {\n options: options2\n };\n },\n render(h) {\n const _a = this.options, {\n theme,\n html,\n content,\n loadingContent\n } = _a, otherOptions = __objRest(_a, [\n \"theme\",\n \"html\",\n \"content\",\n \"loadingContent\"\n ]);\n return h(PrivateTooltipDirective, {\n props: {\n theme,\n html,\n content,\n loadingContent\n },\n attrs: otherOptions,\n ref: \"popper\"\n });\n },\n devtools: {\n hide: true\n }\n });\n const mountTarget = document.createElement(\"div\");\n document.body.appendChild(mountTarget);\n tooltipApp.$mount(mountTarget);\n if (el.classList) {\n el.classList.add(TARGET_CLASS);\n }\n return tooltipApp;\n}\nfunction destroyTooltip(el) {\n if (el.$_popper) {\n el.$_popper.$destroy();\n delete el.$_popper;\n delete el.$_popperOldShown;\n }\n if (el.classList) {\n el.classList.remove(TARGET_CLASS);\n }\n}\nfunction bind(el, { value, oldValue, modifiers }) {\n const options2 = getOptions(el, value, modifiers);\n if (!options2.content || getDefaultConfig(options2.theme || \"tooltip\", \"disabled\")) {\n destroyTooltip(el);\n } else {\n let tooltipApp;\n if (el.$_popper) {\n tooltipApp = el.$_popper;\n tooltipApp.options = options2;\n } else {\n tooltipApp = createTooltip(el, value, modifiers);\n }\n if (typeof value.shown !== \"undefined\" && value.shown !== el.$_popperOldShown) {\n el.$_popperOldShown = value.shown;\n value.shown ? tooltipApp.show() : tooltipApp.hide();\n }\n }\n}\nvar PrivateVTooltip = {\n bind,\n update: bind,\n unbind(el) {\n destroyTooltip(el);\n }\n};\nfunction addListeners(el) {\n el.addEventListener(\"click\", onClick);\n el.addEventListener(\"touchstart\", onTouchStart, supportsPassive ? {\n passive: true\n } : false);\n}\nfunction removeListeners(el) {\n el.removeEventListener(\"click\", onClick);\n el.removeEventListener(\"touchstart\", onTouchStart);\n el.removeEventListener(\"touchend\", onTouchEnd);\n el.removeEventListener(\"touchcancel\", onTouchCancel);\n}\nfunction onClick(event) {\n const el = event.currentTarget;\n event.closePopover = !el.$_vclosepopover_touch;\n event.closeAllPopover = el.$_closePopoverModifiers && !!el.$_closePopoverModifiers.all;\n}\nfunction onTouchStart(event) {\n if (event.changedTouches.length === 1) {\n const el = event.currentTarget;\n el.$_vclosepopover_touch = true;\n const touch = event.changedTouches[0];\n el.$_vclosepopover_touchPoint = touch;\n el.addEventListener(\"touchend\", onTouchEnd);\n el.addEventListener(\"touchcancel\", onTouchCancel);\n }\n}\nfunction onTouchEnd(event) {\n const el = event.currentTarget;\n el.$_vclosepopover_touch = false;\n if (event.changedTouches.length === 1) {\n const touch = event.changedTouches[0];\n const firstTouch = el.$_vclosepopover_touchPoint;\n event.closePopover = Math.abs(touch.screenY - firstTouch.screenY) < 20 && Math.abs(touch.screenX - firstTouch.screenX) < 20;\n event.closeAllPopover = el.$_closePopoverModifiers && !!el.$_closePopoverModifiers.all;\n }\n}\nfunction onTouchCancel(event) {\n const el = event.currentTarget;\n el.$_vclosepopover_touch = false;\n}\nvar PrivateVClosePopper = {\n bind(el, { value, modifiers }) {\n el.$_closePopoverModifiers = modifiers;\n if (typeof value === \"undefined\" || value) {\n addListeners(el);\n }\n },\n update(el, { value, oldValue, modifiers }) {\n el.$_closePopoverModifiers = modifiers;\n if (value !== oldValue) {\n if (typeof value === \"undefined\" || value) {\n addListeners(el);\n } else {\n removeListeners(el);\n }\n }\n },\n unbind(el) {\n removeListeners(el);\n }\n};\nconst options = config;\nconst VTooltip = PrivateVTooltip;\nconst VClosePopper = PrivateVClosePopper;\nconst Dropdown = PrivateDropdown;\nconst Menu = PrivateMenu;\nconst Popper = PrivatePopper;\nconst PopperContent = PrivatePopperContent;\nconst PopperMethods = PrivatePopperMethods;\nconst PopperWrapper = PrivatePopperWrapper;\nconst ThemeClass = PrivateThemeClass;\nconst Tooltip = PrivateTooltip;\nconst TooltipDirective = PrivateTooltipDirective;\nfunction install(app, options2 = {}) {\n if (app.$_vTooltipInstalled)\n return;\n app.$_vTooltipInstalled = true;\n assign(config, options2);\n app.directive(\"tooltip\", PrivateVTooltip);\n app.directive(\"close-popper\", PrivateVClosePopper);\n app.component(\"v-tooltip\", PrivateTooltip);\n app.component(\"VTooltip\", PrivateTooltip);\n app.component(\"v-dropdown\", PrivateDropdown);\n app.component(\"VDropdown\", PrivateDropdown);\n app.component(\"v-menu\", PrivateMenu);\n app.component(\"VMenu\", PrivateMenu);\n}\nconst plugin = {\n version: \"1.0.0-beta.19\",\n install,\n options: config\n};\nlet GlobalVue = null;\nif (typeof window !== \"undefined\") {\n GlobalVue = window.Vue;\n} else if (typeof global !== \"undefined\") {\n GlobalVue = global.Vue;\n}\nif (GlobalVue) {\n GlobalVue.use(plugin);\n}\nexport { Dropdown, HIDE_EVENT_MAP, Menu, Popper, PopperContent, PopperMethods, PopperWrapper, SHOW_EVENT_MAP, ThemeClass, Tooltip, TooltipDirective, VClosePopper, VTooltip, createTooltip, plugin as default, destroyTooltip, hideAllPoppers, install, options, placements };\n","import \"../assets/index-d211cae8.css\";\nimport { options as o } from \"floating-vue\";\nimport { VTooltip as l, options as m } from \"floating-vue\";\n/**\n * @copyright Copyright (c) 2019 Julius Härtl \n *\n * @author Julius Härtl \n * @author John Molakvoæ \n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see .\n *\n */\no.themes.tooltip.html = !1;\no.themes.tooltip.delay = { show: 500, hide: 200 };\no.themes.tooltip.distance = 10;\no.themes.tooltip[\"arrow-padding\"] = 3;\nexport {\n l as default,\n m as options\n};\n","import { n as r } from \"./_plugin-vue2_normalizer-71e2aa87.mjs\";\nconst l = {\n name: \"ArrowRightIcon\",\n emits: [\"click\"],\n props: {\n title: {\n type: String\n },\n fillColor: {\n type: String,\n default: \"currentColor\"\n },\n size: {\n type: Number,\n default: 24\n }\n }\n};\nvar n = function() {\n var t = this, e = t._self._c;\n return e(\"span\", t._b({ staticClass: \"material-design-icon arrow-right-icon\", attrs: { \"aria-hidden\": !t.title, \"aria-label\": t.title, role: \"img\" }, on: { click: function(i) {\n return t.$emit(\"click\", i);\n } } }, \"span\", t.$attrs, !1), [e(\"svg\", { staticClass: \"material-design-icon__svg\", attrs: { fill: t.fillColor, width: t.size, height: t.size, viewBox: \"0 0 24 24\" } }, [e(\"path\", { attrs: { d: \"M4,11V13H16L10.5,18.5L11.92,19.92L19.84,12L11.92,4.08L10.5,5.5L16,11H4Z\" } }, [t.title ? e(\"title\", [t._v(t._s(t.title))]) : t._e()])])]);\n}, s = [], a = /* @__PURE__ */ r(\n l,\n n,\n s,\n !1,\n null,\n null,\n null,\n null\n);\nconst _ = a.exports;\nexport {\n _ as A\n};\n","import o from \"vue\";\n/**\n * @copyright Copyright (c) 2019 Kristof Hamann, Paul Schwörer\n *\n * @author Kristof Hamann\n * @author Paul Schwörer\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see .\n *\n */\nconst i = /* @__PURE__ */ new o({\n data() {\n return {\n isMobile: !1\n };\n },\n watch: {\n isMobile(e) {\n this.$emit(\"changed\", e);\n }\n },\n created() {\n window.addEventListener(\"resize\", this.handleWindowResize), this.handleWindowResize();\n },\n beforeDestroy() {\n window.removeEventListener(\"resize\", this.handleWindowResize);\n },\n methods: {\n handleWindowResize() {\n this.isMobile = document.documentElement.clientWidth < 1024;\n }\n }\n});\n/**\n * @copyright Copyright (c) 2019 John Molakvoæ \n *\n * @author John Molakvoæ \n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see .\n *\n */\nconst t = {\n data() {\n return {\n isMobile: !1\n };\n },\n mounted() {\n i.$on(\"changed\", this.onIsMobileChanged), this.isMobile = i.isMobile;\n },\n beforeDestroy() {\n i.$off(\"changed\", this.onIsMobileChanged);\n },\n methods: {\n onIsMobileChanged(e) {\n this.isMobile = e;\n }\n }\n};\nexport {\n t as default\n};\n","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\nclass ScopedStorage {\n constructor(scope, wrapped, persistent) {\n _defineProperty(this, \"scope\", void 0);\n _defineProperty(this, \"wrapped\", void 0);\n this.scope = `${persistent ? ScopedStorage.GLOBAL_SCOPE_PERSISTENT : ScopedStorage.GLOBAL_SCOPE_VOLATILE}_${btoa(scope)}_`;\n this.wrapped = wrapped;\n }\n scopeKey(key) {\n return `${this.scope}${key}`;\n }\n setItem(key, value) {\n this.wrapped.setItem(this.scopeKey(key), value);\n }\n getItem(key) {\n return this.wrapped.getItem(this.scopeKey(key));\n }\n removeItem(key) {\n this.wrapped.removeItem(this.scopeKey(key));\n }\n clear() {\n Object.keys(this.wrapped).filter(key => key.startsWith(this.scope)).map(this.wrapped.removeItem.bind(this.wrapped));\n }\n}\nexports.default = ScopedStorage;\n_defineProperty(ScopedStorage, \"GLOBAL_SCOPE_VOLATILE\", 'nextcloud_vol');\n_defineProperty(ScopedStorage, \"GLOBAL_SCOPE_PERSISTENT\", 'nextcloud_per');\n//# sourceMappingURL=scopedstorage.js.map","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _scopedstorage = _interopRequireDefault(require(\"./scopedstorage\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\nclass StorageBuilder {\n constructor(appId) {\n _defineProperty(this, \"appId\", void 0);\n _defineProperty(this, \"persisted\", false);\n _defineProperty(this, \"clearedOnLogout\", false);\n this.appId = appId;\n }\n persist() {\n let persist = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n this.persisted = persist;\n return this;\n }\n clearOnLogout() {\n let clear = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n this.clearedOnLogout = clear;\n return this;\n }\n build() {\n return new _scopedstorage.default(this.appId, this.persisted ? window.localStorage : window.sessionStorage, !this.clearedOnLogout);\n }\n}\nexports.default = StorageBuilder;\n//# sourceMappingURL=storagebuilder.js.map","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.clearAll = clearAll;\nexports.clearNonPersistent = clearNonPersistent;\nexports.getBuilder = getBuilder;\nvar _storagebuilder = _interopRequireDefault(require(\"./storagebuilder\"));\nvar _scopedstorage = _interopRequireDefault(require(\"./scopedstorage\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\nfunction getBuilder(appId) {\n return new _storagebuilder.default(appId);\n}\nfunction clearStorage(storage, pred) {\n Object.keys(storage).filter(k => pred ? pred(k) : true).map(storage.removeItem.bind(storage));\n}\nfunction clearAll() {\n const storages = [window.sessionStorage, window.localStorage];\n storages.map(s => clearStorage(s));\n}\nfunction clearNonPersistent() {\n const storages = [window.sessionStorage, window.localStorage];\n storages.map(s => clearStorage(s, k => !k.startsWith(_scopedstorage.default.GLOBAL_SCOPE_PERSISTENT)));\n}\n//# sourceMappingURL=index.js.map","import Vue from 'vue'\nimport { getCurrentInstance } from 'vue'\n\nvar isVue2 = true\nvar isVue3 = false\nvar Vue2 = Vue\nvar warn = Vue.util.warn\n\nfunction install() {}\n\n// createApp polyfill\nexport function createApp(rootComponent, rootProps) {\n var vm\n var provide = {}\n var app = {\n config: Vue.config,\n use: Vue.use.bind(Vue),\n mixin: Vue.mixin.bind(Vue),\n component: Vue.component.bind(Vue),\n provide: function (key, value) {\n provide[key] = value\n return this\n },\n directive: function (name, dir) {\n if (dir) {\n Vue.directive(name, dir)\n return app\n } else {\n return Vue.directive(name)\n }\n },\n mount: function (el, hydrating) {\n if (!vm) {\n vm = new Vue(Object.assign({ propsData: rootProps }, rootComponent, { provide: Object.assign(provide, rootComponent.provide) }))\n vm.$mount(el, hydrating)\n return vm\n } else {\n return vm\n }\n },\n unmount: function () {\n if (vm) {\n vm.$destroy()\n vm = undefined\n }\n },\n }\n return app\n}\n\nexport {\n Vue,\n Vue2,\n isVue2,\n isVue3,\n install,\n warn\n}\n\n// Vue 3 components mock\nfunction createMockComponent(name) {\n return {\n setup() {\n throw new Error('[vue-demi] ' + name + ' is not supported in Vue 2. It\\'s provided to avoid compiler errors.')\n }\n }\n}\nexport var Fragment = /*#__PURE__*/ createMockComponent('Fragment')\nexport var Transition = /*#__PURE__*/ createMockComponent('Transition')\nexport var TransitionGroup = /*#__PURE__*/ createMockComponent('TransitionGroup')\nexport var Teleport = /*#__PURE__*/ createMockComponent('Teleport')\nexport var Suspense = /*#__PURE__*/ createMockComponent('Suspense')\nexport var KeepAlive = /*#__PURE__*/ createMockComponent('KeepAlive')\n\nexport * from 'vue'\n\n// Not implemented https://github.com/vuejs/core/pull/8111, falls back to getCurrentInstance()\nexport function hasInjectionContext() {\n return !!getCurrentInstance()\n}\n","import { shallowRef, watchEffect, readonly, ref, watch, customRef, getCurrentScope, onScopeDispose, effectScope, getCurrentInstance, provide, inject, isVue3, version, isRef, unref, computed, reactive, toRefs as toRefs$1, toRef as toRef$1, isVue2, set as set$1, onBeforeMount, nextTick, onBeforeUnmount, onMounted, onUnmounted, isReactive } from 'vue-demi';\n\nfunction computedEager(fn, options) {\n var _a;\n const result = shallowRef();\n watchEffect(() => {\n result.value = fn();\n }, {\n ...options,\n flush: (_a = options == null ? void 0 : options.flush) != null ? _a : \"sync\"\n });\n return readonly(result);\n}\n\nfunction computedWithControl(source, fn) {\n let v = void 0;\n let track;\n let trigger;\n const dirty = ref(true);\n const update = () => {\n dirty.value = true;\n trigger();\n };\n watch(source, update, { flush: \"sync\" });\n const get = typeof fn === \"function\" ? fn : fn.get;\n const set = typeof fn === \"function\" ? void 0 : fn.set;\n const result = customRef((_track, _trigger) => {\n track = _track;\n trigger = _trigger;\n return {\n get() {\n if (dirty.value) {\n v = get();\n dirty.value = false;\n }\n track();\n return v;\n },\n set(v2) {\n set == null ? void 0 : set(v2);\n }\n };\n });\n if (Object.isExtensible(result))\n result.trigger = update;\n return result;\n}\n\nfunction tryOnScopeDispose(fn) {\n if (getCurrentScope()) {\n onScopeDispose(fn);\n return true;\n }\n return false;\n}\n\nfunction createEventHook() {\n const fns = /* @__PURE__ */ new Set();\n const off = (fn) => {\n fns.delete(fn);\n };\n const on = (fn) => {\n fns.add(fn);\n const offFn = () => off(fn);\n tryOnScopeDispose(offFn);\n return {\n off: offFn\n };\n };\n const trigger = (param) => {\n return Promise.all(Array.from(fns).map((fn) => fn(param)));\n };\n return {\n on,\n off,\n trigger\n };\n}\n\nfunction createGlobalState(stateFactory) {\n let initialized = false;\n let state;\n const scope = effectScope(true);\n return (...args) => {\n if (!initialized) {\n state = scope.run(() => stateFactory(...args));\n initialized = true;\n }\n return state;\n };\n}\n\nconst localProvidedStateMap = /* @__PURE__ */ new WeakMap();\n\nconst provideLocal = (key, value) => {\n var _a;\n const instance = (_a = getCurrentInstance()) == null ? void 0 : _a.proxy;\n if (instance == null)\n throw new Error(\"provideLocal must be called in setup\");\n if (!localProvidedStateMap.has(instance))\n localProvidedStateMap.set(instance, /* @__PURE__ */ Object.create(null));\n const localProvidedState = localProvidedStateMap.get(instance);\n localProvidedState[key] = value;\n provide(key, value);\n};\n\nconst injectLocal = (...args) => {\n var _a;\n const key = args[0];\n const instance = (_a = getCurrentInstance()) == null ? void 0 : _a.proxy;\n if (instance == null)\n throw new Error(\"injectLocal must be called in setup\");\n if (localProvidedStateMap.has(instance) && key in localProvidedStateMap.get(instance))\n return localProvidedStateMap.get(instance)[key];\n return inject(...args);\n};\n\nfunction createInjectionState(composable, options) {\n const key = (options == null ? void 0 : options.injectionKey) || Symbol(\"InjectionState\");\n const useProvidingState = (...args) => {\n const state = composable(...args);\n provideLocal(key, state);\n return state;\n };\n const useInjectedState = () => injectLocal(key);\n return [useProvidingState, useInjectedState];\n}\n\nfunction createSharedComposable(composable) {\n let subscribers = 0;\n let state;\n let scope;\n const dispose = () => {\n subscribers -= 1;\n if (scope && subscribers <= 0) {\n scope.stop();\n state = void 0;\n scope = void 0;\n }\n };\n return (...args) => {\n subscribers += 1;\n if (!state) {\n scope = effectScope(true);\n state = scope.run(() => composable(...args));\n }\n tryOnScopeDispose(dispose);\n return state;\n };\n}\n\nfunction extendRef(ref, extend, { enumerable = false, unwrap = true } = {}) {\n if (!isVue3 && !version.startsWith(\"2.7.\")) {\n if (process.env.NODE_ENV !== \"production\")\n throw new Error(\"[VueUse] extendRef only works in Vue 2.7 or above.\");\n return;\n }\n for (const [key, value] of Object.entries(extend)) {\n if (key === \"value\")\n continue;\n if (isRef(value) && unwrap) {\n Object.defineProperty(ref, key, {\n get() {\n return value.value;\n },\n set(v) {\n value.value = v;\n },\n enumerable\n });\n } else {\n Object.defineProperty(ref, key, { value, enumerable });\n }\n }\n return ref;\n}\n\nfunction get(obj, key) {\n if (key == null)\n return unref(obj);\n return unref(obj)[key];\n}\n\nfunction isDefined(v) {\n return unref(v) != null;\n}\n\nfunction makeDestructurable(obj, arr) {\n if (typeof Symbol !== \"undefined\") {\n const clone = { ...obj };\n Object.defineProperty(clone, Symbol.iterator, {\n enumerable: false,\n value() {\n let index = 0;\n return {\n next: () => ({\n value: arr[index++],\n done: index > arr.length\n })\n };\n }\n });\n return clone;\n } else {\n return Object.assign([...arr], obj);\n }\n}\n\nfunction toValue(r) {\n return typeof r === \"function\" ? r() : unref(r);\n}\nconst resolveUnref = toValue;\n\nfunction reactify(fn, options) {\n const unrefFn = (options == null ? void 0 : options.computedGetter) === false ? unref : toValue;\n return function(...args) {\n return computed(() => fn.apply(this, args.map((i) => unrefFn(i))));\n };\n}\n\nfunction reactifyObject(obj, optionsOrKeys = {}) {\n let keys = [];\n let options;\n if (Array.isArray(optionsOrKeys)) {\n keys = optionsOrKeys;\n } else {\n options = optionsOrKeys;\n const { includeOwnProperties = true } = optionsOrKeys;\n keys.push(...Object.keys(obj));\n if (includeOwnProperties)\n keys.push(...Object.getOwnPropertyNames(obj));\n }\n return Object.fromEntries(\n keys.map((key) => {\n const value = obj[key];\n return [\n key,\n typeof value === \"function\" ? reactify(value.bind(obj), options) : value\n ];\n })\n );\n}\n\nfunction toReactive(objectRef) {\n if (!isRef(objectRef))\n return reactive(objectRef);\n const proxy = new Proxy({}, {\n get(_, p, receiver) {\n return unref(Reflect.get(objectRef.value, p, receiver));\n },\n set(_, p, value) {\n if (isRef(objectRef.value[p]) && !isRef(value))\n objectRef.value[p].value = value;\n else\n objectRef.value[p] = value;\n return true;\n },\n deleteProperty(_, p) {\n return Reflect.deleteProperty(objectRef.value, p);\n },\n has(_, p) {\n return Reflect.has(objectRef.value, p);\n },\n ownKeys() {\n return Object.keys(objectRef.value);\n },\n getOwnPropertyDescriptor() {\n return {\n enumerable: true,\n configurable: true\n };\n }\n });\n return reactive(proxy);\n}\n\nfunction reactiveComputed(fn) {\n return toReactive(computed(fn));\n}\n\nfunction reactiveOmit(obj, ...keys) {\n const flatKeys = keys.flat();\n const predicate = flatKeys[0];\n return reactiveComputed(() => typeof predicate === \"function\" ? Object.fromEntries(Object.entries(toRefs$1(obj)).filter(([k, v]) => !predicate(toValue(v), k))) : Object.fromEntries(Object.entries(toRefs$1(obj)).filter((e) => !flatKeys.includes(e[0]))));\n}\n\nconst isClient = typeof window !== \"undefined\" && typeof document !== \"undefined\";\nconst isDef = (val) => typeof val !== \"undefined\";\nconst notNullish = (val) => val != null;\nconst assert = (condition, ...infos) => {\n if (!condition)\n console.warn(...infos);\n};\nconst toString = Object.prototype.toString;\nconst isObject = (val) => toString.call(val) === \"[object Object]\";\nconst now = () => Date.now();\nconst timestamp = () => +Date.now();\nconst clamp = (n, min, max) => Math.min(max, Math.max(min, n));\nconst noop = () => {\n};\nconst rand = (min, max) => {\n min = Math.ceil(min);\n max = Math.floor(max);\n return Math.floor(Math.random() * (max - min + 1)) + min;\n};\nconst hasOwn = (val, key) => Object.prototype.hasOwnProperty.call(val, key);\nconst isIOS = /* @__PURE__ */ getIsIOS();\nfunction getIsIOS() {\n var _a;\n return isClient && ((_a = window == null ? void 0 : window.navigator) == null ? void 0 : _a.userAgent) && /* @__PURE__ */ /iP(ad|hone|od)/.test(window.navigator.userAgent);\n}\n\nfunction createFilterWrapper(filter, fn) {\n function wrapper(...args) {\n return new Promise((resolve, reject) => {\n Promise.resolve(filter(() => fn.apply(this, args), { fn, thisArg: this, args })).then(resolve).catch(reject);\n });\n }\n return wrapper;\n}\nconst bypassFilter = (invoke) => {\n return invoke();\n};\nfunction debounceFilter(ms, options = {}) {\n let timer;\n let maxTimer;\n let lastRejector = noop;\n const _clearTimeout = (timer2) => {\n clearTimeout(timer2);\n lastRejector();\n lastRejector = noop;\n };\n const filter = (invoke) => {\n const duration = toValue(ms);\n const maxDuration = toValue(options.maxWait);\n if (timer)\n _clearTimeout(timer);\n if (duration <= 0 || maxDuration !== void 0 && maxDuration <= 0) {\n if (maxTimer) {\n _clearTimeout(maxTimer);\n maxTimer = null;\n }\n return Promise.resolve(invoke());\n }\n return new Promise((resolve, reject) => {\n lastRejector = options.rejectOnCancel ? reject : resolve;\n if (maxDuration && !maxTimer) {\n maxTimer = setTimeout(() => {\n if (timer)\n _clearTimeout(timer);\n maxTimer = null;\n resolve(invoke());\n }, maxDuration);\n }\n timer = setTimeout(() => {\n if (maxTimer)\n _clearTimeout(maxTimer);\n maxTimer = null;\n resolve(invoke());\n }, duration);\n });\n };\n return filter;\n}\nfunction throttleFilter(ms, trailing = true, leading = true, rejectOnCancel = false) {\n let lastExec = 0;\n let timer;\n let isLeading = true;\n let lastRejector = noop;\n let lastValue;\n const clear = () => {\n if (timer) {\n clearTimeout(timer);\n timer = void 0;\n lastRejector();\n lastRejector = noop;\n }\n };\n const filter = (_invoke) => {\n const duration = toValue(ms);\n const elapsed = Date.now() - lastExec;\n const invoke = () => {\n return lastValue = _invoke();\n };\n clear();\n if (duration <= 0) {\n lastExec = Date.now();\n return invoke();\n }\n if (elapsed > duration && (leading || !isLeading)) {\n lastExec = Date.now();\n invoke();\n } else if (trailing) {\n lastValue = new Promise((resolve, reject) => {\n lastRejector = rejectOnCancel ? reject : resolve;\n timer = setTimeout(() => {\n lastExec = Date.now();\n isLeading = true;\n resolve(invoke());\n clear();\n }, Math.max(0, duration - elapsed));\n });\n }\n if (!leading && !timer)\n timer = setTimeout(() => isLeading = true, duration);\n isLeading = false;\n return lastValue;\n };\n return filter;\n}\nfunction pausableFilter(extendFilter = bypassFilter) {\n const isActive = ref(true);\n function pause() {\n isActive.value = false;\n }\n function resume() {\n isActive.value = true;\n }\n const eventFilter = (...args) => {\n if (isActive.value)\n extendFilter(...args);\n };\n return { isActive: readonly(isActive), pause, resume, eventFilter };\n}\n\nconst directiveHooks = {\n mounted: isVue3 ? \"mounted\" : \"inserted\",\n updated: isVue3 ? \"updated\" : \"componentUpdated\",\n unmounted: isVue3 ? \"unmounted\" : \"unbind\"\n};\n\nfunction cacheStringFunction(fn) {\n const cache = /* @__PURE__ */ Object.create(null);\n return (str) => {\n const hit = cache[str];\n return hit || (cache[str] = fn(str));\n };\n}\nconst hyphenateRE = /\\B([A-Z])/g;\nconst hyphenate = cacheStringFunction((str) => str.replace(hyphenateRE, \"-$1\").toLowerCase());\nconst camelizeRE = /-(\\w)/g;\nconst camelize = cacheStringFunction((str) => {\n return str.replace(camelizeRE, (_, c) => c ? c.toUpperCase() : \"\");\n});\n\nfunction promiseTimeout(ms, throwOnTimeout = false, reason = \"Timeout\") {\n return new Promise((resolve, reject) => {\n if (throwOnTimeout)\n setTimeout(() => reject(reason), ms);\n else\n setTimeout(resolve, ms);\n });\n}\nfunction identity(arg) {\n return arg;\n}\nfunction createSingletonPromise(fn) {\n let _promise;\n function wrapper() {\n if (!_promise)\n _promise = fn();\n return _promise;\n }\n wrapper.reset = async () => {\n const _prev = _promise;\n _promise = void 0;\n if (_prev)\n await _prev;\n };\n return wrapper;\n}\nfunction invoke(fn) {\n return fn();\n}\nfunction containsProp(obj, ...props) {\n return props.some((k) => k in obj);\n}\nfunction increaseWithUnit(target, delta) {\n var _a;\n if (typeof target === \"number\")\n return target + delta;\n const value = ((_a = target.match(/^-?[0-9]+\\.?[0-9]*/)) == null ? void 0 : _a[0]) || \"\";\n const unit = target.slice(value.length);\n const result = Number.parseFloat(value) + delta;\n if (Number.isNaN(result))\n return target;\n return result + unit;\n}\nfunction objectPick(obj, keys, omitUndefined = false) {\n return keys.reduce((n, k) => {\n if (k in obj) {\n if (!omitUndefined || obj[k] !== void 0)\n n[k] = obj[k];\n }\n return n;\n }, {});\n}\nfunction objectOmit(obj, keys, omitUndefined = false) {\n return Object.fromEntries(Object.entries(obj).filter(([key, value]) => {\n return (!omitUndefined || value !== void 0) && !keys.includes(key);\n }));\n}\nfunction objectEntries(obj) {\n return Object.entries(obj);\n}\n\nfunction toRef(...args) {\n if (args.length !== 1)\n return toRef$1(...args);\n const r = args[0];\n return typeof r === \"function\" ? readonly(customRef(() => ({ get: r, set: noop }))) : ref(r);\n}\nconst resolveRef = toRef;\n\nfunction reactivePick(obj, ...keys) {\n const flatKeys = keys.flat();\n const predicate = flatKeys[0];\n return reactiveComputed(() => typeof predicate === \"function\" ? Object.fromEntries(Object.entries(toRefs$1(obj)).filter(([k, v]) => predicate(toValue(v), k))) : Object.fromEntries(flatKeys.map((k) => [k, toRef(obj, k)])));\n}\n\nfunction refAutoReset(defaultValue, afterMs = 1e4) {\n return customRef((track, trigger) => {\n let value = toValue(defaultValue);\n let timer;\n const resetAfter = () => setTimeout(() => {\n value = toValue(defaultValue);\n trigger();\n }, toValue(afterMs));\n tryOnScopeDispose(() => {\n clearTimeout(timer);\n });\n return {\n get() {\n track();\n return value;\n },\n set(newValue) {\n value = newValue;\n trigger();\n clearTimeout(timer);\n timer = resetAfter();\n }\n };\n });\n}\n\nfunction useDebounceFn(fn, ms = 200, options = {}) {\n return createFilterWrapper(\n debounceFilter(ms, options),\n fn\n );\n}\n\nfunction refDebounced(value, ms = 200, options = {}) {\n const debounced = ref(value.value);\n const updater = useDebounceFn(() => {\n debounced.value = value.value;\n }, ms, options);\n watch(value, () => updater());\n return debounced;\n}\n\nfunction refDefault(source, defaultValue) {\n return computed({\n get() {\n var _a;\n return (_a = source.value) != null ? _a : defaultValue;\n },\n set(value) {\n source.value = value;\n }\n });\n}\n\nfunction useThrottleFn(fn, ms = 200, trailing = false, leading = true, rejectOnCancel = false) {\n return createFilterWrapper(\n throttleFilter(ms, trailing, leading, rejectOnCancel),\n fn\n );\n}\n\nfunction refThrottled(value, delay = 200, trailing = true, leading = true) {\n if (delay <= 0)\n return value;\n const throttled = ref(value.value);\n const updater = useThrottleFn(() => {\n throttled.value = value.value;\n }, delay, trailing, leading);\n watch(value, () => updater());\n return throttled;\n}\n\nfunction refWithControl(initial, options = {}) {\n let source = initial;\n let track;\n let trigger;\n const ref = customRef((_track, _trigger) => {\n track = _track;\n trigger = _trigger;\n return {\n get() {\n return get();\n },\n set(v) {\n set(v);\n }\n };\n });\n function get(tracking = true) {\n if (tracking)\n track();\n return source;\n }\n function set(value, triggering = true) {\n var _a, _b;\n if (value === source)\n return;\n const old = source;\n if (((_a = options.onBeforeChange) == null ? void 0 : _a.call(options, value, old)) === false)\n return;\n source = value;\n (_b = options.onChanged) == null ? void 0 : _b.call(options, value, old);\n if (triggering)\n trigger();\n }\n const untrackedGet = () => get(false);\n const silentSet = (v) => set(v, false);\n const peek = () => get(false);\n const lay = (v) => set(v, false);\n return extendRef(\n ref,\n {\n get,\n set,\n untrackedGet,\n silentSet,\n peek,\n lay\n },\n { enumerable: true }\n );\n}\nconst controlledRef = refWithControl;\n\nfunction set(...args) {\n if (args.length === 2) {\n const [ref, value] = args;\n ref.value = value;\n }\n if (args.length === 3) {\n if (isVue2) {\n set$1(...args);\n } else {\n const [target, key, value] = args;\n target[key] = value;\n }\n }\n}\n\nfunction watchWithFilter(source, cb, options = {}) {\n const {\n eventFilter = bypassFilter,\n ...watchOptions\n } = options;\n return watch(\n source,\n createFilterWrapper(\n eventFilter,\n cb\n ),\n watchOptions\n );\n}\n\nfunction watchPausable(source, cb, options = {}) {\n const {\n eventFilter: filter,\n ...watchOptions\n } = options;\n const { eventFilter, pause, resume, isActive } = pausableFilter(filter);\n const stop = watchWithFilter(\n source,\n cb,\n {\n ...watchOptions,\n eventFilter\n }\n );\n return { stop, pause, resume, isActive };\n}\n\nfunction syncRef(left, right, options = {}) {\n var _a, _b;\n const {\n flush = \"sync\",\n deep = false,\n immediate = true,\n direction = \"both\",\n transform = {}\n } = options;\n const watchers = [];\n const transformLTR = (_a = transform.ltr) != null ? _a : (v) => v;\n const transformRTL = (_b = transform.rtl) != null ? _b : (v) => v;\n if (direction === \"both\" || direction === \"ltr\") {\n watchers.push(watchPausable(\n left,\n (newValue) => {\n watchers.forEach((w) => w.pause());\n right.value = transformLTR(newValue);\n watchers.forEach((w) => w.resume());\n },\n { flush, deep, immediate }\n ));\n }\n if (direction === \"both\" || direction === \"rtl\") {\n watchers.push(watchPausable(\n right,\n (newValue) => {\n watchers.forEach((w) => w.pause());\n left.value = transformRTL(newValue);\n watchers.forEach((w) => w.resume());\n },\n { flush, deep, immediate }\n ));\n }\n const stop = () => {\n watchers.forEach((w) => w.stop());\n };\n return stop;\n}\n\nfunction syncRefs(source, targets, options = {}) {\n const {\n flush = \"sync\",\n deep = false,\n immediate = true\n } = options;\n if (!Array.isArray(targets))\n targets = [targets];\n return watch(\n source,\n (newValue) => targets.forEach((target) => target.value = newValue),\n { flush, deep, immediate }\n );\n}\n\nfunction toRefs(objectRef, options = {}) {\n if (!isRef(objectRef))\n return toRefs$1(objectRef);\n const result = Array.isArray(objectRef.value) ? Array.from({ length: objectRef.value.length }) : {};\n for (const key in objectRef.value) {\n result[key] = customRef(() => ({\n get() {\n return objectRef.value[key];\n },\n set(v) {\n var _a;\n const replaceRef = (_a = toValue(options.replaceRef)) != null ? _a : true;\n if (replaceRef) {\n if (Array.isArray(objectRef.value)) {\n const copy = [...objectRef.value];\n copy[key] = v;\n objectRef.value = copy;\n } else {\n const newObject = { ...objectRef.value, [key]: v };\n Object.setPrototypeOf(newObject, Object.getPrototypeOf(objectRef.value));\n objectRef.value = newObject;\n }\n } else {\n objectRef.value[key] = v;\n }\n }\n }));\n }\n return result;\n}\n\nfunction tryOnBeforeMount(fn, sync = true) {\n if (getCurrentInstance())\n onBeforeMount(fn);\n else if (sync)\n fn();\n else\n nextTick(fn);\n}\n\nfunction tryOnBeforeUnmount(fn) {\n if (getCurrentInstance())\n onBeforeUnmount(fn);\n}\n\nfunction tryOnMounted(fn, sync = true) {\n if (getCurrentInstance())\n onMounted(fn);\n else if (sync)\n fn();\n else\n nextTick(fn);\n}\n\nfunction tryOnUnmounted(fn) {\n if (getCurrentInstance())\n onUnmounted(fn);\n}\n\nfunction createUntil(r, isNot = false) {\n function toMatch(condition, { flush = \"sync\", deep = false, timeout, throwOnTimeout } = {}) {\n let stop = null;\n const watcher = new Promise((resolve) => {\n stop = watch(\n r,\n (v) => {\n if (condition(v) !== isNot) {\n stop == null ? void 0 : stop();\n resolve(v);\n }\n },\n {\n flush,\n deep,\n immediate: true\n }\n );\n });\n const promises = [watcher];\n if (timeout != null) {\n promises.push(\n promiseTimeout(timeout, throwOnTimeout).then(() => toValue(r)).finally(() => stop == null ? void 0 : stop())\n );\n }\n return Promise.race(promises);\n }\n function toBe(value, options) {\n if (!isRef(value))\n return toMatch((v) => v === value, options);\n const { flush = \"sync\", deep = false, timeout, throwOnTimeout } = options != null ? options : {};\n let stop = null;\n const watcher = new Promise((resolve) => {\n stop = watch(\n [r, value],\n ([v1, v2]) => {\n if (isNot !== (v1 === v2)) {\n stop == null ? void 0 : stop();\n resolve(v1);\n }\n },\n {\n flush,\n deep,\n immediate: true\n }\n );\n });\n const promises = [watcher];\n if (timeout != null) {\n promises.push(\n promiseTimeout(timeout, throwOnTimeout).then(() => toValue(r)).finally(() => {\n stop == null ? void 0 : stop();\n return toValue(r);\n })\n );\n }\n return Promise.race(promises);\n }\n function toBeTruthy(options) {\n return toMatch((v) => Boolean(v), options);\n }\n function toBeNull(options) {\n return toBe(null, options);\n }\n function toBeUndefined(options) {\n return toBe(void 0, options);\n }\n function toBeNaN(options) {\n return toMatch(Number.isNaN, options);\n }\n function toContains(value, options) {\n return toMatch((v) => {\n const array = Array.from(v);\n return array.includes(value) || array.includes(toValue(value));\n }, options);\n }\n function changed(options) {\n return changedTimes(1, options);\n }\n function changedTimes(n = 1, options) {\n let count = -1;\n return toMatch(() => {\n count += 1;\n return count >= n;\n }, options);\n }\n if (Array.isArray(toValue(r))) {\n const instance = {\n toMatch,\n toContains,\n changed,\n changedTimes,\n get not() {\n return createUntil(r, !isNot);\n }\n };\n return instance;\n } else {\n const instance = {\n toMatch,\n toBe,\n toBeTruthy,\n toBeNull,\n toBeNaN,\n toBeUndefined,\n changed,\n changedTimes,\n get not() {\n return createUntil(r, !isNot);\n }\n };\n return instance;\n }\n}\nfunction until(r) {\n return createUntil(r);\n}\n\nfunction defaultComparator(value, othVal) {\n return value === othVal;\n}\nfunction useArrayDifference(...args) {\n var _a;\n const list = args[0];\n const values = args[1];\n let compareFn = (_a = args[2]) != null ? _a : defaultComparator;\n if (typeof compareFn === \"string\") {\n const key = compareFn;\n compareFn = (value, othVal) => value[key] === othVal[key];\n }\n return computed(() => toValue(list).filter((x) => toValue(values).findIndex((y) => compareFn(x, y)) === -1));\n}\n\nfunction useArrayEvery(list, fn) {\n return computed(() => toValue(list).every((element, index, array) => fn(toValue(element), index, array)));\n}\n\nfunction useArrayFilter(list, fn) {\n return computed(() => toValue(list).map((i) => toValue(i)).filter(fn));\n}\n\nfunction useArrayFind(list, fn) {\n return computed(() => toValue(\n toValue(list).find((element, index, array) => fn(toValue(element), index, array))\n ));\n}\n\nfunction useArrayFindIndex(list, fn) {\n return computed(() => toValue(list).findIndex((element, index, array) => fn(toValue(element), index, array)));\n}\n\nfunction findLast(arr, cb) {\n let index = arr.length;\n while (index-- > 0) {\n if (cb(arr[index], index, arr))\n return arr[index];\n }\n return void 0;\n}\nfunction useArrayFindLast(list, fn) {\n return computed(() => toValue(\n !Array.prototype.findLast ? findLast(toValue(list), (element, index, array) => fn(toValue(element), index, array)) : toValue(list).findLast((element, index, array) => fn(toValue(element), index, array))\n ));\n}\n\nfunction isArrayIncludesOptions(obj) {\n return isObject(obj) && containsProp(obj, \"formIndex\", \"comparator\");\n}\nfunction useArrayIncludes(...args) {\n var _a;\n const list = args[0];\n const value = args[1];\n let comparator = args[2];\n let formIndex = 0;\n if (isArrayIncludesOptions(comparator)) {\n formIndex = (_a = comparator.fromIndex) != null ? _a : 0;\n comparator = comparator.comparator;\n }\n if (typeof comparator === \"string\") {\n const key = comparator;\n comparator = (element, value2) => element[key] === toValue(value2);\n }\n comparator = comparator != null ? comparator : (element, value2) => element === toValue(value2);\n return computed(() => toValue(list).slice(formIndex).some((element, index, array) => comparator(\n toValue(element),\n toValue(value),\n index,\n toValue(array)\n )));\n}\n\nfunction useArrayJoin(list, separator) {\n return computed(() => toValue(list).map((i) => toValue(i)).join(toValue(separator)));\n}\n\nfunction useArrayMap(list, fn) {\n return computed(() => toValue(list).map((i) => toValue(i)).map(fn));\n}\n\nfunction useArrayReduce(list, reducer, ...args) {\n const reduceCallback = (sum, value, index) => reducer(toValue(sum), toValue(value), index);\n return computed(() => {\n const resolved = toValue(list);\n return args.length ? resolved.reduce(reduceCallback, toValue(args[0])) : resolved.reduce(reduceCallback);\n });\n}\n\nfunction useArraySome(list, fn) {\n return computed(() => toValue(list).some((element, index, array) => fn(toValue(element), index, array)));\n}\n\nfunction uniq(array) {\n return Array.from(new Set(array));\n}\nfunction uniqueElementsBy(array, fn) {\n return array.reduce((acc, v) => {\n if (!acc.some((x) => fn(v, x, array)))\n acc.push(v);\n return acc;\n }, []);\n}\nfunction useArrayUnique(list, compareFn) {\n return computed(() => {\n const resolvedList = toValue(list).map((element) => toValue(element));\n return compareFn ? uniqueElementsBy(resolvedList, compareFn) : uniq(resolvedList);\n });\n}\n\nfunction useCounter(initialValue = 0, options = {}) {\n let _initialValue = unref(initialValue);\n const count = ref(initialValue);\n const {\n max = Number.POSITIVE_INFINITY,\n min = Number.NEGATIVE_INFINITY\n } = options;\n const inc = (delta = 1) => count.value = Math.min(max, count.value + delta);\n const dec = (delta = 1) => count.value = Math.max(min, count.value - delta);\n const get = () => count.value;\n const set = (val) => count.value = Math.max(min, Math.min(max, val));\n const reset = (val = _initialValue) => {\n _initialValue = val;\n return set(val);\n };\n return { count, inc, dec, get, set, reset };\n}\n\nconst REGEX_PARSE = /^(\\d{4})[-/]?(\\d{1,2})?[-/]?(\\d{0,2})[Tt\\s]*(\\d{1,2})?:?(\\d{1,2})?:?(\\d{1,2})?[.:]?(\\d+)?$/;\nconst REGEX_FORMAT = /\\[([^\\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a{1,2}|A{1,2}|m{1,2}|s{1,2}|Z{1,2}|SSS/g;\nfunction defaultMeridiem(hours, minutes, isLowercase, hasPeriod) {\n let m = hours < 12 ? \"AM\" : \"PM\";\n if (hasPeriod)\n m = m.split(\"\").reduce((acc, curr) => acc += `${curr}.`, \"\");\n return isLowercase ? m.toLowerCase() : m;\n}\nfunction formatDate(date, formatStr, options = {}) {\n var _a;\n const years = date.getFullYear();\n const month = date.getMonth();\n const days = date.getDate();\n const hours = date.getHours();\n const minutes = date.getMinutes();\n const seconds = date.getSeconds();\n const milliseconds = date.getMilliseconds();\n const day = date.getDay();\n const meridiem = (_a = options.customMeridiem) != null ? _a : defaultMeridiem;\n const matches = {\n YY: () => String(years).slice(-2),\n YYYY: () => years,\n M: () => month + 1,\n MM: () => `${month + 1}`.padStart(2, \"0\"),\n MMM: () => date.toLocaleDateString(options.locales, { month: \"short\" }),\n MMMM: () => date.toLocaleDateString(options.locales, { month: \"long\" }),\n D: () => String(days),\n DD: () => `${days}`.padStart(2, \"0\"),\n H: () => String(hours),\n HH: () => `${hours}`.padStart(2, \"0\"),\n h: () => `${hours % 12 || 12}`.padStart(1, \"0\"),\n hh: () => `${hours % 12 || 12}`.padStart(2, \"0\"),\n m: () => String(minutes),\n mm: () => `${minutes}`.padStart(2, \"0\"),\n s: () => String(seconds),\n ss: () => `${seconds}`.padStart(2, \"0\"),\n SSS: () => `${milliseconds}`.padStart(3, \"0\"),\n d: () => day,\n dd: () => date.toLocaleDateString(options.locales, { weekday: \"narrow\" }),\n ddd: () => date.toLocaleDateString(options.locales, { weekday: \"short\" }),\n dddd: () => date.toLocaleDateString(options.locales, { weekday: \"long\" }),\n A: () => meridiem(hours, minutes),\n AA: () => meridiem(hours, minutes, false, true),\n a: () => meridiem(hours, minutes, true),\n aa: () => meridiem(hours, minutes, true, true)\n };\n return formatStr.replace(REGEX_FORMAT, (match, $1) => {\n var _a2, _b;\n return (_b = $1 != null ? $1 : (_a2 = matches[match]) == null ? void 0 : _a2.call(matches)) != null ? _b : match;\n });\n}\nfunction normalizeDate(date) {\n if (date === null)\n return new Date(Number.NaN);\n if (date === void 0)\n return /* @__PURE__ */ new Date();\n if (date instanceof Date)\n return new Date(date);\n if (typeof date === \"string\" && !/Z$/i.test(date)) {\n const d = date.match(REGEX_PARSE);\n if (d) {\n const m = d[2] - 1 || 0;\n const ms = (d[7] || \"0\").substring(0, 3);\n return new Date(d[1], m, d[3] || 1, d[4] || 0, d[5] || 0, d[6] || 0, ms);\n }\n }\n return new Date(date);\n}\nfunction useDateFormat(date, formatStr = \"HH:mm:ss\", options = {}) {\n return computed(() => formatDate(normalizeDate(toValue(date)), toValue(formatStr), options));\n}\n\nfunction useIntervalFn(cb, interval = 1e3, options = {}) {\n const {\n immediate = true,\n immediateCallback = false\n } = options;\n let timer = null;\n const isActive = ref(false);\n function clean() {\n if (timer) {\n clearInterval(timer);\n timer = null;\n }\n }\n function pause() {\n isActive.value = false;\n clean();\n }\n function resume() {\n const intervalValue = toValue(interval);\n if (intervalValue <= 0)\n return;\n isActive.value = true;\n if (immediateCallback)\n cb();\n clean();\n timer = setInterval(cb, intervalValue);\n }\n if (immediate && isClient)\n resume();\n if (isRef(interval) || typeof interval === \"function\") {\n const stopWatch = watch(interval, () => {\n if (isActive.value && isClient)\n resume();\n });\n tryOnScopeDispose(stopWatch);\n }\n tryOnScopeDispose(pause);\n return {\n isActive,\n pause,\n resume\n };\n}\n\nfunction useInterval(interval = 1e3, options = {}) {\n const {\n controls: exposeControls = false,\n immediate = true,\n callback\n } = options;\n const counter = ref(0);\n const update = () => counter.value += 1;\n const reset = () => {\n counter.value = 0;\n };\n const controls = useIntervalFn(\n callback ? () => {\n update();\n callback(counter.value);\n } : update,\n interval,\n { immediate }\n );\n if (exposeControls) {\n return {\n counter,\n reset,\n ...controls\n };\n } else {\n return counter;\n }\n}\n\nfunction useLastChanged(source, options = {}) {\n var _a;\n const ms = ref((_a = options.initialValue) != null ? _a : null);\n watch(\n source,\n () => ms.value = timestamp(),\n options\n );\n return ms;\n}\n\nfunction useTimeoutFn(cb, interval, options = {}) {\n const {\n immediate = true\n } = options;\n const isPending = ref(false);\n let timer = null;\n function clear() {\n if (timer) {\n clearTimeout(timer);\n timer = null;\n }\n }\n function stop() {\n isPending.value = false;\n clear();\n }\n function start(...args) {\n clear();\n isPending.value = true;\n timer = setTimeout(() => {\n isPending.value = false;\n timer = null;\n cb(...args);\n }, toValue(interval));\n }\n if (immediate) {\n isPending.value = true;\n if (isClient)\n start();\n }\n tryOnScopeDispose(stop);\n return {\n isPending: readonly(isPending),\n start,\n stop\n };\n}\n\nfunction useTimeout(interval = 1e3, options = {}) {\n const {\n controls: exposeControls = false,\n callback\n } = options;\n const controls = useTimeoutFn(\n callback != null ? callback : noop,\n interval,\n options\n );\n const ready = computed(() => !controls.isPending.value);\n if (exposeControls) {\n return {\n ready,\n ...controls\n };\n } else {\n return ready;\n }\n}\n\nfunction useToNumber(value, options = {}) {\n const {\n method = \"parseFloat\",\n radix,\n nanToZero\n } = options;\n return computed(() => {\n let resolved = toValue(value);\n if (typeof resolved === \"string\")\n resolved = Number[method](resolved, radix);\n if (nanToZero && Number.isNaN(resolved))\n resolved = 0;\n return resolved;\n });\n}\n\nfunction useToString(value) {\n return computed(() => `${toValue(value)}`);\n}\n\nfunction useToggle(initialValue = false, options = {}) {\n const {\n truthyValue = true,\n falsyValue = false\n } = options;\n const valueIsRef = isRef(initialValue);\n const _value = ref(initialValue);\n function toggle(value) {\n if (arguments.length) {\n _value.value = value;\n return _value.value;\n } else {\n const truthy = toValue(truthyValue);\n _value.value = _value.value === truthy ? toValue(falsyValue) : truthy;\n return _value.value;\n }\n }\n if (valueIsRef)\n return toggle;\n else\n return [_value, toggle];\n}\n\nfunction watchArray(source, cb, options) {\n let oldList = (options == null ? void 0 : options.immediate) ? [] : [...source instanceof Function ? source() : Array.isArray(source) ? source : toValue(source)];\n return watch(source, (newList, _, onCleanup) => {\n const oldListRemains = Array.from({ length: oldList.length });\n const added = [];\n for (const obj of newList) {\n let found = false;\n for (let i = 0; i < oldList.length; i++) {\n if (!oldListRemains[i] && obj === oldList[i]) {\n oldListRemains[i] = true;\n found = true;\n break;\n }\n }\n if (!found)\n added.push(obj);\n }\n const removed = oldList.filter((_2, i) => !oldListRemains[i]);\n cb(newList, oldList, added, removed, onCleanup);\n oldList = [...newList];\n }, options);\n}\n\nfunction watchAtMost(source, cb, options) {\n const {\n count,\n ...watchOptions\n } = options;\n const current = ref(0);\n const stop = watchWithFilter(\n source,\n (...args) => {\n current.value += 1;\n if (current.value >= toValue(count))\n nextTick(() => stop());\n cb(...args);\n },\n watchOptions\n );\n return { count: current, stop };\n}\n\nfunction watchDebounced(source, cb, options = {}) {\n const {\n debounce = 0,\n maxWait = void 0,\n ...watchOptions\n } = options;\n return watchWithFilter(\n source,\n cb,\n {\n ...watchOptions,\n eventFilter: debounceFilter(debounce, { maxWait })\n }\n );\n}\n\nfunction watchDeep(source, cb, options) {\n return watch(\n source,\n cb,\n {\n ...options,\n deep: true\n }\n );\n}\n\nfunction watchIgnorable(source, cb, options = {}) {\n const {\n eventFilter = bypassFilter,\n ...watchOptions\n } = options;\n const filteredCb = createFilterWrapper(\n eventFilter,\n cb\n );\n let ignoreUpdates;\n let ignorePrevAsyncUpdates;\n let stop;\n if (watchOptions.flush === \"sync\") {\n const ignore = ref(false);\n ignorePrevAsyncUpdates = () => {\n };\n ignoreUpdates = (updater) => {\n ignore.value = true;\n updater();\n ignore.value = false;\n };\n stop = watch(\n source,\n (...args) => {\n if (!ignore.value)\n filteredCb(...args);\n },\n watchOptions\n );\n } else {\n const disposables = [];\n const ignoreCounter = ref(0);\n const syncCounter = ref(0);\n ignorePrevAsyncUpdates = () => {\n ignoreCounter.value = syncCounter.value;\n };\n disposables.push(\n watch(\n source,\n () => {\n syncCounter.value++;\n },\n { ...watchOptions, flush: \"sync\" }\n )\n );\n ignoreUpdates = (updater) => {\n const syncCounterPrev = syncCounter.value;\n updater();\n ignoreCounter.value += syncCounter.value - syncCounterPrev;\n };\n disposables.push(\n watch(\n source,\n (...args) => {\n const ignore = ignoreCounter.value > 0 && ignoreCounter.value === syncCounter.value;\n ignoreCounter.value = 0;\n syncCounter.value = 0;\n if (ignore)\n return;\n filteredCb(...args);\n },\n watchOptions\n )\n );\n stop = () => {\n disposables.forEach((fn) => fn());\n };\n }\n return { stop, ignoreUpdates, ignorePrevAsyncUpdates };\n}\n\nfunction watchImmediate(source, cb, options) {\n return watch(\n source,\n cb,\n {\n ...options,\n immediate: true\n }\n );\n}\n\nfunction watchOnce(source, cb, options) {\n const stop = watch(source, (...args) => {\n nextTick(() => stop());\n return cb(...args);\n }, options);\n}\n\nfunction watchThrottled(source, cb, options = {}) {\n const {\n throttle = 0,\n trailing = true,\n leading = true,\n ...watchOptions\n } = options;\n return watchWithFilter(\n source,\n cb,\n {\n ...watchOptions,\n eventFilter: throttleFilter(throttle, trailing, leading)\n }\n );\n}\n\nfunction watchTriggerable(source, cb, options = {}) {\n let cleanupFn;\n function onEffect() {\n if (!cleanupFn)\n return;\n const fn = cleanupFn;\n cleanupFn = void 0;\n fn();\n }\n function onCleanup(callback) {\n cleanupFn = callback;\n }\n const _cb = (value, oldValue) => {\n onEffect();\n return cb(value, oldValue, onCleanup);\n };\n const res = watchIgnorable(source, _cb, options);\n const { ignoreUpdates } = res;\n const trigger = () => {\n let res2;\n ignoreUpdates(() => {\n res2 = _cb(getWatchSources(source), getOldValue(source));\n });\n return res2;\n };\n return {\n ...res,\n trigger\n };\n}\nfunction getWatchSources(sources) {\n if (isReactive(sources))\n return sources;\n if (Array.isArray(sources))\n return sources.map((item) => toValue(item));\n return toValue(sources);\n}\nfunction getOldValue(source) {\n return Array.isArray(source) ? source.map(() => void 0) : void 0;\n}\n\nfunction whenever(source, cb, options) {\n return watch(\n source,\n (v, ov, onInvalidate) => {\n if (v)\n cb(v, ov, onInvalidate);\n },\n options\n );\n}\n\nexport { assert, refAutoReset as autoResetRef, bypassFilter, camelize, clamp, computedEager, computedWithControl, containsProp, computedWithControl as controlledComputed, controlledRef, createEventHook, createFilterWrapper, createGlobalState, createInjectionState, reactify as createReactiveFn, createSharedComposable, createSingletonPromise, debounceFilter, refDebounced as debouncedRef, watchDebounced as debouncedWatch, directiveHooks, computedEager as eagerComputed, extendRef, formatDate, get, hasOwn, hyphenate, identity, watchIgnorable as ignorableWatch, increaseWithUnit, injectLocal, invoke, isClient, isDef, isDefined, isIOS, isObject, makeDestructurable, noop, normalizeDate, notNullish, now, objectEntries, objectOmit, objectPick, pausableFilter, watchPausable as pausableWatch, promiseTimeout, provideLocal, rand, reactify, reactifyObject, reactiveComputed, reactiveOmit, reactivePick, refAutoReset, refDebounced, refDefault, refThrottled, refWithControl, resolveRef, resolveUnref, set, syncRef, syncRefs, throttleFilter, refThrottled as throttledRef, watchThrottled as throttledWatch, timestamp, toReactive, toRef, toRefs, toValue, tryOnBeforeMount, tryOnBeforeUnmount, tryOnMounted, tryOnScopeDispose, tryOnUnmounted, until, useArrayDifference, useArrayEvery, useArrayFilter, useArrayFind, useArrayFindIndex, useArrayFindLast, useArrayIncludes, useArrayJoin, useArrayMap, useArrayReduce, useArraySome, useArrayUnique, useCounter, useDateFormat, refDebounced as useDebounce, useDebounceFn, useInterval, useIntervalFn, useLastChanged, refThrottled as useThrottle, useThrottleFn, useTimeout, useTimeoutFn, useToNumber, useToString, useToggle, watchArray, watchAtMost, watchDebounced, watchDeep, watchIgnorable, watchImmediate, watchOnce, watchPausable, watchThrottled, watchTriggerable, watchWithFilter, whenever };\n","import Vue from 'vue'\nimport { getCurrentInstance } from 'vue'\n\nvar isVue2 = true\nvar isVue3 = false\nvar Vue2 = Vue\nvar warn = Vue.util.warn\n\nfunction install() {}\n\n// createApp polyfill\nexport function createApp(rootComponent, rootProps) {\n var vm\n var provide = {}\n var app = {\n config: Vue.config,\n use: Vue.use.bind(Vue),\n mixin: Vue.mixin.bind(Vue),\n component: Vue.component.bind(Vue),\n provide: function (key, value) {\n provide[key] = value\n return this\n },\n directive: function (name, dir) {\n if (dir) {\n Vue.directive(name, dir)\n return app\n } else {\n return Vue.directive(name)\n }\n },\n mount: function (el, hydrating) {\n if (!vm) {\n vm = new Vue(Object.assign({ propsData: rootProps }, rootComponent, { provide: Object.assign(provide, rootComponent.provide) }))\n vm.$mount(el, hydrating)\n return vm\n } else {\n return vm\n }\n },\n unmount: function () {\n if (vm) {\n vm.$destroy()\n vm = undefined\n }\n },\n }\n return app\n}\n\nexport {\n Vue,\n Vue2,\n isVue2,\n isVue3,\n install,\n warn\n}\n\n// Vue 3 components mock\nfunction createMockComponent(name) {\n return {\n setup() {\n throw new Error('[vue-demi] ' + name + ' is not supported in Vue 2. It\\'s provided to avoid compiler errors.')\n }\n }\n}\nexport var Fragment = /*#__PURE__*/ createMockComponent('Fragment')\nexport var Transition = /*#__PURE__*/ createMockComponent('Transition')\nexport var TransitionGroup = /*#__PURE__*/ createMockComponent('TransitionGroup')\nexport var Teleport = /*#__PURE__*/ createMockComponent('Teleport')\nexport var Suspense = /*#__PURE__*/ createMockComponent('Suspense')\nexport var KeepAlive = /*#__PURE__*/ createMockComponent('KeepAlive')\n\nexport * from 'vue'\n\n// Not implemented https://github.com/vuejs/core/pull/8111, falls back to getCurrentInstance()\nexport function hasInjectionContext() {\n return !!getCurrentInstance()\n}\n","import { noop, makeDestructurable, camelize, toValue, isClient, isObject, tryOnScopeDispose, isIOS, tryOnMounted, computedWithControl, objectOmit, promiseTimeout, until, increaseWithUnit, objectEntries, useTimeoutFn, pausableWatch, toRef, createEventHook, timestamp, pausableFilter, watchIgnorable, debounceFilter, createFilterWrapper, bypassFilter, createSingletonPromise, toRefs, useIntervalFn, notNullish, containsProp, hasOwn, throttleFilter, useDebounceFn, useThrottleFn, clamp, syncRef, objectPick, tryOnUnmounted, watchWithFilter, identity, isDef } from '@vueuse/shared';\nexport * from '@vueuse/shared';\nimport { isRef, ref, shallowRef, watchEffect, computed, inject, isVue3, version, defineComponent, h, TransitionGroup, shallowReactive, Fragment, watch, getCurrentInstance, customRef, onUpdated, onMounted, readonly, nextTick, reactive, markRaw, getCurrentScope, isVue2, set, del, isReadonly, onBeforeUpdate } from 'vue-demi';\n\nfunction computedAsync(evaluationCallback, initialState, optionsOrRef) {\n let options;\n if (isRef(optionsOrRef)) {\n options = {\n evaluating: optionsOrRef\n };\n } else {\n options = optionsOrRef || {};\n }\n const {\n lazy = false,\n evaluating = void 0,\n shallow = true,\n onError = noop\n } = options;\n const started = ref(!lazy);\n const current = shallow ? shallowRef(initialState) : ref(initialState);\n let counter = 0;\n watchEffect(async (onInvalidate) => {\n if (!started.value)\n return;\n counter++;\n const counterAtBeginning = counter;\n let hasFinished = false;\n if (evaluating) {\n Promise.resolve().then(() => {\n evaluating.value = true;\n });\n }\n try {\n const result = await evaluationCallback((cancelCallback) => {\n onInvalidate(() => {\n if (evaluating)\n evaluating.value = false;\n if (!hasFinished)\n cancelCallback();\n });\n });\n if (counterAtBeginning === counter)\n current.value = result;\n } catch (e) {\n onError(e);\n } finally {\n if (evaluating && counterAtBeginning === counter)\n evaluating.value = false;\n hasFinished = true;\n }\n });\n if (lazy) {\n return computed(() => {\n started.value = true;\n return current.value;\n });\n } else {\n return current;\n }\n}\n\nfunction computedInject(key, options, defaultSource, treatDefaultAsFactory) {\n let source = inject(key);\n if (defaultSource)\n source = inject(key, defaultSource);\n if (treatDefaultAsFactory)\n source = inject(key, defaultSource, treatDefaultAsFactory);\n if (typeof options === \"function\") {\n return computed((ctx) => options(source, ctx));\n } else {\n return computed({\n get: (ctx) => options.get(source, ctx),\n set: options.set\n });\n }\n}\n\nfunction createReusableTemplate(options = {}) {\n if (!isVue3 && !version.startsWith(\"2.7.\")) {\n if (process.env.NODE_ENV !== \"production\")\n throw new Error(\"[VueUse] createReusableTemplate only works in Vue 2.7 or above.\");\n return;\n }\n const {\n inheritAttrs = true\n } = options;\n const render = shallowRef();\n const define = /* #__PURE__ */ defineComponent({\n setup(_, { slots }) {\n return () => {\n render.value = slots.default;\n };\n }\n });\n const reuse = /* #__PURE__ */ defineComponent({\n inheritAttrs,\n setup(_, { attrs, slots }) {\n return () => {\n var _a;\n if (!render.value && process.env.NODE_ENV !== \"production\")\n throw new Error(\"[VueUse] Failed to find the definition of reusable template\");\n const vnode = (_a = render.value) == null ? void 0 : _a.call(render, { ...keysToCamelKebabCase(attrs), $slots: slots });\n return inheritAttrs && (vnode == null ? void 0 : vnode.length) === 1 ? vnode[0] : vnode;\n };\n }\n });\n return makeDestructurable(\n { define, reuse },\n [define, reuse]\n );\n}\nfunction keysToCamelKebabCase(obj) {\n const newObj = {};\n for (const key in obj)\n newObj[camelize(key)] = obj[key];\n return newObj;\n}\n\nfunction createTemplatePromise(options = {}) {\n if (!isVue3) {\n if (process.env.NODE_ENV !== \"production\")\n throw new Error(\"[VueUse] createTemplatePromise only works in Vue 3 or above.\");\n return;\n }\n let index = 0;\n const instances = ref([]);\n function create(...args) {\n const props = shallowReactive({\n key: index++,\n args,\n promise: void 0,\n resolve: () => {\n },\n reject: () => {\n },\n isResolving: false,\n options\n });\n instances.value.push(props);\n props.promise = new Promise((_resolve, _reject) => {\n props.resolve = (v) => {\n props.isResolving = true;\n return _resolve(v);\n };\n props.reject = _reject;\n }).finally(() => {\n props.promise = void 0;\n const index2 = instances.value.indexOf(props);\n if (index2 !== -1)\n instances.value.splice(index2, 1);\n });\n return props.promise;\n }\n function start(...args) {\n if (options.singleton && instances.value.length > 0)\n return instances.value[0].promise;\n return create(...args);\n }\n const component = /* #__PURE__ */ defineComponent((_, { slots }) => {\n const renderList = () => instances.value.map((props) => {\n var _a;\n return h(Fragment, { key: props.key }, (_a = slots.default) == null ? void 0 : _a.call(slots, props));\n });\n if (options.transition)\n return () => h(TransitionGroup, options.transition, renderList);\n return renderList;\n });\n component.start = start;\n return component;\n}\n\nfunction createUnrefFn(fn) {\n return function(...args) {\n return fn.apply(this, args.map((i) => toValue(i)));\n };\n}\n\nfunction unrefElement(elRef) {\n var _a;\n const plain = toValue(elRef);\n return (_a = plain == null ? void 0 : plain.$el) != null ? _a : plain;\n}\n\nconst defaultWindow = isClient ? window : void 0;\nconst defaultDocument = isClient ? window.document : void 0;\nconst defaultNavigator = isClient ? window.navigator : void 0;\nconst defaultLocation = isClient ? window.location : void 0;\n\nfunction useEventListener(...args) {\n let target;\n let events;\n let listeners;\n let options;\n if (typeof args[0] === \"string\" || Array.isArray(args[0])) {\n [events, listeners, options] = args;\n target = defaultWindow;\n } else {\n [target, events, listeners, options] = args;\n }\n if (!target)\n return noop;\n if (!Array.isArray(events))\n events = [events];\n if (!Array.isArray(listeners))\n listeners = [listeners];\n const cleanups = [];\n const cleanup = () => {\n cleanups.forEach((fn) => fn());\n cleanups.length = 0;\n };\n const register = (el, event, listener, options2) => {\n el.addEventListener(event, listener, options2);\n return () => el.removeEventListener(event, listener, options2);\n };\n const stopWatch = watch(\n () => [unrefElement(target), toValue(options)],\n ([el, options2]) => {\n cleanup();\n if (!el)\n return;\n const optionsClone = isObject(options2) ? { ...options2 } : options2;\n cleanups.push(\n ...events.flatMap((event) => {\n return listeners.map((listener) => register(el, event, listener, optionsClone));\n })\n );\n },\n { immediate: true, flush: \"post\" }\n );\n const stop = () => {\n stopWatch();\n cleanup();\n };\n tryOnScopeDispose(stop);\n return stop;\n}\n\nlet _iOSWorkaround = false;\nfunction onClickOutside(target, handler, options = {}) {\n const { window = defaultWindow, ignore = [], capture = true, detectIframe = false } = options;\n if (!window)\n return;\n if (isIOS && !_iOSWorkaround) {\n _iOSWorkaround = true;\n Array.from(window.document.body.children).forEach((el) => el.addEventListener(\"click\", noop));\n window.document.documentElement.addEventListener(\"click\", noop);\n }\n let shouldListen = true;\n const shouldIgnore = (event) => {\n return ignore.some((target2) => {\n if (typeof target2 === \"string\") {\n return Array.from(window.document.querySelectorAll(target2)).some((el) => el === event.target || event.composedPath().includes(el));\n } else {\n const el = unrefElement(target2);\n return el && (event.target === el || event.composedPath().includes(el));\n }\n });\n };\n const listener = (event) => {\n const el = unrefElement(target);\n if (!el || el === event.target || event.composedPath().includes(el))\n return;\n if (event.detail === 0)\n shouldListen = !shouldIgnore(event);\n if (!shouldListen) {\n shouldListen = true;\n return;\n }\n handler(event);\n };\n const cleanup = [\n useEventListener(window, \"click\", listener, { passive: true, capture }),\n useEventListener(window, \"pointerdown\", (e) => {\n const el = unrefElement(target);\n if (el)\n shouldListen = !e.composedPath().includes(el) && !shouldIgnore(e);\n }, { passive: true }),\n detectIframe && useEventListener(window, \"blur\", (event) => {\n setTimeout(() => {\n var _a;\n const el = unrefElement(target);\n if (((_a = window.document.activeElement) == null ? void 0 : _a.tagName) === \"IFRAME\" && !(el == null ? void 0 : el.contains(window.document.activeElement)))\n handler(event);\n }, 0);\n })\n ].filter(Boolean);\n const stop = () => cleanup.forEach((fn) => fn());\n return stop;\n}\n\nfunction createKeyPredicate(keyFilter) {\n if (typeof keyFilter === \"function\")\n return keyFilter;\n else if (typeof keyFilter === \"string\")\n return (event) => event.key === keyFilter;\n else if (Array.isArray(keyFilter))\n return (event) => keyFilter.includes(event.key);\n return () => true;\n}\nfunction onKeyStroke(...args) {\n let key;\n let handler;\n let options = {};\n if (args.length === 3) {\n key = args[0];\n handler = args[1];\n options = args[2];\n } else if (args.length === 2) {\n if (typeof args[1] === \"object\") {\n key = true;\n handler = args[0];\n options = args[1];\n } else {\n key = args[0];\n handler = args[1];\n }\n } else {\n key = true;\n handler = args[0];\n }\n const {\n target = defaultWindow,\n eventName = \"keydown\",\n passive = false,\n dedupe = false\n } = options;\n const predicate = createKeyPredicate(key);\n const listener = (e) => {\n if (e.repeat && toValue(dedupe))\n return;\n if (predicate(e))\n handler(e);\n };\n return useEventListener(target, eventName, listener, passive);\n}\nfunction onKeyDown(key, handler, options = {}) {\n return onKeyStroke(key, handler, { ...options, eventName: \"keydown\" });\n}\nfunction onKeyPressed(key, handler, options = {}) {\n return onKeyStroke(key, handler, { ...options, eventName: \"keypress\" });\n}\nfunction onKeyUp(key, handler, options = {}) {\n return onKeyStroke(key, handler, { ...options, eventName: \"keyup\" });\n}\n\nconst DEFAULT_DELAY = 500;\nfunction onLongPress(target, handler, options) {\n var _a, _b;\n const elementRef = computed(() => unrefElement(target));\n let timeout;\n function clear() {\n if (timeout) {\n clearTimeout(timeout);\n timeout = void 0;\n }\n }\n function onDown(ev) {\n var _a2, _b2, _c, _d;\n if (((_a2 = options == null ? void 0 : options.modifiers) == null ? void 0 : _a2.self) && ev.target !== elementRef.value)\n return;\n clear();\n if ((_b2 = options == null ? void 0 : options.modifiers) == null ? void 0 : _b2.prevent)\n ev.preventDefault();\n if ((_c = options == null ? void 0 : options.modifiers) == null ? void 0 : _c.stop)\n ev.stopPropagation();\n timeout = setTimeout(\n () => handler(ev),\n (_d = options == null ? void 0 : options.delay) != null ? _d : DEFAULT_DELAY\n );\n }\n const listenerOptions = {\n capture: (_a = options == null ? void 0 : options.modifiers) == null ? void 0 : _a.capture,\n once: (_b = options == null ? void 0 : options.modifiers) == null ? void 0 : _b.once\n };\n useEventListener(elementRef, \"pointerdown\", onDown, listenerOptions);\n useEventListener(elementRef, [\"pointerup\", \"pointerleave\"], clear, listenerOptions);\n}\n\nfunction isFocusedElementEditable() {\n const { activeElement, body } = document;\n if (!activeElement)\n return false;\n if (activeElement === body)\n return false;\n switch (activeElement.tagName) {\n case \"INPUT\":\n case \"TEXTAREA\":\n return true;\n }\n return activeElement.hasAttribute(\"contenteditable\");\n}\nfunction isTypedCharValid({\n keyCode,\n metaKey,\n ctrlKey,\n altKey\n}) {\n if (metaKey || ctrlKey || altKey)\n return false;\n if (keyCode >= 48 && keyCode <= 57)\n return true;\n if (keyCode >= 65 && keyCode <= 90)\n return true;\n if (keyCode >= 97 && keyCode <= 122)\n return true;\n return false;\n}\nfunction onStartTyping(callback, options = {}) {\n const { document: document2 = defaultDocument } = options;\n const keydown = (event) => {\n !isFocusedElementEditable() && isTypedCharValid(event) && callback(event);\n };\n if (document2)\n useEventListener(document2, \"keydown\", keydown, { passive: true });\n}\n\nfunction templateRef(key, initialValue = null) {\n const instance = getCurrentInstance();\n let _trigger = () => {\n };\n const element = customRef((track, trigger) => {\n _trigger = trigger;\n return {\n get() {\n var _a, _b;\n track();\n return (_b = (_a = instance == null ? void 0 : instance.proxy) == null ? void 0 : _a.$refs[key]) != null ? _b : initialValue;\n },\n set() {\n }\n };\n });\n tryOnMounted(_trigger);\n onUpdated(_trigger);\n return element;\n}\n\nfunction useActiveElement(options = {}) {\n var _a;\n const {\n window = defaultWindow,\n deep = true\n } = options;\n const document = (_a = options.document) != null ? _a : window == null ? void 0 : window.document;\n const getDeepActiveElement = () => {\n var _a2;\n let element = document == null ? void 0 : document.activeElement;\n if (deep) {\n while (element == null ? void 0 : element.shadowRoot)\n element = (_a2 = element == null ? void 0 : element.shadowRoot) == null ? void 0 : _a2.activeElement;\n }\n return element;\n };\n const activeElement = computedWithControl(\n () => null,\n () => getDeepActiveElement()\n );\n if (window) {\n useEventListener(window, \"blur\", (event) => {\n if (event.relatedTarget !== null)\n return;\n activeElement.trigger();\n }, true);\n useEventListener(window, \"focus\", activeElement.trigger, true);\n }\n return activeElement;\n}\n\nfunction useMounted() {\n const isMounted = ref(false);\n if (getCurrentInstance()) {\n onMounted(() => {\n isMounted.value = true;\n });\n }\n return isMounted;\n}\n\nfunction useSupported(callback) {\n const isMounted = useMounted();\n return computed(() => {\n isMounted.value;\n return Boolean(callback());\n });\n}\n\nfunction useRafFn(fn, options = {}) {\n const {\n immediate = true,\n fpsLimit = void 0,\n window = defaultWindow\n } = options;\n const isActive = ref(false);\n const intervalLimit = fpsLimit ? 1e3 / fpsLimit : null;\n let previousFrameTimestamp = 0;\n let rafId = null;\n function loop(timestamp) {\n if (!isActive.value || !window)\n return;\n const delta = timestamp - (previousFrameTimestamp || timestamp);\n if (intervalLimit && delta < intervalLimit) {\n rafId = window.requestAnimationFrame(loop);\n return;\n }\n fn({ delta, timestamp });\n previousFrameTimestamp = timestamp;\n rafId = window.requestAnimationFrame(loop);\n }\n function resume() {\n if (!isActive.value && window) {\n isActive.value = true;\n rafId = window.requestAnimationFrame(loop);\n }\n }\n function pause() {\n isActive.value = false;\n if (rafId != null && window) {\n window.cancelAnimationFrame(rafId);\n rafId = null;\n }\n }\n if (immediate)\n resume();\n tryOnScopeDispose(pause);\n return {\n isActive: readonly(isActive),\n pause,\n resume\n };\n}\n\nfunction useAnimate(target, keyframes, options) {\n let config;\n let animateOptions;\n if (isObject(options)) {\n config = options;\n animateOptions = objectOmit(options, [\"window\", \"immediate\", \"commitStyles\", \"persist\", \"onReady\", \"onError\"]);\n } else {\n config = { duration: options };\n animateOptions = options;\n }\n const {\n window = defaultWindow,\n immediate = true,\n commitStyles,\n persist,\n playbackRate: _playbackRate = 1,\n onReady,\n onError = (e) => {\n console.error(e);\n }\n } = config;\n const isSupported = useSupported(() => window && HTMLElement && \"animate\" in HTMLElement.prototype);\n const animate = shallowRef(void 0);\n const store = shallowReactive({\n startTime: null,\n currentTime: null,\n timeline: null,\n playbackRate: _playbackRate,\n pending: false,\n playState: immediate ? \"idle\" : \"paused\",\n replaceState: \"active\"\n });\n const pending = computed(() => store.pending);\n const playState = computed(() => store.playState);\n const replaceState = computed(() => store.replaceState);\n const startTime = computed({\n get() {\n return store.startTime;\n },\n set(value) {\n store.startTime = value;\n if (animate.value)\n animate.value.startTime = value;\n }\n });\n const currentTime = computed({\n get() {\n return store.currentTime;\n },\n set(value) {\n store.currentTime = value;\n if (animate.value) {\n animate.value.currentTime = value;\n syncResume();\n }\n }\n });\n const timeline = computed({\n get() {\n return store.timeline;\n },\n set(value) {\n store.timeline = value;\n if (animate.value)\n animate.value.timeline = value;\n }\n });\n const playbackRate = computed({\n get() {\n return store.playbackRate;\n },\n set(value) {\n store.playbackRate = value;\n if (animate.value)\n animate.value.playbackRate = value;\n }\n });\n const play = () => {\n if (animate.value) {\n try {\n animate.value.play();\n syncResume();\n } catch (e) {\n syncPause();\n onError(e);\n }\n } else {\n update();\n }\n };\n const pause = () => {\n var _a;\n try {\n (_a = animate.value) == null ? void 0 : _a.pause();\n syncPause();\n } catch (e) {\n onError(e);\n }\n };\n const reverse = () => {\n var _a;\n !animate.value && update();\n try {\n (_a = animate.value) == null ? void 0 : _a.reverse();\n syncResume();\n } catch (e) {\n syncPause();\n onError(e);\n }\n };\n const finish = () => {\n var _a;\n try {\n (_a = animate.value) == null ? void 0 : _a.finish();\n syncPause();\n } catch (e) {\n onError(e);\n }\n };\n const cancel = () => {\n var _a;\n try {\n (_a = animate.value) == null ? void 0 : _a.cancel();\n syncPause();\n } catch (e) {\n onError(e);\n }\n };\n watch(() => unrefElement(target), (el) => {\n el && update();\n });\n watch(() => keyframes, (value) => {\n !animate.value && update();\n if (!unrefElement(target) && animate.value) {\n animate.value.effect = new KeyframeEffect(\n unrefElement(target),\n toValue(value),\n animateOptions\n );\n }\n }, { deep: true });\n tryOnMounted(() => {\n nextTick(() => update(true));\n });\n tryOnScopeDispose(cancel);\n function update(init) {\n const el = unrefElement(target);\n if (!isSupported.value || !el)\n return;\n animate.value = el.animate(toValue(keyframes), animateOptions);\n if (commitStyles)\n animate.value.commitStyles();\n if (persist)\n animate.value.persist();\n if (_playbackRate !== 1)\n animate.value.playbackRate = _playbackRate;\n if (init && !immediate)\n animate.value.pause();\n else\n syncResume();\n onReady == null ? void 0 : onReady(animate.value);\n }\n useEventListener(animate, [\"cancel\", \"finish\", \"remove\"], syncPause);\n const { resume: resumeRef, pause: pauseRef } = useRafFn(() => {\n if (!animate.value)\n return;\n store.pending = animate.value.pending;\n store.playState = animate.value.playState;\n store.replaceState = animate.value.replaceState;\n store.startTime = animate.value.startTime;\n store.currentTime = animate.value.currentTime;\n store.timeline = animate.value.timeline;\n store.playbackRate = animate.value.playbackRate;\n }, { immediate: false });\n function syncResume() {\n if (isSupported.value)\n resumeRef();\n }\n function syncPause() {\n if (isSupported.value && window)\n window.requestAnimationFrame(pauseRef);\n }\n return {\n isSupported,\n animate,\n // actions\n play,\n pause,\n reverse,\n finish,\n cancel,\n // state\n pending,\n playState,\n replaceState,\n startTime,\n currentTime,\n timeline,\n playbackRate\n };\n}\n\nfunction useAsyncQueue(tasks, options) {\n const {\n interrupt = true,\n onError = noop,\n onFinished = noop,\n signal\n } = options || {};\n const promiseState = {\n aborted: \"aborted\",\n fulfilled: \"fulfilled\",\n pending: \"pending\",\n rejected: \"rejected\"\n };\n const initialResult = Array.from(Array.from({ length: tasks.length }), () => ({ state: promiseState.pending, data: null }));\n const result = reactive(initialResult);\n const activeIndex = ref(-1);\n if (!tasks || tasks.length === 0) {\n onFinished();\n return {\n activeIndex,\n result\n };\n }\n function updateResult(state, res) {\n activeIndex.value++;\n result[activeIndex.value].data = res;\n result[activeIndex.value].state = state;\n }\n tasks.reduce((prev, curr) => {\n return prev.then((prevRes) => {\n var _a;\n if (signal == null ? void 0 : signal.aborted) {\n updateResult(promiseState.aborted, new Error(\"aborted\"));\n return;\n }\n if (((_a = result[activeIndex.value]) == null ? void 0 : _a.state) === promiseState.rejected && interrupt) {\n onFinished();\n return;\n }\n const done = curr(prevRes).then((currentRes) => {\n updateResult(promiseState.fulfilled, currentRes);\n activeIndex.value === tasks.length - 1 && onFinished();\n return currentRes;\n });\n if (!signal)\n return done;\n return Promise.race([done, whenAborted(signal)]);\n }).catch((e) => {\n if (signal == null ? void 0 : signal.aborted) {\n updateResult(promiseState.aborted, e);\n return e;\n }\n updateResult(promiseState.rejected, e);\n onError();\n return e;\n });\n }, Promise.resolve());\n return {\n activeIndex,\n result\n };\n}\nfunction whenAborted(signal) {\n return new Promise((resolve, reject) => {\n const error = new Error(\"aborted\");\n if (signal.aborted)\n reject(error);\n else\n signal.addEventListener(\"abort\", () => reject(error), { once: true });\n });\n}\n\nfunction useAsyncState(promise, initialState, options) {\n const {\n immediate = true,\n delay = 0,\n onError = noop,\n onSuccess = noop,\n resetOnExecute = true,\n shallow = true,\n throwError\n } = options != null ? options : {};\n const state = shallow ? shallowRef(initialState) : ref(initialState);\n const isReady = ref(false);\n const isLoading = ref(false);\n const error = shallowRef(void 0);\n async function execute(delay2 = 0, ...args) {\n if (resetOnExecute)\n state.value = initialState;\n error.value = void 0;\n isReady.value = false;\n isLoading.value = true;\n if (delay2 > 0)\n await promiseTimeout(delay2);\n const _promise = typeof promise === \"function\" ? promise(...args) : promise;\n try {\n const data = await _promise;\n state.value = data;\n isReady.value = true;\n onSuccess(data);\n } catch (e) {\n error.value = e;\n onError(e);\n if (throwError)\n throw e;\n } finally {\n isLoading.value = false;\n }\n return state.value;\n }\n if (immediate)\n execute(delay);\n const shell = {\n state,\n isReady,\n isLoading,\n error,\n execute\n };\n function waitUntilIsLoaded() {\n return new Promise((resolve, reject) => {\n until(isLoading).toBe(false).then(() => resolve(shell)).catch(reject);\n });\n }\n return {\n ...shell,\n then(onFulfilled, onRejected) {\n return waitUntilIsLoaded().then(onFulfilled, onRejected);\n }\n };\n}\n\nconst defaults = {\n array: (v) => JSON.stringify(v),\n object: (v) => JSON.stringify(v),\n set: (v) => JSON.stringify(Array.from(v)),\n map: (v) => JSON.stringify(Object.fromEntries(v)),\n null: () => \"\"\n};\nfunction getDefaultSerialization(target) {\n if (!target)\n return defaults.null;\n if (target instanceof Map)\n return defaults.map;\n else if (target instanceof Set)\n return defaults.set;\n else if (Array.isArray(target))\n return defaults.array;\n else\n return defaults.object;\n}\n\nfunction useBase64(target, options) {\n const base64 = ref(\"\");\n const promise = ref();\n function execute() {\n if (!isClient)\n return;\n promise.value = new Promise((resolve, reject) => {\n try {\n const _target = toValue(target);\n if (_target == null) {\n resolve(\"\");\n } else if (typeof _target === \"string\") {\n resolve(blobToBase64(new Blob([_target], { type: \"text/plain\" })));\n } else if (_target instanceof Blob) {\n resolve(blobToBase64(_target));\n } else if (_target instanceof ArrayBuffer) {\n resolve(window.btoa(String.fromCharCode(...new Uint8Array(_target))));\n } else if (_target instanceof HTMLCanvasElement) {\n resolve(_target.toDataURL(options == null ? void 0 : options.type, options == null ? void 0 : options.quality));\n } else if (_target instanceof HTMLImageElement) {\n const img = _target.cloneNode(false);\n img.crossOrigin = \"Anonymous\";\n imgLoaded(img).then(() => {\n const canvas = document.createElement(\"canvas\");\n const ctx = canvas.getContext(\"2d\");\n canvas.width = img.width;\n canvas.height = img.height;\n ctx.drawImage(img, 0, 0, canvas.width, canvas.height);\n resolve(canvas.toDataURL(options == null ? void 0 : options.type, options == null ? void 0 : options.quality));\n }).catch(reject);\n } else if (typeof _target === \"object\") {\n const _serializeFn = (options == null ? void 0 : options.serializer) || getDefaultSerialization(_target);\n const serialized = _serializeFn(_target);\n return resolve(blobToBase64(new Blob([serialized], { type: \"application/json\" })));\n } else {\n reject(new Error(\"target is unsupported types\"));\n }\n } catch (error) {\n reject(error);\n }\n });\n promise.value.then((res) => base64.value = res);\n return promise.value;\n }\n if (isRef(target) || typeof target === \"function\")\n watch(target, execute, { immediate: true });\n else\n execute();\n return {\n base64,\n promise,\n execute\n };\n}\nfunction imgLoaded(img) {\n return new Promise((resolve, reject) => {\n if (!img.complete) {\n img.onload = () => {\n resolve();\n };\n img.onerror = reject;\n } else {\n resolve();\n }\n });\n}\nfunction blobToBase64(blob) {\n return new Promise((resolve, reject) => {\n const fr = new FileReader();\n fr.onload = (e) => {\n resolve(e.target.result);\n };\n fr.onerror = reject;\n fr.readAsDataURL(blob);\n });\n}\n\nfunction useBattery(options = {}) {\n const { navigator = defaultNavigator } = options;\n const events = [\"chargingchange\", \"chargingtimechange\", \"dischargingtimechange\", \"levelchange\"];\n const isSupported = useSupported(() => navigator && \"getBattery\" in navigator);\n const charging = ref(false);\n const chargingTime = ref(0);\n const dischargingTime = ref(0);\n const level = ref(1);\n let battery;\n function updateBatteryInfo() {\n charging.value = this.charging;\n chargingTime.value = this.chargingTime || 0;\n dischargingTime.value = this.dischargingTime || 0;\n level.value = this.level;\n }\n if (isSupported.value) {\n navigator.getBattery().then((_battery) => {\n battery = _battery;\n updateBatteryInfo.call(battery);\n useEventListener(battery, events, updateBatteryInfo, { passive: true });\n });\n }\n return {\n isSupported,\n charging,\n chargingTime,\n dischargingTime,\n level\n };\n}\n\nfunction useBluetooth(options) {\n let {\n acceptAllDevices = false\n } = options || {};\n const {\n filters = void 0,\n optionalServices = void 0,\n navigator = defaultNavigator\n } = options || {};\n const isSupported = useSupported(() => navigator && \"bluetooth\" in navigator);\n const device = shallowRef(void 0);\n const error = shallowRef(null);\n watch(device, () => {\n connectToBluetoothGATTServer();\n });\n async function requestDevice() {\n if (!isSupported.value)\n return;\n error.value = null;\n if (filters && filters.length > 0)\n acceptAllDevices = false;\n try {\n device.value = await (navigator == null ? void 0 : navigator.bluetooth.requestDevice({\n acceptAllDevices,\n filters,\n optionalServices\n }));\n } catch (err) {\n error.value = err;\n }\n }\n const server = ref();\n const isConnected = computed(() => {\n var _a;\n return ((_a = server.value) == null ? void 0 : _a.connected) || false;\n });\n async function connectToBluetoothGATTServer() {\n error.value = null;\n if (device.value && device.value.gatt) {\n device.value.addEventListener(\"gattserverdisconnected\", () => {\n });\n try {\n server.value = await device.value.gatt.connect();\n } catch (err) {\n error.value = err;\n }\n }\n }\n tryOnMounted(() => {\n var _a;\n if (device.value)\n (_a = device.value.gatt) == null ? void 0 : _a.connect();\n });\n tryOnScopeDispose(() => {\n var _a;\n if (device.value)\n (_a = device.value.gatt) == null ? void 0 : _a.disconnect();\n });\n return {\n isSupported,\n isConnected,\n // Device:\n device,\n requestDevice,\n // Server:\n server,\n // Errors:\n error\n };\n}\n\nfunction useMediaQuery(query, options = {}) {\n const { window = defaultWindow } = options;\n const isSupported = useSupported(() => window && \"matchMedia\" in window && typeof window.matchMedia === \"function\");\n let mediaQuery;\n const matches = ref(false);\n const handler = (event) => {\n matches.value = event.matches;\n };\n const cleanup = () => {\n if (!mediaQuery)\n return;\n if (\"removeEventListener\" in mediaQuery)\n mediaQuery.removeEventListener(\"change\", handler);\n else\n mediaQuery.removeListener(handler);\n };\n const stopWatch = watchEffect(() => {\n if (!isSupported.value)\n return;\n cleanup();\n mediaQuery = window.matchMedia(toValue(query));\n if (\"addEventListener\" in mediaQuery)\n mediaQuery.addEventListener(\"change\", handler);\n else\n mediaQuery.addListener(handler);\n matches.value = mediaQuery.matches;\n });\n tryOnScopeDispose(() => {\n stopWatch();\n cleanup();\n mediaQuery = void 0;\n });\n return matches;\n}\n\nconst breakpointsTailwind = {\n \"sm\": 640,\n \"md\": 768,\n \"lg\": 1024,\n \"xl\": 1280,\n \"2xl\": 1536\n};\nconst breakpointsBootstrapV5 = {\n xs: 0,\n sm: 576,\n md: 768,\n lg: 992,\n xl: 1200,\n xxl: 1400\n};\nconst breakpointsVuetify = {\n xs: 600,\n sm: 960,\n md: 1264,\n lg: 1904\n};\nconst breakpointsAntDesign = {\n xs: 480,\n sm: 576,\n md: 768,\n lg: 992,\n xl: 1200,\n xxl: 1600\n};\nconst breakpointsQuasar = {\n xs: 600,\n sm: 1024,\n md: 1440,\n lg: 1920\n};\nconst breakpointsSematic = {\n mobileS: 320,\n mobileM: 375,\n mobileL: 425,\n tablet: 768,\n laptop: 1024,\n laptopL: 1440,\n desktop4K: 2560\n};\nconst breakpointsMasterCss = {\n \"3xs\": 360,\n \"2xs\": 480,\n \"xs\": 600,\n \"sm\": 768,\n \"md\": 1024,\n \"lg\": 1280,\n \"xl\": 1440,\n \"2xl\": 1600,\n \"3xl\": 1920,\n \"4xl\": 2560\n};\nconst breakpointsPrimeFlex = {\n sm: 576,\n md: 768,\n lg: 992,\n xl: 1200\n};\n\nfunction useBreakpoints(breakpoints, options = {}) {\n function getValue(k, delta) {\n let v = breakpoints[k];\n if (delta != null)\n v = increaseWithUnit(v, delta);\n if (typeof v === \"number\")\n v = `${v}px`;\n return v;\n }\n const { window = defaultWindow } = options;\n function match(query) {\n if (!window)\n return false;\n return window.matchMedia(query).matches;\n }\n const greaterOrEqual = (k) => {\n return useMediaQuery(`(min-width: ${getValue(k)})`, options);\n };\n const shortcutMethods = Object.keys(breakpoints).reduce((shortcuts, k) => {\n Object.defineProperty(shortcuts, k, {\n get: () => greaterOrEqual(k),\n enumerable: true,\n configurable: true\n });\n return shortcuts;\n }, {});\n return Object.assign(shortcutMethods, {\n greater(k) {\n return useMediaQuery(`(min-width: ${getValue(k, 0.1)})`, options);\n },\n greaterOrEqual,\n smaller(k) {\n return useMediaQuery(`(max-width: ${getValue(k, -0.1)})`, options);\n },\n smallerOrEqual(k) {\n return useMediaQuery(`(max-width: ${getValue(k)})`, options);\n },\n between(a, b) {\n return useMediaQuery(`(min-width: ${getValue(a)}) and (max-width: ${getValue(b, -0.1)})`, options);\n },\n isGreater(k) {\n return match(`(min-width: ${getValue(k, 0.1)})`);\n },\n isGreaterOrEqual(k) {\n return match(`(min-width: ${getValue(k)})`);\n },\n isSmaller(k) {\n return match(`(max-width: ${getValue(k, -0.1)})`);\n },\n isSmallerOrEqual(k) {\n return match(`(max-width: ${getValue(k)})`);\n },\n isInBetween(a, b) {\n return match(`(min-width: ${getValue(a)}) and (max-width: ${getValue(b, -0.1)})`);\n },\n current() {\n const points = Object.keys(breakpoints).map((i) => [i, greaterOrEqual(i)]);\n return computed(() => points.filter(([, v]) => v.value).map(([k]) => k));\n }\n });\n}\n\nfunction useBroadcastChannel(options) {\n const {\n name,\n window = defaultWindow\n } = options;\n const isSupported = useSupported(() => window && \"BroadcastChannel\" in window);\n const isClosed = ref(false);\n const channel = ref();\n const data = ref();\n const error = shallowRef(null);\n const post = (data2) => {\n if (channel.value)\n channel.value.postMessage(data2);\n };\n const close = () => {\n if (channel.value)\n channel.value.close();\n isClosed.value = true;\n };\n if (isSupported.value) {\n tryOnMounted(() => {\n error.value = null;\n channel.value = new BroadcastChannel(name);\n channel.value.addEventListener(\"message\", (e) => {\n data.value = e.data;\n }, { passive: true });\n channel.value.addEventListener(\"messageerror\", (e) => {\n error.value = e;\n }, { passive: true });\n channel.value.addEventListener(\"close\", () => {\n isClosed.value = true;\n });\n });\n }\n tryOnScopeDispose(() => {\n close();\n });\n return {\n isSupported,\n channel,\n data,\n post,\n close,\n error,\n isClosed\n };\n}\n\nconst WRITABLE_PROPERTIES = [\n \"hash\",\n \"host\",\n \"hostname\",\n \"href\",\n \"pathname\",\n \"port\",\n \"protocol\",\n \"search\"\n];\nfunction useBrowserLocation(options = {}) {\n const { window = defaultWindow } = options;\n const refs = Object.fromEntries(\n WRITABLE_PROPERTIES.map((key) => [key, ref()])\n );\n for (const [key, ref2] of objectEntries(refs)) {\n watch(ref2, (value) => {\n if (!(window == null ? void 0 : window.location) || window.location[key] === value)\n return;\n window.location[key] = value;\n });\n }\n const buildState = (trigger) => {\n var _a;\n const { state: state2, length } = (window == null ? void 0 : window.history) || {};\n const { origin } = (window == null ? void 0 : window.location) || {};\n for (const key of WRITABLE_PROPERTIES)\n refs[key].value = (_a = window == null ? void 0 : window.location) == null ? void 0 : _a[key];\n return reactive({\n trigger,\n state: state2,\n length,\n origin,\n ...refs\n });\n };\n const state = ref(buildState(\"load\"));\n if (window) {\n useEventListener(window, \"popstate\", () => state.value = buildState(\"popstate\"), { passive: true });\n useEventListener(window, \"hashchange\", () => state.value = buildState(\"hashchange\"), { passive: true });\n }\n return state;\n}\n\nfunction useCached(refValue, comparator = (a, b) => a === b, watchOptions) {\n const cachedValue = ref(refValue.value);\n watch(() => refValue.value, (value) => {\n if (!comparator(value, cachedValue.value))\n cachedValue.value = value;\n }, watchOptions);\n return cachedValue;\n}\n\nfunction useClipboard(options = {}) {\n const {\n navigator = defaultNavigator,\n read = false,\n source,\n copiedDuring = 1500,\n legacy = false\n } = options;\n const isClipboardApiSupported = useSupported(() => navigator && \"clipboard\" in navigator);\n const isSupported = computed(() => isClipboardApiSupported.value || legacy);\n const text = ref(\"\");\n const copied = ref(false);\n const timeout = useTimeoutFn(() => copied.value = false, copiedDuring);\n function updateText() {\n if (isClipboardApiSupported.value) {\n navigator.clipboard.readText().then((value) => {\n text.value = value;\n });\n } else {\n text.value = legacyRead();\n }\n }\n if (isSupported.value && read)\n useEventListener([\"copy\", \"cut\"], updateText);\n async function copy(value = toValue(source)) {\n if (isSupported.value && value != null) {\n if (isClipboardApiSupported.value)\n await navigator.clipboard.writeText(value);\n else\n legacyCopy(value);\n text.value = value;\n copied.value = true;\n timeout.start();\n }\n }\n function legacyCopy(value) {\n const ta = document.createElement(\"textarea\");\n ta.value = value != null ? value : \"\";\n ta.style.position = \"absolute\";\n ta.style.opacity = \"0\";\n document.body.appendChild(ta);\n ta.select();\n document.execCommand(\"copy\");\n ta.remove();\n }\n function legacyRead() {\n var _a, _b, _c;\n return (_c = (_b = (_a = document == null ? void 0 : document.getSelection) == null ? void 0 : _a.call(document)) == null ? void 0 : _b.toString()) != null ? _c : \"\";\n }\n return {\n isSupported,\n text,\n copied,\n copy\n };\n}\n\nfunction cloneFnJSON(source) {\n return JSON.parse(JSON.stringify(source));\n}\nfunction useCloned(source, options = {}) {\n const cloned = ref({});\n const {\n manual,\n clone = cloneFnJSON,\n // watch options\n deep = true,\n immediate = true\n } = options;\n function sync() {\n cloned.value = clone(toValue(source));\n }\n if (!manual && (isRef(source) || typeof source === \"function\")) {\n watch(source, sync, {\n ...options,\n deep,\n immediate\n });\n } else {\n sync();\n }\n return { cloned, sync };\n}\n\nconst _global = typeof globalThis !== \"undefined\" ? globalThis : typeof window !== \"undefined\" ? window : typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : {};\nconst globalKey = \"__vueuse_ssr_handlers__\";\nconst handlers = /* @__PURE__ */ getHandlers();\nfunction getHandlers() {\n if (!(globalKey in _global))\n _global[globalKey] = _global[globalKey] || {};\n return _global[globalKey];\n}\nfunction getSSRHandler(key, fallback) {\n return handlers[key] || fallback;\n}\nfunction setSSRHandler(key, fn) {\n handlers[key] = fn;\n}\n\nfunction guessSerializerType(rawInit) {\n return rawInit == null ? \"any\" : rawInit instanceof Set ? \"set\" : rawInit instanceof Map ? \"map\" : rawInit instanceof Date ? \"date\" : typeof rawInit === \"boolean\" ? \"boolean\" : typeof rawInit === \"string\" ? \"string\" : typeof rawInit === \"object\" ? \"object\" : !Number.isNaN(rawInit) ? \"number\" : \"any\";\n}\n\nconst StorageSerializers = {\n boolean: {\n read: (v) => v === \"true\",\n write: (v) => String(v)\n },\n object: {\n read: (v) => JSON.parse(v),\n write: (v) => JSON.stringify(v)\n },\n number: {\n read: (v) => Number.parseFloat(v),\n write: (v) => String(v)\n },\n any: {\n read: (v) => v,\n write: (v) => String(v)\n },\n string: {\n read: (v) => v,\n write: (v) => String(v)\n },\n map: {\n read: (v) => new Map(JSON.parse(v)),\n write: (v) => JSON.stringify(Array.from(v.entries()))\n },\n set: {\n read: (v) => new Set(JSON.parse(v)),\n write: (v) => JSON.stringify(Array.from(v))\n },\n date: {\n read: (v) => new Date(v),\n write: (v) => v.toISOString()\n }\n};\nconst customStorageEventName = \"vueuse-storage\";\nfunction useStorage(key, defaults, storage, options = {}) {\n var _a;\n const {\n flush = \"pre\",\n deep = true,\n listenToStorageChanges = true,\n writeDefaults = true,\n mergeDefaults = false,\n shallow,\n window = defaultWindow,\n eventFilter,\n onError = (e) => {\n console.error(e);\n }\n } = options;\n const data = (shallow ? shallowRef : ref)(defaults);\n if (!storage) {\n try {\n storage = getSSRHandler(\"getDefaultStorage\", () => {\n var _a2;\n return (_a2 = defaultWindow) == null ? void 0 : _a2.localStorage;\n })();\n } catch (e) {\n onError(e);\n }\n }\n if (!storage)\n return data;\n const rawInit = toValue(defaults);\n const type = guessSerializerType(rawInit);\n const serializer = (_a = options.serializer) != null ? _a : StorageSerializers[type];\n const { pause: pauseWatch, resume: resumeWatch } = pausableWatch(\n data,\n () => write(data.value),\n { flush, deep, eventFilter }\n );\n if (window && listenToStorageChanges) {\n useEventListener(window, \"storage\", update);\n useEventListener(window, customStorageEventName, updateFromCustomEvent);\n }\n update();\n return data;\n function write(v) {\n try {\n if (v == null) {\n storage.removeItem(key);\n } else {\n const serialized = serializer.write(v);\n const oldValue = storage.getItem(key);\n if (oldValue !== serialized) {\n storage.setItem(key, serialized);\n if (window) {\n window.dispatchEvent(new CustomEvent(customStorageEventName, {\n detail: {\n key,\n oldValue,\n newValue: serialized,\n storageArea: storage\n }\n }));\n }\n }\n }\n } catch (e) {\n onError(e);\n }\n }\n function read(event) {\n const rawValue = event ? event.newValue : storage.getItem(key);\n if (rawValue == null) {\n if (writeDefaults && rawInit !== null)\n storage.setItem(key, serializer.write(rawInit));\n return rawInit;\n } else if (!event && mergeDefaults) {\n const value = serializer.read(rawValue);\n if (typeof mergeDefaults === \"function\")\n return mergeDefaults(value, rawInit);\n else if (type === \"object\" && !Array.isArray(value))\n return { ...rawInit, ...value };\n return value;\n } else if (typeof rawValue !== \"string\") {\n return rawValue;\n } else {\n return serializer.read(rawValue);\n }\n }\n function updateFromCustomEvent(event) {\n update(event.detail);\n }\n function update(event) {\n if (event && event.storageArea !== storage)\n return;\n if (event && event.key == null) {\n data.value = rawInit;\n return;\n }\n if (event && event.key !== key)\n return;\n pauseWatch();\n try {\n if ((event == null ? void 0 : event.newValue) !== serializer.write(data.value))\n data.value = read(event);\n } catch (e) {\n onError(e);\n } finally {\n if (event)\n nextTick(resumeWatch);\n else\n resumeWatch();\n }\n }\n}\n\nfunction usePreferredDark(options) {\n return useMediaQuery(\"(prefers-color-scheme: dark)\", options);\n}\n\nfunction useColorMode(options = {}) {\n const {\n selector = \"html\",\n attribute = \"class\",\n initialValue = \"auto\",\n window = defaultWindow,\n storage,\n storageKey = \"vueuse-color-scheme\",\n listenToStorageChanges = true,\n storageRef,\n emitAuto,\n disableTransition = true\n } = options;\n const modes = {\n auto: \"\",\n light: \"light\",\n dark: \"dark\",\n ...options.modes || {}\n };\n const preferredDark = usePreferredDark({ window });\n const system = computed(() => preferredDark.value ? \"dark\" : \"light\");\n const store = storageRef || (storageKey == null ? toRef(initialValue) : useStorage(storageKey, initialValue, storage, { window, listenToStorageChanges }));\n const state = computed(() => store.value === \"auto\" ? system.value : store.value);\n const updateHTMLAttrs = getSSRHandler(\n \"updateHTMLAttrs\",\n (selector2, attribute2, value) => {\n const el = typeof selector2 === \"string\" ? window == null ? void 0 : window.document.querySelector(selector2) : unrefElement(selector2);\n if (!el)\n return;\n let style;\n if (disableTransition) {\n style = window.document.createElement(\"style\");\n const styleString = \"*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}\";\n style.appendChild(document.createTextNode(styleString));\n window.document.head.appendChild(style);\n }\n if (attribute2 === \"class\") {\n const current = value.split(/\\s/g);\n Object.values(modes).flatMap((i) => (i || \"\").split(/\\s/g)).filter(Boolean).forEach((v) => {\n if (current.includes(v))\n el.classList.add(v);\n else\n el.classList.remove(v);\n });\n } else {\n el.setAttribute(attribute2, value);\n }\n if (disableTransition) {\n window.getComputedStyle(style).opacity;\n document.head.removeChild(style);\n }\n }\n );\n function defaultOnChanged(mode) {\n var _a;\n updateHTMLAttrs(selector, attribute, (_a = modes[mode]) != null ? _a : mode);\n }\n function onChanged(mode) {\n if (options.onChanged)\n options.onChanged(mode, defaultOnChanged);\n else\n defaultOnChanged(mode);\n }\n watch(state, onChanged, { flush: \"post\", immediate: true });\n tryOnMounted(() => onChanged(state.value));\n const auto = computed({\n get() {\n return emitAuto ? store.value : state.value;\n },\n set(v) {\n store.value = v;\n }\n });\n try {\n return Object.assign(auto, { store, system, state });\n } catch (e) {\n return auto;\n }\n}\n\nfunction useConfirmDialog(revealed = ref(false)) {\n const confirmHook = createEventHook();\n const cancelHook = createEventHook();\n const revealHook = createEventHook();\n let _resolve = noop;\n const reveal = (data) => {\n revealHook.trigger(data);\n revealed.value = true;\n return new Promise((resolve) => {\n _resolve = resolve;\n });\n };\n const confirm = (data) => {\n revealed.value = false;\n confirmHook.trigger(data);\n _resolve({ data, isCanceled: false });\n };\n const cancel = (data) => {\n revealed.value = false;\n cancelHook.trigger(data);\n _resolve({ data, isCanceled: true });\n };\n return {\n isRevealed: computed(() => revealed.value),\n reveal,\n confirm,\n cancel,\n onReveal: revealHook.on,\n onConfirm: confirmHook.on,\n onCancel: cancelHook.on\n };\n}\n\nfunction useMutationObserver(target, callback, options = {}) {\n const { window = defaultWindow, ...mutationOptions } = options;\n let observer;\n const isSupported = useSupported(() => window && \"MutationObserver\" in window);\n const cleanup = () => {\n if (observer) {\n observer.disconnect();\n observer = void 0;\n }\n };\n const stopWatch = watch(\n () => unrefElement(target),\n (el) => {\n cleanup();\n if (isSupported.value && window && el) {\n observer = new MutationObserver(callback);\n observer.observe(el, mutationOptions);\n }\n },\n { immediate: true }\n );\n const stop = () => {\n cleanup();\n stopWatch();\n };\n tryOnScopeDispose(stop);\n return {\n isSupported,\n stop\n };\n}\n\nfunction useCssVar(prop, target, options = {}) {\n const { window = defaultWindow, initialValue = \"\", observe = false } = options;\n const variable = ref(initialValue);\n const elRef = computed(() => {\n var _a;\n return unrefElement(target) || ((_a = window == null ? void 0 : window.document) == null ? void 0 : _a.documentElement);\n });\n function updateCssVar() {\n var _a;\n const key = toValue(prop);\n const el = toValue(elRef);\n if (el && window) {\n const value = (_a = window.getComputedStyle(el).getPropertyValue(key)) == null ? void 0 : _a.trim();\n variable.value = value || initialValue;\n }\n }\n if (observe) {\n useMutationObserver(elRef, updateCssVar, {\n attributeFilter: [\"style\", \"class\"],\n window\n });\n }\n watch(\n [elRef, () => toValue(prop)],\n updateCssVar,\n { immediate: true }\n );\n watch(\n variable,\n (val) => {\n var _a;\n if ((_a = elRef.value) == null ? void 0 : _a.style)\n elRef.value.style.setProperty(toValue(prop), val);\n }\n );\n return variable;\n}\n\nfunction useCurrentElement() {\n const vm = getCurrentInstance();\n const currentElement = computedWithControl(\n () => null,\n () => vm.proxy.$el\n );\n onUpdated(currentElement.trigger);\n onMounted(currentElement.trigger);\n return currentElement;\n}\n\nfunction useCycleList(list, options) {\n const state = shallowRef(getInitialValue());\n const listRef = toRef(list);\n const index = computed({\n get() {\n var _a;\n const targetList = listRef.value;\n let index2 = (options == null ? void 0 : options.getIndexOf) ? options.getIndexOf(state.value, targetList) : targetList.indexOf(state.value);\n if (index2 < 0)\n index2 = (_a = options == null ? void 0 : options.fallbackIndex) != null ? _a : 0;\n return index2;\n },\n set(v) {\n set(v);\n }\n });\n function set(i) {\n const targetList = listRef.value;\n const length = targetList.length;\n const index2 = (i % length + length) % length;\n const value = targetList[index2];\n state.value = value;\n return value;\n }\n function shift(delta = 1) {\n return set(index.value + delta);\n }\n function next(n = 1) {\n return shift(n);\n }\n function prev(n = 1) {\n return shift(-n);\n }\n function getInitialValue() {\n var _a, _b;\n return (_b = toValue((_a = options == null ? void 0 : options.initialValue) != null ? _a : toValue(list)[0])) != null ? _b : void 0;\n }\n watch(listRef, () => set(index.value));\n return {\n state,\n index,\n next,\n prev\n };\n}\n\nfunction useDark(options = {}) {\n const {\n valueDark = \"dark\",\n valueLight = \"\"\n } = options;\n const mode = useColorMode({\n ...options,\n onChanged: (mode2, defaultHandler) => {\n var _a;\n if (options.onChanged)\n (_a = options.onChanged) == null ? void 0 : _a.call(options, mode2 === \"dark\", defaultHandler, mode2);\n else\n defaultHandler(mode2);\n },\n modes: {\n dark: valueDark,\n light: valueLight\n }\n });\n const isDark = computed({\n get() {\n return mode.value === \"dark\";\n },\n set(v) {\n const modeVal = v ? \"dark\" : \"light\";\n if (mode.system.value === modeVal)\n mode.value = \"auto\";\n else\n mode.value = modeVal;\n }\n });\n return isDark;\n}\n\nfunction fnBypass(v) {\n return v;\n}\nfunction fnSetSource(source, value) {\n return source.value = value;\n}\nfunction defaultDump(clone) {\n return clone ? typeof clone === \"function\" ? clone : cloneFnJSON : fnBypass;\n}\nfunction defaultParse(clone) {\n return clone ? typeof clone === \"function\" ? clone : cloneFnJSON : fnBypass;\n}\nfunction useManualRefHistory(source, options = {}) {\n const {\n clone = false,\n dump = defaultDump(clone),\n parse = defaultParse(clone),\n setSource = fnSetSource\n } = options;\n function _createHistoryRecord() {\n return markRaw({\n snapshot: dump(source.value),\n timestamp: timestamp()\n });\n }\n const last = ref(_createHistoryRecord());\n const undoStack = ref([]);\n const redoStack = ref([]);\n const _setSource = (record) => {\n setSource(source, parse(record.snapshot));\n last.value = record;\n };\n const commit = () => {\n undoStack.value.unshift(last.value);\n last.value = _createHistoryRecord();\n if (options.capacity && undoStack.value.length > options.capacity)\n undoStack.value.splice(options.capacity, Number.POSITIVE_INFINITY);\n if (redoStack.value.length)\n redoStack.value.splice(0, redoStack.value.length);\n };\n const clear = () => {\n undoStack.value.splice(0, undoStack.value.length);\n redoStack.value.splice(0, redoStack.value.length);\n };\n const undo = () => {\n const state = undoStack.value.shift();\n if (state) {\n redoStack.value.unshift(last.value);\n _setSource(state);\n }\n };\n const redo = () => {\n const state = redoStack.value.shift();\n if (state) {\n undoStack.value.unshift(last.value);\n _setSource(state);\n }\n };\n const reset = () => {\n _setSource(last.value);\n };\n const history = computed(() => [last.value, ...undoStack.value]);\n const canUndo = computed(() => undoStack.value.length > 0);\n const canRedo = computed(() => redoStack.value.length > 0);\n return {\n source,\n undoStack,\n redoStack,\n last,\n history,\n canUndo,\n canRedo,\n clear,\n commit,\n reset,\n undo,\n redo\n };\n}\n\nfunction useRefHistory(source, options = {}) {\n const {\n deep = false,\n flush = \"pre\",\n eventFilter\n } = options;\n const {\n eventFilter: composedFilter,\n pause,\n resume: resumeTracking,\n isActive: isTracking\n } = pausableFilter(eventFilter);\n const {\n ignoreUpdates,\n ignorePrevAsyncUpdates,\n stop\n } = watchIgnorable(\n source,\n commit,\n { deep, flush, eventFilter: composedFilter }\n );\n function setSource(source2, value) {\n ignorePrevAsyncUpdates();\n ignoreUpdates(() => {\n source2.value = value;\n });\n }\n const manualHistory = useManualRefHistory(source, { ...options, clone: options.clone || deep, setSource });\n const { clear, commit: manualCommit } = manualHistory;\n function commit() {\n ignorePrevAsyncUpdates();\n manualCommit();\n }\n function resume(commitNow) {\n resumeTracking();\n if (commitNow)\n commit();\n }\n function batch(fn) {\n let canceled = false;\n const cancel = () => canceled = true;\n ignoreUpdates(() => {\n fn(cancel);\n });\n if (!canceled)\n commit();\n }\n function dispose() {\n stop();\n clear();\n }\n return {\n ...manualHistory,\n isTracking,\n pause,\n resume,\n commit,\n batch,\n dispose\n };\n}\n\nfunction useDebouncedRefHistory(source, options = {}) {\n const filter = options.debounce ? debounceFilter(options.debounce) : void 0;\n const history = useRefHistory(source, { ...options, eventFilter: filter });\n return {\n ...history\n };\n}\n\nfunction useDeviceMotion(options = {}) {\n const {\n window = defaultWindow,\n eventFilter = bypassFilter\n } = options;\n const acceleration = ref({ x: null, y: null, z: null });\n const rotationRate = ref({ alpha: null, beta: null, gamma: null });\n const interval = ref(0);\n const accelerationIncludingGravity = ref({\n x: null,\n y: null,\n z: null\n });\n if (window) {\n const onDeviceMotion = createFilterWrapper(\n eventFilter,\n (event) => {\n acceleration.value = event.acceleration;\n accelerationIncludingGravity.value = event.accelerationIncludingGravity;\n rotationRate.value = event.rotationRate;\n interval.value = event.interval;\n }\n );\n useEventListener(window, \"devicemotion\", onDeviceMotion);\n }\n return {\n acceleration,\n accelerationIncludingGravity,\n rotationRate,\n interval\n };\n}\n\nfunction useDeviceOrientation(options = {}) {\n const { window = defaultWindow } = options;\n const isSupported = useSupported(() => window && \"DeviceOrientationEvent\" in window);\n const isAbsolute = ref(false);\n const alpha = ref(null);\n const beta = ref(null);\n const gamma = ref(null);\n if (window && isSupported.value) {\n useEventListener(window, \"deviceorientation\", (event) => {\n isAbsolute.value = event.absolute;\n alpha.value = event.alpha;\n beta.value = event.beta;\n gamma.value = event.gamma;\n });\n }\n return {\n isSupported,\n isAbsolute,\n alpha,\n beta,\n gamma\n };\n}\n\nfunction useDevicePixelRatio(options = {}) {\n const {\n window = defaultWindow\n } = options;\n const pixelRatio = ref(1);\n if (window) {\n let observe2 = function() {\n pixelRatio.value = window.devicePixelRatio;\n cleanup2();\n media = window.matchMedia(`(resolution: ${pixelRatio.value}dppx)`);\n media.addEventListener(\"change\", observe2, { once: true });\n }, cleanup2 = function() {\n media == null ? void 0 : media.removeEventListener(\"change\", observe2);\n };\n let media;\n observe2();\n tryOnScopeDispose(cleanup2);\n }\n return { pixelRatio };\n}\n\nfunction usePermission(permissionDesc, options = {}) {\n const {\n controls = false,\n navigator = defaultNavigator\n } = options;\n const isSupported = useSupported(() => navigator && \"permissions\" in navigator);\n let permissionStatus;\n const desc = typeof permissionDesc === \"string\" ? { name: permissionDesc } : permissionDesc;\n const state = ref();\n const onChange = () => {\n if (permissionStatus)\n state.value = permissionStatus.state;\n };\n const query = createSingletonPromise(async () => {\n if (!isSupported.value)\n return;\n if (!permissionStatus) {\n try {\n permissionStatus = await navigator.permissions.query(desc);\n useEventListener(permissionStatus, \"change\", onChange);\n onChange();\n } catch (e) {\n state.value = \"prompt\";\n }\n }\n return permissionStatus;\n });\n query();\n if (controls) {\n return {\n state,\n isSupported,\n query\n };\n } else {\n return state;\n }\n}\n\nfunction useDevicesList(options = {}) {\n const {\n navigator = defaultNavigator,\n requestPermissions = false,\n constraints = { audio: true, video: true },\n onUpdated\n } = options;\n const devices = ref([]);\n const videoInputs = computed(() => devices.value.filter((i) => i.kind === \"videoinput\"));\n const audioInputs = computed(() => devices.value.filter((i) => i.kind === \"audioinput\"));\n const audioOutputs = computed(() => devices.value.filter((i) => i.kind === \"audiooutput\"));\n const isSupported = useSupported(() => navigator && navigator.mediaDevices && navigator.mediaDevices.enumerateDevices);\n const permissionGranted = ref(false);\n let stream;\n async function update() {\n if (!isSupported.value)\n return;\n devices.value = await navigator.mediaDevices.enumerateDevices();\n onUpdated == null ? void 0 : onUpdated(devices.value);\n if (stream) {\n stream.getTracks().forEach((t) => t.stop());\n stream = null;\n }\n }\n async function ensurePermissions() {\n if (!isSupported.value)\n return false;\n if (permissionGranted.value)\n return true;\n const { state, query } = usePermission(\"camera\", { controls: true });\n await query();\n if (state.value !== \"granted\") {\n stream = await navigator.mediaDevices.getUserMedia(constraints);\n update();\n permissionGranted.value = true;\n } else {\n permissionGranted.value = true;\n }\n return permissionGranted.value;\n }\n if (isSupported.value) {\n if (requestPermissions)\n ensurePermissions();\n useEventListener(navigator.mediaDevices, \"devicechange\", update);\n update();\n }\n return {\n devices,\n ensurePermissions,\n permissionGranted,\n videoInputs,\n audioInputs,\n audioOutputs,\n isSupported\n };\n}\n\nfunction useDisplayMedia(options = {}) {\n var _a;\n const enabled = ref((_a = options.enabled) != null ? _a : false);\n const video = options.video;\n const audio = options.audio;\n const { navigator = defaultNavigator } = options;\n const isSupported = useSupported(() => {\n var _a2;\n return (_a2 = navigator == null ? void 0 : navigator.mediaDevices) == null ? void 0 : _a2.getDisplayMedia;\n });\n const constraint = { audio, video };\n const stream = shallowRef();\n async function _start() {\n if (!isSupported.value || stream.value)\n return;\n stream.value = await navigator.mediaDevices.getDisplayMedia(constraint);\n return stream.value;\n }\n async function _stop() {\n var _a2;\n (_a2 = stream.value) == null ? void 0 : _a2.getTracks().forEach((t) => t.stop());\n stream.value = void 0;\n }\n function stop() {\n _stop();\n enabled.value = false;\n }\n async function start() {\n await _start();\n if (stream.value)\n enabled.value = true;\n return stream.value;\n }\n watch(\n enabled,\n (v) => {\n if (v)\n _start();\n else\n _stop();\n },\n { immediate: true }\n );\n return {\n isSupported,\n stream,\n start,\n stop,\n enabled\n };\n}\n\nfunction useDocumentVisibility(options = {}) {\n const { document = defaultDocument } = options;\n if (!document)\n return ref(\"visible\");\n const visibility = ref(document.visibilityState);\n useEventListener(document, \"visibilitychange\", () => {\n visibility.value = document.visibilityState;\n });\n return visibility;\n}\n\nfunction useDraggable(target, options = {}) {\n var _a, _b;\n const {\n pointerTypes,\n preventDefault,\n stopPropagation,\n exact,\n onMove,\n onEnd,\n onStart,\n initialValue,\n axis = \"both\",\n draggingElement = defaultWindow,\n containerElement,\n handle: draggingHandle = target\n } = options;\n const position = ref(\n (_a = toValue(initialValue)) != null ? _a : { x: 0, y: 0 }\n );\n const pressedDelta = ref();\n const filterEvent = (e) => {\n if (pointerTypes)\n return pointerTypes.includes(e.pointerType);\n return true;\n };\n const handleEvent = (e) => {\n if (toValue(preventDefault))\n e.preventDefault();\n if (toValue(stopPropagation))\n e.stopPropagation();\n };\n const start = (e) => {\n var _a2;\n if (!filterEvent(e))\n return;\n if (toValue(exact) && e.target !== toValue(target))\n return;\n const container = (_a2 = toValue(containerElement)) != null ? _a2 : toValue(target);\n const rect = container.getBoundingClientRect();\n const pos = {\n x: e.clientX - rect.left,\n y: e.clientY - rect.top\n };\n if ((onStart == null ? void 0 : onStart(pos, e)) === false)\n return;\n pressedDelta.value = pos;\n handleEvent(e);\n };\n const move = (e) => {\n if (!filterEvent(e))\n return;\n if (!pressedDelta.value)\n return;\n let { x, y } = position.value;\n if (axis === \"x\" || axis === \"both\")\n x = e.clientX - pressedDelta.value.x;\n if (axis === \"y\" || axis === \"both\")\n y = e.clientY - pressedDelta.value.y;\n position.value = {\n x,\n y\n };\n onMove == null ? void 0 : onMove(position.value, e);\n handleEvent(e);\n };\n const end = (e) => {\n if (!filterEvent(e))\n return;\n if (!pressedDelta.value)\n return;\n pressedDelta.value = void 0;\n onEnd == null ? void 0 : onEnd(position.value, e);\n handleEvent(e);\n };\n if (isClient) {\n const config = { capture: (_b = options.capture) != null ? _b : true };\n useEventListener(draggingHandle, \"pointerdown\", start, config);\n useEventListener(draggingElement, \"pointermove\", move, config);\n useEventListener(draggingElement, \"pointerup\", end, config);\n }\n return {\n ...toRefs(position),\n position,\n isDragging: computed(() => !!pressedDelta.value),\n style: computed(\n () => `left:${position.value.x}px;top:${position.value.y}px;`\n )\n };\n}\n\nfunction useDropZone(target, options = {}) {\n const isOverDropZone = ref(false);\n const files = shallowRef(null);\n let counter = 0;\n if (isClient) {\n const _options = typeof options === \"function\" ? { onDrop: options } : options;\n const getFiles = (event) => {\n var _a, _b;\n const list = Array.from((_b = (_a = event.dataTransfer) == null ? void 0 : _a.files) != null ? _b : []);\n return files.value = list.length === 0 ? null : list;\n };\n useEventListener(target, \"dragenter\", (event) => {\n var _a;\n event.preventDefault();\n counter += 1;\n isOverDropZone.value = true;\n (_a = _options.onEnter) == null ? void 0 : _a.call(_options, getFiles(event), event);\n });\n useEventListener(target, \"dragover\", (event) => {\n var _a;\n event.preventDefault();\n (_a = _options.onOver) == null ? void 0 : _a.call(_options, getFiles(event), event);\n });\n useEventListener(target, \"dragleave\", (event) => {\n var _a;\n event.preventDefault();\n counter -= 1;\n if (counter === 0)\n isOverDropZone.value = false;\n (_a = _options.onLeave) == null ? void 0 : _a.call(_options, getFiles(event), event);\n });\n useEventListener(target, \"drop\", (event) => {\n var _a;\n event.preventDefault();\n counter = 0;\n isOverDropZone.value = false;\n (_a = _options.onDrop) == null ? void 0 : _a.call(_options, getFiles(event), event);\n });\n }\n return {\n files,\n isOverDropZone\n };\n}\n\nfunction useResizeObserver(target, callback, options = {}) {\n const { window = defaultWindow, ...observerOptions } = options;\n let observer;\n const isSupported = useSupported(() => window && \"ResizeObserver\" in window);\n const cleanup = () => {\n if (observer) {\n observer.disconnect();\n observer = void 0;\n }\n };\n const targets = computed(() => Array.isArray(target) ? target.map((el) => unrefElement(el)) : [unrefElement(target)]);\n const stopWatch = watch(\n targets,\n (els) => {\n cleanup();\n if (isSupported.value && window) {\n observer = new ResizeObserver(callback);\n for (const _el of els)\n _el && observer.observe(_el, observerOptions);\n }\n },\n { immediate: true, flush: \"post\", deep: true }\n );\n const stop = () => {\n cleanup();\n stopWatch();\n };\n tryOnScopeDispose(stop);\n return {\n isSupported,\n stop\n };\n}\n\nfunction useElementBounding(target, options = {}) {\n const {\n reset = true,\n windowResize = true,\n windowScroll = true,\n immediate = true\n } = options;\n const height = ref(0);\n const bottom = ref(0);\n const left = ref(0);\n const right = ref(0);\n const top = ref(0);\n const width = ref(0);\n const x = ref(0);\n const y = ref(0);\n function update() {\n const el = unrefElement(target);\n if (!el) {\n if (reset) {\n height.value = 0;\n bottom.value = 0;\n left.value = 0;\n right.value = 0;\n top.value = 0;\n width.value = 0;\n x.value = 0;\n y.value = 0;\n }\n return;\n }\n const rect = el.getBoundingClientRect();\n height.value = rect.height;\n bottom.value = rect.bottom;\n left.value = rect.left;\n right.value = rect.right;\n top.value = rect.top;\n width.value = rect.width;\n x.value = rect.x;\n y.value = rect.y;\n }\n useResizeObserver(target, update);\n watch(() => unrefElement(target), (ele) => !ele && update());\n if (windowScroll)\n useEventListener(\"scroll\", update, { capture: true, passive: true });\n if (windowResize)\n useEventListener(\"resize\", update, { passive: true });\n tryOnMounted(() => {\n if (immediate)\n update();\n });\n return {\n height,\n bottom,\n left,\n right,\n top,\n width,\n x,\n y,\n update\n };\n}\n\nfunction useElementByPoint(options) {\n const {\n x,\n y,\n document = defaultDocument,\n multiple,\n interval = \"requestAnimationFrame\",\n immediate = true\n } = options;\n const isSupported = useSupported(() => {\n if (toValue(multiple))\n return document && \"elementsFromPoint\" in document;\n return document && \"elementFromPoint\" in document;\n });\n const element = ref(null);\n const cb = () => {\n var _a, _b;\n element.value = toValue(multiple) ? (_a = document == null ? void 0 : document.elementsFromPoint(toValue(x), toValue(y))) != null ? _a : [] : (_b = document == null ? void 0 : document.elementFromPoint(toValue(x), toValue(y))) != null ? _b : null;\n };\n const controls = interval === \"requestAnimationFrame\" ? useRafFn(cb, { immediate }) : useIntervalFn(cb, interval, { immediate });\n return {\n isSupported,\n element,\n ...controls\n };\n}\n\nfunction useElementHover(el, options = {}) {\n const {\n delayEnter = 0,\n delayLeave = 0,\n window = defaultWindow\n } = options;\n const isHovered = ref(false);\n let timer;\n const toggle = (entering) => {\n const delay = entering ? delayEnter : delayLeave;\n if (timer) {\n clearTimeout(timer);\n timer = void 0;\n }\n if (delay)\n timer = setTimeout(() => isHovered.value = entering, delay);\n else\n isHovered.value = entering;\n };\n if (!window)\n return isHovered;\n useEventListener(el, \"mouseenter\", () => toggle(true), { passive: true });\n useEventListener(el, \"mouseleave\", () => toggle(false), { passive: true });\n return isHovered;\n}\n\nfunction useElementSize(target, initialSize = { width: 0, height: 0 }, options = {}) {\n const { window = defaultWindow, box = \"content-box\" } = options;\n const isSVG = computed(() => {\n var _a, _b;\n return (_b = (_a = unrefElement(target)) == null ? void 0 : _a.namespaceURI) == null ? void 0 : _b.includes(\"svg\");\n });\n const width = ref(initialSize.width);\n const height = ref(initialSize.height);\n useResizeObserver(\n target,\n ([entry]) => {\n const boxSize = box === \"border-box\" ? entry.borderBoxSize : box === \"content-box\" ? entry.contentBoxSize : entry.devicePixelContentBoxSize;\n if (window && isSVG.value) {\n const $elem = unrefElement(target);\n if ($elem) {\n const styles = window.getComputedStyle($elem);\n width.value = Number.parseFloat(styles.width);\n height.value = Number.parseFloat(styles.height);\n }\n } else {\n if (boxSize) {\n const formatBoxSize = Array.isArray(boxSize) ? boxSize : [boxSize];\n width.value = formatBoxSize.reduce((acc, { inlineSize }) => acc + inlineSize, 0);\n height.value = formatBoxSize.reduce((acc, { blockSize }) => acc + blockSize, 0);\n } else {\n width.value = entry.contentRect.width;\n height.value = entry.contentRect.height;\n }\n }\n },\n options\n );\n watch(\n () => unrefElement(target),\n (ele) => {\n width.value = ele ? initialSize.width : 0;\n height.value = ele ? initialSize.height : 0;\n }\n );\n return {\n width,\n height\n };\n}\n\nfunction useIntersectionObserver(target, callback, options = {}) {\n const {\n root,\n rootMargin = \"0px\",\n threshold = 0.1,\n window = defaultWindow,\n immediate = true\n } = options;\n const isSupported = useSupported(() => window && \"IntersectionObserver\" in window);\n const targets = computed(() => {\n const _target = toValue(target);\n return (Array.isArray(_target) ? _target : [_target]).map(unrefElement).filter(notNullish);\n });\n let cleanup = noop;\n const isActive = ref(immediate);\n const stopWatch = isSupported.value ? watch(\n () => [targets.value, unrefElement(root), isActive.value],\n ([targets2, root2]) => {\n cleanup();\n if (!isActive.value)\n return;\n if (!targets2.length)\n return;\n const observer = new IntersectionObserver(\n callback,\n {\n root: unrefElement(root2),\n rootMargin,\n threshold\n }\n );\n targets2.forEach((el) => el && observer.observe(el));\n cleanup = () => {\n observer.disconnect();\n cleanup = noop;\n };\n },\n { immediate, flush: \"post\" }\n ) : noop;\n const stop = () => {\n cleanup();\n stopWatch();\n isActive.value = false;\n };\n tryOnScopeDispose(stop);\n return {\n isSupported,\n isActive,\n pause() {\n cleanup();\n isActive.value = false;\n },\n resume() {\n isActive.value = true;\n },\n stop\n };\n}\n\nfunction useElementVisibility(element, options = {}) {\n const { window = defaultWindow, scrollTarget } = options;\n const elementIsVisible = ref(false);\n useIntersectionObserver(\n element,\n ([{ isIntersecting }]) => {\n elementIsVisible.value = isIntersecting;\n },\n {\n root: scrollTarget,\n window,\n threshold: 0\n }\n );\n return elementIsVisible;\n}\n\nconst events = /* @__PURE__ */ new Map();\n\nfunction useEventBus(key) {\n const scope = getCurrentScope();\n function on(listener) {\n var _a;\n const listeners = events.get(key) || /* @__PURE__ */ new Set();\n listeners.add(listener);\n events.set(key, listeners);\n const _off = () => off(listener);\n (_a = scope == null ? void 0 : scope.cleanups) == null ? void 0 : _a.push(_off);\n return _off;\n }\n function once(listener) {\n function _listener(...args) {\n off(_listener);\n listener(...args);\n }\n return on(_listener);\n }\n function off(listener) {\n const listeners = events.get(key);\n if (!listeners)\n return;\n listeners.delete(listener);\n if (!listeners.size)\n reset();\n }\n function reset() {\n events.delete(key);\n }\n function emit(event, payload) {\n var _a;\n (_a = events.get(key)) == null ? void 0 : _a.forEach((v) => v(event, payload));\n }\n return { on, once, off, emit, reset };\n}\n\nfunction useEventSource(url, events = [], options = {}) {\n const event = ref(null);\n const data = ref(null);\n const status = ref(\"CONNECTING\");\n const eventSource = ref(null);\n const error = shallowRef(null);\n const {\n withCredentials = false\n } = options;\n const close = () => {\n if (eventSource.value) {\n eventSource.value.close();\n eventSource.value = null;\n status.value = \"CLOSED\";\n }\n };\n const es = new EventSource(url, { withCredentials });\n eventSource.value = es;\n es.onopen = () => {\n status.value = \"OPEN\";\n error.value = null;\n };\n es.onerror = (e) => {\n status.value = \"CLOSED\";\n error.value = e;\n };\n es.onmessage = (e) => {\n event.value = null;\n data.value = e.data;\n };\n for (const event_name of events) {\n useEventListener(es, event_name, (e) => {\n event.value = event_name;\n data.value = e.data || null;\n });\n }\n tryOnScopeDispose(() => {\n close();\n });\n return {\n eventSource,\n event,\n data,\n status,\n error,\n close\n };\n}\n\nfunction useEyeDropper(options = {}) {\n const { initialValue = \"\" } = options;\n const isSupported = useSupported(() => typeof window !== \"undefined\" && \"EyeDropper\" in window);\n const sRGBHex = ref(initialValue);\n async function open(openOptions) {\n if (!isSupported.value)\n return;\n const eyeDropper = new window.EyeDropper();\n const result = await eyeDropper.open(openOptions);\n sRGBHex.value = result.sRGBHex;\n return result;\n }\n return { isSupported, sRGBHex, open };\n}\n\nfunction useFavicon(newIcon = null, options = {}) {\n const {\n baseUrl = \"\",\n rel = \"icon\",\n document = defaultDocument\n } = options;\n const favicon = toRef(newIcon);\n const applyIcon = (icon) => {\n const elements = document == null ? void 0 : document.head.querySelectorAll(`link[rel*=\"${rel}\"]`);\n if (!elements || elements.length === 0) {\n const link = document == null ? void 0 : document.createElement(\"link\");\n if (link) {\n link.rel = rel;\n link.href = `${baseUrl}${icon}`;\n link.type = `image/${icon.split(\".\").pop()}`;\n document == null ? void 0 : document.head.append(link);\n }\n return;\n }\n elements == null ? void 0 : elements.forEach((el) => el.href = `${baseUrl}${icon}`);\n };\n watch(\n favicon,\n (i, o) => {\n if (typeof i === \"string\" && i !== o)\n applyIcon(i);\n },\n { immediate: true }\n );\n return favicon;\n}\n\nconst payloadMapping = {\n json: \"application/json\",\n text: \"text/plain\"\n};\nfunction isFetchOptions(obj) {\n return obj && containsProp(obj, \"immediate\", \"refetch\", \"initialData\", \"timeout\", \"beforeFetch\", \"afterFetch\", \"onFetchError\", \"fetch\", \"updateDataOnError\");\n}\nfunction isAbsoluteURL(url) {\n return /^([a-z][a-z\\d+\\-.]*:)?\\/\\//i.test(url);\n}\nfunction headersToObject(headers) {\n if (typeof Headers !== \"undefined\" && headers instanceof Headers)\n return Object.fromEntries([...headers.entries()]);\n return headers;\n}\nfunction combineCallbacks(combination, ...callbacks) {\n if (combination === \"overwrite\") {\n return async (ctx) => {\n const callback = callbacks[callbacks.length - 1];\n if (callback)\n return { ...ctx, ...await callback(ctx) };\n return ctx;\n };\n } else {\n return async (ctx) => {\n for (const callback of callbacks) {\n if (callback)\n ctx = { ...ctx, ...await callback(ctx) };\n }\n return ctx;\n };\n }\n}\nfunction createFetch(config = {}) {\n const _combination = config.combination || \"chain\";\n const _options = config.options || {};\n const _fetchOptions = config.fetchOptions || {};\n function useFactoryFetch(url, ...args) {\n const computedUrl = computed(() => {\n const baseUrl = toValue(config.baseUrl);\n const targetUrl = toValue(url);\n return baseUrl && !isAbsoluteURL(targetUrl) ? joinPaths(baseUrl, targetUrl) : targetUrl;\n });\n let options = _options;\n let fetchOptions = _fetchOptions;\n if (args.length > 0) {\n if (isFetchOptions(args[0])) {\n options = {\n ...options,\n ...args[0],\n beforeFetch: combineCallbacks(_combination, _options.beforeFetch, args[0].beforeFetch),\n afterFetch: combineCallbacks(_combination, _options.afterFetch, args[0].afterFetch),\n onFetchError: combineCallbacks(_combination, _options.onFetchError, args[0].onFetchError)\n };\n } else {\n fetchOptions = {\n ...fetchOptions,\n ...args[0],\n headers: {\n ...headersToObject(fetchOptions.headers) || {},\n ...headersToObject(args[0].headers) || {}\n }\n };\n }\n }\n if (args.length > 1 && isFetchOptions(args[1])) {\n options = {\n ...options,\n ...args[1],\n beforeFetch: combineCallbacks(_combination, _options.beforeFetch, args[1].beforeFetch),\n afterFetch: combineCallbacks(_combination, _options.afterFetch, args[1].afterFetch),\n onFetchError: combineCallbacks(_combination, _options.onFetchError, args[1].onFetchError)\n };\n }\n return useFetch(computedUrl, fetchOptions, options);\n }\n return useFactoryFetch;\n}\nfunction useFetch(url, ...args) {\n var _a;\n const supportsAbort = typeof AbortController === \"function\";\n let fetchOptions = {};\n let options = {\n immediate: true,\n refetch: false,\n timeout: 0,\n updateDataOnError: false\n };\n const config = {\n method: \"GET\",\n type: \"text\",\n payload: void 0\n };\n if (args.length > 0) {\n if (isFetchOptions(args[0]))\n options = { ...options, ...args[0] };\n else\n fetchOptions = args[0];\n }\n if (args.length > 1) {\n if (isFetchOptions(args[1]))\n options = { ...options, ...args[1] };\n }\n const {\n fetch = (_a = defaultWindow) == null ? void 0 : _a.fetch,\n initialData,\n timeout\n } = options;\n const responseEvent = createEventHook();\n const errorEvent = createEventHook();\n const finallyEvent = createEventHook();\n const isFinished = ref(false);\n const isFetching = ref(false);\n const aborted = ref(false);\n const statusCode = ref(null);\n const response = shallowRef(null);\n const error = shallowRef(null);\n const data = shallowRef(initialData || null);\n const canAbort = computed(() => supportsAbort && isFetching.value);\n let controller;\n let timer;\n const abort = () => {\n if (supportsAbort) {\n controller == null ? void 0 : controller.abort();\n controller = new AbortController();\n controller.signal.onabort = () => aborted.value = true;\n fetchOptions = {\n ...fetchOptions,\n signal: controller.signal\n };\n }\n };\n const loading = (isLoading) => {\n isFetching.value = isLoading;\n isFinished.value = !isLoading;\n };\n if (timeout)\n timer = useTimeoutFn(abort, timeout, { immediate: false });\n const execute = async (throwOnFailed = false) => {\n var _a2;\n abort();\n loading(true);\n error.value = null;\n statusCode.value = null;\n aborted.value = false;\n const defaultFetchOptions = {\n method: config.method,\n headers: {}\n };\n if (config.payload) {\n const headers = headersToObject(defaultFetchOptions.headers);\n const payload = toValue(config.payload);\n if (!config.payloadType && payload && Object.getPrototypeOf(payload) === Object.prototype && !(payload instanceof FormData))\n config.payloadType = \"json\";\n if (config.payloadType)\n headers[\"Content-Type\"] = (_a2 = payloadMapping[config.payloadType]) != null ? _a2 : config.payloadType;\n defaultFetchOptions.body = config.payloadType === \"json\" ? JSON.stringify(payload) : payload;\n }\n let isCanceled = false;\n const context = {\n url: toValue(url),\n options: {\n ...defaultFetchOptions,\n ...fetchOptions\n },\n cancel: () => {\n isCanceled = true;\n }\n };\n if (options.beforeFetch)\n Object.assign(context, await options.beforeFetch(context));\n if (isCanceled || !fetch) {\n loading(false);\n return Promise.resolve(null);\n }\n let responseData = null;\n if (timer)\n timer.start();\n return new Promise((resolve, reject) => {\n var _a3;\n fetch(\n context.url,\n {\n ...defaultFetchOptions,\n ...context.options,\n headers: {\n ...headersToObject(defaultFetchOptions.headers),\n ...headersToObject((_a3 = context.options) == null ? void 0 : _a3.headers)\n }\n }\n ).then(async (fetchResponse) => {\n response.value = fetchResponse;\n statusCode.value = fetchResponse.status;\n responseData = await fetchResponse[config.type]();\n if (!fetchResponse.ok) {\n data.value = initialData || null;\n throw new Error(fetchResponse.statusText);\n }\n if (options.afterFetch) {\n ({ data: responseData } = await options.afterFetch({\n data: responseData,\n response: fetchResponse\n }));\n }\n data.value = responseData;\n responseEvent.trigger(fetchResponse);\n return resolve(fetchResponse);\n }).catch(async (fetchError) => {\n let errorData = fetchError.message || fetchError.name;\n if (options.onFetchError) {\n ({ error: errorData, data: responseData } = await options.onFetchError({\n data: responseData,\n error: fetchError,\n response: response.value\n }));\n }\n error.value = errorData;\n if (options.updateDataOnError)\n data.value = responseData;\n errorEvent.trigger(fetchError);\n if (throwOnFailed)\n return reject(fetchError);\n return resolve(null);\n }).finally(() => {\n loading(false);\n if (timer)\n timer.stop();\n finallyEvent.trigger(null);\n });\n });\n };\n const refetch = toRef(options.refetch);\n watch(\n [\n refetch,\n toRef(url)\n ],\n ([refetch2]) => refetch2 && execute(),\n { deep: true }\n );\n const shell = {\n isFinished,\n statusCode,\n response,\n error,\n data,\n isFetching,\n canAbort,\n aborted,\n abort,\n execute,\n onFetchResponse: responseEvent.on,\n onFetchError: errorEvent.on,\n onFetchFinally: finallyEvent.on,\n // method\n get: setMethod(\"GET\"),\n put: setMethod(\"PUT\"),\n post: setMethod(\"POST\"),\n delete: setMethod(\"DELETE\"),\n patch: setMethod(\"PATCH\"),\n head: setMethod(\"HEAD\"),\n options: setMethod(\"OPTIONS\"),\n // type\n json: setType(\"json\"),\n text: setType(\"text\"),\n blob: setType(\"blob\"),\n arrayBuffer: setType(\"arrayBuffer\"),\n formData: setType(\"formData\")\n };\n function setMethod(method) {\n return (payload, payloadType) => {\n if (!isFetching.value) {\n config.method = method;\n config.payload = payload;\n config.payloadType = payloadType;\n if (isRef(config.payload)) {\n watch(\n [\n refetch,\n toRef(config.payload)\n ],\n ([refetch2]) => refetch2 && execute(),\n { deep: true }\n );\n }\n return {\n ...shell,\n then(onFulfilled, onRejected) {\n return waitUntilFinished().then(onFulfilled, onRejected);\n }\n };\n }\n return void 0;\n };\n }\n function waitUntilFinished() {\n return new Promise((resolve, reject) => {\n until(isFinished).toBe(true).then(() => resolve(shell)).catch((error2) => reject(error2));\n });\n }\n function setType(type) {\n return () => {\n if (!isFetching.value) {\n config.type = type;\n return {\n ...shell,\n then(onFulfilled, onRejected) {\n return waitUntilFinished().then(onFulfilled, onRejected);\n }\n };\n }\n return void 0;\n };\n }\n if (options.immediate)\n Promise.resolve().then(() => execute());\n return {\n ...shell,\n then(onFulfilled, onRejected) {\n return waitUntilFinished().then(onFulfilled, onRejected);\n }\n };\n}\nfunction joinPaths(start, end) {\n if (!start.endsWith(\"/\") && !end.startsWith(\"/\"))\n return `${start}/${end}`;\n return `${start}${end}`;\n}\n\nconst DEFAULT_OPTIONS = {\n multiple: true,\n accept: \"*\",\n reset: false\n};\nfunction useFileDialog(options = {}) {\n const {\n document = defaultDocument\n } = options;\n const files = ref(null);\n const { on: onChange, trigger } = createEventHook();\n let input;\n if (document) {\n input = document.createElement(\"input\");\n input.type = \"file\";\n input.onchange = (event) => {\n const result = event.target;\n files.value = result.files;\n trigger(files.value);\n };\n }\n const reset = () => {\n files.value = null;\n if (input)\n input.value = \"\";\n };\n const open = (localOptions) => {\n if (!input)\n return;\n const _options = {\n ...DEFAULT_OPTIONS,\n ...options,\n ...localOptions\n };\n input.multiple = _options.multiple;\n input.accept = _options.accept;\n if (hasOwn(_options, \"capture\"))\n input.capture = _options.capture;\n if (_options.reset)\n reset();\n input.click();\n };\n return {\n files: readonly(files),\n open,\n reset,\n onChange\n };\n}\n\nfunction useFileSystemAccess(options = {}) {\n const {\n window: _window = defaultWindow,\n dataType = \"Text\"\n } = options;\n const window = _window;\n const isSupported = useSupported(() => window && \"showSaveFilePicker\" in window && \"showOpenFilePicker\" in window);\n const fileHandle = ref();\n const data = ref();\n const file = ref();\n const fileName = computed(() => {\n var _a, _b;\n return (_b = (_a = file.value) == null ? void 0 : _a.name) != null ? _b : \"\";\n });\n const fileMIME = computed(() => {\n var _a, _b;\n return (_b = (_a = file.value) == null ? void 0 : _a.type) != null ? _b : \"\";\n });\n const fileSize = computed(() => {\n var _a, _b;\n return (_b = (_a = file.value) == null ? void 0 : _a.size) != null ? _b : 0;\n });\n const fileLastModified = computed(() => {\n var _a, _b;\n return (_b = (_a = file.value) == null ? void 0 : _a.lastModified) != null ? _b : 0;\n });\n async function open(_options = {}) {\n if (!isSupported.value)\n return;\n const [handle] = await window.showOpenFilePicker({ ...toValue(options), ..._options });\n fileHandle.value = handle;\n await updateFile();\n await updateData();\n }\n async function create(_options = {}) {\n if (!isSupported.value)\n return;\n fileHandle.value = await window.showSaveFilePicker({ ...options, ..._options });\n data.value = void 0;\n await updateFile();\n await updateData();\n }\n async function save(_options = {}) {\n if (!isSupported.value)\n return;\n if (!fileHandle.value)\n return saveAs(_options);\n if (data.value) {\n const writableStream = await fileHandle.value.createWritable();\n await writableStream.write(data.value);\n await writableStream.close();\n }\n await updateFile();\n }\n async function saveAs(_options = {}) {\n if (!isSupported.value)\n return;\n fileHandle.value = await window.showSaveFilePicker({ ...options, ..._options });\n if (data.value) {\n const writableStream = await fileHandle.value.createWritable();\n await writableStream.write(data.value);\n await writableStream.close();\n }\n await updateFile();\n }\n async function updateFile() {\n var _a;\n file.value = await ((_a = fileHandle.value) == null ? void 0 : _a.getFile());\n }\n async function updateData() {\n var _a, _b;\n const type = toValue(dataType);\n if (type === \"Text\")\n data.value = await ((_a = file.value) == null ? void 0 : _a.text());\n else if (type === \"ArrayBuffer\")\n data.value = await ((_b = file.value) == null ? void 0 : _b.arrayBuffer());\n else if (type === \"Blob\")\n data.value = file.value;\n }\n watch(() => toValue(dataType), updateData);\n return {\n isSupported,\n data,\n file,\n fileName,\n fileMIME,\n fileSize,\n fileLastModified,\n open,\n create,\n save,\n saveAs,\n updateData\n };\n}\n\nfunction useFocus(target, options = {}) {\n const { initialValue = false, focusVisible = false } = options;\n const innerFocused = ref(false);\n const targetElement = computed(() => unrefElement(target));\n useEventListener(targetElement, \"focus\", (event) => {\n var _a, _b;\n if (!focusVisible || ((_b = (_a = event.target).matches) == null ? void 0 : _b.call(_a, \":focus-visible\")))\n innerFocused.value = true;\n });\n useEventListener(targetElement, \"blur\", () => innerFocused.value = false);\n const focused = computed({\n get: () => innerFocused.value,\n set(value) {\n var _a, _b;\n if (!value && innerFocused.value)\n (_a = targetElement.value) == null ? void 0 : _a.blur();\n else if (value && !innerFocused.value)\n (_b = targetElement.value) == null ? void 0 : _b.focus();\n }\n });\n watch(\n targetElement,\n () => {\n focused.value = initialValue;\n },\n { immediate: true, flush: \"post\" }\n );\n return { focused };\n}\n\nfunction useFocusWithin(target, options = {}) {\n const activeElement = useActiveElement(options);\n const targetElement = computed(() => unrefElement(target));\n const focused = computed(() => targetElement.value && activeElement.value ? targetElement.value.contains(activeElement.value) : false);\n return { focused };\n}\n\nfunction useFps(options) {\n var _a;\n const fps = ref(0);\n if (typeof performance === \"undefined\")\n return fps;\n const every = (_a = options == null ? void 0 : options.every) != null ? _a : 10;\n let last = performance.now();\n let ticks = 0;\n useRafFn(() => {\n ticks += 1;\n if (ticks >= every) {\n const now = performance.now();\n const diff = now - last;\n fps.value = Math.round(1e3 / (diff / ticks));\n last = now;\n ticks = 0;\n }\n });\n return fps;\n}\n\nconst eventHandlers = [\n \"fullscreenchange\",\n \"webkitfullscreenchange\",\n \"webkitendfullscreen\",\n \"mozfullscreenchange\",\n \"MSFullscreenChange\"\n];\nfunction useFullscreen(target, options = {}) {\n const {\n document = defaultDocument,\n autoExit = false\n } = options;\n const targetRef = computed(() => {\n var _a;\n return (_a = unrefElement(target)) != null ? _a : document == null ? void 0 : document.querySelector(\"html\");\n });\n const isFullscreen = ref(false);\n const requestMethod = computed(() => {\n return [\n \"requestFullscreen\",\n \"webkitRequestFullscreen\",\n \"webkitEnterFullscreen\",\n \"webkitEnterFullScreen\",\n \"webkitRequestFullScreen\",\n \"mozRequestFullScreen\",\n \"msRequestFullscreen\"\n ].find((m) => document && m in document || targetRef.value && m in targetRef.value);\n });\n const exitMethod = computed(() => {\n return [\n \"exitFullscreen\",\n \"webkitExitFullscreen\",\n \"webkitExitFullScreen\",\n \"webkitCancelFullScreen\",\n \"mozCancelFullScreen\",\n \"msExitFullscreen\"\n ].find((m) => document && m in document || targetRef.value && m in targetRef.value);\n });\n const fullscreenEnabled = computed(() => {\n return [\n \"fullScreen\",\n \"webkitIsFullScreen\",\n \"webkitDisplayingFullscreen\",\n \"mozFullScreen\",\n \"msFullscreenElement\"\n ].find((m) => document && m in document || targetRef.value && m in targetRef.value);\n });\n const fullscreenElementMethod = [\n \"fullscreenElement\",\n \"webkitFullscreenElement\",\n \"mozFullScreenElement\",\n \"msFullscreenElement\"\n ].find((m) => document && m in document);\n const isSupported = useSupported(() => targetRef.value && document && requestMethod.value !== void 0 && exitMethod.value !== void 0 && fullscreenEnabled.value !== void 0);\n const isCurrentElementFullScreen = () => {\n if (fullscreenElementMethod)\n return (document == null ? void 0 : document[fullscreenElementMethod]) === targetRef.value;\n return false;\n };\n const isElementFullScreen = () => {\n if (fullscreenEnabled.value) {\n if (document && document[fullscreenEnabled.value] != null) {\n return document[fullscreenEnabled.value];\n } else {\n const target2 = targetRef.value;\n if ((target2 == null ? void 0 : target2[fullscreenEnabled.value]) != null) {\n return Boolean(target2[fullscreenEnabled.value]);\n }\n }\n }\n return false;\n };\n async function exit() {\n if (!isSupported.value || !isFullscreen.value)\n return;\n if (exitMethod.value) {\n if ((document == null ? void 0 : document[exitMethod.value]) != null) {\n await document[exitMethod.value]();\n } else {\n const target2 = targetRef.value;\n if ((target2 == null ? void 0 : target2[exitMethod.value]) != null)\n await target2[exitMethod.value]();\n }\n }\n isFullscreen.value = false;\n }\n async function enter() {\n if (!isSupported.value || isFullscreen.value)\n return;\n if (isElementFullScreen())\n await exit();\n const target2 = targetRef.value;\n if (requestMethod.value && (target2 == null ? void 0 : target2[requestMethod.value]) != null) {\n await target2[requestMethod.value]();\n isFullscreen.value = true;\n }\n }\n async function toggle() {\n await (isFullscreen.value ? exit() : enter());\n }\n const handlerCallback = () => {\n const isElementFullScreenValue = isElementFullScreen();\n if (!isElementFullScreenValue || isElementFullScreenValue && isCurrentElementFullScreen())\n isFullscreen.value = isElementFullScreenValue;\n };\n useEventListener(document, eventHandlers, handlerCallback, false);\n useEventListener(() => unrefElement(targetRef), eventHandlers, handlerCallback, false);\n if (autoExit)\n tryOnScopeDispose(exit);\n return {\n isSupported,\n isFullscreen,\n enter,\n exit,\n toggle\n };\n}\n\nfunction mapGamepadToXbox360Controller(gamepad) {\n return computed(() => {\n if (gamepad.value) {\n return {\n buttons: {\n a: gamepad.value.buttons[0],\n b: gamepad.value.buttons[1],\n x: gamepad.value.buttons[2],\n y: gamepad.value.buttons[3]\n },\n bumper: {\n left: gamepad.value.buttons[4],\n right: gamepad.value.buttons[5]\n },\n triggers: {\n left: gamepad.value.buttons[6],\n right: gamepad.value.buttons[7]\n },\n stick: {\n left: {\n horizontal: gamepad.value.axes[0],\n vertical: gamepad.value.axes[1],\n button: gamepad.value.buttons[10]\n },\n right: {\n horizontal: gamepad.value.axes[2],\n vertical: gamepad.value.axes[3],\n button: gamepad.value.buttons[11]\n }\n },\n dpad: {\n up: gamepad.value.buttons[12],\n down: gamepad.value.buttons[13],\n left: gamepad.value.buttons[14],\n right: gamepad.value.buttons[15]\n },\n back: gamepad.value.buttons[8],\n start: gamepad.value.buttons[9]\n };\n }\n return null;\n });\n}\nfunction useGamepad(options = {}) {\n const {\n navigator = defaultNavigator\n } = options;\n const isSupported = useSupported(() => navigator && \"getGamepads\" in navigator);\n const gamepads = ref([]);\n const onConnectedHook = createEventHook();\n const onDisconnectedHook = createEventHook();\n const stateFromGamepad = (gamepad) => {\n const hapticActuators = [];\n const vibrationActuator = \"vibrationActuator\" in gamepad ? gamepad.vibrationActuator : null;\n if (vibrationActuator)\n hapticActuators.push(vibrationActuator);\n if (gamepad.hapticActuators)\n hapticActuators.push(...gamepad.hapticActuators);\n return {\n ...gamepad,\n id: gamepad.id,\n hapticActuators,\n axes: gamepad.axes.map((axes) => axes),\n buttons: gamepad.buttons.map((button) => ({ pressed: button.pressed, touched: button.touched, value: button.value }))\n };\n };\n const updateGamepadState = () => {\n const _gamepads = (navigator == null ? void 0 : navigator.getGamepads()) || [];\n for (let i = 0; i < _gamepads.length; ++i) {\n const gamepad = _gamepads[i];\n if (gamepad) {\n const index = gamepads.value.findIndex(({ index: index2 }) => index2 === gamepad.index);\n if (index > -1)\n gamepads.value[index] = stateFromGamepad(gamepad);\n }\n }\n };\n const { isActive, pause, resume } = useRafFn(updateGamepadState);\n const onGamepadConnected = (gamepad) => {\n if (!gamepads.value.some(({ index }) => index === gamepad.index)) {\n gamepads.value.push(stateFromGamepad(gamepad));\n onConnectedHook.trigger(gamepad.index);\n }\n resume();\n };\n const onGamepadDisconnected = (gamepad) => {\n gamepads.value = gamepads.value.filter((x) => x.index !== gamepad.index);\n onDisconnectedHook.trigger(gamepad.index);\n };\n useEventListener(\"gamepadconnected\", (e) => onGamepadConnected(e.gamepad));\n useEventListener(\"gamepaddisconnected\", (e) => onGamepadDisconnected(e.gamepad));\n tryOnMounted(() => {\n const _gamepads = (navigator == null ? void 0 : navigator.getGamepads()) || [];\n if (_gamepads) {\n for (let i = 0; i < _gamepads.length; ++i) {\n const gamepad = _gamepads[i];\n if (gamepad)\n onGamepadConnected(gamepad);\n }\n }\n });\n pause();\n return {\n isSupported,\n onConnected: onConnectedHook.on,\n onDisconnected: onDisconnectedHook.on,\n gamepads,\n pause,\n resume,\n isActive\n };\n}\n\nfunction useGeolocation(options = {}) {\n const {\n enableHighAccuracy = true,\n maximumAge = 3e4,\n timeout = 27e3,\n navigator = defaultNavigator,\n immediate = true\n } = options;\n const isSupported = useSupported(() => navigator && \"geolocation\" in navigator);\n const locatedAt = ref(null);\n const error = shallowRef(null);\n const coords = ref({\n accuracy: 0,\n latitude: Number.POSITIVE_INFINITY,\n longitude: Number.POSITIVE_INFINITY,\n altitude: null,\n altitudeAccuracy: null,\n heading: null,\n speed: null\n });\n function updatePosition(position) {\n locatedAt.value = position.timestamp;\n coords.value = position.coords;\n error.value = null;\n }\n let watcher;\n function resume() {\n if (isSupported.value) {\n watcher = navigator.geolocation.watchPosition(\n updatePosition,\n (err) => error.value = err,\n {\n enableHighAccuracy,\n maximumAge,\n timeout\n }\n );\n }\n }\n if (immediate)\n resume();\n function pause() {\n if (watcher && navigator)\n navigator.geolocation.clearWatch(watcher);\n }\n tryOnScopeDispose(() => {\n pause();\n });\n return {\n isSupported,\n coords,\n locatedAt,\n error,\n resume,\n pause\n };\n}\n\nconst defaultEvents$1 = [\"mousemove\", \"mousedown\", \"resize\", \"keydown\", \"touchstart\", \"wheel\"];\nconst oneMinute = 6e4;\nfunction useIdle(timeout = oneMinute, options = {}) {\n const {\n initialState = false,\n listenForVisibilityChange = true,\n events = defaultEvents$1,\n window = defaultWindow,\n eventFilter = throttleFilter(50)\n } = options;\n const idle = ref(initialState);\n const lastActive = ref(timestamp());\n let timer;\n const reset = () => {\n idle.value = false;\n clearTimeout(timer);\n timer = setTimeout(() => idle.value = true, timeout);\n };\n const onEvent = createFilterWrapper(\n eventFilter,\n () => {\n lastActive.value = timestamp();\n reset();\n }\n );\n if (window) {\n const document = window.document;\n for (const event of events)\n useEventListener(window, event, onEvent, { passive: true });\n if (listenForVisibilityChange) {\n useEventListener(document, \"visibilitychange\", () => {\n if (!document.hidden)\n onEvent();\n });\n }\n reset();\n }\n return {\n idle,\n lastActive,\n reset\n };\n}\n\nasync function loadImage(options) {\n return new Promise((resolve, reject) => {\n const img = new Image();\n const { src, srcset, sizes, class: clazz, loading, crossorigin, referrerPolicy } = options;\n img.src = src;\n if (srcset)\n img.srcset = srcset;\n if (sizes)\n img.sizes = sizes;\n if (clazz)\n img.className = clazz;\n if (loading)\n img.loading = loading;\n if (crossorigin)\n img.crossOrigin = crossorigin;\n if (referrerPolicy)\n img.referrerPolicy = referrerPolicy;\n img.onload = () => resolve(img);\n img.onerror = reject;\n });\n}\nfunction useImage(options, asyncStateOptions = {}) {\n const state = useAsyncState(\n () => loadImage(toValue(options)),\n void 0,\n {\n resetOnExecute: true,\n ...asyncStateOptions\n }\n );\n watch(\n () => toValue(options),\n () => state.execute(asyncStateOptions.delay),\n { deep: true }\n );\n return state;\n}\n\nconst ARRIVED_STATE_THRESHOLD_PIXELS = 1;\nfunction useScroll(element, options = {}) {\n const {\n throttle = 0,\n idle = 200,\n onStop = noop,\n onScroll = noop,\n offset = {\n left: 0,\n right: 0,\n top: 0,\n bottom: 0\n },\n eventListenerOptions = {\n capture: false,\n passive: true\n },\n behavior = \"auto\",\n window = defaultWindow\n } = options;\n const internalX = ref(0);\n const internalY = ref(0);\n const x = computed({\n get() {\n return internalX.value;\n },\n set(x2) {\n scrollTo(x2, void 0);\n }\n });\n const y = computed({\n get() {\n return internalY.value;\n },\n set(y2) {\n scrollTo(void 0, y2);\n }\n });\n function scrollTo(_x, _y) {\n var _a, _b, _c;\n if (!window)\n return;\n const _element = toValue(element);\n if (!_element)\n return;\n (_c = _element instanceof Document ? window.document.body : _element) == null ? void 0 : _c.scrollTo({\n top: (_a = toValue(_y)) != null ? _a : y.value,\n left: (_b = toValue(_x)) != null ? _b : x.value,\n behavior: toValue(behavior)\n });\n }\n const isScrolling = ref(false);\n const arrivedState = reactive({\n left: true,\n right: false,\n top: true,\n bottom: false\n });\n const directions = reactive({\n left: false,\n right: false,\n top: false,\n bottom: false\n });\n const onScrollEnd = (e) => {\n if (!isScrolling.value)\n return;\n isScrolling.value = false;\n directions.left = false;\n directions.right = false;\n directions.top = false;\n directions.bottom = false;\n onStop(e);\n };\n const onScrollEndDebounced = useDebounceFn(onScrollEnd, throttle + idle);\n const setArrivedState = (target) => {\n var _a;\n if (!window)\n return;\n const el = target.document ? target.document.documentElement : (_a = target.documentElement) != null ? _a : target;\n const { display, flexDirection } = getComputedStyle(el);\n const scrollLeft = el.scrollLeft;\n directions.left = scrollLeft < internalX.value;\n directions.right = scrollLeft > internalX.value;\n const left = Math.abs(scrollLeft) <= 0 + (offset.left || 0);\n const right = Math.abs(scrollLeft) + el.clientWidth >= el.scrollWidth - (offset.right || 0) - ARRIVED_STATE_THRESHOLD_PIXELS;\n if (display === \"flex\" && flexDirection === \"row-reverse\") {\n arrivedState.left = right;\n arrivedState.right = left;\n } else {\n arrivedState.left = left;\n arrivedState.right = right;\n }\n internalX.value = scrollLeft;\n let scrollTop = el.scrollTop;\n if (target === window.document && !scrollTop)\n scrollTop = window.document.body.scrollTop;\n directions.top = scrollTop < internalY.value;\n directions.bottom = scrollTop > internalY.value;\n const top = Math.abs(scrollTop) <= 0 + (offset.top || 0);\n const bottom = Math.abs(scrollTop) + el.clientHeight >= el.scrollHeight - (offset.bottom || 0) - ARRIVED_STATE_THRESHOLD_PIXELS;\n if (display === \"flex\" && flexDirection === \"column-reverse\") {\n arrivedState.top = bottom;\n arrivedState.bottom = top;\n } else {\n arrivedState.top = top;\n arrivedState.bottom = bottom;\n }\n internalY.value = scrollTop;\n };\n const onScrollHandler = (e) => {\n var _a;\n if (!window)\n return;\n const eventTarget = (_a = e.target.documentElement) != null ? _a : e.target;\n setArrivedState(eventTarget);\n isScrolling.value = true;\n onScrollEndDebounced(e);\n onScroll(e);\n };\n useEventListener(\n element,\n \"scroll\",\n throttle ? useThrottleFn(onScrollHandler, throttle, true, false) : onScrollHandler,\n eventListenerOptions\n );\n useEventListener(\n element,\n \"scrollend\",\n onScrollEnd,\n eventListenerOptions\n );\n return {\n x,\n y,\n isScrolling,\n arrivedState,\n directions,\n measure() {\n const _element = toValue(element);\n if (window && _element)\n setArrivedState(_element);\n }\n };\n}\n\nfunction resolveElement(el) {\n if (typeof Window !== \"undefined\" && el instanceof Window)\n return el.document.documentElement;\n if (typeof Document !== \"undefined\" && el instanceof Document)\n return el.documentElement;\n return el;\n}\n\nfunction useInfiniteScroll(element, onLoadMore, options = {}) {\n var _a;\n const {\n direction = \"bottom\",\n interval = 100\n } = options;\n const state = reactive(useScroll(\n element,\n {\n ...options,\n offset: {\n [direction]: (_a = options.distance) != null ? _a : 0,\n ...options.offset\n }\n }\n ));\n const promise = ref();\n const isLoading = computed(() => !!promise.value);\n const observedElement = computed(() => {\n return resolveElement(toValue(element));\n });\n const isElementVisible = useElementVisibility(observedElement);\n function checkAndLoad() {\n state.measure();\n if (!observedElement.value || !isElementVisible.value)\n return;\n const { scrollHeight, clientHeight, scrollWidth, clientWidth } = observedElement.value;\n const isNarrower = direction === \"bottom\" || direction === \"top\" ? scrollHeight <= clientHeight : scrollWidth <= clientWidth;\n if (state.arrivedState[direction] || isNarrower) {\n if (!promise.value) {\n promise.value = Promise.all([\n onLoadMore(state),\n new Promise((resolve) => setTimeout(resolve, interval))\n ]).finally(() => {\n promise.value = null;\n nextTick(() => checkAndLoad());\n });\n }\n }\n }\n watch(\n () => [state.arrivedState[direction], isElementVisible.value],\n checkAndLoad,\n { immediate: true }\n );\n return {\n isLoading\n };\n}\n\nconst defaultEvents = [\"mousedown\", \"mouseup\", \"keydown\", \"keyup\"];\nfunction useKeyModifier(modifier, options = {}) {\n const {\n events = defaultEvents,\n document = defaultDocument,\n initial = null\n } = options;\n const state = ref(initial);\n if (document) {\n events.forEach((listenerEvent) => {\n useEventListener(document, listenerEvent, (evt) => {\n if (typeof evt.getModifierState === \"function\")\n state.value = evt.getModifierState(modifier);\n });\n });\n }\n return state;\n}\n\nfunction useLocalStorage(key, initialValue, options = {}) {\n const { window = defaultWindow } = options;\n return useStorage(key, initialValue, window == null ? void 0 : window.localStorage, options);\n}\n\nconst DefaultMagicKeysAliasMap = {\n ctrl: \"control\",\n command: \"meta\",\n cmd: \"meta\",\n option: \"alt\",\n up: \"arrowup\",\n down: \"arrowdown\",\n left: \"arrowleft\",\n right: \"arrowright\"\n};\n\nfunction useMagicKeys(options = {}) {\n const {\n reactive: useReactive = false,\n target = defaultWindow,\n aliasMap = DefaultMagicKeysAliasMap,\n passive = true,\n onEventFired = noop\n } = options;\n const current = reactive(/* @__PURE__ */ new Set());\n const obj = {\n toJSON() {\n return {};\n },\n current\n };\n const refs = useReactive ? reactive(obj) : obj;\n const metaDeps = /* @__PURE__ */ new Set();\n const usedKeys = /* @__PURE__ */ new Set();\n function setRefs(key, value) {\n if (key in refs) {\n if (useReactive)\n refs[key] = value;\n else\n refs[key].value = value;\n }\n }\n function reset() {\n current.clear();\n for (const key of usedKeys)\n setRefs(key, false);\n }\n function updateRefs(e, value) {\n var _a, _b;\n const key = (_a = e.key) == null ? void 0 : _a.toLowerCase();\n const code = (_b = e.code) == null ? void 0 : _b.toLowerCase();\n const values = [code, key].filter(Boolean);\n if (key) {\n if (value)\n current.add(key);\n else\n current.delete(key);\n }\n for (const key2 of values) {\n usedKeys.add(key2);\n setRefs(key2, value);\n }\n if (key === \"meta\" && !value) {\n metaDeps.forEach((key2) => {\n current.delete(key2);\n setRefs(key2, false);\n });\n metaDeps.clear();\n } else if (typeof e.getModifierState === \"function\" && e.getModifierState(\"Meta\") && value) {\n [...current, ...values].forEach((key2) => metaDeps.add(key2));\n }\n }\n useEventListener(target, \"keydown\", (e) => {\n updateRefs(e, true);\n return onEventFired(e);\n }, { passive });\n useEventListener(target, \"keyup\", (e) => {\n updateRefs(e, false);\n return onEventFired(e);\n }, { passive });\n useEventListener(\"blur\", reset, { passive: true });\n useEventListener(\"focus\", reset, { passive: true });\n const proxy = new Proxy(\n refs,\n {\n get(target2, prop, rec) {\n if (typeof prop !== \"string\")\n return Reflect.get(target2, prop, rec);\n prop = prop.toLowerCase();\n if (prop in aliasMap)\n prop = aliasMap[prop];\n if (!(prop in refs)) {\n if (/[+_-]/.test(prop)) {\n const keys = prop.split(/[+_-]/g).map((i) => i.trim());\n refs[prop] = computed(() => keys.every((key) => toValue(proxy[key])));\n } else {\n refs[prop] = ref(false);\n }\n }\n const r = Reflect.get(target2, prop, rec);\n return useReactive ? toValue(r) : r;\n }\n }\n );\n return proxy;\n}\n\nfunction usingElRef(source, cb) {\n if (toValue(source))\n cb(toValue(source));\n}\nfunction timeRangeToArray(timeRanges) {\n let ranges = [];\n for (let i = 0; i < timeRanges.length; ++i)\n ranges = [...ranges, [timeRanges.start(i), timeRanges.end(i)]];\n return ranges;\n}\nfunction tracksToArray(tracks) {\n return Array.from(tracks).map(({ label, kind, language, mode, activeCues, cues, inBandMetadataTrackDispatchType }, id) => ({ id, label, kind, language, mode, activeCues, cues, inBandMetadataTrackDispatchType }));\n}\nconst defaultOptions = {\n src: \"\",\n tracks: []\n};\nfunction useMediaControls(target, options = {}) {\n options = {\n ...defaultOptions,\n ...options\n };\n const {\n document = defaultDocument\n } = options;\n const currentTime = ref(0);\n const duration = ref(0);\n const seeking = ref(false);\n const volume = ref(1);\n const waiting = ref(false);\n const ended = ref(false);\n const playing = ref(false);\n const rate = ref(1);\n const stalled = ref(false);\n const buffered = ref([]);\n const tracks = ref([]);\n const selectedTrack = ref(-1);\n const isPictureInPicture = ref(false);\n const muted = ref(false);\n const supportsPictureInPicture = document && \"pictureInPictureEnabled\" in document;\n const sourceErrorEvent = createEventHook();\n const disableTrack = (track) => {\n usingElRef(target, (el) => {\n if (track) {\n const id = typeof track === \"number\" ? track : track.id;\n el.textTracks[id].mode = \"disabled\";\n } else {\n for (let i = 0; i < el.textTracks.length; ++i)\n el.textTracks[i].mode = \"disabled\";\n }\n selectedTrack.value = -1;\n });\n };\n const enableTrack = (track, disableTracks = true) => {\n usingElRef(target, (el) => {\n const id = typeof track === \"number\" ? track : track.id;\n if (disableTracks)\n disableTrack();\n el.textTracks[id].mode = \"showing\";\n selectedTrack.value = id;\n });\n };\n const togglePictureInPicture = () => {\n return new Promise((resolve, reject) => {\n usingElRef(target, async (el) => {\n if (supportsPictureInPicture) {\n if (!isPictureInPicture.value) {\n el.requestPictureInPicture().then(resolve).catch(reject);\n } else {\n document.exitPictureInPicture().then(resolve).catch(reject);\n }\n }\n });\n });\n };\n watchEffect(() => {\n if (!document)\n return;\n const el = toValue(target);\n if (!el)\n return;\n const src = toValue(options.src);\n let sources = [];\n if (!src)\n return;\n if (typeof src === \"string\")\n sources = [{ src }];\n else if (Array.isArray(src))\n sources = src;\n else if (isObject(src))\n sources = [src];\n el.querySelectorAll(\"source\").forEach((e) => {\n e.removeEventListener(\"error\", sourceErrorEvent.trigger);\n e.remove();\n });\n sources.forEach(({ src: src2, type }) => {\n const source = document.createElement(\"source\");\n source.setAttribute(\"src\", src2);\n source.setAttribute(\"type\", type || \"\");\n source.addEventListener(\"error\", sourceErrorEvent.trigger);\n el.appendChild(source);\n });\n el.load();\n });\n tryOnScopeDispose(() => {\n const el = toValue(target);\n if (!el)\n return;\n el.querySelectorAll(\"source\").forEach((e) => e.removeEventListener(\"error\", sourceErrorEvent.trigger));\n });\n watch([target, volume], () => {\n const el = toValue(target);\n if (!el)\n return;\n el.volume = volume.value;\n });\n watch([target, muted], () => {\n const el = toValue(target);\n if (!el)\n return;\n el.muted = muted.value;\n });\n watch([target, rate], () => {\n const el = toValue(target);\n if (!el)\n return;\n el.playbackRate = rate.value;\n });\n watchEffect(() => {\n if (!document)\n return;\n const textTracks = toValue(options.tracks);\n const el = toValue(target);\n if (!textTracks || !textTracks.length || !el)\n return;\n el.querySelectorAll(\"track\").forEach((e) => e.remove());\n textTracks.forEach(({ default: isDefault, kind, label, src, srcLang }, i) => {\n const track = document.createElement(\"track\");\n track.default = isDefault || false;\n track.kind = kind;\n track.label = label;\n track.src = src;\n track.srclang = srcLang;\n if (track.default)\n selectedTrack.value = i;\n el.appendChild(track);\n });\n });\n const { ignoreUpdates: ignoreCurrentTimeUpdates } = watchIgnorable(currentTime, (time) => {\n const el = toValue(target);\n if (!el)\n return;\n el.currentTime = time;\n });\n const { ignoreUpdates: ignorePlayingUpdates } = watchIgnorable(playing, (isPlaying) => {\n const el = toValue(target);\n if (!el)\n return;\n isPlaying ? el.play() : el.pause();\n });\n useEventListener(target, \"timeupdate\", () => ignoreCurrentTimeUpdates(() => currentTime.value = toValue(target).currentTime));\n useEventListener(target, \"durationchange\", () => duration.value = toValue(target).duration);\n useEventListener(target, \"progress\", () => buffered.value = timeRangeToArray(toValue(target).buffered));\n useEventListener(target, \"seeking\", () => seeking.value = true);\n useEventListener(target, \"seeked\", () => seeking.value = false);\n useEventListener(target, [\"waiting\", \"loadstart\"], () => {\n waiting.value = true;\n ignorePlayingUpdates(() => playing.value = false);\n });\n useEventListener(target, \"loadeddata\", () => waiting.value = false);\n useEventListener(target, \"playing\", () => {\n waiting.value = false;\n ended.value = false;\n ignorePlayingUpdates(() => playing.value = true);\n });\n useEventListener(target, \"ratechange\", () => rate.value = toValue(target).playbackRate);\n useEventListener(target, \"stalled\", () => stalled.value = true);\n useEventListener(target, \"ended\", () => ended.value = true);\n useEventListener(target, \"pause\", () => ignorePlayingUpdates(() => playing.value = false));\n useEventListener(target, \"play\", () => ignorePlayingUpdates(() => playing.value = true));\n useEventListener(target, \"enterpictureinpicture\", () => isPictureInPicture.value = true);\n useEventListener(target, \"leavepictureinpicture\", () => isPictureInPicture.value = false);\n useEventListener(target, \"volumechange\", () => {\n const el = toValue(target);\n if (!el)\n return;\n volume.value = el.volume;\n muted.value = el.muted;\n });\n const listeners = [];\n const stop = watch([target], () => {\n const el = toValue(target);\n if (!el)\n return;\n stop();\n listeners[0] = useEventListener(el.textTracks, \"addtrack\", () => tracks.value = tracksToArray(el.textTracks));\n listeners[1] = useEventListener(el.textTracks, \"removetrack\", () => tracks.value = tracksToArray(el.textTracks));\n listeners[2] = useEventListener(el.textTracks, \"change\", () => tracks.value = tracksToArray(el.textTracks));\n });\n tryOnScopeDispose(() => listeners.forEach((listener) => listener()));\n return {\n currentTime,\n duration,\n waiting,\n seeking,\n ended,\n stalled,\n buffered,\n playing,\n rate,\n // Volume\n volume,\n muted,\n // Tracks\n tracks,\n selectedTrack,\n enableTrack,\n disableTrack,\n // Picture in Picture\n supportsPictureInPicture,\n togglePictureInPicture,\n isPictureInPicture,\n // Events\n onSourceError: sourceErrorEvent.on\n };\n}\n\nfunction getMapVue2Compat() {\n const data = reactive({});\n return {\n get: (key) => data[key],\n set: (key, value) => set(data, key, value),\n has: (key) => hasOwn(data, key),\n delete: (key) => del(data, key),\n clear: () => {\n Object.keys(data).forEach((key) => {\n del(data, key);\n });\n }\n };\n}\nfunction useMemoize(resolver, options) {\n const initCache = () => {\n if (options == null ? void 0 : options.cache)\n return reactive(options.cache);\n if (isVue2)\n return getMapVue2Compat();\n return reactive(/* @__PURE__ */ new Map());\n };\n const cache = initCache();\n const generateKey = (...args) => (options == null ? void 0 : options.getKey) ? options.getKey(...args) : JSON.stringify(args);\n const _loadData = (key, ...args) => {\n cache.set(key, resolver(...args));\n return cache.get(key);\n };\n const loadData = (...args) => _loadData(generateKey(...args), ...args);\n const deleteData = (...args) => {\n cache.delete(generateKey(...args));\n };\n const clearData = () => {\n cache.clear();\n };\n const memoized = (...args) => {\n const key = generateKey(...args);\n if (cache.has(key))\n return cache.get(key);\n return _loadData(key, ...args);\n };\n memoized.load = loadData;\n memoized.delete = deleteData;\n memoized.clear = clearData;\n memoized.generateKey = generateKey;\n memoized.cache = cache;\n return memoized;\n}\n\nfunction useMemory(options = {}) {\n const memory = ref();\n const isSupported = useSupported(() => typeof performance !== \"undefined\" && \"memory\" in performance);\n if (isSupported.value) {\n const { interval = 1e3 } = options;\n useIntervalFn(() => {\n memory.value = performance.memory;\n }, interval, { immediate: options.immediate, immediateCallback: options.immediateCallback });\n }\n return { isSupported, memory };\n}\n\nconst UseMouseBuiltinExtractors = {\n page: (event) => [event.pageX, event.pageY],\n client: (event) => [event.clientX, event.clientY],\n screen: (event) => [event.screenX, event.screenY],\n movement: (event) => event instanceof Touch ? null : [event.movementX, event.movementY]\n};\nfunction useMouse(options = {}) {\n const {\n type = \"page\",\n touch = true,\n resetOnTouchEnds = false,\n initialValue = { x: 0, y: 0 },\n window = defaultWindow,\n target = window,\n scroll = true,\n eventFilter\n } = options;\n let _prevMouseEvent = null;\n const x = ref(initialValue.x);\n const y = ref(initialValue.y);\n const sourceType = ref(null);\n const extractor = typeof type === \"function\" ? type : UseMouseBuiltinExtractors[type];\n const mouseHandler = (event) => {\n const result = extractor(event);\n _prevMouseEvent = event;\n if (result) {\n [x.value, y.value] = result;\n sourceType.value = \"mouse\";\n }\n };\n const touchHandler = (event) => {\n if (event.touches.length > 0) {\n const result = extractor(event.touches[0]);\n if (result) {\n [x.value, y.value] = result;\n sourceType.value = \"touch\";\n }\n }\n };\n const scrollHandler = () => {\n if (!_prevMouseEvent || !window)\n return;\n const pos = extractor(_prevMouseEvent);\n if (_prevMouseEvent instanceof MouseEvent && pos) {\n x.value = pos[0] + window.scrollX;\n y.value = pos[1] + window.scrollY;\n }\n };\n const reset = () => {\n x.value = initialValue.x;\n y.value = initialValue.y;\n };\n const mouseHandlerWrapper = eventFilter ? (event) => eventFilter(() => mouseHandler(event), {}) : (event) => mouseHandler(event);\n const touchHandlerWrapper = eventFilter ? (event) => eventFilter(() => touchHandler(event), {}) : (event) => touchHandler(event);\n const scrollHandlerWrapper = eventFilter ? () => eventFilter(() => scrollHandler(), {}) : () => scrollHandler();\n if (target) {\n const listenerOptions = { passive: true };\n useEventListener(target, [\"mousemove\", \"dragover\"], mouseHandlerWrapper, listenerOptions);\n if (touch && type !== \"movement\") {\n useEventListener(target, [\"touchstart\", \"touchmove\"], touchHandlerWrapper, listenerOptions);\n if (resetOnTouchEnds)\n useEventListener(target, \"touchend\", reset, listenerOptions);\n }\n if (scroll && type === \"page\")\n useEventListener(window, \"scroll\", scrollHandlerWrapper, { passive: true });\n }\n return {\n x,\n y,\n sourceType\n };\n}\n\nfunction useMouseInElement(target, options = {}) {\n const {\n handleOutside = true,\n window = defaultWindow\n } = options;\n const { x, y, sourceType } = useMouse(options);\n const targetRef = ref(target != null ? target : window == null ? void 0 : window.document.body);\n const elementX = ref(0);\n const elementY = ref(0);\n const elementPositionX = ref(0);\n const elementPositionY = ref(0);\n const elementHeight = ref(0);\n const elementWidth = ref(0);\n const isOutside = ref(true);\n let stop = () => {\n };\n if (window) {\n stop = watch(\n [targetRef, x, y],\n () => {\n const el = unrefElement(targetRef);\n if (!el)\n return;\n const {\n left,\n top,\n width,\n height\n } = el.getBoundingClientRect();\n elementPositionX.value = left + window.pageXOffset;\n elementPositionY.value = top + window.pageYOffset;\n elementHeight.value = height;\n elementWidth.value = width;\n const elX = x.value - elementPositionX.value;\n const elY = y.value - elementPositionY.value;\n isOutside.value = width === 0 || height === 0 || elX < 0 || elY < 0 || elX > width || elY > height;\n if (handleOutside || !isOutside.value) {\n elementX.value = elX;\n elementY.value = elY;\n }\n },\n { immediate: true }\n );\n useEventListener(document, \"mouseleave\", () => {\n isOutside.value = true;\n });\n }\n return {\n x,\n y,\n sourceType,\n elementX,\n elementY,\n elementPositionX,\n elementPositionY,\n elementHeight,\n elementWidth,\n isOutside,\n stop\n };\n}\n\nfunction useMousePressed(options = {}) {\n const {\n touch = true,\n drag = true,\n capture = false,\n initialValue = false,\n window = defaultWindow\n } = options;\n const pressed = ref(initialValue);\n const sourceType = ref(null);\n if (!window) {\n return {\n pressed,\n sourceType\n };\n }\n const onPressed = (srcType) => () => {\n pressed.value = true;\n sourceType.value = srcType;\n };\n const onReleased = () => {\n pressed.value = false;\n sourceType.value = null;\n };\n const target = computed(() => unrefElement(options.target) || window);\n useEventListener(target, \"mousedown\", onPressed(\"mouse\"), { passive: true, capture });\n useEventListener(window, \"mouseleave\", onReleased, { passive: true, capture });\n useEventListener(window, \"mouseup\", onReleased, { passive: true, capture });\n if (drag) {\n useEventListener(target, \"dragstart\", onPressed(\"mouse\"), { passive: true, capture });\n useEventListener(window, \"drop\", onReleased, { passive: true, capture });\n useEventListener(window, \"dragend\", onReleased, { passive: true, capture });\n }\n if (touch) {\n useEventListener(target, \"touchstart\", onPressed(\"touch\"), { passive: true, capture });\n useEventListener(window, \"touchend\", onReleased, { passive: true, capture });\n useEventListener(window, \"touchcancel\", onReleased, { passive: true, capture });\n }\n return {\n pressed,\n sourceType\n };\n}\n\nfunction useNavigatorLanguage(options = {}) {\n const { window = defaultWindow } = options;\n const navigator = window == null ? void 0 : window.navigator;\n const isSupported = useSupported(() => navigator && \"language\" in navigator);\n const language = ref(navigator == null ? void 0 : navigator.language);\n useEventListener(window, \"languagechange\", () => {\n if (navigator)\n language.value = navigator.language;\n });\n return {\n isSupported,\n language\n };\n}\n\nfunction useNetwork(options = {}) {\n const { window = defaultWindow } = options;\n const navigator = window == null ? void 0 : window.navigator;\n const isSupported = useSupported(() => navigator && \"connection\" in navigator);\n const isOnline = ref(true);\n const saveData = ref(false);\n const offlineAt = ref(void 0);\n const onlineAt = ref(void 0);\n const downlink = ref(void 0);\n const downlinkMax = ref(void 0);\n const rtt = ref(void 0);\n const effectiveType = ref(void 0);\n const type = ref(\"unknown\");\n const connection = isSupported.value && navigator.connection;\n function updateNetworkInformation() {\n if (!navigator)\n return;\n isOnline.value = navigator.onLine;\n offlineAt.value = isOnline.value ? void 0 : Date.now();\n onlineAt.value = isOnline.value ? Date.now() : void 0;\n if (connection) {\n downlink.value = connection.downlink;\n downlinkMax.value = connection.downlinkMax;\n effectiveType.value = connection.effectiveType;\n rtt.value = connection.rtt;\n saveData.value = connection.saveData;\n type.value = connection.type;\n }\n }\n if (window) {\n useEventListener(window, \"offline\", () => {\n isOnline.value = false;\n offlineAt.value = Date.now();\n });\n useEventListener(window, \"online\", () => {\n isOnline.value = true;\n onlineAt.value = Date.now();\n });\n }\n if (connection)\n useEventListener(connection, \"change\", updateNetworkInformation, false);\n updateNetworkInformation();\n return {\n isSupported,\n isOnline,\n saveData,\n offlineAt,\n onlineAt,\n downlink,\n downlinkMax,\n effectiveType,\n rtt,\n type\n };\n}\n\nfunction useNow(options = {}) {\n const {\n controls: exposeControls = false,\n interval = \"requestAnimationFrame\"\n } = options;\n const now = ref(/* @__PURE__ */ new Date());\n const update = () => now.value = /* @__PURE__ */ new Date();\n const controls = interval === \"requestAnimationFrame\" ? useRafFn(update, { immediate: true }) : useIntervalFn(update, interval, { immediate: true });\n if (exposeControls) {\n return {\n now,\n ...controls\n };\n } else {\n return now;\n }\n}\n\nfunction useObjectUrl(object) {\n const url = ref();\n const release = () => {\n if (url.value)\n URL.revokeObjectURL(url.value);\n url.value = void 0;\n };\n watch(\n () => toValue(object),\n (newObject) => {\n release();\n if (newObject)\n url.value = URL.createObjectURL(newObject);\n },\n { immediate: true }\n );\n tryOnScopeDispose(release);\n return readonly(url);\n}\n\nfunction useClamp(value, min, max) {\n if (typeof value === \"function\" || isReadonly(value))\n return computed(() => clamp(toValue(value), toValue(min), toValue(max)));\n const _value = ref(value);\n return computed({\n get() {\n return _value.value = clamp(_value.value, toValue(min), toValue(max));\n },\n set(value2) {\n _value.value = clamp(value2, toValue(min), toValue(max));\n }\n });\n}\n\nfunction useOffsetPagination(options) {\n const {\n total = Number.POSITIVE_INFINITY,\n pageSize = 10,\n page = 1,\n onPageChange = noop,\n onPageSizeChange = noop,\n onPageCountChange = noop\n } = options;\n const currentPageSize = useClamp(pageSize, 1, Number.POSITIVE_INFINITY);\n const pageCount = computed(() => Math.max(\n 1,\n Math.ceil(toValue(total) / toValue(currentPageSize))\n ));\n const currentPage = useClamp(page, 1, pageCount);\n const isFirstPage = computed(() => currentPage.value === 1);\n const isLastPage = computed(() => currentPage.value === pageCount.value);\n if (isRef(page))\n syncRef(page, currentPage);\n if (isRef(pageSize))\n syncRef(pageSize, currentPageSize);\n function prev() {\n currentPage.value--;\n }\n function next() {\n currentPage.value++;\n }\n const returnValue = {\n currentPage,\n currentPageSize,\n pageCount,\n isFirstPage,\n isLastPage,\n prev,\n next\n };\n watch(currentPage, () => {\n onPageChange(reactive(returnValue));\n });\n watch(currentPageSize, () => {\n onPageSizeChange(reactive(returnValue));\n });\n watch(pageCount, () => {\n onPageCountChange(reactive(returnValue));\n });\n return returnValue;\n}\n\nfunction useOnline(options = {}) {\n const { isOnline } = useNetwork(options);\n return isOnline;\n}\n\nfunction usePageLeave(options = {}) {\n const { window = defaultWindow } = options;\n const isLeft = ref(false);\n const handler = (event) => {\n if (!window)\n return;\n event = event || window.event;\n const from = event.relatedTarget || event.toElement;\n isLeft.value = !from;\n };\n if (window) {\n useEventListener(window, \"mouseout\", handler, { passive: true });\n useEventListener(window.document, \"mouseleave\", handler, { passive: true });\n useEventListener(window.document, \"mouseenter\", handler, { passive: true });\n }\n return isLeft;\n}\n\nfunction useParallax(target, options = {}) {\n const {\n deviceOrientationTiltAdjust = (i) => i,\n deviceOrientationRollAdjust = (i) => i,\n mouseTiltAdjust = (i) => i,\n mouseRollAdjust = (i) => i,\n window = defaultWindow\n } = options;\n const orientation = reactive(useDeviceOrientation({ window }));\n const {\n elementX: x,\n elementY: y,\n elementWidth: width,\n elementHeight: height\n } = useMouseInElement(target, { handleOutside: false, window });\n const source = computed(() => {\n if (orientation.isSupported && (orientation.alpha != null && orientation.alpha !== 0 || orientation.gamma != null && orientation.gamma !== 0))\n return \"deviceOrientation\";\n return \"mouse\";\n });\n const roll = computed(() => {\n if (source.value === \"deviceOrientation\") {\n const value = -orientation.beta / 90;\n return deviceOrientationRollAdjust(value);\n } else {\n const value = -(y.value - height.value / 2) / height.value;\n return mouseRollAdjust(value);\n }\n });\n const tilt = computed(() => {\n if (source.value === \"deviceOrientation\") {\n const value = orientation.gamma / 90;\n return deviceOrientationTiltAdjust(value);\n } else {\n const value = (x.value - width.value / 2) / width.value;\n return mouseTiltAdjust(value);\n }\n });\n return { roll, tilt, source };\n}\n\nfunction useParentElement(element = useCurrentElement()) {\n const parentElement = shallowRef();\n const update = () => {\n const el = unrefElement(element);\n if (el)\n parentElement.value = el.parentElement;\n };\n tryOnMounted(update);\n watch(() => toValue(element), update);\n return parentElement;\n}\n\nfunction usePerformanceObserver(options, callback) {\n const {\n window = defaultWindow,\n immediate = true,\n ...performanceOptions\n } = options;\n const isSupported = useSupported(() => window && \"PerformanceObserver\" in window);\n let observer;\n const stop = () => {\n observer == null ? void 0 : observer.disconnect();\n };\n const start = () => {\n if (isSupported.value) {\n stop();\n observer = new PerformanceObserver(callback);\n observer.observe(performanceOptions);\n }\n };\n tryOnScopeDispose(stop);\n if (immediate)\n start();\n return {\n isSupported,\n start,\n stop\n };\n}\n\nconst defaultState = {\n x: 0,\n y: 0,\n pointerId: 0,\n pressure: 0,\n tiltX: 0,\n tiltY: 0,\n width: 0,\n height: 0,\n twist: 0,\n pointerType: null\n};\nconst keys = /* @__PURE__ */ Object.keys(defaultState);\nfunction usePointer(options = {}) {\n const {\n target = defaultWindow\n } = options;\n const isInside = ref(false);\n const state = ref(options.initialValue || {});\n Object.assign(state.value, defaultState, state.value);\n const handler = (event) => {\n isInside.value = true;\n if (options.pointerTypes && !options.pointerTypes.includes(event.pointerType))\n return;\n state.value = objectPick(event, keys, false);\n };\n if (target) {\n const listenerOptions = { passive: true };\n useEventListener(target, [\"pointerdown\", \"pointermove\", \"pointerup\"], handler, listenerOptions);\n useEventListener(target, \"pointerleave\", () => isInside.value = false, listenerOptions);\n }\n return {\n ...toRefs(state),\n isInside\n };\n}\n\nfunction usePointerLock(target, options = {}) {\n const { document = defaultDocument, pointerLockOptions } = options;\n const isSupported = useSupported(() => document && \"pointerLockElement\" in document);\n const element = ref();\n const triggerElement = ref();\n let targetElement;\n if (isSupported.value) {\n useEventListener(document, \"pointerlockchange\", () => {\n var _a;\n const currentElement = (_a = document.pointerLockElement) != null ? _a : element.value;\n if (targetElement && currentElement === targetElement) {\n element.value = document.pointerLockElement;\n if (!element.value)\n targetElement = triggerElement.value = null;\n }\n });\n useEventListener(document, \"pointerlockerror\", () => {\n var _a;\n const currentElement = (_a = document.pointerLockElement) != null ? _a : element.value;\n if (targetElement && currentElement === targetElement) {\n const action = document.pointerLockElement ? \"release\" : \"acquire\";\n throw new Error(`Failed to ${action} pointer lock.`);\n }\n });\n }\n async function lock(e, options2) {\n var _a;\n if (!isSupported.value)\n throw new Error(\"Pointer Lock API is not supported by your browser.\");\n triggerElement.value = e instanceof Event ? e.currentTarget : null;\n targetElement = e instanceof Event ? (_a = unrefElement(target)) != null ? _a : triggerElement.value : unrefElement(e);\n if (!targetElement)\n throw new Error(\"Target element undefined.\");\n targetElement.requestPointerLock(options2 != null ? options2 : pointerLockOptions);\n return await until(element).toBe(targetElement);\n }\n async function unlock() {\n if (!element.value)\n return false;\n document.exitPointerLock();\n await until(element).toBeNull();\n return true;\n }\n return {\n isSupported,\n element,\n triggerElement,\n lock,\n unlock\n };\n}\n\nfunction usePointerSwipe(target, options = {}) {\n const targetRef = toRef(target);\n const {\n threshold = 50,\n onSwipe,\n onSwipeEnd,\n onSwipeStart\n } = options;\n const posStart = reactive({ x: 0, y: 0 });\n const updatePosStart = (x, y) => {\n posStart.x = x;\n posStart.y = y;\n };\n const posEnd = reactive({ x: 0, y: 0 });\n const updatePosEnd = (x, y) => {\n posEnd.x = x;\n posEnd.y = y;\n };\n const distanceX = computed(() => posStart.x - posEnd.x);\n const distanceY = computed(() => posStart.y - posEnd.y);\n const { max, abs } = Math;\n const isThresholdExceeded = computed(() => max(abs(distanceX.value), abs(distanceY.value)) >= threshold);\n const isSwiping = ref(false);\n const isPointerDown = ref(false);\n const direction = computed(() => {\n if (!isThresholdExceeded.value)\n return \"none\";\n if (abs(distanceX.value) > abs(distanceY.value)) {\n return distanceX.value > 0 ? \"left\" : \"right\";\n } else {\n return distanceY.value > 0 ? \"up\" : \"down\";\n }\n });\n const eventIsAllowed = (e) => {\n var _a, _b, _c;\n const isReleasingButton = e.buttons === 0;\n const isPrimaryButton = e.buttons === 1;\n return (_c = (_b = (_a = options.pointerTypes) == null ? void 0 : _a.includes(e.pointerType)) != null ? _b : isReleasingButton || isPrimaryButton) != null ? _c : true;\n };\n const stops = [\n useEventListener(target, \"pointerdown\", (e) => {\n var _a, _b;\n if (!eventIsAllowed(e))\n return;\n isPointerDown.value = true;\n (_b = (_a = targetRef.value) == null ? void 0 : _a.style) == null ? void 0 : _b.setProperty(\"touch-action\", \"none\");\n const eventTarget = e.target;\n eventTarget == null ? void 0 : eventTarget.setPointerCapture(e.pointerId);\n const { clientX: x, clientY: y } = e;\n updatePosStart(x, y);\n updatePosEnd(x, y);\n onSwipeStart == null ? void 0 : onSwipeStart(e);\n }),\n useEventListener(target, \"pointermove\", (e) => {\n if (!eventIsAllowed(e))\n return;\n if (!isPointerDown.value)\n return;\n const { clientX: x, clientY: y } = e;\n updatePosEnd(x, y);\n if (!isSwiping.value && isThresholdExceeded.value)\n isSwiping.value = true;\n if (isSwiping.value)\n onSwipe == null ? void 0 : onSwipe(e);\n }),\n useEventListener(target, \"pointerup\", (e) => {\n var _a, _b;\n if (!eventIsAllowed(e))\n return;\n if (isSwiping.value)\n onSwipeEnd == null ? void 0 : onSwipeEnd(e, direction.value);\n isPointerDown.value = false;\n isSwiping.value = false;\n (_b = (_a = targetRef.value) == null ? void 0 : _a.style) == null ? void 0 : _b.setProperty(\"touch-action\", \"initial\");\n })\n ];\n const stop = () => stops.forEach((s) => s());\n return {\n isSwiping: readonly(isSwiping),\n direction: readonly(direction),\n posStart: readonly(posStart),\n posEnd: readonly(posEnd),\n distanceX,\n distanceY,\n stop\n };\n}\n\nfunction usePreferredColorScheme(options) {\n const isLight = useMediaQuery(\"(prefers-color-scheme: light)\", options);\n const isDark = useMediaQuery(\"(prefers-color-scheme: dark)\", options);\n return computed(() => {\n if (isDark.value)\n return \"dark\";\n if (isLight.value)\n return \"light\";\n return \"no-preference\";\n });\n}\n\nfunction usePreferredContrast(options) {\n const isMore = useMediaQuery(\"(prefers-contrast: more)\", options);\n const isLess = useMediaQuery(\"(prefers-contrast: less)\", options);\n const isCustom = useMediaQuery(\"(prefers-contrast: custom)\", options);\n return computed(() => {\n if (isMore.value)\n return \"more\";\n if (isLess.value)\n return \"less\";\n if (isCustom.value)\n return \"custom\";\n return \"no-preference\";\n });\n}\n\nfunction usePreferredLanguages(options = {}) {\n const { window = defaultWindow } = options;\n if (!window)\n return ref([\"en\"]);\n const navigator = window.navigator;\n const value = ref(navigator.languages);\n useEventListener(window, \"languagechange\", () => {\n value.value = navigator.languages;\n });\n return value;\n}\n\nfunction usePreferredReducedMotion(options) {\n const isReduced = useMediaQuery(\"(prefers-reduced-motion: reduce)\", options);\n return computed(() => {\n if (isReduced.value)\n return \"reduce\";\n return \"no-preference\";\n });\n}\n\nfunction usePrevious(value, initialValue) {\n const previous = shallowRef(initialValue);\n watch(\n toRef(value),\n (_, oldValue) => {\n previous.value = oldValue;\n },\n { flush: \"sync\" }\n );\n return readonly(previous);\n}\n\nfunction useScreenOrientation(options = {}) {\n const {\n window = defaultWindow\n } = options;\n const isSupported = useSupported(() => window && \"screen\" in window && \"orientation\" in window.screen);\n const screenOrientation = isSupported.value ? window.screen.orientation : {};\n const orientation = ref(screenOrientation.type);\n const angle = ref(screenOrientation.angle || 0);\n if (isSupported.value) {\n useEventListener(window, \"orientationchange\", () => {\n orientation.value = screenOrientation.type;\n angle.value = screenOrientation.angle;\n });\n }\n const lockOrientation = (type) => {\n if (!isSupported.value)\n return Promise.reject(new Error(\"Not supported\"));\n return screenOrientation.lock(type);\n };\n const unlockOrientation = () => {\n if (isSupported.value)\n screenOrientation.unlock();\n };\n return {\n isSupported,\n orientation,\n angle,\n lockOrientation,\n unlockOrientation\n };\n}\n\nconst topVarName = \"--vueuse-safe-area-top\";\nconst rightVarName = \"--vueuse-safe-area-right\";\nconst bottomVarName = \"--vueuse-safe-area-bottom\";\nconst leftVarName = \"--vueuse-safe-area-left\";\nfunction useScreenSafeArea() {\n const top = ref(\"\");\n const right = ref(\"\");\n const bottom = ref(\"\");\n const left = ref(\"\");\n if (isClient) {\n const topCssVar = useCssVar(topVarName);\n const rightCssVar = useCssVar(rightVarName);\n const bottomCssVar = useCssVar(bottomVarName);\n const leftCssVar = useCssVar(leftVarName);\n topCssVar.value = \"env(safe-area-inset-top, 0px)\";\n rightCssVar.value = \"env(safe-area-inset-right, 0px)\";\n bottomCssVar.value = \"env(safe-area-inset-bottom, 0px)\";\n leftCssVar.value = \"env(safe-area-inset-left, 0px)\";\n update();\n useEventListener(\"resize\", useDebounceFn(update));\n }\n function update() {\n top.value = getValue(topVarName);\n right.value = getValue(rightVarName);\n bottom.value = getValue(bottomVarName);\n left.value = getValue(leftVarName);\n }\n return {\n top,\n right,\n bottom,\n left,\n update\n };\n}\nfunction getValue(position) {\n return getComputedStyle(document.documentElement).getPropertyValue(position);\n}\n\nfunction useScriptTag(src, onLoaded = noop, options = {}) {\n const {\n immediate = true,\n manual = false,\n type = \"text/javascript\",\n async = true,\n crossOrigin,\n referrerPolicy,\n noModule,\n defer,\n document = defaultDocument,\n attrs = {}\n } = options;\n const scriptTag = ref(null);\n let _promise = null;\n const loadScript = (waitForScriptLoad) => new Promise((resolve, reject) => {\n const resolveWithElement = (el2) => {\n scriptTag.value = el2;\n resolve(el2);\n return el2;\n };\n if (!document) {\n resolve(false);\n return;\n }\n let shouldAppend = false;\n let el = document.querySelector(`script[src=\"${toValue(src)}\"]`);\n if (!el) {\n el = document.createElement(\"script\");\n el.type = type;\n el.async = async;\n el.src = toValue(src);\n if (defer)\n el.defer = defer;\n if (crossOrigin)\n el.crossOrigin = crossOrigin;\n if (noModule)\n el.noModule = noModule;\n if (referrerPolicy)\n el.referrerPolicy = referrerPolicy;\n Object.entries(attrs).forEach(([name, value]) => el == null ? void 0 : el.setAttribute(name, value));\n shouldAppend = true;\n } else if (el.hasAttribute(\"data-loaded\")) {\n resolveWithElement(el);\n }\n el.addEventListener(\"error\", (event) => reject(event));\n el.addEventListener(\"abort\", (event) => reject(event));\n el.addEventListener(\"load\", () => {\n el.setAttribute(\"data-loaded\", \"true\");\n onLoaded(el);\n resolveWithElement(el);\n });\n if (shouldAppend)\n el = document.head.appendChild(el);\n if (!waitForScriptLoad)\n resolveWithElement(el);\n });\n const load = (waitForScriptLoad = true) => {\n if (!_promise)\n _promise = loadScript(waitForScriptLoad);\n return _promise;\n };\n const unload = () => {\n if (!document)\n return;\n _promise = null;\n if (scriptTag.value)\n scriptTag.value = null;\n const el = document.querySelector(`script[src=\"${toValue(src)}\"]`);\n if (el)\n document.head.removeChild(el);\n };\n if (immediate && !manual)\n tryOnMounted(load);\n if (!manual)\n tryOnUnmounted(unload);\n return { scriptTag, load, unload };\n}\n\nfunction checkOverflowScroll(ele) {\n const style = window.getComputedStyle(ele);\n if (style.overflowX === \"scroll\" || style.overflowY === \"scroll\" || style.overflowX === \"auto\" && ele.clientWidth < ele.scrollWidth || style.overflowY === \"auto\" && ele.clientHeight < ele.scrollHeight) {\n return true;\n } else {\n const parent = ele.parentNode;\n if (!parent || parent.tagName === \"BODY\")\n return false;\n return checkOverflowScroll(parent);\n }\n}\nfunction preventDefault(rawEvent) {\n const e = rawEvent || window.event;\n const _target = e.target;\n if (checkOverflowScroll(_target))\n return false;\n if (e.touches.length > 1)\n return true;\n if (e.preventDefault)\n e.preventDefault();\n return false;\n}\nfunction useScrollLock(element, initialState = false) {\n const isLocked = ref(initialState);\n let stopTouchMoveListener = null;\n let initialOverflow;\n watch(toRef(element), (el) => {\n const target = resolveElement(toValue(el));\n if (target) {\n const ele = target;\n initialOverflow = ele.style.overflow;\n if (isLocked.value)\n ele.style.overflow = \"hidden\";\n }\n }, {\n immediate: true\n });\n const lock = () => {\n const el = resolveElement(toValue(element));\n if (!el || isLocked.value)\n return;\n if (isIOS) {\n stopTouchMoveListener = useEventListener(\n el,\n \"touchmove\",\n (e) => {\n preventDefault(e);\n },\n { passive: false }\n );\n }\n el.style.overflow = \"hidden\";\n isLocked.value = true;\n };\n const unlock = () => {\n const el = resolveElement(toValue(element));\n if (!el || !isLocked.value)\n return;\n isIOS && (stopTouchMoveListener == null ? void 0 : stopTouchMoveListener());\n el.style.overflow = initialOverflow;\n isLocked.value = false;\n };\n tryOnScopeDispose(unlock);\n return computed({\n get() {\n return isLocked.value;\n },\n set(v) {\n if (v)\n lock();\n else\n unlock();\n }\n });\n}\n\nfunction useSessionStorage(key, initialValue, options = {}) {\n const { window = defaultWindow } = options;\n return useStorage(key, initialValue, window == null ? void 0 : window.sessionStorage, options);\n}\n\nfunction useShare(shareOptions = {}, options = {}) {\n const { navigator = defaultNavigator } = options;\n const _navigator = navigator;\n const isSupported = useSupported(() => _navigator && \"canShare\" in _navigator);\n const share = async (overrideOptions = {}) => {\n if (isSupported.value) {\n const data = {\n ...toValue(shareOptions),\n ...toValue(overrideOptions)\n };\n let granted = true;\n if (data.files && _navigator.canShare)\n granted = _navigator.canShare({ files: data.files });\n if (granted)\n return _navigator.share(data);\n }\n };\n return {\n isSupported,\n share\n };\n}\n\nconst defaultSortFn = (source, compareFn) => source.sort(compareFn);\nconst defaultCompare = (a, b) => a - b;\nfunction useSorted(...args) {\n var _a, _b, _c, _d;\n const [source] = args;\n let compareFn = defaultCompare;\n let options = {};\n if (args.length === 2) {\n if (typeof args[1] === \"object\") {\n options = args[1];\n compareFn = (_a = options.compareFn) != null ? _a : defaultCompare;\n } else {\n compareFn = (_b = args[1]) != null ? _b : defaultCompare;\n }\n } else if (args.length > 2) {\n compareFn = (_c = args[1]) != null ? _c : defaultCompare;\n options = (_d = args[2]) != null ? _d : {};\n }\n const {\n dirty = false,\n sortFn = defaultSortFn\n } = options;\n if (!dirty)\n return computed(() => sortFn([...toValue(source)], compareFn));\n watchEffect(() => {\n const result = sortFn(toValue(source), compareFn);\n if (isRef(source))\n source.value = result;\n else\n source.splice(0, source.length, ...result);\n });\n return source;\n}\n\nfunction useSpeechRecognition(options = {}) {\n const {\n interimResults = true,\n continuous = true,\n window = defaultWindow\n } = options;\n const lang = toRef(options.lang || \"en-US\");\n const isListening = ref(false);\n const isFinal = ref(false);\n const result = ref(\"\");\n const error = shallowRef(void 0);\n const toggle = (value = !isListening.value) => {\n isListening.value = value;\n };\n const start = () => {\n isListening.value = true;\n };\n const stop = () => {\n isListening.value = false;\n };\n const SpeechRecognition = window && (window.SpeechRecognition || window.webkitSpeechRecognition);\n const isSupported = useSupported(() => SpeechRecognition);\n let recognition;\n if (isSupported.value) {\n recognition = new SpeechRecognition();\n recognition.continuous = continuous;\n recognition.interimResults = interimResults;\n recognition.lang = toValue(lang);\n recognition.onstart = () => {\n isFinal.value = false;\n };\n watch(lang, (lang2) => {\n if (recognition && !isListening.value)\n recognition.lang = lang2;\n });\n recognition.onresult = (event) => {\n const transcript = Array.from(event.results).map((result2) => {\n isFinal.value = result2.isFinal;\n return result2[0];\n }).map((result2) => result2.transcript).join(\"\");\n result.value = transcript;\n error.value = void 0;\n };\n recognition.onerror = (event) => {\n error.value = event;\n };\n recognition.onend = () => {\n isListening.value = false;\n recognition.lang = toValue(lang);\n };\n watch(isListening, () => {\n if (isListening.value)\n recognition.start();\n else\n recognition.stop();\n });\n }\n tryOnScopeDispose(() => {\n isListening.value = false;\n });\n return {\n isSupported,\n isListening,\n isFinal,\n recognition,\n result,\n error,\n toggle,\n start,\n stop\n };\n}\n\nfunction useSpeechSynthesis(text, options = {}) {\n const {\n pitch = 1,\n rate = 1,\n volume = 1,\n window = defaultWindow\n } = options;\n const synth = window && window.speechSynthesis;\n const isSupported = useSupported(() => synth);\n const isPlaying = ref(false);\n const status = ref(\"init\");\n const spokenText = toRef(text || \"\");\n const lang = toRef(options.lang || \"en-US\");\n const error = shallowRef(void 0);\n const toggle = (value = !isPlaying.value) => {\n isPlaying.value = value;\n };\n const bindEventsForUtterance = (utterance2) => {\n utterance2.lang = toValue(lang);\n utterance2.voice = toValue(options.voice) || null;\n utterance2.pitch = toValue(pitch);\n utterance2.rate = toValue(rate);\n utterance2.volume = volume;\n utterance2.onstart = () => {\n isPlaying.value = true;\n status.value = \"play\";\n };\n utterance2.onpause = () => {\n isPlaying.value = false;\n status.value = \"pause\";\n };\n utterance2.onresume = () => {\n isPlaying.value = true;\n status.value = \"play\";\n };\n utterance2.onend = () => {\n isPlaying.value = false;\n status.value = \"end\";\n };\n utterance2.onerror = (event) => {\n error.value = event;\n };\n };\n const utterance = computed(() => {\n isPlaying.value = false;\n status.value = \"init\";\n const newUtterance = new SpeechSynthesisUtterance(spokenText.value);\n bindEventsForUtterance(newUtterance);\n return newUtterance;\n });\n const speak = () => {\n synth.cancel();\n utterance && synth.speak(utterance.value);\n };\n const stop = () => {\n synth.cancel();\n isPlaying.value = false;\n };\n if (isSupported.value) {\n bindEventsForUtterance(utterance.value);\n watch(lang, (lang2) => {\n if (utterance.value && !isPlaying.value)\n utterance.value.lang = lang2;\n });\n if (options.voice) {\n watch(options.voice, () => {\n synth.cancel();\n });\n }\n watch(isPlaying, () => {\n if (isPlaying.value)\n synth.resume();\n else\n synth.pause();\n });\n }\n tryOnScopeDispose(() => {\n isPlaying.value = false;\n });\n return {\n isSupported,\n isPlaying,\n status,\n utterance,\n error,\n stop,\n toggle,\n speak\n };\n}\n\nfunction useStepper(steps, initialStep) {\n const stepsRef = ref(steps);\n const stepNames = computed(() => Array.isArray(stepsRef.value) ? stepsRef.value : Object.keys(stepsRef.value));\n const index = ref(stepNames.value.indexOf(initialStep != null ? initialStep : stepNames.value[0]));\n const current = computed(() => at(index.value));\n const isFirst = computed(() => index.value === 0);\n const isLast = computed(() => index.value === stepNames.value.length - 1);\n const next = computed(() => stepNames.value[index.value + 1]);\n const previous = computed(() => stepNames.value[index.value - 1]);\n function at(index2) {\n if (Array.isArray(stepsRef.value))\n return stepsRef.value[index2];\n return stepsRef.value[stepNames.value[index2]];\n }\n function get(step) {\n if (!stepNames.value.includes(step))\n return;\n return at(stepNames.value.indexOf(step));\n }\n function goTo(step) {\n if (stepNames.value.includes(step))\n index.value = stepNames.value.indexOf(step);\n }\n function goToNext() {\n if (isLast.value)\n return;\n index.value++;\n }\n function goToPrevious() {\n if (isFirst.value)\n return;\n index.value--;\n }\n function goBackTo(step) {\n if (isAfter(step))\n goTo(step);\n }\n function isNext(step) {\n return stepNames.value.indexOf(step) === index.value + 1;\n }\n function isPrevious(step) {\n return stepNames.value.indexOf(step) === index.value - 1;\n }\n function isCurrent(step) {\n return stepNames.value.indexOf(step) === index.value;\n }\n function isBefore(step) {\n return index.value < stepNames.value.indexOf(step);\n }\n function isAfter(step) {\n return index.value > stepNames.value.indexOf(step);\n }\n return {\n steps: stepsRef,\n stepNames,\n index,\n current,\n next,\n previous,\n isFirst,\n isLast,\n at,\n get,\n goTo,\n goToNext,\n goToPrevious,\n goBackTo,\n isNext,\n isPrevious,\n isCurrent,\n isBefore,\n isAfter\n };\n}\n\nfunction useStorageAsync(key, initialValue, storage, options = {}) {\n var _a;\n const {\n flush = \"pre\",\n deep = true,\n listenToStorageChanges = true,\n writeDefaults = true,\n mergeDefaults = false,\n shallow,\n window = defaultWindow,\n eventFilter,\n onError = (e) => {\n console.error(e);\n }\n } = options;\n const rawInit = toValue(initialValue);\n const type = guessSerializerType(rawInit);\n const data = (shallow ? shallowRef : ref)(initialValue);\n const serializer = (_a = options.serializer) != null ? _a : StorageSerializers[type];\n if (!storage) {\n try {\n storage = getSSRHandler(\"getDefaultStorage\", () => {\n var _a2;\n return (_a2 = defaultWindow) == null ? void 0 : _a2.localStorage;\n })();\n } catch (e) {\n onError(e);\n }\n }\n async function read(event) {\n if (!storage || event && event.key !== key)\n return;\n try {\n const rawValue = event ? event.newValue : await storage.getItem(key);\n if (rawValue == null) {\n data.value = rawInit;\n if (writeDefaults && rawInit !== null)\n await storage.setItem(key, await serializer.write(rawInit));\n } else if (mergeDefaults) {\n const value = await serializer.read(rawValue);\n if (typeof mergeDefaults === \"function\")\n data.value = mergeDefaults(value, rawInit);\n else if (type === \"object\" && !Array.isArray(value))\n data.value = { ...rawInit, ...value };\n else\n data.value = value;\n } else {\n data.value = await serializer.read(rawValue);\n }\n } catch (e) {\n onError(e);\n }\n }\n read();\n if (window && listenToStorageChanges)\n useEventListener(window, \"storage\", (e) => Promise.resolve().then(() => read(e)));\n if (storage) {\n watchWithFilter(\n data,\n async () => {\n try {\n if (data.value == null)\n await storage.removeItem(key);\n else\n await storage.setItem(key, await serializer.write(data.value));\n } catch (e) {\n onError(e);\n }\n },\n {\n flush,\n deep,\n eventFilter\n }\n );\n }\n return data;\n}\n\nlet _id = 0;\nfunction useStyleTag(css, options = {}) {\n const isLoaded = ref(false);\n const {\n document = defaultDocument,\n immediate = true,\n manual = false,\n id = `vueuse_styletag_${++_id}`\n } = options;\n const cssRef = ref(css);\n let stop = () => {\n };\n const load = () => {\n if (!document)\n return;\n const el = document.getElementById(id) || document.createElement(\"style\");\n if (!el.isConnected) {\n el.id = id;\n if (options.media)\n el.media = options.media;\n document.head.appendChild(el);\n }\n if (isLoaded.value)\n return;\n stop = watch(\n cssRef,\n (value) => {\n el.textContent = value;\n },\n { immediate: true }\n );\n isLoaded.value = true;\n };\n const unload = () => {\n if (!document || !isLoaded.value)\n return;\n stop();\n document.head.removeChild(document.getElementById(id));\n isLoaded.value = false;\n };\n if (immediate && !manual)\n tryOnMounted(load);\n if (!manual)\n tryOnScopeDispose(unload);\n return {\n id,\n css: cssRef,\n unload,\n load,\n isLoaded: readonly(isLoaded)\n };\n}\n\nfunction useSwipe(target, options = {}) {\n const {\n threshold = 50,\n onSwipe,\n onSwipeEnd,\n onSwipeStart,\n passive = true,\n window = defaultWindow\n } = options;\n const coordsStart = reactive({ x: 0, y: 0 });\n const coordsEnd = reactive({ x: 0, y: 0 });\n const diffX = computed(() => coordsStart.x - coordsEnd.x);\n const diffY = computed(() => coordsStart.y - coordsEnd.y);\n const { max, abs } = Math;\n const isThresholdExceeded = computed(() => max(abs(diffX.value), abs(diffY.value)) >= threshold);\n const isSwiping = ref(false);\n const direction = computed(() => {\n if (!isThresholdExceeded.value)\n return \"none\";\n if (abs(diffX.value) > abs(diffY.value)) {\n return diffX.value > 0 ? \"left\" : \"right\";\n } else {\n return diffY.value > 0 ? \"up\" : \"down\";\n }\n });\n const getTouchEventCoords = (e) => [e.touches[0].clientX, e.touches[0].clientY];\n const updateCoordsStart = (x, y) => {\n coordsStart.x = x;\n coordsStart.y = y;\n };\n const updateCoordsEnd = (x, y) => {\n coordsEnd.x = x;\n coordsEnd.y = y;\n };\n let listenerOptions;\n const isPassiveEventSupported = checkPassiveEventSupport(window == null ? void 0 : window.document);\n if (!passive)\n listenerOptions = isPassiveEventSupported ? { passive: false, capture: true } : { capture: true };\n else\n listenerOptions = isPassiveEventSupported ? { passive: true } : { capture: false };\n const onTouchEnd = (e) => {\n if (isSwiping.value)\n onSwipeEnd == null ? void 0 : onSwipeEnd(e, direction.value);\n isSwiping.value = false;\n };\n const stops = [\n useEventListener(target, \"touchstart\", (e) => {\n if (e.touches.length !== 1)\n return;\n if (listenerOptions.capture && !listenerOptions.passive)\n e.preventDefault();\n const [x, y] = getTouchEventCoords(e);\n updateCoordsStart(x, y);\n updateCoordsEnd(x, y);\n onSwipeStart == null ? void 0 : onSwipeStart(e);\n }, listenerOptions),\n useEventListener(target, \"touchmove\", (e) => {\n if (e.touches.length !== 1)\n return;\n const [x, y] = getTouchEventCoords(e);\n updateCoordsEnd(x, y);\n if (!isSwiping.value && isThresholdExceeded.value)\n isSwiping.value = true;\n if (isSwiping.value)\n onSwipe == null ? void 0 : onSwipe(e);\n }, listenerOptions),\n useEventListener(target, [\"touchend\", \"touchcancel\"], onTouchEnd, listenerOptions)\n ];\n const stop = () => stops.forEach((s) => s());\n return {\n isPassiveEventSupported,\n isSwiping,\n direction,\n coordsStart,\n coordsEnd,\n lengthX: diffX,\n lengthY: diffY,\n stop\n };\n}\nfunction checkPassiveEventSupport(document) {\n if (!document)\n return false;\n let supportsPassive = false;\n const optionsBlock = {\n get passive() {\n supportsPassive = true;\n return false;\n }\n };\n document.addEventListener(\"x\", noop, optionsBlock);\n document.removeEventListener(\"x\", noop);\n return supportsPassive;\n}\n\nfunction useTemplateRefsList() {\n const refs = ref([]);\n refs.value.set = (el) => {\n if (el)\n refs.value.push(el);\n };\n onBeforeUpdate(() => {\n refs.value.length = 0;\n });\n return refs;\n}\n\nfunction useTextDirection(options = {}) {\n const {\n document = defaultDocument,\n selector = \"html\",\n observe = false,\n initialValue = \"ltr\"\n } = options;\n function getValue() {\n var _a, _b;\n return (_b = (_a = document == null ? void 0 : document.querySelector(selector)) == null ? void 0 : _a.getAttribute(\"dir\")) != null ? _b : initialValue;\n }\n const dir = ref(getValue());\n tryOnMounted(() => dir.value = getValue());\n if (observe && document) {\n useMutationObserver(\n document.querySelector(selector),\n () => dir.value = getValue(),\n { attributes: true }\n );\n }\n return computed({\n get() {\n return dir.value;\n },\n set(v) {\n var _a, _b;\n dir.value = v;\n if (!document)\n return;\n if (dir.value)\n (_a = document.querySelector(selector)) == null ? void 0 : _a.setAttribute(\"dir\", dir.value);\n else\n (_b = document.querySelector(selector)) == null ? void 0 : _b.removeAttribute(\"dir\");\n }\n });\n}\n\nfunction getRangesFromSelection(selection) {\n var _a;\n const rangeCount = (_a = selection.rangeCount) != null ? _a : 0;\n return Array.from({ length: rangeCount }, (_, i) => selection.getRangeAt(i));\n}\nfunction useTextSelection(options = {}) {\n const {\n window = defaultWindow\n } = options;\n const selection = ref(null);\n const text = computed(() => {\n var _a, _b;\n return (_b = (_a = selection.value) == null ? void 0 : _a.toString()) != null ? _b : \"\";\n });\n const ranges = computed(() => selection.value ? getRangesFromSelection(selection.value) : []);\n const rects = computed(() => ranges.value.map((range) => range.getBoundingClientRect()));\n function onSelectionChange() {\n selection.value = null;\n if (window)\n selection.value = window.getSelection();\n }\n if (window)\n useEventListener(window.document, \"selectionchange\", onSelectionChange);\n return {\n text,\n rects,\n ranges,\n selection\n };\n}\n\nfunction useTextareaAutosize(options) {\n const textarea = ref(options == null ? void 0 : options.element);\n const input = ref(options == null ? void 0 : options.input);\n const textareaScrollHeight = ref(1);\n function triggerResize() {\n var _a, _b;\n if (!textarea.value)\n return;\n let height = \"\";\n textarea.value.style.height = \"1px\";\n textareaScrollHeight.value = (_a = textarea.value) == null ? void 0 : _a.scrollHeight;\n if (options == null ? void 0 : options.styleTarget)\n toValue(options.styleTarget).style.height = `${textareaScrollHeight.value}px`;\n else\n height = `${textareaScrollHeight.value}px`;\n textarea.value.style.height = height;\n (_b = options == null ? void 0 : options.onResize) == null ? void 0 : _b.call(options);\n }\n watch([input, textarea], () => nextTick(triggerResize), { immediate: true });\n useResizeObserver(textarea, () => triggerResize());\n if (options == null ? void 0 : options.watch)\n watch(options.watch, triggerResize, { immediate: true, deep: true });\n return {\n textarea,\n input,\n triggerResize\n };\n}\n\nfunction useThrottledRefHistory(source, options = {}) {\n const { throttle = 200, trailing = true } = options;\n const filter = throttleFilter(throttle, trailing);\n const history = useRefHistory(source, { ...options, eventFilter: filter });\n return {\n ...history\n };\n}\n\nconst DEFAULT_UNITS = [\n { max: 6e4, value: 1e3, name: \"second\" },\n { max: 276e4, value: 6e4, name: \"minute\" },\n { max: 72e6, value: 36e5, name: \"hour\" },\n { max: 5184e5, value: 864e5, name: \"day\" },\n { max: 24192e5, value: 6048e5, name: \"week\" },\n { max: 28512e6, value: 2592e6, name: \"month\" },\n { max: Number.POSITIVE_INFINITY, value: 31536e6, name: \"year\" }\n];\nconst DEFAULT_MESSAGES = {\n justNow: \"just now\",\n past: (n) => n.match(/\\d/) ? `${n} ago` : n,\n future: (n) => n.match(/\\d/) ? `in ${n}` : n,\n month: (n, past) => n === 1 ? past ? \"last month\" : \"next month\" : `${n} month${n > 1 ? \"s\" : \"\"}`,\n year: (n, past) => n === 1 ? past ? \"last year\" : \"next year\" : `${n} year${n > 1 ? \"s\" : \"\"}`,\n day: (n, past) => n === 1 ? past ? \"yesterday\" : \"tomorrow\" : `${n} day${n > 1 ? \"s\" : \"\"}`,\n week: (n, past) => n === 1 ? past ? \"last week\" : \"next week\" : `${n} week${n > 1 ? \"s\" : \"\"}`,\n hour: (n) => `${n} hour${n > 1 ? \"s\" : \"\"}`,\n minute: (n) => `${n} minute${n > 1 ? \"s\" : \"\"}`,\n second: (n) => `${n} second${n > 1 ? \"s\" : \"\"}`,\n invalid: \"\"\n};\nfunction DEFAULT_FORMATTER(date) {\n return date.toISOString().slice(0, 10);\n}\nfunction useTimeAgo(time, options = {}) {\n const {\n controls: exposeControls = false,\n updateInterval = 3e4\n } = options;\n const { now, ...controls } = useNow({ interval: updateInterval, controls: true });\n const timeAgo = computed(() => formatTimeAgo(new Date(toValue(time)), options, toValue(now)));\n if (exposeControls) {\n return {\n timeAgo,\n ...controls\n };\n } else {\n return timeAgo;\n }\n}\nfunction formatTimeAgo(from, options = {}, now = Date.now()) {\n var _a;\n const {\n max,\n messages = DEFAULT_MESSAGES,\n fullDateFormatter = DEFAULT_FORMATTER,\n units = DEFAULT_UNITS,\n showSecond = false,\n rounding = \"round\"\n } = options;\n const roundFn = typeof rounding === \"number\" ? (n) => +n.toFixed(rounding) : Math[rounding];\n const diff = +now - +from;\n const absDiff = Math.abs(diff);\n function getValue(diff2, unit) {\n return roundFn(Math.abs(diff2) / unit.value);\n }\n function format(diff2, unit) {\n const val = getValue(diff2, unit);\n const past = diff2 > 0;\n const str = applyFormat(unit.name, val, past);\n return applyFormat(past ? \"past\" : \"future\", str, past);\n }\n function applyFormat(name, val, isPast) {\n const formatter = messages[name];\n if (typeof formatter === \"function\")\n return formatter(val, isPast);\n return formatter.replace(\"{0}\", val.toString());\n }\n if (absDiff < 6e4 && !showSecond)\n return messages.justNow;\n if (typeof max === \"number\" && absDiff > max)\n return fullDateFormatter(new Date(from));\n if (typeof max === \"string\") {\n const unitMax = (_a = units.find((i) => i.name === max)) == null ? void 0 : _a.max;\n if (unitMax && absDiff > unitMax)\n return fullDateFormatter(new Date(from));\n }\n for (const [idx, unit] of units.entries()) {\n const val = getValue(diff, unit);\n if (val <= 0 && units[idx - 1])\n return format(diff, units[idx - 1]);\n if (absDiff < unit.max)\n return format(diff, unit);\n }\n return messages.invalid;\n}\n\nfunction useTimeoutPoll(fn, interval, timeoutPollOptions) {\n const { start } = useTimeoutFn(loop, interval, { immediate: false });\n const isActive = ref(false);\n async function loop() {\n if (!isActive.value)\n return;\n await fn();\n start();\n }\n function resume() {\n if (!isActive.value) {\n isActive.value = true;\n loop();\n }\n }\n function pause() {\n isActive.value = false;\n }\n if (timeoutPollOptions == null ? void 0 : timeoutPollOptions.immediate)\n resume();\n tryOnScopeDispose(pause);\n return {\n isActive,\n pause,\n resume\n };\n}\n\nfunction useTimestamp(options = {}) {\n const {\n controls: exposeControls = false,\n offset = 0,\n immediate = true,\n interval = \"requestAnimationFrame\",\n callback\n } = options;\n const ts = ref(timestamp() + offset);\n const update = () => ts.value = timestamp() + offset;\n const cb = callback ? () => {\n update();\n callback(ts.value);\n } : update;\n const controls = interval === \"requestAnimationFrame\" ? useRafFn(cb, { immediate }) : useIntervalFn(cb, interval, { immediate });\n if (exposeControls) {\n return {\n timestamp: ts,\n ...controls\n };\n } else {\n return ts;\n }\n}\n\nfunction useTitle(newTitle = null, options = {}) {\n var _a, _b;\n const {\n document = defaultDocument\n } = options;\n const title = toRef((_a = newTitle != null ? newTitle : document == null ? void 0 : document.title) != null ? _a : null);\n const isReadonly = newTitle && typeof newTitle === \"function\";\n function format(t) {\n if (!(\"titleTemplate\" in options))\n return t;\n const template = options.titleTemplate || \"%s\";\n return typeof template === \"function\" ? template(t) : toValue(template).replace(/%s/g, t);\n }\n watch(\n title,\n (t, o) => {\n if (t !== o && document)\n document.title = format(typeof t === \"string\" ? t : \"\");\n },\n { immediate: true }\n );\n if (options.observe && !options.titleTemplate && document && !isReadonly) {\n useMutationObserver(\n (_b = document.head) == null ? void 0 : _b.querySelector(\"title\"),\n () => {\n if (document && document.title !== title.value)\n title.value = format(document.title);\n },\n { childList: true }\n );\n }\n return title;\n}\n\nconst _TransitionPresets = {\n easeInSine: [0.12, 0, 0.39, 0],\n easeOutSine: [0.61, 1, 0.88, 1],\n easeInOutSine: [0.37, 0, 0.63, 1],\n easeInQuad: [0.11, 0, 0.5, 0],\n easeOutQuad: [0.5, 1, 0.89, 1],\n easeInOutQuad: [0.45, 0, 0.55, 1],\n easeInCubic: [0.32, 0, 0.67, 0],\n easeOutCubic: [0.33, 1, 0.68, 1],\n easeInOutCubic: [0.65, 0, 0.35, 1],\n easeInQuart: [0.5, 0, 0.75, 0],\n easeOutQuart: [0.25, 1, 0.5, 1],\n easeInOutQuart: [0.76, 0, 0.24, 1],\n easeInQuint: [0.64, 0, 0.78, 0],\n easeOutQuint: [0.22, 1, 0.36, 1],\n easeInOutQuint: [0.83, 0, 0.17, 1],\n easeInExpo: [0.7, 0, 0.84, 0],\n easeOutExpo: [0.16, 1, 0.3, 1],\n easeInOutExpo: [0.87, 0, 0.13, 1],\n easeInCirc: [0.55, 0, 1, 0.45],\n easeOutCirc: [0, 0.55, 0.45, 1],\n easeInOutCirc: [0.85, 0, 0.15, 1],\n easeInBack: [0.36, 0, 0.66, -0.56],\n easeOutBack: [0.34, 1.56, 0.64, 1],\n easeInOutBack: [0.68, -0.6, 0.32, 1.6]\n};\nconst TransitionPresets = /* @__PURE__ */ Object.assign({}, { linear: identity }, _TransitionPresets);\nfunction createEasingFunction([p0, p1, p2, p3]) {\n const a = (a1, a2) => 1 - 3 * a2 + 3 * a1;\n const b = (a1, a2) => 3 * a2 - 6 * a1;\n const c = (a1) => 3 * a1;\n const calcBezier = (t, a1, a2) => ((a(a1, a2) * t + b(a1, a2)) * t + c(a1)) * t;\n const getSlope = (t, a1, a2) => 3 * a(a1, a2) * t * t + 2 * b(a1, a2) * t + c(a1);\n const getTforX = (x) => {\n let aGuessT = x;\n for (let i = 0; i < 4; ++i) {\n const currentSlope = getSlope(aGuessT, p0, p2);\n if (currentSlope === 0)\n return aGuessT;\n const currentX = calcBezier(aGuessT, p0, p2) - x;\n aGuessT -= currentX / currentSlope;\n }\n return aGuessT;\n };\n return (x) => p0 === p1 && p2 === p3 ? x : calcBezier(getTforX(x), p1, p3);\n}\nfunction lerp(a, b, alpha) {\n return a + alpha * (b - a);\n}\nfunction toVec(t) {\n return (typeof t === \"number\" ? [t] : t) || [];\n}\nfunction executeTransition(source, from, to, options = {}) {\n var _a, _b;\n const fromVal = toValue(from);\n const toVal = toValue(to);\n const v1 = toVec(fromVal);\n const v2 = toVec(toVal);\n const duration = (_a = toValue(options.duration)) != null ? _a : 1e3;\n const startedAt = Date.now();\n const endAt = Date.now() + duration;\n const trans = typeof options.transition === \"function\" ? options.transition : (_b = toValue(options.transition)) != null ? _b : identity;\n const ease = typeof trans === \"function\" ? trans : createEasingFunction(trans);\n return new Promise((resolve) => {\n source.value = fromVal;\n const tick = () => {\n var _a2;\n if ((_a2 = options.abort) == null ? void 0 : _a2.call(options)) {\n resolve();\n return;\n }\n const now = Date.now();\n const alpha = ease((now - startedAt) / duration);\n const arr = toVec(source.value).map((n, i) => lerp(v1[i], v2[i], alpha));\n if (Array.isArray(source.value))\n source.value = arr.map((n, i) => {\n var _a3, _b2;\n return lerp((_a3 = v1[i]) != null ? _a3 : 0, (_b2 = v2[i]) != null ? _b2 : 0, alpha);\n });\n else if (typeof source.value === \"number\")\n source.value = arr[0];\n if (now < endAt) {\n requestAnimationFrame(tick);\n } else {\n source.value = toVal;\n resolve();\n }\n };\n tick();\n });\n}\nfunction useTransition(source, options = {}) {\n let currentId = 0;\n const sourceVal = () => {\n const v = toValue(source);\n return typeof v === \"number\" ? v : v.map(toValue);\n };\n const outputRef = ref(sourceVal());\n watch(sourceVal, async (to) => {\n var _a, _b;\n if (toValue(options.disabled))\n return;\n const id = ++currentId;\n if (options.delay)\n await promiseTimeout(toValue(options.delay));\n if (id !== currentId)\n return;\n const toVal = Array.isArray(to) ? to.map(toValue) : toValue(to);\n (_a = options.onStarted) == null ? void 0 : _a.call(options);\n await executeTransition(outputRef, outputRef.value, toVal, {\n ...options,\n abort: () => {\n var _a2;\n return id !== currentId || ((_a2 = options.abort) == null ? void 0 : _a2.call(options));\n }\n });\n (_b = options.onFinished) == null ? void 0 : _b.call(options);\n }, { deep: true });\n watch(() => toValue(options.disabled), (disabled) => {\n if (disabled) {\n currentId++;\n outputRef.value = sourceVal();\n }\n });\n tryOnScopeDispose(() => {\n currentId++;\n });\n return computed(() => toValue(options.disabled) ? sourceVal() : outputRef.value);\n}\n\nfunction useUrlSearchParams(mode = \"history\", options = {}) {\n const {\n initialValue = {},\n removeNullishValues = true,\n removeFalsyValues = false,\n write: enableWrite = true,\n window = defaultWindow\n } = options;\n if (!window)\n return reactive(initialValue);\n const state = reactive({});\n function getRawParams() {\n if (mode === \"history\") {\n return window.location.search || \"\";\n } else if (mode === \"hash\") {\n const hash = window.location.hash || \"\";\n const index = hash.indexOf(\"?\");\n return index > 0 ? hash.slice(index) : \"\";\n } else {\n return (window.location.hash || \"\").replace(/^#/, \"\");\n }\n }\n function constructQuery(params) {\n const stringified = params.toString();\n if (mode === \"history\")\n return `${stringified ? `?${stringified}` : \"\"}${window.location.hash || \"\"}`;\n if (mode === \"hash-params\")\n return `${window.location.search || \"\"}${stringified ? `#${stringified}` : \"\"}`;\n const hash = window.location.hash || \"#\";\n const index = hash.indexOf(\"?\");\n if (index > 0)\n return `${hash.slice(0, index)}${stringified ? `?${stringified}` : \"\"}`;\n return `${hash}${stringified ? `?${stringified}` : \"\"}`;\n }\n function read() {\n return new URLSearchParams(getRawParams());\n }\n function updateState(params) {\n const unusedKeys = new Set(Object.keys(state));\n for (const key of params.keys()) {\n const paramsForKey = params.getAll(key);\n state[key] = paramsForKey.length > 1 ? paramsForKey : params.get(key) || \"\";\n unusedKeys.delete(key);\n }\n Array.from(unusedKeys).forEach((key) => delete state[key]);\n }\n const { pause, resume } = pausableWatch(\n state,\n () => {\n const params = new URLSearchParams(\"\");\n Object.keys(state).forEach((key) => {\n const mapEntry = state[key];\n if (Array.isArray(mapEntry))\n mapEntry.forEach((value) => params.append(key, value));\n else if (removeNullishValues && mapEntry == null)\n params.delete(key);\n else if (removeFalsyValues && !mapEntry)\n params.delete(key);\n else\n params.set(key, mapEntry);\n });\n write(params);\n },\n { deep: true }\n );\n function write(params, shouldUpdate) {\n pause();\n if (shouldUpdate)\n updateState(params);\n window.history.replaceState(\n window.history.state,\n window.document.title,\n window.location.pathname + constructQuery(params)\n );\n resume();\n }\n function onChanged() {\n if (!enableWrite)\n return;\n write(read(), true);\n }\n useEventListener(window, \"popstate\", onChanged, false);\n if (mode !== \"history\")\n useEventListener(window, \"hashchange\", onChanged, false);\n const initial = read();\n if (initial.keys().next().value)\n updateState(initial);\n else\n Object.assign(state, initialValue);\n return state;\n}\n\nfunction useUserMedia(options = {}) {\n var _a, _b;\n const enabled = ref((_a = options.enabled) != null ? _a : false);\n const autoSwitch = ref((_b = options.autoSwitch) != null ? _b : true);\n const constraints = ref(options.constraints);\n const { navigator = defaultNavigator } = options;\n const isSupported = useSupported(() => {\n var _a2;\n return (_a2 = navigator == null ? void 0 : navigator.mediaDevices) == null ? void 0 : _a2.getUserMedia;\n });\n const stream = shallowRef();\n function getDeviceOptions(type) {\n switch (type) {\n case \"video\": {\n if (constraints.value)\n return constraints.value.video || false;\n break;\n }\n case \"audio\": {\n if (constraints.value)\n return constraints.value.audio || false;\n break;\n }\n }\n }\n async function _start() {\n if (!isSupported.value || stream.value)\n return;\n stream.value = await navigator.mediaDevices.getUserMedia({\n video: getDeviceOptions(\"video\"),\n audio: getDeviceOptions(\"audio\")\n });\n return stream.value;\n }\n function _stop() {\n var _a2;\n (_a2 = stream.value) == null ? void 0 : _a2.getTracks().forEach((t) => t.stop());\n stream.value = void 0;\n }\n function stop() {\n _stop();\n enabled.value = false;\n }\n async function start() {\n await _start();\n if (stream.value)\n enabled.value = true;\n return stream.value;\n }\n async function restart() {\n _stop();\n return await start();\n }\n watch(\n enabled,\n (v) => {\n if (v)\n _start();\n else\n _stop();\n },\n { immediate: true }\n );\n watch(\n constraints,\n () => {\n if (autoSwitch.value && stream.value)\n restart();\n },\n { immediate: true }\n );\n return {\n isSupported,\n stream,\n start,\n stop,\n restart,\n constraints,\n enabled,\n autoSwitch\n };\n}\n\nfunction useVModel(props, key, emit, options = {}) {\n var _a, _b, _c, _d, _e;\n const {\n clone = false,\n passive = false,\n eventName,\n deep = false,\n defaultValue,\n shouldEmit\n } = options;\n const vm = getCurrentInstance();\n const _emit = emit || (vm == null ? void 0 : vm.emit) || ((_a = vm == null ? void 0 : vm.$emit) == null ? void 0 : _a.bind(vm)) || ((_c = (_b = vm == null ? void 0 : vm.proxy) == null ? void 0 : _b.$emit) == null ? void 0 : _c.bind(vm == null ? void 0 : vm.proxy));\n let event = eventName;\n if (!key) {\n if (isVue2) {\n const modelOptions = (_e = (_d = vm == null ? void 0 : vm.proxy) == null ? void 0 : _d.$options) == null ? void 0 : _e.model;\n key = (modelOptions == null ? void 0 : modelOptions.value) || \"value\";\n if (!eventName)\n event = (modelOptions == null ? void 0 : modelOptions.event) || \"input\";\n } else {\n key = \"modelValue\";\n }\n }\n event = event || `update:${key.toString()}`;\n const cloneFn = (val) => !clone ? val : typeof clone === \"function\" ? clone(val) : cloneFnJSON(val);\n const getValue = () => isDef(props[key]) ? cloneFn(props[key]) : defaultValue;\n const triggerEmit = (value) => {\n if (shouldEmit) {\n if (shouldEmit(value))\n _emit(event, value);\n } else {\n _emit(event, value);\n }\n };\n if (passive) {\n const initialValue = getValue();\n const proxy = ref(initialValue);\n let isUpdating = false;\n watch(\n () => props[key],\n (v) => {\n if (!isUpdating) {\n isUpdating = true;\n proxy.value = cloneFn(v);\n nextTick(() => isUpdating = false);\n }\n }\n );\n watch(\n proxy,\n (v) => {\n if (!isUpdating && (v !== props[key] || deep))\n triggerEmit(v);\n },\n { deep }\n );\n return proxy;\n } else {\n return computed({\n get() {\n return getValue();\n },\n set(value) {\n triggerEmit(value);\n }\n });\n }\n}\n\nfunction useVModels(props, emit, options = {}) {\n const ret = {};\n for (const key in props) {\n ret[key] = useVModel(\n props,\n key,\n emit,\n options\n );\n }\n return ret;\n}\n\nfunction useVibrate(options) {\n const {\n pattern = [],\n interval = 0,\n navigator = defaultNavigator\n } = options || {};\n const isSupported = useSupported(() => typeof navigator !== \"undefined\" && \"vibrate\" in navigator);\n const patternRef = toRef(pattern);\n let intervalControls;\n const vibrate = (pattern2 = patternRef.value) => {\n if (isSupported.value)\n navigator.vibrate(pattern2);\n };\n const stop = () => {\n if (isSupported.value)\n navigator.vibrate(0);\n intervalControls == null ? void 0 : intervalControls.pause();\n };\n if (interval > 0) {\n intervalControls = useIntervalFn(\n vibrate,\n interval,\n {\n immediate: false,\n immediateCallback: false\n }\n );\n }\n return {\n isSupported,\n pattern,\n intervalControls,\n vibrate,\n stop\n };\n}\n\nfunction useVirtualList(list, options) {\n const { containerStyle, wrapperProps, scrollTo, calculateRange, currentList, containerRef } = \"itemHeight\" in options ? useVerticalVirtualList(options, list) : useHorizontalVirtualList(options, list);\n return {\n list: currentList,\n scrollTo,\n containerProps: {\n ref: containerRef,\n onScroll: () => {\n calculateRange();\n },\n style: containerStyle\n },\n wrapperProps\n };\n}\nfunction useVirtualListResources(list) {\n const containerRef = ref(null);\n const size = useElementSize(containerRef);\n const currentList = ref([]);\n const source = shallowRef(list);\n const state = ref({ start: 0, end: 10 });\n return { state, source, currentList, size, containerRef };\n}\nfunction createGetViewCapacity(state, source, itemSize) {\n return (containerSize) => {\n if (typeof itemSize === \"number\")\n return Math.ceil(containerSize / itemSize);\n const { start = 0 } = state.value;\n let sum = 0;\n let capacity = 0;\n for (let i = start; i < source.value.length; i++) {\n const size = itemSize(i);\n sum += size;\n capacity = i;\n if (sum > containerSize)\n break;\n }\n return capacity - start;\n };\n}\nfunction createGetOffset(source, itemSize) {\n return (scrollDirection) => {\n if (typeof itemSize === \"number\")\n return Math.floor(scrollDirection / itemSize) + 1;\n let sum = 0;\n let offset = 0;\n for (let i = 0; i < source.value.length; i++) {\n const size = itemSize(i);\n sum += size;\n if (sum >= scrollDirection) {\n offset = i;\n break;\n }\n }\n return offset + 1;\n };\n}\nfunction createCalculateRange(type, overscan, getOffset, getViewCapacity, { containerRef, state, currentList, source }) {\n return () => {\n const element = containerRef.value;\n if (element) {\n const offset = getOffset(type === \"vertical\" ? element.scrollTop : element.scrollLeft);\n const viewCapacity = getViewCapacity(type === \"vertical\" ? element.clientHeight : element.clientWidth);\n const from = offset - overscan;\n const to = offset + viewCapacity + overscan;\n state.value = {\n start: from < 0 ? 0 : from,\n end: to > source.value.length ? source.value.length : to\n };\n currentList.value = source.value.slice(state.value.start, state.value.end).map((ele, index) => ({\n data: ele,\n index: index + state.value.start\n }));\n }\n };\n}\nfunction createGetDistance(itemSize, source) {\n return (index) => {\n if (typeof itemSize === \"number\") {\n const size2 = index * itemSize;\n return size2;\n }\n const size = source.value.slice(0, index).reduce((sum, _, i) => sum + itemSize(i), 0);\n return size;\n };\n}\nfunction useWatchForSizes(size, list, calculateRange) {\n watch([size.width, size.height, list], () => {\n calculateRange();\n });\n}\nfunction createComputedTotalSize(itemSize, source) {\n return computed(() => {\n if (typeof itemSize === \"number\")\n return source.value.length * itemSize;\n return source.value.reduce((sum, _, index) => sum + itemSize(index), 0);\n });\n}\nconst scrollToDictionaryForElementScrollKey = {\n horizontal: \"scrollLeft\",\n vertical: \"scrollTop\"\n};\nfunction createScrollTo(type, calculateRange, getDistance, containerRef) {\n return (index) => {\n if (containerRef.value) {\n containerRef.value[scrollToDictionaryForElementScrollKey[type]] = getDistance(index);\n calculateRange();\n }\n };\n}\nfunction useHorizontalVirtualList(options, list) {\n const resources = useVirtualListResources(list);\n const { state, source, currentList, size, containerRef } = resources;\n const containerStyle = { overflowX: \"auto\" };\n const { itemWidth, overscan = 5 } = options;\n const getViewCapacity = createGetViewCapacity(state, source, itemWidth);\n const getOffset = createGetOffset(source, itemWidth);\n const calculateRange = createCalculateRange(\"horizontal\", overscan, getOffset, getViewCapacity, resources);\n const getDistanceLeft = createGetDistance(itemWidth, source);\n const offsetLeft = computed(() => getDistanceLeft(state.value.start));\n const totalWidth = createComputedTotalSize(itemWidth, source);\n useWatchForSizes(size, list, calculateRange);\n const scrollTo = createScrollTo(\"horizontal\", calculateRange, getDistanceLeft, containerRef);\n const wrapperProps = computed(() => {\n return {\n style: {\n height: \"100%\",\n width: `${totalWidth.value - offsetLeft.value}px`,\n marginLeft: `${offsetLeft.value}px`,\n display: \"flex\"\n }\n };\n });\n return {\n scrollTo,\n calculateRange,\n wrapperProps,\n containerStyle,\n currentList,\n containerRef\n };\n}\nfunction useVerticalVirtualList(options, list) {\n const resources = useVirtualListResources(list);\n const { state, source, currentList, size, containerRef } = resources;\n const containerStyle = { overflowY: \"auto\" };\n const { itemHeight, overscan = 5 } = options;\n const getViewCapacity = createGetViewCapacity(state, source, itemHeight);\n const getOffset = createGetOffset(source, itemHeight);\n const calculateRange = createCalculateRange(\"vertical\", overscan, getOffset, getViewCapacity, resources);\n const getDistanceTop = createGetDistance(itemHeight, source);\n const offsetTop = computed(() => getDistanceTop(state.value.start));\n const totalHeight = createComputedTotalSize(itemHeight, source);\n useWatchForSizes(size, list, calculateRange);\n const scrollTo = createScrollTo(\"vertical\", calculateRange, getDistanceTop, containerRef);\n const wrapperProps = computed(() => {\n return {\n style: {\n width: \"100%\",\n height: `${totalHeight.value - offsetTop.value}px`,\n marginTop: `${offsetTop.value}px`\n }\n };\n });\n return {\n calculateRange,\n scrollTo,\n containerStyle,\n wrapperProps,\n currentList,\n containerRef\n };\n}\n\nfunction useWakeLock(options = {}) {\n const {\n navigator = defaultNavigator,\n document = defaultDocument\n } = options;\n let wakeLock;\n const isSupported = useSupported(() => navigator && \"wakeLock\" in navigator);\n const isActive = ref(false);\n async function onVisibilityChange() {\n if (!isSupported.value || !wakeLock)\n return;\n if (document && document.visibilityState === \"visible\")\n wakeLock = await navigator.wakeLock.request(\"screen\");\n isActive.value = !wakeLock.released;\n }\n if (document)\n useEventListener(document, \"visibilitychange\", onVisibilityChange, { passive: true });\n async function request(type) {\n if (!isSupported.value)\n return;\n wakeLock = await navigator.wakeLock.request(type);\n isActive.value = !wakeLock.released;\n }\n async function release() {\n if (!isSupported.value || !wakeLock)\n return;\n await wakeLock.release();\n isActive.value = !wakeLock.released;\n wakeLock = null;\n }\n return {\n isSupported,\n isActive,\n request,\n release\n };\n}\n\nfunction useWebNotification(options = {}) {\n const {\n window = defaultWindow,\n requestPermissions: _requestForPermissions = true\n } = options;\n const defaultWebNotificationOptions = options;\n const isSupported = useSupported(() => !!window && \"Notification\" in window);\n const permissionGranted = ref(isSupported.value && \"permission\" in Notification && Notification.permission === \"granted\");\n const notification = ref(null);\n const ensurePermissions = async () => {\n if (!isSupported.value)\n return;\n if (!permissionGranted.value && Notification.permission !== \"denied\") {\n const result = await Notification.requestPermission();\n if (result === \"granted\")\n permissionGranted.value = true;\n }\n return permissionGranted.value;\n };\n const { on: onClick, trigger: clickTrigger } = createEventHook();\n const { on: onShow, trigger: showTrigger } = createEventHook();\n const { on: onError, trigger: errorTrigger } = createEventHook();\n const { on: onClose, trigger: closeTrigger } = createEventHook();\n const show = async (overrides) => {\n if (!isSupported.value || !permissionGranted.value)\n return;\n const options2 = Object.assign({}, defaultWebNotificationOptions, overrides);\n notification.value = new Notification(options2.title || \"\", options2);\n notification.value.onclick = clickTrigger;\n notification.value.onshow = showTrigger;\n notification.value.onerror = errorTrigger;\n notification.value.onclose = closeTrigger;\n return notification.value;\n };\n const close = () => {\n if (notification.value)\n notification.value.close();\n notification.value = null;\n };\n if (_requestForPermissions)\n tryOnMounted(ensurePermissions);\n tryOnScopeDispose(close);\n if (isSupported.value && window) {\n const document = window.document;\n useEventListener(document, \"visibilitychange\", (e) => {\n e.preventDefault();\n if (document.visibilityState === \"visible\") {\n close();\n }\n });\n }\n return {\n isSupported,\n notification,\n ensurePermissions,\n permissionGranted,\n show,\n close,\n onClick,\n onShow,\n onError,\n onClose\n };\n}\n\nconst DEFAULT_PING_MESSAGE = \"ping\";\nfunction resolveNestedOptions(options) {\n if (options === true)\n return {};\n return options;\n}\nfunction useWebSocket(url, options = {}) {\n const {\n onConnected,\n onDisconnected,\n onError,\n onMessage,\n immediate = true,\n autoClose = true,\n protocols = []\n } = options;\n const data = ref(null);\n const status = ref(\"CLOSED\");\n const wsRef = ref();\n const urlRef = toRef(url);\n let heartbeatPause;\n let heartbeatResume;\n let explicitlyClosed = false;\n let retried = 0;\n let bufferedData = [];\n let pongTimeoutWait;\n const _sendBuffer = () => {\n if (bufferedData.length && wsRef.value && status.value === \"OPEN\") {\n for (const buffer of bufferedData)\n wsRef.value.send(buffer);\n bufferedData = [];\n }\n };\n const resetHeartbeat = () => {\n clearTimeout(pongTimeoutWait);\n pongTimeoutWait = void 0;\n };\n const close = (code = 1e3, reason) => {\n if (!isClient || !wsRef.value)\n return;\n explicitlyClosed = true;\n resetHeartbeat();\n heartbeatPause == null ? void 0 : heartbeatPause();\n wsRef.value.close(code, reason);\n };\n const send = (data2, useBuffer = true) => {\n if (!wsRef.value || status.value !== \"OPEN\") {\n if (useBuffer)\n bufferedData.push(data2);\n return false;\n }\n _sendBuffer();\n wsRef.value.send(data2);\n return true;\n };\n const _init = () => {\n if (explicitlyClosed || typeof urlRef.value === \"undefined\")\n return;\n const ws = new WebSocket(urlRef.value, protocols);\n wsRef.value = ws;\n status.value = \"CONNECTING\";\n ws.onopen = () => {\n status.value = \"OPEN\";\n onConnected == null ? void 0 : onConnected(ws);\n heartbeatResume == null ? void 0 : heartbeatResume();\n _sendBuffer();\n };\n ws.onclose = (ev) => {\n status.value = \"CLOSED\";\n wsRef.value = void 0;\n onDisconnected == null ? void 0 : onDisconnected(ws, ev);\n if (!explicitlyClosed && options.autoReconnect) {\n const {\n retries = -1,\n delay = 1e3,\n onFailed\n } = resolveNestedOptions(options.autoReconnect);\n retried += 1;\n if (typeof retries === \"number\" && (retries < 0 || retried < retries))\n setTimeout(_init, delay);\n else if (typeof retries === \"function\" && retries())\n setTimeout(_init, delay);\n else\n onFailed == null ? void 0 : onFailed();\n }\n };\n ws.onerror = (e) => {\n onError == null ? void 0 : onError(ws, e);\n };\n ws.onmessage = (e) => {\n if (options.heartbeat) {\n resetHeartbeat();\n const {\n message = DEFAULT_PING_MESSAGE\n } = resolveNestedOptions(options.heartbeat);\n if (e.data === message)\n return;\n }\n data.value = e.data;\n onMessage == null ? void 0 : onMessage(ws, e);\n };\n };\n if (options.heartbeat) {\n const {\n message = DEFAULT_PING_MESSAGE,\n interval = 1e3,\n pongTimeout = 1e3\n } = resolveNestedOptions(options.heartbeat);\n const { pause, resume } = useIntervalFn(\n () => {\n send(message, false);\n if (pongTimeoutWait != null)\n return;\n pongTimeoutWait = setTimeout(() => {\n close();\n explicitlyClosed = false;\n }, pongTimeout);\n },\n interval,\n { immediate: false }\n );\n heartbeatPause = pause;\n heartbeatResume = resume;\n }\n if (autoClose) {\n useEventListener(\"beforeunload\", () => close());\n tryOnScopeDispose(close);\n }\n const open = () => {\n if (!isClient)\n return;\n close();\n explicitlyClosed = false;\n retried = 0;\n _init();\n };\n if (immediate)\n watch(urlRef, open, { immediate: true });\n return {\n data,\n status,\n close,\n send,\n open,\n ws: wsRef\n };\n}\n\nfunction useWebWorker(arg0, workerOptions, options) {\n const {\n window = defaultWindow\n } = options != null ? options : {};\n const data = ref(null);\n const worker = shallowRef();\n const post = (...args) => {\n if (!worker.value)\n return;\n worker.value.postMessage(...args);\n };\n const terminate = function terminate2() {\n if (!worker.value)\n return;\n worker.value.terminate();\n };\n if (window) {\n if (typeof arg0 === \"string\")\n worker.value = new Worker(arg0, workerOptions);\n else if (typeof arg0 === \"function\")\n worker.value = arg0();\n else\n worker.value = arg0;\n worker.value.onmessage = (e) => {\n data.value = e.data;\n };\n tryOnScopeDispose(() => {\n if (worker.value)\n worker.value.terminate();\n });\n }\n return {\n data,\n post,\n terminate,\n worker\n };\n}\n\nfunction jobRunner(userFunc) {\n return (e) => {\n const userFuncArgs = e.data[0];\n return Promise.resolve(userFunc.apply(void 0, userFuncArgs)).then((result) => {\n postMessage([\"SUCCESS\", result]);\n }).catch((error) => {\n postMessage([\"ERROR\", error]);\n });\n };\n}\n\nfunction depsParser(deps) {\n if (deps.length === 0)\n return \"\";\n const depsString = deps.map((dep) => `'${dep}'`).toString();\n return `importScripts(${depsString})`;\n}\n\nfunction createWorkerBlobUrl(fn, deps) {\n const blobCode = `${depsParser(deps)}; onmessage=(${jobRunner})(${fn})`;\n const blob = new Blob([blobCode], { type: \"text/javascript\" });\n const url = URL.createObjectURL(blob);\n return url;\n}\n\nfunction useWebWorkerFn(fn, options = {}) {\n const {\n dependencies = [],\n timeout,\n window = defaultWindow\n } = options;\n const worker = ref();\n const workerStatus = ref(\"PENDING\");\n const promise = ref({});\n const timeoutId = ref();\n const workerTerminate = (status = \"PENDING\") => {\n if (worker.value && worker.value._url && window) {\n worker.value.terminate();\n URL.revokeObjectURL(worker.value._url);\n promise.value = {};\n worker.value = void 0;\n window.clearTimeout(timeoutId.value);\n workerStatus.value = status;\n }\n };\n workerTerminate();\n tryOnScopeDispose(workerTerminate);\n const generateWorker = () => {\n const blobUrl = createWorkerBlobUrl(fn, dependencies);\n const newWorker = new Worker(blobUrl);\n newWorker._url = blobUrl;\n newWorker.onmessage = (e) => {\n const { resolve = () => {\n }, reject = () => {\n } } = promise.value;\n const [status, result] = e.data;\n switch (status) {\n case \"SUCCESS\":\n resolve(result);\n workerTerminate(status);\n break;\n default:\n reject(result);\n workerTerminate(\"ERROR\");\n break;\n }\n };\n newWorker.onerror = (e) => {\n const { reject = () => {\n } } = promise.value;\n e.preventDefault();\n reject(e);\n workerTerminate(\"ERROR\");\n };\n if (timeout) {\n timeoutId.value = setTimeout(\n () => workerTerminate(\"TIMEOUT_EXPIRED\"),\n timeout\n );\n }\n return newWorker;\n };\n const callWorker = (...fnArgs) => new Promise((resolve, reject) => {\n promise.value = {\n resolve,\n reject\n };\n worker.value && worker.value.postMessage([[...fnArgs]]);\n workerStatus.value = \"RUNNING\";\n });\n const workerFn = (...fnArgs) => {\n if (workerStatus.value === \"RUNNING\") {\n console.error(\n \"[useWebWorkerFn] You can only run one instance of the worker at a time.\"\n );\n return Promise.reject();\n }\n worker.value = generateWorker();\n return callWorker(...fnArgs);\n };\n return {\n workerFn,\n workerStatus,\n workerTerminate\n };\n}\n\nfunction useWindowFocus(options = {}) {\n const { window = defaultWindow } = options;\n if (!window)\n return ref(false);\n const focused = ref(window.document.hasFocus());\n useEventListener(window, \"blur\", () => {\n focused.value = false;\n });\n useEventListener(window, \"focus\", () => {\n focused.value = true;\n });\n return focused;\n}\n\nfunction useWindowScroll(options = {}) {\n const { window = defaultWindow } = options;\n if (!window) {\n return {\n x: ref(0),\n y: ref(0)\n };\n }\n const x = ref(window.scrollX);\n const y = ref(window.scrollY);\n useEventListener(\n window,\n \"scroll\",\n () => {\n x.value = window.scrollX;\n y.value = window.scrollY;\n },\n {\n capture: false,\n passive: true\n }\n );\n return { x, y };\n}\n\nfunction useWindowSize(options = {}) {\n const {\n window = defaultWindow,\n initialWidth = Number.POSITIVE_INFINITY,\n initialHeight = Number.POSITIVE_INFINITY,\n listenOrientation = true,\n includeScrollbar = true\n } = options;\n const width = ref(initialWidth);\n const height = ref(initialHeight);\n const update = () => {\n if (window) {\n if (includeScrollbar) {\n width.value = window.innerWidth;\n height.value = window.innerHeight;\n } else {\n width.value = window.document.documentElement.clientWidth;\n height.value = window.document.documentElement.clientHeight;\n }\n }\n };\n update();\n tryOnMounted(update);\n useEventListener(\"resize\", update, { passive: true });\n if (listenOrientation) {\n const matches = useMediaQuery(\"(orientation: portrait)\");\n watch(matches, () => update());\n }\n return { width, height };\n}\n\nexport { DefaultMagicKeysAliasMap, StorageSerializers, TransitionPresets, computedAsync as asyncComputed, breakpointsAntDesign, breakpointsBootstrapV5, breakpointsMasterCss, breakpointsPrimeFlex, breakpointsQuasar, breakpointsSematic, breakpointsTailwind, breakpointsVuetify, cloneFnJSON, computedAsync, computedInject, createFetch, createReusableTemplate, createTemplatePromise, createUnrefFn, customStorageEventName, defaultDocument, defaultLocation, defaultNavigator, defaultWindow, executeTransition, formatTimeAgo, getSSRHandler, mapGamepadToXbox360Controller, onClickOutside, onKeyDown, onKeyPressed, onKeyStroke, onKeyUp, onLongPress, onStartTyping, setSSRHandler, templateRef, unrefElement, useActiveElement, useAnimate, useAsyncQueue, useAsyncState, useBase64, useBattery, useBluetooth, useBreakpoints, useBroadcastChannel, useBrowserLocation, useCached, useClipboard, useCloned, useColorMode, useConfirmDialog, useCssVar, useCurrentElement, useCycleList, useDark, useDebouncedRefHistory, useDeviceMotion, useDeviceOrientation, useDevicePixelRatio, useDevicesList, useDisplayMedia, useDocumentVisibility, useDraggable, useDropZone, useElementBounding, useElementByPoint, useElementHover, useElementSize, useElementVisibility, useEventBus, useEventListener, useEventSource, useEyeDropper, useFavicon, useFetch, useFileDialog, useFileSystemAccess, useFocus, useFocusWithin, useFps, useFullscreen, useGamepad, useGeolocation, useIdle, useImage, useInfiniteScroll, useIntersectionObserver, useKeyModifier, useLocalStorage, useMagicKeys, useManualRefHistory, useMediaControls, useMediaQuery, useMemoize, useMemory, useMounted, useMouse, useMouseInElement, useMousePressed, useMutationObserver, useNavigatorLanguage, useNetwork, useNow, useObjectUrl, useOffsetPagination, useOnline, usePageLeave, useParallax, useParentElement, usePerformanceObserver, usePermission, usePointer, usePointerLock, usePointerSwipe, usePreferredColorScheme, usePreferredContrast, usePreferredDark, usePreferredLanguages, usePreferredReducedMotion, usePrevious, useRafFn, useRefHistory, useResizeObserver, useScreenOrientation, useScreenSafeArea, useScriptTag, useScroll, useScrollLock, useSessionStorage, useShare, useSorted, useSpeechRecognition, useSpeechSynthesis, useStepper, useStorage, useStorageAsync, useStyleTag, useSupported, useSwipe, useTemplateRefsList, useTextDirection, useTextSelection, useTextareaAutosize, useThrottledRefHistory, useTimeAgo, useTimeoutPoll, useTimestamp, useTitle, useTransition, useUrlSearchParams, useUserMedia, useVModel, useVModels, useVibrate, useVirtualList, useWakeLock, useWebNotification, useWebSocket, useWebWorker, useWebWorkerFn, useWindowFocus, useWindowScroll, useWindowSize };\n","var __defProp = Object.defineProperty;\nvar __defProps = Object.defineProperties;\nvar __getOwnPropDescs = Object.getOwnPropertyDescriptors;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nvar __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));\nvar __objRest = (source, exclude) => {\n var target = {};\n for (var prop in source)\n if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)\n target[prop] = source[prop];\n if (source != null && __getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(source)) {\n if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))\n target[prop] = source[prop];\n }\n return target;\n};\nvar splitpanes_vue_vue_type_style_index_0_lang = \"\";\nfunction normalizeComponent(scriptExports, render2, staticRenderFns2, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {\n var options = typeof scriptExports === \"function\" ? scriptExports.options : scriptExports;\n if (render2) {\n options.render = render2;\n options.staticRenderFns = staticRenderFns2;\n options._compiled = true;\n }\n if (functionalTemplate) {\n options.functional = true;\n }\n if (scopeId) {\n options._scopeId = \"data-v-\" + scopeId;\n }\n var hook;\n if (moduleIdentifier) {\n hook = function(context) {\n context = context || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext;\n if (!context && typeof __VUE_SSR_CONTEXT__ !== \"undefined\") {\n context = __VUE_SSR_CONTEXT__;\n }\n if (injectStyles) {\n injectStyles.call(this, context);\n }\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier);\n }\n };\n options._ssrRegister = hook;\n } else if (injectStyles) {\n hook = shadowMode ? function() {\n injectStyles.call(this, (options.functional ? this.parent : this).$root.$options.shadowRoot);\n } : injectStyles;\n }\n if (hook) {\n if (options.functional) {\n options._injectStyles = hook;\n var originalRender = options.render;\n options.render = function renderWithStyleInjection(h, context) {\n hook.call(context);\n return originalRender(h, context);\n };\n } else {\n var existing = options.beforeCreate;\n options.beforeCreate = existing ? [].concat(existing, hook) : [hook];\n }\n }\n return {\n exports: scriptExports,\n options\n };\n}\nconst __vue2_script$1 = {\n name: \"splitpanes\",\n props: {\n horizontal: { type: Boolean },\n pushOtherPanes: { type: Boolean, default: true },\n dblClickSplitter: { type: Boolean, default: true },\n rtl: { type: Boolean, default: false },\n firstSplitter: { type: Boolean }\n },\n provide() {\n return {\n requestUpdate: this.requestUpdate,\n onPaneAdd: this.onPaneAdd,\n onPaneRemove: this.onPaneRemove,\n onPaneClick: this.onPaneClick\n };\n },\n data: () => ({\n container: null,\n ready: false,\n panes: [],\n touch: {\n mouseDown: false,\n dragging: false,\n activeSplitter: null\n },\n splitterTaps: {\n splitter: null,\n timeoutId: null\n }\n }),\n computed: {\n panesCount() {\n return this.panes.length;\n },\n indexedPanes() {\n return this.panes.reduce((obj, pane2) => (obj[pane2.id] = pane2) && obj, {});\n }\n },\n methods: {\n updatePaneComponents() {\n this.panes.forEach((pane2) => {\n pane2.update && pane2.update({\n [this.horizontal ? \"height\" : \"width\"]: `${this.indexedPanes[pane2.id].size}%`\n });\n });\n },\n bindEvents() {\n document.addEventListener(\"mousemove\", this.onMouseMove, { passive: false });\n document.addEventListener(\"mouseup\", this.onMouseUp);\n if (\"ontouchstart\" in window) {\n document.addEventListener(\"touchmove\", this.onMouseMove, { passive: false });\n document.addEventListener(\"touchend\", this.onMouseUp);\n }\n },\n unbindEvents() {\n document.removeEventListener(\"mousemove\", this.onMouseMove, { passive: false });\n document.removeEventListener(\"mouseup\", this.onMouseUp);\n if (\"ontouchstart\" in window) {\n document.removeEventListener(\"touchmove\", this.onMouseMove, { passive: false });\n document.removeEventListener(\"touchend\", this.onMouseUp);\n }\n },\n onMouseDown(event, splitterIndex) {\n this.bindEvents();\n this.touch.mouseDown = true;\n this.touch.activeSplitter = splitterIndex;\n },\n onMouseMove(event) {\n if (this.touch.mouseDown) {\n event.preventDefault();\n this.touch.dragging = true;\n this.calculatePanesSize(this.getCurrentMouseDrag(event));\n this.$emit(\"resize\", this.panes.map((pane2) => ({ min: pane2.min, max: pane2.max, size: pane2.size })));\n }\n },\n onMouseUp() {\n if (this.touch.dragging) {\n this.$emit(\"resized\", this.panes.map((pane2) => ({ min: pane2.min, max: pane2.max, size: pane2.size })));\n }\n this.touch.mouseDown = false;\n setTimeout(() => {\n this.touch.dragging = false;\n this.unbindEvents();\n }, 100);\n },\n onSplitterClick(event, splitterIndex) {\n if (\"ontouchstart\" in window) {\n event.preventDefault();\n if (this.dblClickSplitter) {\n if (this.splitterTaps.splitter === splitterIndex) {\n clearTimeout(this.splitterTaps.timeoutId);\n this.splitterTaps.timeoutId = null;\n this.onSplitterDblClick(event, splitterIndex);\n this.splitterTaps.splitter = null;\n } else {\n this.splitterTaps.splitter = splitterIndex;\n this.splitterTaps.timeoutId = setTimeout(() => {\n this.splitterTaps.splitter = null;\n }, 500);\n }\n }\n }\n if (!this.touch.dragging)\n this.$emit(\"splitter-click\", this.panes[splitterIndex]);\n },\n onSplitterDblClick(event, splitterIndex) {\n let totalMinSizes = 0;\n this.panes = this.panes.map((pane2, i) => {\n pane2.size = i === splitterIndex ? pane2.max : pane2.min;\n if (i !== splitterIndex)\n totalMinSizes += pane2.min;\n return pane2;\n });\n this.panes[splitterIndex].size -= totalMinSizes;\n this.$emit(\"pane-maximize\", this.panes[splitterIndex]);\n },\n onPaneClick(event, paneId) {\n this.$emit(\"pane-click\", this.indexedPanes[paneId]);\n },\n getCurrentMouseDrag(event) {\n const rect = this.container.getBoundingClientRect();\n const { clientX, clientY } = \"ontouchstart\" in window && event.touches ? event.touches[0] : event;\n return {\n x: clientX - rect.left,\n y: clientY - rect.top\n };\n },\n getCurrentDragPercentage(drag) {\n drag = drag[this.horizontal ? \"y\" : \"x\"];\n const containerSize = this.container[this.horizontal ? \"clientHeight\" : \"clientWidth\"];\n if (this.rtl && !this.horizontal)\n drag = containerSize - drag;\n return drag * 100 / containerSize;\n },\n calculatePanesSize(drag) {\n const splitterIndex = this.touch.activeSplitter;\n let sums = {\n prevPanesSize: this.sumPrevPanesSize(splitterIndex),\n nextPanesSize: this.sumNextPanesSize(splitterIndex),\n prevReachedMinPanes: 0,\n nextReachedMinPanes: 0\n };\n const minDrag = 0 + (this.pushOtherPanes ? 0 : sums.prevPanesSize);\n const maxDrag = 100 - (this.pushOtherPanes ? 0 : sums.nextPanesSize);\n const dragPercentage = Math.max(Math.min(this.getCurrentDragPercentage(drag), maxDrag), minDrag);\n let panesToResize = [splitterIndex, splitterIndex + 1];\n let paneBefore = this.panes[panesToResize[0]] || null;\n let paneAfter = this.panes[panesToResize[1]] || null;\n const paneBeforeMaxReached = paneBefore.max < 100 && dragPercentage >= paneBefore.max + sums.prevPanesSize;\n const paneAfterMaxReached = paneAfter.max < 100 && dragPercentage <= 100 - (paneAfter.max + this.sumNextPanesSize(splitterIndex + 1));\n if (paneBeforeMaxReached || paneAfterMaxReached) {\n if (paneBeforeMaxReached) {\n paneBefore.size = paneBefore.max;\n paneAfter.size = Math.max(100 - paneBefore.max - sums.prevPanesSize - sums.nextPanesSize, 0);\n } else {\n paneBefore.size = Math.max(100 - paneAfter.max - sums.prevPanesSize - this.sumNextPanesSize(splitterIndex + 1), 0);\n paneAfter.size = paneAfter.max;\n }\n return;\n }\n if (this.pushOtherPanes) {\n const vars = this.doPushOtherPanes(sums, dragPercentage);\n if (!vars)\n return;\n ({ sums, panesToResize } = vars);\n paneBefore = this.panes[panesToResize[0]] || null;\n paneAfter = this.panes[panesToResize[1]] || null;\n }\n if (paneBefore !== null) {\n paneBefore.size = Math.min(Math.max(dragPercentage - sums.prevPanesSize - sums.prevReachedMinPanes, paneBefore.min), paneBefore.max);\n }\n if (paneAfter !== null) {\n paneAfter.size = Math.min(Math.max(100 - dragPercentage - sums.nextPanesSize - sums.nextReachedMinPanes, paneAfter.min), paneAfter.max);\n }\n },\n doPushOtherPanes(sums, dragPercentage) {\n const splitterIndex = this.touch.activeSplitter;\n const panesToResize = [splitterIndex, splitterIndex + 1];\n if (dragPercentage < sums.prevPanesSize + this.panes[panesToResize[0]].min) {\n panesToResize[0] = this.findPrevExpandedPane(splitterIndex).index;\n sums.prevReachedMinPanes = 0;\n if (panesToResize[0] < splitterIndex) {\n this.panes.forEach((pane2, i) => {\n if (i > panesToResize[0] && i <= splitterIndex) {\n pane2.size = pane2.min;\n sums.prevReachedMinPanes += pane2.min;\n }\n });\n }\n sums.prevPanesSize = this.sumPrevPanesSize(panesToResize[0]);\n if (panesToResize[0] === void 0) {\n sums.prevReachedMinPanes = 0;\n this.panes[0].size = this.panes[0].min;\n this.panes.forEach((pane2, i) => {\n if (i > 0 && i <= splitterIndex) {\n pane2.size = pane2.min;\n sums.prevReachedMinPanes += pane2.min;\n }\n });\n this.panes[panesToResize[1]].size = 100 - sums.prevReachedMinPanes - this.panes[0].min - sums.prevPanesSize - sums.nextPanesSize;\n return null;\n }\n }\n if (dragPercentage > 100 - sums.nextPanesSize - this.panes[panesToResize[1]].min) {\n panesToResize[1] = this.findNextExpandedPane(splitterIndex).index;\n sums.nextReachedMinPanes = 0;\n if (panesToResize[1] > splitterIndex + 1) {\n this.panes.forEach((pane2, i) => {\n if (i > splitterIndex && i < panesToResize[1]) {\n pane2.size = pane2.min;\n sums.nextReachedMinPanes += pane2.min;\n }\n });\n }\n sums.nextPanesSize = this.sumNextPanesSize(panesToResize[1] - 1);\n if (panesToResize[1] === void 0) {\n sums.nextReachedMinPanes = 0;\n this.panes[this.panesCount - 1].size = this.panes[this.panesCount - 1].min;\n this.panes.forEach((pane2, i) => {\n if (i < this.panesCount - 1 && i >= splitterIndex + 1) {\n pane2.size = pane2.min;\n sums.nextReachedMinPanes += pane2.min;\n }\n });\n this.panes[panesToResize[0]].size = 100 - sums.prevPanesSize - sums.nextReachedMinPanes - this.panes[this.panesCount - 1].min - sums.nextPanesSize;\n return null;\n }\n }\n return { sums, panesToResize };\n },\n sumPrevPanesSize(splitterIndex) {\n return this.panes.reduce((total, pane2, i) => total + (i < splitterIndex ? pane2.size : 0), 0);\n },\n sumNextPanesSize(splitterIndex) {\n return this.panes.reduce((total, pane2, i) => total + (i > splitterIndex + 1 ? pane2.size : 0), 0);\n },\n findPrevExpandedPane(splitterIndex) {\n const pane2 = [...this.panes].reverse().find((p) => p.index < splitterIndex && p.size > p.min);\n return pane2 || {};\n },\n findNextExpandedPane(splitterIndex) {\n const pane2 = this.panes.find((p) => p.index > splitterIndex + 1 && p.size > p.min);\n return pane2 || {};\n },\n checkSplitpanesNodes() {\n const children = Array.from(this.container.children);\n children.forEach((child) => {\n const isPane = child.classList.contains(\"splitpanes__pane\");\n const isSplitter = child.classList.contains(\"splitpanes__splitter\");\n if (!isPane && !isSplitter) {\n child.parentNode.removeChild(child);\n console.warn(\"Splitpanes: Only elements are allowed at the root of . One of your DOM nodes was removed.\");\n return;\n }\n });\n },\n addSplitter(paneIndex, nextPaneNode, isVeryFirst = false) {\n const splitterIndex = paneIndex - 1;\n const elm = document.createElement(\"div\");\n elm.classList.add(\"splitpanes__splitter\");\n if (!isVeryFirst) {\n elm.onmousedown = (event) => this.onMouseDown(event, splitterIndex);\n if (typeof window !== \"undefined\" && \"ontouchstart\" in window) {\n elm.ontouchstart = (event) => this.onMouseDown(event, splitterIndex);\n }\n elm.onclick = (event) => this.onSplitterClick(event, splitterIndex + 1);\n }\n if (this.dblClickSplitter) {\n elm.ondblclick = (event) => this.onSplitterDblClick(event, splitterIndex + 1);\n }\n nextPaneNode.parentNode.insertBefore(elm, nextPaneNode);\n },\n removeSplitter(node) {\n node.onmousedown = void 0;\n node.onclick = void 0;\n node.ondblclick = void 0;\n node.parentNode.removeChild(node);\n },\n redoSplitters() {\n const children = Array.from(this.container.children);\n children.forEach((el) => {\n if (el.className.includes(\"splitpanes__splitter\"))\n this.removeSplitter(el);\n });\n let paneIndex = 0;\n children.forEach((el) => {\n if (el.className.includes(\"splitpanes__pane\")) {\n if (!paneIndex && this.firstSplitter)\n this.addSplitter(paneIndex, el, true);\n else if (paneIndex)\n this.addSplitter(paneIndex, el);\n paneIndex++;\n }\n });\n },\n requestUpdate(_a) {\n var _b = _a, { target } = _b, args = __objRest(_b, [\"target\"]);\n const pane2 = this.indexedPanes[target._uid];\n Object.entries(args).forEach(([key, value]) => pane2[key] = value);\n },\n onPaneAdd(pane2) {\n let index = -1;\n Array.from(pane2.$el.parentNode.children).some((el) => {\n if (el.className.includes(\"splitpanes__pane\"))\n index++;\n return el === pane2.$el;\n });\n const min = parseFloat(pane2.minSize);\n const max = parseFloat(pane2.maxSize);\n this.panes.splice(index, 0, {\n id: pane2._uid,\n index,\n min: isNaN(min) ? 0 : min,\n max: isNaN(max) ? 100 : max,\n size: pane2.size === null ? null : parseFloat(pane2.size),\n givenSize: pane2.size,\n update: pane2.update\n });\n this.panes.forEach((p, i) => p.index = i);\n if (this.ready) {\n this.$nextTick(() => {\n this.redoSplitters();\n this.resetPaneSizes({ addedPane: this.panes[index] });\n this.$emit(\"pane-add\", { index, panes: this.panes.map((pane3) => ({ min: pane3.min, max: pane3.max, size: pane3.size })) });\n });\n }\n },\n onPaneRemove(pane2) {\n const index = this.panes.findIndex((p) => p.id === pane2._uid);\n const removed = this.panes.splice(index, 1)[0];\n this.panes.forEach((p, i) => p.index = i);\n this.$nextTick(() => {\n this.redoSplitters();\n this.resetPaneSizes({ removedPane: __spreadProps(__spreadValues({}, removed), { index }) });\n this.$emit(\"pane-remove\", { removed, panes: this.panes.map((pane3) => ({ min: pane3.min, max: pane3.max, size: pane3.size })) });\n });\n },\n resetPaneSizes(changedPanes = {}) {\n if (!changedPanes.addedPane && !changedPanes.removedPane)\n this.initialPanesSizing();\n else if (this.panes.some((pane2) => pane2.givenSize !== null || pane2.min || pane2.max < 100))\n this.equalizeAfterAddOrRemove(changedPanes);\n else\n this.equalize();\n if (this.ready)\n this.$emit(\"resized\", this.panes.map((pane2) => ({ min: pane2.min, max: pane2.max, size: pane2.size })));\n },\n equalize() {\n const equalSpace = 100 / this.panesCount;\n let leftToAllocate = 0;\n let ungrowable = [];\n let unshrinkable = [];\n this.panes.forEach((pane2) => {\n pane2.size = Math.max(Math.min(equalSpace, pane2.max), pane2.min);\n leftToAllocate -= pane2.size;\n if (pane2.size >= pane2.max)\n ungrowable.push(pane2.id);\n if (pane2.size <= pane2.min)\n unshrinkable.push(pane2.id);\n });\n if (leftToAllocate > 0.1)\n this.readjustSizes(leftToAllocate, ungrowable, unshrinkable);\n },\n initialPanesSizing() {\n 100 / this.panesCount;\n let leftToAllocate = 100;\n let ungrowable = [];\n let unshrinkable = [];\n let definedSizes = 0;\n this.panes.forEach((pane2) => {\n leftToAllocate -= pane2.size;\n if (pane2.size !== null)\n definedSizes++;\n if (pane2.size >= pane2.max)\n ungrowable.push(pane2.id);\n if (pane2.size <= pane2.min)\n unshrinkable.push(pane2.id);\n });\n let leftToAllocate2 = 100;\n if (leftToAllocate > 0.1) {\n this.panes.forEach((pane2) => {\n if (pane2.size === null) {\n pane2.size = Math.max(Math.min(leftToAllocate / (this.panesCount - definedSizes), pane2.max), pane2.min);\n }\n leftToAllocate2 -= pane2.size;\n });\n if (leftToAllocate2 > 0.1)\n this.readjustSizes(leftToAllocate, ungrowable, unshrinkable);\n }\n },\n equalizeAfterAddOrRemove({ addedPane, removedPane } = {}) {\n let equalSpace = 100 / this.panesCount;\n let leftToAllocate = 0;\n let ungrowable = [];\n let unshrinkable = [];\n if (addedPane && addedPane.givenSize !== null) {\n equalSpace = (100 - addedPane.givenSize) / (this.panesCount - 1);\n }\n this.panes.forEach((pane2) => {\n leftToAllocate -= pane2.size;\n if (pane2.size >= pane2.max)\n ungrowable.push(pane2.id);\n if (pane2.size <= pane2.min)\n unshrinkable.push(pane2.id);\n });\n if (Math.abs(leftToAllocate) < 0.1)\n return;\n this.panes.forEach((pane2) => {\n if (addedPane && addedPane.givenSize !== null && addedPane.id === pane2.id)\n ;\n else\n pane2.size = Math.max(Math.min(equalSpace, pane2.max), pane2.min);\n leftToAllocate -= pane2.size;\n if (pane2.size >= pane2.max)\n ungrowable.push(pane2.id);\n if (pane2.size <= pane2.min)\n unshrinkable.push(pane2.id);\n });\n if (leftToAllocate > 0.1)\n this.readjustSizes(leftToAllocate, ungrowable, unshrinkable);\n },\n readjustSizes(leftToAllocate, ungrowable, unshrinkable) {\n let equalSpaceToAllocate;\n if (leftToAllocate > 0)\n equalSpaceToAllocate = leftToAllocate / (this.panesCount - ungrowable.length);\n else\n equalSpaceToAllocate = leftToAllocate / (this.panesCount - unshrinkable.length);\n this.panes.forEach((pane2, i) => {\n if (leftToAllocate > 0 && !ungrowable.includes(pane2.id)) {\n const newPaneSize = Math.max(Math.min(pane2.size + equalSpaceToAllocate, pane2.max), pane2.min);\n const allocated = newPaneSize - pane2.size;\n leftToAllocate -= allocated;\n pane2.size = newPaneSize;\n } else if (!unshrinkable.includes(pane2.id)) {\n const newPaneSize = Math.max(Math.min(pane2.size + equalSpaceToAllocate, pane2.max), pane2.min);\n const allocated = newPaneSize - pane2.size;\n leftToAllocate -= allocated;\n pane2.size = newPaneSize;\n }\n pane2.update({\n [this.horizontal ? \"height\" : \"width\"]: `${this.indexedPanes[pane2.id].size}%`\n });\n });\n if (Math.abs(leftToAllocate) > 0.1) {\n this.$nextTick(() => {\n if (this.ready) {\n console.warn(\"Splitpanes: Could not resize panes correctly due to their constraints.\");\n }\n });\n }\n }\n },\n watch: {\n panes: {\n deep: true,\n immediate: false,\n handler() {\n this.updatePaneComponents();\n }\n },\n horizontal() {\n this.updatePaneComponents();\n },\n firstSplitter() {\n this.redoSplitters();\n },\n dblClickSplitter(enable) {\n const splitters = [...this.container.querySelectorAll(\".splitpanes__splitter\")];\n splitters.forEach((splitter, i) => {\n splitter.ondblclick = enable ? (event) => this.onSplitterDblClick(event, i) : void 0;\n });\n }\n },\n beforeDestroy() {\n this.ready = false;\n },\n mounted() {\n this.container = this.$refs.container;\n this.checkSplitpanesNodes();\n this.redoSplitters();\n this.resetPaneSizes();\n this.$emit(\"ready\");\n this.ready = true;\n },\n render(h) {\n return h(\"div\", {\n ref: \"container\",\n class: [\n \"splitpanes\",\n `splitpanes--${this.horizontal ? \"horizontal\" : \"vertical\"}`,\n {\n \"splitpanes--dragging\": this.touch.dragging\n }\n ]\n }, this.$slots.default);\n }\n};\nlet __vue2_render, __vue2_staticRenderFns;\nconst __cssModules$1 = {};\nvar __component__$1 = /* @__PURE__ */ normalizeComponent(__vue2_script$1, __vue2_render, __vue2_staticRenderFns, false, __vue2_injectStyles$1, null, null, null);\nfunction __vue2_injectStyles$1(context) {\n for (let o in __cssModules$1) {\n this[o] = __cssModules$1[o];\n }\n}\nvar splitpanes = /* @__PURE__ */ function() {\n return __component__$1.exports;\n}();\nvar render = function() {\n var _vm = this;\n var _h = _vm.$createElement;\n var _c = _vm._self._c || _h;\n return _c(\"div\", { staticClass: \"splitpanes__pane\", style: _vm.style, on: { \"click\": function($event) {\n return _vm.onPaneClick($event, _vm._uid);\n } } }, [_vm._t(\"default\")], 2);\n};\nvar staticRenderFns = [];\nconst __vue2_script = {\n name: \"pane\",\n inject: [\"requestUpdate\", \"onPaneAdd\", \"onPaneRemove\", \"onPaneClick\"],\n props: {\n size: { type: [Number, String], default: null },\n minSize: { type: [Number, String], default: 0 },\n maxSize: { type: [Number, String], default: 100 }\n },\n data: () => ({\n style: {}\n }),\n mounted() {\n this.onPaneAdd(this);\n },\n beforeDestroy() {\n this.onPaneRemove(this);\n },\n methods: {\n update(style) {\n this.style = style;\n }\n },\n computed: {\n sizeNumber() {\n return this.size || this.size === 0 ? parseFloat(this.size) : null;\n },\n minSizeNumber() {\n return parseFloat(this.minSize);\n },\n maxSizeNumber() {\n return parseFloat(this.maxSize);\n }\n },\n watch: {\n sizeNumber(size) {\n this.requestUpdate({ target: this, size });\n },\n minSizeNumber(min) {\n this.requestUpdate({ target: this, min });\n },\n maxSizeNumber(max) {\n this.requestUpdate({ target: this, max });\n }\n }\n};\nconst __cssModules = {};\nvar __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render, staticRenderFns, false, __vue2_injectStyles, null, null, null);\nfunction __vue2_injectStyles(context) {\n for (let o in __cssModules) {\n this[o] = __cssModules[o];\n }\n}\nvar pane = /* @__PURE__ */ function() {\n return __component__.exports;\n}();\nexport { pane as Pane, splitpanes as Splitpanes };\n","import \"../assets/index-4271da53.css\";\nimport l from \"./NcButton.mjs\";\nimport { t as p } from \"../chunks/l10n-b6d21146.mjs\";\nimport \"../Directives/Tooltip.mjs\";\nimport { emit as n } from \"@nextcloud/event-bus\";\nimport { A as r } from \"../chunks/ArrowRight-74a9fcb2.mjs\";\nimport { n as o } from \"../chunks/_plugin-vue2_normalizer-71e2aa87.mjs\";\nimport { VTooltip as c } from \"floating-vue\";\nimport u from \"../Mixins/isMobile.mjs\";\nimport { getBuilder as h } from \"@nextcloud/browser-storage\";\nimport { useSwipe as f } from \"@vueuse/core\";\nimport { Pane as g, Splitpanes as d } from \"splitpanes\";\nimport \"splitpanes/dist/splitpanes.css\";\nconst m = {\n name: \"NcAppDetailsToggle\",\n directives: {\n tooltip: c\n },\n components: {\n NcButton: l,\n ArrowRight: r\n },\n computed: {\n title() {\n return p(\"Go back to the list\");\n }\n },\n beforeMount() {\n this.toggleAppNavigationButton(!0);\n },\n beforeDestroy() {\n this.toggleAppNavigationButton(!1);\n },\n methods: {\n toggleAppNavigationButton(e = !0) {\n const t = document.querySelector(\".app-navigation .app-navigation-toggle\");\n t && (t.style.display = e ? \"none\" : null, e === !0 && n(\"toggle-navigation\", { open: !1 }));\n }\n }\n};\nvar _ = function() {\n var t = this, i = t._self._c;\n return i(\"NcButton\", { directives: [{ name: \"tooltip\", rawName: \"v-tooltip\", value: t.title, expression: \"title\" }], staticClass: \"app-details-toggle\", attrs: { \"aria-label\": t.title }, scopedSlots: t._u([{ key: \"icon\", fn: function() {\n return [i(\"ArrowRight\", { attrs: { size: 20 } })];\n }, proxy: !0 }]) });\n}, z = [], S = /* @__PURE__ */ o(\n m,\n _,\n z,\n !1,\n null,\n \"5244e83e\",\n null,\n null\n);\nconst v = S.exports;\nconst a = h(\"nextcloud\").persist().build(), w = {\n name: \"NcAppContent\",\n components: {\n NcAppDetailsToggle: v,\n Pane: g,\n Splitpanes: d\n },\n mixins: [u],\n props: {\n /**\n * Allows to disable the control by swipe of the app navigation open state\n */\n allowSwipeNavigation: {\n type: Boolean,\n default: !0\n },\n /**\n * Allows you to set the default width of the resizable list in %\n * Must be between listMinWidth and listMaxWidth\n */\n listSize: {\n type: Number,\n default: 20\n },\n /**\n * Allows you to set the minimum width of the list column in %\n */\n listMinWidth: {\n type: Number,\n default: 15\n },\n /**\n * Allows you to set the maximum width of the list column in %\n */\n listMaxWidth: {\n type: Number,\n default: 40\n },\n /**\n * Specify the config key for the pane config sizes\n * Default is the global var appName if you use the webpack-vue-config\n */\n paneConfigKey: {\n type: String,\n default: \"\"\n },\n /**\n * When in mobile view, only the list or the details are shown\n * If you provide a list, you need to provide a variable\n * that will be set to true by the user when an element of\n * the list gets selected. The details will then show a back\n * arrow to return to the list that will update this prop to false.\n */\n showDetails: {\n type: Boolean,\n default: !0\n },\n /**\n * Specify the `

` page heading\n */\n pageHeading: {\n type: String,\n default: null\n }\n },\n emits: [\n \"update:showDetails\",\n \"resize:list\"\n ],\n data() {\n return {\n contentHeight: 0,\n hasList: !1,\n swiping: {},\n listPaneSize: this.restorePaneConfig()\n };\n },\n computed: {\n paneConfigID() {\n if (this.paneConfigKey !== \"\")\n return `pane-list-size-${this.paneConfigKey}`;\n try {\n return `pane-list-size-${appName}`;\n } catch {\n return console.info(\"[INFO] AppContent:\", \"falling back to global nextcloud pane config\"), \"pane-list-size-nextcloud\";\n }\n },\n detailsPaneSize() {\n return this.listPaneSize ? 100 - this.listPaneSize : this.paneDefaults.details.size;\n },\n paneDefaults() {\n return {\n list: {\n size: this.listSize,\n min: this.listMinWidth,\n max: this.listMaxWidth\n },\n // set the inverse values of the details column\n // based on the provided (or default) values of the list column\n details: {\n size: 100 - this.listSize,\n min: 100 - this.listMaxWidth,\n max: 100 - this.listMinWidth\n }\n };\n }\n },\n updated() {\n this.checkListSlot();\n },\n mounted() {\n this.allowSwipeNavigation && (this.swiping = f(this.$el, {\n onSwipeEnd: this.handleSwipe\n })), this.checkListSlot(), this.restorePaneConfig();\n },\n methods: {\n /**\n * handle the swipe event\n *\n * @param {TouchEvent} e The touch event\n * @param {import('@vueuse/core').SwipeDirection} direction The swipe direction of the event\n */\n handleSwipe(e, t) {\n Math.abs(this.swiping.lengthX) > 70 && (this.swiping.coordsStart.x < 300 / 2 && t === \"right\" ? n(\"toggle-navigation\", {\n open: !0\n }) : this.swiping.coordsStart.x < 300 * 1.5 && t === \"left\" && n(\"toggle-navigation\", {\n open: !1\n }));\n },\n handlePaneResize(e) {\n const t = parseInt(e[0].size, 10);\n a.setItem(this.paneConfigID, JSON.stringify(t)), this.listPaneSize = t, this.$emit(\"resize:list\", { size: t }), console.debug(\"AppContent pane config\", t);\n },\n // $slots is not reactive, we need to update this manually\n checkListSlot() {\n const e = !!this.$slots.list;\n this.hasList !== e && (this.hasList = e);\n },\n // browserStorage is not reactive, we need to update this manually\n restorePaneConfig() {\n const e = parseInt(a.getItem(this.paneConfigID), 10);\n if (!isNaN(e) && e !== this.listPaneSize)\n return console.debug(\"AppContent pane config\", e), this.listPaneSize = e, e;\n },\n /**\n * The user clicked the back arrow from the details view\n */\n hideDetails() {\n this.$emit(\"update:showDetails\", !1);\n }\n }\n};\nvar y = function() {\n var t = this, i = t._self._c;\n return i(\"main\", { staticClass: \"app-content no-snapper\", class: { \"app-content--has-list\": t.hasList }, attrs: { id: \"app-content-vue\" } }, [t.pageHeading ? i(\"h1\", { staticClass: \"hidden-visually\" }, [t._v(\" \" + t._s(t.pageHeading) + \" \")]) : t._e(), t.hasList ? [t.isMobile ? i(\"div\", { staticClass: \"app-content-wrapper app-content-wrapper--mobile\", class: t.showDetails ? \"app-content-wrapper--show-details\" : \"app-content-wrapper--show-list\" }, [t.hasList && t.showDetails ? i(\"NcAppDetailsToggle\", { nativeOn: { click: function(s) {\n return s.stopPropagation(), s.preventDefault(), t.hideDetails.apply(null, arguments);\n } } }) : t._e(), t._t(\"list\"), t._t(\"default\")], 2) : i(\"div\", { staticClass: \"app-content-wrapper\" }, [i(\"Splitpanes\", { staticClass: \"default-theme\", on: { resized: t.handlePaneResize } }, [i(\"Pane\", { staticClass: \"splitpanes__pane-list\", attrs: { size: t.listPaneSize || t.paneDefaults.list.size, \"min-size\": t.paneDefaults.list.min, \"max-size\": t.paneDefaults.list.max } }, [t._t(\"list\")], 2), i(\"Pane\", { staticClass: \"splitpanes__pane-details\", attrs: { size: t.detailsPaneSize, \"min-size\": t.paneDefaults.details.min, \"max-size\": t.paneDefaults.details.max } }, [t._t(\"default\")], 2)], 1)], 1)] : t._t(\"default\")], 2);\n}, C = [], N = /* @__PURE__ */ o(\n w,\n y,\n C,\n !1,\n null,\n \"424ef3d1\",\n null,\n null\n);\nconst W = N.exports;\nexport {\n W as default\n};\n","import \"../assets/index-57b305d3.css\";\nimport n from \"vue\";\nimport a from \"dompurify\";\nimport { n as s } from \"../chunks/_plugin-vue2_normalizer-71e2aa87.mjs\";\nconst i = {\n name: \"NcIconSvgWrapper\",\n props: {\n /**\n * Raw SVG string to render\n */\n svg: {\n type: String,\n default: \"\"\n },\n /**\n * Label of the icon, used in aria-label\n */\n name: {\n type: String,\n default: \"\"\n },\n /**\n * Raw SVG path to render. Takes precedence over the SVG string in the `svg` prop.\n */\n path: {\n type: String,\n default: \"\"\n }\n },\n computed: {\n cleanSvg() {\n if (!this.svg || this.path)\n return;\n const r = a.sanitize(this.svg), e = new DOMParser().parseFromString(r, \"image/svg+xml\");\n return e.querySelector(\"parsererror\") ? (n.util.warn(\"SVG is not valid\"), \"\") : (e.documentElement.id && e.documentElement.removeAttribute(\"id\"), e.documentElement.outerHTML);\n },\n attributes() {\n return {\n class: \"icon-vue\",\n role: \"img\",\n \"aria-hidden\": this.name ? void 0 : !0,\n \"aria-label\": this.name || void 0\n };\n }\n }\n};\nvar o = function() {\n var e = this, t = e._self._c;\n return e.cleanSvg ? t(\"span\", e._b({ domProps: { innerHTML: e._s(e.cleanSvg) } }, \"span\", e.attributes, !1)) : t(\"span\", e._b({}, \"span\", e.attributes, !1), [t(\"svg\", { attrs: { viewBox: \"0 0 24 24\", xmlns: \"http://www.w3.org/2000/svg\" } }, [t(\"path\", { attrs: { d: e.path } })])]);\n}, p = [], u = /* @__PURE__ */ s(\n i,\n o,\n p,\n !1,\n null,\n \"6176f396\",\n null,\n null\n);\nconst v = u.exports;\nexport {\n v as default\n};\n","import \"../assets/index-c239a2fc.css\";\nimport { n as s } from \"../chunks/_plugin-vue2_normalizer-71e2aa87.mjs\";\nconst i = {\n name: \"NcEmptyContent\",\n props: {\n /**\n * A header message about an empty content shown\n * @example 'No comments'\n */\n name: {\n type: String,\n default: \"\"\n },\n /**\n * Desription of the empty content\n * @example 'No comments yet, start the conversation!'\n */\n description: {\n type: String,\n default: \"\"\n }\n },\n computed: {\n hasName() {\n return this.name !== \"\";\n },\n /**\n * Check if a description is given as either property or slot\n */\n hasDescription() {\n var e;\n return this.description !== \"\" || ((e = this.$slots.description) == null ? void 0 : e[0]);\n }\n }\n};\nvar o = function() {\n var t = this, n = t._self._c;\n return n(\"div\", { staticClass: \"empty-content\", attrs: { role: \"note\" } }, [t.$slots.icon ? n(\"div\", { staticClass: \"empty-content__icon\", attrs: { \"aria-hidden\": \"true\" } }, [t._t(\"icon\")], 2) : t._e(), t._t(\"name\", function() {\n return [t.hasName ? n(\"span\", { staticClass: \"empty-content__name\" }, [t._v(\" \" + t._s(t.name) + \" \")]) : t._e()];\n }), t.hasDescription ? n(\"p\", { staticClass: \"empty-content__description\" }, [t._t(\"description\", function() {\n return [t._v(\" \" + t._s(t.description) + \" \")];\n })], 2) : t._e(), t.$slots.action ? n(\"div\", { staticClass: \"empty-content__action\" }, [t._t(\"action\")], 2) : t._e()], 2);\n}, a = [], _ = /* @__PURE__ */ s(\n i,\n o,\n a,\n !1,\n null,\n \"458108e7\",\n null,\n null\n);\nconst p = _.exports;\nexport {\n p as default\n};\n","/**\n * @copyright Copyright (c) 2021 Louis Chemineau \n *\n * @author Louis Chemineau \n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see .\n *\n */\n\nimport type { IPreview, IRawActivity, IRichObject } from './types'\nimport moment from '@nextcloud/moment'\n\nexport default class ActivityModel {\n\n\t_activity: IRawActivity\n\n\t/**\n\t * Create the activity object\n\t *\n\t * @param {IRawActivity} rawActivity the activity object from the ocs response\n\t */\n\tconstructor(rawActivity: IRawActivity) {\n\t\tif (typeof rawActivity !== 'object') {\n\t\t\tthrow new Error('Received activity data is not an object.')\n\t\t}\n\n\t\t// Sanity checks\n\t\tif (typeof rawActivity.activity_id !== 'number') {\n\t\t\tthrow new Error('The activity_id argument is not a valid string')\n\t\t}\n\t\tif (typeof rawActivity.type !== 'string' || rawActivity.type.trim() === '') {\n\t\t\tthrow new Error('The activity_id argument is not a valid string')\n\t\t}\n\t\tif (typeof rawActivity.subject !== 'string' || rawActivity.subject.trim() === '') {\n\t\t\tthrow new Error('The activity_id argument is not a valid string')\n\t\t}\n\t\tif (typeof rawActivity.icon !== 'string' || rawActivity.icon.trim() === '') {\n\t\t\tthrow new Error('The activity_id argument is not a valid string')\n\t\t}\n\t\tif (typeof rawActivity.datetime !== 'string' || rawActivity.datetime.trim() === '') {\n\t\t\tthrow new Error('The activity_id argument is not a valid string')\n\t\t}\n\n\t\t// store state\n\t\tthis._activity = rawActivity\n\t}\n\n\t/**\n\t * get the activity id\n\t *\n\t * @return {number}\n\t * @readonly\n\t * @memberof ActivityModel\n\t */\n\tget id(): number {\n\t\treturn this._activity.activity_id\n\t}\n\n\t/**\n\t * Get the app causing the activity\n\t *\n\t * @return {string}\n\t * @readonly\n\t * @memberof ActivityModel\n\t */\n\tget app(): string {\n\t\treturn this._activity.app\n\t}\n\n\t/**\n\t * Get the activity type\n\t *\n\t * @return {string}\n\t * @readonly\n\t * @memberof ActivityModel\n\t */\n\tget type(): string {\n\t\treturn this._activity.type\n\t}\n\n\t/**\n\t * Get the user ID of the user causing the activity or affected by the activity\n\t *\n\t * @return {string}\n\t * @readonly\n\t * @memberof ActivityModel\n\t */\n\tget user(): string {\n\t\treturn this._activity.user\n\t}\n\n\t/**\n\t * Get the activity subject\n\t *\n\t * @return {string}\n\t * @readonly\n\t * @memberof ActivityModel\n\t */\n\tget subject(): string {\n\t\treturn this._activity.subject\n\t}\n\n\t/**\n\t * Get the activity subject_rich template\n\t *\n\t * @return {string}\n\t * @readonly\n\t * @memberof ActivityModel\n\t */\n\tget subjectRichTemplate(): string {\n\t\treturn this._activity.subject_rich[0]\n\t}\n\n\t/**\n\t * Get the activity subject_rich objects\n\t *\n\t * @return {Record}\n\t * @readonly\n\t * @memberof ActivityModel\n\t */\n\tget subjectRichObjects(): Record {\n\t\tif (Array.isArray(this._activity.subject_rich[1])) {\n\t\t\treturn {}\n\t\t}\n\n\t\treturn this._activity.subject_rich[1] as Record\n\t}\n\n\t/**\n\t * Get the activity message\n\t *\n\t * @return {string}\n\t * @readonly\n\t * @memberof ActivityModel\n\t */\n\tget message(): string {\n\t\treturn this._activity.message\n\t}\n\n\t/**\n\t * Get the activity message_rich template\n\t *\n\t * @return {string}\n\t * @readonly\n\t * @memberof ActivityModel\n\t */\n\tget messageRichTemplate(): string {\n\t\treturn this._activity.message_rich[0]\n\t}\n\n\t/**\n\t * Get the activity message_rich objects\n\t *\n\t * @return {Record}\n\t * @readonly\n\t * @memberof ActivityModel\n\t */\n\tget messageRichObjects(): Record {\n\t\tif (!Array.isArray(this._activity.message_rich[1])) {\n\t\t\treturn {}\n\t\t}\n\n\t\treturn this._activity.message_rich[1] as Record\n\t}\n\n\t/**\n\t * Get the object_type\n\t *\n\t * @return {string}\n\t * @readonly\n\t * @memberof ActivityModel\n\t */\n\tget objectType(): string {\n\t\treturn this._activity.object_type\n\t}\n\n\t/**\n\t * Get the activity object_id\n\t *\n\t * @return {number}\n\t * @readonly\n\t * @memberof ActivityModel\n\t */\n\tget objectId(): number {\n\t\treturn this._activity.object_id\n\t}\n\n\t/**\n\t * Get the activity object_name\n\t *\n\t * @return {string}\n\t * @readonly\n\t * @memberof ActivityModel\n\t */\n\tget objectName(): string {\n\t\treturn this._activity.object_name\n\t}\n\n\t/**\n\t * Get the activity link\n\t *\n\t * @return {string}\n\t * @readonly\n\t * @memberof ActivityModel\n\t */\n\tget link(): string {\n\t\treturn this._activity.link\n\t}\n\n\t/**\n\t * Get the activity icon\n\t *\n\t * @return {string}\n\t * @readonly\n\t * @memberof ActivityModel\n\t */\n\tget icon(): string {\n\t\treturn this._activity.icon\n\t}\n\n\t/**\n\t * Get the activity datetime\n\t *\n\t * @return {string}\n\t * @readonly\n\t * @memberof ActivityModel\n\t */\n\tget datetime(): string {\n\t\treturn this._activity.datetime\n\t}\n\n\t/**\n\t * Get the activity formatted date from the current date\n\t *\n\t * @return {string}\n\t * @readonly\n\t * @memberof ActivityModel\n\t */\n\tget dateFromNow(): string {\n\t\treturn moment(this._activity.datetime).fromNow()\n\t}\n\n\t/**\n\t * Get the activity formatted datetime\n\t *\n\t * @return {string}\n\t * @readonly\n\t * @memberof ActivityModel\n\t */\n\tget formattedDate(): string {\n\t\treturn moment(this._activity.datetime).format('LLL')\n\t}\n\n\t/**\n\t * Get the activity timestamp\n\t *\n\t * @return {number}\n\t * @readonly\n\t * @memberof ActivityModel\n\t */\n\tget timestamp(): number {\n\t\treturn moment(this._activity.datetime).unix()\n\t}\n\n\t/**\n\t * Get previews of affected files\n\t */\n\tget previews(): IPreview[] {\n\t\treturn this._activity.previews ?? []\n\t}\n\n}\n","/*!\n* tabbable 6.2.0\n* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE\n*/\n// NOTE: separate `:not()` selectors has broader browser support than the newer\n// `:not([inert], [inert] *)` (Feb 2023)\n// CAREFUL: JSDom does not support `:not([inert] *)` as a selector; using it causes\n// the entire query to fail, resulting in no nodes found, which will break a lot\n// of things... so we have to rely on JS to identify nodes inside an inert container\nvar candidateSelectors = ['input:not([inert])', 'select:not([inert])', 'textarea:not([inert])', 'a[href]:not([inert])', 'button:not([inert])', '[tabindex]:not(slot):not([inert])', 'audio[controls]:not([inert])', 'video[controls]:not([inert])', '[contenteditable]:not([contenteditable=\"false\"]):not([inert])', 'details>summary:first-of-type:not([inert])', 'details:not([inert])'];\nvar candidateSelector = /* #__PURE__ */candidateSelectors.join(',');\nvar NoElement = typeof Element === 'undefined';\nvar matches = NoElement ? function () {} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;\nvar getRootNode = !NoElement && Element.prototype.getRootNode ? function (element) {\n var _element$getRootNode;\n return element === null || element === void 0 ? void 0 : (_element$getRootNode = element.getRootNode) === null || _element$getRootNode === void 0 ? void 0 : _element$getRootNode.call(element);\n} : function (element) {\n return element === null || element === void 0 ? void 0 : element.ownerDocument;\n};\n\n/**\n * Determines if a node is inert or in an inert ancestor.\n * @param {Element} [node]\n * @param {boolean} [lookUp] If true and `node` is not inert, looks up at ancestors to\n * see if any of them are inert. If false, only `node` itself is considered.\n * @returns {boolean} True if inert itself or by way of being in an inert ancestor.\n * False if `node` is falsy.\n */\nvar isInert = function isInert(node, lookUp) {\n var _node$getAttribute;\n if (lookUp === void 0) {\n lookUp = true;\n }\n // CAREFUL: JSDom does not support inert at all, so we can't use the `HTMLElement.inert`\n // JS API property; we have to check the attribute, which can either be empty or 'true';\n // if it's `null` (not specified) or 'false', it's an active element\n var inertAtt = node === null || node === void 0 ? void 0 : (_node$getAttribute = node.getAttribute) === null || _node$getAttribute === void 0 ? void 0 : _node$getAttribute.call(node, 'inert');\n var inert = inertAtt === '' || inertAtt === 'true';\n\n // NOTE: this could also be handled with `node.matches('[inert], :is([inert] *)')`\n // if it weren't for `matches()` not being a function on shadow roots; the following\n // code works for any kind of node\n // CAREFUL: JSDom does not appear to support certain selectors like `:not([inert] *)`\n // so it likely would not support `:is([inert] *)` either...\n var result = inert || lookUp && node && isInert(node.parentNode); // recursive\n\n return result;\n};\n\n/**\n * Determines if a node's content is editable.\n * @param {Element} [node]\n * @returns True if it's content-editable; false if it's not or `node` is falsy.\n */\nvar isContentEditable = function isContentEditable(node) {\n var _node$getAttribute2;\n // CAREFUL: JSDom does not support the `HTMLElement.isContentEditable` API so we have\n // to use the attribute directly to check for this, which can either be empty or 'true';\n // if it's `null` (not specified) or 'false', it's a non-editable element\n var attValue = node === null || node === void 0 ? void 0 : (_node$getAttribute2 = node.getAttribute) === null || _node$getAttribute2 === void 0 ? void 0 : _node$getAttribute2.call(node, 'contenteditable');\n return attValue === '' || attValue === 'true';\n};\n\n/**\n * @param {Element} el container to check in\n * @param {boolean} includeContainer add container to check\n * @param {(node: Element) => boolean} filter filter candidates\n * @returns {Element[]}\n */\nvar getCandidates = function getCandidates(el, includeContainer, filter) {\n // even if `includeContainer=false`, we still have to check it for inertness because\n // if it's inert, all its children are inert\n if (isInert(el)) {\n return [];\n }\n var candidates = Array.prototype.slice.apply(el.querySelectorAll(candidateSelector));\n if (includeContainer && matches.call(el, candidateSelector)) {\n candidates.unshift(el);\n }\n candidates = candidates.filter(filter);\n return candidates;\n};\n\n/**\n * @callback GetShadowRoot\n * @param {Element} element to check for shadow root\n * @returns {ShadowRoot|boolean} ShadowRoot if available or boolean indicating if a shadowRoot is attached but not available.\n */\n\n/**\n * @callback ShadowRootFilter\n * @param {Element} shadowHostNode the element which contains shadow content\n * @returns {boolean} true if a shadow root could potentially contain valid candidates.\n */\n\n/**\n * @typedef {Object} CandidateScope\n * @property {Element} scopeParent contains inner candidates\n * @property {Element[]} candidates list of candidates found in the scope parent\n */\n\n/**\n * @typedef {Object} IterativeOptions\n * @property {GetShadowRoot|boolean} getShadowRoot true if shadow support is enabled; falsy if not;\n * if a function, implies shadow support is enabled and either returns the shadow root of an element\n * or a boolean stating if it has an undisclosed shadow root\n * @property {(node: Element) => boolean} filter filter candidates\n * @property {boolean} flatten if true then result will flatten any CandidateScope into the returned list\n * @property {ShadowRootFilter} shadowRootFilter filter shadow roots;\n */\n\n/**\n * @param {Element[]} elements list of element containers to match candidates from\n * @param {boolean} includeContainer add container list to check\n * @param {IterativeOptions} options\n * @returns {Array.}\n */\nvar getCandidatesIteratively = function getCandidatesIteratively(elements, includeContainer, options) {\n var candidates = [];\n var elementsToCheck = Array.from(elements);\n while (elementsToCheck.length) {\n var element = elementsToCheck.shift();\n if (isInert(element, false)) {\n // no need to look up since we're drilling down\n // anything inside this container will also be inert\n continue;\n }\n if (element.tagName === 'SLOT') {\n // add shadow dom slot scope (slot itself cannot be focusable)\n var assigned = element.assignedElements();\n var content = assigned.length ? assigned : element.children;\n var nestedCandidates = getCandidatesIteratively(content, true, options);\n if (options.flatten) {\n candidates.push.apply(candidates, nestedCandidates);\n } else {\n candidates.push({\n scopeParent: element,\n candidates: nestedCandidates\n });\n }\n } else {\n // check candidate element\n var validCandidate = matches.call(element, candidateSelector);\n if (validCandidate && options.filter(element) && (includeContainer || !elements.includes(element))) {\n candidates.push(element);\n }\n\n // iterate over shadow content if possible\n var shadowRoot = element.shadowRoot ||\n // check for an undisclosed shadow\n typeof options.getShadowRoot === 'function' && options.getShadowRoot(element);\n\n // no inert look up because we're already drilling down and checking for inertness\n // on the way down, so all containers to this root node should have already been\n // vetted as non-inert\n var validShadowRoot = !isInert(shadowRoot, false) && (!options.shadowRootFilter || options.shadowRootFilter(element));\n if (shadowRoot && validShadowRoot) {\n // add shadow dom scope IIF a shadow root node was given; otherwise, an undisclosed\n // shadow exists, so look at light dom children as fallback BUT create a scope for any\n // child candidates found because they're likely slotted elements (elements that are\n // children of the web component element (which has the shadow), in the light dom, but\n // slotted somewhere _inside_ the undisclosed shadow) -- the scope is created below,\n // _after_ we return from this recursive call\n var _nestedCandidates = getCandidatesIteratively(shadowRoot === true ? element.children : shadowRoot.children, true, options);\n if (options.flatten) {\n candidates.push.apply(candidates, _nestedCandidates);\n } else {\n candidates.push({\n scopeParent: element,\n candidates: _nestedCandidates\n });\n }\n } else {\n // there's not shadow so just dig into the element's (light dom) children\n // __without__ giving the element special scope treatment\n elementsToCheck.unshift.apply(elementsToCheck, element.children);\n }\n }\n }\n return candidates;\n};\n\n/**\n * @private\n * Determines if the node has an explicitly specified `tabindex` attribute.\n * @param {HTMLElement} node\n * @returns {boolean} True if so; false if not.\n */\nvar hasTabIndex = function hasTabIndex(node) {\n return !isNaN(parseInt(node.getAttribute('tabindex'), 10));\n};\n\n/**\n * Determine the tab index of a given node.\n * @param {HTMLElement} node\n * @returns {number} Tab order (negative, 0, or positive number).\n * @throws {Error} If `node` is falsy.\n */\nvar getTabIndex = function getTabIndex(node) {\n if (!node) {\n throw new Error('No node provided');\n }\n if (node.tabIndex < 0) {\n // in Chrome,
,