From d73a321dda85514b38aac614467b3fa3302cd551 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20de=20la=20Pen=CC=83a?= Date: Mon, 5 Oct 2026 20:06:43 +0100 Subject: [PATCH] fix: keep sortable table rows from collapsing while dragging A dragged table row was leaving a one-line hole because row height is ignored on the placeholder, and the preview collapsed once the clone left the table. --- assets/css/admin.plugins.min.css | 2 +- assets/js/admin.plugins.min.js | 2 +- assets/js/components/Sortable.js | 120 ++++++++++++++++++++---- assets/sass/admin-plugins/Sortable.scss | 30 ++++++ 4 files changed, 132 insertions(+), 22 deletions(-) diff --git a/assets/css/admin.plugins.min.css b/assets/css/admin.plugins.min.css index d021c9e3..b5f19114 100644 --- a/assets/css/admin.plugins.min.css +++ b/assets/css/admin.plugins.min.css @@ -1 +1 @@ -div.field span.input>small.char-count{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0, 0, 0, 0)}div.field .char-count-wrap{position:relative;z-index:0;display:block;width:100%}div.field .char-count-wrap .field-input{transition:padding-bottom .22s ease}div.field .char-count-wrap small.char-count{position:absolute;left:1px;right:1px;bottom:1px;z-index:1;display:flex;align-items:center;justify-content:flex-start;height:1.25rem;margin:0;padding:0 6px;pointer-events:none;visibility:hidden;opacity:0;transition:opacity .22s ease,color .15s ease,background-color .15s ease,box-shadow .15s ease,visibility 0s linear .22s;font-size:.6875rem;font-variant-numeric:tabular-nums;line-height:1;letter-spacing:.02em;color:#6c757d;background:rgba(0,0,0,0);border-radius:0 0 .3rem .3rem}div.field .char-count-wrap:focus-within .field-input{padding-bottom:1.375rem}div.field .char-count-wrap:focus-within small.char-count{visibility:visible;opacity:1;transition:opacity .22s ease,color .15s ease,background-color .15s ease,box-shadow .15s ease,visibility 0s linear 0s}div.field.readonly:has(.char-count-wrap) .input:before{content:none}div.field.readonly .char-count-wrap:before{font-family:"Font Awesome 6 Free";font-weight:900;content:"\f023";display:flex;align-items:center;justify-content:center;position:absolute;left:0;top:0;z-index:2;width:1.75rem;height:100%;color:#aaa;pointer-events:none;line-height:1;transition:height .22s ease}div.field.readonly .char-count-wrap:focus-within:before{height:calc(100% - 1.375rem + 8px)}div.field.max-length-exceeded .char-count-wrap .field-input{padding-bottom:1.375rem}div.field.max-length-exceeded .char-count-wrap small.char-count{visibility:visible;opacity:1;transition:opacity .22s ease,color .15s ease,background-color .15s ease,box-shadow .15s ease,visibility 0s linear 0s;color:#b52130;background:#fce8ea;box-shadow:inset 0 1px 0 #f0c4c8}div.field.max-length-exceeded.readonly .char-count-wrap:before{height:calc(100% - 1.375rem + 8px)}@media(prefers-reduced-motion: reduce){div.field .char-count-wrap .field-input,div.field .char-count-wrap small.char-count,div.field.readonly .char-count-wrap:before{transition:none}}div.field.timezone-aware span.input{overflow:visible}div.field.timezone-aware span.input>small.timezone-channel{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0, 0, 0, 0)}div.field.timezone-aware .timezone-channel-wrap{position:relative;z-index:0;display:block;width:100%;overflow:visible}div.field.timezone-aware .timezone-channel-wrap .field-input{padding-bottom:1.2rem;box-sizing:border-box}div.field.timezone-aware .timezone-channel-wrap small.timezone-channel{position:absolute;left:1px;right:1px;bottom:1px;z-index:3;display:block;height:1.2rem;line-height:1.2rem;margin:0;padding:0 6px;overflow:visible;font-size:.6875rem;letter-spacing:.02em;color:#6c757d;background:rgba(0,0,0,0);white-space:nowrap}div.field.timezone-aware .timezone-channel-wrap small.timezone-channel a{color:inherit;text-decoration:underline;text-underline-offset:.12em}#ui-datepicker-div{max-width:calc(100vw - 1rem)}.ui-datepicker .ui-datepicker-timezones{margin:0 .65rem .65rem;padding:.65rem 0 0;border-top:1px solid #e9ebee;font-family:inherit;font-size:.75rem;color:#2b2f32}.ui-datepicker-timezone-list{display:flex;flex-direction:column;gap:.35rem;margin-bottom:.5rem}.ui-datepicker-timezone{display:grid;grid-template-columns:minmax(0, 1fr) auto auto;align-items:center;gap:.4rem;min-height:1.4rem}.ui-datepicker-timezone__label{overflow:hidden;color:#6c757d;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.ui-datepicker-timezone__value{font-variant-numeric:tabular-nums;white-space:nowrap}.ui-datepicker-timezone__remove{display:inline-flex;align-items:center;justify-content:center;width:1.25rem;height:1.25rem;padding:0;border:0;border-radius:.25rem;background:rgba(0,0,0,0);color:#6c757d;font-size:1rem;line-height:1;cursor:pointer}.ui-datepicker-timezone__remove:hover,.ui-datepicker-timezone__remove:focus{background:#e9ebee;color:#2b2f32;outline:none}.ui-datepicker-timezone__empty{margin:0 0 .5rem;color:#6c757d;line-height:1.35}.ui-datepicker-timezone-add{display:block;margin:0}.ui-datepicker-timezone-add .select2-container{display:block;width:100% !important}.ui-datepicker-timezone-add .select2-choice{height:1.85rem;line-height:1.75rem;font-size:.75rem;border-color:#c4c8cb;border-radius:.25rem;background:#fff;color:#2b2f32}.ui-datepicker-timezone-add .select2-choice .select2-arrow{width:1.5rem;background:rgba(0,0,0,0);border-left:0}.ui-datepicker-timezone-add select{display:block;width:100%;margin:0;padding:.25rem .4rem;border:1px solid #c4c8cb;border-radius:.25rem;background:#fff;color:#2b2f32;font-size:.75rem}.select2-drop.ui-datepicker-timezone-select2-drop{z-index:10020;font-size:.75rem;max-width:calc(100vw - 1rem)}.dashboard-widgets__empty,.dashboard-widgets__grid,.dashboard-widgets__add{width:100%}.dashboard-widgets__empty,.dashboard-widgets__add{width:100%;text-align:center}.dashboard-widgets__empty{height:400px;padding-top:150px;font-size:2em;background-image:url(../img/dashboard/empty.png);background-position:top center;background-size:100% 100%;color:#787878}.dashboard-widgets__empty .fa{margin-right:1rem;opacity:.5;top:1px;position:relative}.dashboard-widgets__empty small{display:block;font-size:1rem;max-width:400px;margin:2em auto}.dashboard-widgets__add{border:1px dashed #ccc;cursor:pointer;padding:1em;background-color:#f2f2f2;color:#787878}.dashboard-widgets__add__cards{display:flex;flex-wrap:wrap;margin-left:-0.5rem;padding:0;right:-0.5rem}.dashboard-widgets__add__cards>li{flex:0 0 100%;padding:.5rem;padding-bottom:0;margin-bottom:0}.dashboard-widgets__add__cards>li:nth-child(n){padding-right:0}@media only screen and (min-width: 376px){.dashboard-widgets__add__cards>li{flex:0 0 50%}.dashboard-widgets__add__cards>li:nth-child(2n){padding-right:0}}@media only screen and (min-width: 768px){.dashboard-widgets__add__cards>li{flex:0 0 33.333%}.dashboard-widgets__add__cards>li:nth-child(3n){padding-right:0}}@media only screen and (min-width: 1224px){.dashboard-widgets__add__cards>li{flex:0 0 25%}.dashboard-widgets__add__cards>li:nth-child(4n){padding-right:0}}@media only screen and (min-width: 1824px){.dashboard-widgets__add__cards>li{flex:0 0 20%}.dashboard-widgets__add__cards>li:nth-child(5n){padding-right:0}}.dashboard-widgets__add__cards__card{border:1px solid #ccc;width:100%;padding-top:100%;cursor:pointer;background-size:cover;background-position:top center;background-image:url(../img/dashboard/widget.png);position:relative;display:inline-block}.dashboard-widgets__add__cards__card__details{background:rgba(255,255,255,.9);padding:1rem;position:absolute;bottom:0;width:100%;min-height:50%}.dashboard-widgets__add__cards__card__details p:first-child{font-weight:bold}.dashboard-widgets__add__cards__card__details p:last-child{margin-bottom:0}.dashboard-widgets__instance__padding{padding:1em}.dashboard-widgets__instance__controls{float:right;position:relative}.dashboard-widgets__instance__controls .btn{margin-left:.5rem}.dashboard-widgets .vgl-layout{margin-left:-10px;margin-right:-10px}.dashboard-widgets .vgl-item>fieldset{height:100%;overflow:hidden}.dashboard-widgets .vgl-item>fieldset>div{overflow:auto;height:100%}.dashboard-widgets .vgl-item--placeholder{background-color:#fff !important;opacity:1 !important;border:1px dashed #ccc}.modal{display:none;position:fixed;top:0;left:0;width:100%;height:100%;z-index:1000}.modal::before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.5);z-index:-1}.modal.modal--open{display:flex;align-items:center;justify-content:center}.modal__inner{position:relative;width:90%;max-width:600px;max-height:80vh;background-color:#fff;border-radius:8px;box-shadow:0 4px 12px rgba(0,0,0,.15);display:flex;flex-direction:column;overflow:hidden}.modal__close{position:absolute;top:16px;right:16px;width:24px;height:24px;display:flex;align-items:center;justify-content:center;font-size:24px;line-height:1;cursor:pointer;z-index:10}.modal__close:hover{opacity:.7}.modal__title{padding:16px 48px 16px 16px;font-weight:bold;font-size:18px;border-bottom:1px solid #d9d9d9;position:sticky;top:0;background-color:#f9f9f9;box-shadow:0 -10px 15px rgba(0,0,0,.5);z-index:5}.modal__body{padding:16px;overflow-y:auto;flex:1 1 auto;max-height:calc(80vh - 120px)}.modal__actions{padding:16px;border-top:1px solid #d9d9d9;position:sticky;bottom:0;background-color:#f9f9f9;box-shadow:0 10px 15px rgba(0,0,0,.5);z-index:5}.modal__actions:empty,.modal__actions[hidden]{display:none}.modal__actions .btn{margin-right:5px}.modal__actions .btn:last-child{margin-right:0}@keyframes admin-notes-remove-note{0%{opacity:1}100%{opacity:0}}@keyframes admin-notes-new-note{0%{opacity:0;box-shadow:0 0 0 3px rgba(66,153,225,.5);border-color:rgba(66,153,225,.7)}15%{opacity:1;box-shadow:0 0 0 3px rgba(66,153,225,.5);border-color:rgba(66,153,225,.7)}33%{box-shadow:none;border-color:#ccc}50%{box-shadow:0 0 0 3px rgba(66,153,225,.4);border-color:rgba(66,153,225,.6)}67%{box-shadow:none;border-color:#ccc}82%{box-shadow:0 0 0 3px rgba(66,153,225,.25);border-color:rgba(66,153,225,.4)}100%{box-shadow:none;border-color:#ccc}}.admin-notes__empty{padding:2rem;text-align:center;color:#aaa}.admin-notes__counter{margin-left:.4rem}.admin-notes__counter:before{content:"("}.admin-notes__counter:after{content:")"}.admin-notes__counter:empty{display:none}.admin-notes__load-more{padding-top:1rem}.admin-notes__load-more .btn{width:100%}.admin-notes__note{border:1px solid #ccc;position:relative;margin-bottom:1rem;scroll-margin-top:1rem}.admin-notes__note__message{padding:1rem}.admin-notes__note__message>*:last-child{margin-bottom:0}.admin-notes__note__delete{position:absolute;top:0px;right:0px;border:0;background:#ccc;color:#fff;font-size:.75rem !important;display:block;height:20px;width:20px;line-height:6px;text-indent:1px;text-align:center;opacity:.5;padding:0;border-bottom-left-radius:3px;transition:all .2s}.admin-notes__note__delete:hover{opacity:1;background-color:#f2dede;color:#a94442}.admin-notes__note__meta{font-size:.8em;background:#efefef;padding:.5rem}.admin-notes__note__meta__date{float:right}.admin-notes__note--new{animation:admin-notes-new-note 3.5s ease-out forwards}.admin-notes__note--removing{animation:admin-notes-remove-note .8s ease-in forwards;pointer-events:none}.admin-notes__note:last-child{margin-bottom:0}.js-admin-session--also-here:empty{display:none}.js-admin-session--also-here{position:sticky;top:5px;z-index:1;margin-bottom:1rem;padding:1rem 1.25rem;background-color:#f17000;border-color:#c85d00;color:#fff}.js-admin-session--also-here ul{margin:0;padding:0;list-style:none}.js-admin-session--also-here ul li{display:inline;margin:0;padding:0;line-height:1.5}.js-admin-session--also-here ul li:after{content:", "}.js-admin-session--also-here ul li:first-child:after{content:" "}.js-admin-session--also-here ul li:last-child:after{content:""}.js-admin-session--also-here .name{font-weight:bold}.js-admin-sortable__handle:hover{cursor:move;cursor:grab;cursor:-webkit-grab}.js-admin-sortable__handle:active{cursor:move !important;cursor:grabbing !important;cursor:-webkit-grabbing !important}ul.tabs{display:flex;flex-wrap:nowrap;gap:.15rem;align-items:flex-end;list-style:none;margin:0;padding:.25rem .5rem 0;position:sticky;top:63px;z-index:500;background:#fff;border:1px solid #e9ebee;border-bottom:0;border-radius:.5rem .5rem 0 0;box-shadow:inset 0 -2px 0 #e9ebee;min-width:0;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:thin;scroll-padding-inline:2.5rem}ul.tabs li.tab{display:block;flex:0 0 auto;margin:0}ul.tabs li.tab a{display:inline-flex;align-items:center;gap:.45rem;padding:.65rem 1rem;margin:0;border:0;background:rgba(0,0,0,0);color:#6c757d;font-size:.875rem;font-weight:600;line-height:1.2;text-decoration:none;white-space:nowrap;box-sizing:border-box;cursor:pointer;box-shadow:inset 0 -2px 0 rgba(0,0,0,0);transition:color .15s ease,box-shadow .15s ease}ul.tabs li.tab a:hover{color:#2b2f32}ul.tabs li.tab a:focus-visible{outline:2px solid rgb(var(--brand-color-highlight));outline-offset:-2px;border-radius:4px}ul.tabs li.tab a.disabled{color:#c4c8cb;cursor:default}ul.tabs li.tab a.error::after{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:#d9534f;flex-shrink:0}ul.tabs li.tab.active a{color:rgb(var(--brand-color-highlight));box-shadow:inset 0 -2px 0 currentColor}ul.tabs li.tab.active a.disabled{color:#2b2f32}section.tabs{position:relative;margin:0 0 1.1rem}section.tabs>div.tab-page{display:none;background:#fff;border:1px solid #e9ebee;border-top:0;border-radius:0 0 .5rem .5rem;padding:1.1rem;box-shadow:0 1px 2px rgba(43,47,50,.08)}section.tabs>div.tab-page>p,section.tabs>div.tab-page>.alert,section.tabs>div.tab-page>.js-admin-session--also-here,section.tabs>div.tab-page>.padded,section.tabs>div.tab-page>fieldset,section.tabs>div.tab-page>form,section.tabs>div.tab-page>ul:not(.tabs){margin:0 0 1.1rem}section.tabs>div.tab-page>p:last-child,section.tabs>div.tab-page>.alert:last-child,section.tabs>div.tab-page>.js-admin-session--also-here:last-child,section.tabs>div.tab-page>.padded:last-child,section.tabs>div.tab-page>fieldset:last-child,section.tabs>div.tab-page>form:last-child,section.tabs>div.tab-page>ul:not(.tabs):last-child{margin-bottom:0}section.tabs>div.tab-page>ul.tabs,section.tabs>div.tab-page>.tabs-scroller,section.tabs>div.tab-page>section.tabs{margin:0}section.tabs>div.tab-page>h1,section.tabs>div.tab-page>h2,section.tabs>div.tab-page>h3,section.tabs>div.tab-page>h4,section.tabs>div.tab-page>h5,section.tabs>div.tab-page>h6{background:#f4f5f7;border:none;border-bottom:1px solid #e9ebee;padding:.75rem 1.1rem;margin:-1.1rem -1.1rem 1.1rem;position:sticky;top:calc(63px + 2.75rem);z-index:499}section.tabs>div.tab-page>div.field,section.tabs>div.tab-page>div.fieldset,section.tabs>div.tab-page>table,section.tabs>div.tab-page>.form-builder{margin-left:-1.1rem;margin-right:-1.1rem}section.tabs>div.tab-page>div.field:first-child,section.tabs>div.tab-page>div.fieldset:first-child,section.tabs>div.tab-page>table:first-child,section.tabs>div.tab-page>.form-builder:first-child{margin-top:-1.1rem}section.tabs>div.tab-page>div.field:last-child,section.tabs>div.tab-page>div.fieldset:last-child,section.tabs>div.tab-page>table:last-child,section.tabs>div.tab-page>.form-builder:last-child{margin-bottom:-1.1rem}section.tabs>div.tab-page>div.field:last-child,section.tabs>div.tab-page>div.fieldset:last-child>div.field:last-child{border-bottom-left-radius:calc(0.5rem - 1px);border-bottom-right-radius:calc(0.5rem - 1px)}section.tabs>div.tab-page table{margin-top:0;margin-bottom:0}section.tabs>div.tab-page.active{display:block}ul.tabs.tabs--segmented{display:flex;flex-wrap:nowrap;width:-moz-max-content;width:max-content;max-width:100%;gap:.25rem;align-items:center;position:static;z-index:auto;background:#f4f5f7;border:1px solid #e9ebee;border-radius:999px;box-shadow:none;margin:0 0 .85rem;padding:.3rem}ul.tabs.tabs--segmented li.tab a{margin:0;padding:0 1.3rem;height:36px;border:0;border-radius:999px;color:#6c757d;font-size:.9rem;font-weight:600;box-shadow:none;transition:background-color .15s ease,color .15s ease,box-shadow .15s ease}ul.tabs.tabs--segmented li.tab a:hover{background:rgba(255,255,255,.75);color:#2b2f32}ul.tabs.tabs--segmented li.tab a:focus-visible{outline:2px solid rgb(var(--brand-color-highlight));outline-offset:-2px}ul.tabs.tabs--segmented li.tab a img{height:14px;width:auto;margin:0;vertical-align:middle}ul.tabs.tabs--segmented li.tab.active a{background:#2b2f32;color:#fff;box-shadow:0 2px 6px rgba(43,47,50,.25)}ul.tabs.tabs--segmented li.tab.active a.disabled{color:#fff}ul.tabs.tabs--segmented+section.tabs,.tabs-scroller:has(>ul.tabs.tabs--segmented)+section.tabs,section.tabs.tabs--segmented{margin-bottom:0}ul.tabs.tabs--segmented+section.tabs>div.tab-page,.tabs-scroller:has(>ul.tabs.tabs--segmented)+section.tabs>div.tab-page,section.tabs.tabs--segmented>div.tab-page{background:rgba(0,0,0,0);border:0;border-radius:0;box-shadow:none;padding:0}ul.tabs.tabs--segmented+section.tabs>div.tab-page>div.field,ul.tabs.tabs--segmented+section.tabs>div.tab-page>div.fieldset,ul.tabs.tabs--segmented+section.tabs>div.tab-page>table,ul.tabs.tabs--segmented+section.tabs>div.tab-page>.form-builder,.tabs-scroller:has(>ul.tabs.tabs--segmented)+section.tabs>div.tab-page>div.field,.tabs-scroller:has(>ul.tabs.tabs--segmented)+section.tabs>div.tab-page>div.fieldset,.tabs-scroller:has(>ul.tabs.tabs--segmented)+section.tabs>div.tab-page>table,.tabs-scroller:has(>ul.tabs.tabs--segmented)+section.tabs>div.tab-page>.form-builder,section.tabs.tabs--segmented>div.tab-page>div.field,section.tabs.tabs--segmented>div.tab-page>div.fieldset,section.tabs.tabs--segmented>div.tab-page>table,section.tabs.tabs--segmented>div.tab-page>.form-builder{margin-left:0;margin-right:0}ul.tabs.tabs--segmented+section.tabs>div.tab-page>div.field:first-child,ul.tabs.tabs--segmented+section.tabs>div.tab-page>div.fieldset:first-child,ul.tabs.tabs--segmented+section.tabs>div.tab-page>table:first-child,ul.tabs.tabs--segmented+section.tabs>div.tab-page>.form-builder:first-child,.tabs-scroller:has(>ul.tabs.tabs--segmented)+section.tabs>div.tab-page>div.field:first-child,.tabs-scroller:has(>ul.tabs.tabs--segmented)+section.tabs>div.tab-page>div.fieldset:first-child,.tabs-scroller:has(>ul.tabs.tabs--segmented)+section.tabs>div.tab-page>table:first-child,.tabs-scroller:has(>ul.tabs.tabs--segmented)+section.tabs>div.tab-page>.form-builder:first-child,section.tabs.tabs--segmented>div.tab-page>div.field:first-child,section.tabs.tabs--segmented>div.tab-page>div.fieldset:first-child,section.tabs.tabs--segmented>div.tab-page>table:first-child,section.tabs.tabs--segmented>div.tab-page>.form-builder:first-child{margin-top:0}ul.tabs.tabs--segmented+section.tabs>div.tab-page>div.field:last-child,ul.tabs.tabs--segmented+section.tabs>div.tab-page>div.fieldset:last-child,ul.tabs.tabs--segmented+section.tabs>div.tab-page>table:last-child,ul.tabs.tabs--segmented+section.tabs>div.tab-page>.form-builder:last-child,.tabs-scroller:has(>ul.tabs.tabs--segmented)+section.tabs>div.tab-page>div.field:last-child,.tabs-scroller:has(>ul.tabs.tabs--segmented)+section.tabs>div.tab-page>div.fieldset:last-child,.tabs-scroller:has(>ul.tabs.tabs--segmented)+section.tabs>div.tab-page>table:last-child,.tabs-scroller:has(>ul.tabs.tabs--segmented)+section.tabs>div.tab-page>.form-builder:last-child,section.tabs.tabs--segmented>div.tab-page>div.field:last-child,section.tabs.tabs--segmented>div.tab-page>div.fieldset:last-child,section.tabs.tabs--segmented>div.tab-page>table:last-child,section.tabs.tabs--segmented>div.tab-page>.form-builder:last-child{margin-bottom:0}ul.tabs.tabs--segmented+section.tabs>div.tab-page>div.field:last-child,ul.tabs.tabs--segmented+section.tabs>div.tab-page>div.fieldset:last-child>div.field:last-child,.tabs-scroller:has(>ul.tabs.tabs--segmented)+section.tabs>div.tab-page>div.field:last-child,.tabs-scroller:has(>ul.tabs.tabs--segmented)+section.tabs>div.tab-page>div.fieldset:last-child>div.field:last-child,section.tabs.tabs--segmented>div.tab-page>div.field:last-child,section.tabs.tabs--segmented>div.tab-page>div.fieldset:last-child>div.field:last-child{border-bottom-left-radius:0;border-bottom-right-radius:0}ul.tabs.tabs--segmented+section.tabs>div.tab-page>.padded,.tabs-scroller:has(>ul.tabs.tabs--segmented)+section.tabs>div.tab-page>.padded,section.tabs.tabs--segmented>div.tab-page>.padded{margin:.25rem 0 1rem}fieldset>ul.tabs,fieldset>.tabs-scroller{margin:0;position:static;width:100%}fieldset>ul.tabs,fieldset>.tabs-scroller>ul.tabs{border-radius:0;box-shadow:none;position:static}fieldset>section.tabs:last-child{margin-bottom:0}fieldset>section.tabs>.tab-page{border:0;margin:0;border-radius:0;box-shadow:none;padding:0}fieldset>section.tabs>.tab-page>div.field,fieldset>section.tabs>.tab-page>div.fieldset,fieldset>section.tabs>.tab-page>table,fieldset>section.tabs>.tab-page>.form-builder{margin-left:0;margin-right:0}fieldset>section.tabs>.tab-page>div.field:first-child,fieldset>section.tabs>.tab-page>div.fieldset:first-child,fieldset>section.tabs>.tab-page>table:first-child,fieldset>section.tabs>.tab-page>.form-builder:first-child{margin-top:0}fieldset>section.tabs>.tab-page>div.field:last-child,fieldset>section.tabs>.tab-page>div.fieldset:last-child,fieldset>section.tabs>.tab-page>table:last-child,fieldset>section.tabs>.tab-page>.form-builder:last-child{margin-bottom:0}fieldset>section.tabs>.tab-page>div.field:last-child,fieldset>section.tabs>.tab-page>div.fieldset:last-child>div.field:last-child{border-bottom-left-radius:0;border-bottom-right-radius:0}fieldset>section.tabs>.tab-page>form{margin:0}fieldset>section.tabs>.tab-page>form>p{margin:1.1rem}.screen-tabs{display:flex;flex-wrap:nowrap;width:-moz-max-content;width:max-content;max-width:100%;min-width:0;gap:.25rem;background:#e9ebee;border:1px solid #c4c8cb;border-radius:999px;padding:.3rem;margin:0 0 .85rem;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:thin;scroll-padding-inline:2.5rem}.screen-tabs__tab{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:inline-flex;flex:0 0 auto;align-items:center;gap:.5rem;border:0;border-radius:999px;background:rgba(0,0,0,0);padding:0 1.3rem;height:36px;font:inherit;font-size:.9rem;font-weight:650;line-height:1.2;color:#6c757d;cursor:pointer;white-space:nowrap;transition:background-color .15s ease,color .15s ease,box-shadow .15s ease}.screen-tabs__tab:hover{color:#2b2f32}.screen-tabs__tab:focus-visible{outline:2px solid rgb(var(--brand-color-highlight));outline-offset:-2px}.screen-tabs__tab.is-active{background:#2b2f32;color:#fff;box-shadow:0 2px 6px rgba(43,47,50,.25)}.screen-tabs__tab.has-error::after{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:#d9534f;flex-shrink:0}.screen-tabs__count{display:inline-block;min-width:1.5em;padding:.05rem .45rem;border-radius:999px;background:rgba(43,47,50,.12);color:inherit;font-size:.78rem;font-weight:700;line-height:1.4;text-align:center}.screen-tabs__tab.is-active .screen-tabs__count{background:rgba(255,255,255,.22)}.screen-tabs__panel{display:none}.screen-tabs__panel.is-active{display:block}.select2-hidden-accessible,.select2-offscreen{border:0 !important;clip:rect(0 0 0 0) !important;clip-path:inset(50%) !important;height:1px !important;margin:0 !important;overflow:hidden !important;padding:0 !important;position:absolute !important;width:1px !important;white-space:nowrap !important}.select2-container{display:inline-block;position:relative;vertical-align:middle;max-width:100%;box-sizing:border-box}div.field .select2-container{display:block;width:100% !important}.select2-focus-shell{position:fixed;z-index:9998;pointer-events:none;border-radius:.4rem;box-shadow:0 0 0 .25rem rgba(13,110,253,.25);background:rgba(0,0,0,0)}.select2-focus-shell[hidden]{display:none !important}.select2-container-active:not(.select2-dropdown-open) .select2-choice,.select2-container-active:not(.select2-dropdown-open) .select2-choices,.select2-container-active:not(.select2-dropdown-open) .select2-selection--single,.select2-container-active:not(.select2-dropdown-open) .select2-selection--multiple,.select2-container--focus:not(.select2-container--open) .select2-choice,.select2-container--focus:not(.select2-container--open) .select2-choices,.select2-container--focus:not(.select2-container--open) .select2-selection--single,.select2-container--focus:not(.select2-container--open) .select2-selection--multiple{border-color:#86b7fe !important;box-shadow:0 0 0 .25rem rgba(13,110,253,.25) !important;background:#fff !important;background-image:none !important}.select2-dropdown-open,.select2-container--open{z-index:10050}.select2-dropdown-open .select2-choice,.select2-dropdown-open .select2-choices,.select2-container--open .select2-selection--single,.select2-container--open .select2-selection--multiple{background:#fff !important;background-image:none !important;border-color:#86b7fe !important;box-shadow:none !important}.select2-dropdown-open:not(.select2-drop-above) .select2-choice,.select2-dropdown-open:not(.select2-drop-above) .select2-choices,.select2-container--open.select2-container--below .select2-selection--single,.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom-color:rgba(0,0,0,0) !important;border-bottom-left-radius:0 !important;border-bottom-right-radius:0 !important}.select2-dropdown-open.select2-drop-above .select2-choice,.select2-dropdown-open.select2-drop-above .select2-choices,.select2-container--open.select2-container--above .select2-selection--single,.select2-container--open.select2-container--above .select2-selection--multiple{border-top-color:rgba(0,0,0,0) !important;border-top-left-radius:0 !important;border-top-right-radius:0 !important;border-bottom-left-radius:.4rem !important;border-bottom-right-radius:.4rem !important}.select2-drop,.select2-dropdown{z-index:10051;box-sizing:border-box;margin-top:0 !important;margin-bottom:0 !important;background:#fff;border:1px solid #86b7fe;box-shadow:none !important}.select2-drop:not(.select2-drop-above),.select2-dropdown--below{border-top-width:0 !important;border-radius:0 0 .4rem .4rem}.select2-drop.select2-drop-above,.select2-dropdown--above{border-bottom-width:0 !important;border-radius:.4rem .4rem 0 0}.select2-drop-active{border-color:#86b7fe}.select2-search,.select2-search--dropdown{padding:6px 8px}.select2-search--dropdown .select2-search__field,.select2-drop .select2-input,.select2-drop input,.select2-search input,input.select2-input{border:0 !important;border-radius:0 !important;box-shadow:none !important;outline:none !important;background:rgba(0,0,0,0) !important;width:100%;padding:2px 0}.select2-search--dropdown .select2-search__field:focus,.select2-drop .select2-input:focus,.select2-drop input:focus,.select2-search input:focus,input.select2-input:focus{border:0 !important;box-shadow:none !important;outline:none !important}.select2-results__message,.select2-results .select2-searching,.select2-results .select2-ajax-error,.select2-results .select2-no-results,.select2-container--default .select2-results__option--disabled,.select2-container--default .select2-results__option[aria-disabled=true]{background:rgba(0,0,0,0) !important;color:#6c757d}div.field .select2-container--default .select2-selection--single,div.field .select2-container--default .select2-selection--multiple{border:1px solid #ccc;border-radius:.4rem;min-height:34px;box-sizing:border-box;background:#fff;box-shadow:none}div.field .select2-container--default .select2-selection--multiple{padding:6px}div.field .select2-container--default .select2-selection--multiple .select2-selection__rendered{display:flex !important;flex-wrap:wrap;align-items:center;-moz-column-gap:8px;column-gap:8px;row-gap:8px;padding:0}div.field .select2-container--default .select2-selection--multiple .select2-selection__choice{display:inline-flex;align-items:center;gap:.35rem;margin:0;padding:4px 8px;line-height:1.2}div.field .select2-container--default .select2-selection--multiple .select2-selection__choice__display{padding:0}div.field .select2-container--default .select2-selection--multiple .select2-selection__choice__remove{position:static;top:auto;left:auto;border:0;border-radius:0;padding:0;margin:0;font-size:inherit;line-height:1;background:rgba(0,0,0,0)}div.field .select2-search--inline .select2-search__field,div.field .select2-container .select2-search__field,div.field .select2-container .select2-input,div.field .select2-choices .select2-input,div.field .select2-search-field input[type=text]{border:0 !important;box-shadow:none !important;background:rgba(0,0,0,0) !important;outline:none !important;min-height:0;margin:0;padding:0}div.field .select2-choices{border:1px solid #ccc;border-radius:.4rem;background:#fff;box-shadow:none;min-height:34px;padding:6px;display:flex;flex-wrap:wrap;align-items:center;-moz-column-gap:8px;column-gap:8px;row-gap:8px}div.field .select2-choices .select2-search-choice{display:inline-flex;align-items:center;gap:.35rem;margin:0;padding:4px 8px;line-height:1.2}div.field .select2-search-choice-close{position:static;display:inline-block;float:none;margin:0}div.field .select2-choice{border:1px solid #ccc;border-radius:.4rem;background:#fff;background-image:none;box-shadow:none;height:34px;line-height:30px}.tabs-scroller{--tabs-scroller-fade: #FFFFFF;position:relative;width:-moz-fit-content;width:fit-content;max-width:100%;min-width:0}.tabs-scroller:has(>ul.tabs.tabs--segmented){--tabs-scroller-fade: #F4F5F7}.tabs-scroller:has(>.screen-tabs){--tabs-scroller-fade: #E9EBEE}.tabs-scroller--bar{width:100%;position:sticky;top:63px;z-index:500}.tabs-scroller--bar>ul.tabs{position:static}.tabs-scroller--inset{position:relative;width:100%}.tabs-scroller__btn{display:none;position:absolute;top:0;bottom:0;z-index:2;align-items:center;justify-content:center;width:2.35rem;margin:0;padding:0;border:0;color:#2b2f32;font-size:.75rem;cursor:pointer;background:rgba(0,0,0,0)}.tabs-scroller__btn i{pointer-events:none}.tabs-scroller__btn:focus-visible{outline:2px solid rgb(var(--brand-color-highlight));outline-offset:-2px}.tabs-scroller__btn--prev{left:0;background:linear-gradient(to right, var(--tabs-scroller-fade) 55%, transparent)}.tabs-scroller__btn--next{right:0;background:linear-gradient(to left, var(--tabs-scroller-fade) 55%, transparent)}.tabs-scroller.is-overflow-start .tabs-scroller__btn--prev,.tabs-scroller.is-overflow-end .tabs-scroller__btn--next{display:flex}.tabs-scroller.is-overflowing>ul.tabs,.tabs-scroller.is-overflowing>.screen-tabs{scrollbar-width:none}.tabs-scroller.is-overflowing>ul.tabs::-webkit-scrollbar,.tabs-scroller.is-overflowing>.screen-tabs::-webkit-scrollbar{display:none}.field.textarea textarea.wysiwyged{display:none !important} +div.field span.input>small.char-count{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0, 0, 0, 0)}div.field .char-count-wrap{position:relative;z-index:0;display:block;width:100%}div.field .char-count-wrap .field-input{transition:padding-bottom .22s ease}div.field .char-count-wrap small.char-count{position:absolute;left:1px;right:1px;bottom:1px;z-index:1;display:flex;align-items:center;justify-content:flex-start;height:1.25rem;margin:0;padding:0 6px;pointer-events:none;visibility:hidden;opacity:0;transition:opacity .22s ease,color .15s ease,background-color .15s ease,box-shadow .15s ease,visibility 0s linear .22s;font-size:.6875rem;font-variant-numeric:tabular-nums;line-height:1;letter-spacing:.02em;color:#6c757d;background:rgba(0,0,0,0);border-radius:0 0 .3rem .3rem}div.field .char-count-wrap:focus-within .field-input{padding-bottom:1.375rem}div.field .char-count-wrap:focus-within small.char-count{visibility:visible;opacity:1;transition:opacity .22s ease,color .15s ease,background-color .15s ease,box-shadow .15s ease,visibility 0s linear 0s}div.field.readonly:has(.char-count-wrap) .input:before{content:none}div.field.readonly .char-count-wrap:before{font-family:"Font Awesome 6 Free";font-weight:900;content:"\f023";display:flex;align-items:center;justify-content:center;position:absolute;left:0;top:0;z-index:2;width:1.75rem;height:100%;color:#aaa;pointer-events:none;line-height:1;transition:height .22s ease}div.field.readonly .char-count-wrap:focus-within:before{height:calc(100% - 1.375rem + 8px)}div.field.max-length-exceeded .char-count-wrap .field-input{padding-bottom:1.375rem}div.field.max-length-exceeded .char-count-wrap small.char-count{visibility:visible;opacity:1;transition:opacity .22s ease,color .15s ease,background-color .15s ease,box-shadow .15s ease,visibility 0s linear 0s;color:#b52130;background:#fce8ea;box-shadow:inset 0 1px 0 #f0c4c8}div.field.max-length-exceeded.readonly .char-count-wrap:before{height:calc(100% - 1.375rem + 8px)}@media(prefers-reduced-motion: reduce){div.field .char-count-wrap .field-input,div.field .char-count-wrap small.char-count,div.field.readonly .char-count-wrap:before{transition:none}}div.field.timezone-aware span.input{overflow:visible}div.field.timezone-aware span.input>small.timezone-channel{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0, 0, 0, 0)}div.field.timezone-aware .timezone-channel-wrap{position:relative;z-index:0;display:block;width:100%;overflow:visible}div.field.timezone-aware .timezone-channel-wrap .field-input{padding-bottom:1.2rem;box-sizing:border-box}div.field.timezone-aware .timezone-channel-wrap small.timezone-channel{position:absolute;left:1px;right:1px;bottom:1px;z-index:3;display:block;height:1.2rem;line-height:1.2rem;margin:0;padding:0 6px;overflow:visible;font-size:.6875rem;letter-spacing:.02em;color:#6c757d;background:rgba(0,0,0,0);white-space:nowrap}div.field.timezone-aware .timezone-channel-wrap small.timezone-channel a{color:inherit;text-decoration:underline;text-underline-offset:.12em}#ui-datepicker-div{max-width:calc(100vw - 1rem)}.ui-datepicker .ui-datepicker-timezones{margin:0 .65rem .65rem;padding:.65rem 0 0;border-top:1px solid #e9ebee;font-family:inherit;font-size:.75rem;color:#2b2f32}.ui-datepicker-timezone-list{display:flex;flex-direction:column;gap:.35rem;margin-bottom:.5rem}.ui-datepicker-timezone{display:grid;grid-template-columns:minmax(0, 1fr) auto auto;align-items:center;gap:.4rem;min-height:1.4rem}.ui-datepicker-timezone__label{overflow:hidden;color:#6c757d;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.ui-datepicker-timezone__value{font-variant-numeric:tabular-nums;white-space:nowrap}.ui-datepicker-timezone__remove{display:inline-flex;align-items:center;justify-content:center;width:1.25rem;height:1.25rem;padding:0;border:0;border-radius:.25rem;background:rgba(0,0,0,0);color:#6c757d;font-size:1rem;line-height:1;cursor:pointer}.ui-datepicker-timezone__remove:hover,.ui-datepicker-timezone__remove:focus{background:#e9ebee;color:#2b2f32;outline:none}.ui-datepicker-timezone__empty{margin:0 0 .5rem;color:#6c757d;line-height:1.35}.ui-datepicker-timezone-add{display:block;margin:0}.ui-datepicker-timezone-add .select2-container{display:block;width:100% !important}.ui-datepicker-timezone-add .select2-choice{height:1.85rem;line-height:1.75rem;font-size:.75rem;border-color:#c4c8cb;border-radius:.25rem;background:#fff;color:#2b2f32}.ui-datepicker-timezone-add .select2-choice .select2-arrow{width:1.5rem;background:rgba(0,0,0,0);border-left:0}.ui-datepicker-timezone-add select{display:block;width:100%;margin:0;padding:.25rem .4rem;border:1px solid #c4c8cb;border-radius:.25rem;background:#fff;color:#2b2f32;font-size:.75rem}.select2-drop.ui-datepicker-timezone-select2-drop{z-index:10020;font-size:.75rem;max-width:calc(100vw - 1rem)}.dashboard-widgets__empty,.dashboard-widgets__grid,.dashboard-widgets__add{width:100%}.dashboard-widgets__empty,.dashboard-widgets__add{width:100%;text-align:center}.dashboard-widgets__empty{height:400px;padding-top:150px;font-size:2em;background-image:url(../img/dashboard/empty.png);background-position:top center;background-size:100% 100%;color:#787878}.dashboard-widgets__empty .fa{margin-right:1rem;opacity:.5;top:1px;position:relative}.dashboard-widgets__empty small{display:block;font-size:1rem;max-width:400px;margin:2em auto}.dashboard-widgets__add{border:1px dashed #ccc;cursor:pointer;padding:1em;background-color:#f2f2f2;color:#787878}.dashboard-widgets__add__cards{display:flex;flex-wrap:wrap;margin-left:-0.5rem;padding:0;right:-0.5rem}.dashboard-widgets__add__cards>li{flex:0 0 100%;padding:.5rem;padding-bottom:0;margin-bottom:0}.dashboard-widgets__add__cards>li:nth-child(n){padding-right:0}@media only screen and (min-width: 376px){.dashboard-widgets__add__cards>li{flex:0 0 50%}.dashboard-widgets__add__cards>li:nth-child(2n){padding-right:0}}@media only screen and (min-width: 768px){.dashboard-widgets__add__cards>li{flex:0 0 33.333%}.dashboard-widgets__add__cards>li:nth-child(3n){padding-right:0}}@media only screen and (min-width: 1224px){.dashboard-widgets__add__cards>li{flex:0 0 25%}.dashboard-widgets__add__cards>li:nth-child(4n){padding-right:0}}@media only screen and (min-width: 1824px){.dashboard-widgets__add__cards>li{flex:0 0 20%}.dashboard-widgets__add__cards>li:nth-child(5n){padding-right:0}}.dashboard-widgets__add__cards__card{border:1px solid #ccc;width:100%;padding-top:100%;cursor:pointer;background-size:cover;background-position:top center;background-image:url(../img/dashboard/widget.png);position:relative;display:inline-block}.dashboard-widgets__add__cards__card__details{background:rgba(255,255,255,.9);padding:1rem;position:absolute;bottom:0;width:100%;min-height:50%}.dashboard-widgets__add__cards__card__details p:first-child{font-weight:bold}.dashboard-widgets__add__cards__card__details p:last-child{margin-bottom:0}.dashboard-widgets__instance__padding{padding:1em}.dashboard-widgets__instance__controls{float:right;position:relative}.dashboard-widgets__instance__controls .btn{margin-left:.5rem}.dashboard-widgets .vgl-layout{margin-left:-10px;margin-right:-10px}.dashboard-widgets .vgl-item>fieldset{height:100%;overflow:hidden}.dashboard-widgets .vgl-item>fieldset>div{overflow:auto;height:100%}.dashboard-widgets .vgl-item--placeholder{background-color:#fff !important;opacity:1 !important;border:1px dashed #ccc}.modal{display:none;position:fixed;top:0;left:0;width:100%;height:100%;z-index:1000}.modal::before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.5);z-index:-1}.modal.modal--open{display:flex;align-items:center;justify-content:center}.modal__inner{position:relative;width:90%;max-width:600px;max-height:80vh;background-color:#fff;border-radius:8px;box-shadow:0 4px 12px rgba(0,0,0,.15);display:flex;flex-direction:column;overflow:hidden}.modal__close{position:absolute;top:16px;right:16px;width:24px;height:24px;display:flex;align-items:center;justify-content:center;font-size:24px;line-height:1;cursor:pointer;z-index:10}.modal__close:hover{opacity:.7}.modal__title{padding:16px 48px 16px 16px;font-weight:bold;font-size:18px;border-bottom:1px solid #d9d9d9;position:sticky;top:0;background-color:#f9f9f9;box-shadow:0 -10px 15px rgba(0,0,0,.5);z-index:5}.modal__body{padding:16px;overflow-y:auto;flex:1 1 auto;max-height:calc(80vh - 120px)}.modal__actions{padding:16px;border-top:1px solid #d9d9d9;position:sticky;bottom:0;background-color:#f9f9f9;box-shadow:0 10px 15px rgba(0,0,0,.5);z-index:5}.modal__actions:empty,.modal__actions[hidden]{display:none}.modal__actions .btn{margin-right:5px}.modal__actions .btn:last-child{margin-right:0}@keyframes admin-notes-remove-note{0%{opacity:1}100%{opacity:0}}@keyframes admin-notes-new-note{0%{opacity:0;box-shadow:0 0 0 3px rgba(66,153,225,.5);border-color:rgba(66,153,225,.7)}15%{opacity:1;box-shadow:0 0 0 3px rgba(66,153,225,.5);border-color:rgba(66,153,225,.7)}33%{box-shadow:none;border-color:#ccc}50%{box-shadow:0 0 0 3px rgba(66,153,225,.4);border-color:rgba(66,153,225,.6)}67%{box-shadow:none;border-color:#ccc}82%{box-shadow:0 0 0 3px rgba(66,153,225,.25);border-color:rgba(66,153,225,.4)}100%{box-shadow:none;border-color:#ccc}}.admin-notes__empty{padding:2rem;text-align:center;color:#aaa}.admin-notes__counter{margin-left:.4rem}.admin-notes__counter:before{content:"("}.admin-notes__counter:after{content:")"}.admin-notes__counter:empty{display:none}.admin-notes__load-more{padding-top:1rem}.admin-notes__load-more .btn{width:100%}.admin-notes__note{border:1px solid #ccc;position:relative;margin-bottom:1rem;scroll-margin-top:1rem}.admin-notes__note__message{padding:1rem}.admin-notes__note__message>*:last-child{margin-bottom:0}.admin-notes__note__delete{position:absolute;top:0px;right:0px;border:0;background:#ccc;color:#fff;font-size:.75rem !important;display:block;height:20px;width:20px;line-height:6px;text-indent:1px;text-align:center;opacity:.5;padding:0;border-bottom-left-radius:3px;transition:all .2s}.admin-notes__note__delete:hover{opacity:1;background-color:#f2dede;color:#a94442}.admin-notes__note__meta{font-size:.8em;background:#efefef;padding:.5rem}.admin-notes__note__meta__date{float:right}.admin-notes__note--new{animation:admin-notes-new-note 3.5s ease-out forwards}.admin-notes__note--removing{animation:admin-notes-remove-note .8s ease-in forwards;pointer-events:none}.admin-notes__note:last-child{margin-bottom:0}.js-admin-session--also-here:empty{display:none}.js-admin-session--also-here{position:sticky;top:5px;z-index:1;margin-bottom:1rem;padding:1rem 1.25rem;background-color:#f17000;border-color:#c85d00;color:#fff}.js-admin-session--also-here ul{margin:0;padding:0;list-style:none}.js-admin-session--also-here ul li{display:inline;margin:0;padding:0;line-height:1.5}.js-admin-session--also-here ul li:after{content:", "}.js-admin-session--also-here ul li:first-child:after{content:" "}.js-admin-session--also-here ul li:last-child:after{content:""}.js-admin-session--also-here .name{font-weight:bold}.js-admin-sortable__handle:hover{cursor:move;cursor:grab;cursor:-webkit-grab}.js-admin-sortable__handle:active{cursor:move !important;cursor:grabbing !important;cursor:-webkit-grabbing !important}.js-admin-sortable__placeholder>td{background-color:#f4f7fb;color:rgba(0,0,0,0);font-size:0;line-height:0;border-top:1px dashed #c5d0dc;border-bottom:1px dashed #c5d0dc}.js-admin-sortable__placeholder>td:first-child{border-left:1px dashed #c5d0dc}.js-admin-sortable__placeholder>td:last-child{border-right:1px dashed #c5d0dc}.js-admin-sortable__helper{background-color:#fff;border-collapse:collapse;border-spacing:0;box-shadow:0 8px 24px rgba(0,0,0,.18);pointer-events:none;table-layout:fixed}ul.tabs{display:flex;flex-wrap:nowrap;gap:.15rem;align-items:flex-end;list-style:none;margin:0;padding:.25rem .5rem 0;position:sticky;top:63px;z-index:500;background:#fff;border:1px solid #e9ebee;border-bottom:0;border-radius:.5rem .5rem 0 0;box-shadow:inset 0 -2px 0 #e9ebee;min-width:0;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:thin;scroll-padding-inline:2.5rem}ul.tabs li.tab{display:block;flex:0 0 auto;margin:0}ul.tabs li.tab a{display:inline-flex;align-items:center;gap:.45rem;padding:.65rem 1rem;margin:0;border:0;background:rgba(0,0,0,0);color:#6c757d;font-size:.875rem;font-weight:600;line-height:1.2;text-decoration:none;white-space:nowrap;box-sizing:border-box;cursor:pointer;box-shadow:inset 0 -2px 0 rgba(0,0,0,0);transition:color .15s ease,box-shadow .15s ease}ul.tabs li.tab a:hover{color:#2b2f32}ul.tabs li.tab a:focus-visible{outline:2px solid rgb(var(--brand-color-highlight));outline-offset:-2px;border-radius:4px}ul.tabs li.tab a.disabled{color:#c4c8cb;cursor:default}ul.tabs li.tab a.error::after{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:#d9534f;flex-shrink:0}ul.tabs li.tab.active a{color:rgb(var(--brand-color-highlight));box-shadow:inset 0 -2px 0 currentColor}ul.tabs li.tab.active a.disabled{color:#2b2f32}section.tabs{position:relative;margin:0 0 1.1rem}section.tabs>div.tab-page{display:none;background:#fff;border:1px solid #e9ebee;border-top:0;border-radius:0 0 .5rem .5rem;padding:1.1rem;box-shadow:0 1px 2px rgba(43,47,50,.08)}section.tabs>div.tab-page>p,section.tabs>div.tab-page>.alert,section.tabs>div.tab-page>.js-admin-session--also-here,section.tabs>div.tab-page>.padded,section.tabs>div.tab-page>fieldset,section.tabs>div.tab-page>form,section.tabs>div.tab-page>ul:not(.tabs){margin:0 0 1.1rem}section.tabs>div.tab-page>p:last-child,section.tabs>div.tab-page>.alert:last-child,section.tabs>div.tab-page>.js-admin-session--also-here:last-child,section.tabs>div.tab-page>.padded:last-child,section.tabs>div.tab-page>fieldset:last-child,section.tabs>div.tab-page>form:last-child,section.tabs>div.tab-page>ul:not(.tabs):last-child{margin-bottom:0}section.tabs>div.tab-page>ul.tabs,section.tabs>div.tab-page>.tabs-scroller,section.tabs>div.tab-page>section.tabs{margin:0}section.tabs>div.tab-page>h1,section.tabs>div.tab-page>h2,section.tabs>div.tab-page>h3,section.tabs>div.tab-page>h4,section.tabs>div.tab-page>h5,section.tabs>div.tab-page>h6{background:#f4f5f7;border:none;border-bottom:1px solid #e9ebee;padding:.75rem 1.1rem;margin:-1.1rem -1.1rem 1.1rem;position:sticky;top:calc(63px + 2.75rem);z-index:499}section.tabs>div.tab-page>div.field,section.tabs>div.tab-page>div.fieldset,section.tabs>div.tab-page>table,section.tabs>div.tab-page>.form-builder{margin-left:-1.1rem;margin-right:-1.1rem}section.tabs>div.tab-page>div.field:first-child,section.tabs>div.tab-page>div.fieldset:first-child,section.tabs>div.tab-page>table:first-child,section.tabs>div.tab-page>.form-builder:first-child{margin-top:-1.1rem}section.tabs>div.tab-page>div.field:last-child,section.tabs>div.tab-page>div.fieldset:last-child,section.tabs>div.tab-page>table:last-child,section.tabs>div.tab-page>.form-builder:last-child{margin-bottom:-1.1rem}section.tabs>div.tab-page>div.field:last-child,section.tabs>div.tab-page>div.fieldset:last-child>div.field:last-child{border-bottom-left-radius:calc(0.5rem - 1px);border-bottom-right-radius:calc(0.5rem - 1px)}section.tabs>div.tab-page table{margin-top:0;margin-bottom:0}section.tabs>div.tab-page.active{display:block}ul.tabs.tabs--segmented{display:flex;flex-wrap:nowrap;width:-moz-max-content;width:max-content;max-width:100%;gap:.25rem;align-items:center;position:static;z-index:auto;background:#f4f5f7;border:1px solid #e9ebee;border-radius:999px;box-shadow:none;margin:0 0 .85rem;padding:.3rem}ul.tabs.tabs--segmented li.tab a{margin:0;padding:0 1.3rem;height:36px;border:0;border-radius:999px;color:#6c757d;font-size:.9rem;font-weight:600;box-shadow:none;transition:background-color .15s ease,color .15s ease,box-shadow .15s ease}ul.tabs.tabs--segmented li.tab a:hover{background:rgba(255,255,255,.75);color:#2b2f32}ul.tabs.tabs--segmented li.tab a:focus-visible{outline:2px solid rgb(var(--brand-color-highlight));outline-offset:-2px}ul.tabs.tabs--segmented li.tab a img{height:14px;width:auto;margin:0;vertical-align:middle}ul.tabs.tabs--segmented li.tab.active a{background:#2b2f32;color:#fff;box-shadow:0 2px 6px rgba(43,47,50,.25)}ul.tabs.tabs--segmented li.tab.active a.disabled{color:#fff}ul.tabs.tabs--segmented+section.tabs,.tabs-scroller:has(>ul.tabs.tabs--segmented)+section.tabs,section.tabs.tabs--segmented{margin-bottom:0}ul.tabs.tabs--segmented+section.tabs>div.tab-page,.tabs-scroller:has(>ul.tabs.tabs--segmented)+section.tabs>div.tab-page,section.tabs.tabs--segmented>div.tab-page{background:rgba(0,0,0,0);border:0;border-radius:0;box-shadow:none;padding:0}ul.tabs.tabs--segmented+section.tabs>div.tab-page>div.field,ul.tabs.tabs--segmented+section.tabs>div.tab-page>div.fieldset,ul.tabs.tabs--segmented+section.tabs>div.tab-page>table,ul.tabs.tabs--segmented+section.tabs>div.tab-page>.form-builder,.tabs-scroller:has(>ul.tabs.tabs--segmented)+section.tabs>div.tab-page>div.field,.tabs-scroller:has(>ul.tabs.tabs--segmented)+section.tabs>div.tab-page>div.fieldset,.tabs-scroller:has(>ul.tabs.tabs--segmented)+section.tabs>div.tab-page>table,.tabs-scroller:has(>ul.tabs.tabs--segmented)+section.tabs>div.tab-page>.form-builder,section.tabs.tabs--segmented>div.tab-page>div.field,section.tabs.tabs--segmented>div.tab-page>div.fieldset,section.tabs.tabs--segmented>div.tab-page>table,section.tabs.tabs--segmented>div.tab-page>.form-builder{margin-left:0;margin-right:0}ul.tabs.tabs--segmented+section.tabs>div.tab-page>div.field:first-child,ul.tabs.tabs--segmented+section.tabs>div.tab-page>div.fieldset:first-child,ul.tabs.tabs--segmented+section.tabs>div.tab-page>table:first-child,ul.tabs.tabs--segmented+section.tabs>div.tab-page>.form-builder:first-child,.tabs-scroller:has(>ul.tabs.tabs--segmented)+section.tabs>div.tab-page>div.field:first-child,.tabs-scroller:has(>ul.tabs.tabs--segmented)+section.tabs>div.tab-page>div.fieldset:first-child,.tabs-scroller:has(>ul.tabs.tabs--segmented)+section.tabs>div.tab-page>table:first-child,.tabs-scroller:has(>ul.tabs.tabs--segmented)+section.tabs>div.tab-page>.form-builder:first-child,section.tabs.tabs--segmented>div.tab-page>div.field:first-child,section.tabs.tabs--segmented>div.tab-page>div.fieldset:first-child,section.tabs.tabs--segmented>div.tab-page>table:first-child,section.tabs.tabs--segmented>div.tab-page>.form-builder:first-child{margin-top:0}ul.tabs.tabs--segmented+section.tabs>div.tab-page>div.field:last-child,ul.tabs.tabs--segmented+section.tabs>div.tab-page>div.fieldset:last-child,ul.tabs.tabs--segmented+section.tabs>div.tab-page>table:last-child,ul.tabs.tabs--segmented+section.tabs>div.tab-page>.form-builder:last-child,.tabs-scroller:has(>ul.tabs.tabs--segmented)+section.tabs>div.tab-page>div.field:last-child,.tabs-scroller:has(>ul.tabs.tabs--segmented)+section.tabs>div.tab-page>div.fieldset:last-child,.tabs-scroller:has(>ul.tabs.tabs--segmented)+section.tabs>div.tab-page>table:last-child,.tabs-scroller:has(>ul.tabs.tabs--segmented)+section.tabs>div.tab-page>.form-builder:last-child,section.tabs.tabs--segmented>div.tab-page>div.field:last-child,section.tabs.tabs--segmented>div.tab-page>div.fieldset:last-child,section.tabs.tabs--segmented>div.tab-page>table:last-child,section.tabs.tabs--segmented>div.tab-page>.form-builder:last-child{margin-bottom:0}ul.tabs.tabs--segmented+section.tabs>div.tab-page>div.field:last-child,ul.tabs.tabs--segmented+section.tabs>div.tab-page>div.fieldset:last-child>div.field:last-child,.tabs-scroller:has(>ul.tabs.tabs--segmented)+section.tabs>div.tab-page>div.field:last-child,.tabs-scroller:has(>ul.tabs.tabs--segmented)+section.tabs>div.tab-page>div.fieldset:last-child>div.field:last-child,section.tabs.tabs--segmented>div.tab-page>div.field:last-child,section.tabs.tabs--segmented>div.tab-page>div.fieldset:last-child>div.field:last-child{border-bottom-left-radius:0;border-bottom-right-radius:0}ul.tabs.tabs--segmented+section.tabs>div.tab-page>.padded,.tabs-scroller:has(>ul.tabs.tabs--segmented)+section.tabs>div.tab-page>.padded,section.tabs.tabs--segmented>div.tab-page>.padded{margin:.25rem 0 1rem}fieldset>ul.tabs,fieldset>.tabs-scroller{margin:0;position:static;width:100%}fieldset>ul.tabs,fieldset>.tabs-scroller>ul.tabs{border-radius:0;box-shadow:none;position:static}fieldset>section.tabs:last-child{margin-bottom:0}fieldset>section.tabs>.tab-page{border:0;margin:0;border-radius:0;box-shadow:none;padding:0}fieldset>section.tabs>.tab-page>div.field,fieldset>section.tabs>.tab-page>div.fieldset,fieldset>section.tabs>.tab-page>table,fieldset>section.tabs>.tab-page>.form-builder{margin-left:0;margin-right:0}fieldset>section.tabs>.tab-page>div.field:first-child,fieldset>section.tabs>.tab-page>div.fieldset:first-child,fieldset>section.tabs>.tab-page>table:first-child,fieldset>section.tabs>.tab-page>.form-builder:first-child{margin-top:0}fieldset>section.tabs>.tab-page>div.field:last-child,fieldset>section.tabs>.tab-page>div.fieldset:last-child,fieldset>section.tabs>.tab-page>table:last-child,fieldset>section.tabs>.tab-page>.form-builder:last-child{margin-bottom:0}fieldset>section.tabs>.tab-page>div.field:last-child,fieldset>section.tabs>.tab-page>div.fieldset:last-child>div.field:last-child{border-bottom-left-radius:0;border-bottom-right-radius:0}fieldset>section.tabs>.tab-page>form{margin:0}fieldset>section.tabs>.tab-page>form>p{margin:1.1rem}.screen-tabs{display:flex;flex-wrap:nowrap;width:-moz-max-content;width:max-content;max-width:100%;min-width:0;gap:.25rem;background:#e9ebee;border:1px solid #c4c8cb;border-radius:999px;padding:.3rem;margin:0 0 .85rem;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:thin;scroll-padding-inline:2.5rem}.screen-tabs__tab{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:inline-flex;flex:0 0 auto;align-items:center;gap:.5rem;border:0;border-radius:999px;background:rgba(0,0,0,0);padding:0 1.3rem;height:36px;font:inherit;font-size:.9rem;font-weight:650;line-height:1.2;color:#6c757d;cursor:pointer;white-space:nowrap;transition:background-color .15s ease,color .15s ease,box-shadow .15s ease}.screen-tabs__tab:hover{color:#2b2f32}.screen-tabs__tab:focus-visible{outline:2px solid rgb(var(--brand-color-highlight));outline-offset:-2px}.screen-tabs__tab.is-active{background:#2b2f32;color:#fff;box-shadow:0 2px 6px rgba(43,47,50,.25)}.screen-tabs__tab.has-error::after{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:#d9534f;flex-shrink:0}.screen-tabs__count{display:inline-block;min-width:1.5em;padding:.05rem .45rem;border-radius:999px;background:rgba(43,47,50,.12);color:inherit;font-size:.78rem;font-weight:700;line-height:1.4;text-align:center}.screen-tabs__tab.is-active .screen-tabs__count{background:rgba(255,255,255,.22)}.screen-tabs__panel{display:none}.screen-tabs__panel.is-active{display:block}.select2-hidden-accessible,.select2-offscreen{border:0 !important;clip:rect(0 0 0 0) !important;clip-path:inset(50%) !important;height:1px !important;margin:0 !important;overflow:hidden !important;padding:0 !important;position:absolute !important;width:1px !important;white-space:nowrap !important}.select2-container{display:inline-block;position:relative;vertical-align:middle;max-width:100%;box-sizing:border-box}div.field .select2-container{display:block;width:100% !important}.select2-focus-shell{position:fixed;z-index:9998;pointer-events:none;border-radius:.4rem;box-shadow:0 0 0 .25rem rgba(13,110,253,.25);background:rgba(0,0,0,0)}.select2-focus-shell[hidden]{display:none !important}.select2-container-active:not(.select2-dropdown-open) .select2-choice,.select2-container-active:not(.select2-dropdown-open) .select2-choices,.select2-container-active:not(.select2-dropdown-open) .select2-selection--single,.select2-container-active:not(.select2-dropdown-open) .select2-selection--multiple,.select2-container--focus:not(.select2-container--open) .select2-choice,.select2-container--focus:not(.select2-container--open) .select2-choices,.select2-container--focus:not(.select2-container--open) .select2-selection--single,.select2-container--focus:not(.select2-container--open) .select2-selection--multiple{border-color:#86b7fe !important;box-shadow:0 0 0 .25rem rgba(13,110,253,.25) !important;background:#fff !important;background-image:none !important}.select2-dropdown-open,.select2-container--open{z-index:10050}.select2-dropdown-open .select2-choice,.select2-dropdown-open .select2-choices,.select2-container--open .select2-selection--single,.select2-container--open .select2-selection--multiple{background:#fff !important;background-image:none !important;border-color:#86b7fe !important;box-shadow:none !important}.select2-dropdown-open:not(.select2-drop-above) .select2-choice,.select2-dropdown-open:not(.select2-drop-above) .select2-choices,.select2-container--open.select2-container--below .select2-selection--single,.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom-color:rgba(0,0,0,0) !important;border-bottom-left-radius:0 !important;border-bottom-right-radius:0 !important}.select2-dropdown-open.select2-drop-above .select2-choice,.select2-dropdown-open.select2-drop-above .select2-choices,.select2-container--open.select2-container--above .select2-selection--single,.select2-container--open.select2-container--above .select2-selection--multiple{border-top-color:rgba(0,0,0,0) !important;border-top-left-radius:0 !important;border-top-right-radius:0 !important;border-bottom-left-radius:.4rem !important;border-bottom-right-radius:.4rem !important}.select2-drop,.select2-dropdown{z-index:10051;box-sizing:border-box;margin-top:0 !important;margin-bottom:0 !important;background:#fff;border:1px solid #86b7fe;box-shadow:none !important}.select2-drop:not(.select2-drop-above),.select2-dropdown--below{border-top-width:0 !important;border-radius:0 0 .4rem .4rem}.select2-drop.select2-drop-above,.select2-dropdown--above{border-bottom-width:0 !important;border-radius:.4rem .4rem 0 0}.select2-drop-active{border-color:#86b7fe}.select2-search,.select2-search--dropdown{padding:6px 8px}.select2-search--dropdown .select2-search__field,.select2-drop .select2-input,.select2-drop input,.select2-search input,input.select2-input{border:0 !important;border-radius:0 !important;box-shadow:none !important;outline:none !important;background:rgba(0,0,0,0) !important;width:100%;padding:2px 0}.select2-search--dropdown .select2-search__field:focus,.select2-drop .select2-input:focus,.select2-drop input:focus,.select2-search input:focus,input.select2-input:focus{border:0 !important;box-shadow:none !important;outline:none !important}.select2-results__message,.select2-results .select2-searching,.select2-results .select2-ajax-error,.select2-results .select2-no-results,.select2-container--default .select2-results__option--disabled,.select2-container--default .select2-results__option[aria-disabled=true]{background:rgba(0,0,0,0) !important;color:#6c757d}div.field .select2-container--default .select2-selection--single,div.field .select2-container--default .select2-selection--multiple{border:1px solid #ccc;border-radius:.4rem;min-height:34px;box-sizing:border-box;background:#fff;box-shadow:none}div.field .select2-container--default .select2-selection--multiple{padding:6px}div.field .select2-container--default .select2-selection--multiple .select2-selection__rendered{display:flex !important;flex-wrap:wrap;align-items:center;-moz-column-gap:8px;column-gap:8px;row-gap:8px;padding:0}div.field .select2-container--default .select2-selection--multiple .select2-selection__choice{display:inline-flex;align-items:center;gap:.35rem;margin:0;padding:4px 8px;line-height:1.2}div.field .select2-container--default .select2-selection--multiple .select2-selection__choice__display{padding:0}div.field .select2-container--default .select2-selection--multiple .select2-selection__choice__remove{position:static;top:auto;left:auto;border:0;border-radius:0;padding:0;margin:0;font-size:inherit;line-height:1;background:rgba(0,0,0,0)}div.field .select2-search--inline .select2-search__field,div.field .select2-container .select2-search__field,div.field .select2-container .select2-input,div.field .select2-choices .select2-input,div.field .select2-search-field input[type=text]{border:0 !important;box-shadow:none !important;background:rgba(0,0,0,0) !important;outline:none !important;min-height:0;margin:0;padding:0}div.field .select2-choices{border:1px solid #ccc;border-radius:.4rem;background:#fff;box-shadow:none;min-height:34px;padding:6px;display:flex;flex-wrap:wrap;align-items:center;-moz-column-gap:8px;column-gap:8px;row-gap:8px}div.field .select2-choices .select2-search-choice{display:inline-flex;align-items:center;gap:.35rem;margin:0;padding:4px 8px;line-height:1.2}div.field .select2-search-choice-close{position:static;display:inline-block;float:none;margin:0}div.field .select2-choice{border:1px solid #ccc;border-radius:.4rem;background:#fff;background-image:none;box-shadow:none;height:34px;line-height:30px}.tabs-scroller{--tabs-scroller-fade: #FFFFFF;position:relative;width:-moz-fit-content;width:fit-content;max-width:100%;min-width:0}.tabs-scroller:has(>ul.tabs.tabs--segmented){--tabs-scroller-fade: #F4F5F7}.tabs-scroller:has(>.screen-tabs){--tabs-scroller-fade: #E9EBEE}.tabs-scroller--bar{width:100%;position:sticky;top:63px;z-index:500}.tabs-scroller--bar>ul.tabs{position:static}.tabs-scroller--inset{position:relative;width:100%}.tabs-scroller__btn{display:none;position:absolute;top:0;bottom:0;z-index:2;align-items:center;justify-content:center;width:2.35rem;margin:0;padding:0;border:0;color:#2b2f32;font-size:.75rem;cursor:pointer;background:rgba(0,0,0,0)}.tabs-scroller__btn i{pointer-events:none}.tabs-scroller__btn:focus-visible{outline:2px solid rgb(var(--brand-color-highlight));outline-offset:-2px}.tabs-scroller__btn--prev{left:0;background:linear-gradient(to right, var(--tabs-scroller-fade) 55%, transparent)}.tabs-scroller__btn--next{right:0;background:linear-gradient(to left, var(--tabs-scroller-fade) 55%, transparent)}.tabs-scroller.is-overflow-start .tabs-scroller__btn--prev,.tabs-scroller.is-overflow-end .tabs-scroller__btn--next{display:flex}.tabs-scroller.is-overflowing>ul.tabs,.tabs-scroller.is-overflowing>.screen-tabs{scrollbar-width:none}.tabs-scroller.is-overflowing>ul.tabs::-webkit-scrollbar,.tabs-scroller.is-overflowing>.screen-tabs::-webkit-scrollbar{display:none}.field.textarea textarea.wysiwyged{display:none !important} diff --git a/assets/js/admin.plugins.min.js b/assets/js/admin.plugins.min.js index e568c8ef..8af7d869 100644 --- a/assets/js/admin.plugins.min.js +++ b/assets/js/admin.plugins.min.js @@ -1,2 +1,2 @@ /*! For license information please see admin.plugins.min.js.LICENSE.txt */ -(()=>{var e={576(e){var t;t=function(){return function(){var e={686:function(e,t,n){"use strict";n.d(t,{default:function(){return w}});var r=n(279),i=n.n(r),o=n(370),s=n.n(o),a=n(817),l=n.n(a);function c(e){try{return document.execCommand(e)}catch(e){return!1}}var u=function(e){var t=l()(e);return c("cut"),t},d=function(e,t){var n=function(e){var t="rtl"===document.documentElement.getAttribute("dir"),n=document.createElement("textarea");n.style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[t?"right":"left"]="-9999px";var r=window.pageYOffset||document.documentElement.scrollTop;return n.style.top="".concat(r,"px"),n.setAttribute("readonly",""),n.value=e,n}(e);t.container.appendChild(n);var r=l()(n);return c("copy"),n.remove(),r},h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"==typeof e?n=d(e,t):e instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==e?void 0:e.type)?n=d(e.value,t):(n=l()(e),c("copy")),n};function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function g(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===f(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=s()(e,"click",function(e){return t.onClick(e)})}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget,n=this.action(t)||"copy",r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.action,n=void 0===t?"copy":t,r=e.container,i=e.target,o=e.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==i){if(!i||"object"!==p(i)||1!==i.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&i.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(i.hasAttribute("readonly")||i.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return o?h(o,{container:r}):i?"cut"===n?u(i):h(i,{container:r}):void 0}({action:n,container:this.container,target:this.target(t),text:this.text(t)});this.emit(r?"success":"error",{action:n,text:r,trigger:t,clearSelection:function(){t&&t.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(e){return y("action",e)}},{key:"defaultTarget",value:function(e){var t=y("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return y("text",e)}},{key:"destroy",value:function(){this.listener.destroy()}}],r=[{key:"copy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return h(e,t)}},{key:"cut",value:function(e){return u(e)}},{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach(function(e){n=n&&!!document.queryCommandSupported(e)}),n}}],n&&g(t.prototype,n),r&&g(t,r),l}(i()),w=b},828:function(e){if("undefined"!=typeof Element&&!Element.prototype.matches){var t=Element.prototype;t.matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},438:function(e,t,n){var r=n(828);function i(e,t,n,r,i){var s=o.apply(this,arguments);return e.addEventListener(n,s,i),{destroy:function(){e.removeEventListener(n,s,i)}}}function o(e,t,n,i){return function(n){n.delegateTarget=r(n.target,t),n.delegateTarget&&i.call(e,n)}}e.exports=function(e,t,n,r,o){return"function"==typeof e.addEventListener?i.apply(null,arguments):"function"==typeof n?i.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,function(e){return i(e,t,n,r,o)}))}},879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},370:function(e,t,n){var r=n(879),i=n(438);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!r.string(t))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(e))return function(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}(e,t,n);if(r.nodeList(e))return function(e,t,n){return Array.prototype.forEach.call(e,function(e){e.addEventListener(t,n)}),{destroy:function(){Array.prototype.forEach.call(e,function(e){e.removeEventListener(t,n)})}}}(e,t,n);if(r.string(e))return function(e,t,n){return i(document.body,e,t,n)}(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},817:function(e){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),i=document.createRange();i.selectNodeContents(e),r.removeAllRanges(),r.addRange(i),t=r.toString()}return t}},279:function(e){function t(){}t.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function i(){r.off(e,i),t.apply(n,arguments)}return i._=t,this.on(e,i,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,i=n.length;r2&&void 0!==arguments[2]?arguments[2]:function(e){return!0},r=arguments.length>3?arguments[3]:void 0;if(r=r||{},O(e)&&-1!==e.search(" ")&&(e=ae(e)),P(e))return e.forEach(function(e){return se(e,t,n,r)}),r;if(E(e)&&(t=e,e=""),C(t)&&n(e))r[e]=r[e]||[],r[e].push(t);else if(P(t))for(var i=0,o=t;i=(parseInt(b(r).getComputedStyle(r).zIndex,10)||0)&&(t=o);else t=o}else t=o}return t}(s);return r.activeDrops[f]||null}function Ne(e,t,n){var r=e.dropState,i={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return"dragstart"===n.type&&(i.activate=new Ae(r,n,"dropactivate"),i.activate.target=null,i.activate.dropzone=null),"dragend"===n.type&&(i.deactivate=new Ae(r,n,"dropdeactivate"),i.deactivate.target=null,i.deactivate.dropzone=null),r.rejected||(r.cur.element!==r.prev.element&&(r.prev.dropzone&&(i.leave=new Ae(r,n,"dragleave"),n.dragLeave=i.leave.target=r.prev.element,n.prevDropzone=i.leave.dropzone=r.prev.dropzone),r.cur.dropzone&&(i.enter=new Ae(r,n,"dragenter"),n.dragEnter=r.cur.element,n.dropzone=r.cur.dropzone)),"dragend"===n.type&&r.cur.dropzone&&(i.drop=new Ae(r,n,"drop"),n.dropzone=r.cur.dropzone,n.relatedTarget=r.cur.element),"dragmove"===n.type&&r.cur.dropzone&&(i.move=new Ae(r,n,"dropmove"),n.dropzone=r.cur.dropzone)),i}function Le(e,t){var n=e.dropState,r=n.activeDrops,i=n.cur,o=n.prev;t.leave&&o.dropzone.fire(t.leave),t.enter&&i.dropzone.fire(t.enter),t.move&&i.dropzone.fire(t.move),t.drop&&i.dropzone.fire(t.drop),t.deactivate&&Re(r,t.deactivate),n.prev.dropzone=i.dropzone,n.prev.element=i.element}function Me(e,t){var n=e.interaction,r=e.iEvent,i=e.event;if("dragmove"===r.type||"dragend"===r.type){var o=n.dropState;t.dynamicDrop&&(o.activeDrops=Pe(t,n.element));var s=r,a=Ie(n,s,i);o.rejected=o.rejected&&!!a&&a.dropzone===o.cur.dropzone&&a.element===o.cur.element,o.cur.dropzone=a&&a.dropzone,o.cur.element=a&&a.element,o.events=Ne(n,0,s)}}var $e={id:"actions/drop",install:function(e){var t=e.actions,n=e.interactStatic,r=e.Interactable,i=e.defaults;e.usePlugin(M),r.prototype.dropzone=function(e){return function(e,t){if(E(t)){if(e.options.drop.enabled=!1!==t.enabled,t.listeners){var n=se(t.listeners),r=Object.keys(n).reduce(function(e,t){return e[/^(enter|leave)/.test(t)?"drag".concat(t):/^(activate|deactivate|move)/.test(t)?"drop".concat(t):t]=n[t],e},{}),i=e.options.drop.listeners;i&&e.off(i),e.on(r),e.options.drop.listeners=r}return C(t.ondrop)&&e.on("drop",t.ondrop),C(t.ondropactivate)&&e.on("dropactivate",t.ondropactivate),C(t.ondropdeactivate)&&e.on("dropdeactivate",t.ondropdeactivate),C(t.ondragenter)&&e.on("dragenter",t.ondragenter),C(t.ondragleave)&&e.on("dragleave",t.ondragleave),C(t.ondropmove)&&e.on("dropmove",t.ondropmove),/^(pointer|center)$/.test(t.overlap)?e.options.drop.overlap=t.overlap:T(t.overlap)&&(e.options.drop.overlap=Math.max(Math.min(1,t.overlap),0)),"accept"in t&&(e.options.drop.accept=t.accept),"checker"in t&&(e.options.drop.checker=t.checker),e}return k(t)?(e.options.drop.enabled=t,e):e.options.drop}(this,e)},r.prototype.dropCheck=function(e,t,n,r,i,o){return function(e,t,n,r,i,o,s){var a=!1;if(!(s=s||e.getRect(o)))return!!e.options.drop.checker&&e.options.drop.checker(t,n,a,e,o,r,i);var l=e.options.drop.overlap;if("pointer"===l){var c=oe(r,i,"drag"),u=ge(t);u.x+=c.x,u.y+=c.y;var d=u.x>s.left&&u.xs.top&&u.y=s.left&&f<=s.right&&g>=s.top&&g<=s.bottom}return p&&T(l)&&(a=Math.max(0,Math.min(s.right,p.right)-Math.max(s.left,p.left))*Math.max(0,Math.min(s.bottom,p.bottom)-Math.max(s.top,p.top))/(p.width*p.height)>=l),e.options.drop.checker&&(a=e.options.drop.checker(t,n,a,e,o,r,i)),a}(this,e,t,n,r,i,o)},n.dynamicDrop=function(t){return k(t)?(e.dynamicDrop=t,n):e.dynamicDrop},Q(t.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),t.methodDict.drop="dropzone",e.dynamicDrop=!1,i.actions.drop=$e.defaults},listeners:{"interactions:before-action-start":function(e){var t=e.interaction;"drag"===t.prepared.name&&(t.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(e,t){var n=e.interaction,r=(e.event,e.iEvent);if("drag"===n.prepared.name){var i=n.dropState;i.activeDrops=[],i.events={},i.activeDrops=Pe(t,n.element),i.events=Ne(n,0,r),i.events.activate&&(Re(i.activeDrops,i.events.activate),t.fire("actions/drop:start",{interaction:n,dragEvent:r}))}},"interactions:action-move":Me,"interactions:after-action-move":function(e,t){var n=e.interaction,r=e.iEvent;if("drag"===n.prepared.name){var i=n.dropState;Le(n,i.events),t.fire("actions/drop:move",{interaction:n,dragEvent:r}),i.events={}}},"interactions:action-end":function(e,t){if("drag"===e.interaction.prepared.name){var n=e.interaction,r=e.iEvent;Me(e,t),Le(n,n.dropState.events),t.fire("actions/drop:end",{interaction:n,dragEvent:r})}},"interactions:stop":function(e){var t=e.interaction;if("drag"===t.prepared.name){var n=t.dropState;n&&(n.activeDrops=null,n.events=null,n.cur.dropzone=null,n.cur.element=null,n.prev.dropzone=null,n.prev.element=null,n.rejected=!1)}}},getActiveDrops:Pe,getDrop:Ie,getDropEvents:Ne,fireDropEvents:Le,filterEventType:function(e){return 0===e.search("drag")||0===e.search("drop")},defaults:{enabled:!1,accept:null,overlap:"pointer"}},De=$e;function ze(e){var t=e.interaction,n=e.iEvent,r=e.phase;if("gesture"===t.prepared.name){var i=t.pointers.map(function(e){return e.pointer}),o="start"===r,s="end"===r,a=t.interactable.options.deltaSource;if(n.touches=[i[0],i[1]],o)n.distance=we(i,a),n.box=be(i),n.scale=1,n.ds=0,n.angle=xe(i,a),n.da=0,t.gesture.startDistance=n.distance,t.gesture.startAngle=n.angle;else if(s||t.pointers.length<2){var l=t.prevEvent;n.distance=l.distance,n.box=l.box,n.scale=l.scale,n.ds=0,n.angle=l.angle,n.da=0}else n.distance=we(i,a),n.box=be(i),n.scale=n.distance/t.gesture.startDistance,n.angle=xe(i,a),n.ds=n.scale-t.gesture.scale,n.da=n.angle-t.gesture.angle;t.gesture.distance=n.distance,t.gesture.angle=n.angle,T(n.scale)&&n.scale!==1/0&&!isNaN(n.scale)&&(t.gesture.scale=n.scale)}}var Fe={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(e){var t=e.actions,n=e.Interactable,r=e.defaults;n.prototype.gesturable=function(e){return E(e)?(this.options.gesture.enabled=!1!==e.enabled,this.setPerAction("gesture",e),this.setOnEvents("gesture",e),this):k(e)?(this.options.gesture.enabled=e,this):this.options.gesture},t.map.gesture=Fe,t.methodDict.gesture="gesturable",r.actions.gesture=Fe.defaults},listeners:{"interactions:action-start":ze,"interactions:action-move":ze,"interactions:action-end":ze,"interactions:new":function(e){e.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(e){if(!(e.interaction.pointers.length<2)){var t=e.interactable.options.gesture;if(t&&t.enabled)return e.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""},filterEventType:function(e){return 0===e.search("gesture")}},je=Fe;function Ue(e,t,n,r,i,o,s){if(!t)return!1;if(!0===t){var a=T(o.width)?o.width:o.right-o.left,l=T(o.height)?o.height:o.bottom-o.top;if(s=Math.min(s,Math.abs(("left"===e||"right"===e?a:l)/2)),a<0&&("left"===e?e="right":"right"===e&&(e="left")),l<0&&("top"===e?e="bottom":"bottom"===e&&(e="top")),"left"===e){var c=a>=0?o.left:o.right;return n.x=0?o.top:o.bottom;return n.y(a>=0?o.right:o.left)-s;if("bottom"===e)return n.y>(l>=0?o.bottom:o.top)-s}return!!A(r)&&(A(t)?t===r:Y(r,t,i))}function Be(e){var t=e.iEvent,n=e.interaction;if("resize"===n.prepared.name&&n.resizeAxes){var r=t;n.interactable.options.resize.square?("y"===n.resizeAxes?r.delta.x=r.delta.y:r.delta.y=r.delta.x,r.axes="xy"):(r.axes=n.resizeAxes,"x"===n.resizeAxes?r.delta.y=0:"y"===n.resizeAxes&&(r.delta.x=0))}}var He,qe,Ve={id:"actions/resize",before:["actions/drag"],install:function(e){var t=e.actions,n=e.browser,r=e.Interactable,i=e.defaults;Ve.cursors=function(e){return e.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"}}(n),Ve.defaultMargin=n.supportsTouch||n.supportsPointerEvent?20:10,r.prototype.resizable=function(t){return function(e,t,n){return E(t)?(e.options.resize.enabled=!1!==t.enabled,e.setPerAction("resize",t),e.setOnEvents("resize",t),O(t.axis)&&/^x$|^y$|^xy$/.test(t.axis)?e.options.resize.axis=t.axis:null===t.axis&&(e.options.resize.axis=n.defaults.actions.resize.axis),k(t.preserveAspectRatio)?e.options.resize.preserveAspectRatio=t.preserveAspectRatio:k(t.square)&&(e.options.resize.square=t.square),e):k(t)?(e.options.resize.enabled=t,e):e.options.resize}(this,t,e)},t.map.resize=Ve,t.methodDict.resize="resizable",i.actions.resize=Ve.defaults},listeners:{"interactions:new":function(e){e.interaction.resizeAxes="xy"},"interactions:action-start":function(e){!function(e){var t=e.iEvent,n=e.interaction;if("resize"===n.prepared.name&&n.prepared.edges){var r=t,i=n.rect;n._rects={start:Q({},i),corrected:Q({},i),previous:Q({},i),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},r.edges=n.prepared.edges,r.rect=n._rects.corrected,r.deltaRect=n._rects.delta}}(e),Be(e)},"interactions:action-move":function(e){!function(e){var t=e.iEvent,n=e.interaction;if("resize"===n.prepared.name&&n.prepared.edges){var r=t,i=n.interactable.options.resize.invert,o="reposition"===i||"negate"===i,s=n.rect,a=n._rects,l=a.start,c=a.corrected,u=a.delta,d=a.previous;if(Q(d,c),o){if(Q(c,s),"reposition"===i){if(c.top>c.bottom){var h=c.top;c.top=c.bottom,c.bottom=h}if(c.left>c.right){var p=c.left;c.left=c.right,c.right=p}}}else c.top=Math.min(s.top,l.bottom),c.bottom=Math.max(s.bottom,l.top),c.left=Math.min(s.left,l.right),c.right=Math.max(s.right,l.left);for(var f in c.width=c.right-c.left,c.height=c.bottom-c.top,c)u[f]=c[f]-d[f];r.edges=n.prepared.edges,r.rect=c,r.deltaRect=u}}(e),Be(e)},"interactions:action-end":function(e){var t=e.iEvent,n=e.interaction;if("resize"===n.prepared.name&&n.prepared.edges){var r=t;r.edges=n.prepared.edges,r.rect=n._rects.corrected,r.deltaRect=n._rects.delta}},"auto-start:check":function(e){var t=e.interaction,n=e.interactable,r=e.element,i=e.rect,o=e.buttons;if(i){var s=Q({},t.coords.cur.page),a=n.options.resize;if(a&&a.enabled&&(!t.pointerIsDown||!/mouse|pointer/.test(t.pointerType)||0!=(o&a.mouseButtons))){if(E(a.edges)){var l={left:!1,right:!1,top:!1,bottom:!1};for(var c in l)l[c]=Ue(c,a.edges[c],s,t._latestPointer.eventTarget,r,i,a.margin||Ve.defaultMargin);l.left=l.left&&!l.right,l.top=l.top&&!l.bottom,(l.left||l.right||l.top||l.bottom)&&(e.action={name:"resize",edges:l})}else{var u="y"!==a.axis&&s.x>i.right-Ve.defaultMargin,d="x"!==a.axis&&s.y>i.bottom-Ve.defaultMargin;(u||d)&&(e.action={name:"resize",axes:(u?"x":"")+(d?"y":"")})}return!e.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(e){var t=e.edges,n=e.axis,r=e.name,i=Ve.cursors,o=null;if(n)o=i[r+n];else if(t){for(var s="",a=0,l=["top","bottom","left","right"];a=1){var c={x:Ze.x*l,y:Ze.y*l};if(c.x||c.y){var u=et(o);_(o)?o.scrollBy(c.x,c.y):o&&(o.scrollLeft+=c.x,o.scrollTop+=c.y);var d=et(o),h={x:d.x-u.x,y:d.y-u.y};(h.x||h.y)&&t.fire({type:"autoscroll",target:n,interactable:t,delta:h,interaction:e,container:o})}Ze.prevTime=s}Ze.isScrolling&&(Ke(Ze.i),Ze.i=Ge(Ze.scroll))},check:function(e,t){var n;return null==(n=e.options[t].autoScroll)?void 0:n.enabled},onInteractionMove:function(e){var t=e.interaction,n=e.pointer;if(t.interacting()&&Ze.check(t.interactable,t.prepared.name))if(t.simulation)Ze.x=Ze.y=0;else{var r,i,o,s,a=t.interactable,l=t.element,c=t.prepared.name,u=a.options[c].autoScroll,d=Qe(u.container,a,l);if(_(d))s=n.clientXd.innerWidth-Ze.margin,o=n.clientY>d.innerHeight-Ze.margin;else{var h=G(d);s=n.clientXh.right-Ze.margin,o=n.clientY>h.bottom-Ze.margin}Ze.x=i?1:s?-1:0,Ze.y=o?1:r?-1:0,Ze.isScrolling||(Ze.margin=u.margin,Ze.speed=u.speed,Ze.start(t))}}};function Qe(e,t,n){return(O(e)?ee(e,t,n):e)||b(n)}function et(e){return _(e)&&(e=window.document.body),{x:e.scrollLeft,y:e.scrollTop}}var tt={id:"auto-scroll",install:function(e){var t=e.defaults,n=e.actions;e.autoScroll=Ze,Ze.now=function(){return e.now()},n.phaselessTypes.autoscroll=!0,t.perAction.autoScroll=Ze.defaults},listeners:{"interactions:new":function(e){e.interaction.autoScroll=null},"interactions:destroy":function(e){e.interaction.autoScroll=null,Ze.stop(),Ze.interaction&&(Ze.interaction=null)},"interactions:stop":Ze.stop,"interactions:action-move":function(e){return Ze.onInteractionMove(e)}}},nt=tt;function rt(e,t){var n=!1;return function(){return n||(v.console.warn(t),n=!0),e.apply(this,arguments)}}function it(e,t){return e.name=t.name,e.axis=t.axis,e.edges=t.edges,e}function ot(e){return k(e)?(this.options.styleCursor=e,this):null===e?(delete this.options.styleCursor,this):this.options.styleCursor}function st(e){return C(e)?(this.options.actionChecker=e,this):null===e?(delete this.options.actionChecker,this):this.options.actionChecker}var at={id:"auto-start/interactableMethods",install:function(e){var t=e.Interactable;t.prototype.getAction=function(t,n,r,i){var o=function(e,t,n,r,i){var o=e.getRect(r),s={action:null,interactable:e,interaction:n,element:r,rect:o,buttons:t.buttons||{0:1,1:4,3:8,4:16}[t.button]};return i.fire("auto-start:check",s),s.action}(this,n,r,i,e);return this.options.actionChecker?this.options.actionChecker(t,n,o,this,i,r):o},t.prototype.ignoreFrom=rt(function(e){return this._backCompatOption("ignoreFrom",e)},"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),t.prototype.allowFrom=rt(function(e){return this._backCompatOption("allowFrom",e)},"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),t.prototype.actionChecker=st,t.prototype.styleCursor=ot}};function lt(e,t,n,r,i){return t.testIgnoreAllow(t.options[e.name],n,r)&&t.options[e.name].enabled&&ht(t,n,e,i)?e:null}function ct(e,t,n,r,i,o,s){for(var a=0,l=r.length;a=a)return!1;if(p.interactable===e){if((c+=f===n.name?1:0)>=o)return!1;if(p.element===t&&(u++,f===n.name&&u>=s))return!1}}}return a>0}function pt(e,t){return T(e)?(t.autoStart.maxInteractions=e,this):t.autoStart.maxInteractions}function ft(e,t,n){var r=n.autoStart.cursorElement;r&&r!==e&&(r.style.cursor=""),e.ownerDocument.documentElement.style.cursor=t,e.style.cursor=t,n.autoStart.cursorElement=t?e:null}function gt(e,t){var n=e.interactable,r=e.element,i=e.prepared;if("mouse"===e.pointerType&&n&&n.options.styleCursor){var o="";if(i.name){var s=n.options[i.name].cursorChecker;o=C(s)?s(i,n,r,e._interacting):t.actions.map[i.name].getCursor(i)}ft(e.element,o||"",t)}else t.autoStart.cursorElement&&ft(t.autoStart.cursorElement,"",t)}var mt={id:"auto-start/base",before:["actions"],install:function(e){var t=e.interactStatic,n=e.defaults;e.usePlugin(at),n.base.actionChecker=null,n.base.styleCursor=!0,Q(n.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),t.maxInteractions=function(t){return pt(t,e)},e.autoStart={maxInteractions:1/0,withinInteractionLimit:ht,cursorElement:null}},listeners:{"interactions:down":function(e,t){var n=e.interaction,r=e.pointer,i=e.event,o=e.eventTarget;n.interacting()||dt(n,ut(n,r,i,o,t),t)},"interactions:move":function(e,t){!function(e,t){var n=e.interaction,r=e.pointer,i=e.event,o=e.eventTarget;"mouse"!==n.pointerType||n.pointerIsDown||n.interacting()||dt(n,ut(n,r,i,o,t),t)}(e,t),function(e,t){var n=e.interaction;if(n.pointerIsDown&&!n.interacting()&&n.pointerWasMoved&&n.prepared.name){t.fire("autoStart:before-start",e);var r=n.interactable,i=n.prepared.name;i&&r&&(r.options[i].manualStart||!ht(r,n.element,n.prepared,t)?n.stop():(n.start(n.prepared,r,n.element),gt(n,t)))}}(e,t)},"interactions:stop":function(e,t){var n=e.interaction,r=n.interactable;r&&r.options.styleCursor&&ft(n.element,"",t)}},maxInteractions:pt,withinInteractionLimit:ht,validateAction:lt},vt=mt,yt={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(e,t){var n=e.interaction,r=e.eventTarget,i=e.dx,o=e.dy;if("drag"===n.prepared.name){var s=Math.abs(i),a=Math.abs(o),l=n.interactable.options.drag,c=l.startAxis,u=s>a?"x":s0&&(t.autoStartHoldTimer=setTimeout(function(){t.start(t.prepared,t.interactable,t.element)},n))},"interactions:move":function(e){var t=e.interaction,n=e.duplicate;t.autoStartHoldTimer&&t.pointerWasMoved&&!n&&(clearTimeout(t.autoStartHoldTimer),t.autoStartHoldTimer=null)},"autoStart:before-start":function(e){var t=e.interaction;bt(t)>0&&(t.prepared.name=null)}},getHoldDuration:bt},xt=wt,_t={id:"auto-start",install:function(e){e.usePlugin(vt),e.usePlugin(xt),e.usePlugin(yt)}},St=function(e){return/^(always|never|auto)$/.test(e)?(this.options.preventDefault=e,this):k(e)?(this.options.preventDefault=e?"always":"never",this):this.options.preventDefault};function Et(e){var t=e.interaction,n=e.event;t.interactable&&t.interactable.checkAndPreventDefault(n)}var Ct={id:"core/interactablePreventDefault",install:function(e){var t=e.Interactable;t.prototype.preventDefault=St,t.prototype.checkAndPreventDefault=function(t){return function(e,t,n){var r=e.options.preventDefault;if("never"!==r)if("always"!==r){if(t.events.supportsPassive&&/^touch(start|move)$/.test(n.type)){var i=b(n.target).document,o=t.getDocOptions(i);if(!o||!o.events||!1!==o.events.passive)return}/^(mouse|pointer|touch)*(down|start)/i.test(n.type)||A(n.target)&&q(n.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||n.preventDefault()}else n.preventDefault()}(this,e,t)},e.interactions.docEvents.push({type:"dragstart",listener:function(t){for(var n=0,r=e.interactions.list;n150)return null;var t=180*Math.atan2(e.prevEvent.velocityY,e.prevEvent.velocityX)/Math.PI;t<0&&(t+=360);var n=112.5<=t&&t<247.5,r=202.5<=t&&t<337.5;return{up:r,down:!r&&22.5<=t&&t<157.5,left:n,right:!n&&(292.5<=t||t<67.5),angle:t,speed:e.prevEvent.speed,velocity:{x:e.prevEvent.velocityX,y:e.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}]),n}(Ee);Object.defineProperties(Mt.prototype,{pageX:{get:function(){return this.page.x},set:function(e){this.page.x=e}},pageY:{get:function(){return this.page.y},set:function(e){this.page.y=e}},clientX:{get:function(){return this.client.x},set:function(e){this.client.x=e}},clientY:{get:function(){return this.client.y},set:function(e){this.client.y=e}},dx:{get:function(){return this.delta.x},set:function(e){this.delta.x=e}},dy:{get:function(){return this.delta.y},set:function(e){this.delta.y=e}},velocityX:{get:function(){return this.velocity.x},set:function(e){this.velocity.x=e}},velocityY:{get:function(){return this.velocity.y},set:function(e){this.velocity.y=e}}});var $t=s(function e(t,n,r,o,s){i(this,e),this.id=void 0,this.pointer=void 0,this.event=void 0,this.downTime=void 0,this.downTarget=void 0,this.id=t,this.pointer=n,this.event=r,this.downTime=o,this.downTarget=s}),Dt=function(e){return e.interactable="",e.element="",e.prepared="",e.pointerIsDown="",e.pointerWasMoved="",e._proxy="",e}({}),zt=function(e){return e.start="",e.move="",e.end="",e.stop="",e.interacting="",e}({}),Ft=0,jt=function(){function e(t){var n=this,r=t.pointerType,o=t.scopeFire;i(this,e),this.interactable=null,this.element=null,this.rect=null,this._rects=void 0,this.edges=null,this._scopeFire=void 0,this.prepared={name:null,axis:null,edges:null},this.pointerType=void 0,this.pointers=[],this.downEvent=null,this.downPointer={},this._latestPointer={pointer:null,event:null,eventTarget:null},this.prevEvent=null,this.pointerIsDown=!1,this.pointerWasMoved=!1,this._interacting=!1,this._ending=!1,this._stopped=!0,this._proxy=void 0,this.simulation=null,this.doMove=rt(function(e){this.move(e)},"The interaction.doMove() method has been renamed to interaction.move()"),this.coords={start:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},prev:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},cur:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},delta:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},velocity:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}},this._id=Ft++,this._scopeFire=o,this.pointerType=r;var s=this;this._proxy={};var a=function(e){Object.defineProperty(n._proxy,e,{get:function(){return s[e]}})};for(var l in Dt)a(l);var c=function(e){Object.defineProperty(n._proxy,e,{value:function(){return s[e].apply(s,arguments)}})};for(var u in zt)c(u);this._scopeFire("interactions:new",{interaction:this})}return s(e,[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(e,t,n){var r=this.updatePointer(e,t,n,!0),i=this.pointers[r];this._scopeFire("interactions:down",{pointer:e,event:t,eventTarget:n,pointerIndex:r,pointerInfo:i,type:"down",interaction:this})}},{key:"start",value:function(e,t,n){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<("gesture"===e.name?2:1)||!t.options[e.name].enabled)&&(it(this.prepared,e),this.interactable=t,this.element=n,this.rect=t.getRect(n),this.edges=this.prepared.edges?Q({},this.prepared.edges):{left:!0,right:!0,top:!0,bottom:!0},this._stopped=!1,this._interacting=this._doPhase({interaction:this,event:this.downEvent,phase:"start"})&&!this._stopped,this._interacting)}},{key:"pointerMove",value:function(e,t,n){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(e,t,n,!1);var r,i,o=this.coords.cur.page.x===this.coords.prev.page.x&&this.coords.cur.page.y===this.coords.prev.page.y&&this.coords.cur.client.x===this.coords.prev.client.x&&this.coords.cur.client.y===this.coords.prev.client.y;this.pointerIsDown&&!this.pointerWasMoved&&(r=this.coords.cur.client.x-this.coords.start.client.x,i=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=le(r,i)>this.pointerMoveTolerance);var s,a,l,c=this.getPointerIndex(e),u={pointer:e,pointerIndex:c,pointerInfo:this.pointers[c],event:t,type:"move",eventTarget:n,dx:r,dy:i,duplicate:o,interaction:this};o||(s=this.coords.velocity,a=this.coords.delta,l=Math.max(a.timeStamp/1e3,.001),s.page.x=a.page.x/l,s.page.y=a.page.y/l,s.client.x=a.client.x/l,s.client.y=a.client.y/l,s.timeStamp=l),this._scopeFire("interactions:move",u),o||this.simulation||(this.interacting()&&(u.type=null,this.move(u)),this.pointerWasMoved&&de(this.coords.prev,this.coords.cur))}},{key:"move",value:function(e){e&&e.event||he(this.coords.delta),(e=Q({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},e||{})).phase="move",this._doPhase(e)}},{key:"pointerUp",value:function(e,t,n,r){var i=this.getPointerIndex(e);-1===i&&(i=this.updatePointer(e,t,n,!1));var o=/cancel$/i.test(t.type)?"cancel":"up";this._scopeFire("interactions:".concat(o),{pointer:e,pointerIndex:i,pointerInfo:this.pointers[i],event:t,eventTarget:n,type:o,curEventTarget:r,interaction:this}),this.simulation||this.end(t),this.removePointer(e,t)}},{key:"documentBlur",value:function(e){this.end(e),this._scopeFire("interactions:blur",{event:e,type:"blur",interaction:this})}},{key:"end",value:function(e){var t;this._ending=!0,e=e||this._latestPointer.event,this.interacting()&&(t=this._doPhase({event:e,interaction:this,phase:"end"})),this._ending=!1,!0===t&&this.stop()}},{key:"currentAction",value:function(){return this._interacting?this.prepared.name:null}},{key:"interacting",value:function(){return this._interacting}},{key:"stop",value:function(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}},{key:"getPointerIndex",value:function(e){var t=me(e);return"mouse"===this.pointerType||"pen"===this.pointerType?this.pointers.length-1:ke(this.pointers,function(e){return e.id===t})}},{key:"getPointerInfo",value:function(e){return this.pointers[this.getPointerIndex(e)]}},{key:"updatePointer",value:function(e,t,n,r){var i,o,s,a=me(e),l=this.getPointerIndex(e),c=this.pointers[l];return r=!1!==r&&(r||/(down|start)$/i.test(t.type)),c?c.pointer=e:(c=new $t(a,e,t,null,null),l=this.pointers.length,this.pointers.push(c)),function(e,t,n){var r=t.length>1?ye(t):t[0];ge(r,e.page),function(e,t){t=t||{},j.isOperaMobile&&pe(e)?fe("screen",e,t):fe("client",e,t)}(r,e.client),e.timeStamp=n}(this.coords.cur,this.pointers.map(function(e){return e.pointer}),this._now()),i=this.coords.delta,o=this.coords.prev,s=this.coords.cur,i.page.x=s.page.x-o.page.x,i.page.y=s.page.y-o.page.y,i.client.x=s.client.x-o.client.x,i.client.y=s.client.y-o.client.y,i.timeStamp=s.timeStamp-o.timeStamp,r&&(this.pointerIsDown=!0,c.downTime=this.coords.cur.timeStamp,c.downTarget=n,ue(this.downPointer,e),this.interacting()||(de(this.coords.start,this.coords.cur),de(this.coords.prev,this.coords.cur),this.downEvent=t,this.pointerWasMoved=!1)),this._updateLatestPointer(e,t,n),this._scopeFire("interactions:update-pointer",{pointer:e,event:t,eventTarget:n,down:r,pointerInfo:c,pointerIndex:l,interaction:this}),l}},{key:"removePointer",value:function(e,t){var n=this.getPointerIndex(e);if(-1!==n){var r=this.pointers[n];this._scopeFire("interactions:remove-pointer",{pointer:e,event:t,eventTarget:null,pointerIndex:n,pointerInfo:r,interaction:this}),this.pointers.splice(n,1),this.pointerIsDown=!1}}},{key:"_updateLatestPointer",value:function(e,t,n){this._latestPointer.pointer=e,this._latestPointer.event=t,this._latestPointer.eventTarget=n}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(e,t,n,r){return new Mt(this,e,this.prepared.name,t,this.element,n,r)}},{key:"_fireEvent",value:function(e){var t;null==(t=this.interactable)||t.fire(e),(!this.prevEvent||e.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=e)}},{key:"_doPhase",value:function(e){var t=e.event,n=e.phase,r=e.preEnd,i=e.type,o=this.rect;if(o&&"move"===n&&(ie(this.edges,o,this.coords.delta[this.interactable.options.deltaSource]),o.width=o.right-o.left,o.height=o.bottom-o.top),!1===this._scopeFire("interactions:before-action-".concat(n),e))return!1;var s=e.iEvent=this._createPreparedEvent(t,n,r,i);return this._scopeFire("interactions:action-".concat(n),e),"start"===n&&(this.prevEvent=s),this._fireEvent(s),this._scopeFire("interactions:after-action-".concat(n),e),!0}},{key:"_now",value:function(){return Date.now()}}]),e}();function Ut(e){Bt(e.interaction)}function Bt(e){if(!function(e){return!(!e.offset.pending.x&&!e.offset.pending.y)}(e))return!1;var t=e.offset.pending;return qt(e.coords.cur,t),qt(e.coords.delta,t),ie(e.edges,e.rect,t),t.x=0,t.y=0,!0}function Ht(e){var t=e.x,n=e.y;this.offset.pending.x+=t,this.offset.pending.y+=n,this.offset.total.x+=t,this.offset.total.y+=n}function qt(e,t){var n=e.page,r=e.client,i=t.x,o=t.y;n.x+=i,n.y+=o,r.x+=i,r.y+=o}zt.offsetBy="";var Vt={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(e){e.Interaction.prototype.offsetBy=Ht},listeners:{"interactions:new":function(e){e.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(e){return function(e){e.pointerIsDown&&(qt(e.coords.cur,e.offset.total),e.offset.pending.x=0,e.offset.pending.y=0)}(e.interaction)},"interactions:before-action-start":Ut,"interactions:before-action-move":Ut,"interactions:before-action-end":function(e){var t=e.interaction;if(Bt(t))return t.move({offset:!0}),t.end(),!1},"interactions:stop":function(e){var t=e.interaction;t.offset.total.x=0,t.offset.total.y=0,t.offset.pending.x=0,t.offset.pending.y=0}}},Wt=Vt,Yt=function(){function e(t){i(this,e),this.active=!1,this.isModified=!1,this.smoothEnd=!1,this.allowResume=!1,this.modification=void 0,this.modifierCount=0,this.modifierArg=void 0,this.startCoords=void 0,this.t0=0,this.v0=0,this.te=0,this.targetOffset=void 0,this.modifiedOffset=void 0,this.currentOffset=void 0,this.lambda_v0=0,this.one_ve_v0=0,this.timeout=void 0,this.interaction=void 0,this.interaction=t}return s(e,[{key:"start",value:function(e){var t=this.interaction,n=Xt(t);if(!n||!n.enabled)return!1;var r=t.coords.velocity.client,i=le(r.x,r.y),o=this.modification||(this.modification=new Ot(t));if(o.copyFrom(t.modification),this.t0=t._now(),this.allowResume=n.allowResume,this.v0=i,this.currentOffset={x:0,y:0},this.startCoords=t.coords.cur.page,this.modifierArg=o.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-t.coords.cur.timeStamp<50&&i>n.minSpeed&&i>n.endSpeed)this.startInertia();else{if(o.result=o.setAll(this.modifierArg),!o.result.changed)return!1;this.startSmoothEnd()}return t.modification.result.rect=null,t.offsetBy(this.targetOffset),t._doPhase({interaction:t,event:e,phase:"inertiastart"}),t.offsetBy({x:-this.targetOffset.x,y:-this.targetOffset.y}),t.modification.result.rect=null,this.active=!0,t.simulation=this,!0}},{key:"startInertia",value:function(){var e=this,t=this.interaction.coords.velocity.client,n=Xt(this.interaction),r=n.resistance,i=-Math.log(n.endSpeed/this.v0)/r;this.targetOffset={x:(t.x-i)/r,y:(t.y-i)/r},this.te=i,this.lambda_v0=r/this.v0,this.one_ve_v0=1-n.endSpeed/this.v0;var o=this.modification,s=this.modifierArg;s.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},o.result=o.setAll(s),o.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+o.result.delta.x,y:this.targetOffset.y+o.result.delta.y}),this.onNextFrame(function(){return e.inertiaTick()})}},{key:"startSmoothEnd",value:function(){var e=this;this.smoothEnd=!0,this.isModified=!0,this.targetOffset={x:this.modification.result.delta.x,y:this.modification.result.delta.y},this.onNextFrame(function(){return e.smoothEndTick()})}},{key:"onNextFrame",value:function(e){var t=this;this.timeout=Ge(function(){t.active&&e()})}},{key:"inertiaTick",value:function(){var e,t,n,r,i,o=this,s=this.interaction,a=Xt(s).resistance,l=(s._now()-this.t0)/1e3;if(l=0;s--){var p=d[s];if(p.selector===e&&p.context===t){for(var f=p.listeners,g=f.length-1;g>=0;g--){var m=f[g];if(m.func===i&&rn(m.options,u)){f.splice(g,1),f.length||(d.splice(s,1),a(t,n,l),a(t,n,c,!0)),h=!0;break}}if(h)break}}},delegateListener:l,delegateUseCapture:c,delegatedEvents:r,documents:i,targets:n,supportsOptions:!1,supportsPassive:!1};function s(e,t,r,i){if(e.addEventListener){var s=nn(i),a=Oe(n,function(t){return t.eventTarget===e});a||(a={eventTarget:e,events:{}},n.push(a)),a.events[t]||(a.events[t]=[]),Oe(a.events[t],function(e){return e.func===r&&rn(e.options,s)})||(e.addEventListener(t,r,o.supportsOptions?s:s.capture),a.events[t].push({func:r,options:s}))}}function a(e,t,r,i){if(e.addEventListener&&e.removeEventListener){var s=ke(n,function(t){return t.eventTarget===e}),l=n[s];if(l&&l.events)if("all"!==t){var c=!1,u=l.events[t];if(u){if("all"===r){for(var d=u.length-1;d>=0;d--){var h=u[d];a(e,t,h.func,h.options)}return}for(var p=nn(i),f=0;f=2)continue;if(!i.interacting()&&t===i.pointerType)return i}return null}};function an(e,t){return e.pointers.some(function(e){return e.id===t})}var ln=sn,cn=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function un(e,t){return function(n){var r=t.interactions.list,i=_e(n),o=Se(n),s=o[0],a=o[1],l=[];if(/^touch/.test(n.type)){t.prevTouchTime=t.now();for(var c=0,u=n.changedTouches;c=0;r--){var i=t.interactions.list[r];i.interactable===n&&(i.stop(),t.fire("interactions:destroy",{interaction:i}),i.destroy(),t.interactions.list.length>2&&t.interactions.list.splice(r,1))}}},onDocSignal:hn,doOnInteractions:un,methodNames:cn},fn=pn,gn=function(e){return e[e.On=0]="On",e[e.Off=1]="Off",e}(gn||{}),mn=function(){function e(t,n,r,o){i(this,e),this.target=void 0,this.options=void 0,this._actions=void 0,this.events=new en,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._actions=n.actions,this.target=t,this._context=n.context||r,this._win=b(Z(t)?this._context:t),this._doc=this._win.document,this._scopeEvents=o,this.set(n)}return s(e,[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(e,t){return C(t.onstart)&&this.on("".concat(e,"start"),t.onstart),C(t.onmove)&&this.on("".concat(e,"move"),t.onmove),C(t.onend)&&this.on("".concat(e,"end"),t.onend),C(t.oninertiastart)&&this.on("".concat(e,"inertiastart"),t.oninertiastart),this}},{key:"updatePerActionListeners",value:function(e,t,n){var r,i=this,o=null==(r=this._actions.map[e])?void 0:r.filterEventType,s=function(e){return(null==o||o(e))&&Tt(e,i._actions)};(P(t)||E(t))&&this._onOff(gn.Off,e,t,void 0,s),(P(n)||E(n))&&this._onOff(gn.On,e,n,void 0,s)}},{key:"setPerAction",value:function(e,t){var n=this._defaults;for(var r in t){var i=r,o=this.options[e],s=t[i];"listeners"===i&&this.updatePerActionListeners(e,o.listeners,s),P(s)?o[i]=Te(s):R(s)?(o[i]=Q(o[i]||{},kt(s)),E(n.perAction[i])&&"enabled"in n.perAction[i]&&(o[i].enabled=!1!==s.enabled)):k(s)&&E(n.perAction[i])?o[i].enabled=s:o[i]=s}}},{key:"getRect",value:function(e){return e=e||(A(this.target)?this.target:null),O(this.target)&&(e=e||this._context.querySelector(this.target)),K(e)}},{key:"rectChecker",value:function(e){var t=this;return C(e)?(this.getRect=function(n){var r=Q({},e.call(t,n));return"width"in r||(r.width=r.right-r.left,r.height=r.bottom-r.top),r},this):null===e?(delete this.getRect,this):this.getRect}},{key:"_backCompatOption",value:function(e,t){if(Z(t)||E(t)){for(var n in this.options[e]=t,this._actions.map)this.options[n][e]=t;return this}return this.options[e]}},{key:"origin",value:function(e){return this._backCompatOption("origin",e)}},{key:"deltaSource",value:function(e){return"page"===e||"client"===e?(this.options.deltaSource=e,this):this.options.deltaSource}},{key:"getAllElements",value:function(){var e=this.target;return O(e)?Array.from(this._context.querySelectorAll(e)):C(e)&&e.getAllElements?e.getAllElements():A(e)?[e]:[]}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(e){return this._context===e.ownerDocument||U(this._context,e)}},{key:"testIgnoreAllow",value:function(e,t,n){return!this.testIgnore(e.ignoreFrom,t,n)&&this.testAllow(e.allowFrom,t,n)}},{key:"testAllow",value:function(e,t,n){return!e||!!A(n)&&(O(e)?Y(n,e,t):!!A(e)&&U(e,n))}},{key:"testIgnore",value:function(e,t,n){return!(!e||!A(n))&&(O(e)?Y(n,e,t):!!A(e)&&U(e,n))}},{key:"fire",value:function(e){return this.events.fire(e),this}},{key:"_onOff",value:function(e,t,n,r,i){E(t)&&!P(t)&&(r=n,n=null);var o=se(t,n,i);for(var s in o){"wheel"===s&&(s=j.wheelEvent);for(var a=0,l=o[s];a=0;n--){var r=t[n],i=r.selector,o=r.context,s=r.listeners;i===this.target&&o===this._context&&t.splice(n,1);for(var a=s.length-1;a>=0;a--)this._scopeEvents.removeDelegate(this.target,this._context,e,s[a][0],s[a][1])}else this._scopeEvents.remove(this.target,"all")}}]),e}(),vn=function(){function e(t){var n=this;i(this,e),this.list=[],this.selectorMap={},this.scope=void 0,this.scope=t,t.addListeners({"interactable:unset":function(e){var t=e.interactable,r=t.target,i=O(r)?n.selectorMap[r]:r[n.scope.id],o=ke(i,function(e){return e===t});i.splice(o,1)}})}return s(e,[{key:"new",value:function(e,t){t=Q(t||{},{actions:this.scope.actions});var n=new this.scope.Interactable(e,t,this.scope.document,this.scope.events);return this.scope.addDocument(n._doc),this.list.push(n),O(e)?(this.selectorMap[e]||(this.selectorMap[e]=[]),this.selectorMap[e].push(n)):(n.target[this.scope.id]||Object.defineProperty(e,this.scope.id,{value:[],configurable:!0}),e[this.scope.id].push(n)),this.scope.fire("interactable:new",{target:e,options:t,interactable:n,win:this.scope._win}),n}},{key:"getExisting",value:function(e,t){var n=t&&t.context||this.scope.document,r=O(e),i=r?this.selectorMap[e]:e[this.scope.id];if(i)return Oe(i,function(t){return t._context===n&&(r||t.inContext(e))})}},{key:"forEachMatch",value:function(e,t){for(var n=0,r=this.list;nMath.abs(u.y),c.coords,c.rect),Q(i,c.coords)),c.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function kn(e,t,n){var r=e.startCoords,i=e.edgeSign;t?n.y=r.y+(n.x-r.x)*i.y:n.x=r.x+(n.y-r.y)*i.x}function On(e,t,n,r){var i=e.startRect,o=e.startCoords,s=e.ratio,a=e.edgeSign;if(t){var l=r.width/s;n.y=o.y+(l-i.height)*a.y}else{var c=r.height*s;n.x=o.x+(c-i.width)*a.x}}var An=Rt(Tn,"aspectRatio"),Rn=function(){};Rn._defaults={};var Pn=Rn;function In(e,t,n){return C(e)?te(e,t.interactable,t.element,[n.x,n.y,t]):te(e,t.interactable,t.element)}var Nn={start:function(e){var t=e.rect,n=e.startOffset,r=e.state,i=e.interaction,o=e.pageCoords,s=r.options,a=s.elementRect,l=Q({left:0,top:0,right:0,bottom:0},s.offset||{});if(t&&a){var c=In(s.restriction,i,o);if(c){var u=c.right-c.left-t.width,d=c.bottom-c.top-t.height;u<0&&(l.left+=u,l.right+=u),d<0&&(l.top+=d,l.bottom+=d)}l.left+=n.left-t.width*a.left,l.top+=n.top-t.height*a.top,l.right+=n.right-t.width*(1-a.right),l.bottom+=n.bottom-t.height*(1-a.bottom)}r.offset=l},set:function(e){var t=e.coords,n=e.interaction,r=e.state,i=r.options,o=r.offset,s=In(i.restriction,n,t);if(s){var a=function(e){return!e||"left"in e&&"top"in e||((e=Q({},e)).left=e.x||0,e.top=e.y||0,e.right=e.right||e.left+e.width,e.bottom=e.bottom||e.top+e.height),e}(s);t.x=Math.max(Math.min(a.right-o.right,t.x),a.left+o.left),t.y=Math.max(Math.min(a.bottom-o.bottom,t.y),a.top+o.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}},Ln=Rt(Nn,"restrict"),Mn={top:1/0,left:1/0,bottom:-1/0,right:-1/0},$n={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function Dn(e,t){for(var n=0,r=["top","left","bottom","right"];n{const t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.cw=e=>{var t;return()=>{if(e){var n=e;e=0,t={exports:{}},n.call(t.exports,t,t.exports)}return t.exports}},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.dn=e=>{var t=Object.getOwnPropertyDescriptor(e,"name");(!t||!t.writable&&t.configurable)&&Object.defineProperty(e,"name",{value:"default",configurable:!0})},(()=>{"use strict";var e=n.cw(function(e,t){t.A=(e,t)=>{const n=e.__vccOpts||e;for(const[e,r]of t)n[e]=r;return n}}),t={};n.r(t),n.d(t,{BaseTransition:()=>ei,BaseTransitionPropsValidators:()=>Jr,Comment:()=>Qs,DeprecationTypes:()=>null,EffectScope:()=>je,ErrorCodes:()=>Vn,ErrorTypeStrings:()=>sl,Fragment:()=>Js,KeepAlive:()=>Bi,ReactiveEffect:()=>Ve,Static:()=>ea,Suspense:()=>Vs,Teleport:()=>qr,Text:()=>Zs,TrackOpTypes:()=>Pn,Transition:()=>xl,TransitionGroup:()=>wc,TriggerOpTypes:()=>In,VueElement:()=>dc,assertNumber:()=>qn,callWithAsyncErrorHandling:()=>Yn,callWithErrorHandling:()=>Wn,camelize:()=>J,capitalize:()=>ee,cloneVNode:()=>ba,compatUtils:()=>null,computed:()=>Qa,createApp:()=>eu,createBlock:()=>ua,createCommentVNode:()=>_a,createElementBlock:()=>ca,createElementVNode:()=>ma,createHydrationRenderer:()=>Ns,createPropsRestProxy:()=>jo,createRenderer:()=>Is,createSSRApp:()=>tu,createSlots:()=>yo,createStaticVNode:()=>xa,createTextVNode:()=>wa,createVNode:()=>va,customRef:()=>En,defineAsyncComponent:()=>zi,defineComponent:()=>ai,defineCustomElement:()=>lc,defineEmits:()=>Oo,defineExpose:()=>Ao,defineModel:()=>Io,defineOptions:()=>Ro,defineProps:()=>ko,defineSSRCustomElement:()=>cc,defineSlots:()=>Po,devtools:()=>al,effect:()=>it,effectScope:()=>Ue,getCurrentInstance:()=>Ia,getCurrentScope:()=>Be,getCurrentWatcher:()=>$n,getTransitionRawChildren:()=>si,guardReactiveProps:()=>ya,h:()=>el,handleError:()=>Xn,hasInjectionContext:()=>Cr,hydrate:()=>Qc,hydrateOnIdle:()=>Ni,hydrateOnInteraction:()=>$i,hydrateOnMediaQuery:()=>Mi,hydrateOnVisible:()=>Li,initCustomFormatter:()=>tl,initDirectivesForSSR:()=>ou,inject:()=>Er,isMemoSame:()=>rl,isProxy:()=>ln,isReactive:()=>on,isReadonly:()=>sn,isRef:()=>pn,isRuntimeOnly:()=>qa,isShallow:()=>an,isVNode:()=>da,markRaw:()=>un,mergeDefaults:()=>zo,mergeModels:()=>Fo,mergeProps:()=>Ta,nextTick:()=>nr,nodeOps:()=>gl,normalizeClass:()=>ge,normalizeProps:()=>me,normalizeStyle:()=>ue,onActivated:()=>qi,onBeforeMount:()=>Zi,onBeforeUnmount:()=>no,onBeforeUpdate:()=>eo,onDeactivated:()=>Vi,onErrorCaptured:()=>ao,onMounted:()=>Qi,onRenderTracked:()=>so,onRenderTriggered:()=>oo,onScopeDispose:()=>He,onServerPrefetch:()=>io,onUnmounted:()=>ro,onUpdated:()=>to,onWatcherCleanup:()=>Dn,openBlock:()=>ra,patchProp:()=>sc,popScopeId:()=>yr,provide:()=>Sr,proxyRefs:()=>_n,pushScopeId:()=>vr,queuePostFlushCb:()=>or,reactive:()=>Qt,readonly:()=>tn,ref:()=>fn,registerRuntimeCompiler:()=>Ha,render:()=>Zc,renderList:()=>vo,renderSlot:()=>bo,resolveComponent:()=>uo,resolveDirective:()=>fo,resolveDynamicComponent:()=>po,resolveFilter:()=>null,resolveTransitionHooks:()=>ni,setBlockTracking:()=>aa,setDevtoolsHook:()=>ll,setTransitionHooks:()=>oi,shallowReactive:()=>en,shallowReadonly:()=>nn,shallowRef:()=>gn,ssrContextKey:()=>Tr,ssrUtils:()=>cl,stop:()=>ot,toDisplayString:()=>Le,toHandlerKey:()=>te,toHandlers:()=>xo,toRaw:()=>cn,toRef:()=>On,toRefs:()=>Cn,toValue:()=>wn,transformVNodeArgs:()=>pa,triggerRef:()=>yn,unref:()=>bn,useAttrs:()=>Mo,useCssModule:()=>fc,useCssVars:()=>jl,useHost:()=>hc,useId:()=>li,useModel:()=>rs,useSSRContext:()=>kr,useShadowRoot:()=>pc,useSlots:()=>Lo,useTemplateRef:()=>ui,useTransitionState:()=>Gr,vModelCheckbox:()=>Ic,vModelDynamic:()=>Fc,vModelRadio:()=>Lc,vModelSelect:()=>Mc,vModelText:()=>Pc,vShow:()=>Dl,version:()=>"3.5.42",warn:()=>ol,watch:()=>Pr,watchEffect:()=>Or,watchPostEffect:()=>Ar,watchSyncEffect:()=>Rr,withAsyncContext:()=>Uo,withCtx:()=>wr,withDefaults:()=>No,withDirectives:()=>xr,withKeys:()=>Wc,withMemo:()=>nl,withModifiers:()=>qc,withScopeId:()=>br});var r={};n.r(r),n.d(r,{hasBrowserEnv:()=>qg,hasStandardBrowserEnv:()=>Wg,hasStandardBrowserWebWorkerEnv:()=>Yg,navigator:()=>Vg,origin:()=>Xg});const i=class{constructor(e){return e.onRefreshUi((e,t)=>{this.init()}),this}init(){return $(".alert__close:not(.alert__close--initiated)").addClass("alert__close--initiated").on("click",function(){$(this).closest(".alert").remove()}),this}},o=".field .char-count:not(.counting)",s="counting",a=class{constructor(e){return this.adminController=e,this.adminController.onRefreshUi((e,t)=>{this.init(t)}),this}init(e){return $(e&&e.nodeType?e:document).find(o).addBack(o).each((e,t)=>{this.bind($(t))}),this}bind(e){let t=parseInt(e.data("max-length"),10),n=e.closest(".field"),r=e.closest(".input").find(".field-input").first();if(!r.length||!t)return e.addClass(s),this;r.wrap($("",{class:"char-count-wrap"})),r.parent().append(e);let i=()=>{let i=(r.val()||"").length;n.toggleClass("max-length-exceeded",i>t),e.text(i+" / "+t)};return r.on("input.charcount change.charcount",i),i(),e.addClass(s),this}},l="fieldset--collapsible",c="fieldset--collapsed",u="fieldset__toggle-label",d="fieldset--collapse-ignored",h=["closed","close","collapsed","false","0"],p=["","open","expanded","true","1"];class f{constructor(e,t,n){return this.adminController=e,this.element=t,this.legend=this.element.querySelector(":scope > legend"),this.expanded=!0,null===this.legend?(this.element.classList.add(d),this.adminController.warn("Ignoring [data-collapse] fieldset without a legend",this.element),this):null!==this.legend.querySelector("a[href], button, input, select, textarea, label, [tabindex], [contenteditable]")?(this.element.classList.add(d),this.adminController.warn("Ignoring [data-collapse] fieldset whose legend contains a control",this.element),this):(this.element.id||(this.element.id=`collapsible-fieldset-${n}`),this.element.classList.add(l),this.button=this.buildToggle(),this.setExpanded(this.getInitialState(),!1),this)}buildToggle(){let e=document.createElement("span");for(e.classList.add(u);this.legend.firstChild;)e.appendChild(this.legend.firstChild);let t=document.createElement("span");t.classList.add("fieldset__toggle-chevron","fa","fa-chevron-down"),t.setAttribute("aria-hidden","true");let n=document.createElement("button");return n.setAttribute("type","button"),n.classList.add("fieldset__toggle"),n.setAttribute("aria-controls",this.element.id),n.appendChild(e),n.appendChild(t),n.addEventListener("click",()=>{this.toggle()}),this.legend.appendChild(n),n}getInitialState(){if(this.containsError())return!0;let e=(this.element.dataset.collapse||"").trim().toLowerCase();return!(h.indexOf(e)>-1||(-1===p.indexOf(e)&&this.adminController.warn(`Unrecognised data-collapse value "${e}", opening fieldset`,this.element),0))}containsError(){let e=this.element.querySelectorAll("div.field.error, .system-alert.error, .alert.alert-danger, .error.show-in-tabs");return null!==e&&e.length>0}toggle(){return this.setExpanded(!this.expanded)}setExpanded(e,t=!0){return this.expanded=e,this.element.classList.toggle(c,!e),this.button.setAttribute("aria-expanded",e?"true":"false"),e&&t&&this.adminController.refreshUi(this.element),this}destroy(){if(this.button){let e=this.button.querySelector(`.${u}`);for(;e.firstChild;)this.legend.appendChild(e.firstChild);this.button.remove(),this.button=null}return this.element.classList.remove(l,c,d),this}}const g=class{constructor(e){return this.adminController=e,this.fieldsets=[],this.counter=0,this.adminController.onRefreshUi((e,t)=>{this.init(t)}).onDestroyUi((e,t)=>{this.destroy(t)}),this}init(e){let t=e instanceof Element||e instanceof Document?e:document,n=`fieldset[data-collapse]:not(.${l}):not(.${d})`,r=Array.from(t.querySelectorAll(n));t instanceof Element&&t.matches(n)&&r.unshift(t);for(let e=0;e!(!e||e===document||e.contains(t.element))||(t.destroy(),!1)),this}},m=class{constructor(e){return this.adminController=e,this.adminController.onRefreshUi((e,t)=>{this.init(t)}),this}init(e){return this.modal||(this.modal=this.adminController.getInstance("Modal").create()),$("a.confirm:not(.confirm--processed)",e).addClass("confirm--processed").on("click",e=>{let t=$(e.currentTarget),n=t.data("body")||"Please confirm you'd like to continue with this action.",r=t.data("title")||"Are you sure?";return n.replace(/\\n/g,"\n"),!n.length||(this.modal.setTitle(r).setBody(n).clearActions().addAction("OK",["btn-primary"],(e,n)=>{let r=t.attr("href"),i=t.attr("target");"_blank"===i?window.open(r,"_blank"):"_parent"===i?window.parent.location.href=r:"_top"===i?window.top.location.href=r:i?window.open(r,i):window.location.href=r,n.hide()}).addAction("Cancel",["btn-danger"],(e,t)=>{t.hide()}).show(),!1)}),this}};var v=n(576),y=n.n(v);class b{constructor(e,t){this.$body=$("body"),this.$el=$(t),this.$icon=$("
").text("Copied").css({position:"absolute",left:0,top:0,background:"#000000",color:"#ffffff",zIndex:1e6,padding:"0.25rem 0.5rem",borderRadius:"3px",border:"1px solid #ffffff",fontSize:"0.8rem"}),this.clipboardJs=new(y())(t),this.clipboardJs.on("success",t=>{e.log("Item copied!"),this.showIcon(),t.clearSelection()}).on("error",t=>{e.warn("Error",t),t.clearSelection()})}showIcon(){this.$icon.remove(),this.$body.append(this.$icon),this.calcOffsetTop(),this.$icon.css({opacity:0,left:this.calcOffsetLeft(),top:this.calcOffsetTop()}).animate({opacity:1},100).delay(250).animate({opacity:0},250),setTimeout(()=>{this.$icon.remove()},600)}calcOffsetLeft(){return this.$el.offset().left+this.$el.outerWidth()/2-this.$icon.outerWidth()/2}calcOffsetTop(){return this.$el.offset().top-this.$icon.outerHeight()-5}}const w=class{constructor(e){$(document).on("admin:js-copy-to-clipboard",(t,n)=>{e.log("Initiating new copy buttons"),$(n).addClass("js-copy-to-clipboard--initiated").each((t,n)=>{$(n).data("clipboardjs")||$(n).data("clipboardjs",new b(e,n))})}),e.onRefreshUi((e,t)=>{$(document).trigger("admin:js-copy-to-clipboard",[".js-copy-to-clipboard"])})}};function x(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return e=>e in t}const _={},S=[],E=()=>{},C=()=>!1,T=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),k=e=>e.startsWith("onUpdate:"),O=Object.assign,A=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},R=Object.prototype.hasOwnProperty,P=(e,t)=>R.call(e,t),I=Array.isArray,N=e=>"[object Map]"===H(e),L=e=>"[object Set]"===H(e),M=e=>"[object Date]"===H(e),D=e=>"function"==typeof e,z=e=>"string"==typeof e,F=e=>"symbol"==typeof e,j=e=>null!==e&&"object"==typeof e,U=e=>(j(e)||D(e))&&D(e.then)&&D(e.catch),B=Object.prototype.toString,H=e=>B.call(e),q=e=>H(e).slice(8,-1),V=e=>"[object Object]"===H(e),W=e=>z(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,Y=x(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),X=x("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),G=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},K=/-\w/g,J=G(e=>e.replace(K,e=>e.slice(1).toUpperCase())),Z=/\B([A-Z])/g,Q=G(e=>e.replace(Z,"-$1").toLowerCase()),ee=G(e=>e.charAt(0).toUpperCase()+e.slice(1)),te=G(e=>e?`on${ee(e)}`:""),ne=(e,t)=>!Object.is(e,t),re=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},oe=e=>{const t=parseFloat(e);return isNaN(t)?e:t},se=e=>{const t=z(e)?Number(e):NaN;return isNaN(t)?e:t};let ae;const le=()=>ae||(ae="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{}),ce=x("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol");function ue(e){if(I(e)){const t={};for(let n=0;n{if(e){const n=e.split(he);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function ge(e){let t="";if(z(e))t=e;else if(I(e))for(let n=0;n?@[\\\]^`{|}~]/g;function Ae(e,t){return e.replace(Oe,e=>t?'"'===e?'\\\\\\"':`\\\\${e}`:`\\${e}`)}function Re(e,t){if(e.size!==t.size)return!1;const n=Array.from(t),r=new Uint8Array(n.length);for(const t of e){let e=-1;for(let i=0;iPe(e,t))}const Ne=e=>!(!e||!0!==e.__v_isRef),Le=e=>z(e)?e:null==e?"":I(e)||j(e)&&(e.toString===B||!D(e.toString))?Ne(e)?Le(e.value):JSON.stringify(e,Me,2):String(e),Me=(e,t)=>Ne(t)?Me(e,t.value):N(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[$e(t,r)+" =>"]=n,e),{})}:L(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>$e(e))}:F(t)?$e(t):!j(t)||I(t)||V(t)?t:String(t),$e=(e,t="")=>{var n;return F(e)?`Symbol(${null!=(n=e.description)?n:t})`:e};function De(e){return null==e?"initial":"string"==typeof e?""===e?" ":e:("number"==typeof e&&Number.isFinite(e),String(e))}let ze,Fe;class je{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&ze&&(ze.active?(this.parent=ze,this.index=(ze.scopes||(ze.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){let e,t;if(this._isPaused=!0,this.scopes){const n=this.scopes.slice();for(e=0,t=n.length;e0&&0===--this._on){if(ze===this)ze=this.prevScope;else{let e=ze;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){let t,n;for(this._active=!1,t=0,n=this.effects.length;t0)return;if(Ye){let e=Ye;for(Ye=void 0;e;){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;We;){let t=We;for(We=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,1&t.flags)try{t.trigger()}catch(t){e||(e=t)}t=n}}if(e)throw e}function Ze(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Qe(e){let t,n=e.depsTail,r=n;for(;r;){const e=r.prevDep;-1===r.version?(r===n&&(n=e),nt(r),rt(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function et(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(tt(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function tt(e){if(4&e.flags&&!(16&e.flags))return;if(e.flags&=-17,e.globalVersion===dt)return;if(e.globalVersion=dt,!e.isSSR&&128&e.flags&&(!e.deps&&!e._dirty||!et(e)))return;e.flags|=2;const t=e.dep,n=Fe,r=st;Fe=e,st=!0;try{Ze(e);const n=e.fn(e._value);(0===t.version||ne(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{Fe=n,st=r,Qe(e),e.flags&=-3}}function nt(e,t=!1){const{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)nt(e,!0)}t||--n.sc||!n.map||n.map.delete(n.key)}function rt(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function it(e,t){e.effect instanceof Ve&&(e=e.effect.fn);const n=new Ve(e);t&&O(n,t);try{n.run()}catch(e){throw n.stop(),e}const r=n.run.bind(n);return r.effect=n,r}function ot(e){e.effect.stop()}let st=!0;const at=[];function lt(){at.push(st),st=!1}function ct(){const e=at.pop();st=void 0===e||e}function ut(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const e=Fe;Fe=void 0;try{t()}finally{Fe=e}}}let dt=0;class ht{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class pt{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!Fe||!st||Fe===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==Fe)t=this.activeLink=new ht(Fe,this),Fe.deps?(t.prevDep=Fe.depsTail,Fe.depsTail.nextDep=t,Fe.depsTail=t):Fe.deps=Fe.depsTail=t,ft(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){const e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=Fe.depsTail,t.nextDep=void 0,Fe.depsTail.nextDep=t,Fe.depsTail=t,Fe.deps===t&&(Fe.deps=e)}return t}trigger(e){this.version++,dt++,this.notify(e)}notify(e){Ke();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{Je()}}}function ft(e){if(e.dep.sc++,4&e.sub.flags){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)ft(e)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const gt=new WeakMap,mt=Symbol(""),vt=Symbol(""),yt=Symbol("");function bt(e,t,n){if(st&&Fe){let t=gt.get(e);t||gt.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new pt),r.map=t,r.key=n),r.track()}}function wt(e,t,n,r,i,o){const s=gt.get(e);if(!s)return void dt++;const a=e=>{e&&e.trigger()};if(Ke(),"clear"===t)s.forEach(a);else{const i=I(e),o=i&&W(n);if(i&&"length"===n){const e=Number(r);s.forEach((t,n)=>{("length"===n||n===yt||!F(n)&&n>=e)&&a(t)})}else switch((void 0!==n||s.has(void 0))&&a(s.get(n)),o&&a(s.get(yt)),t){case"add":i?o&&a(s.get("length")):(a(s.get(mt)),N(e)&&a(s.get(vt)));break;case"delete":i||(a(s.get(mt)),N(e)&&a(s.get(vt)));break;case"set":N(e)&&a(s.get(mt))}}Je()}function xt(e){const t=cn(e);return t===e?t:(bt(t,0,yt),an(e)?t:t.map(dn))}function _t(e){return bt(e=cn(e),0,yt),e}function St(e,t){return sn(e)?on(e)?hn(dn(t)):hn(t):dn(t)}const Et={__proto__:null,[Symbol.iterator](){return Ct(this,Symbol.iterator,e=>St(this,e))},concat(...e){return xt(this).concat(...e.map(e=>I(e)?xt(e):e))},entries(){return Ct(this,"entries",e=>(e[1]=St(this,e[1]),e))},every(e,t){return kt(this,"every",e,t,void 0,arguments)},filter(e,t){return kt(this,"filter",e,t,e=>e.map(e=>St(this,e)),arguments)},find(e,t){return kt(this,"find",e,t,e=>St(this,e),arguments)},findIndex(e,t){return kt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return kt(this,"findLast",e,t,e=>St(this,e),arguments)},findLastIndex(e,t){return kt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return kt(this,"forEach",e,t,void 0,arguments)},includes(...e){return At(this,"includes",e)},indexOf(...e){return At(this,"indexOf",e)},join(e){return xt(this).join(e)},lastIndexOf(...e){return At(this,"lastIndexOf",e)},map(e,t){return kt(this,"map",e,t,void 0,arguments)},pop(){return Rt(this,"pop")},push(...e){return Rt(this,"push",e)},reduce(e,...t){return Ot(this,"reduce",e,t)},reduceRight(e,...t){return Ot(this,"reduceRight",e,t)},shift(){return Rt(this,"shift")},some(e,t){return kt(this,"some",e,t,void 0,arguments)},splice(...e){return Rt(this,"splice",e)},toReversed(){return xt(this).toReversed()},toSorted(e){return xt(this).toSorted(e)},toSpliced(...e){return xt(this).toSpliced(...e)},unshift(...e){return Rt(this,"unshift",e)},values(){return Ct(this,"values",e=>St(this,e))}};function Ct(e,t,n){const r=_t(e),i=r[t]();return r===e||an(e)||(i._next=i.next,i.next=()=>{const e=i._next();return e.done||(e.value=n(e.value)),e}),i}const Tt=Array.prototype;function kt(e,t,n,r,i,o){const s=_t(e),a=s!==e&&!an(e),l=s[t];if(l!==Tt[t]){const t=l.apply(e,o);return a?dn(t):t}let c=n;s!==e&&(a?c=function(t,r){return n.call(this,St(e,t),r,e)}:n.length>2&&(c=function(t,r){return n.call(this,t,r,e)}));const u=l.call(s,c,r);return a&&i?i(u):u}function Ot(e,t,n,r){const i=_t(e),o=i!==e&&!an(e);let s=n,a=!1;i!==e&&(o?(a=0===r.length,s=function(t,r,i){return a&&(a=!1,t=St(e,t)),n.call(this,t,St(e,r),i,e)}):n.length>3&&(s=function(t,r,i){return n.call(this,t,r,i,e)}));const l=i[t](s,...r);return a?St(e,l):l}function At(e,t,n){const r=cn(e);bt(r,0,yt);const i=r[t](...n);return-1!==i&&!1!==i||!ln(n[0])?i:(n[0]=cn(n[0]),r[t](...n))}function Rt(e,t,n=[]){lt(),Ke();const r=cn(e)[t].apply(e,n);return Je(),ct(),r}const Pt=x("__proto__,__v_isRef,__isVue"),It=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(F));function Nt(e){F(e)||(e=String(e));const t=cn(this);return bt(t,0,e),t.hasOwnProperty(e)}class Lt{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if("__v_skip"===t)return e.__v_skip;const r=this._isReadonly,i=this._isShallow;if("__v_isReactive"===t)return!r;if("__v_isReadonly"===t)return r;if("__v_isShallow"===t)return i;if("__v_raw"===t)return n===(r?i?Zt:Jt:i?Kt:Gt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const o=I(e);if(!r){let e;if(o&&(e=Et[t]))return e;if("hasOwnProperty"===t)return Nt}const s=Reflect.get(e,t,pn(e)?e:n);if(F(t)?It.has(t):Pt(t))return s;if(r||bt(e,0,t),i)return s;if(pn(s)){const e=o&&W(t)?s:s.value;return r&&j(e)?tn(e):e}return j(s)?r?tn(s):Qt(s):s}}class Mt extends Lt{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t];const o=I(e)&&W(t);if(!this._isShallow){const e=sn(i);if(an(n)||sn(n)||(i=cn(i),n=cn(n)),!o&&pn(i)&&!pn(n))return e||(i.value=n),!0}const s=o?Number(t)e,Bt=e=>Reflect.getPrototypeOf(e);function Ht(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function qt(e,t){const n=function(e,t){const n={get(n){const r=this.__v_raw,i=cn(r),o=cn(n);e||(ne(n,o)&&bt(i,0,n),bt(i,0,o));const{has:s}=Bt(i),a=t?Ut:e?hn:dn;return s.call(i,n)?a(r.get(n)):s.call(i,o)?a(r.get(o)):void(r!==i&&r.get(n))},get size(){const t=this.__v_raw;return!e&&bt(cn(t),0,mt),t.size},has(t){const n=this.__v_raw,r=cn(n),i=cn(t);return e||(ne(t,i)&&bt(r,0,t),bt(r,0,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){const i=this,o=i.__v_raw,s=cn(o),a=t?Ut:e?hn:dn;return!e&&bt(s,0,mt),o.forEach((e,t)=>n.call(r,a(e),a(t),i))}};return O(n,e?{add:Ht("add"),set:Ht("set"),delete:Ht("delete"),clear:Ht("clear")}:{add(e){const n=cn(this),r=Bt(n),i=cn(e),o=t||an(e)||sn(e)?e:i;return r.has.call(n,o)||ne(e,o)&&r.has.call(n,e)||ne(i,o)&&r.has.call(n,i)||(n.add(o),wt(n,"add",o,o)),this},set(e,n){t||an(n)||sn(n)||(n=cn(n));const r=cn(this),{has:i,get:o}=Bt(r);let s=i.call(r,e);s||(e=cn(e),s=i.call(r,e));const a=o.call(r,e);return r.set(e,n),s?ne(n,a)&&wt(r,"set",e,n):wt(r,"add",e,n),this},delete(e){const t=cn(this),{has:n,get:r}=Bt(t);let i=n.call(t,e);i||(e=cn(e),i=n.call(t,e)),r&&r.call(t,e);const o=t.delete(e);return i&&wt(t,"delete",e,void 0),o},clear(){const e=cn(this),t=0!==e.size,n=e.clear();return t&&wt(e,"clear",void 0,void 0),n}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=function(e,t,n){return function(...r){const i=this.__v_raw,o=cn(i),s=N(o),a="entries"===e||e===Symbol.iterator&&s,l="keys"===e&&s,c=i[e](...r),u=n?Ut:t?hn:dn;return!t&&bt(o,0,l?vt:mt),O(Object.create(c),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:a?[u(e[0]),u(e[1])]:u(e),done:t}}})}}(r,e,t)}),n}(e,t);return(t,r,i)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(P(n,r)&&r in t?n:t,r,i)}const Vt={get:qt(!1,!1)},Wt={get:qt(!1,!0)},Yt={get:qt(!0,!1)},Xt={get:qt(!0,!0)},Gt=new WeakMap,Kt=new WeakMap,Jt=new WeakMap,Zt=new WeakMap;function Qt(e){return sn(e)?e:rn(e,!1,Dt,Vt,Gt)}function en(e){return rn(e,!1,Ft,Wt,Kt)}function tn(e){return rn(e,!0,zt,Yt,Jt)}function nn(e){return rn(e,!0,jt,Xt,Zt)}function rn(e,t,n,r,i){if(!j(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;if(e.__v_skip||!Object.isExtensible(e))return e;const o=i.get(e);if(o)return o;const s=function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(q(e));if(0===s)return e;const a=new Proxy(e,2===s?r:n);return i.set(e,a),a}function on(e){return sn(e)?on(e.__v_raw):!(!e||!e.__v_isReactive)}function sn(e){return!(!e||!e.__v_isReadonly)}function an(e){return!(!e||!e.__v_isShallow)}function ln(e){return!!e&&!!e.__v_raw}function cn(e){const t=e&&e.__v_raw;return t?cn(t):e}function un(e){return!P(e,"__v_skip")&&Object.isExtensible(e)&&ie(e,"__v_skip",!0),e}const dn=e=>j(e)?Qt(e):e,hn=e=>j(e)?tn(e):e;function pn(e){return!!e&&!0===e.__v_isRef}function fn(e){return mn(e,!1)}function gn(e){return mn(e,!0)}function mn(e,t){return pn(e)?e:new vn(e,t)}class vn{constructor(e,t){this.dep=new pt,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:cn(e),this._value=t?e:dn(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){const t=this._rawValue,n=this.__v_isShallow||an(e)||sn(e);e=n?e:cn(e),ne(e,t)&&(this._rawValue=e,this._value=n?e:dn(e),this.dep.trigger())}}function yn(e){e.dep&&e.dep.trigger()}function bn(e){return pn(e)?e.value:e}function wn(e){return D(e)?e():bn(e)}const xn={get:(e,t,n)=>"__v_raw"===t?e:bn(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return pn(i)&&!pn(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function _n(e){return on(e)?e:new Proxy(e,xn)}class Sn{constructor(e){this.__v_isRef=!0,this._value=void 0;const t=this.dep=new pt,{get:n,set:r}=e(t.track.bind(t),t.trigger.bind(t));this._get=n,this._set=r}get value(){return this._value=this._get()}set value(e){this._set(e)}}function En(e){return new Sn(e)}function Cn(e){const t=I(e)?new Array(e.length):{};for(const n in e)t[n]=An(e,n);return t}class Tn{constructor(e,t,n){this._object=e,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=F(t)?t:String(t),this._raw=cn(e);let r=!0,i=e;if(!I(e)||F(this._key)||!W(this._key))do{r=!ln(i)||an(i)}while(r&&(i=i.__v_raw));this._shallow=r}get value(){let e=this._object[this._key];return this._shallow&&(e=bn(e)),this._value=void 0===e?this._defaultValue:e}set value(e){if(this._shallow&&pn(this._raw[this._key])){const t=this._object[this._key];if(pn(t))return void(t.value=e)}this._object[this._key]=e}get dep(){return function(e,t){const n=gt.get(e);return n&&n.get(t)}(this._raw,this._key)}}class kn{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function On(e,t,n){return pn(e)?e:D(e)?new kn(e):j(e)&&arguments.length>1?An(e,t,n):fn(e)}function An(e,t,n){return new Tn(e,t,n)}class Rn{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new pt(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=dt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(8&this.flags||Fe===this))return Ge(this,!0),!0}get value(){const e=this.dep.track();return tt(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}const Pn={GET:"get",HAS:"has",ITERATE:"iterate"},In={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},Nn={},Ln=new WeakMap;let Mn;function $n(){return Mn}function Dn(e,t=!1,n=Mn){if(n){let t=Ln.get(n);t||Ln.set(n,t=[]),t.push(e)}}function zn(e,t=1/0,n){if(t<=0||!j(e)||e.__v_skip)return e;if(((n=n||new Map).get(e)||0)>=t)return e;if(n.set(e,t),t--,pn(e))zn(e.value,t,n);else if(I(e))for(let r=0;r{zn(e,t,n)});else if(V(e)){for(const r in e)zn(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&zn(e[r],t,n)}return e}const Fn=[];let jn=!1;function Un(e,...t){if(jn)return;jn=!0,lt();const n=Fn.length?Fn[Fn.length-1].component:null,r=n&&n.appContext.config.warnHandler,i=function(){let e=Fn[Fn.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}();if(r)Wn(r,n,11,[e+t.map(e=>{var t,n;return null!=(n=null==(t=e.toString)?void 0:t.call(e))?n:JSON.stringify(e)}).join(""),n&&n.proxy,i.map(({vnode:e})=>`at <${Za(n,e.type)}>`).join("\n"),i]);else{const n=[`[Vue warn]: ${e}`,...t];i.length&&n.push("\n",...function(e){const t=[];return e.forEach((e,n)=>{t.push(...0===n?[]:["\n"],...function({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=!!e.component&&null==e.component.parent,i=` at <${Za(e.component,e.type,r)}`,o=">"+n;return e.props?[i,...Bn(e.props),o]:[i+o]}(e))}),t}(i)),console.warn(...n)}ct(),jn=!1}function Bn(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(n=>{t.push(...Hn(n,e[n]))}),n.length>3&&t.push(" ..."),t}function Hn(e,t,n){return z(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):"number"==typeof t||"boolean"==typeof t||null==t?n?t:[`${e}=${t}`]:pn(t)?(t=Hn(e,cn(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):D(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=cn(t),n?t:[`${e}=`,t])}function qn(e,t){}const Vn={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"};function Wn(e,t,n,r){try{return r?e(...r):e()}catch(e){Xn(e,t,n)}}function Yn(e,t,n,r){if(D(e)){const i=Wn(e,t,n,r);return i&&U(i)&&i.catch(e=>{Xn(e,t,n)}),i}if(I(e)){const i=[];for(let o=0;o=lr(n)?Gn.push(e):Gn.splice(function(e){let t=Kn+1,n=Gn.length;for(;t>>1,i=Gn[r],o=lr(i);olr(e)-lr(t));if(Jn.length=0,Zn){for(let t=0;tnull==e.id?2&e.flags?-1:1/0:e.id;function cr(e){try{for(Kn=0;Knwr;function wr(e,t=fr,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&aa(-1);const i=mr(t),o=ta.length;let s;try{s=e(...n)}finally{for(let e=ta.length;e>o;e--)ia();mr(i),r._d&&aa(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function xr(e,t){if(null===fr)return e;const n=Xa(fr),r=e.dirs||(e.dirs=[]);for(let e=0;e1)return n&&D(t)?t.call(r&&r.proxy):t}}function Cr(){return!(!Ia()&&!ns)}const Tr=Symbol.for("v-scx"),kr=()=>Er(Tr);function Or(e,t){return Ir(e,null,t)}function Ar(e,t){return Ir(e,null,{flush:"post"})}function Rr(e,t){return Ir(e,null,{flush:"sync"})}function Pr(e,t,n){return Ir(e,t,n)}function Ir(e,t,n=_){const{immediate:r,deep:i,flush:o,once:s}=n,a=O({},n),l=t&&r||!t&&"post"!==o;let c;if(ja)if("sync"===o){const e=kr();c=e.__watcherHandles||(e.__watcherHandles=[])}else if(!l){const e=()=>{};return e.stop=E,e.resume=E,e.pause=E,e}const u=Pa;a.call=(e,t,n)=>Yn(e,u,t,n);let d=!1;"post"===o?a.scheduler=e=>{Ps(e,u&&u.suspense)}:"sync"!==o&&(d=!0,a.scheduler=(e,t)=>{t?e():rr(e)}),a.augmentJob=e=>{t&&(e.flags|=4),d&&(e.flags|=2,u&&(e.id=u.uid,e.i=u))};const h=function(e,t,n=_){const{immediate:r,deep:i,once:o,scheduler:s,augmentJob:a,call:l}=n,c=e=>i?e:an(e)||!1===i||0===i?zn(e,1):zn(e);let u,d,h,p,f=!1,g=!1;if(pn(e)?(d=()=>e.value,f=an(e)):on(e)?(d=()=>c(e),f=!0):I(e)?(g=!0,f=e.some(e=>on(e)||an(e)),d=()=>e.map(e=>pn(e)?e.value:on(e)?c(e):D(e)?l?l(e,2):e():void 0)):d=D(e)?t?l?()=>l(e,2):e:()=>{if(h){lt();try{h()}finally{ct()}}const t=Mn;Mn=u;try{return l?l(e,3,[p]):e(p)}finally{Mn=t}}:E,t&&i){const e=d,t=!0===i?1/0:i;d=()=>zn(e(),t)}const m=Be(),v=()=>{u.stop(),m&&m.active&&A(m.effects,u)};if(o&&t){const e=t;t=(...t)=>{const n=e(...t);return v(),n}}let y=g?new Array(e.length).fill(Nn):Nn;const b=e=>{if(1&u.flags&&(u.dirty||e))if(t){const n=u.run();if(e||i||f||(g?n.some((e,t)=>ne(e,y[t])):ne(n,y))){h&&h();const e=Mn;Mn=u;try{const e=[n,y===Nn?void 0:g&&y[0]===Nn?[]:y,p];y=n,l?l(t,3,e):t(...e)}finally{Mn=e}}}else u.run()};return a&&a(b),u=new Ve(d),u.scheduler=s?()=>s(b,!1):b,p=e=>Dn(e,!1,u),h=u.onStop=()=>{const e=Ln.get(u);if(e){if(l)l(e,4);else for(const t of e)t();Ln.delete(u)}},t?r?b(!0):y=u.run():s?s(b.bind(null,!0),!0):u.run(),v.pause=u.pause.bind(u),v.resume=u.resume.bind(u),v.stop=v,v}(e,t,a);return ja&&(c?c.push(h):l&&h()),h}function Nr(e,t,n){const r=this.proxy,i=z(e)?e.includes(".")?Lr(r,e):()=>r[e]:e.bind(r,r);let o;D(t)?o=t:(o=t.handler,n=t);const s=Ma(this),a=Ir(i,o.bind(r),n);return s(),a}function Lr(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;ee.__isTeleport,zr=e=>e&&(e.disabled||""===e.disabled),Fr=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,jr=e=>"function"==typeof MathMLElement&&e instanceof MathMLElement,Ur=(e,t)=>{const n=e&&e.to;return z(n)?t?t(n):null:n},Br={name:"Teleport",__isTeleport:!0,process(e,t,n,r,i,o,s,a,l,c){const{mc:u,pc:d,pbc:h,o:{insert:p,querySelector:f,createText:g,createComment:m,parentNode:v}}=c,y=zr(t.props);let{dynamicChildren:b}=t;const w=(e,t,n)=>{16&e.shapeFlag&&u(e.children,t,n,i,o,s,a,l)},x=(e=t)=>{const n=zr(e.props),r=e.target=Ur(e.props,f),o=Wr(r,e,g,p);r&&("svg"!==s&&Fr(r)?s="svg":"mathml"!==s&&jr(r)&&(s="mathml"),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(r),n||(w(e,r,o),Vr(e,!1)))},_=e=>{const t=()=>{if(Mr.get(e)===t){if(Mr.delete(e),zr(e.props)){const t=v(e.el)||n;w(e,t,e.anchor),Vr(e,!0)}x(e)}};Mr.set(e,t),Ps(t,o)};if(null==e){const e=t.el=g(""),i=t.anchor=g("");if(p(e,n,r),p(i,n,r),(S=t.props)&&(S.defer||""===S.defer)||o&&o.pendingBranch)return void _(t);y&&(w(t,n,i),Vr(t,!0)),x()}else{t.el=e.el;const r=t.anchor=e.anchor,u=Mr.get(e);if(u)return u.flags|=8,Mr.delete(e),void _(t);t.targetStart=e.targetStart;const p=t.target=e.target,g=t.targetAnchor=e.targetAnchor,m=zr(e.props),v=m?n:p,w=m?r:g;if("svg"===s||Fr(p)?s="svg":("mathml"===s||jr(p))&&(s="mathml"),b?(h(e.dynamicChildren,b,v,i,o,s,a),zs(e,t,!0)):l||d(e,t,v,w,i,o,s,a,!1),y)m?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Hr(t,n,r,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=Ur(t.props,f);e&&(t.target=e,Hr(t,e,null,c,0))}else m&&Hr(t,p,g,c,1);Vr(t,y)}var S},remove(e,t,n,{um:r,o:{remove:i}},o){const{shapeFlag:s,children:a,anchor:l,targetStart:c,targetAnchor:u,target:d,props:h}=e,p=zr(h),f=o||!p,g=Mr.get(e);if(g&&(g.flags|=8,Mr.delete(e)),d&&(i(c),i(u)),o&&i(l),!g&&(p||d)&&16&s)for(let e=0;e{e.isMounted=!0}),no(()=>{e.isUnmounting=!0}),e}const Kr=[Function,Array],Jr={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Kr,onEnter:Kr,onAfterEnter:Kr,onEnterCancelled:Kr,onBeforeLeave:Kr,onLeave:Kr,onAfterLeave:Kr,onLeaveCancelled:Kr,onBeforeAppear:Kr,onAppear:Kr,onAfterAppear:Kr,onAppearCancelled:Kr},Zr=e=>{const t=e.subTree;return t.component?Zr(t.component):t};function Qr(e){let t=e[0];if(e.length>1){let n=!1;for(const r of e)if(r.type!==Qs){t=r,n=!0;break}}return t}const ei={name:"BaseTransition",props:Jr,setup(e,{slots:t}){const n=Ia(),r=Gr();return()=>{const i=t.default&&si(t.default(),!0),o=i&&i.length?Qr(i):n.subTree?_a():void 0;if(!o)return;const s=cn(e),{mode:a}=s;if(r.isLeaving)return ri(o);const l=ii(o);if(!l)return ri(o);let c=ni(l,s,r,n,e=>c=e);l.type!==Qs&&oi(l,c);let u=n.subTree&&ii(n.subTree);if(u&&u.type!==Qs&&!ha(u,l)&&Zr(n).type!==Qs){let e=ni(u,s,r,n);if(oi(u,e),"out-in"===a&&l.type!==Qs)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,8&n.job.flags||n.update(),delete e.afterLeave,u=void 0},ri(o);"in-out"===a&&l.type!==Qs?e.delayLeave=(e,t,n)=>{ti(r,u)[String(u.key)]=u,e[Yr]=()=>{t(),e[Yr]=void 0,delete c.delayedLeave,u=void 0},c.delayedLeave=()=>{n(),delete c.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return o}}};function ti(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function ni(e,t,n,r,i){const{appear:o,mode:s,persisted:a=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:h,onLeave:p,onAfterLeave:f,onLeaveCancelled:g,onBeforeAppear:m,onAppear:v,onAfterAppear:y,onAppearCancelled:b}=t,w=String(e.key),x=ti(n,e),_=(e,t)=>{e&&Yn(e,r,9,t)},S=(e,t)=>{const n=t[1];_(e,t),I(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},E={mode:s,persisted:a,beforeEnter(t){let r=l;if(!n.isMounted){if(!o)return;r=m||l}t[Yr]&&t[Yr](!0);const i=x[w];i&&ha(e,i)&&i.el[Yr]&&i.el[Yr](),_(r,[t])},enter(t){if(!dr&&x[w]===e)return;let r=c,i=u,s=d;if(!n.isMounted){if(!o)return;r=v||c,i=y||u,s=b||d}let a=!1;t[Xr]=e=>{a||(a=!0,_(e?s:i,[t]),E.delayedLeave&&E.delayedLeave(),t[Xr]=void 0)};const l=t[Xr].bind(null,!1);r?S(r,[t,l]):l()},leave(t,r){const i=String(e.key);if(t[Xr]&&t[Xr](!0),n.isUnmounting)return r();_(h,[t]);let o=!1;t[Yr]=n=>{o||(o=!0,r(),_(n?g:f,[t]),t[Yr]=void 0,x[i]===e&&delete x[i])};const s=t[Yr].bind(null,!1);x[i]=e,p?S(p,[t,s]):s()},clone(e){const o=ni(e,t,n,r,i);return i&&i(o),o}};return E}function ri(e){if(ji(e))return(e=ba(e)).children=null,e}function ii(e){if(!ji(e))return Dr(e.type)&&e.children?Qr(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(16&t)return n[0];if(32&t&&D(n.default))return n.default()}}function oi(e,t){if(6&e.shapeFlag&&e.component){e.transition=t;const n=e.component.subTree;oi(Dr(n.type)&&ii(n)||n,t)}else 128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function si(e,t=!1,n){let r=[],i=0;for(let o=0;o1)for(let e=0;eO({name:e.name},t,{setup:e}))():e}function li(){const e=Ia();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function ci(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function ui(e){const t=Ia(),n=gn(null);if(t){const r=t.refs===_?t.refs={}:t.refs;Object.defineProperty(r,e,{enumerable:!0,get:()=>n.value,set:e=>n.value=e})}return n}function di(e,t){let n;return!(!(n=Object.getOwnPropertyDescriptor(e,t))||n.configurable)}const hi=new WeakMap;function pi(e,t,n,r,i=!1){if(I(e))return void e.forEach((e,o)=>pi(e,t&&(I(t)?t[o]:t),n,r,i));if(Di(r)&&!i)return void(512&r.shapeFlag&&r.type.__asyncResolved&&r.component.subTree.component&&pi(e,t,n,r.component.subTree));const o=4&r.shapeFlag?Xa(r.component):r.el,s=i?null:o,{i:a,r:l}=e,c=t&&t.r,u=a.refs===_?a.refs={}:a.refs,d=a.setupState,h=cn(d),p=d===_?C:e=>!di(u,e)&&P(h,e),f=(e,t)=>!t||!di(u,t);if(null!=c&&c!==l)if(fi(t),z(c))u[c]=null,p(c)&&(d[c]=null);else if(pn(c)){const e=t;f(0,e.k)&&(c.value=null),e.k&&(u[e.k]=null)}if(D(l))Wn(l,a,12,[s,u]);else{const t=z(l),r=pn(l);if(t||r){const a=()=>{if(e.f){const n=t?p(l)?d[l]:u[l]:f()||!e.k?l.value:u[e.k];if(i)I(n)&&A(n,o);else if(I(n))n.includes(o)||n.push(o);else if(t)u[l]=[o],p(l)&&(d[l]=u[l]);else{const t=[o];f(0,e.k)&&(l.value=t),e.k&&(u[e.k]=t)}}else t?(u[l]=s,p(l)&&(d[l]=s)):r&&(f(0,e.k)&&(l.value=s),e.k&&(u[e.k]=s))};if(s){const t=()=>{a(),hi.delete(e)};t.id=-1,hi.set(e,t),Ps(t,n)}else fi(e),a()}}}function fi(e){const t=hi.get(e);t&&(t.flags|=8,hi.delete(e))}let gi=!1;const mi=()=>{gi||(console.error("Hydration completed but contains mismatches."),gi=!0)},vi=e=>{if(1===e.nodeType)return(e=>e.namespaceURI.includes("svg")&&"foreignObject"!==e.tagName)(e)?"svg":(e=>e.namespaceURI.includes("MathML"))(e)?"mathml":void 0},yi=e=>8===e.nodeType;function bi(e){const{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:o,parentNode:s,remove:a,insert:l,createComment:c}}=e,u=(n,r,a,c,y,b=!1)=>{b=b||!!r.dynamicChildren;const w=yi(n)&&"["===n.data,x=()=>f(n,r,a,c,y,w),{type:_,ref:S,shapeFlag:E,patchFlag:C}=r;let T=n.nodeType;r.el=n,-2===C&&(b=!1,r.dynamicChildren=null);let k=null;switch(_){case Zs:3!==T?""===r.children?(l(r.el=i(""),s(n),n),k=n):k=x():(n.data!==r.children&&(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&Un("Hydration text mismatch in",n.parentNode,`\n - rendered on server: ${JSON.stringify(n.data)}\n - expected on client: ${JSON.stringify(r.children)}`),mi(),n.data=r.children),k=o(n));break;case Qs:v(n)?(k=o(n),m(r.el=n.content.firstChild,n,a)):k=8!==T||w?x():o(n);break;case ea:if(w&&(T=(n=o(n)).nodeType),1===T||3===T){k=n;const e=!r.children.length;for(let t=0;t{s=s||!!t.dynamicChildren;const{type:l,dynamicProps:c,props:u,patchFlag:d,shapeFlag:p,dirs:f,transition:g}=t,y="input"===l||"option"===l,b=!!c;if(y||b||-1!==d){f&&_r(t,null,n,"created");let l,w=!1;if(v(e)){w=Ds(null,g)&&n&&n.vnode.props&&n.vnode.props.appear;const r=e.content.firstChild;if(w){const e=r.getAttribute("class");e&&(r.$cls=e),g.beforeEnter(r)}m(r,e,n),t.el=e=r}if(16&p&&(!u||!u.innerHTML&&!u.textContent)){let r=h(e.firstChild,t,e,n,i,o,s);for(r&&!Ai(e,1)&&(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&Un("Hydration children mismatch on",e,"\nServer rendered element contains more child nodes than client vdom."),mi());r;){const e=r;r=r.nextSibling,a(e)}}else if(8&p){let n=t.children;"\n"!==n[0]||"PRE"!==e.tagName&&"TEXTAREA"!==e.tagName||(n=n.slice(1));const{textContent:r}=e;r!==n&&r!==n.replace(/\r\n|\r/g,"\n")&&(Ai(e,0)||(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&Un("Hydration text content mismatch on",e,`\n - rendered on server: ${r}\n - expected on client: ${n}`),mi()),e.textContent=t.children)}if(u)if(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__||y||b||!s||48&d){const i=e.tagName.includes("-"),o=e.namespaceURI.includes("svg")?"svg":e.namespaceURI.includes("MathML")?"mathml":void 0;for(const s in u)if(!__VUE_PROD_HYDRATION_MISMATCH_DETAILS__||f&&f.some(e=>e.dir.created)||!_i(e,s,u[s],t,n)||mi(),y&&(s.endsWith("value")||"indeterminate"===s)||T(s)&&!Y(s)||"."===s[0]||i&&!Y(s)||c&&c.includes(s)){if(xi(e,s,u[s]))continue;r(e,s,null,u[s],o,n)}}else if(u.onClick)r(e,"onClick",null,u.onClick,void 0,n);else if(4&d&&on(u.style))for(const e in u.style)u.style[e];(l=u&&u.onVnodeBeforeMount)&&ka(l,n,t),f&&_r(t,null,n,"beforeMount"),((l=u&&u.onVnodeMounted)||f||w)&&Gs(()=>{l&&ka(l,n,t),w&&g.enter(e),f&&_r(t,null,n,"mounted")},i)}return e.nextSibling},h=(e,t,r,s,a,c,d)=>{d=d||!!t.dynamicChildren;const h=t.children,p=h.length;let f=!1;for(let t=0;t{const{slotScopeIds:u}=t;u&&(i=i?i.concat(u):u);const d=s(e),p=h(o(e),t,d,n,r,i,a);return p&&yi(p)&&"]"===p.data?o(t.anchor=p):(mi(),l(t.anchor=c("]"),d,p),p)},f=(e,t,r,i,l,c)=>{if(function(e,t){return Ai(e.parentElement,1)||function(e){return 1===e.nodeType&&Ri(e.getAttribute(ki),1)}(e)||function({props:e}){const t=e&&e[ki];return"string"==typeof t&&Ri(t,1)}(t)}(e,t)||(__VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&Un("Hydration node mismatch:\n- rendered on server:",e,3===e.nodeType?"(text)":yi(e)&&"["===e.data?"(start of fragment)":"","\n- expected on client:",t.type),mi()),t.el=null,c){const t=g(e);for(;;){const n=o(e);if(!n||n===t)break;a(n)}}const u=o(e),d=s(e);return a(e),n(null,t,d,u,r,i,vi(d),l),r&&(r.vnode.el=t.el,fs(r,t.el)),u},g=(e,t="[",n="]")=>{let r=0;for(;e;)if((e=o(e))&&yi(e)&&(e.data===t&&r++,e.data===n)){if(0===r)return o(e);r--}return e},m=(e,t,n)=>{const r=t.parentNode;r&&r.replaceChild(e,t);let i=n;for(;i;)i.vnode.el===t&&(i.vnode.el=i.subTree.el=e),i=i.parent},v=e=>1===e.nodeType&&"TEMPLATE"===e.tagName;return[(e,t)=>{if(!t.hasChildNodes())return __VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&Un("Attempting to hydrate existing markup but container is empty. Performing full mount instead."),n(null,e,t),ar(),void(t._vnode=e);u(t.firstChild,e,null,null,null),ar(),t._vnode=e},u]}const wi=new Set(["src","srcset","href","poster"]);function xi(e,t,n){return!!wi.has(t)&&e.getAttribute(t)===(null==n?null:`${n}`)}function _i(e,t,n,r,i){let o,s,a,l;if("class"===t)e.$cls?(a=e.$cls,delete e.$cls):a=e.getAttribute("class"),l=ge(n),function(e,t){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}(Ei(a||""),Ei(l))||(o=2,s="class");else if("style"===t){a=e.getAttribute("style")||"",l=z(n)?n:function(e){if(!e)return"";if(z(e))return e;let t="";for(const n in e){const r=e[n];(z(r)||"number"==typeof r)&&(t+=`${n.startsWith("--")?n:Q(n)}:${r};`)}return t}(ue(n));const t=Ci(a),c=Ci(l);if(r.dirs)for(const{dir:e,value:t}of r.dirs)"show"!==e.name||t||c.set("display","none");i&&Ti(i,r,c),function(e,t){if(e.size!==t.size)return!1;for(const[n,r]of e)if(r!==t.get(n))return!1;return!0}(t,c)||(o=3,s="style")}else(e instanceof SVGElement&&Te(t)||e instanceof HTMLElement&&(Se(t)||Ce(t)))&&("hidden"===t?(a=Si(e.getAttribute(t)),l=Si(n)):Se(t)?(a=e.hasAttribute(t),l=Ee(n)):null==n?(a=e.hasAttribute(t),l=!1):(a=e.hasAttribute(t)?e.getAttribute(t):"value"===t&&"TEXTAREA"===e.tagName&&e.value,l=!!ke(n)&&String(n)),a!==l&&(o=4,s=t));if(null!=o&&!Ai(e,o)){const t=e=>!1===e?"(not rendered)":`${s}="${e}"`;return Un(`Hydration ${Oi[o]} mismatch on`,e,`\n - rendered on server: ${t(a)}\n - expected on client: ${t(l)}\n Note: this mismatch is check-only. The DOM will not be rectified in production due to performance overhead.\n You should fix the source of the mismatch.`),!0}return!1}function Si(e){return!!ke(e)&&(z(e)?"until-found"===e.toLowerCase()?"until-found":"":!!Ee(e)&&"")}function Ei(e){return new Set(e.trim().split(/\s+/))}function Ci(e){const t=new Map;for(const n of e.split(";")){let[e,r]=n.split(":");e=e.trim(),r=r&&r.trim(),e&&r&&t.set(e,r)}return t}function Ti(e,t,n){const r=e.subTree;if(e.getCssVars&&(t===r||r&&r.type===Js&&r.children.includes(t))){const t=e.getCssVars();for(const e in t){const r=De(t[e]);n.set(`--${Ae(e,!1)}`,r)}}t===r&&e.parent&&Ti(e.parent,e.vnode,n)}const ki="data-allow-mismatch",Oi={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function Ai(e,t){if(0===t||1===t)for(;e&&!e.hasAttribute(ki);)e=e.parentElement;return Ri(e&&e.getAttribute(ki),t)}function Ri(e,t){if(null==e)return!1;if(""===e)return!0;{const n=e.split(",");return!(0!==t||!n.includes("children"))||n.includes(Oi[t])}}const Pi=le().requestIdleCallback||(e=>setTimeout(e,1)),Ii=le().cancelIdleCallback||(e=>clearTimeout(e)),Ni=(e=1e4)=>t=>{const n=Pi(t,{timeout:e});return()=>Ii(n)},Li=e=>(t,n)=>{const r=new IntersectionObserver(e=>{for(const n of e)if(n.isIntersecting){r.disconnect(),t();break}},e);return n(e=>{if(e instanceof Element)return function(e){const{top:t,left:n,bottom:r,right:i}=e.getBoundingClientRect(),{innerHeight:o,innerWidth:s}=window;return(t>0&&t0&&r0&&n0&&ir.disconnect()},Mi=e=>t=>{if(e){const n=matchMedia(e);if(!n.matches)return n.addEventListener("change",t,{once:!0}),()=>n.removeEventListener("change",t);t()}},$i=(e=[])=>(t,n)=>{z(e)&&(e=[e]);let r=!1;const i=e=>{r||(r=!0,o(),t(),e.target.dispatchEvent(new e.constructor(e.type,e)))},o=()=>{n(t=>{for(const n of e)t.removeEventListener(n,i)})};return n(t=>{for(const n of e)t.addEventListener(n,i,{once:!0})}),o},Di=e=>!!e.type.__asyncLoader;function zi(e){D(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,hydrate:o,timeout:s,suspensible:a=!0,onError:l}=e;let c,u=null,d=0;const h=()=>{let e;return u||(e=u=t().catch(e=>{if(e=e instanceof Error?e:new Error(String(e)),l)return new Promise((t,n)=>{l(e,()=>t((d++,u=null,h())),()=>n(e),d+1)});throw e}).then(t=>e!==u&&u?u:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),c=t,t)))};return ai({name:"AsyncComponentWrapper",__asyncLoader:h,__asyncHydrate(e,t,n){const r=e.isConnected;let i=!1;(t.bu||(t.bu=[])).push(()=>i=!0);const s=()=>{i||!e.parentNode||r&&!e.isConnected||n()},a=o?()=>{const n=o(s,t=>function(e,t){if(yi(e)&&"["===e.data){let n=1,r=e.nextSibling;for(;r;){if(1===r.nodeType){if(!1===t(r))break}else if(yi(r))if("]"===r.data){if(0===--n)break}else"["===r.data&&n++;r=r.nextSibling}}else t(e)}(e,t));n&&(t.bum||(t.bum=[])).push(n)}:s;c?a():h().then(()=>!t.isUnmounted&&a())},get __asyncResolved(){return c},setup(){const e=Pa;if(ci(e),c)return()=>Fi(c,e);const t=t=>{u=null,Xn(t,e,13,!r)};if(a&&e.suspense||ja)return h().then(t=>()=>Fi(t,e)).catch(e=>(t(e),()=>r?va(r,{error:e}):null));const o=fn(!1),l=fn(),d=fn(!!i);let p,f;return ro(()=>{null!=p&&clearTimeout(p),null!=f&&clearTimeout(f)}),i&&(f=setTimeout(()=>{e.isUnmounted||(d.value=!1)},i)),null!=s&&(p=setTimeout(()=>{if(!e.isUnmounted&&!o.value&&!l.value){const e=new Error(`Async component timed out after ${s}ms.`);t(e),l.value=e}},s)),h().then(()=>{e.isUnmounted||(o.value=!0,e.parent&&ji(e.parent.vnode)&&e.parent.update())}).catch(n=>{e.isUnmounted?u=null:(t(n),l.value=n)}),()=>o.value&&c?Fi(c,e):l.value&&r?va(r,{error:l.value}):n&&!d.value?Fi(n,e):void 0}})}function Fi(e,t){const{ref:n,props:r,children:i,ce:o}=t.vnode,s=va(e,r,i);return s.ref=n,s.ce=o,delete t.vnode.ce,s}const ji=e=>e.type.__isKeepAlive,Ui={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Ia(),r=n.ctx;if(!r.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const i=new Map,o=new Set;let s=null;const a=n.suspense,{renderer:{p:l,m:c,um:u,o:{createElement:d}}}=r,h=d("div");function p(e){Xi(e),u(e,n,a,!0)}function f(e){i.forEach((t,n)=>{const r=Ja(Di(t)?t.type.__asyncResolved||{}:t.type);r&&!e(r)&&g(n)})}function g(e){const t=i.get(e);!t||s&&ha(t,s)?s&&Xi(s):p(t),i.delete(e),o.delete(e)}r.activate=(e,t,n,r,i)=>{const o=e.component;c(e,t,n,0,a),l(o.vnode,e,t,n,o,a,r,e.slotScopeIds,i),Ps(()=>{o.isDeactivated=!1,o.a&&re(o.a);const t=e.props&&e.props.onVnodeMounted;t&&ka(t,o.parent,e)},a)},r.deactivate=e=>{const t=e.component;js(t.m),js(t.a),c(e,h,null,1,a),Ps(()=>{t.da&&re(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&ka(n,t.parent,e),t.isDeactivated=!0},a)},Pr(()=>[e.include,e.exclude],([e,t])=>{e&&f(t=>Hi(e,t)),t&&f(e=>!Hi(t,e))},{flush:"post",deep:!0});let m=null;const v=()=>{null!=m&&(Bs(n.subTree.type)?Ps(()=>{const e=Gi(n.subTree);e.component&&i.set(m,e)},n.subTree.suspense):i.set(m,Gi(n.subTree)))};return Qi(v),to(v),no(()=>{i.forEach(e=>{const{subTree:t,suspense:r}=n,i=Gi(t);if(e.type===i.type&&e.key===i.key){Xi(i);const e=i.component.da;return void(e&&Ps(e,r))}p(e)})}),()=>{if(m=null,!t.default)return s=null;const n=t.default(),r=n[0];if(n.length>1)return s=null,n;if(!da(r)||!(4&r.shapeFlag||128&r.shapeFlag))return s=null,r;let a=Gi(r);if(a.type===Qs)return s=null,a;const l=a.type,c=Ja(Di(a)?a.type.__asyncResolved||{}:l),{include:u,exclude:d,max:h}=e;if(u&&(!c||!Hi(u,c))||d&&c&&Hi(d,c))return a.shapeFlag&=-257,s=a,r;const p=null==a.key?l:a.key,f=i.get(p);return a.el&&(a=ba(a),128&r.shapeFlag&&(r.ssContent=a)),m=p,f?(a.el=f.el,a.component=f.component,a.transition&&oi(a,a.transition),a.shapeFlag|=512,o.delete(p),o.add(p)):(o.add(p),h&&o.size>parseInt(h,10)&&g(o.values().next().value)),a.shapeFlag|=256,s=a,Bs(r.type)?r:a}}},Bi=Ui;function Hi(e,t){return I(e)?e.some(e=>Hi(e,t)):z(e)?e.split(",").includes(t):"[object RegExp]"===H(e)&&(e.lastIndex=0,e.test(t))}function qi(e,t){Wi(e,"a",t)}function Vi(e,t){Wi(e,"da",t)}function Wi(e,t,n=Pa){const r=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(Ki(t,r,n),n){let e=n.parent;for(;e&&e.parent;)ji(e.parent.vnode)&&Yi(r,t,n,e),e=e.parent}}function Yi(e,t,n,r){const i=Ki(t,e,r,!0);ro(()=>{A(r[t],i)},n)}function Xi(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Gi(e){return 128&e.shapeFlag?e.ssContent:e}function Ki(e,t,n=Pa,r=!1){if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...r)=>{lt();const i=Ma(n),o=Yn(t,n,e,r);return i(),ct(),o});return r?i.unshift(o):i.push(o),o}}const Ji=e=>(t,n=Pa)=>{ja&&"sp"!==e||Ki(e,(...e)=>t(...e),n)},Zi=Ji("bm"),Qi=Ji("m"),eo=Ji("bu"),to=Ji("u"),no=Ji("bum"),ro=Ji("um"),io=Ji("sp"),oo=Ji("rtg"),so=Ji("rtc");function ao(e,t=Pa){Ki("ec",e,t)}const lo="components",co="directives";function uo(e,t){return go(lo,e,!0,t)||e}const ho=Symbol.for("v-ndc");function po(e){return z(e)?go(lo,e,!1)||e:e||ho}function fo(e){return go(co,e)}function go(e,t,n=!0,r=!1){const i=fr||Pa;if(i){const n=i.type;if(e===lo){const e=Ja(n,!1);if(e&&(e===t||e===J(t)||e===ee(J(t))))return n}const o=mo(i[e]||n[e],t)||mo(i.appContext[e],t);return!o&&r?n:o}}function mo(e,t){return e&&(e[t]||e[J(t)]||e[ee(J(t))])}function vo(e,t,n,r){let i;const o=n&&n[r],s=I(e);if(s||z(e)){let n=!1,r=!1;s&&on(e)&&(n=!an(e),r=sn(e),e=_t(e)),i=new Array(e.length);for(let s=0,a=e.length;st(e,n,void 0,o&&o[n]));else{const n=Object.keys(e);i=new Array(n.length);for(let r=0,s=n.length;r{const t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e}function bo(e,t,n,r,i,o){if(null==n&&(n={}),fr.ce||fr.parent&&Di(fr.parent)&&fr.parent.ce){const e=null!=o&&null==n.key?O({},n,{key:o}):n,i=Object.keys(e).length>0;return"default"!==t&&(e.name=t),ra(),ua(Js,null,[va("slot",e,r&&r())],i?-2:64)}let s=e[t];s&&s._c&&(s._d=!1);const a=ta.length;let l;ra();try{const i=s&&wo(s(n)),a=n.key||o||i&&i.key;l=ua(Js,{key:(a&&!F(a)?a:`_${t}`)+(!i&&r?"_fb":"")},i||(r?r():[]),i&&1===e._?64:-2)}catch(e){for(let e=ta.length;e>a;e--)ia();throw e}finally{s&&s._c&&(s._d=!0)}return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),l}function wo(e){return e.some(e=>!da(e)||e.type!==Qs&&!(e.type===Js&&!wo(e.children)))?e:null}function xo(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:te(r)]=e[r];return n}const _o=e=>e?Da(e)?Xa(e):_o(e.parent):null,So=O(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>_o(e.parent),$root:e=>_o(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Vo(e),$forceUpdate:e=>e.f||(e.f=()=>{rr(e.update)}),$nextTick:e=>e.n||(e.n=nr.bind(e.proxy)),$watch:e=>Nr.bind(e)}),Eo=(e,t)=>e!==_&&!e.__isScriptSetup&&P(e,t),Co={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:n,setupState:r,data:i,props:o,accessCache:s,type:a,appContext:l}=e;if("$"!==t[0]){const e=s[t];if(void 0!==e)switch(e){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return o[t]}else{if(Eo(r,t))return s[t]=1,r[t];if(i!==_&&P(i,t))return s[t]=2,i[t];if(P(o,t))return s[t]=3,o[t];if(n!==_&&P(n,t))return s[t]=4,n[t];Bo&&(s[t]=0)}}const c=So[t];let u,d;return c?("$attrs"===t&&bt(e.attrs,0,""),c(e)):(u=a.__cssModules)&&(u=u[t])?u:n!==_&&P(n,t)?(s[t]=4,n[t]):(d=l.config.globalProperties,P(d,t)?d[t]:void 0)},set({_:e},t,n){const{data:r,setupState:i,ctx:o}=e;return Eo(i,t)?(i[t]=n,!0):r!==_&&P(r,t)?(r[t]=n,!0):!(P(e.props,t)||"$"===t[0]&&t.slice(1)in e||(o[t]=n,0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,props:o,type:s}},a){let l;return!!(n[a]||e!==_&&"$"!==a[0]&&P(e,a)||Eo(t,a)||P(o,a)||P(r,a)||P(So,a)||P(i.config.globalProperties,a)||(l=s.__cssModules)&&l[a])},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:P(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},To=O({},Co,{get(e,t){if(t!==Symbol.unscopables)return Co.get(e,t,e)},has:(e,t)=>"_"!==t[0]&&!ce(t)});function ko(){return null}function Oo(){return null}function Ao(e){}function Ro(e){}function Po(){return null}function Io(){}function No(e,t){return null}function Lo(){return $o().slots}function Mo(){return $o().attrs}function $o(e){const t=Ia();return t.setupContext||(t.setupContext=Ya(t))}function Do(e){return I(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function zo(e,t){const n=Do(e);for(const e in t){if(e.startsWith("__skip"))continue;let r=n[e];r?I(r)||D(r)?r=n[e]={type:r,default:t[e]}:r.default=t[e]:null===r&&(r=n[e]={default:t[e]}),r&&t[`__skip_${e}`]&&(r.skipFactory=!0)}return n}function Fo(e,t){return e&&t?I(e)&&I(t)?e.concat(t):O({},Do(e),Do(t)):e||t}function jo(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function Uo(e){const t=Ia(),n=ja;let r=e();$a(),n&&La(!1);const i=()=>{Ma(t),n&&La(!0)},o=()=>{Ia()!==t&&t.scope.off(),$a(),n&&La(!1)};return U(r)&&(r=r.catch(e=>{throw i(),Promise.resolve().then(()=>Promise.resolve().then(o)),e})),[r,()=>{i(),Promise.resolve().then(o)}]}let Bo=!0;function Ho(e,t,n){Yn(I(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function qo(e,t,n,r){let i=r.includes(".")?Lr(n,r):()=>n[r];if(z(e)){const n=t[e];D(n)&&Pr(i,n)}else if(D(e))Pr(i,e.bind(n));else if(j(e))if(I(e))e.forEach(e=>qo(e,t,n,r));else{const r=D(e.handler)?e.handler.bind(n):t[e.handler];D(r)&&Pr(i,r,e)}}function Vo(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:s}}=e.appContext,a=o.get(t);let l;return a?l=a:i.length||n||r?(l={},i.length&&i.forEach(e=>Wo(l,e,s,!0)),Wo(l,t,s)):l=t,j(t)&&o.set(t,l),l}function Wo(e,t,n,r=!1){const{mixins:i,extends:o}=t;o&&Wo(e,o,n,!0),i&&i.forEach(t=>Wo(e,t,n,!0));for(const i in t)if(r&&"expose"===i);else{const r=Yo[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}const Yo={data:Xo,props:Zo,emits:Zo,methods:Jo,computed:Jo,beforeCreate:Ko,created:Ko,beforeMount:Ko,mounted:Ko,beforeUpdate:Ko,updated:Ko,beforeDestroy:Ko,beforeUnmount:Ko,destroyed:Ko,unmounted:Ko,activated:Ko,deactivated:Ko,errorCaptured:Ko,serverPrefetch:Ko,components:Jo,directives:Jo,watch:function(e,t){if(!e)return t;if(!t)return e;const n=O(Object.create(null),e);for(const r in t)n[r]=Ko(e[r],t[r]);return n},provide:Xo,inject:function(e,t){return Jo(Go(e),Go(t))}};function Xo(e,t){return t?e?function(){return O(D(e)?e.call(this,this):e,D(t)?t.call(this,this):t)}:t:e}function Go(e){if(I(e)){const t={};for(let n=0;n(o.has(e)||(e&&D(e.install)?(o.add(e),e.install(l,...t)):D(e)&&(o.add(e),e(l,...t))),l),mixin:e=>(i.mixins.includes(e)||i.mixins.push(e),l),component:(e,t)=>t?(i.components[e]=t,l):i.components[e],directive:(e,t)=>t?(i.directives[e]=t,l):i.directives[e],mount(o,s,c){if(!a){const u=l._ceVNode||va(n,r);return u.appContext=i,!0===c?c="svg":!1===c&&(c=void 0),s&&t?t(u,o):e(u,o,c),a=!0,l._container=o,o.__vue_app__=l,Xa(u.component)}},onUnmount(e){s.push(e)},unmount(){a&&(Yn(s,l._instance,16),e(null,l._container),delete l._container.__vue_app__)},provide:(e,t)=>(i.provides[e]=t,l),runWithContext(e){const t=ns;ns=l;try{return e()}finally{ns=t}}};return l}}let ns=null;function rs(e,t,n=_){const r=Ia(),i=J(t),o=Q(t),s=is(e,i),a=En((s,a)=>{let l,c,u=_;return Rr(()=>{const t=e[i];ne(l,t)&&(l=t,a())}),{get:()=>(s(),n.get?n.get(l):l),set(e){const s=n.set?n.set(e):e;if(!(ne(s,l)||u!==_&&ne(e,u)))return;const d=r.vnode.props,h=!!(d&&(t in d||i in d||o in d)&&(`onUpdate:${t}`in d||`onUpdate:${i}`in d||`onUpdate:${o}`in d));h||(l=e,a()),r.emit(`update:${t}`,s),ne(e,u)&&(ne(e,s)&&!ne(s,c)||h&&u!==_&&!ne(s,l))&&a(),u=e,c=s}}});return a[Symbol.iterator]=()=>{let e=0;return{next:()=>e<2?{value:e++?s||_:a,done:!1}:{done:!0}}},a}const is=(e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${J(t)}Modifiers`]||e[`${Q(t)}Modifiers`];function os(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||_;let i=n;const o=t.startsWith("update:"),s=o&&is(r,t.slice(7));let a;s&&(s.trim&&(i=n.map(e=>z(e)?e.trim():e)),s.number&&(i=i.map(oe)));let l=r[a=te(t)]||r[a=te(J(t))];!l&&o&&(l=r[a=te(Q(t))]),l&&Yn(l,e,6,i);const c=r[a+"Once"];if(c){if(e.emitted){if(e.emitted[a])return}else e.emitted={};e.emitted[a]=!0,Yn(c,e,6,i)}}const ss=new WeakMap;function as(e,t,n=!1){const r=n?ss:t.emitsCache,i=r.get(e);if(void 0!==i)return i;const o=e.emits;let s={},a=!1;if(!D(e)){const r=e=>{const n=as(e,t,!0);n&&(a=!0,O(s,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return o||a?(I(o)?o.forEach(e=>s[e]=null):O(s,o),j(e)&&r.set(e,s),s):(j(e)&&r.set(e,null),null)}function ls(e,t){return!(!e||!T(t))&&(t="Once"===(t=t.slice(2))?t:t.replace(/Once$/,""),P(e,t[0].toLowerCase()+t.slice(1))||P(e,Q(t))||P(e,t))}function cs(e){const{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[o],slots:s,attrs:a,emit:l,render:c,renderCache:u,props:d,data:h,setupState:p,ctx:f,inheritAttrs:g}=e,m=mr(e);let v,y;try{if(4&n.shapeFlag){const e=i||r,t=e;v=Sa(c.call(t,e,u,d,p,h,f)),y=a}else{const e=t;v=Sa(e.length>1?e(d,{attrs:a,slots:s,emit:l}):e(d,null)),y=t.props?a:us(a)}}catch(t){ta.length=0,Xn(t,e,1),v=va(Qs)}let b=v;if(y&&!1!==g){const e=Object.keys(y),{shapeFlag:t}=b;e.length&&7&t&&(o&&e.some(k)&&(y=ds(y,o)),b=ba(b,y,!1,!0))}return n.dirs&&(b=ba(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&oi(Dr(b.type)&&ii(b)||b,n.transition),v=b,mr(m),v}const us=e=>{let t;for(const n in e)("class"===n||"style"===n||T(n))&&((t||(t={}))[n]=e[n]);return t},ds=(e,t)=>{const n={};for(const r in e)k(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function hs(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;iObject.create(gs),vs=e=>Object.getPrototypeOf(e)===gs;function ys(e,t,n,r){const[i,o]=e.propsOptions;let s,a=!1;if(t)for(let l in t){if(Y(l))continue;const c=t[l];let u;i&&P(i,u=J(l))?o&&o.includes(u)?(s||(s={}))[u]=c:n[u]=c:ls(e.emitsOptions,l)||l in r&&c===r[l]||(r[l]=c,a=!0)}if(o){const t=cn(n),r=s||_;for(let s=0;s{l=!0;const[n,r]=xs(e,t,!0);O(s,n),r&&a.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!o&&!l)return j(e)&&r.set(e,S),S;if(I(o))for(let e=0;e"_"===e||"_ctx"===e||"$stable"===e,Es=e=>I(e)?e.map(Sa):[Sa(e)],Cs=(e,t,n)=>{if(t._n)return t;const r=wr((...e)=>Es(t(...e)),n);return r._c=!1,r},Ts=(e,t,n)=>{const r=e._ctx;for(const n in e){if(Ss(n))continue;const i=e[n];if(D(i))t[n]=Cs(0,i,r);else if(null!=i){const e=Es(i);t[n]=()=>e}}},ks=(e,t)=>{const n=Es(t);e.slots.default=()=>n},Os=(e,t,n)=>{for(const r in t)!n&&Ss(r)||(e[r]=t[r])},As=(e,t,n)=>{const r=e.slots=ms();if(32&e.vnode.shapeFlag){const e=t._;e?(Os(r,t,n),n&&ie(r,"_",e,!0)):Ts(t,r)}else t&&ks(e,t)},Rs=(e,t,n)=>{const{vnode:r,slots:i}=e;let o=!0,s=_;if(32&r.shapeFlag){const e=t._;e?n&&1===e?o=!1:Os(i,t,n):(o=!t.$stable,Ts(t,i)),s=t}else t&&(ks(e,t),s={default:1});if(o)for(const e in i)Ss(e)||null!=s[e]||delete i[e]},Ps=Gs;function Is(e){return Ls(e)}function Ns(e){return Ls(e,bi)}function Ls(e,t){"boolean"!=typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&(le().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1),le().__VUE__=!0;const{insert:n,remove:r,patchProp:i,createElement:o,createText:s,createComment:a,setText:l,setElementText:c,parentNode:u,nextSibling:d,setScopeId:h=E,insertStaticContent:p}=e,f=(e,t,n,r=null,i=null,o=null,s=void 0,a=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!ha(e,t)&&(r=q(e),F(e,i,o,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:d}=t;switch(c){case Zs:g(e,t,n,r);break;case Qs:m(e,t,n,r);break;case ea:null==e&&v(t,n,r,s);break;case Js:O(e,t,n,r,i,o,s,a,l);break;default:1&d?y(e,t,n,r,i,o,s,a,l):6&d?A(e,t,n,r,i,o,s,a,l):(64&d||128&d)&&c.process(e,t,n,r,i,o,s,a,l,X)}null!=u&&i?pi(u,e&&e.ref,o,t||e,!t):null==u&&e&&null!=e.ref&&pi(e.ref,null,o,e,!0)},g=(e,t,r,i)=>{if(null==e)n(t.el=s(t.children),r,i);else{const n=t.el=e.el;t.children!==e.children&&l(n,t.children)}},m=(e,t,r,i)=>{null==e?n(t.el=a(t.children||""),r,i):t.el=e.el},v=(e,t,n,r)=>{[e.el,e.anchor]=p(e.children,t,n,r,e.el,e.anchor)},y=(e,t,n,r,i,o,s,a,l)=>{if("svg"===t.type?s="svg":"math"===t.type&&(s="mathml"),null==e)b(t,n,r,i,o,s,a,l);else{const n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),C(e,t,i,o,s,a,l)}finally{n&&n._endPatch()}}},b=(e,t,r,s,a,l,u,d)=>{let h,p;const{props:f,shapeFlag:g,transition:m,dirs:v}=e;if(h=e.el=o(e.type,l,f&&f.is,f),8&g?c(h,e.children):16&g&&x(e.children,h,null,s,a,Ms(e,l),u,d),v&&_r(e,null,s,"created"),w(h,e,e.scopeId,u,s),f){for(const e in f)"value"===e||Y(e)||i(h,e,null,f[e],l,s);"value"in f&&i(h,"value",null,f.value,l),(p=f.onVnodeBeforeMount)&&ka(p,s,e)}v&&_r(e,null,s,"beforeMount");const y=Ds(a,m);y&&m.beforeEnter(h),n(h,t,r),((p=f&&f.onVnodeMounted)||y||v)&&Ps(()=>{try{p&&ka(p,s,e),y&&m.enter(h),v&&_r(e,null,s,"mounted")}finally{}},a)},w=(e,t,n,r,i)=>{if(n&&h(e,n),r)for(let t=0;t{for(let c=l;c{const l=t.el=e.el;let{patchFlag:u,dynamicChildren:d,dirs:h}=t;u|=16&e.patchFlag;const p=e.props||_,f=t.props||_;let g;if(n&&$s(n,!1),(g=f.onVnodeBeforeUpdate)&&ka(g,n,t,e),h&&_r(t,e,n,"beforeUpdate"),n&&$s(n,!0),!d||e.dynamicChildren&&e.dynamicChildren.length===d.length||(u=0,a=!1,d=null),(p.innerHTML&&null==f.innerHTML||p.textContent&&null==f.textContent)&&c(l,""),d?T(e.dynamicChildren,d,l,n,r,Ms(t,o),s):a||M(e,t,l,null,n,r,Ms(t,o),s,!1),u>0){if(16&u)k(l,p,f,n,o);else if(2&u&&p.class!==f.class&&i(l,"class",null,f.class,o),4&u&&i(l,"style",p.style,f.style,o),8&u){const e=t.dynamicProps;for(let t=0;t{g&&ka(g,n,t,e),h&&_r(t,e,n,"updated")},r)},T=(e,t,n,r,i,o,s)=>{for(let a=0;a{if(t!==n){if(t!==_)for(const s in t)Y(s)||s in n||i(e,s,t[s],null,o,r);for(const s in n){if(Y(s))continue;const a=n[s],l=t[s];a!==l&&"value"!==s&&i(e,s,l,a,o,r)}"value"in n&&i(e,"value",t.value,n.value,o)}},O=(e,t,r,i,o,a,l,c,u)=>{const d=t.el=e?e.el:s(""),h=t.anchor=e?e.anchor:s("");let{patchFlag:p,dynamicChildren:f,slotScopeIds:g}=t;g&&(c=c?c.concat(g):g),null==e?(n(d,r,i),n(h,r,i),x(t.children||[],r,h,o,a,l,c,u)):p>0&&64&p&&f&&e.dynamicChildren&&e.dynamicChildren.length===f.length?(T(e.dynamicChildren,f,r,o,a,l,c),(null!=t.key||o&&t===o.subTree)&&zs(e,t,!0)):M(e,t,r,h,o,a,l,c,u)},A=(e,t,n,r,i,o,s,a,l)=>{t.slotScopeIds=a,null==e?512&t.shapeFlag?i.ctx.activate(t,n,r,s,l):R(t,n,r,i,o,s,l):I(e,t,l)},R=(e,t,n,r,i,o,s)=>{const a=e.component=Ra(e,r,i);if(ji(e)&&(a.ctx.renderer=X),Ua(a,!1,s),a.asyncDep){if(i&&i.registerDep(a,N,s),!e.el){const r=a.subTree=va(Qs);m(null,r,t,n),e.placeholder=r.el}}else N(a,e,t,n,i,o,s)},I=(e,t,n)=>{const r=t.component=e.component;if(function(e,t,n){const{props:r,children:i,component:o}=e,{props:s,children:a,patchFlag:l}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!i&&!a||a&&a.$stable)||r!==s&&(r?!s||hs(r,s,c):!!s);if(1024&l)return!0;if(16&l)return r?hs(r,s,c):!!s;if(8&l){const e=t.dynamicProps;for(let t=0;t{e.scope.on();const a=e.effect=new Ve(()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:a,vnode:c}=e;{const n=Fs(e);if(n)return t&&(t.el=c.el,L(e,t,s)),void n.asyncDep.then(()=>{Ps(()=>{e.isUnmounted||l()},i)})}let d,h=t;$s(e,!1),t?(t.el=c.el,L(e,t,s)):t=c,n&&re(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&ka(d,a,t,c),$s(e,!0);const p=cs(e),g=e.subTree;e.subTree=p,f(g,p,u(g.el),q(g),e,i,o),t.el=p.el,null===h&&fs(e,p.el),r&&Ps(r,i),(d=t.props&&t.props.onVnodeUpdated)&&Ps(()=>ka(d,a,t,c),i)}else{let s;const{el:a,props:l}=t,{bm:c,m:u,parent:d,root:h,type:p}=e,g=Di(t);if($s(e,!1),c&&re(c),!g&&(s=l&&l.onVnodeBeforeMount)&&ka(s,d,t),$s(e,!0),a&&K){const t=()=>{e.subTree=cs(e),K(a,e.subTree,e,i,null)};g&&p.__asyncHydrate?p.__asyncHydrate(a,e,t):t()}else{h.ce&&h.ce._hasShadowRoot()&&h.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);const s=e.subTree=cs(e);f(null,s,n,r,e,i,o),t.el=s.el}if(u&&Ps(u,i),!g&&(s=l&&l.onVnodeMounted)){const e=t;Ps(()=>ka(s,d,e),i)}(256&t.shapeFlag||d&&Di(d.vnode)&&256&d.vnode.shapeFlag)&&e.a&&Ps(e.a,i),e.isMounted=!0,t=n=r=null}});e.scope.off();const l=e.update=a.run.bind(a),c=e.job=a.runIfDirty.bind(a);c.i=e,c.id=e.uid,a.scheduler=()=>rr(c),$s(e,!0),l()},L=(e,t,n)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,r){const{props:i,attrs:o,vnode:{patchFlag:s}}=e,a=cn(i),[l]=e.propsOptions;let c=!1;if(!(r||s>0)||16&s){let r;ys(e,t,i,o)&&(c=!0);for(const o in a)t&&(P(t,o)||(r=Q(o))!==o&&P(t,r))||(l?!n||void 0===n[o]&&void 0===n[r]||(i[o]=bs(l,a,o,void 0,e,!0)):delete i[o]);if(o!==a)for(const e in o)t&&P(t,e)||(delete o[e],c=!0)}else if(8&s){const n=e.vnode.dynamicProps;for(let r=0;r{const u=e&&e.children,d=e?e.shapeFlag:0,h=t.children,{patchFlag:p,shapeFlag:f}=t;if(p>0){if(128&p)return void D(u,h,n,r,i,o,s,a,l);if(256&p)return void $(u,h,n,r,i,o,s,a,l)}8&f?(16&d&&H(u,i,o),h!==u&&c(n,h)):16&d?16&f?D(u,h,n,r,i,o,s,a,l):H(u,i,o,!0):(8&d&&c(n,""),16&f&&x(h,n,r,i,o,s,a,l))},$=(e,t,n,r,i,o,s,a,l)=>{t=t||S;const c=(e=e||S).length,u=t.length,d=Math.min(c,u);let h;for(h=0;hu?H(e,i,o,!0,!1,d):x(t,n,r,i,o,s,a,l,d)},D=(e,t,n,r,i,o,s,a,l)=>{let c=0;const u=t.length;let d=e.length-1,h=u-1;for(;c<=d&&c<=h;){const r=e[c],u=t[c]=l?Ea(t[c]):Sa(t[c]);if(!ha(r,u))break;f(r,u,n,null,i,o,s,a,l),c++}for(;c<=d&&c<=h;){const r=e[d],c=t[h]=l?Ea(t[h]):Sa(t[h]);if(!ha(r,c))break;f(r,c,n,null,i,o,s,a,l),d--,h--}if(c>d){if(c<=h){const e=h+1,d=eh)for(;c<=d;)F(e[c],i,o,!0),c++;else{const p=c,g=c,m=new Map;for(c=g;c<=h;c++){const e=t[c]=l?Ea(t[c]):Sa(t[c]);null!=e.key&&m.set(e.key,c)}let v,y=0;const b=h-g+1;let w=!1,x=0;const _=new Array(b);for(c=0;c=b){F(r,i,o,!0);continue}let u;if(null!=r.key)u=m.get(r.key);else for(v=g;v<=h;v++)if(0===_[v-g]&&ha(r,t[v])){u=v;break}void 0===u?F(r,i,o,!0):(_[u-g]=c+1,u>=x?x=u:w=!0,f(r,t[u],n,null,i,o,s,a,l),y++)}const E=w?function(e){const t=e.slice(),n=[0];let r,i,o,s,a;const l=e.length;for(r=0;r>1,e[n[a]]0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,s=n[o-1];o-- >0;)n[o]=s,s=t[s];return n}(_):S;for(v=E.length-1,c=b-1;c>=0;c--){const e=g+c,d=t[e],h=t[e+1],p=e+1{const{el:a,type:l,transition:c,children:u,shapeFlag:h}=e;if(6&h)z(e.component.subTree,t,i,o);else if(128&h)e.suspense.move(t,i,o);else if(64&h)l.move(e,t,i,X);else if(l!==Js)if(l!==ea)if(2!==o&&1&h&&c)if(0===o)c.persisted&&!a[Yr]?n(a,t,i):(c.beforeEnter(a),n(a,t,i),Ps(()=>c.enter(a),s));else{const{leave:o,delayLeave:s,afterLeave:l}=c,u=()=>{e.ctx.isUnmounted?r(a):n(a,t,i)},d=()=>{const e=a._isLeaving||!!a[Yr];a._isLeaving&&a[Yr](!0),c.persisted&&!e?u():o(a,()=>{u(),l&&l()})};s?s(a,u,d):d()}else n(a,t,i);else(({el:e,anchor:t},r,i)=>{let o;for(;e&&e!==t;)o=d(e),n(e,r,i),e=o;n(t,r,i)})(e,t,i);else{n(a,t,i);for(let e=0;e{const{type:o,props:s,ref:a,children:l,dynamicChildren:c,shapeFlag:u,patchFlag:d,dirs:h,cacheIndex:p,memo:f}=e;if(-2===d&&(i=!1),null!=a&&(lt(),pi(a,null,n,e,!0),ct()),null!=p&&(t.renderCache[p]=void 0),256&u)return void t.ctx.deactivate(e);const g=1&u&&h,m=!Di(e);let v;if(m&&(v=s&&s.onVnodeBeforeUnmount)&&ka(v,t,e),6&u)B(e.component,n,r);else{if(128&u)return void e.suspense.unmount(n,r);g&&_r(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,X,r):c&&!c.hasOnce&&(o!==Js||d>0&&64&d)?H(c,t,n,!1,!0):(o===Js&&384&d||!i&&16&u)&&H(l,t,n),r&&j(e)}const y=null!=f&&null==p;(m&&(v=s&&s.onVnodeUnmounted)||g||y)&&Ps(()=>{v&&ka(v,t,e),g&&_r(e,null,t,"unmounted"),y&&(e.el=null)},n)},j=e=>{const{type:t,el:n,anchor:i,transition:o}=e;if(t===Js)return void U(n,i);if(t===ea)return void(({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=d(e),r(e),e=n;r(t)})(e);const s=()=>{r(n),o&&!o.persisted&&o.afterLeave&&o.afterLeave()};if(1&e.shapeFlag&&o&&!o.persisted){const{leave:t,delayLeave:r}=o,i=()=>t(n,s);r?r(e.el,s,i):i()}else s()},U=(e,t)=>{let n;for(;e!==t;)n=d(e),r(e),e=n;r(t)},B=(e,t,n)=>{const{bum:r,scope:i,job:o,subTree:s,um:a,m:l,a:c}=e;js(l),js(c),r&&re(r),i.stop(),o&&(o.flags|=8,F(s,e,t,n)),a&&Ps(a,t),Ps(()=>{e.isUnmounted=!0},t)},H=(e,t,n,r=!1,i=!1,o=0)=>{for(let s=o;s{if(6&e.shapeFlag)return q(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=d(e.anchor||e.el),n=t&&t[$r];return n?d(n):t};let V=!1;const W=(e,t,n)=>{let r;null==e?t._vnode&&(F(t._vnode,null,null,!0),r=t._vnode.component):f(t._vnode||null,e,t,null,null,null,n),t._vnode=e,V||(V=!0,sr(r),ar(),V=!1)},X={p:f,um:F,m:z,r:j,mt:R,mc:x,pc:M,pbc:T,n:q,o:e};let G,K;return t&&([G,K]=t(X)),{render:W,hydrate:G,createApp:ts(W,G)}}function Ms({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function $s({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Ds(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function zs(e,t,n=!1){const r=e.children,i=t.children;if(I(r)&&I(i))for(let e=0;ee.__isSuspense;let Hs=0;const qs={name:"Suspense",__isSuspense:!0,process(e,t,n,r,i,o,s,a,l,c){if(null==e)!function(e,t,n,r,i,o,s,a,l){const{p:c,o:{createElement:u}}=l,d=u("div"),h=e.suspense=Ys(e,i,r,t,d,n,o,s,a,l);c(null,h.pendingBranch=e.ssContent,d,null,r,h,o,s),h.deps>0?(Ws(e,"onPending"),Ws(e,"onFallback"),c(null,e.ssFallback,t,n,r,null,o,s),Ks(h,e.ssFallback)):h.resolve(!1,!0)}(t,n,r,i,o,s,a,l,c);else{if(o&&o.deps>0&&!e.suspense.isInFallback)return t.suspense=e.suspense,t.suspense.vnode=t,void(t.el=e.el);!function(e,t,n,r,i,o,s,a,{p:l,um:c,o:{createElement:u}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const h=t.ssContent,p=t.ssFallback,{activeBranch:f,pendingBranch:g,isInFallback:m,isHydrating:v}=d;if(g)d.pendingBranch=h,ha(g,h)?(l(g,h,d.hiddenContainer,null,i,d,o,s,a),d.deps<=0?d.resolve():m&&(v||d.isFallbackMountPending||(l(f,p,n,r,i,null,o,s,a),Ks(d,p)))):(d.pendingId=Hs++,v?(d.isHydrating=!1,d.activeBranch=g):c(g,i,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),m?(l(null,h,d.hiddenContainer,null,i,d,o,s,a),d.deps<=0?d.resolve():d.isFallbackMountPending||(l(f,p,n,r,i,null,o,s,a),Ks(d,p))):f&&ha(f,h)?(l(f,h,n,r,i,d,o,s,a),d.resolve(!0)):(l(null,h,d.hiddenContainer,null,i,d,o,s,a),d.deps<=0&&d.resolve()));else if(f&&ha(f,h))l(f,h,n,r,i,d,o,s,a),Ks(d,h);else if(Ws(t,"onPending"),d.pendingBranch=h,512&h.shapeFlag?d.pendingId=h.component.suspenseId:d.pendingId=Hs++,l(null,h,d.hiddenContainer,null,i,d,o,s,a),d.deps<=0)d.resolve();else{const{timeout:e,pendingId:t}=d;e>0?setTimeout(()=>{d.pendingId===t&&d.fallback(p)},e):0===e&&d.fallback(p)}}(e,t,n,r,i,s,a,l,c)}},hydrate:function(e,t,n,r,i,o,s,a,l){const c=t.suspense=Ys(t,r,n,e.parentNode,document.createElement("div"),null,i,o,s,a,!0),u=l(e,c.pendingBranch=t.ssContent,n,c,o,s);return 0===c.deps&&c.resolve(!1,!0),u},normalize:function(e){const{shapeFlag:t,children:n}=e,r=32&t;e.ssContent=Xs(r?n.default:n),e.ssFallback=r?Xs(n.fallback):va(Qs)}},Vs=qs;function Ws(e,t){const n=e.props&&e.props[t];D(n)&&n()}function Ys(e,t,n,r,i,o,s,a,l,c,u=!1){const{p:d,m:h,um:p,n:f,o:{parentNode:g,remove:m}}=c;let v;const y=function(e){const t=e.props&&e.props.suspensible;return null!=t&&!1!==t}(e);y&&t&&t.pendingBranch&&(v=t.pendingId,t.deps++);const b=e.props?se(e.props.timeout):void 0,w=o,x={vnode:e,parent:t,parentComponent:n,namespace:s,container:r,hiddenContainer:i,deps:0,pendingId:Hs++,timeout:"number"==typeof b?b:-1,activeBranch:null,isFallbackMountPending:!1,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){const{vnode:r,activeBranch:i,pendingBranch:s,pendingId:a,effects:l,parentComponent:c,container:u,isInFallback:d}=x;let m=!1;if(x.isHydrating)x.isHydrating=!1;else if(!e){m=i&&s.transition&&"out-in"===s.transition.mode;let e=!1;m&&(i.transition.afterLeave=()=>{a===x.pendingId&&(h(s,u,o!==w||e?o:f(i),0),or(l),d&&r.ssFallback&&(r.ssFallback.el=null))}),i&&!x.isFallbackMountPending&&(g(i.el)===u&&(o=f(i),e=!0),p(i,c,x,!0),!m&&d&&r.ssFallback&&Ps(()=>r.ssFallback.el=null,x)),m||h(s,u,o,0)}x.isFallbackMountPending=!1,Ks(x,s),x.pendingBranch=null,x.isInFallback=!1;let b=x.parent,_=!1;for(;b;){if(b.pendingBranch){for(let e=0;e{if(x.isFallbackMountPending=!1,!x.isInFallback)return;const e=x.vnode.ssFallback;d(null,e,i,s,r,null,o,a,l),Ks(x,e)},u=e.transition&&"out-in"===e.transition.mode;u&&(x.isFallbackMountPending=!0,n.transition.afterLeave=c),x.isInFallback=!0,p(n,r,null,!0),u||c()},move(e,t,n){x.activeBranch&&h(x.activeBranch,e,t,n),x.container=e},next:()=>x.activeBranch&&f(x.activeBranch),registerDep(e,t,n){const r=!!x.pendingBranch;r&&x.deps++;const i=e.vnode.el;e.asyncDep.catch(t=>{Xn(t,e,0)}).then(o=>{if(e.isUnmounted||x.isUnmounted||x.pendingId!==e.suspenseId)return;$a(),e.asyncResolved=!0;const{vnode:a}=e;Ba(e,o,!1),i&&(a.el=i);const l=!i&&e.subTree.el;t(e,a,g(i||e.subTree.el),i?null:f(e.subTree),x,s,n),l&&(a.placeholder=null,m(l)),fs(e,a.el),r&&0===--x.deps&&x.resolve()})},unmount(e,t){x.isUnmounted=!0,x.activeBranch&&p(x.activeBranch,n,e,t),x.pendingBranch&&p(x.pendingBranch,n,e,t)}};return x}function Xs(e){let t;if(D(e)){const n=sa&&e._c;n&&(e._d=!1,ra()),e=e(),n&&(e._d=!0,t=na,ia())}if(I(e)){const t=function(e){let t;for(let n=0;nt!==e)),e}function Gs(e,t){t&&t.pendingBranch?I(e)?t.effects.push(...e):t.effects.push(e):or(e)}function Ks(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let i=t.el;for(;!i&&t.component;)i=(t=t.component.subTree).el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,fs(r,i))}const Js=Symbol.for("v-fgt"),Zs=Symbol.for("v-txt"),Qs=Symbol.for("v-cmt"),ea=Symbol.for("v-stc"),ta=[];let na=null;function ra(e=!1){ta.push(na=e?null:[])}function ia(){ta.pop(),na=ta[ta.length-1]||null}let oa,sa=1;function aa(e,t=!1){sa+=e,e<0&&na&&t&&(na.hasOnce=!0)}function la(e){return e.dynamicChildren=sa>0?na||S:null,ia(),sa>0&&na&&na.push(e),e}function ca(e,t,n,r,i,o){return la(ma(e,t,n,r,i,o,!0))}function ua(e,t,n,r,i){return la(va(e,t,n,r,i,!0))}function da(e){return!!e&&!0===e.__v_isVNode}function ha(e,t){return e.type===t.type&&e.key===t.key}function pa(e){oa=e}const fa=({key:e})=>null!=e?e:null,ga=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?z(e)||pn(e)||D(e)?{i:fr,r:e,k:t,f:!!n}:e:null);function ma(e,t=null,n=null,r=0,i=null,o=(e===Js?0:1),s=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&fa(t),ref:t&&ga(t),scopeId:gr,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:fr};return a?(Ca(l,n),128&o&&e.normalize(l)):n&&(l.shapeFlag|=z(n)?8:16),sa>0&&!s&&na&&(l.patchFlag>0||6&o)&&32!==l.patchFlag&&na.push(l),l}const va=function(e,t=null,n=null,r=0,i=null,o=!1){if(e&&e!==ho||(e=Qs),da(e)){const r=ba(e,t,!0);return n&&Ca(r,n),sa>0&&!o&&na&&(6&r.shapeFlag?na[na.indexOf(e)]=r:na.push(r)),r.patchFlag=-2,r}if(s=e,D(s)&&"__vccOpts"in s&&(e=e.__vccOpts),t){t=ya(t);let{class:e,style:n}=t;e&&!z(e)&&(t.class=ge(e)),j(n)&&(ln(n)&&!I(n)&&(n=O({},n)),t.style=ue(n))}var s;return ma(e,t,n,r,i,z(e)?1:Bs(e)?128:Dr(e)?64:j(e)?4:D(e)?2:0,o,!0)};function ya(e){return e?ln(e)||vs(e)?O({},e):e:null}function ba(e,t,n=!1,r=!1){const{props:i,ref:o,patchFlag:s,children:a,transition:l}=e,c=t?Ta(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&fa(c),ref:t&&t.ref?n&&o?I(o)?o.concat(ga(t)):[o,ga(t)]:ga(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Js?-1===s?16:16|s:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ba(e.ssContent),ssFallback:e.ssFallback&&ba(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&oi(u,l.clone(u)),u}function wa(e=" ",t=0){return va(Zs,null,e,t)}function xa(e,t){const n=va(ea,null,e);return n.staticCount=t,n}function _a(e="",t=!1){return t?(ra(),ua(Qs,null,e)):va(Qs,null,e)}function Sa(e){return null==e||"boolean"==typeof e?va(Qs):I(e)?va(Js,null,e.slice()):da(e)?Ea(e):va(Zs,null,String(e))}function Ea(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:ba(e)}function Ca(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if(I(t))n=16;else if("object"==typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),Ca(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||vs(t)?3===r&&fr&&(1===fr.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=fr}}else if(D(t)){if(65&r)return void Ca(e,{default:t});t={default:t,_ctx:fr},n=32}else t=String(t),64&r?(n=16,t=[wa(t)]):n=8;e.children=t,e.shapeFlag|=n}function Ta(...e){const t={};for(let n=0;nPa||fr;let Na,La;{const e=le(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};Na=t("__VUE_INSTANCE_SETTERS__",e=>Pa=e),La=t("__VUE_SSR_SETTERS__",e=>ja=e)}const Ma=e=>{const t=Pa;return Na(e),e.scope.on(),()=>{e.scope.off(),Na(t)}},$a=()=>{Pa&&Pa.scope.off(),Na(null)};function Da(e){return 4&e.vnode.shapeFlag}let za,Fa,ja=!1;function Ua(e,t=!1,n=!1){t&&La(t);const{props:r,children:i}=e.vnode,o=Da(e);!function(e,t,n,r=!1){const i={},o=ms();e.propsDefaults=Object.create(null),ys(e,t,i,o);for(const t in e.propsOptions[0])t in i||(i[t]=void 0);n?e.props=r?i:en(i):e.type.props?e.props=i:e.props=o,e.attrs=o}(e,r,o,t),As(e,i,n||t);const s=o?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Co);const{setup:r}=n;if(r){lt();const n=e.setupContext=r.length>1?Ya(e):null,i=Ma(e),o=Wn(r,e,0,[e.props,n]),s=U(o);if(ct(),i(),!s&&!e.sp||Di(e)||ci(e),s){if(o.then($a,$a),t)return o.then(n=>{La(!0);try{Ba(e,n,t)}finally{La(!1)}}).catch(t=>{Xn(t,e,0)});e.asyncDep=o}else Ba(e,o,t)}else Va(e,t)}(e,t):void 0;return t&&La(!1),s}function Ba(e,t,n){D(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:j(t)&&(e.setupState=_n(t)),Va(e,n)}function Ha(e){za=e,Fa=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,To))}}const qa=()=>!za;function Va(e,t,n){const r=e.type;if(!e.render){if(!t&&za&&!r.render){const t=r.template||Vo(e).template;if(t){const{isCustomElement:n,compilerOptions:i}=e.appContext.config,{delimiters:o,compilerOptions:s}=r,a=O(O({isCustomElement:n,delimiters:o},i),s);r.render=za(t,a)}}e.render=r.render||E,Fa&&Fa(e)}{const t=Ma(e);lt();try{!function(e){const t=Vo(e),n=e.proxy,r=e.ctx;Bo=!1,t.beforeCreate&&Ho(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:s,watch:a,provide:l,inject:c,created:u,beforeMount:d,mounted:h,beforeUpdate:p,updated:f,activated:g,deactivated:m,beforeDestroy:v,beforeUnmount:y,destroyed:b,unmounted:w,render:x,renderTracked:_,renderTriggered:S,errorCaptured:C,serverPrefetch:T,expose:k,inheritAttrs:O,components:A,directives:R,filters:P}=t;if(c&&function(e,t){I(e)&&(e=Go(e));for(const n in e){const r=e[n];let i;i=j(r)?"default"in r?Er(r.from||n,r.default,!0):Er(r.from||n):Er(r),pn(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}(c,r),s)for(const e in s){const t=s[e];D(t)&&(r[e]=t.bind(n))}if(i){const t=i.call(n,n);j(t)&&(e.data=Qt(t))}if(Bo=!0,o)for(const e in o){const t=o[e],i=D(t)?t.bind(n,n):D(t.get)?t.get.bind(n,n):E,s=!D(t)&&D(t.set)?t.set.bind(n):E,a=Qa({get:i,set:s});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(a)for(const e in a)qo(a[e],r,n,e);if(l){const e=D(l)?l.call(n):l;Reflect.ownKeys(e).forEach(t=>{Sr(t,e[t])})}function N(e,t){I(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(u&&Ho(u,e,"c"),N(Zi,d),N(Qi,h),N(eo,p),N(to,f),N(qi,g),N(Vi,m),N(ao,C),N(so,_),N(oo,S),N(no,y),N(ro,w),N(io,T),I(k))if(k.length){const t=e.exposed||(e.exposed={});k.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||(e.exposed={});x&&e.render===E&&(e.render=x),null!=O&&(e.inheritAttrs=O),A&&(e.components=A),R&&(e.directives=R),T&&ci(e)}(e)}finally{ct(),t()}}}const Wa={get:(e,t)=>(bt(e,0,""),e[t])};function Ya(e){return{attrs:new Proxy(e.attrs,Wa),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function Xa(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(_n(un(e.exposed)),{get:(t,n)=>n in t?t[n]:n in So?So[n](e):void 0,has:(e,t)=>t in e||t in So})):e.proxy}const Ga=/(?:^|[-_])\w/g,Ka=e=>e.replace(Ga,e=>e.toUpperCase()).replace(/[-_]/g,"");function Ja(e,t=!0){return D(e)?e.displayName||e.name:e.name||t&&e.__name}function Za(e,t,n=!1){let r=Ja(t);if(!r&&t.__file){const e=t.__file.match(/([^/\\]+)\.\w+$/);e&&(r=e[1])}if(!r&&e){const n=e=>{for(const n in e)if(e[n]===t)return n};r=n(e.components)||e.parent&&n(e.parent.type.components)||n(e.appContext.components)}return r?Ka(r):n?"App":"Anonymous"}const Qa=(e,t)=>{const n=function(e,t,n=!1){let r,i;return D(e)?r=e:(r=e.get,i=e.set),new Rn(r,i,n)}(e,0,ja);return n};function el(e,t,n){try{aa(-1);const r=arguments.length;return 2===r?j(t)&&!I(t)?da(t)?va(e,null,[t]):va(e,t):va(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&da(n)&&(n=[n]),va(e,t,n))}finally{aa(1)}}function tl(){}function nl(e,t,n,r){const i=n[r];if(i&&rl(i,e))return i;const o=t();return o.memo=e.slice(),o.cacheIndex=r,n[r]=o}function rl(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e0&&na&&na.push(e),!0}const il="3.5.42",ol=E,sl={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"},al=ur,ll=function e(t,n){var r,i;ur=t,ur?(ur.enabled=!0,hr.forEach(({event:e,args:t})=>ur.emit(e,...t)),hr=[]):"undefined"!=typeof window&&window.HTMLElement&&!(null==(i=null==(r=window.navigator)?void 0:r.userAgent)?void 0:i.includes("jsdom"))?((n.__VUE_DEVTOOLS_HOOK_REPLAY__=n.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(t=>{e(t,n)}),setTimeout(()=>{ur||(n.__VUE_DEVTOOLS_HOOK_REPLAY__=null,pr=!0,hr=[])},3e3)):(pr=!0,hr=[])},cl={createComponentInstance:Ra,setupComponent:Ua,renderComponentRoot:cs,setCurrentRenderingInstance:mr,isVNode:da,normalizeVNode:Sa,getComponentPublicInstance:Xa,ensureValidVNode:wo,pushWarningContext:function(e){Fn.push(e)},popWarningContext:function(){Fn.pop()}};let ul;const dl="undefined"!=typeof window&&window.trustedTypes;if(dl)try{ul=dl.createPolicy("vue",{createHTML:e=>e})}catch(iy){}const hl=ul?e=>ul.createHTML(e):e=>e,pl="undefined"!=typeof document?document:null,fl=pl&&pl.createElement("template"),gl={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i="svg"===t?pl.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?pl.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?pl.createElement(e,{is:n}):pl.createElement(e);return"select"===e&&r&&null!=r.multiple&&i.setAttribute("multiple",r.multiple),i},createText:e=>pl.createTextNode(e),createComment:e=>pl.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>pl.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,o){const s=n?n.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),i!==o&&(i=i.nextSibling););else{fl.innerHTML=hl("svg"===r?`${e}`:"mathml"===r?`${e}`:e);const i=fl.content;if("svg"===r||"mathml"===r){const e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},ml="transition",vl="animation",yl=Symbol("_vtc"),bl={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},wl=O({},Jr,bl),xl=(e=>(e.displayName="Transition",e.props=wl,e))((e,{slots:t})=>el(ei,El(e),t)),_l=(e,t=[])=>{I(e)?e.forEach(e=>e(...t)):e&&e(...t)},Sl=e=>!!e&&(I(e)?e.some(e=>e.length>1):e.length>1);function El(e){const t={};for(const n in e)n in bl||(t[n]=e[n]);if(!1===e.css)return t;const{name:n="v",type:r,duration:i,enterFromClass:o=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=o,appearActiveClass:c=s,appearToClass:u=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,f=function(e){if(null==e)return null;if(j(e))return[Cl(e.enter),Cl(e.leave)];{const t=Cl(e);return[t,t]}}(i),g=f&&f[0],m=f&&f[1],{onBeforeEnter:v,onEnter:y,onEnterCancelled:b,onLeave:w,onLeaveCancelled:x,onBeforeAppear:_=v,onAppear:S=y,onAppearCancelled:E=b}=t,C=(e,t,n,r)=>{e._enterCancelled=r,kl(e,t?u:a),kl(e,t?c:s),n&&n()},T=(e,t)=>{e._isLeaving=!1,kl(e,d),kl(e,p),kl(e,h),t&&t()},k=e=>(t,n)=>{const i=e?S:y,s=()=>C(t,e,n);_l(i,[t,s]),Ol(()=>{kl(t,e?l:o),Tl(t,e?u:a),Sl(i)||Rl(t,r,g,s)})};return O(t,{onBeforeEnter(e){_l(v,[e]),Tl(e,o),Tl(e,s)},onBeforeAppear(e){_l(_,[e]),Tl(e,l),Tl(e,c)},onEnter:k(!1),onAppear:k(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>T(e,t);Tl(e,d),e._enterCancelled?(Tl(e,h),Ll(e)):(Ll(e),Tl(e,h)),Ol(()=>{e._isLeaving&&(kl(e,d),Tl(e,p),Sl(w)||Rl(e,r,m,n))}),_l(w,[e,n])},onEnterCancelled(e){C(e,!1,void 0,!0),_l(b,[e])},onAppearCancelled(e){C(e,!0,void 0,!0),_l(E,[e])},onLeaveCancelled(e){T(e),_l(x,[e])}})}function Cl(e){return se(e)}function Tl(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[yl]||(e[yl]=new Set)).add(t)}function kl(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));const n=e[yl];n&&(n.delete(t),n.size||(e[yl]=void 0))}function Ol(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Al=0;function Rl(e,t,n,r){const i=e._endId=++Al,o=()=>{i===e._endId&&r()};if(null!=n)return setTimeout(o,n);const{type:s,timeout:a,propCount:l}=Pl(e,t);if(!s)return r();const c=s+"end";let u=0;const d=()=>{e.removeEventListener(c,h),o()},h=t=>{t.target===e&&++u>=l&&d()};setTimeout(()=>{u(n[e]||"").split(", "),i=r(`${ml}Delay`),o=r(`${ml}Duration`),s=Il(i,o),a=r(`${vl}Delay`),l=r(`${vl}Duration`),c=Il(a,l);let u=null,d=0,h=0;return t===ml?s>0&&(u=ml,d=s,h=o.length):t===vl?c>0&&(u=vl,d=c,h=l.length):(d=Math.max(s,c),u=d>0?s>c?ml:vl:null,h=u?u===ml?o.length:l.length:0),{type:u,timeout:d,propCount:h,hasTransform:u===ml&&/\b(?:transform|all)(?:,|$)/.test(r(`${ml}Property`).toString())}}function Il(e,t){for(;e.lengthNl(t)+Nl(e[n])))}function Nl(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function Ll(e){return(e?e.ownerDocument:document).body.offsetHeight}const Ml=Symbol("_vod"),$l=Symbol("_vsh"),Dl={name:"show",beforeMount(e,{value:t},{transition:n}){e[Ml]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):zl(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),zl(e,!0),r.enter(e)):r.leave(e,()=>{zl(e,!1)}):zl(e,t))},beforeUnmount(e,{value:t}){zl(e,t)}};function zl(e,t){e.style.display=t?e[Ml]:"none",e[$l]=!t}const Fl=Symbol("");function jl(e){const t=Ia();if(!t)return;const n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(e=>Bl(e,n))},r=()=>{const r=e(t.proxy);t.ce?Bl(t.ce,r):Ul(t.subTree,r),n(r)};eo(()=>{or(r)}),Qi(()=>{Pr(r,E,{flush:"post"});const e=new MutationObserver(r);e.observe(t.subTree.el.parentNode,{childList:!0}),ro(()=>e.disconnect())})}function Ul(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Ul(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)Bl(e.el,t);else if(e.type===Js)e.children.forEach(e=>Ul(e,t));else if(e.type===ea){let{el:n,anchor:r}=e;for(;n&&(Bl(n,t),n!==r);)n=n.nextSibling}}function Bl(e,t){if(1===e.nodeType){const n=e.style;let r="";for(const e in t){const i=De(t[e]);n.setProperty(`--${e}`,i),r+=`--${e}: ${i};`}n[Fl]=r}}const Hl=/(?:^|;)\s*display\s*:/,ql=/\s*!important$/;function Vl(e,t,n){if(I(n))n.forEach(n=>Vl(e,t,n));else if(null==n&&(n=""),t.startsWith("--"))ql.test(n)?e.setProperty(t,n.replace(ql,""),"important"):e.setProperty(t,n);else{const r=function(e,t){const n=Yl[t];if(n)return n;let r=J(t);if("filter"!==r&&r in e)return Yl[t]=r;r=ee(r);for(let n=0;nnc||(rc.then(()=>nc=0),nc=Date.now()),oc=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,sc=(e,t,n,r,i,o)=>{const s="svg"===i;"class"===t?function(e,t,n){const r=e[yl];r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,r,s):"style"===t?function(e,t,n){const r=e.style,i=z(n);let o=!1;if(n&&!i){if(t)if(z(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&Vl(r,t,"")}else for(const e in t)null==n[e]&&Vl(r,e,"");for(const i in n){"display"===i&&(o=!0);const s=n[i];null!=s?Xl(e,i,!z(t)&&t?t[i]:void 0,s)||Vl(r,i,s):Vl(r,i,"")}}else if(i){if(t!==n){const e=r[Fl];e&&(n+=";"+e),r.cssText=n,o=Hl.test(n)}}else t&&e.removeAttribute("style");Ml in e&&(e[Ml]=o?r.display:"",e[$l]&&(r.display="none"))}(e,n,r):T(t)?k(t)||function(e,t,n,r,i=null){const o=e[Ql]||(e[Ql]={}),s=o[t];if(r&&s)s.value=r;else{const[n,a]=function(e){let t,n;for(;(n=e.match(ec))&&!tc.test(e);)t||(t={}),e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[":"===e[2]?e.slice(3):Q(e.slice(2)),t]}(t);if(r){const s=o[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();const r=n.value;if(I(r)){const n=e.stopImmediatePropagation;e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0};const i=r.slice(),o=[e];for(let n=0;nJ(e)===r):Object.keys(n).some(e=>J(e)===r)}(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!z(r)))?Jl(e,J(t),r,0,t):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),Kl(e,t,r,s))},ac={};function lc(e,t,n){let r=ai(e,t);V(r)&&(r=O({},r,t));class i extends dc{constructor(e){super(r,e,n)}}return i.def=r,i}const cc=(e,t)=>lc(e,t,tu),uc="undefined"!=typeof HTMLElement?HTMLElement:class{};class dc extends uc{constructor(e,t={},n=eu){super(),this._def=e,this._props=t,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._styleAnchors=new WeakMap,this._ob=null,this.shadowRoot&&n!==eu?this._root=this.shadowRoot:!1!==e.shadowRoot?(this.attachShadow(O({},e.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;this.shadowRoot||this._resolved||this._parseSlots(),this._connected=!0;let e=this;for(;e=e&&(e.assignedSlot||e.parentNode||e.host);)if(e instanceof dc){this._parent=e;break}this._instance||(this._resolved?this._mount(this._def):e&&e._pendingResolve?this._pendingResolve=e._pendingResolve.then(()=>{if(this._pendingResolve=void 0,this.isConnected)return this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._inheritParentContext(e))}_inheritParentContext(e=this._parent){e&&this._app&&Object.setPrototypeOf(this._app._context.provides,e._instance.provides)}disconnectedCallback(){this._connected=!1,nr(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(e){for(const t of e)this._setAttr(t.attributeName)}_resolveDef(){if(this._pendingResolve)return this._pendingResolve;for(let e=0;e{this._resolved=!0,this._pendingResolve=void 0;const{props:n,styles:r}=e;let i;if(n&&!I(n))for(const e in n){const t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=se(this._props[e])),(i||(i=Object.create(null)))[J(e)]=!0)}this._numberProps=i,this._resolveProps(e),this.shadowRoot&&this._applyStyles(r),this._mount(e)},t=this._def.__asyncLoader;if(t)return this._pendingResolve=t().then(t=>{t.configureApp=this._def.configureApp,e(this._def=t,!0)}),this._pendingResolve;e(this._def)}_mount(e){this._app=this._createApp(e),this._inheritParentContext(),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const t=this._instance&&this._instance.exposed;if(t)for(const e in t)P(this,e)||Object.defineProperty(this,e,{get:()=>bn(t[e])})}_resolveProps(e){const{props:t}=e,n=I(t)?t:Object.keys(t||{});for(const e of Object.keys(this))"_"!==e[0]&&n.includes(e)&&this._setProp(e,this[e]);for(const e of n.map(J))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t,!0,!this._patching)}})}_setAttr(e){if(e.startsWith("data-v-"))return;const t=this.hasAttribute(e);let n=t?this.getAttribute(e):ac;const r=J(e);t&&this._numberProps&&this._numberProps[r]&&(n=se(n)),this._setProp(r,n,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,r=!1){if(t!==this._props[e]&&(this._dirty=!0,t===ac?delete this._props[e]:(this._props[e]=t,"key"===e&&this._app&&(this._app._ceVNode.key=t)),r&&this._instance&&this._update(),n)){const n=this._ob;n&&(this._processMutations(n.takeRecords()),n.disconnect()),!0===t?this.setAttribute(Q(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(Q(e),t+""):t||this.removeAttribute(Q(e)),n&&n.observe(this,{attributes:!0})}}_update(){const e=this._createVNode();this._app&&(e.appContext=this._app._context),Zc(e,this._root)}_createVNode(){const e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));const t=va(this._def,O(e,this._props));return this._instance||(t.ce=e=>{this._instance=e,e.ce=this,e.isCE=!0;const t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,V(t[0])?O({detail:t},t[0]):{detail:t}))};e.emit=(e,...n)=>{t(e,n),Q(e)!==e&&t(Q(e),n)},this._setParent()}),t}_applyStyles(e,t,n){if(!e)return;if(t){if(t===this._def||this._styleChildren.has(t))return;this._styleChildren.add(t)}const r=this._nonce,i=this.shadowRoot,o=n?this._getStyleAnchor(n)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(i);let s=null;for(let a=e.length-1;a>=0;a--){const l=document.createElement("style");r&&l.setAttribute("nonce",r),l.textContent=e[a],i.insertBefore(l,s||o),s=l,0===a&&(n||this._styleAnchors.set(this._def,l),t&&this._styleAnchors.set(t,l))}}_getStyleAnchor(e){if(!e)return null;const t=this._styleAnchors.get(e);return t&&t.parentNode===this.shadowRoot?t:(t&&this._styleAnchors.delete(e),null)}_getRootStyleInsertionAnchor(e){for(let t=0;t(delete e.props.mode,e))({name:"TransitionGroup",props:O({},wl,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Ia(),r=Gr();let i,o;return to(()=>{if(!i.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){const r=e.cloneNode(),i=e[yl];i&&i.forEach(e=>{e.split(/\s+/).forEach(e=>e&&r.classList.remove(e))}),n.split(/\s+/).forEach(e=>e&&r.classList.add(e)),r.style.display="none";const o=1===t.nodeType?t:t.parentNode;o.appendChild(r);const{hasTransform:s}=Pl(r);return o.removeChild(r),s}(i[0].el,n.vnode.el,t))return void(i=[]);i.forEach(xc),i.forEach(_c);const r=i.filter(Sc);Ll(n.vnode.el),r.forEach(e=>{const n=e.el,r=n.style;Tl(n,t),r.transform=r.webkitTransform=r.transitionDuration="";const i=n[vc]=e=>{e&&e.target!==n||e&&!e.propertyName.endsWith("transform")||(n.removeEventListener("transitionend",i),n[vc]=null,kl(n,t))};n.addEventListener("transitionend",i)}),i=[]}),()=>{const s=cn(e),a=El(s);let l=s.tag||Js;if(i=[],o)for(let e=0;e{const t=e.props["onUpdate:modelValue"]||!1;return I(t)?e=>re(t,e):t};function Tc(e){e.target.composing=!0}function kc(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Oc=Symbol("_assign"),Ac=Symbol("_initialValue");function Rc(e,t,n){return t&&(e=e.trim()),n&&(e=oe(e)),e}const Pc={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e.parentNode&&("text"===e.type?e[Ac]=e.defaultValue.replace(/[\r\n]/g,""):"textarea"===e.type&&(e[Ac]=e.defaultValue.replace(/\r\n?/g,"\n"))),e[Oc]=Cc(i);const o=r||i.props&&"number"===i.props.type;Zl(e,t?"change":"input",t=>{t.target.composing||e[Oc](Rc(e.value,n,o))}),(n||o)&&Zl(e,"change",()=>{e.value=Rc(e.value,n,o)}),t||(Zl(e,"compositionstart",Tc),Zl(e,"compositionend",kc),Zl(e,"change",kc))},mounted(e,{value:t,modifiers:{trim:n,number:r}}){const i=t??"",o=e[Ac];delete e[Ac],void 0===o||"text"!==e.type&&"textarea"!==e.type||e.value===o?e.value=i:e[Oc](Rc(e.value,n,r))},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:o}},s){if(e[Oc]=Cc(s),e.composing)return;const a=t??"";if((!o&&"number"!==e.type||/^0\d/.test(e.value)?e.value:oe(e.value))===a)return;const l=e.getRootNode();if((l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===e&&"range"!==e.type){if(r&&t===n)return;if(i&&e.value.trim()===a)return}e.value=a}},Ic={deep:!0,created(e,t,n){e[Oc]=Cc(n),Zl(e,"change",()=>{const t=e._modelValue,n=Dc(e),r=e.checked,i=e[Oc];if(I(t)){const e=Ie(t,n),o=-1!==e;if(r&&!o)i(t.concat(n));else if(!r&&o){const n=[...t];n.splice(e,1),i(n)}}else if(L(t)){const e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(zc(e,r))})},mounted:Nc,beforeUpdate(e,t,n){e[Oc]=Cc(n),Nc(e,t,n)}};function Nc(e,{value:t,oldValue:n},r){let i;if(e._modelValue=t,I(t))i=Ie(t,r.props.value)>-1;else if(L(t))i=t.has(r.props.value);else{if(t===n)return;i=Pe(t,zc(e,!0))}e.checked!==i&&(e.checked=i)}const Lc={created(e,{value:t},n){e.checked=Pe(t,n.props.value),e[Oc]=Cc(n),Zl(e,"change",()=>{e[Oc](Dc(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Oc]=Cc(r),t!==n&&(e.checked=Pe(t,r.props.value))}},Mc={deep:!0,created(e,{value:t,modifiers:{number:n}},r){e._modelValue=t,Zl(e,"change",()=>{const t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?oe(Dc(e)):Dc(e)),r=e.multiple,i=r?L(e._modelValue)?new Set(t):t:t[0],o=e._pendingValue=[r,r?I(i)?t.slice():t:i];try{e[Oc](i)}finally{nr(()=>{e._pendingValue===o&&(e._pendingValue=void 0)})}}),e[Oc]=Cc(r)},mounted(e,{value:t}){$c(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[Oc]=Cc(n)},updated(e,{value:t}){const n=e._pendingValue;e._pendingValue=void 0,n&&n[0]===e.multiple&&function(e,t,n){if(!n)return Pe(e,t);if(I(e))return Pe(e,t);if(L(e)){if(e.size!==t.length)return!1;for(const n of t)if(!e.has(n))return!1;return!0}return!1}(t,n[1],n[0])||$c(e,t)}};function $c(e,t){const n=e.multiple,r=I(t);if(!n||r||L(t)){for(let i=0,o=e.options.length;iString(e)===String(s)):Ie(t,s)>-1}else o.selected=t.has(s);else if(Pe(Dc(o),t))return void(e.selectedIndex!==i&&(e.selectedIndex=i))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function Dc(e){return"_value"in e?e._value:e.value}function zc(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Fc={created(e,t,n){Uc(e,t,n,null,"created")},mounted(e,t,n){Uc(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){Uc(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){Uc(e,t,n,r,"updated")}};function jc(e,t){switch(e){case"SELECT":return Mc;case"TEXTAREA":return Pc;default:switch(t){case"checkbox":return Ic;case"radio":return Lc;default:return Pc}}}function Uc(e,t,n,r,i){const o=jc(e.tagName,n.props&&n.props.type)[i];o&&o(e,t,n,r)}const Bc=["ctrl","shift","alt","meta"],Hc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>Bc.some(n=>e[`${n}Key`]&&!t.includes(n))},qc=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(n,...r)=>{for(let e=0;e{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=n=>{if(!("key"in n))return;const r=Q(n.key);return t.some(e=>e===r||Vc[e]===r)?e(n):void 0})},Yc=O({patchProp:sc},gl);let Xc,Gc=!1;function Kc(){return Xc||(Xc=Is(Yc))}function Jc(){return Xc=Gc?Xc:Ns(Yc),Gc=!0,Xc}const Zc=(...e)=>{Kc().render(...e)},Qc=(...e)=>{Jc().hydrate(...e)},eu=(...e)=>{const t=Kc().createApp(...e),{mount:n}=t;return t.mount=e=>{const r=ru(e);if(!r)return;const i=t._component;D(i)||i.render||i.template||(i.template=r.innerHTML),1===r.nodeType&&(r.textContent="");const o=n(r,!1,nu(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t},tu=(...e)=>{const t=Jc().createApp(...e),{mount:n}=t;return t.mount=e=>{const t=ru(e);if(t)return n(t,!0,nu(t))},t};function nu(e){return e instanceof SVGElement?"svg":"function"==typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}function ru(e){return z(e)?document.querySelector(e):e}let iu=!1;const ou=()=>{iu||(iu=!0,Pc.getSSRProps=({value:e})=>({value:e}),Lc.getSSRProps=({value:e},t)=>{if(t.props&&Pe(t.props.value,e))return{checked:!0}},Ic.getSSRProps=({value:e},t)=>{if(I(e)){if(t.props&&Ie(e,t.props.value)>-1)return{checked:!0}}else if(L(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},Fc.getSSRProps=(e,t)=>{if("string"!=typeof t.type)return;const n=jc(t.type.toUpperCase(),t.props&&t.props.type);return n.getSSRProps?n.getSSRProps(e,t):void 0},Dl.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}})},su=Symbol(""),au=Symbol(""),lu=Symbol(""),cu=Symbol(""),uu=Symbol(""),du=Symbol(""),hu=Symbol(""),pu=Symbol(""),fu=Symbol(""),gu=Symbol(""),mu=Symbol(""),vu=Symbol(""),yu=Symbol(""),bu=Symbol(""),wu=Symbol(""),xu=Symbol(""),_u=Symbol(""),Su=Symbol(""),Eu=Symbol(""),Cu=Symbol(""),Tu=Symbol(""),ku=Symbol(""),Ou=Symbol(""),Au=Symbol(""),Ru=Symbol(""),Pu=Symbol(""),Iu=Symbol(""),Nu=Symbol(""),Lu=Symbol(""),Mu=Symbol(""),$u=Symbol(""),Du=Symbol(""),zu=Symbol(""),Fu=Symbol(""),ju=Symbol(""),Uu=Symbol(""),Bu=Symbol(""),Hu=Symbol(""),qu=Symbol(""),Vu={[su]:"Fragment",[au]:"Teleport",[lu]:"Suspense",[cu]:"KeepAlive",[uu]:"BaseTransition",[du]:"openBlock",[hu]:"createBlock",[pu]:"createElementBlock",[fu]:"createVNode",[gu]:"createElementVNode",[mu]:"createCommentVNode",[vu]:"createTextVNode",[yu]:"createStaticVNode",[bu]:"resolveComponent",[wu]:"resolveDynamicComponent",[xu]:"resolveDirective",[_u]:"resolveFilter",[Su]:"withDirectives",[Eu]:"renderList",[Cu]:"renderSlot",[Tu]:"createSlots",[ku]:"toDisplayString",[Ou]:"mergeProps",[Au]:"normalizeClass",[Ru]:"normalizeStyle",[Pu]:"normalizeProps",[Iu]:"guardReactiveProps",[Nu]:"toHandlers",[Lu]:"camelize",[Mu]:"capitalize",[$u]:"toHandlerKey",[Du]:"setBlockTracking",[zu]:"pushScopeId",[Fu]:"popScopeId",[ju]:"withCtx",[Uu]:"unref",[Bu]:"isRef",[Hu]:"withMemo",[qu]:"isMemoSame"},Wu={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function Yu(e,t,n,r,i,o,s,a=!1,l=!1,c=!1,u=Wu){return e&&(a?(e.helper(du),e.helper(rd(e.inSSR,c))):e.helper(nd(e.inSSR,c)),s&&e.helper(Su)),{type:13,tag:t,props:n,children:r,patchFlag:i,dynamicProps:o,directives:s,isBlock:a,disableTracking:l,isComponent:c,loc:u}}function Xu(e,t=Wu){return{type:17,loc:t,elements:e}}function Gu(e,t=Wu){return{type:15,loc:t,properties:e}}function Ku(e,t){return{type:16,loc:Wu,key:z(e)?Ju(e,!0):e,value:t}}function Ju(e,t=!1,n=Wu,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function Zu(e,t=Wu){return{type:8,loc:t,children:e}}function Qu(e,t=[],n=Wu){return{type:14,loc:n,callee:e,arguments:t}}function ed(e,t=void 0,n=!1,r=!1,i=Wu){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:i}}function td(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:Wu}}function nd(e,t){return e||t?fu:gu}function rd(e,t){return e||t?hu:pu}function id(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(nd(r,e.isComponent)),t(du),t(rd(r,e.isComponent)))}const od=new Uint8Array([123,123]),sd=new Uint8Array([125,125]);function ad(e){return e>=97&&e<=122||e>=65&&e<=90}function ld(e){return 32===e||10===e||9===e||12===e||13===e}function cd(e){return 47===e||62===e||ld(e)}function ud(e){const t=new Uint8Array(e.length);for(let n=0;n4===e.type&&e.isStatic;function bd(e){switch(e){case"Teleport":case"teleport":return au;case"Suspense":case"suspense":return lu;case"KeepAlive":case"keep-alive":return cu;case"BaseTransition":case"base-transition":return uu}}const wd=/^$|^\d|[^\$\w\xA0-\uFFFF]/,xd=e=>!wd.test(e),_d=/[A-Za-z_$\xA0-\uFFFF]/,Sd=/[\.\?\w$\xA0-\uFFFF]/,Ed=/\s+[.[]\s*|\s*[.[]\s+/g,Cd=e=>4===e.type?e.content:e.loc.source,Td=e=>{const t=Cd(e).trim().replace(Ed,e=>e.trim());let n=0,r=[],i=0,o=0,s=null;for(let e=0;e|^\s*(?:async\s+)?function(?:\s+[\w$]+)?\s*\(/;function Od(e,t,n=!1){for(let r=0;r4===e.key.type&&e.key.content===r)}return n}function jd(e,t){return`_${t}_${e.replace(/[^\w]/g,(t,n)=>"-"===t?"_":e.charCodeAt(n).toString())}`}const Ud=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/;function Bd(e){for(let t=0;t0,isVoidTag:C,isPreTag:C,isIgnoreNewlineTag:C,isCustomElement:C,onError:gd,onWarn:md,comments:!1,prefixIdentifiers:!1};let Wd=Vd,Yd=null,Xd="",Gd=null,Kd=null,Jd="",Zd=-1,Qd=-1,eh=0,th=!1,nh=null;const rh=[],ih=new class{constructor(e,t){this.stack=e,this.cbs=t,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=od,this.delimiterClose=sd,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return 2===this.mode&&0===this.stack.length}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=od,this.delimiterClose=sd}getPos(e){let t=1,n=e+1;const r=this.newlines.length;let i=-1;if(r>100){let t=-1,n=r;for(;t+1>>1;this.newlines[r]=0;t--)if(e>this.newlines[t]){i=t;break}return i>=0&&(t=i+2,n=e-this.newlines[i]),{column:n,line:t,offset:e}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(e){60===e?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):this.inVPre||e!==this.delimiterOpen[0]||(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e))}stateInterpolationOpen(e){if(e===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const e=this.index+1-this.delimiterOpen.length;e>this.sectionStart&&this.cbs.ontext(this.sectionStart,e),this.state=3,this.sectionStart=e}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(e)):(this.state=1,this.stateText(e))}stateInterpolation(e){e===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(e))}stateInterpolationClose(e){e===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(e))}stateSpecialStartSequence(e){const t=this.sequenceIndex===this.currentSequence.length;if(t?cd(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t)return void this.sequenceIndex++}else this.inRCDATA=!1;this.sequenceIndex=0,this.state=6,this.stateInTagName(e)}stateInRCDATA(e){if(this.sequenceIndex===this.currentSequence.length){if(62===e||ld(e)){const t=this.index-this.currentSequence.length;if(this.sectionStart=e||(28===this.state?this.currentSequence===dd.CdataEnd?this.cbs.oncdata(this.sectionStart,e):this.cbs.oncomment(this.sectionStart,e):6===this.state||11===this.state||18===this.state||17===this.state||12===this.state||13===this.state||14===this.state||15===this.state||16===this.state||20===this.state||19===this.state||21===this.state||9===this.state||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,t){}}(rh,{onerr:Sh,ontext(e,t){ch(ah(e,t),e,t)},ontextentity(e,t,n){ch(e,t,n)},oninterpolation(e,t){if(th)return ch(ah(e,t),e,t);let n=e+ih.delimiterOpen.length,r=t-ih.delimiterClose.length;for(;ld(Xd.charCodeAt(n));)n++;for(;ld(Xd.charCodeAt(r-1));)r--;let i=ah(n,r);i.includes("&")&&(i=Wd.decodeEntities(i,!1)),yh({type:5,content:_h(i,!1,bh(n,r)),loc:bh(e,t)})},onopentagname(e,t){const n=ah(e,t);Gd={type:1,tag:n,ns:Wd.getNamespace(n,rh[0],Wd.ns),tagType:0,props:[],children:[],loc:bh(e-1,t),codegenNode:void 0}},onopentagend(e){lh(e)},onclosetag(e,t){const n=ah(e,t);if(!Wd.isVoidTag(n)){let r=!1;for(let e=0;e0&&Sh(24,rh[0].loc.start.offset);for(let n=0;n<=e;n++)uh(rh.shift(),t,n(7===e.type?e.rawName:e.name)===n)&&Sh(2,t)},onattribend(e,t){if(Gd&&Kd){if(wh(Kd.loc,t),0!==e)if(Jd.includes("&")&&(Jd=Wd.decodeEntities(Jd,!0)),6===Kd.type)"class"===Kd.name&&(Jd=vh(Jd).trim()),1!==e||Jd||Sh(13,t),Kd.value={type:2,content:Jd,loc:1===e?bh(Zd,Qd):bh(Zd-1,Qd+1)},ih.inSFCRoot&&"template"===Gd.tag&&"lang"===Kd.name&&Jd&&"html"!==Jd&&ih.enterRCDATA(ud("{const i=t.start.offset+n;return _h(e,!1,bh(i,i+e.length),0,r?1:0)},a={source:s(o.trim(),n.indexOf(o,i.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let l=i.trim().replace(sh,"").trim();const c=i.indexOf(l),u=l.match(oh);if(u){l=l.replace(oh,"").trim();const e=u[1].trim();let t;if(e&&(t=n.indexOf(e,c+l.length),a.key=s(e,t,!0)),u[2]){const r=u[2].trim();r&&(a.index=s(r,n.indexOf(r,a.key?t+e.length:c+l.length),!0))}}return l&&(a.value=s(l,c,!0)),a}(Kd.exp));let t=-1;"bind"===Kd.name&&(t=Kd.modifiers.findIndex(e=>"sync"===e.content))>-1&&fd("COMPILER_V_BIND_SYNC",Wd,Kd.loc,Kd.arg.loc.source)&&(Kd.name="model",Kd.modifiers.splice(t,1))}7===Kd.type&&"pre"===Kd.name||Gd.props.push(Kd)}Jd="",Zd=Qd=-1},oncomment(e,t){Wd.comments&&yh({type:3,content:ah(e,t),loc:bh(e-4,t+3)})},onend(){const e=Xd.length;for(let t=0;t64&&n<91||bd(e)||Wd.isBuiltInComponent&&Wd.isBuiltInComponent(e)||Wd.isNativeTag&&!Wd.isNativeTag(e))return!0;var n;for(let e=0;e6===e.type&&"inline-template"===e.name);n&&fd("COMPILER_INLINE_TEMPLATE",Wd,n.loc)&&e.children.length&&(n.value={type:2,content:ah(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:n.loc})}}function dh(e,t){let n=e;for(;Xd.charCodeAt(n)!==t&&n>=0;)n--;return n}const hh=new Set(["if","else","else-if","for","slot"]);function ph({tag:e,props:t}){if("template"===e)for(let e=0;e3!==e.type);return 1!==t.length||1!==t[0].type||Md(t[0])?null:t[0]}function Th(e,t,n,r=!1,i=!1){const{children:o}=e,s=[];for(let t=0;t0){if(e>=2){a.codegenNode.patchFlag=-1,s.push(a);continue}}else{const e=a.codegenNode;if(13===e.type){const t=e.patchFlag;if((void 0===t||512===t||1===t)&&Rh(a,n)>=2){const t=Ph(a);t&&(e.props=n.hoist(t))}e.dynamicProps&&(e.dynamicProps=n.hoist(e.dynamicProps))}}}else if(12===a.type&&(r?0:kh(a,n))>=2){14===a.codegenNode.type&&a.codegenNode.arguments.length>0&&a.codegenNode.arguments.push("-1"),s.push(a);continue}if(1===a.type){const t=1===a.tagType;t&&n.scopes.vSlot++,Th(a,e,n,!1,i),t&&n.scopes.vSlot--}else if(11===a.type)Th(a,e,n,1===a.children.length,!0);else if(9===a.type)for(let t=0;te.key===t||e.key.content===t);return n&&n.value}}s.length&&n.transformHoist&&n.transformHoist(o,n,e)}function kh(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(0!==e.tagType)return 0;const r=n.get(e);if(void 0!==r)return r;const i=e.codegenNode;if(13!==i.type)return 0;if(i.isBlock&&"svg"!==e.tag&&"foreignObject"!==e.tag&&"math"!==e.tag)return 0;if(void 0===i.patchFlag){let r=3;const o=Rh(e,t);if(0===o)return n.set(e,0),0;o1)for(let i=0;i`_${Vu[T.helper(e)]}`,replaceNode(e){T.parent.children[T.childIndex]=T.currentNode=e},removeNode(e){const t=T.parent.children,n=e?t.indexOf(e):T.currentNode?T.childIndex:-1;e&&e!==T.currentNode?T.childIndex>n&&(T.childIndex--,T.onNodeRemoved()):(T.currentNode=null,T.onNodeRemoved()),T.parent.children.splice(n,1)},onNodeRemoved:E,addIdentifiers(e){},removeIdentifiers(e){},hoist(e){z(e)&&(e=Ju(e)),T.hoists.push(e);const t=Ju(`_hoisted_${T.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache(e,t=!1,n=!1){const r=function(e,t,n=!1,r=!1){return{type:20,index:e,value:t,needPauseTracking:n,inVOnce:r,needArraySpread:!1,loc:Wu}}(T.cached.length,e,t,n);return T.cached.push(r),r}};return T.filters=new Set,T}(e,t);Nh(e,n),t.hoistStatic&&Eh(e,n),t.ssr||function(e,t){const{helper:n}=t,{children:r}=e;if(1===r.length){const n=Ch(e);if(n&&n.codegenNode){const r=n.codegenNode;13===r.type&&id(r,t),e.codegenNode=r}else e.codegenNode=r[0]}else if(r.length>1){let r=64;e.codegenNode=Yu(t,n(su),void 0,e.children,r,void 0,void 0,!0,void 0,!1)}}(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function Nh(e,t){t.currentNode=e;const{nodeTransforms:n}=t,r=[];for(let i=0;i{n--};for(;nt===e:t=>e.test(t);return(e,r)=>{if(1===e.type){const{props:i}=e;if(3===e.tagType&&i.some(Nd))return;const o=[];for(let s=0;s`${Vu[e]}: _${Vu[e]}`;function Dh(e,t,{helper:n,push:r,newline:i,isTS:o}){const s=n("filter"===t?_u:"component"===t?bu:xu);for(let n=0;n3||!1;t.push("["),n&&t.indent(),Fh(e,t,n),n&&t.deindent(),t.push("]")}function Fh(e,t,n=!1,r=!0){const{push:i,newline:o}=t;for(let s=0;se||"null")}([o,s,a,f,c]),t),n(")"),d&&n(")"),u&&(n(", "),jh(u,t),n(")"))}(e,t);break;case 14:!function(e,t){const{push:n,helper:r,pure:i}=t,o=z(e.callee)?e.callee:r(e.callee);i&&n(Mh),n(o+"(",-2,e),Fh(e.arguments,t),n(")")}(e,t);break;case 15:!function(e,t){const{push:n,indent:r,deindent:i,newline:o}=t,{properties:s}=e;if(!s.length)return void n("{}",-2,e);const a=s.length>1||!1;n(a?"{":"{ "),a&&r();for(let e=0;e "),(l||a)&&(n("{"),r()),s?(l&&n("return "),I(s)?zh(s,t):jh(s,t)):a&&jh(a,t),(l||a)&&(i(),n("}")),c&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}(e,t);break;case 19:!function(e,t){const{test:n,consequent:r,alternate:i,newline:o}=e,{push:s,indent:a,deindent:l,newline:c}=t;if(4===n.type){const e=!xd(n.content);e&&s("("),Uh(n,t),e&&s(")")}else s("("),jh(n,t),s(")");o&&a(),t.indentLevel++,o||s(" "),s("? "),jh(r,t),t.indentLevel--,o&&c(),o||s(" "),s(": ");const u=19===i.type;u||t.indentLevel++,jh(i,t),u||t.indentLevel--,o&&l(!0)}(e,t);break;case 20:!function(e,t){const{push:n,helper:r,indent:i,deindent:o,newline:s}=t,{needPauseTracking:a,needArraySpread:l}=e;l&&n("[...("),n(`_cache[${e.index}] || (`),a&&(i(),n(`${r(Du)}(-1`),e.inVOnce&&n(", true"),n("),"),s(),n("(")),n(`_cache[${e.index}] = `),jh(e.value,t),a&&(n(`).cacheIndex = ${e.index},`),s(),n(`${r(Du)}(1),`),s(),n(`_cache[${e.index}]`),o()),n(")"),l&&n(")]")}(e,t);break;case 21:Fh(e.body,t,!0,!1)}}function Uh(e,t){const{content:n,isStatic:r}=e;t.push(r?JSON.stringify(n):n,-3,e)}function Bh(e,t){for(let n=0;nfunction(e,t,n,r){if(!("else"===t.name||t.exp&&t.exp.content.trim())){const r=t.exp?t.exp.loc:e.loc;n.onError(vd(28,t.loc)),t.exp=Ju("true",!1,r)}if("if"===t.name){const o=Vh(e,t),s={type:9,loc:(i=e.loc,bh(i.start.offset,i.end.offset)),branches:[o]};if(n.replaceNode(s),r)return r(s,o,!0)}else{const i=n.parent.children;let o=i.indexOf(e);for(;o-- >=-1;){const s=i[o];if(!s||!qd(s)){if(s&&9===s.type){"else-if"!==t.name&&"else"!==t.name||void 0!==s.branches[s.branches.length-1].condition||n.onError(vd(30,e.loc)),n.removeNode();const i=Vh(e,t);s.branches.push(i);const o=r&&r(s,i,!1);Nh(i,n),o&&o(),n.currentNode=null}else n.onError(vd(30,e.loc));break}n.removeNode(s)}}var i}(e,t,n,(e,t,r)=>{const i=n.parent.children;let o=i.indexOf(e),s=0;for(;o-- >=0;){const e=i[o];e&&9===e.type&&(s+=e.branches.length)}return()=>{if(r)e.codegenNode=Wh(t,s,n);else{const r=function(e){for(;;)if(19===e.type){if(19!==e.alternate.type)return e;e=e.alternate}else 20===e.type&&(e=e.value)}(e.codegenNode);r.alternate=Wh(t,s+e.branches.length-1,n)}}}));function Vh(e,t){const n=3===e.tagType;return{type:10,loc:e.loc,condition:"else"===t.name?void 0:t.exp,children:n&&!Od(e,"for")?e.children:[e],userKey:Ad(e,"key"),isTemplateIf:n}}function Wh(e,t,n){return e.condition?td(e.condition,Yh(e,t,n),Qu(n.helper(mu),['""',"true"])):Yh(e,t,n)}function Yh(e,t,n){const{helper:r}=n,i=Ku("key",Ju(`${t}`,!1,Wu,2)),{children:o}=e,s=o[0];if(1!==o.length||1!==s.type){if(1===o.length&&11===s.type){const e=s.codegenNode;return zd(e,i,n),e}{let t=64;return Yu(n,r(su),Gu([i]),o,t,void 0,void 0,!0,!1,!1,e.loc)}}{const e=s.codegenNode,t=14===(a=e).type&&a.callee===Hu?a.arguments[1].returns:a;return 13===t.type&&id(t,n),zd(t,i,n),e}var a}const Xh=Lh("for",(e,t,n)=>{const{helper:r,removeHelper:i}=n;return function(e,t,n,r){if(!t.exp)return void n.onError(vd(31,t.loc));const i=t.forParseResult;if(!i)return void n.onError(vd(32,t.loc));Gh(i);const{addIdentifiers:o,removeIdentifiers:s,scopes:a}=n,{source:l,value:c,key:u,index:d}=i,h={type:11,loc:t.loc,source:l,valueAlias:c,keyAlias:u,objectIndexAlias:d,parseResult:i,children:Ld(e)?e.children:[e]};n.replaceNode(h),a.vFor++;const p=r&&r(h);return()=>{a.vFor--,p&&p()}}(e,t,n,t=>{const o=Qu(r(Eu),[t.source]),s=Ld(e),a=Od(e,"memo"),l=Ad(e,"key",!1,!0);l&&l.type;let c=l&&(6===l.type?l.value?Ju(l.value.content,!0):void 0:l.exp);const u=c?Ku("key",c):null,d=4===t.source.type&&t.source.constType>0,h=d?64:l?128:256;return t.codegenNode=Yu(n,r(su),void 0,o,h,void 0,void 0,!0,!d,!1,e.loc),()=>{var l;let h;const{children:p}=t,f=1!==p.length||1!==p[0].type,g=Md(e)?e:s&&1===e.children.length&&Md(e.children[0])?e.children[0]:null;if(g)h=g.codegenNode,s&&u&&zd(h,u,n);else if(f)h=Yu(n,r(su),u?Gu([u]):void 0,e.children,64,void 0,void 0,!0,void 0,!1);else{h=p[0].codegenNode,s&&u&&zd(h,u,n);const e=!d||!0===h.isBlockRequired;h.isBlock!==e&&(h.isBlock?(i(du),i(rd(n.inSSR,h.isComponent))):i(nd(n.inSSR,h.isComponent))),h.isBlock=e,h.isBlock?(r(du),r(rd(n.inSSR,h.isComponent))):(r(nd(n.inSSR,h.isComponent)),h.needsPatch&&(h.patchFlag=512|(null!=(l=h.patchFlag)?l:0)))}if(a){const e=ed(Kh(t.parseResult,[Ju("_cached")]));e.body={type:21,body:[Zu(["const _memo = (",a.exp,")"]),Zu(["if (_cached && _cached.el",...c?[" && _cached.key === ",c]:[],` && ${n.helperString(qu)}(_cached, _memo)) return _cached`]),Zu(["const _item = ",h]),Ju("_item.memo = _memo"),Ju("return _item")],loc:Wu},o.arguments.push(e,Ju("_cache"),Ju(String(n.cached.length))),n.cached.push(null)}else o.arguments.push(ed(Kh(t.parseResult),h,!0))}})});function Gh(e,t){e.finalized||(e.finalized=!0)}function Kh({value:e,key:t,index:n},r=[]){return function(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((e,t)=>e||Ju("_".repeat(t+1),!1))}([e,t,n,...r])}const Jh=Ju("undefined",!1),Zh=(e,t)=>{if(1===e.type&&(1===e.tagType||3===e.tagType)){const n=Od(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},Qh=(e,t,n,r)=>ed(e,n,!1,!0,n.length?n[0].loc:r);function ep(e,t,n=Qh){t.helper(ju);const{children:r,loc:i}=e,o=[],s=[];let a=t.scopes.vSlot>0||t.scopes.vFor>0;const l=Od(e,"slot",!0);if(l){const{arg:e,exp:t}=l;e&&!yd(e)&&(a=!0),o.push(Ku(e||Ju("default",!0),n(t,void 0,r,i)))}let c=!1,u=!1;const d=[],h=new Set;let p=0;for(let e=0;e{const o=n(e,void 0,r,i);return t.compatConfig&&(o.isNonScopedSlot=!0),Ku("default",o)};c?d.length&&!d.every(Hd)&&(u?t.onError(vd(39,d[0].loc)):o.push(e(void 0,d))):o.push(e(void 0,r))}const f=a?2:np(e.children)?3:1;let g=Gu(o.concat(Ku("_",Ju(f+"",!1))),i);return s.length&&(g=Qu(t.helper(Tu),[g,Xu(s)])),{slots:g,hasDynamicSlots:a}}function tp(e,t,n){const r=[Ku("name",e),Ku("fn",t)];return null!=n&&r.push(Ku("key",Ju(String(n),!0))),Gu(r)}function np(e){for(let t=0;tfunction(){if(1!==(e=t.currentNode).type||0!==e.tagType&&1!==e.tagType)return;const{tag:n,props:r}=e,i=1===e.tagType;let o=i?function(e,t,n=!1){let{tag:r}=e;const i=lp(r),o=Ad(e,"is",!1,!0);if(o)if(i||pd("COMPILER_IS_ON_ELEMENT",t)){let e;if(6===o.type?e=o.value&&Ju(o.value.content,!0):(e=o.exp,e||(e=Ju("is",!1,o.arg.loc))),e)return Qu(t.helper(wu),[e])}else 6===o.type&&o.value.content.startsWith("vue:")&&(r=o.value.content.slice(4));const s=bd(r)||t.isBuiltInComponent(r);return s?(n||t.helper(s),s):(t.helper(bu),t.components.add(r),jd(r,"component"))}(e,t):`"${n}"`;const s=j(o)&&o.callee===wu;let a,l,c,u,d,h=0,p=!1,f=!1,g=s||o===au||o===lu||!i&&("svg"===n||"foreignObject"===n||"math"===n);if(r.length>0){const n=op(e,t,void 0,i,s);a=n.props,h=n.patchFlag,u=n.dynamicPropNames,p=n.needsPatch,f=n.isBlockRequired;const r=n.directives;d=r&&r.length?Xu(r.map(e=>function(e,t){const n=[],r=rp.get(e);r?n.push(t.helperString(r)):(t.helper(xu),t.directives.add(e.name),n.push(jd(e.name,"directive")));const{loc:i}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const t=Ju("true",!1,i);n.push(Gu(e.modifiers.map(e=>Ku(e,t)),i))}return Xu(n,e.loc)}(e,t))):void 0,n.shouldUseBlock&&(g=!0)}if(e.children.length>0)if(o===cu&&(g=!0,h|=1024),i&&o!==au&&o!==cu){const{slots:n,hasDynamicSlots:r}=ep(e,t);l=n,r&&(h|=1024)}else if(1===e.children.length&&o!==au){const n=e.children[0],r=n.type,i=5===r||8===r;i&&0===kh(n,t)&&(h|=1),l=i||2===r?n:e.children}else l=e.children;u&&u.length&&(c=function(e){let t="[";for(let n=0,r=e.length;n0;let p=!1,f=!1,g=0,m=!1,v=!1,y=!1,b=!1,w=!1,x=!1;const _=[],S=e=>{c.length&&(u.push(Gu(sp(c),a)),c=[]),e&&u.push(e)},E=()=>{t.scopes.vFor>0&&c.push(Ku(Ju("ref_for",!0),Ju("true")))},C=({key:e,value:n})=>{if(yd(e)){const o=e.content,s=T(o);if(!s||r&&!i||"onclick"===o.toLowerCase()||"onUpdate:modelValue"===o||Y(o)||(b=!0),s&&Y(o)&&(x=!0),"ref"===o&&(m=!0),s&&14===n.type&&(n=n.arguments[0]),20===n.type||(4===n.type||8===n.type)&&kh(n,t)>0)return;"class"===o?v=!0:"style"===o?y=!0:"ref"===o||"key"===o||_.includes(o)||_.push(o),!r||"class"!==o&&"style"!==o||_.includes(o)||_.push(o)}else w=!0};for(let i=0;i"prop"===e.content)&&(g|=32);const _=t.directiveTransforms[n];if(_){const{props:n,needRuntime:r}=_(l,e,t);!o&&n.forEach(C),x&&i&&!yd(i)?S(Gu(n,a)):c.push(...n),r&&(d.push(l),F(r)&&rp.set(l,r))}else X(n)||(d.push(l),h&&(p=!0,f=!0))}}let k;u.length?(S(),k=u.length>1?Qu(t.helper(Ou),u,a):u[0]):c.length&&(k=Gu(sp(c),a)),w?g|=16:(v&&!r&&(g|=2),y&&!r&&(g|=4),_.length&&(g|=8),b&&(g|=32));const O=(0===g||32===g)&&(m||x||d.length>0);if(!p&&O&&(g|=512),!t.inSSR&&k)switch(k.type){case 15:let e=-1,n=-1,r=!1;for(let t=0;t{if(Md(e)){const{children:n,loc:r}=e,{slotName:i,slotProps:o}=function(e,t){let n,r='"default"';const i=[];for(let t=0;t0){const{props:r,directives:o}=op(e,t,i,!1,!1);n=r,o.length&&t.onError(vd(36,o[0].loc))}return{slotName:r,slotProps:n}}(e,t),s=[t.prefixIdentifiers?"_ctx.$slots":"$slots",i,"{}","undefined","true"];let a=2;o&&(s[2]=o,a=3),n.length&&(s[3]=ed([],n,!1,!1,r),a=4),t.scopeId&&!t.slotted&&(a=5),s.splice(a),e.codegenNode=Qu(t.helper(Cu),s,r)}},up=(e,t,n,r)=>{const{loc:i,modifiers:o,arg:s}=e;let a;if(e.exp||o.length||n.onError(vd(35,i)),4===s.type)if(s.isStatic){let e=s.content;e.startsWith("vue:")&&(e=`vnode-${e.slice(4)}`),a=Ju(0!==t.tagType||e.startsWith("vnode")||!/[A-Z]/.test(e)?te(J(e)):`on:${e}`,!0,s.loc)}else a=Zu([`${n.helperString($u)}(`,s,")"]);else a=s,a.children.unshift(`${n.helperString($u)}(`),a.children.push(")");let l=e.exp;l&&!l.content.trim()&&(l=void 0);let c=n.cacheHandlers&&!l&&!n.inVOnce;if(l){const e=Td(l),t=!(e||(e=>kd.test(Cd(e)))(l)),n=l.content.includes(";");(t||c&&e)&&(l=Zu([`${t?"$event":"(...args)"} => ${n?"{":"("}`,l,n?"}":")"]))}let u={props:[Ku(a,l||Ju("() => {}",!1,i))]};return r&&(u=r(u)),c&&(u.props[0].value=n.cache(u.props[0].value)),u.props.forEach(e=>e.key.isHandlerKey=!0),u},dp=(e,t,n)=>{const{modifiers:r,loc:i}=e,o=e.arg;let{exp:s}=e;return s&&4===s.type&&!s.content.trim()&&(s=void 0),4!==o.type?(o.children.unshift("("),o.children.push(') || ""')):o.isStatic||(o.content=o.content?`${o.content} || ""`:'""'),r.some(e=>"camel"===e.content)&&(4===o.type?o.isStatic?o.content=J(o.content):o.content=`${n.helperString(Lu)}(${o.content})`:(o.children.unshift(`${n.helperString(Lu)}(`),o.children.push(")"))),n.inSSR||(r.some(e=>"prop"===e.content)&&hp(o,"."),r.some(e=>"attr"===e.content)&&hp(o,"^")),{props:[Ku(o,s)]}},hp=(e,t)=>{4===e.type?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},pp=(e,t)=>{if(0===e.type||1===e.type||11===e.type||10===e.type)return()=>{const n=e.children;let r,i=!1;for(let e=0;e7===e.type&&!t.directiveTransforms[e.name])||"template"===e.tag)))for(let e=0;e{if(1===e.type&&Od(e,"once",!0)){if(fp.has(e)||t.inVOnce||t.inSSR)return;return fp.add(e),t.inVOnce=!0,t.helper(Du),()=>{t.inVOnce=!1;const e=t.currentNode;e.codegenNode&&(e.codegenNode=t.cache(e.codegenNode,!0,!0))}}},mp=(e,t,n)=>{const{exp:r,arg:i}=e;if(!r)return n.onError(vd(41,e.loc)),vp();const o=r.loc.source.trim(),s=4===r.type?r.content:o,a=n.bindingMetadata[o];if("props"===a||"props-aliased"===a)return n.onError(vd(44,r.loc)),vp();if("literal-const"===a||"setup-const"===a)return n.onError(vd(45,r.loc)),vp();if(!s.trim()||!Td(r))return n.onError(vd(42,r.loc)),vp();const l=i||Ju("modelValue",!0),c=i?yd(i)?`onUpdate:${J(i.content)}`:Zu(['"onUpdate:" + ',i]):"onUpdate:modelValue";let u;u=Zu([(n.isTS?"($event: any)":"$event")+" => ((",r,") = $event)"]);const d=[Ku(l,e.exp),Ku(c,u)];if(e.modifiers.length&&1===t.tagType){const t=e.modifiers.map(e=>e.content).map(e=>(xd(e)?e:JSON.stringify(e))+": true").join(", "),n=i?yd(i)?`${i.content}Modifiers`:Zu([i,' + "Modifiers"']):"modelModifiers";d.push(Ku(n,Ju(`{ ${t} }`,!1,e.loc,2)))}return vp(d)};function vp(e=[]){return{props:e}}const yp=/[\w).+\-_$\]]/,bp=(e,t)=>{pd("COMPILER_FILTERS",t)&&(5===e.type?wp(e.content,t):1===e.type&&e.props.forEach(e=>{7===e.type&&"for"!==e.name&&e.exp&&wp(e.exp,t)}))};function wp(e,t){if(4===e.type)xp(e,t);else for(let n=0;n=0&&(e=n.charAt(t)," "===e);t--);e&&yp.test(e)||(u=!0)}}else void 0===s?(f=o+1,s=n.slice(0,o).trim()):m();function m(){g.push(n.slice(f,o).trim()),f=o+1}if(void 0===s?s=n.slice(0,o).trim():0!==f&&m(),g.length){for(o=0;o{if(1===e.type){const n=Od(e,"memo");if(!n||Sp.has(e)||t.inSSR)return;return Sp.add(e),()=>{const r=e.codegenNode||t.currentNode.codegenNode;r&&13===r.type&&(1!==e.tagType&&id(r,t),e.codegenNode=Qu(t.helper(Hu),[n.exp,ed(void 0,r),"_cache",String(t.cached.length)]),t.cached.push(null))}}},Cp=(e,t)=>{if(1===e.type)for(const n of e.props)if(7===n.type&&"bind"===n.name&&(!n.exp||4===n.exp.type&&!n.exp.content.trim())&&n.arg){const e=n.arg;if(4===e.type&&e.isStatic){const t=J(e.content);(_d.test(t[0])||"-"===t[0])&&(n.exp=Ju(t,!1,e.loc))}else t.onError(vd(53,e.loc)),n.exp=Ju("",!0,e.loc)}};function Tp(e,t={}){const n=t.onError||gd,r="module"===t.mode;!0===t.prefixIdentifiers?n(vd(48)):r&&n(vd(49)),t.cacheHandlers&&n(vd(50)),t.scopeId&&!r&&n(vd(51));const i=O({},t,{prefixIdentifiers:!1}),o=z(e)?function(e,t){if(ih.reset(),Gd=null,Kd=null,Jd="",Zd=-1,Qd=-1,rh.length=0,Xd=e,Wd=O({},Vd),t){let e;for(e in t)null!=t[e]&&(Wd[e]=t[e])}ih.mode="html"===Wd.parseMode?1:"sfc"===Wd.parseMode?2:0,ih.inXML=1===Wd.ns||2===Wd.ns;const n=t&&t.delimiters;n&&(ih.delimiterOpen=ud(n[0]),ih.delimiterClose=ud(n[1]));const r=Yd=function(e,t=""){return{type:0,source:t,children:[],helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:Wu}}(0,e);return ih.parse(Xd),r.loc=bh(0,e.length),r.children=gh(r.children),Yd=null,r}(e,i):e,[s,a]=[[Cp,gp,qh,Ep,Xh,bp,cp,ip,Zh,pp],{on:up,bind:dp,model:mp}];return Ih(o,O({},i,{nodeTransforms:[...s,...t.nodeTransforms||[]],directiveTransforms:O({},a,t.directiveTransforms||{})})),function(e,t={}){const n=function(e,{mode:t="function",prefixIdentifiers:n="module"===t,sourceMap:r=!1,filename:i="template.vue.html",scopeId:o=null,optimizeImports:s=!1,runtimeGlobalName:a="Vue",runtimeModuleName:l="vue",ssrRuntimeModuleName:c="vue/server-renderer",ssr:u=!1,isTS:d=!1,inSSR:h=!1}){const p={mode:t,prefixIdentifiers:n,sourceMap:r,filename:i,scopeId:o,optimizeImports:s,runtimeGlobalName:a,runtimeModuleName:l,ssrRuntimeModuleName:c,ssr:u,isTS:d,inSSR:h,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper:e=>`_${Vu[e]}`,push(e,t=-2,n){p.code+=e},indent(){f(++p.indentLevel)},deindent(e=!1){e?--p.indentLevel:f(--p.indentLevel)},newline(){f(p.indentLevel)}};function f(e){p.push("\n"+" ".repeat(e),0)}return p}(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:r,push:i,prefixIdentifiers:o,indent:s,deindent:a,newline:l,scopeId:c,ssr:u}=n,d=Array.from(e.helpers),h=d.length>0,p=!o&&"module"!==r;if(function(e,t){const{ssr:n,prefixIdentifiers:r,push:i,newline:o,runtimeModuleName:s,runtimeGlobalName:a,ssrRuntimeModuleName:l}=t,c=a,u=Array.from(e.helpers);u.length>0&&(i(`const _Vue = ${c}\n`,-1),e.hoists.length)&&i(`const { ${[fu,gu,mu,vu,yu].filter(e=>u.includes(e)).map($h).join(", ")} } = _Vue\n`,-1),function(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:r}=t;r();for(let i=0;i0)&&l()),e.directives.length&&(Dh(e.directives,"directive",n),e.temps>0&&l()),e.filters&&e.filters.length&&(l(),Dh(e.filters,"filter",n),l()),e.temps>0){i("let ");for(let t=0;t0?", ":""}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(i("\n",0),l()),u||i("return "),e.codegenNode?jh(e.codegenNode,n):i("null"),p&&(a(),i("}")),a(),i("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}(o,i)}const kp=Symbol(""),Op=Symbol(""),Ap=Symbol(""),Rp=Symbol(""),Pp=Symbol(""),Ip=Symbol(""),Np=Symbol(""),Lp=Symbol(""),Mp=Symbol(""),$p=Symbol("");var Dp;let zp;Dp={[kp]:"vModelRadio",[Op]:"vModelCheckbox",[Ap]:"vModelText",[Rp]:"vModelSelect",[Pp]:"vModelDynamic",[Ip]:"withModifiers",[Np]:"withKeys",[Lp]:"vShow",[Mp]:"Transition",[$p]:"TransitionGroup"},Object.getOwnPropertySymbols(Dp).forEach(e=>{Vu[e]=Dp[e]});const Fp={parseMode:"html",isVoidTag:we,isNativeTag:e=>ve(e)||ye(e)||be(e),isPreTag:e=>"pre"===e,isIgnoreNewlineTag:e=>"pre"===e||"textarea"===e,decodeEntities:function(e,t=!1){return zp||(zp=document.createElement("div")),t?(zp.innerHTML=`
`,zp.children[0].getAttribute("foo")):(zp.innerHTML=e,zp.textContent)},isBuiltInComponent:e=>"Transition"===e||"transition"===e?Mp:"TransitionGroup"===e||"transition-group"===e?$p:void 0,getNamespace(e,t,n){let r=t?t.ns:n;if(t&&2===r)if("annotation-xml"===t.tag){if("svg"===e)return 1;t.props.some(e=>6===e.type&&"encoding"===e.name&&null!=e.value&&("text/html"===e.value.content||"application/xhtml+xml"===e.value.content))&&(r=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&"mglyph"!==e&&"malignmark"!==e&&(r=0);else t&&1===r&&("foreignObject"!==t.tag&&"desc"!==t.tag&&"title"!==t.tag||(r=0));if(0===r){if("svg"===e)return 1;if("math"===e)return 2}return r}},jp=(e,t)=>{const n=fe(e);return Ju(JSON.stringify(n),!1,t,3)};function Up(e,t){return vd(e,t)}const Bp=x("passive,once,capture"),Hp=x("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),qp=x("left,right"),Vp=x("onkeyup,onkeydown,onkeypress"),Wp=(e,t)=>yd(e)&&"onclick"===e.content.toLowerCase()?Ju(t,!0):4!==e.type?Zu(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,Yp=(e,t)=>{1!==e.type||0!==e.tagType||"script"!==e.tag&&"style"!==e.tag||t.removeNode()},Xp=[e=>{1===e.type&&e.props.forEach((t,n)=>{6===t.type&&"style"===t.name&&t.value&&(e.props[n]={type:7,name:"bind",arg:Ju("style",!0,t.loc),exp:jp(t.value.content,t.loc),modifiers:[],loc:t.loc})})}],Gp={cloak:()=>({props:[]}),html:(e,t,n)=>{const{exp:r,loc:i}=e;return r||n.onError(Up(54,i)),t.children.length&&(n.onError(Up(55,i)),t.children.length=0),{props:[Ku(Ju("innerHTML",!0,i),r||Ju("",!0))]}},text:(e,t,n)=>{const{exp:r,loc:i}=e;return r||n.onError(Up(56,i)),t.children.length&&(n.onError(Up(57,i)),t.children.length=0),{props:[Ku(Ju("textContent",!0),r?kh(r,n)>0?r:Qu(n.helperString(ku),[r],i):Ju("",!0))]}},model:(e,t,n)=>{const r=mp(e,t,n);if(!r.props.length||1===t.tagType)return r;e.arg&&n.onError(Up(59,e.arg.loc));const{tag:i}=t,o=n.isCustomElement(i);if("input"===i||"textarea"===i||"select"===i||o){let s=Ap,a=!1;if("input"===i||o){const r=Ad(t,"type");if(r){if(7===r.type)s=Pp;else if(r.value)switch(r.value.content){case"radio":s=kp;break;case"checkbox":s=Op;break;case"file":a=!0,n.onError(Up(60,e.loc))}}else(function(e){return e.props.some(e=>!(7!==e.type||"bind"!==e.name||e.arg&&4===e.arg.type&&e.arg.isStatic))})(t)&&(s=Pp)}else"select"===i&&(s=Rp);a||(r.needRuntime=n.helper(s))}else n.onError(Up(58,e.loc));return r.props=r.props.filter(e=>!(4===e.key.type&&"modelValue"===e.key.content)),r},on:(e,t,n)=>up(e,t,n,t=>{const{modifiers:r}=e;if(!r.length)return t;let{key:i,value:o}=t.props[0];const{keyModifiers:s,nonKeyModifiers:a,eventOptionModifiers:l}=((e,t,n)=>{const r=[],i=[],o=[];for(let s=0;s{const{exp:r,loc:i}=e;return r||n.onError(Up(62,i)),{props:[],needRuntime:n.helper(Lp)}}},Kp=Object.create(null);Ha(function(e,n){if(!z(e)){if(!e.nodeType)return E;e=e.innerHTML}const r=function(e,t){return e+JSON.stringify(t,(e,t)=>"function"==typeof t?t.toString():t)}(e,n),i=Kp[r];if(i)return i;if("#"===e[0]){const t=document.querySelector(e);e=t?t.innerHTML:""}const o=O({hoistStatic:!0,onError:void 0,onWarn:E},n);o.isCustomElement||"undefined"==typeof customElements||(o.isCustomElement=e=>!!customElements.get(e));const{code:s}=function(e,t={}){return Tp(e,O({},Fp,t,{nodeTransforms:[Yp,...Xp,...t.nodeTransforms||[]],directiveTransforms:O({},Gp,t.directiveTransforms||{}),transformHoist:null}))}(e,o),a=new Function("Vue",s)(t);return a._rc=!0,Kp[r]=a});const Jp=["disabled"],Zp={key:0},Qp={key:1},ef=["onClick"],tf=["onClick"],nf=["onClick"],rf=["innerHTML"],of={widgets:{fetch:"admin/dashboard/widget",save:"admin/dashboard/widget/save",body:"admin/dashboard/widget/body",config:"admin/dashboard/widget/config"}},sf={create:"admin/session",destroy:e=>`admin/session/${e}/destroy`,heartbeat:e=>`admin/session/${e}/heartbeat`,inactive:e=>`admin/session/${e}/inactive`},af={list:"admin/export",create:"admin/export",fetch:e=>`admin/export/${e}`},lf={list:"admin/note",create:"admin/note",delete:e=>`admin/note/${e}`,count:"admin/note/count"};function cf(e,t){return function(){return e.apply(t,arguments)}}const{toString:uf}=Object.prototype,{getPrototypeOf:df}=Object,{iterator:hf,toStringTag:pf}=Symbol,ff=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),gf=e=>"string"==typeof e&&("__proto__"===e||"constructor"===e||"prototype"===e),mf=(e,t,n)=>e===Object.prototype||!n&&null===t,vf=(e,t)=>{let n=e;const r=[];for(;null!=n;){if(-1!==r.indexOf(n))return!1;r.push(n);const i=df(n);if(mf(n,i,n===e))return!1;if(ff(n,t))return!0;n=i}return!1},yf=(bf=Object.create(null),e=>{const t=uf.call(e);return bf[t]||(bf[t]=t.slice(8,-1).toLowerCase())});var bf;const wf=e=>(e=e.toLowerCase(),t=>yf(t)===e),xf=e=>t=>typeof t===e,{isArray:_f}=Array,Sf=xf("undefined");function Ef(e){return null!==e&&!Sf(e)&&null!==e.constructor&&!Sf(e.constructor)&&kf(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Cf=wf("ArrayBuffer"),Tf=xf("string"),kf=xf("function"),Of=xf("number"),Af=e=>null!==e&&"object"==typeof e,Rf=e=>{if(!Af(e))return!1;const t=df(e);return!(null!==t&&t!==Object.prototype&&null!==df(t)||vf(e,pf)||vf(e,hf))},Pf=wf("Date"),If=wf("File"),Nf=wf("Blob"),Lf=wf("FileList"),Mf=wf("Set"),$f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{},Df=void 0!==$f.FormData?$f.FormData:void 0,zf=wf("URLSearchParams"),[Ff,jf,Uf,Bf]=["ReadableStream","Request","Response","Headers"].map(wf);function Hf(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,i;if("object"!=typeof e&&(e=[e]),_f(e))for(r=0,i=e.length;r0;)if(r=n[i],t===r.toLowerCase())return r;return null}const Vf="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:n.g,Wf=e=>!Sf(e)&&e!==Vf,Yf=(Xf="undefined"!=typeof Uint8Array&&df(Uint8Array),e=>Xf&&e instanceof Xf);var Xf;const Gf=wf("HTMLFormElement"),{propertyIsEnumerable:Kf}=Object.prototype,Jf=wf("RegExp"),Zf=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Hf(n,(n,i)=>{let o;!1!==(o=t(n,i,e))&&(r[i]=o||n)}),Object.defineProperties(e,r)},Qf=wf("AsyncFunction"),eg=(tg="function"==typeof setImmediate,ng=kf(Vf.postMessage),tg?setImmediate:ng?(rg=`axios@${Math.random()}`,ig=[],Vf.addEventListener("message",({source:e,data:t})=>{e===Vf&&t===rg&&ig.length&&ig.shift()()},!1),e=>{ig.push(e),Vf.postMessage(rg,"*")}):e=>setTimeout(e));var tg,ng,rg,ig;const og="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Vf):"undefined"!=typeof process&&process.nextTick||eg,sg=e=>null!=e&&kf(e[hf]),ag={isArray:_f,isArrayBuffer:Cf,isBuffer:Ef,isFormData:e=>{if(!e)return!1;if(Df&&e instanceof Df)return!0;const t=df(e);if(!t||t===Object.prototype)return!1;if(!kf(e.append))return!1;const n=yf(e);return"formdata"===n||"object"===n&&kf(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Cf(e.buffer),t},isString:Tf,isNumber:Of,isBoolean:e=>!0===e||!1===e,isObject:Af,isPlainObject:Rf,isEmptyObject:e=>{if(!Af(e)||Ef(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:Ff,isRequest:jf,isResponse:Uf,isHeaders:Bf,isUndefined:Sf,isDate:Pf,isFile:If,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:Nf,isRegExp:Jf,isFunction:kf,isStream:e=>Af(e)&&kf(e.pipe),isURLSearchParams:zf,isTypedArray:Yf,isFileList:Lf,forEach:Hf,merge:function e(...t){const{caseless:n,skipUndefined:r}=Wf(this)&&this||{},i={},o=(t,o)=>{if("__proto__"===o||"constructor"===o||"prototype"===o)return;const s=n&&"string"==typeof o&&qf(i,o)||o,a=ff(i,s)?i[s]:void 0;Rf(a)&&Rf(t)?i[s]=e(a,t):Rf(t)?i[s]=e({},t):_f(t)?i[s]=t.slice():r&&Sf(t)||(i[s]=t)};for(let e=0,n=t.length;e(Hf(t,(t,r)=>{n&&kf(t)?Object.defineProperty(e,r,{__proto__:null,value:cf(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let i,o,s;const a={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],r&&!r(s,e,t)||a[s]||(t[s]=e[s],a[s]=!0);e=!1!==n&&df(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:yf,kindOfTest:wf,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(_f(e))return e;let t=e.length;if(!Of(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[hf]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:Gf,hasOwnProperty:ff,hasOwnProp:ff,hasOwnInPrototypeChain:vf,getSafeProp:(e,t)=>null!=e&&vf(e,t)?e[t]:void 0,toSafeFlatObject:e=>{if(null==e||"object"!=typeof e&&"function"!=typeof e)return e;const t=df(e);if(null===t&&(e=>{if(!Object.isExtensible(e))return!1;const t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(t=>{if(gf(t))return!1;const n=Object.getOwnPropertyDescriptor(e,t);return!!n&&n.configurable&&!0===n.writable})})(e))return e;const n=Object.create(null),r=Object.create(null),i=[];let o=e;for(;null!=o&&-1===i.indexOf(o);){i.push(o);const s=o===e?t:df(o);if(mf(o,s,o===e))break;const a=Object.getOwnPropertyNames(o);Object.getOwnPropertySymbols&&a.push(...Object.getOwnPropertySymbols(o));for(const t of a)gf(t)||ff(r,t)||(n[t]=e[t],r[t]=!0);o=s}return n},reduceDescriptors:Zf,freezeMethods:e=>{Zf(e,(t,n)=>{if(kf(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];kf(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return _f(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:qf,global:Vf,isContextDefined:Wf,isSpecCompliantForm:function(e){return!!(e&&kf(e.append)&&"FormData"===e[pf]&&e[hf])},toJSONObject:e=>{const t=new WeakSet,n=e=>{if(Af(e)){if(t.has(e))return;if(Ef(e))return e;if(!("toJSON"in e)){let r;if(t.add(e),Mf(e)){r=[];for(const t of e){const e=n(t);!Sf(e)&&r.push(e)}}else r=_f(e)?[]:{},Hf(e,(e,t)=>{const i=n(e);!Sf(i)&&(r[t]=i)});return t.delete(e),r}}return e};return n(e)},isAsyncFn:Qf,isThenable:e=>e&&(Af(e)||kf(e))&&kf(e.then)&&kf(e.catch),setImmediate:eg,asap:og,isIterable:sg,isSafeIterable:e=>null!=e&&vf(e,hf)&&sg(e)},lg=ag.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),cg=e=>{const t={};let n,r,i;return e&&e.split("\n").forEach(function(e){i=e.indexOf(":"),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim();const o=ag.hasOwnProp(t,n);!n||o&&ag.hasOwnProp(lg,n)||("set-cookie"===n?o?t[n].push(r):t[n]=[r]:t[n]=o?t[n]+", "+r:r)}),t};n.dn(cg);const ug=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),dg=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function hg(e,t){return ag.isArray(e)?e.map(e=>hg(e,t)):function(e){let t=0,n=e.length;for(;tt;){const t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}(String(e).replace(t,""))}function pg(e){const t=Object.create(null);return ag.forEach(e.toJSON(),(e,n)=>{t[n]=(e=>hg(e,dg))(e)}),t}const fg=Symbol("internals");function gg(e){return e&&String(e).trim().toLowerCase()}function mg(e){return!1===e||null==e?e:ag.isArray(e)?e.map(mg):(e=>hg(e,ug))(String(e))}const vg=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function yg(e){let t=0,n=e.length;for(;tt;){const t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}function bg(e,t,n,r,i){return ag.isFunction(r)?r.call(this,t,n):(i&&(t=n),ag.isString(t)?ag.isString(r)?-1!==t.indexOf(r):ag.isRegExp(r)?r.test(t):void 0:void 0)}class wg{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function i(e,t,n){const i=gg(t);if(!i)return;const o=ag.findKey(r,i);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||t]=mg(e))}const o=(e,t)=>ag.forEach(e,(e,n)=>i(e,n,t));if(ag.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(ag.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))o(cg(e),t);else if(ag.isObject(e)&&ag.isSafeIterable(e)){let n,r,i=Object.create(null);for(const t of e){if(!ag.isArray(t))throw new TypeError("Object iterator must return a key-value pair");r=t[0],ag.hasOwnProp(i,r)?(n=i[r],i[r]=ag.isArray(n)?[...n,t[1]]:[n,t[1]]):i[r]=t[1]}o(i,t)}else null!=e&&i(t,e,n);return this}get(e,t){if(e=gg(e)){const n=ag.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(ag.isFunction(t))return t.call(this,e,n);if(ag.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=gg(e)){const n=ag.findKey(this,e);return!(!n||void 0===this[n]||t&&!bg(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function i(e){if(e=gg(e)){const i=ag.findKey(n,e);!i||t&&!bg(0,n[i],i,t)||(delete n[i],r=!0)}}return ag.isArray(e)?e.forEach(i):i(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const i=t[n];e&&!bg(0,this[i],i,e,!0)||(delete this[i],r=!0)}return r}normalize(e){const t=this,n={};return ag.forEach(this,(r,i)=>{const o=ag.findKey(n,i);if(o)return t[o]=mg(r),void delete t[i];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(i):String(i).trim();s!==i&&delete t[i],t[s]=mg(r),n[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return ag.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&ag.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){const e=this.get("set-cookie");return ag.isArray(e)?e:null==e||!1===e?[]:[e]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return function(e){const t=Object.create(null),n=String(e);let r=0,i=!1,o=!1;function s(e){const i=yg(n.slice(r,e)),o=i.indexOf("=");if(o<1)return;const s=yg(i.slice(0,o));if(!vg.test(s))return;const a=s.toLowerCase();if("__proto__"===a||"constructor"===a||"prototype"===a)return;const l=yg(i.slice(o+1));t[a]=function(e){const t=e.length-1;if(t<1||34!==e.charCodeAt(0)||34!==e.charCodeAt(t))return e;let n="";for(let r=1;r=t))return e;n+=e[r]}return n}(l)}for(let e=0;en.set(e)),n}static accessor(e){const t=(this[fg]=this[fg]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=gg(e);t[r]||(function(e,t){const n=ag.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}(n,e),t[r]=!0)}return ag.isArray(e)?e.forEach(r):r(e),this}}wg.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ag.reduceDescriptors(wg.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),ag.freezeMethods(wg);const xg=wg,_g="[REDACTED ****]";function Sg(e){try{return String(e)}catch(e){return""}}class Eg extends Error{static from(e,t,n,r,i,o){let s=e.message;!s&&ag.isArray(e.errors)&&e.errors.length&&(s=function(e){return e.errors.map(e=>{try{return e&&e.message?Sg(e.message):Sg(e)}catch(e){return""}}).filter(Boolean).join("; ")||e.name||"AggregateError"}(e));const a=new Eg(s,t||e.code,n,r,i);return Object.defineProperty(a,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),a.name=e.name,null!=e.status&&null==a.status&&(a.status=e.status),o&&Object.assign(a,o),a}constructor(e,t,n,r,i){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status)}toJSON(){const e=this.config,t=e&&ag.hasOwnProp(e,"redact")?e.redact:void 0,n=ag.isArray(t)&&t.length>0?function(e,t){const n=new Set(t.map(e=>String(e).toLowerCase())),r=[],i=e=>{if(null===e||"object"!=typeof e)return e;if(ag.isBuffer(e))return e;if(-1!==r.indexOf(e))return;let t;if(e instanceof xg&&(e=e.toJSON()),r.push(e),ag.isArray(e))t=[],e.forEach((e,n)=>{const r=i(e);ag.isUndefined(r)||(t[n]=r)});else{if(!ag.isPlainObject(e)&&function(e){if(ag.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(ag.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(e))return r.pop(),e;t=Object.create(null);for(const[r,o]of Object.entries(e)){const e=n.has(r.toLowerCase())?_g:i(o);ag.isUndefined(e)||(t[r]=e)}}return r.pop(),t};return i(e)}(e,t):ag.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}}Eg.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",Eg.ERR_BAD_OPTION="ERR_BAD_OPTION",Eg.ECONNABORTED="ECONNABORTED",Eg.ETIMEDOUT="ETIMEDOUT",Eg.ECONNREFUSED="ECONNREFUSED",Eg.ERR_NETWORK="ERR_NETWORK",Eg.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",Eg.ERR_DEPRECATED="ERR_DEPRECATED",Eg.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",Eg.ERR_BAD_REQUEST="ERR_BAD_REQUEST",Eg.ERR_CANCELED="ERR_CANCELED",Eg.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",Eg.ERR_INVALID_URL="ERR_INVALID_URL",Eg.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const Cg=Eg;function Tg(e){return ag.isPlainObject(e)||ag.isArray(e)}function kg(e){return ag.endsWith(e,"[]")?e.slice(0,-2):e}function Og(e,t,n){return e?e.concat(t).map(function(e,t){return e=kg(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const Ag=ag.toFlatObject(ag,{},null,function(e){return/^is[A-Z]/.test(e)}),Rg=function(e,t,n){if(!ag.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(e,t)=>{const r=ag.getSafeProp(n,e);return ag.isUndefined(r)?t:r},i=r("metaTokens",!0),o=r("visitor")||f,s=r("dots",!1),a=r("indexes",!1),l=r("Blob")||"undefined"!=typeof Blob&&Blob,c=r("maxDepth",100),u=l&&ag.isSpecCompliantForm(t),d=[];if(!ag.isFunction(o))throw new TypeError("visitor must be a function");function h(e){if(null===e)return"";if(ag.isDate(e))return e.toISOString();if(ag.isBoolean(e))return e.toString();if(!u&&ag.isBlob(e))throw new Cg("Blob is not supported. Use a Buffer instead.");if(ag.isArrayBuffer(e)||ag.isTypedArray(e)){if(u&&"function"==typeof l)return new l([e]);throw new Cg("Blob is not supported. Use a Buffer instead.",Cg.ERR_NOT_SUPPORT)}return e}function p(e){if(e>c)throw new Cg("Object is too deeply nested ("+e+" levels). Max depth: "+c,Cg.ERR_FORM_DATA_DEPTH_EXCEEDED)}function f(e,n,r){let o=e;if(ag.isReactNative(t)&&ag.isReactNativeBlob(e))return t.append(Og(r,n,s),h(e)),!1;if(e&&!r&&"object"==typeof e)if(ag.endsWith(n,"{}"))n=i?n:n.slice(0,-2),e=function(e){if(c===1/0)return JSON.stringify(e);const t=[];return JSON.stringify(e,function(e,n){if(!ag.isObject(n))return n;for(;t.length&&t[t.length-1]!==this;)t.pop();return t.push(n),p(1+t.length-1),n})}(e);else if(ag.isArray(e)&&function(e){return ag.isArray(e)&&!e.some(Tg)}(e)||(ag.isFileList(e)||ag.endsWith(n,"[]"))&&(o=ag.toArray(e)))return n=kg(n),o.forEach(function(e,r){!ag.isUndefined(e)&&null!==e&&t.append(!0===a?Og([n],r,s):null===a?n:n+"[]",h(e))}),!1;return!!Tg(e)||(t.append(Og(r,n,s),h(e)),!1)}const g=Object.assign(Ag,{defaultVisitor:f,convertValue:h,isVisitable:Tg});if(!ag.isObject(e))throw new TypeError("data must be an object");return function e(n,r,i=0){if(!ag.isUndefined(n)){if(p(i),-1!==d.indexOf(n))throw new Error("Circular reference detected in "+r.join("."));d.push(n),ag.forEach(n,function(n,s){!0===(!(ag.isUndefined(n)||null===n)&&o.call(t,n,ag.isString(s)?s.trim():s,r,g))&&e(n,r?r.concat(s):[s],i+1)}),d.pop()}}(e),t};function Pg(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function Ig(e,t){this._pairs=[],e&&Rg(e,this,t)}const Ng=Ig.prototype;Ng.append=function(e,t){this._pairs.push([e,t])},Ng.toString=function(e){const t=e?t=>e.call(this,t,Pg):Pg;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const Lg=Ig;function Mg(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function $g(e,t,n){if(!t)return e;e=e||"";const r=ag.isFunction(n)?{serialize:n}:n,i=ag.getSafeProp(r,"encode")||Mg,o=ag.getSafeProp(r,"serialize");let s;if(s=o?o(t,r):ag.isURLSearchParams(t)?t.toString():new Lg(t,r).toString(i),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}const Dg=Symbol("internals");function zg(e){return e?e.length:0}function Fg(e){if(e)for(;e.length&&null===e[e.length-1];)e.pop()}function jg(e,t){const n=e.handlers,r=zg(n);n!==t.handlersRef?(t.handlersRef=n,t.handlerEntries.clear()):r!==t.handlersLength&&(r?t.handlerEntries.forEach(function(e,r){n[e.index]!==e.handler&&t.handlerEntries.delete(r)}):t.handlerEntries.clear()),t.handlersLength=r}const Ug=class{constructor(){this.handlers=[],this[Dg]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(e,t,n){const r={fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null},i=this[Dg];null==this.handlers&&(this.handlers=[]),jg(this,i);const o=i.nextId++;return this.handlers.push(r),i.handlerEntries.set(o,{handler:r,index:this.handlers.length-1}),i.handlersLength=this.handlers.length,o}eject(e){const t=this[Dg];jg(this,t);const n=t.handlerEntries.get(e);if(n){if(t.handlerEntries.delete(e),this.handlers[n.index]!==n.handler)return;this.handlers[n.index]=null,t.iterationDepth||(Fg(this.handlers),t.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],jg(this,this[Dg]))}forEach(e){const t=this[Dg];jg(this,t),t.iterationDepth++;try{ag.forEach(this.handlers,function(t){null!==t&&e(t)})}finally{--t.iterationDepth||(jg(this,t),Fg(this.handlers),t.handlersLength=zg(this.handlers))}}},Bg={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},Hg={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Lg,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},qg="undefined"!=typeof window&&"undefined"!=typeof document,Vg="object"==typeof navigator&&navigator||void 0,Wg=qg&&(!Vg||["ReactNative","NativeScript","NS"].indexOf(Vg.product)<0),Yg="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Xg=qg&&window.location.href||"http://localhost",Gg={...r,...Hg};function Kg(e){if(e>100)throw new Cg("FormData field is too deeply nested ("+e+" levels). Max depth: 100",Cg.ERR_FORM_DATA_DEPTH_EXCEEDED)}const Jg=function(e){function t(e,n,r,i){Kg(i);let o=e[i++];if("__proto__"===o)return!0;const s=Number.isFinite(+o),a=i>=e.length;return o=!o&&ag.isArray(r)?r.length:o,a?(ag.hasOwnProp(r,o)?r[o]=ag.isArray(r[o])?r[o].concat(n):[r[o],n]:r[o]=n,!s):(ag.hasOwnProp(r,o)&&ag.isObject(r[o])||(r[o]=[]),t(e,n,r[o],i)&&ag.isArray(r[o])&&(r[o]=function(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r{t(function(e){const t=[],n=/[^.[\]]+|\[([^.[\]]*)]/g;let r;for(;null!==(r=n.exec(e));)Kg(t.length),t.push("[]"===r[0]?"":r[1]||r[0]);return t}(e),r,n,0)}),n}return null},Zg=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),Qg=(e,t)=>null!=e&&ag.hasOwnProp(e,t)?e[t]:void 0,em={transitional:Bg,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=ag.isObject(e);if(i&&ag.isHTMLForm(e)&&(e=new FormData(e)),ag.isFormData(e))return r?JSON.stringify(Jg(e)):e;if(ag.isArrayBuffer(e)||ag.isBuffer(e)||ag.isStream(e)||ag.isFile(e)||ag.isBlob(e)||ag.isReadableStream(e))return e;if(ag.isArrayBufferView(e))return e.buffer;if(ag.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){const t=Qg(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Rg(e,new Gg.classes.URLSearchParams,{visitor:function(e,t,n,r){return Gg.isNode&&ag.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,t).toString();if((o=ag.isFileList(e))||n.indexOf("multipart/form-data")>-1){const n=Qg(this,"env"),r=n&&n.FormData;return Rg(o?{"files[]":e}:e,r&&new r,t)}}return i||r?(t.setContentType("application/json",!1),function(e){if(ag.isString(e))try{return(0,JSON.parse)(e),ag.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=Qg(this,"transitional")||em.transitional,n=t&&t.forcedJSONParsing,r=Qg(this,"responseType"),i="json"===r;if(ag.isResponse(e)||ag.isReadableStream(e))return e;if(e&&ag.isString(e)&&(n&&!r||i)){const n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e,Qg(this,"parseReviver"))}catch(e){if(n){if("SyntaxError"===e.name)throw Cg.from(e,Cg.ERR_BAD_RESPONSE,this,null,Qg(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Gg.classes.FormData,Blob:Gg.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ag.forEach(Zg,e=>{em.headers[e]={}});const tm=em;function nm(e,t){const n=this||tm,r=t||n,i=xg.from(r.headers);let o=r.data;return ag.forEach(e,function(e){o=e.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function rm(e){return!(!e||!e.__CANCEL__)}const im=class extends Cg{constructor(e,t,n){super(e??"canceled",Cg.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function om(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Cg("Request failed with status code "+n.status,n.status>=400&&n.status<500?Cg.ERR_BAD_REQUEST:Cg.ERR_BAD_RESPONSE,n.config,n.request,n)):e(n)}const sm=/[\t\n\r]/g;function am(e){if("string"!=typeof e)return e;let t=0;for(;t{let r=0;const i=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i,o=0,s=0;return t=void 0!==t?t:1e3,function(a){const l=Date.now(),c=r[s];i||(i=l),n[o]=a,r[o]=l;let u=s,d=0;for(;u!==o;)d+=n[u++],u%=e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),l-i{i=o,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),a=t-i;a>=o?s(e,t):(n=e,r||(r=setTimeout(()=>{r=null,s(n)},o-a)))},()=>n&&s(n),(...e)=>s(e)]}(n=>{if(!n||!ag.isNumber(n.loaded))return;const o=n.loaded,s=n.lengthComputable?n.total:void 0,a=Math.max(0,null!=s?Math.min(o,s):o),l=Math.max(0,a-r),c=i(l);r=Math.max(r,a),e({loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s?(s-a)/c:void 0,event:n,lengthComputable:null!=s,[t?"download":"upload"]:!0})},n)},um=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},dm=(e,t=ag.asap)=>(...n)=>t(()=>e(...n)),hm=Gg.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Gg.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Gg.origin),Gg.navigator&&/(msie|trident)/i.test(Gg.navigator.userAgent)):()=>!0,pm=Gg.hasStandardBrowserEnv?{write(e,t,n,r,i,o,s){if("undefined"==typeof document)return;const a=[`${e}=${encodeURIComponent(t)}`];ag.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),ag.isString(r)&&a.push(`path=${r}`),ag.isString(i)&&a.push(`domain=${i}`),!0===o&&a.push("secure"),ag.isString(s)&&a.push(`SameSite=${s}`),document.cookie=a.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.split(";");for(let n=0;nnull,remove(){}},fm=/^https?:(?!\/\/)/i;function gm(e,t){if("string"==typeof e){const n=am(e);if(fm.test(n))throw new Cg(`Invalid URL ${JSON.stringify(function(e){const t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${_g}@`),n=t.indexOf("#"),r=(-1===n?t:t.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${_g}`);return-1===n?r:`${r}#${i=t.slice(n+1),i?i.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,t,n="")=>`${t}${n}${_g}`):i}`;var i}(n))}: missing "//" after protocol`,Cg.ERR_INVALID_URL,t)}}function mm(e,t,n,r){gm(t,r);let i=!("string"==typeof(o=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(o));var o;return e&&(i||!1===n)?(gm(e,r),function(e,t){if(!t)return e;let n=e.length;for(;n>0&&47===e.charCodeAt(n-1);)n--;return e.slice(0,n)+"/"+t.replace(/^\/+/,"")}(e,t)):t}const vm=e=>e instanceof xg?{...e}:e;function ym(e,t){e=e||{},t=t||{};const n=Object.create(null);function r(e,t,n,r){return ag.isPlainObject(e)&&ag.isPlainObject(t)?ag.merge.call({caseless:r},e,t):ag.isPlainObject(t)?ag.merge({},t):ag.isArray(t)?t.slice():t}function i(e,t,n,i){return ag.isUndefined(t)?ag.isUndefined(e)?void 0:r(void 0,e,0,i):r(e,t,0,i)}function o(e,t){if(!ag.isUndefined(t))return r(void 0,t)}function s(e,t){return ag.isUndefined(t)?ag.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,i,o){return ag.hasOwnProp(t,o)?r(n,i):ag.hasOwnProp(e,o)?r(void 0,n):void 0}Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});const l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutErrorMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:a,headers:(e,t,n)=>i(vm(e),vm(t),0,!0)};var c;return ag.forEach((c={...e,...t},Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(c).concat(Object.getOwnPropertySymbols(c).filter(e=>Object.getOwnPropertyDescriptor(c,e).enumerable)):Object.keys(c)),function(r){if("__proto__"===r||"constructor"===r||"prototype"===r)return;const o=ag.hasOwnProp(l,r)?l[r]:i,s=o(ag.hasOwnProp(e,r)?e[r]:void 0,ag.hasOwnProp(t,r)?t[r]:void 0,r);ag.isUndefined(s)&&o!==a||(n[r]=s)}),ag.hasOwnProp(t,"validateStatus")&&ag.isUndefined(t.validateStatus)&&!1===function(n){const r=ag.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!ag.isUndefined(r)){if(!ag.isPlainObject(r))return;if(ag.hasOwnProp(r,n))return r[n]}const i=ag.hasOwnProp(e,"transitional")?e.transitional:void 0;if(ag.isPlainObject(i)&&ag.hasOwnProp(i,n))return i[n]}("validateStatusUndefinedResolves")&&(ag.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}const bm=["content-type","content-length"],wm=function(e){const t=ym({},e),n=e=>ag.hasOwnProp(t,e)?t[e]:void 0,r=n("data");let i=n("withXSRFToken");const o=n("xsrfHeaderName"),s=n("xsrfCookieName");let a=n("headers");const l=n("auth"),c=n("baseURL"),u=n("allowAbsoluteUrls"),d=n("url");if(t.headers=a=xg.from(a),t.url=$g(mm(c,d,u,t),n("params"),n("paramsSerializer")),l){const t=ag.getSafeProp(l,"username")||"",n=ag.getSafeProp(l,"password")||"";try{a.set("Authorization","Basic "+btoa(t+":"+(n?encodeURIComponent(n).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))):"")))}catch(t){throw Cg.from(t,Cg.ERR_BAD_OPTION_VALUE,e)}}if(ag.isFormData(r)){const e=ag.getSafeProp(r,"getHeaders");Gg.hasStandardBrowserEnv||Gg.hasStandardBrowserWebWorkerEnv||ag.isReactNative(r)?a.setContentType(void 0):ag.isFunction(e)&&function(e,t,n){"content-only"===n?Object.entries(t||{}).forEach(([t,n])=>{bm.includes(t.toLowerCase())&&e.set(t,n)}):e.set(t)}(a,e.call(r),n("formDataHeaderPolicy"))}if(Gg.hasStandardBrowserEnv&&(ag.isFunction(i)&&(i=i(t)),!0===i||null==i&&hm(t.url))){const e=o&&s&&pm.read(s);e&&a.set(o,e)}return t},xm="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=wm(e);let i=r.data;const o=xg.from(r.headers).normalize();let s,a,l,c,u,d,{responseType:h,onUploadProgress:p,onDownloadProgress:f}=r;function g(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(s),r.signal&&r.signal.removeEventListener("abort",s)}let m=new XMLHttpRequest;function v(i){if(!m)return;if(!(0!==m.status||"file"===(lm(am(r.url))||lm(Gg.origin))||m.responseURL&&m.responseURL.startsWith("file:")))return n(new Cg("Request aborted",Cg.ECONNABORTED,e,m)),g(),void(m=null);try{i?d&&d(i):u&&u()}catch(e){setTimeout(()=>{throw e})}if(!m)return;const o=xg.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());om(function(e){t(e),g()},function(e){n(e),g()},{data:h&&"text"!==h&&"json"!==h?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:o,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=v:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&m.responseURL.startsWith("file:"))&&setTimeout(v)},m.onabort=function(){m&&(n(new Cg("Request aborted",Cg.ECONNABORTED,e,m)),g(),m=null)},m.onerror=function(t){const r=t&&t.message?t.message:"Network Error",i=new Cg(r,Cg.ERR_NETWORK,e,m);i.event=t||null,n(i),g(),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const i=r.transitional||Bg;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Cg(t,i.clarifyTimeoutError?Cg.ETIMEDOUT:Cg.ECONNABORTED,e,m)),g(),m=null},void 0===i&&o.setContentType(null),"setRequestHeader"in m&&ag.forEach(pg(o),function(e,t){m.setRequestHeader(t,e)}),ag.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),h&&"json"!==h&&(m.responseType=r.responseType),f&&([l,u,d]=cm(f,!0),m.addEventListener("progress",l)),p&&m.upload&&([a,c]=cm(p),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(s=t=>{m&&(n(!t||t.type?new im(null,e,m):t),m.abort(),g(),m=null)},r.cancelToken&&r.cancelToken.subscribe(s),r.signal&&(r.signal.aborted?s():r.signal.addEventListener("abort",s)));const y=lm(r.url);if(y&&!Gg.protocols.includes(y))return n(new Cg("Unsupported protocol "+y+":",Cg.ERR_BAD_REQUEST,e)),void g();m.send(i||null)})},_m=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const i=function(e){if(!r){r=!0,s();const t=e instanceof Error?e:this.reason;n.abort(t instanceof Cg?t:new im(t instanceof Error?t.message:t))}};let o=t&&setTimeout(()=>{o=null,i(new Cg(`timeout of ${t}ms exceeded`,Cg.ETIMEDOUT))},t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}),e=null)};e.forEach(e=>{r||(e.aborted?i.call(e):e.addEventListener("abort",i,{once:!0}))});const{signal:a}=n;return a.unsubscribe=()=>ag.asap(s),a},Sm=function*(e,t){let n=e.byteLength;if(!t||n{const i=async function*(e,t){for await(const n of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}}(e))yield*Sm(n,t)}(e,t);let o,s=0,a=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await i.next();if(t)return a(),void e.close();let o=r.byteLength;if(n){let e=s+=o;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw a(e),e}},cancel:e=>(a(e),i.return())},{highWaterMark:2})},Cm=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,Tm=(e,t,n)=>t+2e<=57?e-48:(223&e)-55,Om=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||43===e||47===e||45===e||95===e,Am=e=>9===e||10===e||12===e||13===e||32===e,Rm=e=>{const t=e.length;let n=0,r=0,i=!1;for(let o=0;o0?i=!0:n++:r++)}return i||r>2||r>0&&(n+r)%4!=0||n%4==1?(e=>{const t=e.length;let n=0;return t>0&&61===e.charCodeAt(t-1)&&(n++,t>1&&61===e.charCodeAt(t-2)&&n++),Math.floor(3*(t-n)/4)})(e):(e=>{const t=e%4;return 3*Math.floor(e/4)+(2===t?1:3===t?2:0)})(n)},Pm={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:Im}=ag,Nm=e=>{if(!ag.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},Lm=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Mm=e=>{const t=void 0!==ag.global&&null!==ag.global?ag.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=ag.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:i,Request:o,Response:s}=e,a=i?Im(i):"function"==typeof fetch,l=Im(o),c=Im(s);if(!a)return!1;const u=a&&Im(n),d=a&&("function"==typeof r?(h=new r,e=>h.encode(e)):async e=>new Uint8Array(await new o(e).arrayBuffer()));var h;const p=l&&u&&Lm(()=>{let e=!1;const t=new o(Gg.origin,{body:new n,method:"POST",get duplex(){return e=!0,"half"}}),r=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!r}),f=c&&u&&Lm(()=>ag.isReadableStream(new s("").body)),g={stream:f&&(e=>e.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!g[e]&&(g[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new Cg(`Response type '${e}' is not supported`,Cg.ERR_NOT_SUPPORT,n)})});const m=async e=>{if(null==e)return 0;if(ag.isBlob(e))return e.size;if(ag.isSpecCompliantForm(e)){const t=new o(Gg.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return ag.isArrayBufferView(e)||ag.isArrayBuffer(e)?e.byteLength:(ag.isURLSearchParams(e)&&(e+=""),ag.isString(e)?(await d(e)).byteLength:void 0)};return async e=>{let{url:t,method:n,data:a,signal:c,cancelToken:d,timeout:h,onDownloadProgress:v,onUploadProgress:y,responseType:b,headers:w,withCredentials:x="same-origin",fetchOptions:_,maxContentLength:S,maxBodyLength:E,maxRedirects:C}=wm(e);const T=ag.isNumber(S)&&S>-1,k=ag.isNumber(E)&&E>-1;let O=i||fetch;b=b?(b+"").toLowerCase():"text";let A=_m([c,d&&d.toAbortSignal()],h),R=null;const P=A&&A.unsubscribe&&(()=>{A.unsubscribe()});let I,N=null;const L=()=>new Cg("Request body larger than maxBodyLength limit",Cg.ERR_BAD_REQUEST,e,R);try{let i;const c=($="auth",ag.hasOwnProp(e,$)?e[$]:void 0);if(c){i={username:ag.getSafeProp(c,"username")||"",password:ag.getSafeProp(c,"password")||""}}if((e=>{const t=e.indexOf("://");let n=e;return-1!==t&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")})(t)){const e=new URL(t,Gg.origin);if(!i&&(e.username||e.password)){i={username:Nm(e.username),password:Nm(e.password)}}(e.username||e.password)&&(e.username="",e.password="",t=e.href)}if(i&&(w.delete("authorization"),w.set("Authorization","Basic "+btoa((M=(i.username||"")+":"+(i.password||""),encodeURIComponent(M).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))))),T&&"string"==typeof t&&t.startsWith("data:")){const n=function(e){const t="string"==typeof e?e.indexOf("#"):-1;return((e,t)=>{if(!e||"string"!=typeof e)return 0;if(!e.startsWith("data:"))return 0;const n=e.indexOf(",");if(n<0)return 0;const r=e.slice(5,n),i=e.slice(n+1);if(/;base64/i.test(r))return t(i);let o=0;for(let e=0,t=i.length;e=55296&&n<=56319&&e+1=56320&&t<=57343?(o+=4,e++):o+=3}else o+=3}return o})(-1===t?e:e.slice(0,t),Rm)}(t);if(n>S)throw new Cg("maxContentLength size of "+S+" exceeded",Cg.ERR_BAD_RESPONSE,e,R)}if(k&&"get"!==n&&"head"!==n){const e=await m(a);if("number"==typeof e&&isFinite(e)&&(I=e,e>E))throw L()}const d=k&&(ag.isReadableStream(a)||ag.isStream(a)),h=(e,t,n)=>Em(e,65536,e=>{if(k&&e>E)throw N=L();t&&t(e)},n);if(p&&"get"!==n&&"head"!==n&&(y||d)){if(I=I??await(async(e,t)=>ag.toFiniteNumber(e.getContentLength())??m(t))(w,a),0!==I||d){let e,n=new o(t,{method:"POST",body:a,duplex:"half"});if(ag.isFormData(a)&&(e=n.headers.get("content-type"))&&w.setContentType(e),n.body){const[e,t]=y&&um(I,cm(dm(y)))||[];a=h(n.body,e,t)}}}else if(d&&!l&&u&&"get"!==n&&"head"!==n)a=h(a);else if(d&&l&&!p&&"get"!==n&&"head"!==n)throw new Cg("Stream request bodies are not supported by the current fetch implementation",Cg.ERR_NOT_SUPPORT,e,R);ag.isString(x)||(x=x?"include":"omit");const D=l&&"credentials"in o.prototype;if(ag.isFormData(a)){const e=w.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&w.delete("content-type")}w.set("User-Agent","axios/1.20.0",!1);const z=null==_?_:Object.assign(Object.create(null),_);z&&(delete z.body,delete z.headers,delete z.method,delete z.signal,delete z.duplex,delete z.credentials);const F=Object.assign(Object.create(null),z,{signal:A,method:n.toUpperCase(),headers:pg(w.normalize()),body:a,duplex:"half",credentials:D?x:void 0});l&&(ag.forEach(Pm,(e,t)=>{void 0===F[t]&&(F[t]=e)}),void 0===F.signal&&(F.signal=null),void 0===F.body&&(F.body=null)),0===C&&(F.redirect="manual",z&&(z.redirect="manual")),R=l&&new o(t,F);let j=await(l?O(R,z):O(t,F));const U=xg.from(j.headers);if(T){const t=ag.toFiniteNumber(U.getContentLength());if(null!=t&&t>S)throw new Cg("maxContentLength size of "+S+" exceeded",Cg.ERR_BAD_RESPONSE,e,R)}const B=f&&("stream"===b||"response"===b);if(f&&j.body&&(v||T||B&&P)){const t={};["status","statusText","headers"].forEach(e=>{t[e]=j[e]});const n=ag.toFiniteNumber(U.getContentLength()),[r,i]=v&&um(n,cm(dm(v),!0))||[];let o=0;const a=t=>{if(T&&(o=t,o>S))throw new Cg("maxContentLength size of "+S+" exceeded",Cg.ERR_BAD_RESPONSE,e,R);r&&r(t)};j=new s(Em(j.body,65536,a,()=>{i&&i(),P&&P()}),t)}b=b||"text";let H=await g[ag.findKey(g,b)||"text"](j,e);if(T&&!f&&!B){let t;if(null!=H&&("number"==typeof H.byteLength?t=H.byteLength:"number"==typeof H.size?t=H.size:"string"==typeof H&&(t="function"==typeof r?(new r).encode(H).byteLength:H.length)),"number"==typeof t&&t>S)throw new Cg("maxContentLength size of "+S+" exceeded",Cg.ERR_BAD_RESPONSE,e,R)}return!B&&P&&P(),await new Promise((t,n)=>{om(t,n,{data:H,headers:xg.from(j.headers),status:j.status,statusText:j.statusText,config:e,request:R})})}catch(t){if(P&&P(),A&&A.aborted&&A.reason instanceof Cg){const n=A.reason;throw n.config=e,R&&(n.request=R),t!==n&&Object.defineProperty(n,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),n}if(N)throw R&&!N.request&&(N.request=R),N;if(t instanceof Cg)throw R&&!t.request&&(t.request=R),t;if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message)){const n=new Cg("Network Error",Cg.ERR_NETWORK,e,R,t&&t.response);throw Object.defineProperty(n,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),n}throw Cg.from(t,t&&t.code,e,R,t&&t.response)}var M,$}},$m=new Map,Dm=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:i}=t,o=[r,i,n];let s,a,l=o.length,c=$m;for(;l--;)s=o[l],a=c.get(s),void 0===a&&c.set(s,a=l?new Map:Mm(t)),c=a;return a},zm=(Dm(),{http:null,xhr:xm,fetch:{get:Dm}});ag.forEach(zm,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const Fm=e=>`- ${e}`,jm=e=>ag.isFunction(e)||null===e||!1===e,Um=function(e,t){e=ag.isArray(e)?e:[e];const{length:n}=e;let r,i;const o={};for(let s=0;s`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=n?e.length>1?"since :\n"+e.map(Fm).join("\n"):" "+Fm(e[0]):"as no adapter specified";throw new Cg("There is no suitable adapter to dispatch the request "+t,Cg.ERR_NOT_SUPPORT)}return i};function Bm(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new im(null,e)}function Hm(e){const t=ag.toSafeFlatObject(e);return Bm(t),t.headers=xg.from(ag.getSafeProp(t,"headers")),t.data=nm.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Um(t.adapter||tm.adapter,t)(t).then(function(e){Bm(t),t.response=e;try{e.data=nm.call(t,t.transformResponse,e)}finally{delete t.response}return e.headers=xg.from(e.headers),e},function(e){if(!rm(e)&&(Bm(t),e&&e.response)){t.response=e.response;try{e.response.data=nm.call(t,t.transformResponse,e.response)}finally{delete t.response}e.response.headers=xg.from(e.response.headers)}return Promise.reject(e)})}const qm={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{qm[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Vm={};qm.transitional=function(e,t,n){function r(e,t){return"[Axios v1.20.0] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,o)=>{if(!1===e)throw new Cg(r(i," has been removed"+(t?" in "+t:"")),Cg.ERR_DEPRECATED);return t&&!Vm[i]&&(Vm[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,o)}},qm.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const Wm={assertOptions:function(e,t,n){if("object"!=typeof e||null===e)throw new Cg("options must be an object",Cg.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],s=Object.prototype.hasOwnProperty.call(t,o)?t[o]:void 0;if(s){const t=e[o],n=void 0===t||s(t,o,e);if(!0!==n)throw new Cg("option "+o+" must be "+n,Cg.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new Cg("Unknown option "+o,Cg.ERR_BAD_OPTION)}},validators:qm},Ym=Wm.validators;class Xm{constructor(e){this.defaults=e||{},this.interceptors={request:new Ug,response:new Ug}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error)try{let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack;let r="";if("string"==typeof n){const e=n.indexOf("\n");r=-1===e?"":n.slice(e+1)}if(e.stack){if(r){const t=r.indexOf("\n"),n=-1===t?-1:r.indexOf("\n",t+1),i=-1===n?"":r.slice(n+1);String(e.stack).endsWith(i)||(e.stack+="\n"+r)}}else e.stack=r}catch(e){}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=ym(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:i}=t;void 0!==n&&Wm.assertOptions(n,{silentJSONParsing:Ym.transitional(Ym.boolean),forcedJSONParsing:Ym.transitional(Ym.boolean),clarifyTimeoutError:Ym.transitional(Ym.boolean),legacyInterceptorReqResOrdering:Ym.transitional(Ym.boolean),advertiseZstdAcceptEncoding:Ym.transitional(Ym.boolean),validateStatusUndefinedResolves:Ym.transitional(Ym.boolean)},!1),null!=r&&(ag.isFunction(r)?t.paramsSerializer={serialize:r}:Wm.assertOptions(r,{encode:Ym.function,serialize:Ym.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Wm.assertOptions(t,{baseUrl:Ym.spelling("baseURL"),withXsrfToken:Ym.spelling("withXSRFToken")},!0),t.method=(ag.getSafeProp(t,"method")||ag.getSafeProp(this.defaults,"method")||"get").toLowerCase();let o=i&&ag.merge(i.common,i[t.method]);i&&ag.forEach(Zg.concat("common"),e=>{delete i[e]}),t.headers=xg.concat(o,i);const s=[];let a=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;a=a&&e.synchronous;const n=t.transitional||Bg;n&&n.legacyInterceptorReqResOrdering?s.unshift(e.fulfilled,e.rejected):s.push(e.fulfilled,e.rejected)});const l=[];let c;this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let u,d=0;if(!a){const e=[Hm.bind(this),void 0];for(e.unshift(...s),e.push(...l),u=e.length,c=Promise.resolve(t);dHm.call(this,h)))}catch(e){c=Promise.reject(e)}break}}if(!c)try{c=Hm.call(this,h)}catch(e){c=Promise.reject(e)}for(d=0,u=l.length;d{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new im(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new Km(function(t){e=t}),cancel:e}}}const Jm=Km,Zm={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Zm).forEach(([e,t])=>{void 0===Zm[t]&&(Zm[t]=e)});const Qm=Zm,ev=function e(t){const n=new Gm(t),r=cf(Gm.prototype.request,n);return ag.extend(r,Gm.prototype,n,{allOwnKeys:!0}),ag.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(ym(t,n))},r}(tm);ev.Axios=Gm,ev.CanceledError=im,ev.CancelToken=Jm,ev.isCancel=rm,ev.VERSION="1.20.0",ev.toFormData=Rg,ev.AxiosError=Cg,ev.Cancel=ev.CanceledError,ev.all=function(e){return Promise.all(e)},ev.spread=function(e){return function(t){return e.apply(null,t)}},ev.isAxiosError=function(e){return ag.isObject(e)&&!0===e.isAxiosError},ev.mergeConfig=ym,ev.AxiosHeaders=xg,ev.formToJSON=e=>Jg(ag.isHTMLForm(e)?new FormData(e):e),ev.getAdapter=Um,ev.HttpStatusCode=Qm,ev.default=ev;const tv=ev,nv={apiRequest(e){let t={method:(e.method||"GET").toUpperCase(),url:`${window.SITE_URL}api/${e.url}`,headers:e.headers?{[e.headers.key]:e.headers.value}:{}};return"GET"===t.method?t.params=e.params||e.data:t.data=e.data,tv(t).then(e=>e)}},rv=typeof window<"u";var iv;function ov(e){return null==e}function sv(){}rv&&(null==(iv=null==window?void 0:window.navigator)?void 0:iv.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent),Object.prototype.toString,Object.prototype.hasOwnProperty;const av="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",lv=`[\\s|\\(]+(${av})[,|\\s]+(${av})[,|\\s]+(${av})[,|\\s]+(${av})\\s*\\)?`,cv=(new RegExp(`rgb[\\s|\\(]+(${av})[,|\\s]+(${av})[,|\\s]+(${av})\\s*\\)?`),new RegExp(`rgba${lv}`),new RegExp(`hsl${lv}`),new RegExp(`hsla${lv}`),new RegExp(`hsv${lv}`),new RegExp(`hsva${lv}`),Object.freeze({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"}));function uv(e){const t=e.toString().split(/[eE]/),n=(t[0].split(".")[1]||"").length-+(t[1]||0);return n>0?n:0}function dv(e,t=15){return+parseFloat(Number(e).toPrecision(t))}function hv(e){const t=String(e);if(!t.includes("e"))return Number(t.replace(".",""));const n=uv(e);return n>0?dv(Number(e)*10**n):Number(e)}function pv(e){return(...t)=>{let n=t[0];for(let r=1,i=t.length;rhv(e)*hv(t)/10**(uv(e)+uv(t)));function gv(e,t=16){if("function"!=typeof e)return sv;const n=(...t)=>{e(...t)};if(t<=0)return mv(n);let r,i=0;return function(...e){const o=Date.now(),s=o-i;clearTimeout(r),s>=t?(i=o,n(...e)):r=setTimeout(()=>{i=Date.now(),n(...e)},Math.max(0,t-s))}}function mv(e){if("function"!=typeof e)return e;let t,n,r=!1;return function(...i){return t=i,r||(r=!0,n=Promise.resolve().then(()=>(r=!1,n=void 0,e(...t)))),n}}pv((e,t)=>{const n=10**Math.max(uv(e),uv(t));return(fv(e,n)+fv(t,n))/n}),pv((e,t)=>{const n=10**Math.max(uv(e),uv(t));return(fv(e,n)-fv(t,n))/n}),pv((e,t)=>{const n=hv(e),r=hv(t);return fv(n/r,dv(10**(uv(t)-uv(e))))}),rv&&("ontouchstart"in window||typeof navigator<"u"&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)),["button","[href]:not(.disabled)","input","select","textarea","[tabindex]","[contenteditable]"].map(e=>`${e}:not(:disabled):not([disabled])`).join(", ");const vv=new Set,yv=new WeakMap;function bv(){vv.forEach(e=>{e(...yv.get(e))}),vv.clear()}function wv(e,...t){if("function"!=typeof e)return e;yv.set(e,t),!vv.has(e)&&(vv.add(e),1===vv.size&&Promise.resolve().then(bv))}const xv=Symbol("LAYOUT_KEY"),_v=Symbol("EMITTER_KEY");function Sv(e){const t=Array(e.length);for(let n=0,r=e.length;n=t.x+t.w||e.y+e.h<=t.y||e.y>=t.y+t.h)}function Tv(e,t,n){const r=Pv(e),i=Lv(e),o=Array(e.length);for(let s=0,a=i.length;se.i===a.i)]=a,a.moved=!1}return o}function kv(e,t,n,r){if(n)for(;t.y>0&&!Av(e,t);)t.y--;else if(r){const n=r[t.i].y;for(;t.y>n&&!Av(e,t);)t.y--}let i;for(;i=Av(e,t);)t.y=i.y+i.h;return t}function Ov(e,t){for(let n=0,r=e.length;nCv(e,t))}function Pv(e){return e.filter(e=>e.static)}function Iv(e,t,n,r,i=!1,o=!1){if(t.static)return e;const s=t.x,a=t.y,l=r&&t.y>r;"number"==typeof n&&(t.x=n),"number"==typeof r&&(t.y=r),t.moved=!0;let c=Lv(e);l&&(c=c.reverse());const u=Rv(c,t);if(o&&u.length)return t.x=s,t.y=a,t.moved=!1,e;for(let n=0,r=u.length;nr.y&&t.y-r.y>r.h/4||(e=r.static?Nv(e,r,t,i):Nv(e,t,r,i))}return e}function Nv(e,t,n,r){if(r){const r={x:n.x,y:n.y,w:n.w,h:n.h};if(r.y=Math.max(t.y-n.h,0),!Av(e,r))return Iv(e,n,void 0,r.y,!1)}return Iv(e,n,void 0,n.y+1,!1)}function Lv(e){return Array.from(e).sort(function(e,t){return e.y===t.y&&e.x===t.x?0:e.y>t.y||e.y===t.y&&e.x>t.x?1:-1})}function Mv(e){return function(e){var t;const n=(null==(t=e.target)?void 0:t.offsetParent)||document.body,r=e.offsetParent===document.body?{left:0,top:0}:n.getBoundingClientRect();return{x:e.clientX+n.scrollLeft-r.left,y:e.clientY+n.scrollTop-r.top}}(e)}function $v(e,t,n,r){return function(e){return"number"==typeof e&&!Number.isNaN(e)}(e)?{deltaX:n-e,deltaY:r-t,lastX:e,lastY:t,x:n,y:r}:{deltaX:0,deltaY:0,lastX:n,lastY:r,x:n,y:r}}function Dv(e,t){if(!t[e])throw new Error("ResponsiveGridLayout: `cols` entry for breakpoint "+e+" is missing!");return t[e]}function zv(e,t,n,r,i,o,s){if(t[r])return Sv(t[r]);let a=e;const l=Fv(n),c=l.slice(l.indexOf(r));for(let e=0,n=c.length;et.cols&&(i.x=t.cols-i.w),i.x<0&&(i.x=0,i.w=t.cols),i.static)for(;Av(n,i);)i.y++;else n.push(i)}return e}(a,{cols:o}),s)}function Fv(e){return Object.keys(e).sort((t,n)=>e[t]-e[n])}function jv(){return typeof document<"u"?typeof document.dir<"u"?document.dir:document.getElementsByTagName("html")[0].getAttribute("dir"):"auto"}var Uv=n(617);const Bv=ai({__name:"grid-item",props:{isDraggable:{type:Boolean,default:void 0},isResizable:{type:Boolean,default:void 0},isBounded:{type:Boolean,default:void 0},static:{type:Boolean,default:!1},minH:{default:1},minW:{default:1},maxH:{default:1/0},maxW:{default:1/0},x:{},y:{},w:{},h:{},i:{},dragIgnoreFrom:{default:"a, button"},dragAllowFrom:{default:void 0},resizeIgnoreFrom:{default:"a, button"},preserveAspectRatio:{type:Boolean,default:!1},dragOption:{default:()=>({})},resizeOption:{default:()=>({})}},emits:["container-resized","resize","resized","move","moved"],setup(e,{expose:t,emit:n}){const r=e,i=n,o=Er(xv),s=Er(_v);if(!o)throw new Error("[grid-layout-plus]: missing layout store, GridItem must under a GridLayout.");const a=gn(null),l=Qt({cols:1,containerWidth:100,rowHeight:30,margin:[10,10],maxRows:1/0,draggable:void 0,resizable:void 0,bounded:void 0,transformScale:1,useCssTransforms:!0,useStyleCursor:!0,isDragging:!1,dragging:{top:-1,left:-1},isResizing:!1,resizing:{width:-1,height:-1},style:{},rtl:!1});let c=!1,u=!1,d=NaN,h=NaN,p=NaN,f=NaN,g=-1,m=-1,v=-1,y=-1,b=r.x,w=r.y,x=r.w,_=r.h;const S=fn(),E=Qt({i:On(r,"i"),state:l,wrapper:S,calcXY:Y});function C(e){!function(e){l.containerWidth=e}(e)}function T(){J()}function k(e){ov(r.isDraggable)&&(l.draggable=e)}function O(e){ov(r.isResizable)&&(l.resizable=e)}function A(e){ov(r.isBounded)&&(l.bounded=e)}function R(e){l.transformScale=e}function P(e){l.rowHeight=e}function I(e){l.maxRows=e}function N(){l.rtl="rtl"===jv(),J()}function L(e){l.cols=Math.floor(e)}o.increaseItem(E),Zi(()=>{l.rtl="rtl"===jv()}),Qi(()=>{o.responsive&&o.lastBreakpoint?l.cols=Dv(o.lastBreakpoint,o.cols):l.cols=o.colNum,l.rowHeight=o.rowHeight,l.containerWidth=null!==o.width?o.width:100,l.margin=void 0!==o.margin?o.margin.map(Number):[10,10],l.maxRows=o.maxRows,ov(r.isDraggable)?l.draggable=o.isDraggable:l.draggable=r.isDraggable,ov(r.isResizable)?l.resizable=o.isResizable:l.resizable=r.isResizable,ov(r.isBounded)?l.bounded=o.isBounded:l.bounded=r.isBounded,l.transformScale=o.transformScale,l.useCssTransforms=o.useCssTransforms,l.useStyleCursor=o.useStyleCursor,Or(()=>{b=r.x,w=r.y,_=r.h,x=r.w,wv(B)}),s.on("updateWidth",C),s.on("compact",T),s.on("setDraggable",k),s.on("setResizable",O),s.on("setBounded",A),s.on("setTransformScale",R),s.on("setRowHeight",P),s.on("setMaxRows",I),s.on("directionchange",N),s.on("setColNum",L)}),no(()=>{s.off("updateWidth",C),s.off("compact",T),s.off("setDraggable",k),s.off("setResizable",O),s.off("setBounded",A),s.off("setTransformScale",R),s.off("setRowHeight",P),s.off("setMaxRows",I),s.off("directionchange",N),s.off("setColNum",L),a.value&&(a.value.unset(),a.value=null),o.decreaseItem(E)}),t({state:l,wrapper:S});const M=typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes("android"),$=Qa(()=>l.resizable&&!r.static),D=Qa(()=>o.isMirrored?!l.rtl:l.rtl),z=Qa(()=>(l.draggable||l.resizable)&&!r.static),F=function(e,t="vgl"){const n=()=>`${t}-${e}`;return{b:n,be:e=>`${n()}__${e}`,bm:e=>`${n()}--${e}`,bem:(e,t)=>`${n()}__${e}--${t}`}}("item"),j=Qa(()=>({[F.b()]:!0,[F.bm("resizable")]:$.value,[F.bm("static")]:r.static,[F.bm("resizing")]:l.isResizing,[F.bm("dragging")]:l.isDragging,[F.bm("transform")]:l.useCssTransforms,[F.bm("rtl")]:D.value,[F.bm("no-touch")]:M&&z.value})),U=Qa(()=>[F.be("resizer"),D.value&&F.bem("resizer","rtl")].filter(Boolean));function B(){r.x+r.w>l.cols?(b=0,x=r.w>l.cols?l.cols:r.w):(b=r.x,x=r.w);const e=W(b,w,x,_);let t;l.isDragging&&(e.top=l.dragging.top,D.value?e.right=l.dragging.left:e.left=l.dragging.left),l.isResizing&&(e.width=l.resizing.width,e.height=l.resizing.height),t=l.useCssTransforms?D.value?function(e,t,n,r){const i="translate3d("+-1*t+"px,"+e+"px, 0)";return{transform:i,WebkitTransform:i,MozTransform:i,msTransform:i,OTransform:i,width:n+"px",height:r+"px",position:"absolute"}}(e.top,e.right,e.width,e.height):function(e,t,n,r){const i="translate3d("+t+"px,"+e+"px, 0)";return{transform:i,WebkitTransform:i,MozTransform:i,msTransform:i,OTransform:i,width:n+"px",height:r+"px",position:"absolute"}}(e.top,e.left,e.width,e.height):D.value?function(e,t,n,r){return{top:e+"px",right:t+"px",width:n+"px",height:r+"px",position:"absolute"}}(e.top,e.right,e.width,e.height):function(e,t,n,r){return{top:e+"px",left:t+"px",width:n+"px",height:r+"px",position:"absolute"}}(e.top,e.left,e.width,e.height),l.style=t}function H(){const e={};for(const t of["width","height"]){const n=l.style[t].match(/^(\d+)px$/);if(!n)return;e[t]=n[1]}i("container-resized",r.i,r.h,r.w,e.height,e.width)}function q(e){if(r.static)return;const t=e.type;if("resizestart"===t&&l.isResizing||"resizestart"!==t&&!l.isResizing)return;const n=Mv(e);if(ov(n))return;const{x:o,y:a}=n,c={width:0,height:0};let u;switch(t){case"resizestart":ne(),g=x,m=_,u=W(b,w,x,_),c.width=u.width,c.height=u.height,l.resizing=c,l.isResizing=!0;break;case"resizemove":{!e.edges.right&&!e.edges.left&&(p=o),!e.edges.top&&!e.edges.bottom&&(f=a);const t=$v(p,f,o,a);D.value?c.width=l.resizing.width-t.deltaX/l.transformScale:c.width=l.resizing.width+t.deltaX/l.transformScale,c.height=l.resizing.height+t.deltaY/l.transformScale,l.resizing=c;break}case"resizeend":u=W(b,w,x,_),c.width=u.width,c.height=u.height,l.resizing={width:-1,height:-1},l.isResizing=!1}u=function(e,t,n=!1){const r=X();let i=Math.round((t+l.margin[0])/(r+l.margin[0])),o=0;return o=n?Math.ceil((e+l.margin[1])/(l.rowHeight+l.margin[1])):Math.round((e+l.margin[1])/(l.rowHeight+l.margin[1])),i=Math.max(Math.min(i,l.cols-b),0),o=Math.max(Math.min(o,l.maxRows-w),0),{w:i,h:o}}(c.height,c.width),u.wr.maxW&&(u.w=r.maxW),u.hr.maxH&&(u.h=r.maxH),u.h<1&&(u.h=1),u.w<1&&(u.w=1),p=o,f=a,(x!==u.w||_!==u.h)&&i("resize",r.i,u.h,u.w,c.height,c.width),"resizeend"===e.type&&(g!==x||m!==_)&&i("resized",r.i,u.h,u.w,c.height,c.width),s.emit("resizeEvent",e.type,r.i,b,w,u.h,u.w)}function V(e){if(r.static||l.isResizing)return;const t=e.type;if("dragstart"===t&&l.isDragging||"dragstart"!==t&&!l.isDragging)return;const n=Mv(e);if(ov(n))return;const{x:o,y:a}=n,c=e.target;if(!c.offsetParent)return;const u={top:0,left:0};switch(t){case"dragstart":{v=b,y=w;const e=c.offsetParent.getBoundingClientRect(),t=c.getBoundingClientRect(),n=t.left/l.transformScale,r=e.left/l.transformScale,i=t.right/l.transformScale,o=e.right/l.transformScale,s=t.top/l.transformScale,a=e.top/l.transformScale;D.value?u.left=-1*(i-o):u.left=n-r,u.top=s-a,l.dragging=u,l.isDragging=!0;break}case"dragmove":{const e=$v(d,h,o,a);if(D.value?u.left=l.dragging.left-e.deltaX/l.transformScale:u.left=l.dragging.left+e.deltaX/l.transformScale,u.top=l.dragging.top+e.deltaY/l.transformScale,l.bounded){const e=c.offsetParent.clientHeight-G(r.h,l.rowHeight,l.margin[1]);u.top=K(u.top,0,e);const t=X(),n=l.containerWidth-G(r.w,t,l.margin[0]);u.left=K(u.left,0,n)}l.dragging=u;break}case"dragend":{const e=c.offsetParent.getBoundingClientRect(),t=c.getBoundingClientRect(),n=t.left/l.transformScale,r=e.left/l.transformScale,i=t.right/l.transformScale,o=e.right/l.transformScale,s=t.top/l.transformScale,a=e.top/l.transformScale;D.value?u.left=-1*(i-o):u.left=n-r,u.top=s-a,l.dragging={top:-1,left:-1},l.isDragging=!1;break}}let p;D.value,p=Y(u.top,u.left),d=o,h=a,(b!==p.x||w!==p.y)&&i("move",r.i,p.x,p.y),"dragend"===e.type&&(v!==b||y!==w)&&i("moved",r.i,p.x,p.y),s.emit("dragEvent",e.type,r.i,p.x,p.y,_,x)}function W(e,t,n,r){const i=X();let o;return o=D.value?{right:Math.round(i*e+(e+1)*l.margin[0]),top:Math.round(l.rowHeight*t+(t+1)*l.margin[1]),width:n===1/0?n:Math.round(i*n+Math.max(0,n-1)*l.margin[0]),height:r===1/0?r:Math.round(l.rowHeight*r+Math.max(0,r-1)*l.margin[1])}:{left:Math.round(i*e+(e+1)*l.margin[0]),top:Math.round(l.rowHeight*t+(t+1)*l.margin[1]),width:n===1/0?n:Math.round(i*n+Math.max(0,n-1)*l.margin[0]),height:r===1/0?r:Math.round(l.rowHeight*r+Math.max(0,r-1)*l.margin[1])},o}function Y(e,t){const n=X();let r=Math.round((t-l.margin[0])/(n+l.margin[0])),i=Math.round((e-l.margin[1])/(l.rowHeight+l.margin[1]));return r=Math.max(Math.min(r,l.cols-x),0),i=Math.max(Math.min(i,l.maxRows-_),0),{x:r,y:i}}function X(){return(l.containerWidth-l.margin[0]*(l.cols+1))/l.cols}function G(e,t,n){return Number.isFinite(e)?Math.round(t*e+Math.max(0,e-1)*n):e}function K(e,t,n){return Math.max(Math.min(e,n),t)}function J(){B()}function Z(){!a.value&&S.value&&(a.value=Uv(S.value),l.useStyleCursor||a.value.styleCursor(!1))}Pr(()=>r.isDraggable,e=>{l.draggable=e}),Pr(()=>r.static,()=>{wv(ee),wv(ne)}),Pr(()=>l.draggable,()=>{wv(ee)}),Pr(()=>r.isResizable,e=>{l.resizable=e}),Pr(()=>r.isBounded,e=>{l.bounded=e}),Pr(()=>l.resizable,()=>{wv(ne)}),Pr(()=>l.rowHeight,()=>{wv(B),wv(H)}),Pr([()=>l.cols,()=>l.containerWidth],()=>{wv(ne),wv(B),wv(H)}),Pr([()=>r.minH,()=>r.maxH,()=>r.minW,()=>r.maxW],()=>{wv(ne)}),Pr(D,()=>{wv(ne),wv(B)}),Pr([()=>o.margin,()=>o.margin[0],()=>o.margin[1]],()=>{const e=o.margin;!e||e[0]===l.margin[0]&&e[1]===l.margin[1]||(l.margin=e.map(Number),wv(B),wv(H))});const Q=gv(V);function ee(){if(Z(),a.value)if(l.draggable&&!r.static){const e={ignoreFrom:r.dragIgnoreFrom,allowFrom:r.dragAllowFrom,...r.dragOption};a.value.draggable(e),c||(c=!0,a.value.on("dragstart dragmove dragend",e=>{"dragmove"===e.type?Q(e):V(e)}))}else a.value.draggable({enabled:!1})}const te=gv(q);function ne(){if(Z(),a.value)if(l.resizable&&!r.static){const e=W(0,0,r.maxW,r.maxH),t=W(0,0,r.minW,r.minH),n={edges:{left:!!D.value&&`.${U.value[0]}`,right:!D.value&&`.${U.value[0]}`,bottom:`.${U.value[0]}`,top:!1},ignoreFrom:r.resizeIgnoreFrom,restrictSize:{min:{height:t.height*l.transformScale,width:t.width*l.transformScale},max:{height:e.height*l.transformScale,width:e.width*l.transformScale}},...r.resizeOption};r.preserveAspectRatio&&(n.modifiers=[Uv.modifiers.aspectRatio({ratio:"preserve"})]),a.value.resizable(n),u||(u=!0,a.value.on("resizestart resizemove resizeend",e=>{"resizemove"===e.type?te(e):q(e)}))}else a.value.resizable({enabled:!1})}return(e,t)=>(ra(),ca("section",{ref_key:"wrapper",ref:S,class:ge(j.value),style:ue(l.style)},[bo(e.$slots,"default"),$.value?(ra(),ca("span",{key:0,class:ge(U.value)},null,2)):_a("",!0)],6))}}),Hv=typeof window<"u";var qv;function Vv(e){return null!=e}function Wv(){}Hv&&null!=(qv=null==window?void 0:window.navigator)&&qv.userAgent&&/iP(ad|hone|od)/.test(window.navigator.userAgent);const Yv=Object.freeze({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"});Object.freeze(new Set(Object.keys(Yv)));const Xv=Hv&&("ontouchstart"in window||(typeof navigator<"u"&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)||0)>0)?"pointerdown":"click";const Gv=new Set;let Kv=null;Hv&&("click"===Xv&&document.addEventListener("pointerdown",e=>{Kv=e.target},!0),document.addEventListener(Xv,e=>{const t=Kv;Kv=null,Gv.forEach(n=>{if(t&&function(e,t){return e instanceof Node&&(t===e||t.contains(e)||!!t.__transferElement&&(t.__transferElement===e||t.__transferElement.contains(e)))}(t,n))return;const r=e.target,i=e.composedPath&&e.composedPath();n!==r&&(i?!i.includes(n):!n.contains(r))&&(!n.__transferElement||n.__transferElement!==r&&!n.__transferElement.contains(r))&&function(e,t,n=window.Event){const{type:r,bubbles:i=!1,cancelable:o=!1,...s}=t;if(!Vv(r)||""===r)return!1;let a;Vv(n)?a=new n(r,{bubbles:i,cancelable:o}):(a=document.createEvent("HTMLEvents"),a.initEvent(r,i,o)),Object.assign(a,s),e.dispatchEvent(a)}(n,{type:"clickoutside"})})},!0));const Jv=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]];let Zv;if(Hv)for(const e of Jv)if(e[1]in document){Zv=e;break}const Qv=(Qa(()=>!1),new Set),ey=new WeakMap;if(Hv&&Zv){const e=Zv[2],t=Zv[4];document.addEventListener(t,()=>{if(Qv.forEach(e=>{e.value=!1}),document[e]){const t=ey.get(document[e]);t&&(t.value=!0)}},!1)}const ty=new Set,ny=new Map;ny.set("x",0),ny.set("y",0),function(e,t=16){if("function"!=typeof e)return Wv;const n=(...t)=>{e(...t)};if(t<=0)return function(e){if("function"!=typeof e)return e;let t,n,r=!1;return function(...i){return t=i,r||(r=!0,n=Promise.resolve().then(()=>(r=!1,n=void 0,e(...t)))),n}}(n);let r,i=0}(function(e){const{pageX:t,pageY:n}=e;ny.set("x",t),ny.set("y",n),ty.forEach(e=>{e.x.value=t,e.y.value=n})}),Math.min,Math.max,Math.round,Math.floor;var ry,iy,oy=[],sy=function(){return oy.some(function(e){return e.activeTargets.length>0})},ay="ResizeObserver loop completed with undelivered notifications.";(iy=ry||(ry={})).BORDER_BOX="border-box",iy.CONTENT_BOX="content-box",iy.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box";var ly,cy=function(e){return Object.freeze(e)},uy=function(){return function(e,t){this.inlineSize=e,this.blockSize=t,cy(this)}}(),dy=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,cy(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),hy=function(e){return e instanceof SVGElement&&"getBBox"in e},py=function(e){if(hy(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,o=i.offsetWidth,s=i.offsetHeight;return!(o||s||e.getClientRects().length)},fy=function(e){var t;if(e instanceof Element)return!0;var n=null===(t=null==e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},gy=typeof window<"u"?window:{},my=new WeakMap,vy=/auto|scroll/,yy=/^tb|vertical/,by=/msie|trident/i.test(gy.navigator&&gy.navigator.userAgent),wy=function(e){return parseFloat(e||"0")},xy=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new uy((n?t:e)||0,(n?e:t)||0)},_y=cy({devicePixelContentBoxSize:xy(),borderBoxSize:xy(),contentBoxSize:xy(),contentRect:new dy(0,0,0,0)}),Sy=function(e,t){if(void 0===t&&(t=!1),my.has(e)&&!t)return my.get(e);if(py(e))return my.set(e,_y),_y;var n=getComputedStyle(e),r=hy(e)&&e.ownerSVGElement&&e.getBBox(),i=!by&&"border-box"===n.boxSizing,o=yy.test(n.writingMode||""),s=!r&&vy.test(n.overflowY||""),a=!r&&vy.test(n.overflowX||""),l=r?0:wy(n.paddingTop),c=r?0:wy(n.paddingRight),u=r?0:wy(n.paddingBottom),d=r?0:wy(n.paddingLeft),h=r?0:wy(n.borderTopWidth),p=r?0:wy(n.borderRightWidth),f=r?0:wy(n.borderBottomWidth),g=d+c,m=l+u,v=(r?0:wy(n.borderLeftWidth))+p,y=h+f,b=a?e.offsetHeight-y-e.clientHeight:0,w=s?e.offsetWidth-v-e.clientWidth:0,x=i?g+v:0,_=i?m+y:0,S=r?r.width:wy(n.width)-x-w,E=r?r.height:wy(n.height)-_-b,C=S+g+w+v,T=E+m+b+y,k=cy({devicePixelContentBoxSize:xy(Math.round(S*devicePixelRatio),Math.round(E*devicePixelRatio),o),borderBoxSize:xy(C,T,o),contentBoxSize:xy(S,E,o),contentRect:new dy(d,l,S,E)});return my.set(e,k),k},Ey=function(e,t,n){var r=Sy(e,n),i=r.borderBoxSize,o=r.contentBoxSize,s=r.devicePixelContentBoxSize;switch(t){case ry.DEVICE_PIXEL_CONTENT_BOX:return s;case ry.BORDER_BOX:return i;default:return o}},Cy=function(){return function(e){var t=Sy(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=cy([t.borderBoxSize]),this.contentBoxSize=cy([t.contentBoxSize]),this.devicePixelContentBoxSize=cy([t.devicePixelContentBoxSize])}}(),Ty=function(e){if(py(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},ky=function(){var e=1/0,t=[];oy.forEach(function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach(function(t){var n=new Cy(t.target),i=Ty(t.target);r.push(n),t.lastReportedSize=Ey(t.target,t.observedBox),ie?t.activeTargets.push(n):t.skippedTargets.push(n))})})},Ay=[],Ry=0,Py={attributes:!0,characterData:!0,childList:!0,subtree:!0},Iy=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Ny=function(e){return void 0===e&&(e=0),Date.now()+e},Ly=!1,My=function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!Ly){Ly=!0;var n=Ny(e);!function(e){!function(e){if(!ly){var t=0,n=document.createTextNode("");new MutationObserver(function(){return Ay.splice(0).forEach(function(e){return e()})}).observe(n,{characterData:!0}),ly=function(){n.textContent="".concat(t?t--:t++)}}Ay.push(e),ly()}(function(){requestAnimationFrame(e)})}(function(){var r=!1;try{r=function(){var e=0;for(Oy(e);sy();)e=ky(),Oy(e);return oy.some(function(e){return e.skippedTargets.length>0})&&function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:ay}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=ay),window.dispatchEvent(e)}(),e>0}()}finally{if(Ly=!1,e=n-Ny(),!Ry)return;r?t.run(1e3):e>0?t.run(e):t.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,Py)};document.body?t():gy.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Iy.forEach(function(t){return gy.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),Iy.forEach(function(t){return gy.removeEventListener(t,e.listener,!0)}),this.stopped=!0)},e}(),$y=new My,Dy=function(e){!Ry&&e>0&&$y.start(),!(Ry+=e)&&$y.stop()},zy=function(){function e(e,t){this.target=e,this.observedBox=t||ry.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e=Ey(this.target,this.observedBox,!0);return function(e){return!hy(e)&&!function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(e)&&"inline"===getComputedStyle(e).display}(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},e}(),Fy=function(){return function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t}}(),jy=new WeakMap,Uy=function(e,t){for(var n=0;n=0&&(i&&oy.splice(oy.indexOf(n),1),n.observationTargets.splice(r,1),Dy(-1))},e.disconnect=function(e){var t=this,n=jy.get(e);n.observationTargets.slice().forEach(function(n){return t.unobserve(e,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),Hy=function(){function e(e){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");By.connect(this,e)}return e.prototype.observe=function(e,t){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!fy(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");By.observe(this,e,t)},e.prototype.unobserve=function(e){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!fy(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");By.unobserve(this,e)},e.prototype.disconnect=function(){By.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();const qy=new WeakMap,Vy=new(Hv&&window.ResizeObserver||Hy)(function(e){var t;for(let n=0,r=e.length;nXy.value),Object.freeze(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"]);const Gy="__theme_style__",Ky="__theme_observer__",Jy=Qt(new Map),Zy=new Map;Pr(Jy,()=>{if(!Hv)return;Zy.clear();const e=document.head.querySelector(`#${Gy}`);e&&document.head.removeChild(e);const t=document.createElement("style");let n=`.${Ky} { width: 1px }`,r=1;for(const[e,[t,i]]of Jy.entries())n+=` html.${t} .${Ky}, .${i} .${Ky} { width: ${++r}px }`,Zy.set(r,e);t.textContent=n,t.id=Gy,document.head.appendChild(t)});const Qy=ai({__name:"grid-layout",props:{autoSize:{type:Boolean,default:!0},colNum:{default:12},rowHeight:{default:150},maxRows:{default:1/0},margin:{default:()=>[10,10]},isDraggable:{type:Boolean,default:!0},isResizable:{type:Boolean,default:!0},isMirrored:{type:Boolean,default:!1},isBounded:{type:Boolean,default:!1},useCssTransforms:{type:Boolean,default:!0},verticalCompact:{type:Boolean,default:!0},restoreOnDrag:{type:Boolean,default:!1},layout:{},responsive:{type:Boolean,default:!1},responsiveLayouts:{default:()=>({})},transformScale:{default:1},breakpoints:{default:()=>({lg:1200,md:996,sm:768,xs:480,xxs:0})},cols:{default:()=>({lg:12,md:10,sm:6,xs:4,xxs:2})},preventCollision:{type:Boolean,default:!1},useStyleCursor:{type:Boolean,default:!0}},emits:["layout-before-mount","layout-mounted","layout-updated","breakpoint-changed","update:layout","layout-ready"],setup(e,{expose:t,emit:n}){const r=e,i=n,o=Qt({width:-1,mergedStyle:{},lastLayoutLength:0,isDragging:!1,placeholder:{x:0,y:0,w:0,h:0,i:""},layouts:{},lastBreakpoint:null,originalLayout:null}),s=new Map,a=fn(r.layout),l=fn(),{observeResize:c,unobserveResize:u}=function(e={}){let t=Wv;const n=Pr(()=>bn(e.target),n=>{t(),n&&"function"==typeof e.onResize&&(Wy(n,e.onResize),t=()=>{Yy(n),t=Wv})},{immediate:!0}),r=()=>{n(),t()};return Be()&&He(r),{observeResize:Wy,unobserveResize:Yy,unobserve:r}}(),d=function(){const e=new Map;return{on(t,n){const r=e.get(t);(null==r?void 0:r.add(n))||e.set(t,new Set([n]))},off(t,n){const r=e.get(t);r&&r.delete(n)},clear(t){const n=e.get(t);n&&n.clear()},clearAll(){e.clear()},emit(t,...n){const r=e.get(t);r&&r.forEach(e=>{e(...n)})}}}();function h(){if(!ov(a.value)&&!ov(o.originalLayout)){if(a.value.length!==o.originalLayout.length){const e=function(e,t){const n=new Set(t.map(e=>e.i)),r=new Set(e.map(e=>e.i)),i=e.filter(e=>!n.has(e.i)),o=t.filter(e=>!r.has(e.i));return i.concat(o)}(a.value,o.originalLayout);if(e.length>0)if(a.value.length>o.originalLayout.length)o.originalLayout=o.originalLayout.concat(e);else{const t=new Set(e.map(e=>e.i));o.originalLayout=o.originalLayout.filter(e=>!t.has(e.i))}o.lastLayoutLength=a.value.length,w()}Tv(a.value,r.verticalCompact),d.emit("updateWidth",o.width),p(),i("layout-updated",a.value)}}function p(){o.mergedStyle={height:g()}}function f(){l.value&&(o.width=l.value.offsetWidth),d.emit("resizeEvent")}function g(){if(!r.autoSize)return;const e=parseFloat(r.margin[1]);return function(e){let t,n=0;for(let r=0,i=e.length;rn&&(n=t);return n}(a.value)*(r.rowHeight+e)+e+"px"}let m;function v(e,t,n,s,l,c){let u=Ov(a.value,t);ov(u)&&(u={h:0,w:0,x:0,y:0,i:""}),"dragstart"===e&&!r.verticalCompact&&(m=a.value.reduce((e,{i:t,x:n,y:r})=>({...e,[t]:{x:n,y:r}}),{})),"dragmove"===e||"dragstart"===e?(o.placeholder.i=t,o.placeholder.x=u.x,o.placeholder.y=u.y,o.placeholder.w=c,o.placeholder.h=l,nr(()=>{o.isDragging=!0}),d.emit("updateWidth",o.width)):nr(()=>{o.isDragging=!1}),a.value=Iv(a.value,u,n,s,!0,r.preventCollision),r.restoreOnDrag?(u.static=!0,Tv(a.value,r.verticalCompact,m),u.static=!1):Tv(a.value,r.verticalCompact),d.emit("compact"),p(),"dragend"===e&&(m=void 0,i("layout-updated",a.value))}function y(e,t,n,s,l,c){let u,h=Ov(a.value,t);if(ov(h)&&(h={h:0,w:0,x:0,y:0,i:""}),r.preventCollision){const e=Rv(a.value,{...h,w:c,h:l}).filter(e=>e.i!==h.i);if(u=e.length>0,u){let t=1/0,n=1/0;e.forEach(e=>{e.x>h.x&&(t=Math.min(t,e.x)),e.y>h.y&&(n=Math.min(n,e.y))}),Number.isFinite(t)&&(h.w=t-h.x),Number.isFinite(n)&&(h.h=n-h.y)}}u||(h.w=c,h.h=l),"resizestart"===e||"resizemove"===e?(o.placeholder.i=t,o.placeholder.x=n,o.placeholder.y=s,o.placeholder.w=h.w,o.placeholder.h=h.h,nr(()=>{o.isDragging=!0}),d.emit("updateWidth",o.width)):e&&nr(()=>{o.isDragging=!1}),r.responsive&&b(),Tv(a.value,r.verticalCompact),d.emit("compact"),p(),"resizeend"===e&&i("layout-updated",a.value)}function b(){const e=function(e,t){const n=Fv(e);let r=n[0];for(let i=1,o=n.length;ie[o]&&(r=o)}return r}(r.breakpoints,o.width);if(e===o.lastBreakpoint)return;const t=Dv(e,r.cols);!ov(o.lastBreakpoint)&&!o.layouts[o.lastBreakpoint]&&(o.layouts[o.lastBreakpoint]=Sv(a.value));const n=zv(o.originalLayout,o.layouts,r.breakpoints,e,o.lastBreakpoint,t,r.verticalCompact);o.layouts[e]=n,o.lastBreakpoint!==e&&i("breakpoint-changed",e,n),a.value=n,i("update:layout",n),o.lastBreakpoint=e,d.emit("setColNum",t)}function w(){o.layouts=Object.assign({},r.responsiveLayouts)}return d.on("resizeEvent",function(e,t,n,r,i,o){y(e,t,n,r,i,o)}),d.on("dragEvent",function(e,t,n,r,i,o){v(e,t,n,r,i,o)}),Zi(()=>{i("layout-before-mount",a.value)}),Qi(()=>{i("layout-mounted",a.value),nr(()=>{(function(e,t){t=t||"Layout";const n=["x","y","w","h"],r=[];if(!Array.isArray(e))throw new Error(t+" must be an array!");for(let i=0,o=e.length;i=0)throw new Error("VueGridLayout: "+t+"["+i+"].i must be unique!");if(r.push(o.i),void 0!==o.static&&"boolean"!=typeof o.static)throw new Error("VueGridLayout: "+t+"["+i+"].static must be a boolean!")}})(a.value),o.originalLayout=a.value,nr(()=>{w(),l.value&&c(l.value,function(e,t=100){if("function"!=typeof e)return sv;const n=(...t)=>{e(...t)};if(t<=0)return mv(n);let r;return function(...e){clearTimeout(r),r=setTimeout(()=>{n(...e)},t)}}(f,16)),Tv(a.value,r.verticalCompact),i("layout-updated",a.value),p(),f()})})}),no(()=>{d.clearAll(),l.value&&u(l.value)}),Pr(()=>o.width,(e,t)=>{nr(()=>{d.emit("updateWidth",e),-1===t&&nr(()=>{i("layout-ready",a.value)}),p()})}),Pr(()=>[r.layout,r.layout.length],()=>{a.value=r.layout,h()}),Pr(()=>r.colNum,e=>{d.emit("setColNum",e)}),Pr(()=>r.rowHeight,e=>{d.emit("setRowHeight",e)}),Pr(()=>r.isDraggable,e=>{d.emit("setDraggable",e)}),Pr(()=>r.isResizable,e=>{d.emit("setResizable",e)}),Pr(()=>r.isBounded,e=>{d.emit("setBounded",e)}),Pr(()=>r.transformScale,e=>{d.emit("setTransformScale",e)}),Pr(()=>r.responsive,e=>{e||(i("update:layout",o.originalLayout),d.emit("setColNum",r.colNum)),f()}),Pr(()=>r.maxRows,e=>{d.emit("setMaxRows",e)}),Pr([()=>r.margin,()=>r.margin[1]],p),Sr(xv,Qt({...Cn(r),...Cn(o),increaseItem:function(e){s.set(e.i,e)},decreaseItem:function(e){s.delete(e.i)}})),Sr(_v,d),t({state:o,getItem:function(e){return s.get(e)},resizeEvent:y,dragEvent:v,layoutUpdate:h}),(e,t)=>(ra(),ca("div",{ref_key:"wrapper",ref:l,class:"vgl-layout",style:ue(o.mergedStyle)},[e.$slots.default?bo(e.$slots,"default",{key:0}):(ra(!0),ca(Js,{key:1},vo(a.value,t=>(ra(),ua(Bv,Ta({key:t.i,ref_for:!0},t),{default:wr(()=>[bo(e.$slots,"item",{item:t})]),_:2},1040))),128)),xr(va(Bv,{class:"vgl-item--placeholder",x:o.placeholder.x,y:o.placeholder.y,w:o.placeholder.w,h:o.placeholder.h,i:o.placeholder.i},null,8,["x","y","w","h","i"]),[[Dl,o.isDragging]])],4))}});!function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.vgl-layout{--vgl-placeholder-bg: red;--vgl-placeholder-opacity: 20%;--vgl-placeholder-z-index: 2;--vgl-item-resizing-z-index: 3;--vgl-item-resizing-opacity: 60%;--vgl-item-dragging-z-index: 3;--vgl-item-dragging-opacity: 100%;--vgl-resizer-size: 10px;--vgl-resizer-border-color: #444;--vgl-resizer-border-width: 2px;position:relative;box-sizing:border-box;transition:height .2s ease}.vgl-item{position:absolute;box-sizing:border-box;transition:.2s ease;transition-property:left,top,right}.vgl-item--placeholder{z-index:var(--vgl-placeholder-z-index, 2);-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:var(--vgl-placeholder-bg, red);opacity:var(--vgl-placeholder-opacity, 20%);transition-duration:.1s}.vgl-item--no-touch{touch-action:none}.vgl-item--transform{right:auto;left:0;transition-property:transform}.vgl-item--transform.vgl-item--rtl{right:0;left:auto}.vgl-item--resizing{z-index:var(--vgl-item-resizing-z-index, 3);-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--vgl-item-resizing-opacity, 60%)}.vgl-item--dragging{z-index:var(--vgl-item-dragging-z-index, 3);-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--vgl-item-dragging-opacity, 100%);transition:none}.vgl-item__resizer{position:absolute;right:0;bottom:0;box-sizing:border-box;width:var(--vgl-resizer-size);height:var(--vgl-resizer-size);cursor:se-resize}.vgl-item__resizer:before{position:absolute;top:0;right:3px;bottom:3px;left:0;content:"";border:0 solid var(--vgl-resizer-border-color);border-right-width:var(--vgl-resizer-border-width);border-bottom-width:var(--vgl-resizer-border-width)}.vgl-item__resizer--rtl{right:auto;left:0;cursor:sw-resize}.vgl-item__resizer--rtl:before{top:0;right:0;bottom:3px;left:3px;border-right-width:0;border-bottom-width:var(--vgl-resizer-border-width);border-left-width:var(--vgl-resizer-border-width)}')),document.head.appendChild(e)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}}();const eb=class{constructor(e,t={}){if(this.adminController=e,t=t||{},this.classes={container:"modal",inner:"modal__inner",close:"modal__close",title:"modal__title",body:"modal__body",actions:"modal__actions",show:"modal--open",processed:"modal--processed"},this.clearActions(),t.el)this.container=t.el,this.inner=t.el.querySelector(".modal__inner"),this.close=t.el.querySelector(".modal__close"),this.title=t.el.querySelector(".modal__title"),this.body=t.el.querySelector(".modal__body"),this.actions=t.el.querySelector(".modal__actions");else{let e=t.defaultTitle||null,n=t.defaultBody||null,r=t.minWidth||null,i=t.maxWidth||null;this.container=this.newDiv("container"),this.inner=this.newDiv("inner"),this.close=this.newDiv("close","×"),this.title=this.newDiv("title"),this.body=this.newDiv("body"),this.actions=this.newDiv("actions"),this.addClass(this.container,"processed"),r&&this.addStyle(this.inner,"minWidth",r),i&&this.addStyle(this.inner,"maxWidth",i),this.setTitle(e||"").setBody(n||"")}this.addListener(this.close,"click",e=>{this.hide()}).addListener(document,"keyup",e=>{"Escape"===e.key&&this.isShown()&&(this.hide(),e.preventDefault(),e.stopPropagation())}),this.onShowCallback=t.onShow||function(){},this.onHideCallback=t.onHide||function(){},t.el||(this.inner.appendChild(this.close),this.inner.appendChild(this.title),this.inner.appendChild(this.body),this.inner.appendChild(this.actions),this.container.appendChild(this.inner),document.body.appendChild(this.container)),this.syncActionsVisibility()}newDiv(e,t){let n=document.createElement("div");return e&&this.addClass(n,e),t&&(n.innerHTML=t),n}addClass(e,t){return e.classList.add(this.classes[t]),this}addStyle(e,t,n){return e.style[t]=n,this}addListener(e,t,n){return e.addEventListener(t,n),this}show(){return this.container.classList.add(this.classes.show),document.body.classList.add("no-scroll"),this.actionButtons.length&&this.actionButtons[0].focus(),this.onShowCallback(),this}onShow(e){this.onShowCallback=e}isShown(){return this.container.classList.contains(this.classes.show)}hide(){return this.container.classList.remove(this.classes.show),document.body.classList.remove("no-scroll"),this.onHideCallback(),this}onHide(e){this.onHideCallback=e}setTitle(e){return this.title.innerHTML=e,this}setBody(e){return this.setAreaContents(this.body,e),this.adminController.refreshUi(this.body),this}clearActions(){return this.actionButtons=[],this.actions&&this.renderActions(),this}addAction(e,t,n){t=t||["btn-default"],n=n||function(){};let r=e=>{e.stopPropagation(),e.preventDefault(),n(e,this)},i=document.createElement("button");return i.innerHTML=e,i.classList.add("btn",...t),i.addEventListener("click",e=>{r(e)}),i.addEventListener("keydown",e=>{"Enter"===e.key&&r(e)}),this.actionButtons.push(i),this.renderActions(),this}setActions(e){return this.setAreaContents(this.actions,e),this.syncActionsVisibility(),this.adminController.refreshUi(this.actions),this}setAreaContents(e,t){return e.innerHTML="",Array.isArray(t)?t.map(t=>{e.append(t)}):"string"==typeof t?e.innerHTML=t:t&&e.append(t),this}renderActions(){return this.setAreaContents(this.actions,this.actionButtons),this.syncActionsVisibility(),this}syncActionsVisibility(){return this.actions&&(this.actions.hidden=!this.actions.childElementCount),this}scrollToTop(){return this.inner.scrollTop=0,this}scrollToBottom(){return this.inner.scrollTop=this.inner.offsetHeight,this}};let tb;const nb={name:"DashboardGrid",components:{GridLayout:Qy,GridItem:Bv},props:{adminController:{type:Object,required:!0},userWidgets:{type:Array,required:!0}},data:()=>({modals:{},widgets:[],grid:[],draggable:!0,resizable:!0,colNum:4,rowHeight:100,index:0,defaultWidth:4,defaultHeight:3,layoutReady:!1,classes:{container:"dashboard-widgets",empty:"dashboard-widgets__empty",grid:"dashboard-widgets__grid",instance:{add:"dashboard-widgets__add",cards:"dashboard-widgets__add__cards",card:{self:"dashboard-widgets__add__cards__card",details:"dashboard-widgets__add__cards__card__details"},self:"dashboard-widgets__instance",controls:"dashboard-widgets__instance__controls",padding:"dashboard-widgets__instance__padding"}}}),mounted(){tb=this,this.loadWidgets(),this.setUpModals(),this.userWidgets.map(e=>{this.addItem(e)}),this.$nextTick(()=>{this.layoutReady=!0})},methods:{setUpModals(){this.modals.choose=new eb(this.adminController,{defaultTitle:"Select a widget",minWidth:"80%"}),this.modals.configure=new eb(this.adminController,{minWidth:"50%"}),this.modals.confirm=new eb(this.adminController,{defaultTitle:"Are you sure?"})},add(){this.modals.choose.show()},configure(e){this.adminController.log(`Configuring widget at index ${e.i}`);let t=this.getWidget(e.slug);this.modals.configure.setTitle(`Configuring: ${t.title}`).setBody("Loading...").show(),this.loadConfig(e)},addItem(e){this.adminController.log(`Adding widget: ${e.slug}`,e.config||{});let t={x:e.x??this.grid.length*this.defaultWidth%this.colNum,y:e.y??this.grid.length+this.colNum,w:e.w??this.defaultWidth,h:e.h??this.defaultHeight,i:this.index,id:e.id||null,slug:e.slug,config:e.config||{},title:e.title,description:e.description||null,image:e.image||null,body:e.body||null,padded:e.padded,configurable:e.configurable};this.grid.push(t),e.body||this.loadBody(t),this.index++},async loadBody(e){e.padded?e.body="

Loading...

":e.body=`

Loading...

`;let t=await nv.apiRequest({method:"post",url:of.widgets.body,data:{slug:e.slug,config:e.config}});e.body=t.data.data},async loadConfig(e){let t=await nv.apiRequest({method:"post",url:of.widgets.config,data:{slug:e.slug,config:e.config}}),n=document.createElement("form"),r=document.createElement("p"),i=document.createElement("button");r.classList.add("d-grid","gap-2"),n.innerHTML=t.data.data,i.classList.add("btn","btn-primary"),i.innerHTML="Save",i.addEventListener("click",t=>{this.saveConfig(e,n)}),r.appendChild(i),this.modals.configure.setBody([n,r]),i.focus()},saveConfig(e,t){let n={};Array.from(t.elements).map(e=>{e.name&&(n[e.name]=e.value)}),e.config=n,this.loadBody(e),this.modals.configure.hide(),this.saveGrid()},escapeHtml(e){let t=document.createElement("div");return t.textContent=null==e?"":String(e),t.innerHTML},remove(e){let t=e.title||"this",n="

Remove the "+this.escapeHtml(t)+" widget from your dashboard?

You can add it again later. This does not delete any underlying data.

";this.modals.confirm.setTitle("Remove widget").setBody(n).clearActions().addAction("Remove",["btn-danger"],(t,n)=>{this.removeItem(e),n.hide()}).addAction("Cancel",["btn-secondary"],(e,t)=>{t.hide()}).show()},removeItem:function(e){this.grid.splice(this.grid.map(e=>e.i).indexOf(e.i),1)},async loadWidgets(){let e=await nv.apiRequest({method:"get",url:of.widgets.fetch});this.widgets=e.data.data.widgets,this.buildWidgetSelectUi()},getWidget(e){return this.widgets.find(t=>t.slug===e)},getInstance(e){return this.grid.find(t=>t.i===e)},buildWidgetSelectUi(){let e=document.createElement("ul");e.classList.add(this.classes.instance.cards),this.widgets.map(t=>{let n=document.createElement("li"),r=document.createElement("div"),i=document.createElement("div"),o=document.createElement("p"),s=document.createElement("p");r.classList.add(this.classes.instance.card.self),i.classList.add(this.classes.instance.card.details),o.innerHTML=t.title,s.innerHTML=t.description,t.image&&(r.style.backgroundImage=`url(${t.image})`),r.addEventListener("click",()=>{this.addItem(t),this.modals.choose.hide()}),i.append(o),i.append(s),r.append(i),n.append(r),e.appendChild(n)}),this.modals.choose.setBody(e)},saveLayout(){this.layoutReady&&this.saveGrid()},async saveGrid(){this.adminController.log("Saving Grid");let e=[];this.grid.map(t=>{e.push({x:t.x,y:t.y,w:t.w,h:t.h,i:t.i,id:t.id||null,slug:t.slug,config:t.config})});let t=await nv.apiRequest({method:"put",url:of.widgets.save,data:{grid:e}});this.adminController.log("Saved"),t.data.data.map(e=>{let t=this.getInstance(e.i);t&&(t.id=e.id)})}}};e();const rb=(0,e().A)(nb,[["render",function(e,t,n,r,i,o){const s=uo("grid-item"),a=uo("grid-layout");return ra(),ca("div",{class:ge(i.classes.container)},[i.grid.length?_a("",!0):(ra(),ca("div",{key:0,class:ge(i.classes.empty)},[t[3]||(t[3]=ma("p",null,[ma("i",null,[ma("b",{class:"fa fa-th-large"}),wa("Your dashboard is empty")]),ma("small",null," Dashboard widgets show small pieces of data regarding your website. Your dashboard is completely customiseable. ")],-1)),ma("p",null,[ma("button",{class:"btn btn-secondary",onClick:t[0]||(t[0]=(...e)=>o.add&&o.add(...e)),disabled:!i.widgets.length},[i.widgets.length?(ra(),ca("span",Qp,"Add a widget")):(ra(),ca("span",Zp,"No widgets available"))],8,Jp)])],2)),ma("div",{class:ge(i.classes.grid)},[va(a,{layout:i.grid,"onUpdate:layout":t[1]||(t[1]=e=>i.grid=e),"col-num":i.colNum,"row-height":i.rowHeight,"is-draggable":i.draggable,"is-resizable":i.resizable,"vertical-compact":!0,margin:[10,10],"use-css-transforms":!0,onLayoutUpdated:o.saveLayout},{default:wr(()=>[(ra(!0),ca(Js,null,vo(i.grid,(e,n)=>(ra(),ua(s,{x:e.x,y:e.y,w:e.w,h:e.h,i:e.i,key:e.i,"drag-allow-from":"legend"},{default:wr(()=>[ma("fieldset",{class:ge(i.classes.instance.self)},[ma("legend",null,[wa(Le(e.title)+" ",1),ma("span",{class:ge(i.classes.instance.controls)},[ma("button",{class:"btn btn-xs btn-secondary",onClick:t=>o.loadBody(e)},[...t[4]||(t[4]=[ma("b",{class:"fa fa-sync-alt"},null,-1)])],8,ef),e.configurable?(ra(),ca("button",{key:0,class:"btn btn-xs btn-secondary",onClick:t=>o.configure(e)},[...t[5]||(t[5]=[ma("b",{class:"fa fa-pencil-alt"},null,-1)])],8,tf)):_a("",!0),ma("button",{class:"btn btn-xs btn-danger",onClick:t=>o.remove(e)},[...t[6]||(t[6]=[ma("b",{class:"fa fa-times"},null,-1)])],8,nf)],2)]),ma("div",{class:ge(e.padded?i.classes.instance.padding:""),innerHTML:e.body},null,10,rf)],2)]),_:2},1032,["x","y","w","h","i"]))),128))]),_:1},8,["layout","col-num","row-height","is-draggable","is-resizable","onLayoutUpdated"])],2),i.grid.length&&i.widgets.length?(ra(),ca("div",{key:1,class:ge(i.classes.instance.add),onClick:t[2]||(t[2]=(...e)=>o.add&&o.add(...e)),title:"Add a widget"},[...t[7]||(t[7]=[ma("b",{class:"fa fa-plus"},null,-1)])],2)):_a("",!0)],2)}]]);class ib{constructor(e,t){this.adminController=e,this.el=t;let n=JSON.parse(this.el.getAttribute("user-widgets"))||[];this.app=eu({render:()=>el(rb,{adminController:e,userWidgets:n})}),this.vue=this.app.mount(this.el)}unmount(){this.app&&(this.app.unmount(),this.app=null,this.vue=null)}}const ob=class{constructor(e){this.dashboard=null,e.onRefreshUi(()=>{const t=document.getElementById("dashboard-widgets");t?this.dashboard&&this.dashboard.el===t||(this.destroy(),this.dashboard=new ib(e,t)):this.destroy()}).onDestroyUi(()=>{this.destroy()})}destroy(){this.dashboard&&(this.dashboard.unmount(),this.dashboard=null)}},sb=class{constructor(e){this.adminController=e,this.adminController.log("Constructing"),this.dom={form:document.getElementById("export-form"),recent:document.getElementById("export-recent"),recentContainer:document.getElementById("export-recent-container")},this.dom.form?(this.modal=new eb(this.adminController),this.recent=[],this.bindForm(),this.loadRecent()):this.adminController.log("Not data export UI")}bindForm(){this.dom.form.addEventListener("submit",e=>{e.preventDefault(),e.stopPropagation(),this.generate()})}generate(){this.adminController.log("Generate");let e=new FormData(this.dom.form),t={source:e.get("source"),format:e.get("format"),options:{}},n="options";for(const[r,i]of e.entries())if(r.startsWith(n)&&r!==n){const e=r.substring(7).substring(1).replace(/\]\[/g,".").replace(/\]/g,"");if(t.source&&e.startsWith(t.source)){let n=e.substring(t.source.length+1);t.options[n]=i}}let r=[];if(t.source||r.push("An export source must be selected."),t.format||r.push("An export format must be selected."),r.length>0){let e=document.createElement("p");e.innerText="The following errors must be corrected:";let t=document.createElement("ul");for(let e=0;e{this.loadRecent("PREPEND");let e=document.createElement("p");e.innerText="Your export has been requested successfully and will update in the list below when it is ready.",this.modal.setTitle("Export requested").setBody([e,this.modalCloseBtn()]).show()}).catch(e=>{let t=[],n=document.createElement("p");n.innerText=e.response.data.error,t.push(n);for(const[n,r]of Object.entries(e.response.data.details)){let e=document.createElement("p");e.innerText=`${n}: ${r}`,t.push(e)}t.push(this.modalCloseBtn()),this.modal.setTitle("There were errors").setBody(t).show()})}loadRecent(e){this.adminController.log("Loading recent exports"),clearTimeout(this.loadRecentTimeout),nv.apiRequest({url:af.list}).then(t=>{let n=t.data.data||[];this.renderRecent(n,e);let r=n.length&&n.find(e=>"PENDING"===e.status||"RUNNING"===e.status)?2500:6e4;this.loadRecentTimeout=setTimeout(()=>{this.loadRecent()},r)})}renderRecent(e,t){this.adminController.log("Rendering recent exports",e);const n=e.map(e=>e.id);for(let n=0;nt.id===e[n].id);r?this.updateExisting(r.dom,e[n]):this.addNew(e[n],t)}for(let e=this.recent.length-1;e>=0;e--)n.includes(this.recent[e].id)||(this.recent[e].dom&&this.recent[e].dom.parentNode&&this.recent[e].dom.parentNode.removeChild(this.recent[e].dom),this.recent.splice(e,1));this.recent.length?this.dom.recentContainer.classList.remove("hidden"):this.dom.recentContainer.classList.add("hidden")}updateExisting(e,t){this.adminController.log("Updating existing export item",e,t);let n=e.querySelector("td.export-status");n.className=this.getStatusCellClasses(t).join(" "),n.innerHTML=this.getStatusCellHtml(t),e.querySelector("td.export-generated").innerHTML=this.getGeneratedCellHtml(t),e.querySelector("td.export-actions").innerHTML=this.getActionsCellHtml(t)}addNew(e,t){this.adminController.log("Adding new export item",e);let n=document.createElement("tr");n.appendChild(this.createCell({class:"export-source",value:e.source?.label})),n.appendChild(this.createCell({class:"export-options",value:`
${JSON.stringify(e.options,null,2)}
`})),n.appendChild(this.createCell({class:"export-format",value:e.format?.label})),n.appendChild(this.createCell({class:this.getStatusCellClasses(e),value:this.getStatusCellHtml(e)})),n.appendChild(this.createCell({class:"export-requested",value:e.created.formatted})),n.appendChild(this.createCell({class:"export-expires",value:e.expires.formatted})),n.appendChild(this.createCell({class:"export-generated",value:this.getGeneratedCellHtml(e)})),n.appendChild(this.createCell({class:["export-actions","actions"],value:this.getActionsCellHtml(e)})),e.dom=n,this.recent.push(e),"PREPEND"===t?this.dom.recent.prepend(n):this.dom.recent.append(n)}getStatusCellClasses(e){let t=["export-status"];return"COMPLETE"===e.status?t.push("table-success"):"FAILED"===e.status?t.push("table-danger"):t.push("table-warning"),t}getStatusCellHtml(e){return"FAILED"===e.status&&e.error?`${e.status}${e.error}`:e.status}getGeneratedCellHtml(e){return"COMPLETE"===e.status?e.modified.formatted:'—'}getActionsCellHtml(e){return e.download?.url?`Download`:""}createCell(e){let t=document.createElement("td");return e.class&&(Array.isArray(e.class)?t.classList.add(...e.class):t.classList.add(e.class)),e.value&&(t.innerHTML=e.value),t}modalCloseBtn(){let e=document.createElement("button");e.innerText="Close",e.style.marginRight="0.5em",e.classList.add("btn","btn-primary","btn-block"),e.addEventListener("click",e=>{e.preventDefault(),this.modal.hide()});let t=document.createElement("p");return t.appendChild(e),t}},ab="nails.admin.datetime.alternateTimezones",lb="timezone-channel-wrap",cb="ui-datepicker-timezones",ub=class{constructor(e){return this.adminController=e,this.processing=!1,this.checkAgain=[],this.catalogue=null,this.timezoneFooterObserver=null,this.timezoneFooterInput=null,this.timezoneFooterTimer=null,this.processingFooter=!1,this.adminController.onRefreshUi((e,t)=>{this.init(t)}),this}init(e){this.adminController.log("Initiating new date/time inputs");let t=$(["input.date:not(.datetime--processed)","input.datetime:not(.datetime--processed)","input.time:not(.datetime--processed)"].join(","),e).addClass("datetime--processed");this.adminController.log(`Found ${t.length} unprocessed items`),t.each((e,t)=>{t.classList.contains("date")?this.initDate(t):t.classList.contains("datetime")?this.initDateTime(t):t.classList.contains("time")&&this.initTime(t)})}initDate(e){let t=$(e),n=t.data("datepicker-dateformat")||"yy-mm-dd",r=t.data("datepicker-yearrange")||"c-100:c+10";t.datepicker({dateFormat:n,changeMonth:!0,changeYear:!0,yearRange:r})}initDateTime(e){let t=$(e),n={dateFormat:t.data("datepicker-dateformat")||"yy-mm-dd",timeFormat:t.data("datepicker-timeformat")||"HH:mm:ss",changeMonth:!0,changeYear:!0,yearRange:t.data("datepicker-yearrange")||"c-100:c+10"};t.is("[data-timezone-aware]")&&(this.wrapTimezoneChannel(t),n.beforeShow=()=>this.scheduleTimezoneFooter(e),n.onSelect=()=>this.scheduleTimezoneFooter(e),n.onChangeMonthYear=()=>this.scheduleTimezoneFooter(e),n.onClose=()=>this.unmountTimezoneFooter(),t.on("input.tz change.tz keyup.tz",()=>this.refreshTimezoneFooter(e))),t.datetimepicker(n)}initTime(e){let t=$(e),n=t.data("datepicker-timeformat")||"HH:mm";t.datetimepicker({timeOnly:!0,timeFormat:n})}wrapTimezoneChannel(e){if(e.parent().hasClass(lb))return;let t=e.closest(".input").find("small.timezone-channel").first();e.wrap($("",{class:lb})),t.length&&e.parent().append(t)}getCatalogue(){if(this.catalogue)return this.catalogue;let e=window.NAILS&&window.NAILS.TIMEZONE_CATALOGUE;return e&&"object"==typeof e?(this.catalogue=e,this.catalogue):{}}labelForZone(e){if("UTC"===e||"GMT"===e||"Etc/UTC"===e||"Etc/GMT"===e)return"UTC/GMT";let t=this.getCatalogue()[e]||e;return/Coordinated Universal Time/i.test(t)?"UTC/GMT":t}getAlternateZones(e){let t,n=e.getAttribute("data-user-timezone")||"";try{t=JSON.parse(window.localStorage.getItem(ab))}catch(e){t=null}return Array.isArray(t)||(t=[]),t.filter(e=>e&&e!==n)}setAlternateZones(e){window.localStorage.setItem(ab,JSON.stringify(e))}parseNaiveInZone(e,t){if(!e)return null;let n=String(e).match(/^(\d{4})-(\d{2})-(\d{2})[ T](\d{2}):(\d{2})(?::(\d{2}))?/);if(!n)return null;let r=parseInt(n[1],10),i=parseInt(n[2],10),o=parseInt(n[3],10),s=parseInt(n[4],10),a=parseInt(n[5],10),l=parseInt(n[6]||"0",10),c=Date.UTC(r,i-1,o,s,a,l),u=c;for(let e=0;e<3;e++){let e=this.formatToParts(new Date(u),t);if(!e)return null;u+=c-Date.UTC(parseInt(e.year,10),parseInt(e.month,10)-1,parseInt(e.day,10),parseInt(e.hour,10),parseInt(e.minute,10),parseInt(e.second,10))}return new Date(u)}formatToParts(e,t){try{let n=new Intl.DateTimeFormat("en-US",{timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hourCycle:"h23"}),r={};return n.formatToParts(e).forEach(({type:e,value:t})=>{r[e]=t}),"24"===r.hour&&(r.hour="00"),r}catch(e){return null}}formatInZone(e,t){let n=this.formatToParts(e,t);return n?[n.year,n.month,n.day].join("-")+" "+[n.hour,n.minute,n.second].join(":"):"—"}scheduleTimezoneFooter(e){window.clearTimeout(this.timezoneFooterTimer),this.timezoneFooterTimer=window.setTimeout(()=>{this.mountTimezoneFooter(e)},0)}mountTimezoneFooter(e){let t=$("#ui-datepicker-div");if(!t.length||!t.is(":visible"))return;this.processingFooter=!0,this.timezoneFooterInput=e,this.observeTimezoneFooter(e),this.destroyTimezoneSelect(t),t.find("."+cb).remove();let n=$(this.buildTimezoneFooterHtml(e)),r=t.find(".ui-timepicker-div");if(r.length)r.after(n);else{let e=t.find(".ui-datepicker-buttonpane");e.length?e.before(n):t.append(n)}this.bindTimezoneFooter(n,e),this.initTimezoneSelect(n),this.refreshTimezoneFooter(e),t.find(".ui-slider").off("slide.tz slidechange.tz").on("slide.tz slidechange.tz",()=>this.refreshTimezoneFooter(e)),t.find(".ui_tpicker_time_input").off("input.tz change.tz").on("input.tz change.tz",()=>this.refreshTimezoneFooter(e)),window.setTimeout(()=>{this.processingFooter=!1,this.fitElementInViewport($("#ui-datepicker-div"))},0)}observeTimezoneFooter(e){let t=document.getElementById("ui-datepicker-div");t&&(this.timezoneFooterObserver&&this.timezoneFooterObserver.disconnect(),this.timezoneFooterObserver=new MutationObserver(()=>{this.processingFooter||!t.querySelector("."+cb)&&$(t).is(":visible")&&this.scheduleTimezoneFooter(e)}),this.timezoneFooterObserver.observe(t,{childList:!0}))}unmountTimezoneFooter(){let e=$("#ui-datepicker-div");e.is(":visible")||(window.clearTimeout(this.timezoneFooterTimer),this.timezoneFooterTimer=null,this.timezoneFooterInput=null,this.processingFooter=!1,this.timezoneFooterObserver&&(this.timezoneFooterObserver.disconnect(),this.timezoneFooterObserver=null),this.destroyTimezoneSelect(e),e.find("."+cb).remove(),$(document).off("mousedown.tzSelect2"))}initTimezoneSelect(e){let t=e.find(".js-timezone-add");t.length&&$.fn.select2&&(t.select2({placeholder:"Add a timezone…",width:"100%",dropdownCssClass:"ui-datepicker-timezone-select2-drop"}),t.off("select2-open.tz").on("select2-open.tz",()=>{window.setTimeout(()=>{this.fitElementInViewport($("#select2-drop"))},0)}))}destroyTimezoneSelect(e){e.find(".js-timezone-add").each((e,t)=>{let n=$(t);n.data("select2")&&n.select2("destroy")})}buildTimezoneFooterHtml(e){let t=this.getAlternateZones(e),n=t.map(e=>{let t=this.escapeHtml(this.labelForZone(e)),n=this.escapeHtml(e);return`
\n ${t}\n —\n \n
`}).join("");return n||(n='

No comparison timezones. Add one to see this time in another zone.

'),`
\n
${n}
\n \n
`}buildTimezoneOptions(e,t){let n=this.getCatalogue(),r=e.getAttribute("data-user-timezone")||"",i=new Set(t.concat([r])),o=[""];return Object.keys(n).forEach(e=>{i.has(e)||o.push('")}),o.join("")}bindTimezoneFooter(e,t){e.on("mousedown",e=>{e.stopPropagation()}),$(document).off("mousedown.tzSelect2").on("mousedown.tzSelect2","#select2-drop, .select2-drop-mask",e=>{e.stopPropagation()}),e.on("change",".js-timezone-add",e=>{let n=e.target.value;if(!n)return;let r=this.getAlternateZones(t);-1===r.indexOf(n)&&(r.push(n),this.setAlternateZones(r)),this.mountTimezoneFooter(t)}),e.on("click",".js-timezone-remove",e=>{e.preventDefault(),e.stopPropagation();let n=$(e.currentTarget).attr("data-zone"),r=this.getAlternateZones(t).filter(e=>e!==n);this.setAlternateZones(r),this.mountTimezoneFooter(t)})}refreshTimezoneFooter(e){let t=$("#ui-datepicker-div").find("."+cb);if(!t.length)return;let n=e.getAttribute("data-user-timezone")||"UTC",r=this.parseNaiveInZone($(e).val(),n);t.find(".ui-datepicker-timezone").each((e,t)=>{let n=t.getAttribute("data-zone");$(t).find(".ui-datepicker-timezone__value").text(r?this.formatInZone(r,n):"—")})}escapeHtml(e){return String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}fitElementInViewport(e,t){if(!e||!e.length||!e.is(":visible"))return;t=t||8;let n=e[0].getBoundingClientRect(),r=0,i=0;n.right>window.innerWidth-t&&(r-=n.right-(window.innerWidth-t)),n.left+rwindow.innerHeight-t&&(i-=n.bottom-(window.innerHeight-t)),n.top+i!1),this}},hb=class{constructor(e){return this.adminController=e,this.adminController.onRefreshUi((e,t)=>{$(".js-admin-dynamic-table:not(.ready)").addClass("ready").each((e,t)=>{this.init($(t))})}),this}init(e){e.trigger("dynamic-table:starting");let t=e.find(".js-admin-dynamic-table__template"),n=e.find(".js-admin-dynamic-table__body"),r=e.data("data")||[],i=!0===e.data("confirm-delete");e.data("template",t.html()),e.data("index",0),i&&e.data("modal",this.adminController.getInstance("Modal").create()),n.empty(),this.bindEvents(e,n,i);for(let t=0,i=r.length;t(this.add(e,t,{},!0),!1)),e.on("click",".js-admin-dynamic-table__remove",t=>(t.preventDefault(),t.stopPropagation(),n?e.data("modal").setTitle(e.data("confirm-delete-title")||"Are you sure?").setBody(e.data("confirm-delete-body")||"Remove this item?").clearActions().addAction("OK",["btn-primary"],(n,r)=>{this.remove(e,$(t.currentTarget).closest("tr")),r.hide()}).addAction("Cancel",["btn-danger"],(e,t)=>{t.hide()}).show():this.remove(e,$(t.currentTarget).closest("tr")),!1)),this}add(e,t,n,r){(n=n||{}).index=e.data("index")||0;let i=$(Mustache.render(e.data("template").replace("<\\/script>","<\/script>"),n));return $("input[type=checkbox]",i).each((e,t)=>{let n=$(t);n[0].hasAttribute("data-dynamic-table-checked")&&n.prop("checked",n.attr("data-dynamic-table-checked"))}),$("select",i).each((e,t)=>{let n=$(t);if(n[0].hasAttribute("data-dynamic-table-value")){let e=n.data("dynamic-table-value");$('option[value="'+e+'"]',n).prop("selected",!0)}n.css("width","100%").select2()}),t.append(i),e.data("index",n.index+1),e.trigger("dynamic-table:add",[i]),e.find(".js-admin-sortable").trigger("sortable:sort"),r&&this.adminController.refreshUi(i),this}remove(e,t){return t.remove(),e.trigger("dynamic-table:remove"),e.find(".js-admin-sortable").trigger("sortable:sort"),this}},pb=class{constructor(e){return this.init(),this}init(e){return $(document).on("click",".fancybox",function(e){e.preventDefault(),e.stopPropagation();let t=$(this).attr("href"),n="iframe";"#"!==t.substr(0,1)?(/^.+.(jpg|png|gif)(\?.*)?$/.test(t)&&(n=null),t+=/\?/.test(t)?"&":"?",t+="isModal=true"):n=null;let r=$(this).data("height"),i=$(this).data("width");return $.fancybox.open({href:t,height:r,width:i,type:n,helpers:{overlay:{locked:!1}},beforeLoad:function(){$("body").addClass("noScroll modal-open")},afterClose:function(){$("body").removeClass("noScroll modal-open")}}),!1}),this}},fb=class{constructor(e){return e.onRefreshUi((e,t)=>{this.init(t)}),this}init(e){return $("td.actions",e).each((e,t)=>{if(!$(t).is(":visible"))return;let n=$("> .btn, > .btn-group",t),r=[];n.each((e,t)=>{r.push(t.offsetTop)}),Math.max(...r)!==Math.min(...r)?(n.addClass("btn-block"),n.filter(".btn-group").find("> .btn").addClass("btn-block")):(n.removeClass("btn-block"),n.filter(".btn-group").find("> .btn").removeClass("btn-block"))}),this}},gb=class{constructor(e){return this.helpers=[],e.onRefreshUi((e,t)=>{this.findNewHelpers(t),this.positionHelpers()}),this}findNewHelpers(e){return $("input[data-helper]:not(.input-helper--processed",e).addClass("input-helper--processed").each((e,t)=>{let n=$(t),r=n.data("helper"),i=$("
").html(r).insertAfter(n);this.helpers.push({helper:i,input:n})}),this}positionHelpers(){for(let e=0;e{this.matchHeight(t)}),$(window).on("resize",()=>{this.matchHeight()}),this}matchHeight(e){let t={},n=$(".match-height",e);return n.each(function(){$(this).height("");let e=$(this).data("height-group")||"default";void 0===t[e]&&(t[e]=0),$(this).height()>t[e]&&(t[e]=$(this).height())}),n.each(function(){let e=$(this).data("height-group")||"default";$(this).height(t[e])}),this}},vb=class{constructor(e){return this.adminController=e,this.modals=[],this.adminController.onRefreshUi(()=>{this.init()}),this}init(){return document.querySelectorAll(".modal:not(.modal--processed)").forEach(e=>{e.classList.add("modal--processed"),this.modals.push(new eb(this.adminController,{el:e}))}),this}create(){let e=new eb(this.adminController);return this.modals.push(e),e}};class yb{constructor(e,t,n){this.adminController=e,this.$trigger=$(t),this.$trigger.data("modalize")instanceof yb||(this.target_id=this.coalesce(this.$trigger.data("target-id"),n.target_id),this.title=this.coalesce(this.$trigger.data("title"),n.title),this.width=this.coalesce(this.$trigger.data("width"),n.width),this.max_height=this.coalesce(this.$trigger.data("max-height"),n.max_height),this.target=document.getElementById(this.target_id),this.target?($(this.target).wrapInner("
").hide(),this.$trigger.on("click",()=>(this.open(),!1))):this.adminController.warn('"'+this.target_id+'" is not a valid ID'))}open(){this.adminController.log("Opening modal"),this.adminController.destroyUi(this.target);let e=$(this.target).find("> div").detach();this.adminController.log(e),this.$modal=$("
").html(e).dialog({modal:!0,dialogClass:"no-close no-padding",closeOnEscape:!1,draggable:!1,title:this.title,width:this.width,maxHeight:this.max_height,position:{my:"center",at:"center",of:window},open:()=>{this.adminController.refreshUi(this.$modal)},buttons:{OK:()=>{this.close()}}})}close(e){this.adminController.log("Closing modal"),this.adminController.getInstance("Wysiwyg").destroy(this.$modal);let t=this.$modal.find("> div").detach();$(this.target).append(t),this.$modal.dialog("close").remove(),this.$modal=null}coalesce(){var e=arguments.length;for(let t=0;t{this.adminController.log("Initiating new modalize buttons"),this.init(t,n,r)}),this.adminController=e,this.adminController.onRefreshUi((e,t)=>{$(document).trigger("admin:js-admin-modalize",[".js-admin-modalize:not(.modalized)",{},t])}),this}init(e,t,n){return t=t||{},$(e,n).each((e,n)=>{$(n).add("modalized").data("modalize",new yb(this.adminController,n,t))}),this}},wb=class{constructor(e){return this.adminController=e,this.adminController.log("Constructing Notes"),this.modal=new eb(this.adminController,{minWidth:"600px",maxWidth:"600px"}),this.confirmModal=new eb(this.adminController,{minWidth:"400px",maxWidth:"400px"}),this.adminController.onRefreshUi(()=>{this.init()}),this}init(){this.adminController.log("Initialising Notes UI"),document.querySelectorAll(".js-admin-notes:not(.js-admin-notes--processed)").forEach(e=>{e.classList.add("js-admin-notes--processed");let t=document.createElement("span");t.classList.add("admin-notes__counter");let n=e.dataset.modelName,r=e.dataset.modelProvider,i=e.dataset.id,o=e.dataset.modalTitle||"Notes",s=e.dataset.showCount;s&&(e.append(t),this.setCounter(t,"...")),e.addEventListener("click",e=>{e.preventDefault(),e.stopPropagation(),this.modal.setTitle(o).show(),this.load(n,r,i,s,t)})});let e={};return document.querySelectorAll('.js-admin-notes:not(.js-admin-notes--count-processed[data-show-count="true"])').forEach(t=>{t.classList.add("js-admin-notes--count-processed");let n=t.dataset.modelName,r=t.dataset.modelProvider,i=t.dataset.id;Object.prototype.hasOwnProperty.call(e,r)||(e[r]={}),Object.prototype.hasOwnProperty.call(e[r],n)||(e[r][n]=[]),e[r][n].push(i)}),Object.entries(e).length>0&&this.countNotes(e).done(e=>{for(const[t,n]of Object.entries(e.data))for(const[e,r]of Object.entries(n))for(const[n,i]of Object.entries(r))document.querySelectorAll(`.js-admin-notes.js-admin-notes--processed[data-model-name="${e}"][data-model-provider="${t}"][data-id="${n}"]`).forEach(e=>{e.querySelectorAll(".admin-notes__counter").forEach(e=>{this.setCounter(e,i)})})}),this}load(e,t,n,r,i){this.modal.setBody("Loading...").setActions(null),this.loadNotes(e,t,n).done(o=>{let s=document.createElement("ul");s.classList.add("admin-notes","list-unstyled");let a=document.createElement("li");if(a.classList.add("admin-notes__empty"),a.innerText="No notes recorded for this item",s.append(a),o.data.length){a.classList.add("hidden");for(let e=0,t=o.data.length;e{const t=s.querySelector(".admin-notes__load-more");if(t&&t.remove(),!e)return;const n=document.createElement("li");n.classList.add("admin-notes__load-more");const o=document.createElement("button");o.classList.add("btn","btn-block","btn-default"),o.innerText="Load more",o.addEventListener("click",()=>{o.disabled=!0,o.innerText="Loading...",this.loadMoreNotes(e).done(e=>{for(let t=0,o=e.data.length;t{o.isConnected&&(o.disabled=!1,o.innerText="Load more")})}),n.append(o),s.append(n)};l(o.meta?.pagination?.next||null);let c=document.createElement("textarea"),u=document.createElement("button");c.placeholder="Enter a note",c.style.width="100%",c.style.height="100px",c.addEventListener("keyup",()=>{u.disabled=c.value.length<=0}),u.classList.add("btn","btn-block","btn-primary"),u.innerText="Add Note",u.disabled=!0,u.addEventListener("click",()=>{c.disabled=!0,c.style.background="#f9f9f9",u.innerText="Saving",u.disabled=!0,this.saveNote(e,t,n,c.value).done(e=>{c.value="";let t=this.renderMessageItem(s,e.data.id,e.data.message,e.data.user,e.data.date,r,i);s.querySelector(".admin-notes__empty").classList.add("hidden"),s.prepend(t),t.classList.add("admin-notes__note--new"),r&&this.setCounter(i,s.querySelectorAll(".admin-notes__note").length),t.scrollIntoView({behavior:"smooth"})}).always(()=>{c.disabled=!1,c.style.background="#ffffff",u.innerText="Add Note",u.disabled=c.value.length<=0})}),this.modal.setBody(s).setActions([c,u])})}countNotes(e){let t=new $.Deferred;return nv.apiRequest({url:lf.count,method:"POST",data:{dataBundle:e}}).then(e=>{t.resolve(e.data)}).catch(e=>{this.showError("Failed to count notes",e.response.data),t.reject(e.response.data)}),t.promise()}loadNotes(e,t,n){let r=new $.Deferred;return nv.apiRequest({url:lf.list,data:{model_name:e,model_provider:t,item_id:n}}).then(e=>{r.resolve(e.data)}).catch(e=>{this.showError("Failed to load notes",e.response.data),r.reject(e.response.data)}),r.promise()}loadMoreNotes(e){let t=new $.Deferred;const n=new URL(e),r={};return n.searchParams.forEach((e,t)=>{r[t]=e}),nv.apiRequest({url:lf.list,data:r}).then(e=>{t.resolve(e.data)}).catch(e=>{this.showError("Failed to load notes",e.response.data),t.reject(e.response.data)}),t.promise()}saveNote(e,t,n,r){let i=new $.Deferred;return nv.apiRequest({url:lf.create,method:"POST",data:{model_name:e,model_provider:t,item_id:n,message:r}}).then(e=>{i.resolve(e.data)}).catch(e=>{this.showError("Failed to save note",e.response.data),i.reject(e.response.data)}),i.promise()}deleteNote(e){let t=new $.Deferred;return nv.apiRequest({url:lf.delete(e),method:"DELETE"}).then(e=>{t.resolve(e.data)}).catch(e=>{this.showError("Failed to delete note",e.response.data),t.reject(e.response.data)}),t.promise()}renderMessageItem(e,t,n,r,i,o,s){let a=document.createElement("li");a.classList.add("admin-notes__note");let l=document.createElement("div");l.classList.add("admin-notes__note__message"),l.innerHTML=n;let c=document.createElement("button");c.classList.add("admin-notes__note__delete"),c.innerHTML="×";let u=document.createElement("div");u.classList.add("admin-notes__note__meta");let d=document.createElement("span");d.classList.add("admin-notes__note__meta__user"),d.innerHTML=r.id?`${r.first_name} ${r.last_name}`:"Unknown User";let h=document.createElement("span");return h.classList.add("admin-notes__note__meta__date"),h.innerHTML=i,c.addEventListener("click",n=>{n.preventDefault(),n.stopPropagation(),this.confirmModal.setTitle("Delete Note").setBody("Are you sure you want to delete this note?").clearActions().addAction("Cancel",["btn-default"],()=>{this.confirmModal.hide()}).addAction("Delete",["btn-danger"],()=>{this.confirmModal.hide(),this.deleteNote(t).done(()=>{a.classList.add("admin-notes__note--removing"),a.addEventListener("animationend",()=>{a.remove();let t=e.querySelectorAll(".admin-notes__note").length;o&&this.setCounter(s,t),0===t&&e.querySelector(".admin-notes__empty").classList.remove("hidden")},{once:!0})})}),this.confirmModal.actionButtons[0].style.marginRight="0.5rem",this.confirmModal.show()}),u.append(d,h),a.append(l,c,u),a}setCounter(e,t){return e.innerHTML=t||"",this}showError(e,t){this.adminController.error(t.error);let n=t.error||t.message||"An unknown error occurred",r=document.createElement("div");return r.classList.add("alert","alert-danger"),r.innerHTML=`

${e}

${n}

`,this.modal.setBody(r),this}};var xb=Object.prototype.toString,_b=Array.isArray||function(e){return"[object Array]"===xb.call(e)};function Sb(e){return"function"==typeof e}function Eb(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Cb(e,t){return null!=e&&"object"==typeof e&&t in e}function Tb(e,t){return null!=e&&"object"!=typeof e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var kb=RegExp.prototype.test,Ob=/\S/;function Ab(e){return!function(e,t){return kb.call(e,t)}(Ob,e)}var Rb={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="},Pb=/\s*/,Ib=/\s+/,Nb=/\s*=/,Lb=/\s*\}/,Mb=/#|\^|\/|>|\{|&|=|!/;function $b(e){this.string=e,this.tail=e,this.pos=0}function Db(e,t){this.view=e,this.cache={".":this.view},this.parent=t}function zb(){this.templateCache={_cache:{},set:function(e,t){this._cache[e]=t},get:function(e){return this._cache[e]},clear:function(){this._cache={}}}}$b.prototype.eos=function(){return""===this.tail},$b.prototype.scan=function(e){var t=this.tail.match(e);if(!t||0!==t.index)return"";var n=t[0];return this.tail=this.tail.substring(n.length),this.pos+=n.length,n},$b.prototype.scanUntil=function(e){var t,n=this.tail.search(e);switch(n){case-1:t=this.tail,this.tail="";break;case 0:t="";break;default:t=this.tail.substring(0,n),this.tail=this.tail.substring(n)}return this.pos+=t.length,t},Db.prototype.push=function(e){return new Db(e,this)},Db.prototype.lookup=function(e){var t,n=this.cache;if(n.hasOwnProperty(e))t=n[e];else{for(var r,i,o,s=this,a=!1;s;){if(e.indexOf(".")>0)for(r=s.view,i=e.split("."),o=0;null!=r&&o0?i[i.length-1][4]:n;break;default:r.push(t)}return n}(function(e){for(var t,n,r=[],i=0,o=e.length;i"===s?a=this.renderPartial(o,t,n,i):"&"===s?a=this.unescapedValue(o,t):"name"===s?a=this.escapedValue(o,t,i):"text"===s&&(a=this.rawValue(o)),void 0!==a&&(l+=a);return l},zb.prototype.renderSection=function(e,t,n,r,i){var o=this,s="",a=t.lookup(e[1]);if(a){if(_b(a))for(var l=0,c=a.length;l0||!n)&&(i[o]=r+i[o]);return i.join("\n")},zb.prototype.renderPartial=function(e,t,n,r){if(n){var i=this.getConfigTags(r),o=Sb(n)?n(e[1]):n[e[1]];if(null!=o){var s=e[6],a=e[5],l=e[4],c=o;0==a&&l&&(c=this.indentPartial(o,l,s));var u=this.parse(c,i);return this.renderTokens(u,t,n,c,r)}}},zb.prototype.unescapedValue=function(e,t){var n=t.lookup(e[1]);if(null!=n)return n},zb.prototype.escapedValue=function(e,t,n){var r=this.getConfigEscape(n)||Fb.escape,i=t.lookup(e[1]);if(null!=i)return"number"==typeof i&&r===Fb.escape?String(i):r(i)},zb.prototype.rawValue=function(e){return e[1]},zb.prototype.getConfigTags=function(e){return _b(e)?e:e&&"object"==typeof e?e.tags:void 0},zb.prototype.getConfigEscape=function(e){return e&&"object"==typeof e&&!_b(e)?e.escape:void 0};var Fb={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(e){jb.templateCache=e},get templateCache(){return jb.templateCache}},jb=new zb;Fb.clearCache=function(){return jb.clearCache()},Fb.parse=function(e,t){return jb.parse(e,t)},Fb.render=function(e,t,n,r){if("string"!=typeof e)throw new TypeError('Invalid template! Template should be a "string" but "'+(_b(i=e)?"array":typeof i)+'" was given as the first argument for mustache#render(template, view, partials)');var i;return jb.render(e,t,n,r)},Fb.escape=function(e){return String(e).replace(/[&<>"'`=\/]/g,function(e){return Rb[e]})},Fb.Scanner=$b,Fb.Context=Db,Fb.Writer=zb;const Ub=Fb;class Bb{constructor(e,t,n){return this.adminController=e,this.$element=t,this.index=0,this.trigger("constructing"),this.$target=$(".js-admin-repeater__target",this.$element),this.$add=$(".js-admin-repeater__add",this.$element),this.template=$(".js-admin-repeater__template",this.$element).html(),$(".js-admin-repeater__template",this.$element).remove(),this.bindEvents(),this.load(n||[]),this.trigger("constructed"),this}bindEvents(){this.trigger("binding"),this.$add.on("click",e=>(this.add(),!1)),this.$target.on("click",".js-admin-repeater__remove",e=>(this.remove($(e.currentTarget)),!1)),this.$element.on("js-admin-repeater:load",(e,t)=>{this.load(t)}).on("js-admin-repeater:clear",e=>{this.reset()}),this.trigger("bound")}add(e){(e=e||{}).index=this.index,this.trigger("adding",e);let t=$("
  • ").addClass("js-admin-repeater__target__item"),n=this.template;n=Ub.render(n,e),t.html(n),$("input[type=checkbox]",t).each((e,t)=>{let n=$(t);n[0].hasAttribute("data-repeater-checked")&&n.prop("checked",n.attr("data-repeater-checked"))}),$("select",t).each((e,t)=>{let n=$(t);if(n[0].hasAttribute("data-repeater-value")){let e=n.data("repeater-value");$('option[value="'+e+'"]',n).prop("selected",!0)}n.css("width","100%").select2()}),this.$target.append(t),this.index++,this.$element.find(".js-admin-sortable").trigger("sortable:sort"),this.noRefresh||this.adminController.refreshUi(t),this.trigger("added")}remove(e){let t=e.closest(".js-admin-repeater__target__item");this.trigger("removing",t),t.remove(),this.$element.find(".js-admin-sortable").trigger("sortable:sort"),this.trigger("removed",t)}load(e){this.trigger("loading",e),this.noRefresh=!0;for(let t in e)e.hasOwnProperty(t)&&this.add(e[t]);this.noRefresh=!1,this.adminController.refreshUi(this.$element),this.trigger("loaded",e)}reset(){this.trigger("resetting"),$(".js-admin-repeater__target__item",this.$target).remove(),this.index=0,this.trigger("reset")}trigger(e,t){let n={instance:this,data:t};this.adminController.log("Triggering Event: "+e,n)}}const Hb=class{constructor(e){return this.adminController=e,this.adminController.onRefreshUi((e,t)=>{this.init(t)}),this}init(e){return $(".js-admin-repeater:not(.js-admin-repeater--processed)",e).addClass("js-admin-repeater--processed").each((e,t)=>{let n=$(t),r=new Bb(this.adminController,n,n.data("data"));n.data("js-admin-repeater-instance",r)}),this}};class qb{constructor(e,t,n){if(this.revealer=e,this.adminController=e.adminController,this.group=t,this.isRadio="radio"===n.type,this.isRadio){let e=n.name,r=n.form||document;this.$control=$('input[type="radio"]',r).filter(function(){return this.name===e&&$(this).data("revealer")===t})}else this.$control=$(n);this.$control.on("change.revealer",()=>{this.revealer.evaluateForGroup(this.group)})}getControlValue(){let e;if(this.isRadio){let t=this.$control.filter(":checked");e=t.length?t.val():""}else e=this.$control.is("[type=checkbox]")?this.$control.is(":checked"):this.$control.val();return e}destroy(){this.$control.off("change.revealer"),this.$control.removeClass("revealer--processed")}}class Vb{constructor(e,t){this.revealer=e,this.$element=$(t),this.delimiter=this.$element.data("reveal-delimiter")||",",this.groupNames=(t.getAttribute("data-revealer")||"").split(this.delimiter).map(e=>e.trim()).filter(Boolean),this.values=t.hasAttribute("data-reveal-on")?t.getAttribute("data-reveal-on"):null,null!==this.values&&(this.values=this.values.split(this.delimiter).map(e=>e.trim())),this.bangValues=t.hasAttribute("data-reveal-not-on")?t.getAttribute("data-reveal-not-on"):null,null!==this.bangValues&&(this.bangValues=this.bangValues.split(this.delimiter).map(e=>e.trim()))}listensTo(e){return this.groupNames.indexOf(e)>-1}sync(){let e=!1;for(let t=0;t-1||!n&&!t&&[!1,0,"false","0"].indexOf(i)>-1||n&&t&&-1===[!0,1,"true","1"].indexOf(i)||n&&!t&&-1===[!1,0,"false","0"].indexOf(i))return!0}else{if(!n&&i==t)return!0;if(n&&i!=t)return!0}}}return!1}show(){return this.$element.show(),this}hide(){return this.$element.hide(),this}destroy(){this.$element.removeClass("revealer--processed"),this.show()}}const Wb=class{constructor(e){return this.groups={},this.elements=[],this.adminController=e,this.adminController.onRefreshUi((e,t)=>{this.init(t)}).onDestroyUi((e,t)=>{this.destroy(t)}),this}init(e){let t=[".revealer--processed","[data-reveal-on]","[data-reveal-not-on]"],n="[data-revealer]";for(let e=0;e{let n=$(t).data("revealer");if(void 0===this.groups[n])this.groups[n]=new qb(this,n,t);else{if("radio"===t.type&&this.groups[n].isRadio)return;this.adminController.warn(`Duplicate group "${n}"`)}}),this.findElements(e),this.elements.forEach(e=>e.sync()),this}findElements(e){return $("[data-revealer]",e).filter(":not(.revealer--processed)").filter("[data-reveal-on], [data-reveal-not-on]").filter(":not(input[type=checkbox], select)").addClass("revealer--processed").each((e,t)=>{this.elements.push(new Vb(this,t))}),this}evaluateForGroup(e){this.adminController.log("Toggling elements for group",e);for(let t=0;te.groupNames.every(e=>void 0===this.groups[e])?(e.destroy(),!1):(e.sync(),!0))}},Yb=class{constructor(e){let t,n,r;return t=$("div.field.error:visible"),t.length?r=$(t.get(0)):(n=$("div.system-alert.error:visible"),r=$(n.get(0))),r.length&&setTimeout(()=>{$.scrollTo(r,"fast",{axis:"y",offset:{top:-60}})},750),this}},Xb=class{constructor(e){return e.onRefreshUi((e,t)=>{this.init(t)}),this}init(e){var t;return $("div.search select:not(.processed), div.search input[type=checkbox]:not(.processed)",e).addClass("processed").on("change",function(){var e=$(this).closest("form");clearTimeout(t),t=setTimeout(function(){e.submit()},500)}),$("div.search form:not(.processed)",e).addClass("processed").on("submit",function(){$(this).closest("div.search").find("div.mask").show()}),$("div.search .filterOption input[type=checkbox]:not(.processed)",e).addClass("processed").on("change",function(){$(this).is(":checked")?$(this).closest(".filterOption").addClass("checked"):$(this).closest(".filterOption").removeClass("checked")}),$("div.search .filterOption input[type=checkbox]:not(.processed)",e).addClass("processed").each(function(){$(this).is(":checked")?$(this).closest(".filterOption").addClass("checked"):$(this).closest(".filterOption").removeClass("checked")}),this}};class Gb{constructor(e,t,n){this.$input=$(t),this.adminController=e,this.$input.data("searcher")instanceof Gb||(this.api=this.coalesce(this.$input.data("api"),n.api),this.isMultiple=this.coalesce(this.$input.data("multiple"),n.isMultiple,!1),this.isSortable=this.coalesce(this.$input.data("sortable"),n.isSortable,!1),this.isClearable=this.coalesce(this.$input.data("clearable"),n.isClearable,!0),this.placeholder=this.coalesce(this.$input.data("placeholder"),n.placeholder,"Search for an item"),this.minLength=this.coalesce(this.$input.data("min-length"),n.minLength,2),this.getParam=this.coalesce(this.$input.data("get-param"),n.getParam,"search"),this.formatter=this.coalesce(n.formatter,null),this.propId=this.coalesce(this.$input.data("prop-id"),n.propId,"id"),this.propLabel=this.coalesce(this.$input.data("prop-label"),n.propLabel,"label"),this.api?(this.$input.removeClass("js-searcher").select2({placeholder:this.placeholder,minimumInputLength:this.minLength,multiple:this.isMultiple,allowClear:this.isClearable,ajax:{url:window.SITE_URL+"api/"+this.api,dataType:"json",quietMillis:250,data:e=>{let t={};return t[this.getParam]=e,t},results:e=>({results:this.formatResults(e.data)}),cache:!0},initSelection:(e,t)=>{let n=$(e).val();""!==n&&this.isMultiple?$.ajax({url:window.SITE_URL+"api/"+this.api+"?ids="+n,dataType:"json"}).done(e=>{t(this.formatResults(e.data))}):""!==n&&$.ajax({url:window.SITE_URL+"api/"+this.api+"/"+n,dataType:"json"}).done(e=>{t(this.formatResult(e.data))})}}),this.isSortable&&this.$input.select2("container").find("ul.select2-choices").sortable({containment:"parent",start:()=>{this.$input.select2("onSortStart")},update:()=>{this.$input.select2("onSortEnd")}})):this.adminController.warn("Element is configured as a Searcher but no api has been defined",this.$input))}formatResults(e){let t=[];for(let n=0;n{this.adminController.log("Initiating new searchers"),this.init(t,n,r)}),this.adminController.onRefreshUi((e,t)=>{$(document).trigger("admin:js-searcher",[".js-searcher:not(.js-searcher--processed)",{},t])}),this}init(e,t,n){return t=t||{},$(e,n).each((e,n)=>{$(n).add("js-searcher--processed").data("searcher",new Gb(this.adminController,n,t))}),this}};class Jb{constructor(e,t){this.adminController=e,this.$input=$(t),this.isMultiple=this.$input.data("multiple"),this.isClearable=this.$input.data("clearable"),this.placeholder=this.$input.data("placeholder")||"Search for an item",this.$input.select2({placeholder:this.placeholder,multiple:this.isMultiple,allowClear:this.isClearable,width:this.$input.closest("div.field").length?"100%":"off"})}destroy(){this.$input.select2("destroy")}}const Zb=class{constructor(e){return this.adminController=e,this.$shell=$('
  • ").addClass("js-admin-repeater__target__item"),n=this.template;n=Ub.render(n,e),t.html(n),$("input[type=checkbox]",t).each((e,t)=>{let n=$(t);n[0].hasAttribute("data-repeater-checked")&&n.prop("checked",n.attr("data-repeater-checked"))}),$("select",t).each((e,t)=>{let n=$(t);if(n[0].hasAttribute("data-repeater-value")){let e=n.data("repeater-value");$('option[value="'+e+'"]',n).prop("selected",!0)}n.css("width","100%").select2()}),this.$target.append(t),this.index++,this.$element.find(".js-admin-sortable").trigger("sortable:sort"),this.noRefresh||this.adminController.refreshUi(t),this.trigger("added")}remove(e){let t=e.closest(".js-admin-repeater__target__item");this.trigger("removing",t),t.remove(),this.$element.find(".js-admin-sortable").trigger("sortable:sort"),this.trigger("removed",t)}load(e){this.trigger("loading",e),this.noRefresh=!0;for(let t in e)e.hasOwnProperty(t)&&this.add(e[t]);this.noRefresh=!1,this.adminController.refreshUi(this.$element),this.trigger("loaded",e)}reset(){this.trigger("resetting"),$(".js-admin-repeater__target__item",this.$target).remove(),this.index=0,this.trigger("reset")}trigger(e,t){let n={instance:this,data:t};this.adminController.log("Triggering Event: "+e,n)}}const Hb=class{constructor(e){return this.adminController=e,this.adminController.onRefreshUi((e,t)=>{this.init(t)}),this}init(e){return $(".js-admin-repeater:not(.js-admin-repeater--processed)",e).addClass("js-admin-repeater--processed").each((e,t)=>{let n=$(t),r=new Bb(this.adminController,n,n.data("data"));n.data("js-admin-repeater-instance",r)}),this}};class qb{constructor(e,t,n){if(this.revealer=e,this.adminController=e.adminController,this.group=t,this.isRadio="radio"===n.type,this.isRadio){let e=n.name,r=n.form||document;this.$control=$('input[type="radio"]',r).filter(function(){return this.name===e&&$(this).data("revealer")===t})}else this.$control=$(n);this.$control.on("change.revealer",()=>{this.revealer.evaluateForGroup(this.group)})}getControlValue(){let e;if(this.isRadio){let t=this.$control.filter(":checked");e=t.length?t.val():""}else e=this.$control.is("[type=checkbox]")?this.$control.is(":checked"):this.$control.val();return e}destroy(){this.$control.off("change.revealer"),this.$control.removeClass("revealer--processed")}}class Vb{constructor(e,t){this.revealer=e,this.$element=$(t),this.delimiter=this.$element.data("reveal-delimiter")||",",this.groupNames=(t.getAttribute("data-revealer")||"").split(this.delimiter).map(e=>e.trim()).filter(Boolean),this.values=t.hasAttribute("data-reveal-on")?t.getAttribute("data-reveal-on"):null,null!==this.values&&(this.values=this.values.split(this.delimiter).map(e=>e.trim())),this.bangValues=t.hasAttribute("data-reveal-not-on")?t.getAttribute("data-reveal-not-on"):null,null!==this.bangValues&&(this.bangValues=this.bangValues.split(this.delimiter).map(e=>e.trim()))}listensTo(e){return this.groupNames.indexOf(e)>-1}sync(){let e=!1;for(let t=0;t-1||!n&&!t&&[!1,0,"false","0"].indexOf(i)>-1||n&&t&&-1===[!0,1,"true","1"].indexOf(i)||n&&!t&&-1===[!1,0,"false","0"].indexOf(i))return!0}else{if(!n&&i==t)return!0;if(n&&i!=t)return!0}}}return!1}show(){return this.$element.show(),this}hide(){return this.$element.hide(),this}destroy(){this.$element.removeClass("revealer--processed"),this.show()}}const Wb=class{constructor(e){return this.groups={},this.elements=[],this.adminController=e,this.adminController.onRefreshUi((e,t)=>{this.init(t)}).onDestroyUi((e,t)=>{this.destroy(t)}),this}init(e){let t=[".revealer--processed","[data-reveal-on]","[data-reveal-not-on]"],n="[data-revealer]";for(let e=0;e{let n=$(t).data("revealer");if(void 0===this.groups[n])this.groups[n]=new qb(this,n,t);else{if("radio"===t.type&&this.groups[n].isRadio)return;this.adminController.warn(`Duplicate group "${n}"`)}}),this.findElements(e),this.elements.forEach(e=>e.sync()),this}findElements(e){return $("[data-revealer]",e).filter(":not(.revealer--processed)").filter("[data-reveal-on], [data-reveal-not-on]").filter(":not(input[type=checkbox], select)").addClass("revealer--processed").each((e,t)=>{this.elements.push(new Vb(this,t))}),this}evaluateForGroup(e){this.adminController.log("Toggling elements for group",e);for(let t=0;te.groupNames.every(e=>void 0===this.groups[e])?(e.destroy(),!1):(e.sync(),!0))}},Yb=class{constructor(e){let t,n,r;return t=$("div.field.error:visible"),t.length?r=$(t.get(0)):(n=$("div.system-alert.error:visible"),r=$(n.get(0))),r.length&&setTimeout(()=>{$.scrollTo(r,"fast",{axis:"y",offset:{top:-60}})},750),this}},Xb=class{constructor(e){return e.onRefreshUi((e,t)=>{this.init(t)}),this}init(e){var t;return $("div.search select:not(.processed), div.search input[type=checkbox]:not(.processed)",e).addClass("processed").on("change",function(){var e=$(this).closest("form");clearTimeout(t),t=setTimeout(function(){e.submit()},500)}),$("div.search form:not(.processed)",e).addClass("processed").on("submit",function(){$(this).closest("div.search").find("div.mask").show()}),$("div.search .filterOption input[type=checkbox]:not(.processed)",e).addClass("processed").on("change",function(){$(this).is(":checked")?$(this).closest(".filterOption").addClass("checked"):$(this).closest(".filterOption").removeClass("checked")}),$("div.search .filterOption input[type=checkbox]:not(.processed)",e).addClass("processed").each(function(){$(this).is(":checked")?$(this).closest(".filterOption").addClass("checked"):$(this).closest(".filterOption").removeClass("checked")}),this}};class Gb{constructor(e,t,n){this.$input=$(t),this.adminController=e,this.$input.data("searcher")instanceof Gb||(this.api=this.coalesce(this.$input.data("api"),n.api),this.isMultiple=this.coalesce(this.$input.data("multiple"),n.isMultiple,!1),this.isSortable=this.coalesce(this.$input.data("sortable"),n.isSortable,!1),this.isClearable=this.coalesce(this.$input.data("clearable"),n.isClearable,!0),this.placeholder=this.coalesce(this.$input.data("placeholder"),n.placeholder,"Search for an item"),this.minLength=this.coalesce(this.$input.data("min-length"),n.minLength,2),this.getParam=this.coalesce(this.$input.data("get-param"),n.getParam,"search"),this.formatter=this.coalesce(n.formatter,null),this.propId=this.coalesce(this.$input.data("prop-id"),n.propId,"id"),this.propLabel=this.coalesce(this.$input.data("prop-label"),n.propLabel,"label"),this.api?(this.$input.removeClass("js-searcher").select2({placeholder:this.placeholder,minimumInputLength:this.minLength,multiple:this.isMultiple,allowClear:this.isClearable,ajax:{url:window.SITE_URL+"api/"+this.api,dataType:"json",quietMillis:250,data:e=>{let t={};return t[this.getParam]=e,t},results:e=>({results:this.formatResults(e.data)}),cache:!0},initSelection:(e,t)=>{let n=$(e).val();""!==n&&this.isMultiple?$.ajax({url:window.SITE_URL+"api/"+this.api+"?ids="+n,dataType:"json"}).done(e=>{t(this.formatResults(e.data))}):""!==n&&$.ajax({url:window.SITE_URL+"api/"+this.api+"/"+n,dataType:"json"}).done(e=>{t(this.formatResult(e.data))})}}),this.isSortable&&this.$input.select2("container").find("ul.select2-choices").sortable({containment:"parent",start:()=>{this.$input.select2("onSortStart")},update:()=>{this.$input.select2("onSortEnd")}})):this.adminController.warn("Element is configured as a Searcher but no api has been defined",this.$input))}formatResults(e){let t=[];for(let n=0;n{this.adminController.log("Initiating new searchers"),this.init(t,n,r)}),this.adminController.onRefreshUi((e,t)=>{$(document).trigger("admin:js-searcher",[".js-searcher:not(.js-searcher--processed)",{},t])}),this}init(e,t,n){return t=t||{},$(e,n).each((e,n)=>{$(n).add("js-searcher--processed").data("searcher",new Gb(this.adminController,n,t))}),this}};class Jb{constructor(e,t){this.adminController=e,this.$input=$(t),this.isMultiple=this.$input.data("multiple"),this.isClearable=this.$input.data("clearable"),this.placeholder=this.$input.data("placeholder")||"Search for an item",this.$input.select2({placeholder:this.placeholder,multiple:this.isMultiple,allowClear:this.isClearable,width:this.$input.closest("div.field").length?"100%":"off"})}destroy(){this.$input.select2("destroy")}}const Zb=class{constructor(e){return this.adminController=e,this.$shell=$('