From 27958421457e77b21e41f156e8d47aad5aed0c21 Mon Sep 17 00:00:00 2001 From: moisbo Date: Mon, 27 Nov 2023 23:46:11 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20soil-and?= =?UTF-8?q?-land/socrates-web@0f9c505c8bf864293e208aa5b6ef79d8a930d2e8=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CNAME | 1 + assets/index-5a25d988.css | 1 + assets/index-9bafb651.js | 96 ++++++++++++++++++++++++++++++ favicon.ico | Bin 0 -> 5430 bytes images/edit_help.png | Bin 0 -> 3330 bytes images/ife_main_colour-300x59.jpg | Bin 0 -> 6740 bytes index.html | 16 +++++ parameters.json | 51 ++++++++++++++++ sample-data-20-year.json | 64 ++++++++++++++++++++ spa_github.js | 20 +++++++ 10 files changed, 249 insertions(+) create mode 100644 CNAME create mode 100644 assets/index-5a25d988.css create mode 100644 assets/index-9bafb651.js create mode 100644 favicon.ico create mode 100644 images/edit_help.png create mode 100644 images/ife_main_colour-300x59.jpg create mode 100644 index.html create mode 100644 parameters.json create mode 100644 sample-data-20-year.json create mode 100644 spa_github.js diff --git a/CNAME b/CNAME new file mode 100644 index 0000000..587e5be --- /dev/null +++ b/CNAME @@ -0,0 +1 @@ +socrates-soil.net \ No newline at end of file diff --git a/assets/index-5a25d988.css b/assets/index-5a25d988.css new file mode 100644 index 0000000..3193484 --- /dev/null +++ b/assets/index-5a25d988.css @@ -0,0 +1 @@ +@charset "UTF-8";:root{--ep-color-primary-rgb: 0, 128, 0;--ep-color-success-rgb: 33, 186, 69;--ep-color-warning-rgb: 242, 113, 28;--ep-color-danger-rgb: 219, 40, 40;--ep-color-error-rgb: 219, 40, 40;--ep-color-info-rgb: 37, 82, 180;--ep-font-size-extra-large: 20px;--ep-font-size-large: 18px;--ep-font-size-medium: 16px;--ep-font-size-base: 14px;--ep-font-size-small: 13px;--ep-font-size-extra-small: 12px;--ep-font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;--ep-font-weight-primary: 500;--ep-font-line-height-primary: 24px;--ep-index-normal: 1;--ep-index-top: 1000;--ep-index-popper: 2000;--ep-border-radius-base: 4px;--ep-border-radius-small: 2px;--ep-border-radius-round: 20px;--ep-border-radius-circle: 100%;--ep-transition-duration: .3s;--ep-transition-duration-fast: .2s;--ep-transition-function-ease-in-out-bezier: cubic-bezier(.645, .045, .355, 1);--ep-transition-function-fast-bezier: cubic-bezier(.23, 1, .32, 1);--ep-transition-all: all var(--ep-transition-duration) var(--ep-transition-function-ease-in-out-bezier);--ep-transition-fade: opacity var(--ep-transition-duration) var(--ep-transition-function-fast-bezier);--ep-transition-md-fade: transform var(--ep-transition-duration) var(--ep-transition-function-fast-bezier), opacity var(--ep-transition-duration) var(--ep-transition-function-fast-bezier);--ep-transition-fade-linear: opacity var(--ep-transition-duration-fast) linear;--ep-transition-border: border-color var(--ep-transition-duration-fast) var(--ep-transition-function-ease-in-out-bezier);--ep-transition-box-shadow: box-shadow var(--ep-transition-duration-fast) var(--ep-transition-function-ease-in-out-bezier);--ep-transition-color: color var(--ep-transition-duration-fast) var(--ep-transition-function-ease-in-out-bezier);--ep-component-size-large: 40px;--ep-component-size: 32px;--ep-component-size-small: 24px;color-scheme:light;--ep-color-white: #ffffff;--ep-color-black: #000000;--ep-color-primary: green;--ep-color-primary-light-3: #4da64d;--ep-color-primary-light-5: #80c080;--ep-color-primary-light-7: #b3d9b3;--ep-color-primary-light-8: #cce6cc;--ep-color-primary-light-9: #e6f2e6;--ep-color-primary-dark-2: #006600;--ep-color-success: #21ba45;--ep-color-success-light-3: #64cf7d;--ep-color-success-light-5: #90dda2;--ep-color-success-light-7: #bceac7;--ep-color-success-light-8: #d3f1da;--ep-color-success-light-9: #e9f8ec;--ep-color-success-dark-2: #1a9537;--ep-color-warning: #f2711c;--ep-color-warning-light-3: #f69c60;--ep-color-warning-light-5: #f9b88e;--ep-color-warning-light-7: #fbd4bb;--ep-color-warning-light-8: #fce3d2;--ep-color-warning-light-9: #fef1e8;--ep-color-warning-dark-2: #c25a16;--ep-color-danger: #db2828;--ep-color-danger-light-3: #e66969;--ep-color-danger-light-5: #ed9494;--ep-color-danger-light-7: #f4bfbf;--ep-color-danger-light-8: #f8d4d4;--ep-color-danger-light-9: #fbeaea;--ep-color-danger-dark-2: #af2020;--ep-color-error: #db2828;--ep-color-error-light-3: #e66969;--ep-color-error-light-5: #ed9494;--ep-color-error-light-7: #f4bfbf;--ep-color-error-light-8: #f8d4d4;--ep-color-error-light-9: #fbeaea;--ep-color-error-dark-2: #af2020;--ep-color-info: #2552b4;--ep-color-info-light-3: #6686cb;--ep-color-info-light-5: #92a9da;--ep-color-info-light-7: #becbe9;--ep-color-info-light-8: #d3dcf0;--ep-color-info-light-9: #e9eef8;--ep-color-info-dark-2: #1e4290;--ep-bg-color: #ffffff;--ep-bg-color-page: #f2f3f5;--ep-bg-color-overlay: #ffffff;--ep-text-color-primary: #303133;--ep-text-color-regular: #606266;--ep-text-color-secondary: #909399;--ep-text-color-placeholder: #a8abb2;--ep-text-color-disabled: #c0c4cc;--ep-border-color: #dcdfe6;--ep-border-color-light: #e4e7ed;--ep-border-color-lighter: #ebeef5;--ep-border-color-extra-light: #f2f6fc;--ep-border-color-dark: #d4d7de;--ep-border-color-darker: #cdd0d6;--ep-fill-color: #f0f2f5;--ep-fill-color-light: #f5f7fa;--ep-fill-color-lighter: #fafafa;--ep-fill-color-extra-light: #fafcff;--ep-fill-color-dark: #ebedf0;--ep-fill-color-darker: #e6e8eb;--ep-fill-color-blank: #ffffff;--ep-box-shadow: 0px 12px 32px 4px rgba(0, 0, 0, .04), 0px 8px 20px rgba(0, 0, 0, .08);--ep-box-shadow-light: 0px 0px 12px rgba(0, 0, 0, .12);--ep-box-shadow-lighter: 0px 0px 6px rgba(0, 0, 0, .12);--ep-box-shadow-dark: 0px 16px 48px 16px rgba(0, 0, 0, .08), 0px 12px 32px rgba(0, 0, 0, .12), 0px 8px 16px -8px rgba(0, 0, 0, .16);--ep-disabled-bg-color: var(--ep-fill-color-light);--ep-disabled-text-color: var(--ep-text-color-placeholder);--ep-disabled-border-color: var(--ep-border-color-light);--ep-overlay-color: rgba(0, 0, 0, .8);--ep-overlay-color-light: rgba(0, 0, 0, .7);--ep-overlay-color-lighter: rgba(0, 0, 0, .5);--ep-mask-color: rgba(255, 255, 255, .9);--ep-mask-color-extra-light: rgba(255, 255, 255, .3);--ep-border-width: 1px;--ep-border-style: solid;--ep-border-color-hover: var(--ep-text-color-disabled);--ep-border: var(--ep-border-width) var(--ep-border-style) var(--ep-border-color);--ep-svg-monochrome-grey: var(--ep-border-color)}.ep-icon-loading{animation:rotating 2s linear infinite}.ep-icon--right{margin-left:5px}.ep-icon--left{margin-right:5px}@keyframes rotating{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ep-icon{--color: inherit;height:1em;width:1em;line-height:1em;display:inline-flex;justify-content:center;align-items:center;position:relative;fill:currentColor;color:var(--color);font-size:inherit}.ep-icon.is-loading{animation:rotating 2s linear infinite}.ep-icon svg{height:1em;width:1em}.fade-in-linear-enter-active,.fade-in-linear-leave-active{transition:var(--ep-transition-fade-linear)}.fade-in-linear-enter-from,.fade-in-linear-leave-to{opacity:0}.ep-fade-in-linear-enter-active,.ep-fade-in-linear-leave-active{transition:var(--ep-transition-fade-linear)}.ep-fade-in-linear-enter-from,.ep-fade-in-linear-leave-to{opacity:0}.ep-fade-in-enter-active,.ep-fade-in-leave-active{transition:all var(--ep-transition-duration) cubic-bezier(.55,0,.1,1)}.ep-fade-in-enter-from,.ep-fade-in-leave-active{opacity:0}.ep-zoom-in-center-enter-active,.ep-zoom-in-center-leave-active{transition:all var(--ep-transition-duration) cubic-bezier(.55,0,.1,1)}.ep-zoom-in-center-enter-from,.ep-zoom-in-center-leave-active{opacity:0;transform:scaleX(0)}.ep-zoom-in-top-enter-active,.ep-zoom-in-top-leave-active{opacity:1;transform:scaleY(1);transition:var(--ep-transition-md-fade);transform-origin:center top}.ep-zoom-in-top-enter-active[data-popper-placement^=top],.ep-zoom-in-top-leave-active[data-popper-placement^=top]{transform-origin:center bottom}.ep-zoom-in-top-enter-from,.ep-zoom-in-top-leave-active{opacity:0;transform:scaleY(0)}.ep-zoom-in-bottom-enter-active,.ep-zoom-in-bottom-leave-active{opacity:1;transform:scaleY(1);transition:var(--ep-transition-md-fade);transform-origin:center bottom}.ep-zoom-in-bottom-enter-from,.ep-zoom-in-bottom-leave-active{opacity:0;transform:scaleY(0)}.ep-zoom-in-left-enter-active,.ep-zoom-in-left-leave-active{opacity:1;transform:scale(1);transition:var(--ep-transition-md-fade);transform-origin:top left}.ep-zoom-in-left-enter-from,.ep-zoom-in-left-leave-active{opacity:0;transform:scale(.45)}.collapse-transition{transition:var(--ep-transition-duration) height ease-in-out,var(--ep-transition-duration) padding-top ease-in-out,var(--ep-transition-duration) padding-bottom ease-in-out}.ep-collapse-transition-leave-active,.ep-collapse-transition-enter-active{transition:var(--ep-transition-duration) max-height ease-in-out,var(--ep-transition-duration) padding-top ease-in-out,var(--ep-transition-duration) padding-bottom ease-in-out}.horizontal-collapse-transition{transition:var(--ep-transition-duration) width ease-in-out,var(--ep-transition-duration) padding-left ease-in-out,var(--ep-transition-duration) padding-right ease-in-out}.ep-list-enter-active,.ep-list-leave-active{transition:all 1s}.ep-list-enter-from,.ep-list-leave-to{opacity:0;transform:translateY(-30px)}.ep-list-leave-active{position:absolute!important}.ep-opacity-transition{transition:opacity var(--ep-transition-duration) cubic-bezier(.55,0,.1,1)}:root{--ep-menu-active-color: var(--ep-color-primary);--ep-menu-text-color: var(--ep-text-color-primary);--ep-menu-hover-text-color: var(--ep-color-primary);--ep-menu-bg-color: var(--ep-fill-color-blank);--ep-menu-hover-bg-color: var(--ep-color-primary-light-9);--ep-menu-item-height: 56px;--ep-menu-sub-item-height: calc(var(--ep-menu-item-height) - 6px);--ep-menu-horizontal-sub-item-height: 36px;--ep-menu-item-font-size: var(--ep-font-size-base);--ep-menu-item-hover-fill: var(--ep-color-primary-light-9);--ep-menu-border-color: var(--ep-border-color);--ep-menu-base-level-padding: 20px;--ep-menu-level-padding: 20px;--ep-menu-icon-width: 24px}.ep-menu{border-right:solid 1px var(--ep-menu-border-color);list-style:none;position:relative;margin:0;padding-left:0;background-color:var(--ep-menu-bg-color);box-sizing:border-box}.ep-menu--vertical:not(.ep-menu--collapse):not(.ep-menu--popup-container) .ep-menu-item,.ep-menu--vertical:not(.ep-menu--collapse):not(.ep-menu--popup-container) .ep-sub-menu__title,.ep-menu--vertical:not(.ep-menu--collapse):not(.ep-menu--popup-container) .ep-menu-item-group__title{white-space:nowrap;padding-left:calc(var(--ep-menu-base-level-padding) + var(--ep-menu-level) * var(--ep-menu-level-padding))}.ep-menu--horizontal{display:flex;flex-wrap:nowrap;border-bottom:solid 1px var(--ep-menu-border-color);border-right:none}.ep-menu--horizontal>.ep-menu-item{display:inline-flex;justify-content:center;align-items:center;height:100%;margin:0;border-bottom:2px solid transparent;color:var(--ep-menu-text-color)}.ep-menu--horizontal>.ep-menu-item a,.ep-menu--horizontal>.ep-menu-item a:hover{color:inherit}.ep-menu--horizontal>.ep-menu-item:not(.is-disabled):hover,.ep-menu--horizontal>.ep-menu-item:not(.is-disabled):focus{background-color:#fff}.ep-menu--horizontal>.ep-sub-menu:focus,.ep-menu--horizontal>.ep-sub-menu:hover{outline:none}.ep-menu--horizontal>.ep-sub-menu:hover .ep-sub-menu__title{color:var(--ep-menu-hover-text-color)}.ep-menu--horizontal>.ep-sub-menu.is-active .ep-sub-menu__title{border-bottom:2px solid var(--ep-menu-active-color);color:var(--ep-menu-active-color)}.ep-menu--horizontal>.ep-sub-menu .ep-sub-menu__title{height:100%;border-bottom:2px solid transparent;color:var(--ep-menu-text-color)}.ep-menu--horizontal>.ep-sub-menu .ep-sub-menu__title:hover{background-color:var(--ep-bg-color-overlay)}.ep-menu--horizontal .ep-menu .ep-menu-item,.ep-menu--horizontal .ep-menu .ep-sub-menu__title{background-color:var(--ep-menu-bg-color);display:flex;align-items:center;height:var(--ep-menu-horizontal-sub-item-height);line-height:var(--ep-menu-horizontal-sub-item-height);padding:0 10px;color:var(--ep-menu-text-color)}.ep-menu--horizontal .ep-menu .ep-sub-menu__title{padding-right:40px}.ep-menu--horizontal .ep-menu .ep-menu-item.is-active,.ep-menu--horizontal .ep-menu .ep-sub-menu.is-active>.ep-sub-menu__title{color:var(--ep-menu-active-color)}.ep-menu--horizontal .ep-menu-item:not(.is-disabled):hover,.ep-menu--horizontal .ep-menu-item:not(.is-disabled):focus{outline:none;color:var(--ep-menu-hover-text-color);background-color:var(--ep-menu-hover-bg-color)}.ep-menu--horizontal>.ep-menu-item.is-active{border-bottom:2px solid var(--ep-menu-active-color);color:var(--ep-menu-active-color)!important}.ep-menu--collapse{width:calc(var(--ep-menu-icon-width) + var(--ep-menu-base-level-padding) * 2)}.ep-menu--collapse>.ep-menu-item [class^=ep-icon],.ep-menu--collapse>.ep-sub-menu>.ep-sub-menu__title [class^=ep-icon],.ep-menu--collapse>.ep-menu-item-group>ul>.ep-sub-menu>.ep-sub-menu__title [class^=ep-icon]{margin:0;vertical-align:middle;width:var(--ep-menu-icon-width);text-align:center}.ep-menu--collapse>.ep-menu-item .ep-sub-menu__icon-arrow,.ep-menu--collapse>.ep-sub-menu>.ep-sub-menu__title .ep-sub-menu__icon-arrow,.ep-menu--collapse>.ep-menu-item-group>ul>.ep-sub-menu>.ep-sub-menu__title .ep-sub-menu__icon-arrow{display:none}.ep-menu--collapse>.ep-menu-item>span,.ep-menu--collapse>.ep-sub-menu>.ep-sub-menu__title>span,.ep-menu--collapse>.ep-menu-item-group>ul>.ep-sub-menu>.ep-sub-menu__title>span{height:0;width:0;overflow:hidden;visibility:hidden;display:inline-block}.ep-menu--collapse>.ep-menu-item.is-active i{color:inherit}.ep-menu--collapse .ep-menu .ep-sub-menu{min-width:200px}.ep-menu--popup{z-index:100;min-width:200px;border:none;padding:5px 0;border-radius:var(--ep-border-radius-small);box-shadow:var(--ep-box-shadow-light)}.ep-menu .ep-icon{flex-shrink:0}.ep-menu-item{display:flex;align-items:center;height:var(--ep-menu-item-height);line-height:var(--ep-menu-item-height);font-size:var(--ep-menu-item-font-size);color:var(--ep-menu-text-color);padding:0 var(--ep-menu-base-level-padding);list-style:none;cursor:pointer;position:relative;transition:border-color var(--ep-transition-duration),background-color var(--ep-transition-duration),color var(--ep-transition-duration);box-sizing:border-box;white-space:nowrap}.ep-menu-item *{vertical-align:bottom}.ep-menu-item i{color:inherit}.ep-menu-item:hover,.ep-menu-item:focus{outline:none}.ep-menu-item:hover{background-color:var(--ep-menu-hover-bg-color)}.ep-menu-item.is-disabled{opacity:.25;cursor:not-allowed;background:none!important}.ep-menu-item [class^=ep-icon]{margin-right:5px;width:var(--ep-menu-icon-width);text-align:center;font-size:18px;vertical-align:middle}.ep-menu-item.is-active{color:var(--ep-menu-active-color)}.ep-menu-item.is-active i{color:inherit}.ep-menu-item .ep-menu-tooltip__trigger{position:absolute;left:0;top:0;height:100%;width:100%;display:inline-flex;align-items:center;box-sizing:border-box;padding:0 var(--ep-menu-base-level-padding)}.ep-sub-menu{list-style:none;margin:0;padding-left:0}.ep-sub-menu__title{display:flex;align-items:center;height:var(--ep-menu-item-height);line-height:var(--ep-menu-item-height);font-size:var(--ep-menu-item-font-size);color:var(--ep-menu-text-color);padding:0 var(--ep-menu-base-level-padding);list-style:none;cursor:pointer;position:relative;transition:border-color var(--ep-transition-duration),background-color var(--ep-transition-duration),color var(--ep-transition-duration);box-sizing:border-box;white-space:nowrap;padding-right:calc(var(--ep-menu-base-level-padding) + var(--ep-menu-icon-width))}.ep-sub-menu__title *{vertical-align:bottom}.ep-sub-menu__title i{color:inherit}.ep-sub-menu__title:hover,.ep-sub-menu__title:focus{outline:none}.ep-sub-menu__title.is-disabled{opacity:.25;cursor:not-allowed;background:none!important}.ep-sub-menu__title:hover{background-color:var(--ep-menu-hover-bg-color)}.ep-sub-menu .ep-menu{border:none}.ep-sub-menu .ep-menu-item{height:var(--ep-menu-sub-item-height);line-height:var(--ep-menu-sub-item-height)}.ep-sub-menu__hide-arrow .ep-sub-menu__icon-arrow{display:none!important}.ep-sub-menu.is-active .ep-sub-menu__title{border-bottom-color:var(--ep-menu-active-color)}.ep-sub-menu.is-disabled .ep-sub-menu__title,.ep-sub-menu.is-disabled .ep-menu-item{opacity:.25;cursor:not-allowed;background:none!important}.ep-sub-menu .ep-icon{vertical-align:middle;margin-right:5px;width:var(--ep-menu-icon-width);text-align:center;font-size:18px}.ep-sub-menu .ep-icon.ep-sub-menu__icon-more{margin-right:0!important}.ep-sub-menu .ep-sub-menu__icon-arrow{position:absolute;top:50%;right:var(--ep-menu-base-level-padding);margin-top:-6px;transition:transform var(--ep-transition-duration);font-size:12px;margin-right:0;width:inherit}.ep-menu-item-group>ul{padding:0}.ep-menu-item-group__title{padding:7px 0 7px var(--ep-menu-base-level-padding);line-height:normal;font-size:12px;color:var(--ep-text-color-secondary)}.horizontal-collapse-transition .ep-sub-menu__title .ep-sub-menu__icon-arrow{transition:var(--ep-transition-duration-fast);opacity:0}.ep-popper{--ep-popper-border-radius: var(--ep-popover-border-radius, 4px);position:absolute;border-radius:var(--ep-popper-border-radius);padding:5px 11px;z-index:2000;font-size:12px;line-height:20px;min-width:10px;word-wrap:break-word;visibility:visible}.ep-popper.is-dark{color:var(--ep-bg-color);background:var(--ep-text-color-primary);border:1px solid var(--ep-text-color-primary)}.ep-popper.is-dark .ep-popper__arrow:before{border:1px solid var(--ep-text-color-primary);background:var(--ep-text-color-primary);right:0}.ep-popper.is-light{background:var(--ep-bg-color-overlay);border:1px solid var(--ep-border-color-light)}.ep-popper.is-light .ep-popper__arrow:before{border:1px solid var(--ep-border-color-light);background:var(--ep-bg-color-overlay);right:0}.ep-popper.is-pure{padding:0}.ep-popper__arrow{position:absolute;width:10px;height:10px;z-index:-1}.ep-popper__arrow:before{position:absolute;width:10px;height:10px;z-index:-1;content:" ";transform:rotate(45deg);background:var(--ep-text-color-primary);box-sizing:border-box}.ep-popper[data-popper-placement^=top]>.ep-popper__arrow{bottom:-5px}.ep-popper[data-popper-placement^=top]>.ep-popper__arrow:before{border-bottom-right-radius:2px}.ep-popper[data-popper-placement^=bottom]>.ep-popper__arrow{top:-5px}.ep-popper[data-popper-placement^=bottom]>.ep-popper__arrow:before{border-top-left-radius:2px}.ep-popper[data-popper-placement^=left]>.ep-popper__arrow{right:-5px}.ep-popper[data-popper-placement^=left]>.ep-popper__arrow:before{border-top-right-radius:2px}.ep-popper[data-popper-placement^=right]>.ep-popper__arrow{left:-5px}.ep-popper[data-popper-placement^=right]>.ep-popper__arrow:before{border-bottom-left-radius:2px}.ep-popper[data-popper-placement^=top] .ep-popper__arrow:before{border-top-color:transparent!important;border-left-color:transparent!important}.ep-popper[data-popper-placement^=bottom] .ep-popper__arrow:before{border-bottom-color:transparent!important;border-right-color:transparent!important}.ep-popper[data-popper-placement^=left] .ep-popper__arrow:before{border-left-color:transparent!important;border-bottom-color:transparent!important}.ep-popper[data-popper-placement^=right] .ep-popper__arrow:before{border-right-color:transparent!important;border-top-color:transparent!important}#app[data-v-aa3fa0a7]{text-align:center;color:var(--ep-text-color-primary)}.main-container[data-v-aa3fa0a7]{height:calc(100vh - var(--ep-menu-item-height) - 3px)}[class*=ep-col-]{box-sizing:border-box}[class*=ep-col-].is-guttered{display:block;min-height:1px}.ep-col-0,.ep-col-0.is-guttered{display:none}.ep-col-0{max-width:0%;flex:0 0 0%}.ep-col-offset-0{margin-left:0%}.ep-col-pull-0{position:relative;right:0%}.ep-col-push-0{position:relative;left:0%}.ep-col-1{max-width:4.1666666667%;flex:0 0 4.1666666667%}.ep-col-offset-1{margin-left:4.1666666667%}.ep-col-pull-1{position:relative;right:4.1666666667%}.ep-col-push-1{position:relative;left:4.1666666667%}.ep-col-2{max-width:8.3333333333%;flex:0 0 8.3333333333%}.ep-col-offset-2{margin-left:8.3333333333%}.ep-col-pull-2{position:relative;right:8.3333333333%}.ep-col-push-2{position:relative;left:8.3333333333%}.ep-col-3{max-width:12.5%;flex:0 0 12.5%}.ep-col-offset-3{margin-left:12.5%}.ep-col-pull-3{position:relative;right:12.5%}.ep-col-push-3{position:relative;left:12.5%}.ep-col-4{max-width:16.6666666667%;flex:0 0 16.6666666667%}.ep-col-offset-4{margin-left:16.6666666667%}.ep-col-pull-4{position:relative;right:16.6666666667%}.ep-col-push-4{position:relative;left:16.6666666667%}.ep-col-5{max-width:20.8333333333%;flex:0 0 20.8333333333%}.ep-col-offset-5{margin-left:20.8333333333%}.ep-col-pull-5{position:relative;right:20.8333333333%}.ep-col-push-5{position:relative;left:20.8333333333%}.ep-col-6{max-width:25%;flex:0 0 25%}.ep-col-offset-6{margin-left:25%}.ep-col-pull-6{position:relative;right:25%}.ep-col-push-6{position:relative;left:25%}.ep-col-7{max-width:29.1666666667%;flex:0 0 29.1666666667%}.ep-col-offset-7{margin-left:29.1666666667%}.ep-col-pull-7{position:relative;right:29.1666666667%}.ep-col-push-7{position:relative;left:29.1666666667%}.ep-col-8{max-width:33.3333333333%;flex:0 0 33.3333333333%}.ep-col-offset-8{margin-left:33.3333333333%}.ep-col-pull-8{position:relative;right:33.3333333333%}.ep-col-push-8{position:relative;left:33.3333333333%}.ep-col-9{max-width:37.5%;flex:0 0 37.5%}.ep-col-offset-9{margin-left:37.5%}.ep-col-pull-9{position:relative;right:37.5%}.ep-col-push-9{position:relative;left:37.5%}.ep-col-10{max-width:41.6666666667%;flex:0 0 41.6666666667%}.ep-col-offset-10{margin-left:41.6666666667%}.ep-col-pull-10{position:relative;right:41.6666666667%}.ep-col-push-10{position:relative;left:41.6666666667%}.ep-col-11{max-width:45.8333333333%;flex:0 0 45.8333333333%}.ep-col-offset-11{margin-left:45.8333333333%}.ep-col-pull-11{position:relative;right:45.8333333333%}.ep-col-push-11{position:relative;left:45.8333333333%}.ep-col-12{max-width:50%;flex:0 0 50%}.ep-col-offset-12{margin-left:50%}.ep-col-pull-12{position:relative;right:50%}.ep-col-push-12{position:relative;left:50%}.ep-col-13{max-width:54.1666666667%;flex:0 0 54.1666666667%}.ep-col-offset-13{margin-left:54.1666666667%}.ep-col-pull-13{position:relative;right:54.1666666667%}.ep-col-push-13{position:relative;left:54.1666666667%}.ep-col-14{max-width:58.3333333333%;flex:0 0 58.3333333333%}.ep-col-offset-14{margin-left:58.3333333333%}.ep-col-pull-14{position:relative;right:58.3333333333%}.ep-col-push-14{position:relative;left:58.3333333333%}.ep-col-15{max-width:62.5%;flex:0 0 62.5%}.ep-col-offset-15{margin-left:62.5%}.ep-col-pull-15{position:relative;right:62.5%}.ep-col-push-15{position:relative;left:62.5%}.ep-col-16{max-width:66.6666666667%;flex:0 0 66.6666666667%}.ep-col-offset-16{margin-left:66.6666666667%}.ep-col-pull-16{position:relative;right:66.6666666667%}.ep-col-push-16{position:relative;left:66.6666666667%}.ep-col-17{max-width:70.8333333333%;flex:0 0 70.8333333333%}.ep-col-offset-17{margin-left:70.8333333333%}.ep-col-pull-17{position:relative;right:70.8333333333%}.ep-col-push-17{position:relative;left:70.8333333333%}.ep-col-18{max-width:75%;flex:0 0 75%}.ep-col-offset-18{margin-left:75%}.ep-col-pull-18{position:relative;right:75%}.ep-col-push-18{position:relative;left:75%}.ep-col-19{max-width:79.1666666667%;flex:0 0 79.1666666667%}.ep-col-offset-19{margin-left:79.1666666667%}.ep-col-pull-19{position:relative;right:79.1666666667%}.ep-col-push-19{position:relative;left:79.1666666667%}.ep-col-20{max-width:83.3333333333%;flex:0 0 83.3333333333%}.ep-col-offset-20{margin-left:83.3333333333%}.ep-col-pull-20{position:relative;right:83.3333333333%}.ep-col-push-20{position:relative;left:83.3333333333%}.ep-col-21{max-width:87.5%;flex:0 0 87.5%}.ep-col-offset-21{margin-left:87.5%}.ep-col-pull-21{position:relative;right:87.5%}.ep-col-push-21{position:relative;left:87.5%}.ep-col-22{max-width:91.6666666667%;flex:0 0 91.6666666667%}.ep-col-offset-22{margin-left:91.6666666667%}.ep-col-pull-22{position:relative;right:91.6666666667%}.ep-col-push-22{position:relative;left:91.6666666667%}.ep-col-23{max-width:95.8333333333%;flex:0 0 95.8333333333%}.ep-col-offset-23{margin-left:95.8333333333%}.ep-col-pull-23{position:relative;right:95.8333333333%}.ep-col-push-23{position:relative;left:95.8333333333%}.ep-col-24{max-width:100%;flex:0 0 100%}.ep-col-offset-24{margin-left:100%}.ep-col-pull-24{position:relative;right:100%}.ep-col-push-24{position:relative;left:100%}@media only screen and (max-width: 768px){.ep-col-xs-0,.ep-col-xs-0.is-guttered{display:none}.ep-col-xs-0{max-width:0%;flex:0 0 0%}.ep-col-xs-offset-0{margin-left:0%}.ep-col-xs-pull-0{position:relative;right:0%}.ep-col-xs-push-0{position:relative;left:0%}.ep-col-xs-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.ep-col-xs-offset-1{margin-left:4.1666666667%}.ep-col-xs-pull-1{position:relative;right:4.1666666667%}.ep-col-xs-push-1{position:relative;left:4.1666666667%}.ep-col-xs-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.ep-col-xs-offset-2{margin-left:8.3333333333%}.ep-col-xs-pull-2{position:relative;right:8.3333333333%}.ep-col-xs-push-2{position:relative;left:8.3333333333%}.ep-col-xs-3{display:block;max-width:12.5%;flex:0 0 12.5%}.ep-col-xs-offset-3{margin-left:12.5%}.ep-col-xs-pull-3{position:relative;right:12.5%}.ep-col-xs-push-3{position:relative;left:12.5%}.ep-col-xs-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.ep-col-xs-offset-4{margin-left:16.6666666667%}.ep-col-xs-pull-4{position:relative;right:16.6666666667%}.ep-col-xs-push-4{position:relative;left:16.6666666667%}.ep-col-xs-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.ep-col-xs-offset-5{margin-left:20.8333333333%}.ep-col-xs-pull-5{position:relative;right:20.8333333333%}.ep-col-xs-push-5{position:relative;left:20.8333333333%}.ep-col-xs-6{display:block;max-width:25%;flex:0 0 25%}.ep-col-xs-offset-6{margin-left:25%}.ep-col-xs-pull-6{position:relative;right:25%}.ep-col-xs-push-6{position:relative;left:25%}.ep-col-xs-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.ep-col-xs-offset-7{margin-left:29.1666666667%}.ep-col-xs-pull-7{position:relative;right:29.1666666667%}.ep-col-xs-push-7{position:relative;left:29.1666666667%}.ep-col-xs-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.ep-col-xs-offset-8{margin-left:33.3333333333%}.ep-col-xs-pull-8{position:relative;right:33.3333333333%}.ep-col-xs-push-8{position:relative;left:33.3333333333%}.ep-col-xs-9{display:block;max-width:37.5%;flex:0 0 37.5%}.ep-col-xs-offset-9{margin-left:37.5%}.ep-col-xs-pull-9{position:relative;right:37.5%}.ep-col-xs-push-9{position:relative;left:37.5%}.ep-col-xs-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.ep-col-xs-offset-10{margin-left:41.6666666667%}.ep-col-xs-pull-10{position:relative;right:41.6666666667%}.ep-col-xs-push-10{position:relative;left:41.6666666667%}.ep-col-xs-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.ep-col-xs-offset-11{margin-left:45.8333333333%}.ep-col-xs-pull-11{position:relative;right:45.8333333333%}.ep-col-xs-push-11{position:relative;left:45.8333333333%}.ep-col-xs-12{display:block;max-width:50%;flex:0 0 50%}.ep-col-xs-offset-12{margin-left:50%}.ep-col-xs-pull-12{position:relative;right:50%}.ep-col-xs-push-12{position:relative;left:50%}.ep-col-xs-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.ep-col-xs-offset-13{margin-left:54.1666666667%}.ep-col-xs-pull-13{position:relative;right:54.1666666667%}.ep-col-xs-push-13{position:relative;left:54.1666666667%}.ep-col-xs-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.ep-col-xs-offset-14{margin-left:58.3333333333%}.ep-col-xs-pull-14{position:relative;right:58.3333333333%}.ep-col-xs-push-14{position:relative;left:58.3333333333%}.ep-col-xs-15{display:block;max-width:62.5%;flex:0 0 62.5%}.ep-col-xs-offset-15{margin-left:62.5%}.ep-col-xs-pull-15{position:relative;right:62.5%}.ep-col-xs-push-15{position:relative;left:62.5%}.ep-col-xs-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.ep-col-xs-offset-16{margin-left:66.6666666667%}.ep-col-xs-pull-16{position:relative;right:66.6666666667%}.ep-col-xs-push-16{position:relative;left:66.6666666667%}.ep-col-xs-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.ep-col-xs-offset-17{margin-left:70.8333333333%}.ep-col-xs-pull-17{position:relative;right:70.8333333333%}.ep-col-xs-push-17{position:relative;left:70.8333333333%}.ep-col-xs-18{display:block;max-width:75%;flex:0 0 75%}.ep-col-xs-offset-18{margin-left:75%}.ep-col-xs-pull-18{position:relative;right:75%}.ep-col-xs-push-18{position:relative;left:75%}.ep-col-xs-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.ep-col-xs-offset-19{margin-left:79.1666666667%}.ep-col-xs-pull-19{position:relative;right:79.1666666667%}.ep-col-xs-push-19{position:relative;left:79.1666666667%}.ep-col-xs-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.ep-col-xs-offset-20{margin-left:83.3333333333%}.ep-col-xs-pull-20{position:relative;right:83.3333333333%}.ep-col-xs-push-20{position:relative;left:83.3333333333%}.ep-col-xs-21{display:block;max-width:87.5%;flex:0 0 87.5%}.ep-col-xs-offset-21{margin-left:87.5%}.ep-col-xs-pull-21{position:relative;right:87.5%}.ep-col-xs-push-21{position:relative;left:87.5%}.ep-col-xs-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.ep-col-xs-offset-22{margin-left:91.6666666667%}.ep-col-xs-pull-22{position:relative;right:91.6666666667%}.ep-col-xs-push-22{position:relative;left:91.6666666667%}.ep-col-xs-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.ep-col-xs-offset-23{margin-left:95.8333333333%}.ep-col-xs-pull-23{position:relative;right:95.8333333333%}.ep-col-xs-push-23{position:relative;left:95.8333333333%}.ep-col-xs-24{display:block;max-width:100%;flex:0 0 100%}.ep-col-xs-offset-24{margin-left:100%}.ep-col-xs-pull-24{position:relative;right:100%}.ep-col-xs-push-24{position:relative;left:100%}}@media only screen and (min-width: 768px){.ep-col-sm-0,.ep-col-sm-0.is-guttered{display:none}.ep-col-sm-0{max-width:0%;flex:0 0 0%}.ep-col-sm-offset-0{margin-left:0%}.ep-col-sm-pull-0{position:relative;right:0%}.ep-col-sm-push-0{position:relative;left:0%}.ep-col-sm-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.ep-col-sm-offset-1{margin-left:4.1666666667%}.ep-col-sm-pull-1{position:relative;right:4.1666666667%}.ep-col-sm-push-1{position:relative;left:4.1666666667%}.ep-col-sm-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.ep-col-sm-offset-2{margin-left:8.3333333333%}.ep-col-sm-pull-2{position:relative;right:8.3333333333%}.ep-col-sm-push-2{position:relative;left:8.3333333333%}.ep-col-sm-3{display:block;max-width:12.5%;flex:0 0 12.5%}.ep-col-sm-offset-3{margin-left:12.5%}.ep-col-sm-pull-3{position:relative;right:12.5%}.ep-col-sm-push-3{position:relative;left:12.5%}.ep-col-sm-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.ep-col-sm-offset-4{margin-left:16.6666666667%}.ep-col-sm-pull-4{position:relative;right:16.6666666667%}.ep-col-sm-push-4{position:relative;left:16.6666666667%}.ep-col-sm-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.ep-col-sm-offset-5{margin-left:20.8333333333%}.ep-col-sm-pull-5{position:relative;right:20.8333333333%}.ep-col-sm-push-5{position:relative;left:20.8333333333%}.ep-col-sm-6{display:block;max-width:25%;flex:0 0 25%}.ep-col-sm-offset-6{margin-left:25%}.ep-col-sm-pull-6{position:relative;right:25%}.ep-col-sm-push-6{position:relative;left:25%}.ep-col-sm-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.ep-col-sm-offset-7{margin-left:29.1666666667%}.ep-col-sm-pull-7{position:relative;right:29.1666666667%}.ep-col-sm-push-7{position:relative;left:29.1666666667%}.ep-col-sm-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.ep-col-sm-offset-8{margin-left:33.3333333333%}.ep-col-sm-pull-8{position:relative;right:33.3333333333%}.ep-col-sm-push-8{position:relative;left:33.3333333333%}.ep-col-sm-9{display:block;max-width:37.5%;flex:0 0 37.5%}.ep-col-sm-offset-9{margin-left:37.5%}.ep-col-sm-pull-9{position:relative;right:37.5%}.ep-col-sm-push-9{position:relative;left:37.5%}.ep-col-sm-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.ep-col-sm-offset-10{margin-left:41.6666666667%}.ep-col-sm-pull-10{position:relative;right:41.6666666667%}.ep-col-sm-push-10{position:relative;left:41.6666666667%}.ep-col-sm-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.ep-col-sm-offset-11{margin-left:45.8333333333%}.ep-col-sm-pull-11{position:relative;right:45.8333333333%}.ep-col-sm-push-11{position:relative;left:45.8333333333%}.ep-col-sm-12{display:block;max-width:50%;flex:0 0 50%}.ep-col-sm-offset-12{margin-left:50%}.ep-col-sm-pull-12{position:relative;right:50%}.ep-col-sm-push-12{position:relative;left:50%}.ep-col-sm-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.ep-col-sm-offset-13{margin-left:54.1666666667%}.ep-col-sm-pull-13{position:relative;right:54.1666666667%}.ep-col-sm-push-13{position:relative;left:54.1666666667%}.ep-col-sm-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.ep-col-sm-offset-14{margin-left:58.3333333333%}.ep-col-sm-pull-14{position:relative;right:58.3333333333%}.ep-col-sm-push-14{position:relative;left:58.3333333333%}.ep-col-sm-15{display:block;max-width:62.5%;flex:0 0 62.5%}.ep-col-sm-offset-15{margin-left:62.5%}.ep-col-sm-pull-15{position:relative;right:62.5%}.ep-col-sm-push-15{position:relative;left:62.5%}.ep-col-sm-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.ep-col-sm-offset-16{margin-left:66.6666666667%}.ep-col-sm-pull-16{position:relative;right:66.6666666667%}.ep-col-sm-push-16{position:relative;left:66.6666666667%}.ep-col-sm-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.ep-col-sm-offset-17{margin-left:70.8333333333%}.ep-col-sm-pull-17{position:relative;right:70.8333333333%}.ep-col-sm-push-17{position:relative;left:70.8333333333%}.ep-col-sm-18{display:block;max-width:75%;flex:0 0 75%}.ep-col-sm-offset-18{margin-left:75%}.ep-col-sm-pull-18{position:relative;right:75%}.ep-col-sm-push-18{position:relative;left:75%}.ep-col-sm-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.ep-col-sm-offset-19{margin-left:79.1666666667%}.ep-col-sm-pull-19{position:relative;right:79.1666666667%}.ep-col-sm-push-19{position:relative;left:79.1666666667%}.ep-col-sm-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.ep-col-sm-offset-20{margin-left:83.3333333333%}.ep-col-sm-pull-20{position:relative;right:83.3333333333%}.ep-col-sm-push-20{position:relative;left:83.3333333333%}.ep-col-sm-21{display:block;max-width:87.5%;flex:0 0 87.5%}.ep-col-sm-offset-21{margin-left:87.5%}.ep-col-sm-pull-21{position:relative;right:87.5%}.ep-col-sm-push-21{position:relative;left:87.5%}.ep-col-sm-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.ep-col-sm-offset-22{margin-left:91.6666666667%}.ep-col-sm-pull-22{position:relative;right:91.6666666667%}.ep-col-sm-push-22{position:relative;left:91.6666666667%}.ep-col-sm-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.ep-col-sm-offset-23{margin-left:95.8333333333%}.ep-col-sm-pull-23{position:relative;right:95.8333333333%}.ep-col-sm-push-23{position:relative;left:95.8333333333%}.ep-col-sm-24{display:block;max-width:100%;flex:0 0 100%}.ep-col-sm-offset-24{margin-left:100%}.ep-col-sm-pull-24{position:relative;right:100%}.ep-col-sm-push-24{position:relative;left:100%}}@media only screen and (min-width: 992px){.ep-col-md-0,.ep-col-md-0.is-guttered{display:none}.ep-col-md-0{max-width:0%;flex:0 0 0%}.ep-col-md-offset-0{margin-left:0%}.ep-col-md-pull-0{position:relative;right:0%}.ep-col-md-push-0{position:relative;left:0%}.ep-col-md-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.ep-col-md-offset-1{margin-left:4.1666666667%}.ep-col-md-pull-1{position:relative;right:4.1666666667%}.ep-col-md-push-1{position:relative;left:4.1666666667%}.ep-col-md-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.ep-col-md-offset-2{margin-left:8.3333333333%}.ep-col-md-pull-2{position:relative;right:8.3333333333%}.ep-col-md-push-2{position:relative;left:8.3333333333%}.ep-col-md-3{display:block;max-width:12.5%;flex:0 0 12.5%}.ep-col-md-offset-3{margin-left:12.5%}.ep-col-md-pull-3{position:relative;right:12.5%}.ep-col-md-push-3{position:relative;left:12.5%}.ep-col-md-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.ep-col-md-offset-4{margin-left:16.6666666667%}.ep-col-md-pull-4{position:relative;right:16.6666666667%}.ep-col-md-push-4{position:relative;left:16.6666666667%}.ep-col-md-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.ep-col-md-offset-5{margin-left:20.8333333333%}.ep-col-md-pull-5{position:relative;right:20.8333333333%}.ep-col-md-push-5{position:relative;left:20.8333333333%}.ep-col-md-6{display:block;max-width:25%;flex:0 0 25%}.ep-col-md-offset-6{margin-left:25%}.ep-col-md-pull-6{position:relative;right:25%}.ep-col-md-push-6{position:relative;left:25%}.ep-col-md-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.ep-col-md-offset-7{margin-left:29.1666666667%}.ep-col-md-pull-7{position:relative;right:29.1666666667%}.ep-col-md-push-7{position:relative;left:29.1666666667%}.ep-col-md-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.ep-col-md-offset-8{margin-left:33.3333333333%}.ep-col-md-pull-8{position:relative;right:33.3333333333%}.ep-col-md-push-8{position:relative;left:33.3333333333%}.ep-col-md-9{display:block;max-width:37.5%;flex:0 0 37.5%}.ep-col-md-offset-9{margin-left:37.5%}.ep-col-md-pull-9{position:relative;right:37.5%}.ep-col-md-push-9{position:relative;left:37.5%}.ep-col-md-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.ep-col-md-offset-10{margin-left:41.6666666667%}.ep-col-md-pull-10{position:relative;right:41.6666666667%}.ep-col-md-push-10{position:relative;left:41.6666666667%}.ep-col-md-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.ep-col-md-offset-11{margin-left:45.8333333333%}.ep-col-md-pull-11{position:relative;right:45.8333333333%}.ep-col-md-push-11{position:relative;left:45.8333333333%}.ep-col-md-12{display:block;max-width:50%;flex:0 0 50%}.ep-col-md-offset-12{margin-left:50%}.ep-col-md-pull-12{position:relative;right:50%}.ep-col-md-push-12{position:relative;left:50%}.ep-col-md-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.ep-col-md-offset-13{margin-left:54.1666666667%}.ep-col-md-pull-13{position:relative;right:54.1666666667%}.ep-col-md-push-13{position:relative;left:54.1666666667%}.ep-col-md-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.ep-col-md-offset-14{margin-left:58.3333333333%}.ep-col-md-pull-14{position:relative;right:58.3333333333%}.ep-col-md-push-14{position:relative;left:58.3333333333%}.ep-col-md-15{display:block;max-width:62.5%;flex:0 0 62.5%}.ep-col-md-offset-15{margin-left:62.5%}.ep-col-md-pull-15{position:relative;right:62.5%}.ep-col-md-push-15{position:relative;left:62.5%}.ep-col-md-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.ep-col-md-offset-16{margin-left:66.6666666667%}.ep-col-md-pull-16{position:relative;right:66.6666666667%}.ep-col-md-push-16{position:relative;left:66.6666666667%}.ep-col-md-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.ep-col-md-offset-17{margin-left:70.8333333333%}.ep-col-md-pull-17{position:relative;right:70.8333333333%}.ep-col-md-push-17{position:relative;left:70.8333333333%}.ep-col-md-18{display:block;max-width:75%;flex:0 0 75%}.ep-col-md-offset-18{margin-left:75%}.ep-col-md-pull-18{position:relative;right:75%}.ep-col-md-push-18{position:relative;left:75%}.ep-col-md-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.ep-col-md-offset-19{margin-left:79.1666666667%}.ep-col-md-pull-19{position:relative;right:79.1666666667%}.ep-col-md-push-19{position:relative;left:79.1666666667%}.ep-col-md-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.ep-col-md-offset-20{margin-left:83.3333333333%}.ep-col-md-pull-20{position:relative;right:83.3333333333%}.ep-col-md-push-20{position:relative;left:83.3333333333%}.ep-col-md-21{display:block;max-width:87.5%;flex:0 0 87.5%}.ep-col-md-offset-21{margin-left:87.5%}.ep-col-md-pull-21{position:relative;right:87.5%}.ep-col-md-push-21{position:relative;left:87.5%}.ep-col-md-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.ep-col-md-offset-22{margin-left:91.6666666667%}.ep-col-md-pull-22{position:relative;right:91.6666666667%}.ep-col-md-push-22{position:relative;left:91.6666666667%}.ep-col-md-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.ep-col-md-offset-23{margin-left:95.8333333333%}.ep-col-md-pull-23{position:relative;right:95.8333333333%}.ep-col-md-push-23{position:relative;left:95.8333333333%}.ep-col-md-24{display:block;max-width:100%;flex:0 0 100%}.ep-col-md-offset-24{margin-left:100%}.ep-col-md-pull-24{position:relative;right:100%}.ep-col-md-push-24{position:relative;left:100%}}@media only screen and (min-width: 1200px){.ep-col-lg-0,.ep-col-lg-0.is-guttered{display:none}.ep-col-lg-0{max-width:0%;flex:0 0 0%}.ep-col-lg-offset-0{margin-left:0%}.ep-col-lg-pull-0{position:relative;right:0%}.ep-col-lg-push-0{position:relative;left:0%}.ep-col-lg-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.ep-col-lg-offset-1{margin-left:4.1666666667%}.ep-col-lg-pull-1{position:relative;right:4.1666666667%}.ep-col-lg-push-1{position:relative;left:4.1666666667%}.ep-col-lg-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.ep-col-lg-offset-2{margin-left:8.3333333333%}.ep-col-lg-pull-2{position:relative;right:8.3333333333%}.ep-col-lg-push-2{position:relative;left:8.3333333333%}.ep-col-lg-3{display:block;max-width:12.5%;flex:0 0 12.5%}.ep-col-lg-offset-3{margin-left:12.5%}.ep-col-lg-pull-3{position:relative;right:12.5%}.ep-col-lg-push-3{position:relative;left:12.5%}.ep-col-lg-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.ep-col-lg-offset-4{margin-left:16.6666666667%}.ep-col-lg-pull-4{position:relative;right:16.6666666667%}.ep-col-lg-push-4{position:relative;left:16.6666666667%}.ep-col-lg-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.ep-col-lg-offset-5{margin-left:20.8333333333%}.ep-col-lg-pull-5{position:relative;right:20.8333333333%}.ep-col-lg-push-5{position:relative;left:20.8333333333%}.ep-col-lg-6{display:block;max-width:25%;flex:0 0 25%}.ep-col-lg-offset-6{margin-left:25%}.ep-col-lg-pull-6{position:relative;right:25%}.ep-col-lg-push-6{position:relative;left:25%}.ep-col-lg-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.ep-col-lg-offset-7{margin-left:29.1666666667%}.ep-col-lg-pull-7{position:relative;right:29.1666666667%}.ep-col-lg-push-7{position:relative;left:29.1666666667%}.ep-col-lg-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.ep-col-lg-offset-8{margin-left:33.3333333333%}.ep-col-lg-pull-8{position:relative;right:33.3333333333%}.ep-col-lg-push-8{position:relative;left:33.3333333333%}.ep-col-lg-9{display:block;max-width:37.5%;flex:0 0 37.5%}.ep-col-lg-offset-9{margin-left:37.5%}.ep-col-lg-pull-9{position:relative;right:37.5%}.ep-col-lg-push-9{position:relative;left:37.5%}.ep-col-lg-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.ep-col-lg-offset-10{margin-left:41.6666666667%}.ep-col-lg-pull-10{position:relative;right:41.6666666667%}.ep-col-lg-push-10{position:relative;left:41.6666666667%}.ep-col-lg-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.ep-col-lg-offset-11{margin-left:45.8333333333%}.ep-col-lg-pull-11{position:relative;right:45.8333333333%}.ep-col-lg-push-11{position:relative;left:45.8333333333%}.ep-col-lg-12{display:block;max-width:50%;flex:0 0 50%}.ep-col-lg-offset-12{margin-left:50%}.ep-col-lg-pull-12{position:relative;right:50%}.ep-col-lg-push-12{position:relative;left:50%}.ep-col-lg-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.ep-col-lg-offset-13{margin-left:54.1666666667%}.ep-col-lg-pull-13{position:relative;right:54.1666666667%}.ep-col-lg-push-13{position:relative;left:54.1666666667%}.ep-col-lg-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.ep-col-lg-offset-14{margin-left:58.3333333333%}.ep-col-lg-pull-14{position:relative;right:58.3333333333%}.ep-col-lg-push-14{position:relative;left:58.3333333333%}.ep-col-lg-15{display:block;max-width:62.5%;flex:0 0 62.5%}.ep-col-lg-offset-15{margin-left:62.5%}.ep-col-lg-pull-15{position:relative;right:62.5%}.ep-col-lg-push-15{position:relative;left:62.5%}.ep-col-lg-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.ep-col-lg-offset-16{margin-left:66.6666666667%}.ep-col-lg-pull-16{position:relative;right:66.6666666667%}.ep-col-lg-push-16{position:relative;left:66.6666666667%}.ep-col-lg-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.ep-col-lg-offset-17{margin-left:70.8333333333%}.ep-col-lg-pull-17{position:relative;right:70.8333333333%}.ep-col-lg-push-17{position:relative;left:70.8333333333%}.ep-col-lg-18{display:block;max-width:75%;flex:0 0 75%}.ep-col-lg-offset-18{margin-left:75%}.ep-col-lg-pull-18{position:relative;right:75%}.ep-col-lg-push-18{position:relative;left:75%}.ep-col-lg-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.ep-col-lg-offset-19{margin-left:79.1666666667%}.ep-col-lg-pull-19{position:relative;right:79.1666666667%}.ep-col-lg-push-19{position:relative;left:79.1666666667%}.ep-col-lg-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.ep-col-lg-offset-20{margin-left:83.3333333333%}.ep-col-lg-pull-20{position:relative;right:83.3333333333%}.ep-col-lg-push-20{position:relative;left:83.3333333333%}.ep-col-lg-21{display:block;max-width:87.5%;flex:0 0 87.5%}.ep-col-lg-offset-21{margin-left:87.5%}.ep-col-lg-pull-21{position:relative;right:87.5%}.ep-col-lg-push-21{position:relative;left:87.5%}.ep-col-lg-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.ep-col-lg-offset-22{margin-left:91.6666666667%}.ep-col-lg-pull-22{position:relative;right:91.6666666667%}.ep-col-lg-push-22{position:relative;left:91.6666666667%}.ep-col-lg-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.ep-col-lg-offset-23{margin-left:95.8333333333%}.ep-col-lg-pull-23{position:relative;right:95.8333333333%}.ep-col-lg-push-23{position:relative;left:95.8333333333%}.ep-col-lg-24{display:block;max-width:100%;flex:0 0 100%}.ep-col-lg-offset-24{margin-left:100%}.ep-col-lg-pull-24{position:relative;right:100%}.ep-col-lg-push-24{position:relative;left:100%}}@media only screen and (min-width: 1920px){.ep-col-xl-0,.ep-col-xl-0.is-guttered{display:none}.ep-col-xl-0{max-width:0%;flex:0 0 0%}.ep-col-xl-offset-0{margin-left:0%}.ep-col-xl-pull-0{position:relative;right:0%}.ep-col-xl-push-0{position:relative;left:0%}.ep-col-xl-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.ep-col-xl-offset-1{margin-left:4.1666666667%}.ep-col-xl-pull-1{position:relative;right:4.1666666667%}.ep-col-xl-push-1{position:relative;left:4.1666666667%}.ep-col-xl-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.ep-col-xl-offset-2{margin-left:8.3333333333%}.ep-col-xl-pull-2{position:relative;right:8.3333333333%}.ep-col-xl-push-2{position:relative;left:8.3333333333%}.ep-col-xl-3{display:block;max-width:12.5%;flex:0 0 12.5%}.ep-col-xl-offset-3{margin-left:12.5%}.ep-col-xl-pull-3{position:relative;right:12.5%}.ep-col-xl-push-3{position:relative;left:12.5%}.ep-col-xl-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.ep-col-xl-offset-4{margin-left:16.6666666667%}.ep-col-xl-pull-4{position:relative;right:16.6666666667%}.ep-col-xl-push-4{position:relative;left:16.6666666667%}.ep-col-xl-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.ep-col-xl-offset-5{margin-left:20.8333333333%}.ep-col-xl-pull-5{position:relative;right:20.8333333333%}.ep-col-xl-push-5{position:relative;left:20.8333333333%}.ep-col-xl-6{display:block;max-width:25%;flex:0 0 25%}.ep-col-xl-offset-6{margin-left:25%}.ep-col-xl-pull-6{position:relative;right:25%}.ep-col-xl-push-6{position:relative;left:25%}.ep-col-xl-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.ep-col-xl-offset-7{margin-left:29.1666666667%}.ep-col-xl-pull-7{position:relative;right:29.1666666667%}.ep-col-xl-push-7{position:relative;left:29.1666666667%}.ep-col-xl-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.ep-col-xl-offset-8{margin-left:33.3333333333%}.ep-col-xl-pull-8{position:relative;right:33.3333333333%}.ep-col-xl-push-8{position:relative;left:33.3333333333%}.ep-col-xl-9{display:block;max-width:37.5%;flex:0 0 37.5%}.ep-col-xl-offset-9{margin-left:37.5%}.ep-col-xl-pull-9{position:relative;right:37.5%}.ep-col-xl-push-9{position:relative;left:37.5%}.ep-col-xl-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.ep-col-xl-offset-10{margin-left:41.6666666667%}.ep-col-xl-pull-10{position:relative;right:41.6666666667%}.ep-col-xl-push-10{position:relative;left:41.6666666667%}.ep-col-xl-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.ep-col-xl-offset-11{margin-left:45.8333333333%}.ep-col-xl-pull-11{position:relative;right:45.8333333333%}.ep-col-xl-push-11{position:relative;left:45.8333333333%}.ep-col-xl-12{display:block;max-width:50%;flex:0 0 50%}.ep-col-xl-offset-12{margin-left:50%}.ep-col-xl-pull-12{position:relative;right:50%}.ep-col-xl-push-12{position:relative;left:50%}.ep-col-xl-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.ep-col-xl-offset-13{margin-left:54.1666666667%}.ep-col-xl-pull-13{position:relative;right:54.1666666667%}.ep-col-xl-push-13{position:relative;left:54.1666666667%}.ep-col-xl-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.ep-col-xl-offset-14{margin-left:58.3333333333%}.ep-col-xl-pull-14{position:relative;right:58.3333333333%}.ep-col-xl-push-14{position:relative;left:58.3333333333%}.ep-col-xl-15{display:block;max-width:62.5%;flex:0 0 62.5%}.ep-col-xl-offset-15{margin-left:62.5%}.ep-col-xl-pull-15{position:relative;right:62.5%}.ep-col-xl-push-15{position:relative;left:62.5%}.ep-col-xl-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.ep-col-xl-offset-16{margin-left:66.6666666667%}.ep-col-xl-pull-16{position:relative;right:66.6666666667%}.ep-col-xl-push-16{position:relative;left:66.6666666667%}.ep-col-xl-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.ep-col-xl-offset-17{margin-left:70.8333333333%}.ep-col-xl-pull-17{position:relative;right:70.8333333333%}.ep-col-xl-push-17{position:relative;left:70.8333333333%}.ep-col-xl-18{display:block;max-width:75%;flex:0 0 75%}.ep-col-xl-offset-18{margin-left:75%}.ep-col-xl-pull-18{position:relative;right:75%}.ep-col-xl-push-18{position:relative;left:75%}.ep-col-xl-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.ep-col-xl-offset-19{margin-left:79.1666666667%}.ep-col-xl-pull-19{position:relative;right:79.1666666667%}.ep-col-xl-push-19{position:relative;left:79.1666666667%}.ep-col-xl-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.ep-col-xl-offset-20{margin-left:83.3333333333%}.ep-col-xl-pull-20{position:relative;right:83.3333333333%}.ep-col-xl-push-20{position:relative;left:83.3333333333%}.ep-col-xl-21{display:block;max-width:87.5%;flex:0 0 87.5%}.ep-col-xl-offset-21{margin-left:87.5%}.ep-col-xl-pull-21{position:relative;right:87.5%}.ep-col-xl-push-21{position:relative;left:87.5%}.ep-col-xl-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.ep-col-xl-offset-22{margin-left:91.6666666667%}.ep-col-xl-pull-22{position:relative;right:91.6666666667%}.ep-col-xl-push-22{position:relative;left:91.6666666667%}.ep-col-xl-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.ep-col-xl-offset-23{margin-left:95.8333333333%}.ep-col-xl-pull-23{position:relative;right:95.8333333333%}.ep-col-xl-push-23{position:relative;left:95.8333333333%}.ep-col-xl-24{display:block;max-width:100%;flex:0 0 100%}.ep-col-xl-offset-24{margin-left:100%}.ep-col-xl-pull-24{position:relative;right:100%}.ep-col-xl-push-24{position:relative;left:100%}}.ep-row{display:flex;flex-wrap:wrap;position:relative;box-sizing:border-box}.ep-row.is-justify-center{justify-content:center}.ep-row.is-justify-end{justify-content:flex-end}.ep-row.is-justify-space-between{justify-content:space-between}.ep-row.is-justify-space-around{justify-content:space-around}.ep-row.is-justify-space-evenly{justify-content:space-evenly}.ep-row.is-align-middle{align-items:center}.ep-row.is-align-bottom{align-items:flex-end}.ep-button{--ep-button-font-weight: var(--ep-font-weight-primary);--ep-button-border-color: var(--ep-border-color);--ep-button-bg-color: var(--ep-fill-color-blank);--ep-button-text-color: var(--ep-text-color-regular);--ep-button-disabled-text-color: var(--ep-disabled-text-color);--ep-button-disabled-bg-color: var(--ep-fill-color-blank);--ep-button-disabled-border-color: var(--ep-border-color-light);--ep-button-divide-border-color: rgba(255, 255, 255, .5);--ep-button-hover-text-color: var(--ep-color-primary);--ep-button-hover-bg-color: var(--ep-color-primary-light-9);--ep-button-hover-border-color: var(--ep-color-primary-light-7);--ep-button-active-text-color: var(--ep-button-hover-text-color);--ep-button-active-border-color: var(--ep-color-primary);--ep-button-active-bg-color: var(--ep-button-hover-bg-color);--ep-button-outline-color: var(--ep-color-primary-light-5);--ep-button-hover-link-text-color: var(--ep-color-info);--ep-button-active-color: var(--ep-text-color-primary);display:inline-flex;justify-content:center;align-items:center;line-height:1;height:32px;white-space:nowrap;cursor:pointer;color:var(--ep-button-text-color);text-align:center;box-sizing:border-box;outline:none;transition:.1s;font-weight:var(--ep-button-font-weight);-webkit-user-select:none;user-select:none;vertical-align:middle;-webkit-appearance:none;background-color:var(--ep-button-bg-color);border:var(--ep-border);border-color:var(--ep-button-border-color);padding:8px 49px;font-size:var(--ep-font-size-base);border-radius:var(--ep-border-radius-base)}.ep-button:hover,.ep-button:focus{color:var(--ep-button-hover-text-color);border-color:var(--ep-button-hover-border-color);background-color:var(--ep-button-hover-bg-color);outline:none}.ep-button:active{color:var(--ep-button-active-text-color);border-color:var(--ep-button-active-border-color);background-color:var(--ep-button-active-bg-color);outline:none}.ep-button:focus-visible{outline:2px solid var(--ep-button-outline-color);outline-offset:1px}.ep-button>span{display:inline-flex;align-items:center}.ep-button+.ep-button{margin-left:12px}.ep-button.is-round{padding:8px 49px}.ep-button::-moz-focus-inner{border:0}.ep-button [class*=ep-icon]+span{margin-left:6px}.ep-button [class*=ep-icon] svg{vertical-align:bottom}.ep-button.is-plain{--ep-button-hover-text-color: var(--ep-color-primary);--ep-button-hover-bg-color: var(--ep-fill-color-blank);--ep-button-hover-border-color: var(--ep-color-primary)}.ep-button.is-active{color:var(--ep-button-active-text-color);border-color:var(--ep-button-active-border-color);background-color:var(--ep-button-active-bg-color);outline:none}.ep-button.is-disabled,.ep-button.is-disabled:hover,.ep-button.is-disabled:focus{color:var(--ep-button-disabled-text-color);cursor:not-allowed;background-image:none;background-color:var(--ep-button-disabled-bg-color);border-color:var(--ep-button-disabled-border-color)}.ep-button.is-loading{position:relative;pointer-events:none}.ep-button.is-loading:before{z-index:1;pointer-events:none;content:"";position:absolute;left:-1px;top:-1px;right:-1px;bottom:-1px;border-radius:inherit;background-color:var(--ep-mask-color-extra-light)}.ep-button.is-round{border-radius:var(--ep-border-radius-round)}.ep-button.is-circle{border-radius:50%;padding:8px}.ep-button.is-text{color:var(--ep-button-text-color);border:0 solid transparent;background-color:transparent}.ep-button.is-text.is-disabled{color:var(--ep-button-disabled-text-color);background-color:transparent!important}.ep-button.is-text:not(.is-disabled):hover,.ep-button.is-text:not(.is-disabled):focus{background-color:var(--ep-fill-color-light)}.ep-button.is-text:not(.is-disabled):focus-visible{outline:2px solid var(--ep-button-outline-color);outline-offset:1px}.ep-button.is-text:not(.is-disabled):active{background-color:var(--ep-fill-color)}.ep-button.is-text:not(.is-disabled).is-has-bg{background-color:var(--ep-fill-color-light)}.ep-button.is-text:not(.is-disabled).is-has-bg:hover,.ep-button.is-text:not(.is-disabled).is-has-bg:focus{background-color:var(--ep-fill-color)}.ep-button.is-text:not(.is-disabled).is-has-bg:active{background-color:var(--ep-fill-color-dark)}.ep-button__text--expand{letter-spacing:.3em;margin-right:-.3em}.ep-button.is-link{border-color:transparent;color:var(--ep-button-text-color);background:transparent;padding:2px;height:auto}.ep-button.is-link:hover,.ep-button.is-link:focus{color:var(--ep-button-hover-link-text-color)}.ep-button.is-link.is-disabled{color:var(--ep-button-disabled-text-color);background-color:transparent!important;border-color:transparent!important}.ep-button.is-link:not(.is-disabled):hover,.ep-button.is-link:not(.is-disabled):focus{border-color:transparent;background-color:transparent}.ep-button.is-link:not(.is-disabled):active{color:var(--ep-button-active-color);border-color:transparent;background-color:transparent}.ep-button--text{border-color:transparent;background:transparent;color:var(--ep-color-primary);padding-left:0;padding-right:0}.ep-button--text.is-disabled{color:var(--ep-button-disabled-text-color);background-color:transparent!important;border-color:transparent!important}.ep-button--text:not(.is-disabled):hover,.ep-button--text:not(.is-disabled):focus{color:var(--ep-color-primary-light-3);border-color:transparent;background-color:transparent}.ep-button--text:not(.is-disabled):active{color:var(--ep-color-primary-dark-2);border-color:transparent;background-color:transparent}.ep-button__link--expand{letter-spacing:.3em;margin-right:-.3em}.ep-button--primary{--ep-button-text-color: var(--ep-color-white);--ep-button-bg-color: var(--ep-color-primary);--ep-button-border-color: var(--ep-color-primary);--ep-button-outline-color: var(--ep-color-primary-light-5);--ep-button-active-color: var(--ep-color-primary-dark-2);--ep-button-hover-text-color: var(--ep-color-white);--ep-button-hover-link-text-color: var(--ep-color-primary-light-5);--ep-button-hover-bg-color: var(--ep-color-primary-light-3);--ep-button-hover-border-color: var(--ep-color-primary-light-3);--ep-button-active-bg-color: var(--ep-color-primary-dark-2);--ep-button-active-border-color: var(--ep-color-primary-dark-2);--ep-button-disabled-text-color: var(--ep-color-white);--ep-button-disabled-bg-color: var(--ep-color-primary-light-5);--ep-button-disabled-border-color: var(--ep-color-primary-light-5)}.ep-button--primary.is-plain,.ep-button--primary.is-text,.ep-button--primary.is-link{--ep-button-text-color: var(--ep-color-primary);--ep-button-bg-color: var(--ep-color-primary-light-9);--ep-button-border-color: var(--ep-color-primary-light-5);--ep-button-hover-text-color: var(--ep-color-white);--ep-button-hover-bg-color: var(--ep-color-primary);--ep-button-hover-border-color: var(--ep-color-primary);--ep-button-active-text-color: var(--ep-color-white)}.ep-button--primary.is-plain.is-disabled,.ep-button--primary.is-plain.is-disabled:hover,.ep-button--primary.is-plain.is-disabled:focus,.ep-button--primary.is-plain.is-disabled:active,.ep-button--primary.is-text.is-disabled,.ep-button--primary.is-text.is-disabled:hover,.ep-button--primary.is-text.is-disabled:focus,.ep-button--primary.is-text.is-disabled:active,.ep-button--primary.is-link.is-disabled,.ep-button--primary.is-link.is-disabled:hover,.ep-button--primary.is-link.is-disabled:focus,.ep-button--primary.is-link.is-disabled:active{color:var(--ep-color-primary-light-5);background-color:var(--ep-color-primary-light-9);border-color:var(--ep-color-primary-light-8)}.ep-button--success{--ep-button-text-color: var(--ep-color-white);--ep-button-bg-color: var(--ep-color-success);--ep-button-border-color: var(--ep-color-success);--ep-button-outline-color: var(--ep-color-success-light-5);--ep-button-active-color: var(--ep-color-success-dark-2);--ep-button-hover-text-color: var(--ep-color-white);--ep-button-hover-link-text-color: var(--ep-color-success-light-5);--ep-button-hover-bg-color: var(--ep-color-success-light-3);--ep-button-hover-border-color: var(--ep-color-success-light-3);--ep-button-active-bg-color: var(--ep-color-success-dark-2);--ep-button-active-border-color: var(--ep-color-success-dark-2);--ep-button-disabled-text-color: var(--ep-color-white);--ep-button-disabled-bg-color: var(--ep-color-success-light-5);--ep-button-disabled-border-color: var(--ep-color-success-light-5)}.ep-button--success.is-plain,.ep-button--success.is-text,.ep-button--success.is-link{--ep-button-text-color: var(--ep-color-success);--ep-button-bg-color: var(--ep-color-success-light-9);--ep-button-border-color: var(--ep-color-success-light-5);--ep-button-hover-text-color: var(--ep-color-white);--ep-button-hover-bg-color: var(--ep-color-success);--ep-button-hover-border-color: var(--ep-color-success);--ep-button-active-text-color: var(--ep-color-white)}.ep-button--success.is-plain.is-disabled,.ep-button--success.is-plain.is-disabled:hover,.ep-button--success.is-plain.is-disabled:focus,.ep-button--success.is-plain.is-disabled:active,.ep-button--success.is-text.is-disabled,.ep-button--success.is-text.is-disabled:hover,.ep-button--success.is-text.is-disabled:focus,.ep-button--success.is-text.is-disabled:active,.ep-button--success.is-link.is-disabled,.ep-button--success.is-link.is-disabled:hover,.ep-button--success.is-link.is-disabled:focus,.ep-button--success.is-link.is-disabled:active{color:var(--ep-color-success-light-5);background-color:var(--ep-color-success-light-9);border-color:var(--ep-color-success-light-8)}.ep-button--warning{--ep-button-text-color: var(--ep-color-white);--ep-button-bg-color: var(--ep-color-warning);--ep-button-border-color: var(--ep-color-warning);--ep-button-outline-color: var(--ep-color-warning-light-5);--ep-button-active-color: var(--ep-color-warning-dark-2);--ep-button-hover-text-color: var(--ep-color-white);--ep-button-hover-link-text-color: var(--ep-color-warning-light-5);--ep-button-hover-bg-color: var(--ep-color-warning-light-3);--ep-button-hover-border-color: var(--ep-color-warning-light-3);--ep-button-active-bg-color: var(--ep-color-warning-dark-2);--ep-button-active-border-color: var(--ep-color-warning-dark-2);--ep-button-disabled-text-color: var(--ep-color-white);--ep-button-disabled-bg-color: var(--ep-color-warning-light-5);--ep-button-disabled-border-color: var(--ep-color-warning-light-5)}.ep-button--warning.is-plain,.ep-button--warning.is-text,.ep-button--warning.is-link{--ep-button-text-color: var(--ep-color-warning);--ep-button-bg-color: var(--ep-color-warning-light-9);--ep-button-border-color: var(--ep-color-warning-light-5);--ep-button-hover-text-color: var(--ep-color-white);--ep-button-hover-bg-color: var(--ep-color-warning);--ep-button-hover-border-color: var(--ep-color-warning);--ep-button-active-text-color: var(--ep-color-white)}.ep-button--warning.is-plain.is-disabled,.ep-button--warning.is-plain.is-disabled:hover,.ep-button--warning.is-plain.is-disabled:focus,.ep-button--warning.is-plain.is-disabled:active,.ep-button--warning.is-text.is-disabled,.ep-button--warning.is-text.is-disabled:hover,.ep-button--warning.is-text.is-disabled:focus,.ep-button--warning.is-text.is-disabled:active,.ep-button--warning.is-link.is-disabled,.ep-button--warning.is-link.is-disabled:hover,.ep-button--warning.is-link.is-disabled:focus,.ep-button--warning.is-link.is-disabled:active{color:var(--ep-color-warning-light-5);background-color:var(--ep-color-warning-light-9);border-color:var(--ep-color-warning-light-8)}.ep-button--danger{--ep-button-text-color: var(--ep-color-white);--ep-button-bg-color: var(--ep-color-danger);--ep-button-border-color: var(--ep-color-danger);--ep-button-outline-color: var(--ep-color-danger-light-5);--ep-button-active-color: var(--ep-color-danger-dark-2);--ep-button-hover-text-color: var(--ep-color-white);--ep-button-hover-link-text-color: var(--ep-color-danger-light-5);--ep-button-hover-bg-color: var(--ep-color-danger-light-3);--ep-button-hover-border-color: var(--ep-color-danger-light-3);--ep-button-active-bg-color: var(--ep-color-danger-dark-2);--ep-button-active-border-color: var(--ep-color-danger-dark-2);--ep-button-disabled-text-color: var(--ep-color-white);--ep-button-disabled-bg-color: var(--ep-color-danger-light-5);--ep-button-disabled-border-color: var(--ep-color-danger-light-5)}.ep-button--danger.is-plain,.ep-button--danger.is-text,.ep-button--danger.is-link{--ep-button-text-color: var(--ep-color-danger);--ep-button-bg-color: var(--ep-color-danger-light-9);--ep-button-border-color: var(--ep-color-danger-light-5);--ep-button-hover-text-color: var(--ep-color-white);--ep-button-hover-bg-color: var(--ep-color-danger);--ep-button-hover-border-color: var(--ep-color-danger);--ep-button-active-text-color: var(--ep-color-white)}.ep-button--danger.is-plain.is-disabled,.ep-button--danger.is-plain.is-disabled:hover,.ep-button--danger.is-plain.is-disabled:focus,.ep-button--danger.is-plain.is-disabled:active,.ep-button--danger.is-text.is-disabled,.ep-button--danger.is-text.is-disabled:hover,.ep-button--danger.is-text.is-disabled:focus,.ep-button--danger.is-text.is-disabled:active,.ep-button--danger.is-link.is-disabled,.ep-button--danger.is-link.is-disabled:hover,.ep-button--danger.is-link.is-disabled:focus,.ep-button--danger.is-link.is-disabled:active{color:var(--ep-color-danger-light-5);background-color:var(--ep-color-danger-light-9);border-color:var(--ep-color-danger-light-8)}.ep-button--info{--ep-button-text-color: var(--ep-color-white);--ep-button-bg-color: var(--ep-color-info);--ep-button-border-color: var(--ep-color-info);--ep-button-outline-color: var(--ep-color-info-light-5);--ep-button-active-color: var(--ep-color-info-dark-2);--ep-button-hover-text-color: var(--ep-color-white);--ep-button-hover-link-text-color: var(--ep-color-info-light-5);--ep-button-hover-bg-color: var(--ep-color-info-light-3);--ep-button-hover-border-color: var(--ep-color-info-light-3);--ep-button-active-bg-color: var(--ep-color-info-dark-2);--ep-button-active-border-color: var(--ep-color-info-dark-2);--ep-button-disabled-text-color: var(--ep-color-white);--ep-button-disabled-bg-color: var(--ep-color-info-light-5);--ep-button-disabled-border-color: var(--ep-color-info-light-5)}.ep-button--info.is-plain,.ep-button--info.is-text,.ep-button--info.is-link{--ep-button-text-color: var(--ep-color-info);--ep-button-bg-color: var(--ep-color-info-light-9);--ep-button-border-color: var(--ep-color-info-light-5);--ep-button-hover-text-color: var(--ep-color-white);--ep-button-hover-bg-color: var(--ep-color-info);--ep-button-hover-border-color: var(--ep-color-info);--ep-button-active-text-color: var(--ep-color-white)}.ep-button--info.is-plain.is-disabled,.ep-button--info.is-plain.is-disabled:hover,.ep-button--info.is-plain.is-disabled:focus,.ep-button--info.is-plain.is-disabled:active,.ep-button--info.is-text.is-disabled,.ep-button--info.is-text.is-disabled:hover,.ep-button--info.is-text.is-disabled:focus,.ep-button--info.is-text.is-disabled:active,.ep-button--info.is-link.is-disabled,.ep-button--info.is-link.is-disabled:hover,.ep-button--info.is-link.is-disabled:focus,.ep-button--info.is-link.is-disabled:active{color:var(--ep-color-info-light-5);background-color:var(--ep-color-info-light-9);border-color:var(--ep-color-info-light-8)}.ep-button--large{--ep-button-size: 40px;height:var(--ep-button-size);padding:12px 19px;font-size:var(--ep-font-size-base);border-radius:var(--ep-border-radius-base)}.ep-button--large [class*=ep-icon]+span{margin-left:8px}.ep-button--large.is-round{padding:12px 19px}.ep-button--large.is-circle{width:var(--ep-button-size);padding:12px}.ep-button--small{--ep-button-size: 24px;height:var(--ep-button-size);padding:5px 11px;font-size:12px;border-radius:calc(var(--ep-border-radius-base) - 1px)}.ep-button--small [class*=ep-icon]+span{margin-left:4px}.ep-button--small.is-round{padding:5px 11px}.ep-button--small.is-circle{width:var(--ep-button-size);padding:5px}.ep-form{--ep-form-label-font-size: var(--ep-font-size-base)}.ep-form--label-left .ep-form-item__label{justify-content:flex-start}.ep-form--label-top .ep-form-item{display:block}.ep-form--label-top .ep-form-item .ep-form-item__label{display:block;height:auto;text-align:left;margin-bottom:8px;line-height:22px}.ep-form--inline .ep-form-item{display:inline-flex;vertical-align:middle;margin-right:32px}.ep-form--inline.ep-form--label-top{display:flex;flex-wrap:wrap}.ep-form--inline.ep-form--label-top .ep-form-item{display:block}.ep-form--large.ep-form--label-top .ep-form-item .ep-form-item__label{margin-bottom:12px;line-height:22px}.ep-form--default.ep-form--label-top .ep-form-item .ep-form-item__label{margin-bottom:8px;line-height:22px}.ep-form--small.ep-form--label-top .ep-form-item .ep-form-item__label{margin-bottom:4px;line-height:20px}.ep-form-item{display:flex;--font-size: 14px;margin-bottom:18px}.ep-form-item .ep-form-item{margin-bottom:0}.ep-form-item .ep-input__validateIcon{display:none}.ep-form-item--large{--font-size: 14px;--ep-form-label-font-size: var(--font-size);margin-bottom:22px}.ep-form-item--large .ep-form-item__label{height:40px;line-height:40px}.ep-form-item--large .ep-form-item__content{line-height:40px}.ep-form-item--large .ep-form-item__error{padding-top:4px}.ep-form-item--default{--font-size: 14px;--ep-form-label-font-size: var(--font-size);margin-bottom:18px}.ep-form-item--default .ep-form-item__label{height:32px;line-height:32px}.ep-form-item--default .ep-form-item__content{line-height:32px}.ep-form-item--default .ep-form-item__error{padding-top:2px}.ep-form-item--small{--font-size: 12px;--ep-form-label-font-size: var(--font-size);margin-bottom:18px}.ep-form-item--small .ep-form-item__label{height:24px;line-height:24px}.ep-form-item--small .ep-form-item__content{line-height:24px}.ep-form-item--small .ep-form-item__error{padding-top:2px}.ep-form-item__label-wrap{display:flex}.ep-form-item__label{display:inline-flex;justify-content:flex-end;align-items:flex-start;flex:0 0 auto;font-size:var(--ep-form-label-font-size);color:var(--ep-text-color-regular);height:32px;line-height:32px;padding:0 12px 0 0;box-sizing:border-box}.ep-form-item__content{display:flex;flex-wrap:wrap;align-items:center;flex:1;line-height:32px;position:relative;font-size:var(--font-size);min-width:0}.ep-form-item__content .ep-input-group{vertical-align:top}.ep-form-item__error{color:var(--ep-color-danger);font-size:12px;line-height:1;padding-top:2px;position:absolute;top:100%;left:0}.ep-form-item__error--inline{position:relative;top:auto;left:auto;display:inline-block;margin-left:10px}.ep-form-item.is-required:not(.is-no-asterisk).asterisk-left>.ep-form-item__label:before,.ep-form-item.is-required:not(.is-no-asterisk).asterisk-left>.ep-form-item__label-wrap>.ep-form-item__label:before{content:"*";color:var(--ep-color-danger);margin-right:4px}.ep-form-item.is-required:not(.is-no-asterisk).asterisk-right>.ep-form-item__label:after,.ep-form-item.is-required:not(.is-no-asterisk).asterisk-right>.ep-form-item__label-wrap>.ep-form-item__label:after{content:"*";color:var(--ep-color-danger);margin-left:4px}.ep-form-item.is-error .ep-select-v2__wrapper,.ep-form-item.is-error .ep-select-v2__wrapper:focus,.ep-form-item.is-error .ep-textarea__inner,.ep-form-item.is-error .ep-textarea__inner:focus{box-shadow:0 0 0 1px var(--ep-color-danger) inset}.ep-form-item.is-error .ep-input__wrapper{box-shadow:0 0 0 1px var(--ep-color-danger) inset}.ep-form-item.is-error .ep-input-group__append .ep-input__wrapper,.ep-form-item.is-error .ep-input-group__prepend .ep-input__wrapper{box-shadow:0 0 0 1px transparent inset}.ep-form-item.is-error .ep-input__validateIcon{color:var(--ep-color-danger)}.ep-form-item--feedback .ep-input__validateIcon{display:inline-flex}:root{--ep-popup-modal-bg-color: var(--ep-color-black);--ep-popup-modal-opacity: .5}.v-modal-enter{animation:v-modal-in var(--ep-transition-duration-fast) ease}.v-modal-leave{animation:v-modal-out var(--ep-transition-duration-fast) ease forwards}@keyframes v-modal-in{0%{opacity:0}}@keyframes v-modal-out{to{opacity:0}}.v-modal{position:fixed;left:0;top:0;width:100%;height:100%;opacity:var(--ep-popup-modal-opacity);background:var(--ep-popup-modal-bg-color)}.ep-popup-parent--hidden{overflow:hidden}.ep-dialog{--ep-dialog-width: 50%;--ep-dialog-margin-top: 15vh;--ep-dialog-bg-color: var(--ep-bg-color);--ep-dialog-box-shadow: var(--ep-box-shadow);--ep-dialog-title-font-size: var(--ep-font-size-large);--ep-dialog-content-font-size: 14px;--ep-dialog-font-line-height: var(--ep-font-line-height-primary);--ep-dialog-padding-primary: 20px;--ep-dialog-border-radius: var(--ep-border-radius-small);position:relative;margin:var(--ep-dialog-margin-top, 15vh) auto 50px;background:var(--ep-dialog-bg-color);border-radius:var(--ep-dialog-border-radius);box-shadow:var(--ep-dialog-box-shadow);box-sizing:border-box;width:var(--ep-dialog-width, 50%)}.ep-dialog:focus{outline:none!important}.ep-dialog.is-align-center{margin:auto}.ep-dialog.is-fullscreen{--ep-dialog-width: 100%;--ep-dialog-margin-top: 0;margin-bottom:0;height:100%;overflow:auto}.ep-dialog__wrapper{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto;margin:0}.ep-dialog.is-draggable .ep-dialog__header{cursor:move;-webkit-user-select:none;user-select:none}.ep-dialog__header{padding:var(--ep-dialog-padding-primary);padding-bottom:10px;margin-right:16px}.ep-dialog__headerbtn{position:absolute;top:6px;right:0;padding:0;width:54px;height:54px;background:transparent;border:none;outline:none;cursor:pointer;font-size:var(--ep-message-close-size, 16px)}.ep-dialog__headerbtn .ep-dialog__close{color:var(--ep-color-info);font-size:inherit}.ep-dialog__headerbtn:focus .ep-dialog__close,.ep-dialog__headerbtn:hover .ep-dialog__close{color:var(--ep-color-primary)}.ep-dialog__title{line-height:var(--ep-dialog-font-line-height);font-size:var(--ep-dialog-title-font-size);color:var(--ep-text-color-primary)}.ep-dialog__body{padding:calc(var(--ep-dialog-padding-primary) + 10px) var(--ep-dialog-padding-primary);color:var(--ep-text-color-regular);font-size:var(--ep-dialog-content-font-size)}.ep-dialog__footer{padding:var(--ep-dialog-padding-primary);padding-top:10px;text-align:right;box-sizing:border-box}.ep-dialog--center{text-align:center}.ep-dialog--center .ep-dialog__body{text-align:initial;padding:25px calc(var(--ep-dialog-padding-primary) + 5px) 30px}.ep-dialog--center .ep-dialog__footer{text-align:inherit}.ep-overlay-dialog{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto}.dialog-fade-enter-active{animation:modal-fade-in var(--ep-transition-duration)}.dialog-fade-enter-active .ep-overlay-dialog{animation:dialog-fade-in var(--ep-transition-duration)}.dialog-fade-leave-active{animation:modal-fade-out var(--ep-transition-duration)}.dialog-fade-leave-active .ep-overlay-dialog{animation:dialog-fade-out var(--ep-transition-duration)}@keyframes dialog-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes dialog-fade-out{0%{transform:translateZ(0);opacity:1}to{transform:translate3d(0,-20px,0);opacity:0}}@keyframes modal-fade-in{0%{opacity:0}to{opacity:1}}@keyframes modal-fade-out{0%{opacity:1}to{opacity:0}}.ep-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:2000;height:100%;background-color:var(--ep-overlay-color-lighter);overflow:auto}.ep-overlay .ep-overlay-root{height:0}.ep-table{--ep-table-border-color: var(--ep-border-color-lighter);--ep-table-border: 1px solid var(--ep-table-border-color);--ep-table-text-color: var(--ep-text-color-regular);--ep-table-header-text-color: var(--ep-text-color-secondary);--ep-table-row-hover-bg-color: var(--ep-fill-color-light);--ep-table-current-row-bg-color: var(--ep-color-primary-light-9);--ep-table-header-bg-color: var(--ep-bg-color);--ep-table-fixed-box-shadow: var(--ep-box-shadow-light);--ep-table-bg-color: var(--ep-fill-color-blank);--ep-table-tr-bg-color: var(--ep-fill-color-blank);--ep-table-expanded-cell-bg-color: var(--ep-fill-color-blank);--ep-table-fixed-left-column: inset 10px 0 10px -10px rgba(0, 0, 0, .15);--ep-table-fixed-right-column: inset -10px 0 10px -10px rgba(0, 0, 0, .15);position:relative;overflow:hidden;box-sizing:border-box;height:-moz-fit-content;height:fit-content;width:100%;max-width:100%;background-color:var(--ep-table-bg-color);font-size:14px;color:var(--ep-table-text-color)}.ep-table__inner-wrapper{position:relative;display:flex;flex-direction:column;height:100%}.ep-table__inner-wrapper:before{left:0;bottom:0px;width:100%;height:1px}.ep-table.has-footer.ep-table--scrollable-y tr:last-child td.ep-table__cell,.ep-table.has-footer.ep-table--fluid-height tr:last-child td.ep-table__cell{border-bottom-color:transparent}.ep-table__empty-block{position:sticky;left:0;min-height:60px;text-align:center;width:100%;display:flex;justify-content:center;align-items:center}.ep-table__empty-text{line-height:60px;width:50%;color:var(--ep-text-color-secondary)}.ep-table__expand-column .cell{padding:0;text-align:center;-webkit-user-select:none;user-select:none}.ep-table__expand-icon{position:relative;cursor:pointer;color:var(--ep-text-color-regular);font-size:12px;transition:transform var(--ep-transition-duration-fast) ease-in-out;height:20px}.ep-table__expand-icon--expanded{transform:rotate(90deg)}.ep-table__expand-icon>.ep-icon{font-size:12px}.ep-table__expanded-cell{background-color:var(--ep-table-expanded-cell-bg-color)}.ep-table__expanded-cell[class*=cell]{padding:20px 50px}.ep-table__expanded-cell:hover{background-color:transparent!important}.ep-table__placeholder{display:inline-block;width:20px}.ep-table__append-wrapper{overflow:hidden}.ep-table--fit{border-right:0;border-bottom:0}.ep-table--fit .ep-table__cell.gutter{border-right-width:1px}.ep-table thead{color:var(--ep-table-header-text-color);font-weight:500}.ep-table thead.is-group th.ep-table__cell{background:var(--ep-fill-color-light)}.ep-table .ep-table__cell{padding:8px 0;min-width:0;box-sizing:border-box;text-overflow:ellipsis;vertical-align:middle;position:relative;text-align:left;z-index:1}.ep-table .ep-table__cell.is-center{text-align:center}.ep-table .ep-table__cell.is-right{text-align:right}.ep-table .ep-table__cell.gutter{width:15px;border-right-width:0;border-bottom-width:0;padding:0}.ep-table .ep-table__cell.is-hidden>*{visibility:hidden}.ep-table .cell{box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:normal;word-break:break-all;line-height:23px;padding:0 12px}.ep-table .cell.ep-tooltip{white-space:nowrap;min-width:50px}.ep-table--large{font-size:var(--ep-font-size-base)}.ep-table--large .ep-table__cell{padding:12px 0}.ep-table--large .cell{padding:0 16px}.ep-table--default{font-size:14px}.ep-table--default .ep-table__cell{padding:8px 0}.ep-table--default .cell{padding:0 12px}.ep-table--small{font-size:12px}.ep-table--small .ep-table__cell{padding:4px 0}.ep-table--small .cell{padding:0 8px}.ep-table tr{background-color:var(--ep-table-tr-bg-color)}.ep-table tr input[type=checkbox]{margin:0}.ep-table th.ep-table__cell.is-leaf,.ep-table td.ep-table__cell{border-bottom:var(--ep-table-border)}.ep-table th.ep-table__cell.is-sortable{cursor:pointer}.ep-table th.ep-table__cell{-webkit-user-select:none;user-select:none;background-color:var(--ep-table-header-bg-color)}.ep-table th.ep-table__cell>.cell.highlight{color:var(--ep-color-primary)}.ep-table th.ep-table__cell.required>div:before{display:inline-block;content:"";width:8px;height:8px;border-radius:50%;background:#ff4d51;margin-right:5px;vertical-align:middle}.ep-table td.ep-table__cell div{box-sizing:border-box}.ep-table td.ep-table__cell.gutter{width:0}.ep-table__footer-wrapper{border-top:var(--ep-table-border)}.ep-table--border:after,.ep-table--border:before,.ep-table--border .ep-table__inner-wrapper:after,.ep-table__inner-wrapper:before{content:"";position:absolute;background-color:var(--ep-table-border-color);z-index:3}.ep-table--border .ep-table__inner-wrapper:after{left:0;top:0;width:100%;height:1px}.ep-table--border:before{top:-1px;left:0;width:1px;height:100%}.ep-table--border:after{top:-1px;right:0;width:1px;height:100%}.ep-table--border .ep-table__inner-wrapper{border-right:none;border-bottom:none}.ep-table--border .ep-table__footer-wrapper{position:relative;flex-shrink:0}.ep-table--border .ep-table__cell{border-right:var(--ep-table-border)}.ep-table--border th.ep-table__cell.gutter:last-of-type{border-bottom:var(--ep-table-border);border-bottom-width:1px}.ep-table--border th.ep-table__cell{border-bottom:var(--ep-table-border)}.ep-table--hidden{visibility:hidden}.ep-table__header-wrapper,.ep-table__body-wrapper,.ep-table__footer-wrapper{width:100%}.ep-table__header-wrapper tr td.ep-table-fixed-column--left,.ep-table__header-wrapper tr td.ep-table-fixed-column--right,.ep-table__header-wrapper tr th.ep-table-fixed-column--left,.ep-table__header-wrapper tr th.ep-table-fixed-column--right,.ep-table__body-wrapper tr td.ep-table-fixed-column--left,.ep-table__body-wrapper tr td.ep-table-fixed-column--right,.ep-table__body-wrapper tr th.ep-table-fixed-column--left,.ep-table__body-wrapper tr th.ep-table-fixed-column--right,.ep-table__footer-wrapper tr td.ep-table-fixed-column--left,.ep-table__footer-wrapper tr td.ep-table-fixed-column--right,.ep-table__footer-wrapper tr th.ep-table-fixed-column--left,.ep-table__footer-wrapper tr th.ep-table-fixed-column--right{position:sticky!important;z-index:2;background:var(--ep-bg-color)}.ep-table__header-wrapper tr td.ep-table-fixed-column--left.is-last-column:before,.ep-table__header-wrapper tr td.ep-table-fixed-column--left.is-first-column:before,.ep-table__header-wrapper tr td.ep-table-fixed-column--right.is-last-column:before,.ep-table__header-wrapper tr td.ep-table-fixed-column--right.is-first-column:before,.ep-table__header-wrapper tr th.ep-table-fixed-column--left.is-last-column:before,.ep-table__header-wrapper tr th.ep-table-fixed-column--left.is-first-column:before,.ep-table__header-wrapper tr th.ep-table-fixed-column--right.is-last-column:before,.ep-table__header-wrapper tr th.ep-table-fixed-column--right.is-first-column:before,.ep-table__body-wrapper tr td.ep-table-fixed-column--left.is-last-column:before,.ep-table__body-wrapper tr td.ep-table-fixed-column--left.is-first-column:before,.ep-table__body-wrapper tr td.ep-table-fixed-column--right.is-last-column:before,.ep-table__body-wrapper tr td.ep-table-fixed-column--right.is-first-column:before,.ep-table__body-wrapper tr th.ep-table-fixed-column--left.is-last-column:before,.ep-table__body-wrapper tr th.ep-table-fixed-column--left.is-first-column:before,.ep-table__body-wrapper tr th.ep-table-fixed-column--right.is-last-column:before,.ep-table__body-wrapper tr th.ep-table-fixed-column--right.is-first-column:before,.ep-table__footer-wrapper tr td.ep-table-fixed-column--left.is-last-column:before,.ep-table__footer-wrapper tr td.ep-table-fixed-column--left.is-first-column:before,.ep-table__footer-wrapper tr td.ep-table-fixed-column--right.is-last-column:before,.ep-table__footer-wrapper tr td.ep-table-fixed-column--right.is-first-column:before,.ep-table__footer-wrapper tr th.ep-table-fixed-column--left.is-last-column:before,.ep-table__footer-wrapper tr th.ep-table-fixed-column--left.is-first-column:before,.ep-table__footer-wrapper tr th.ep-table-fixed-column--right.is-last-column:before,.ep-table__footer-wrapper tr th.ep-table-fixed-column--right.is-first-column:before{content:"";position:absolute;top:0px;width:10px;bottom:-1px;overflow-x:hidden;overflow-y:hidden;box-shadow:none;touch-action:none;pointer-events:none}.ep-table__header-wrapper tr td.ep-table-fixed-column--left.is-first-column:before,.ep-table__header-wrapper tr td.ep-table-fixed-column--right.is-first-column:before,.ep-table__header-wrapper tr th.ep-table-fixed-column--left.is-first-column:before,.ep-table__header-wrapper tr th.ep-table-fixed-column--right.is-first-column:before,.ep-table__body-wrapper tr td.ep-table-fixed-column--left.is-first-column:before,.ep-table__body-wrapper tr td.ep-table-fixed-column--right.is-first-column:before,.ep-table__body-wrapper tr th.ep-table-fixed-column--left.is-first-column:before,.ep-table__body-wrapper tr th.ep-table-fixed-column--right.is-first-column:before,.ep-table__footer-wrapper tr td.ep-table-fixed-column--left.is-first-column:before,.ep-table__footer-wrapper tr td.ep-table-fixed-column--right.is-first-column:before,.ep-table__footer-wrapper tr th.ep-table-fixed-column--left.is-first-column:before,.ep-table__footer-wrapper tr th.ep-table-fixed-column--right.is-first-column:before{left:-10px}.ep-table__header-wrapper tr td.ep-table-fixed-column--left.is-last-column:before,.ep-table__header-wrapper tr td.ep-table-fixed-column--right.is-last-column:before,.ep-table__header-wrapper tr th.ep-table-fixed-column--left.is-last-column:before,.ep-table__header-wrapper tr th.ep-table-fixed-column--right.is-last-column:before,.ep-table__body-wrapper tr td.ep-table-fixed-column--left.is-last-column:before,.ep-table__body-wrapper tr td.ep-table-fixed-column--right.is-last-column:before,.ep-table__body-wrapper tr th.ep-table-fixed-column--left.is-last-column:before,.ep-table__body-wrapper tr th.ep-table-fixed-column--right.is-last-column:before,.ep-table__footer-wrapper tr td.ep-table-fixed-column--left.is-last-column:before,.ep-table__footer-wrapper tr td.ep-table-fixed-column--right.is-last-column:before,.ep-table__footer-wrapper tr th.ep-table-fixed-column--left.is-last-column:before,.ep-table__footer-wrapper tr th.ep-table-fixed-column--right.is-last-column:before{right:-10px;box-shadow:none}.ep-table__header-wrapper tr td.ep-table__fixed-right-patch,.ep-table__header-wrapper tr th.ep-table__fixed-right-patch,.ep-table__body-wrapper tr td.ep-table__fixed-right-patch,.ep-table__body-wrapper tr th.ep-table__fixed-right-patch,.ep-table__footer-wrapper tr td.ep-table__fixed-right-patch,.ep-table__footer-wrapper tr th.ep-table__fixed-right-patch{position:sticky!important;z-index:2;background:#fff;right:0}.ep-table__header-wrapper{flex-shrink:0}.ep-table__header-wrapper tr th.ep-table-fixed-column--left,.ep-table__header-wrapper tr th.ep-table-fixed-column--right{background-color:var(--ep-table-header-bg-color)}.ep-table__header,.ep-table__body,.ep-table__footer{table-layout:fixed;border-collapse:separate}.ep-table__header-wrapper,.ep-table__footer-wrapper{overflow:hidden}.ep-table__header-wrapper tbody td.ep-table__cell,.ep-table__footer-wrapper tbody td.ep-table__cell{background-color:var(--ep-table-row-hover-bg-color);color:var(--ep-table-text-color)}.ep-table__header-wrapper .ep-table-column--selection>.cell,.ep-table__body-wrapper .ep-table-column--selection>.cell{display:inline-flex;align-items:center;height:23px}.ep-table__header-wrapper .ep-table-column--selection .ep-checkbox,.ep-table__body-wrapper .ep-table-column--selection .ep-checkbox{height:unset}.ep-table.is-scrolling-left .ep-table-fixed-column--right.is-first-column:before{box-shadow:var(--ep-table-fixed-right-column)}.ep-table.is-scrolling-left.ep-table--border .ep-table-fixed-column--left.is-last-column.ep-table__cell{border-right:var(--ep-table-border)}.ep-table.is-scrolling-left th.ep-table-fixed-column--left{background-color:var(--ep-table-header-bg-color)}.ep-table.is-scrolling-right .ep-table-fixed-column--left.is-last-column:before{box-shadow:var(--ep-table-fixed-left-column)}.ep-table.is-scrolling-right .ep-table-fixed-column--left.is-last-column.ep-table__cell{border-right:none}.ep-table.is-scrolling-right th.ep-table-fixed-column--right{background-color:var(--ep-table-header-bg-color)}.ep-table.is-scrolling-middle .ep-table-fixed-column--left.is-last-column.ep-table__cell{border-right:none}.ep-table.is-scrolling-middle .ep-table-fixed-column--right.is-first-column:before{box-shadow:var(--ep-table-fixed-right-column)}.ep-table.is-scrolling-middle .ep-table-fixed-column--left.is-last-column:before{box-shadow:var(--ep-table-fixed-left-column)}.ep-table.is-scrolling-none .ep-table-fixed-column--left.is-first-column:before,.ep-table.is-scrolling-none .ep-table-fixed-column--left.is-last-column:before,.ep-table.is-scrolling-none .ep-table-fixed-column--right.is-first-column:before,.ep-table.is-scrolling-none .ep-table-fixed-column--right.is-last-column:before{box-shadow:none}.ep-table.is-scrolling-none th.ep-table-fixed-column--left,.ep-table.is-scrolling-none th.ep-table-fixed-column--right{background-color:var(--ep-table-header-bg-color)}.ep-table__body-wrapper{overflow:hidden;position:relative;flex:1}.ep-table__body-wrapper .ep-scrollbar__bar{z-index:2}.ep-table .caret-wrapper{display:inline-flex;flex-direction:column;align-items:center;height:14px;width:24px;vertical-align:middle;cursor:pointer;overflow:initial;position:relative}.ep-table .sort-caret{width:0;height:0;border:solid 5px transparent;position:absolute;left:7px}.ep-table .sort-caret.ascending{border-bottom-color:var(--ep-text-color-placeholder);top:-5px}.ep-table .sort-caret.descending{border-top-color:var(--ep-text-color-placeholder);bottom:-3px}.ep-table .ascending .sort-caret.ascending{border-bottom-color:var(--ep-color-primary)}.ep-table .descending .sort-caret.descending{border-top-color:var(--ep-color-primary)}.ep-table .hidden-columns{visibility:hidden;position:absolute;z-index:-1}.ep-table--striped .ep-table__body tr.ep-table__row--striped td.ep-table__cell{background:var(--ep-fill-color-lighter)}.ep-table--striped .ep-table__body tr.ep-table__row--striped.current-row td.ep-table__cell{background-color:var(--ep-table-current-row-bg-color)}.ep-table__body tr.hover-row>td.ep-table__cell,.ep-table__body tr.hover-row.current-row>td.ep-table__cell,.ep-table__body tr.hover-row.ep-table__row--striped>td.ep-table__cell,.ep-table__body tr.hover-row.ep-table__row--striped.current-row>td.ep-table__cell{background-color:var(--ep-table-row-hover-bg-color)}.ep-table__body tr.current-row>td.ep-table__cell{background-color:var(--ep-table-current-row-bg-color)}.ep-table__column-resize-proxy{position:absolute;left:200px;top:0;bottom:0;width:0;border-left:var(--ep-table-border);z-index:10}.ep-table__column-filter-trigger{display:inline-block;cursor:pointer}.ep-table__column-filter-trigger i{color:var(--ep-color-info);font-size:14px;vertical-align:middle}.ep-table__border-left-patch{top:0;left:0;width:1px;height:100%;z-index:3;position:absolute;background-color:var(--ep-table-border-color)}.ep-table__border-bottom-patch{left:0;height:1px;z-index:3;position:absolute;background-color:var(--ep-table-border-color)}.ep-table__border-right-patch{top:0;height:100%;width:1px;z-index:3;position:absolute;background-color:var(--ep-table-border-color)}.ep-table--enable-row-transition .ep-table__body td.ep-table__cell{transition:background-color .25s ease}.ep-table--enable-row-hover .ep-table__body tr:hover>td.ep-table__cell{background-color:var(--ep-table-row-hover-bg-color)}.ep-table [class*=ep-table__row--level] .ep-table__expand-icon{display:inline-block;width:12px;line-height:12px;height:12px;text-align:center;margin-right:8px}.ep-table .ep-table.ep-table--border .ep-table__cell{border-right:var(--ep-table-border)}.ep-table:not(.ep-table--border) .ep-table__cell{border-right:none}.ep-table:not(.ep-table--border)>.ep-table__inner-wrapper:after{content:none}.ep-checkbox{--ep-checkbox-font-size: 14px;--ep-checkbox-font-weight: var(--ep-font-weight-primary);--ep-checkbox-text-color: var(--ep-text-color-regular);--ep-checkbox-input-height: 14px;--ep-checkbox-input-width: 14px;--ep-checkbox-border-radius: var(--ep-border-radius-small);--ep-checkbox-bg-color: var(--ep-fill-color-blank);--ep-checkbox-input-border: var(--ep-border);--ep-checkbox-disabled-border-color: var(--ep-border-color);--ep-checkbox-disabled-input-fill: var(--ep-fill-color-light);--ep-checkbox-disabled-icon-color: var(--ep-text-color-placeholder);--ep-checkbox-disabled-checked-input-fill: var(--ep-border-color-extra-light);--ep-checkbox-disabled-checked-input-border-color: var(--ep-border-color);--ep-checkbox-disabled-checked-icon-color: var(--ep-text-color-placeholder);--ep-checkbox-checked-text-color: var(--ep-color-primary);--ep-checkbox-checked-input-border-color: var(--ep-color-primary);--ep-checkbox-checked-bg-color: var(--ep-color-primary);--ep-checkbox-checked-icon-color: var(--ep-color-white);--ep-checkbox-input-border-color-hover: var(--ep-color-primary);color:var(--ep-checkbox-text-color);font-weight:var(--ep-checkbox-font-weight);font-size:var(--ep-font-size-base);position:relative;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;-webkit-user-select:none;user-select:none;margin-right:30px;height:32px}.ep-checkbox.is-disabled{cursor:not-allowed}.ep-checkbox.is-bordered{padding:0 15px 0 9px;border-radius:var(--ep-border-radius-base);border:var(--ep-border);box-sizing:border-box}.ep-checkbox.is-bordered.is-checked{border-color:var(--ep-color-primary)}.ep-checkbox.is-bordered.is-disabled{border-color:var(--ep-border-color-lighter)}.ep-checkbox.is-bordered.ep-checkbox--large{padding:0 19px 0 11px;border-radius:var(--ep-border-radius-base)}.ep-checkbox.is-bordered.ep-checkbox--large .ep-checkbox__label{font-size:var(--ep-font-size-base)}.ep-checkbox.is-bordered.ep-checkbox--large .ep-checkbox__inner{height:14px;width:14px}.ep-checkbox.is-bordered.ep-checkbox--small{padding:0 11px 0 7px;border-radius:calc(var(--ep-border-radius-base) - 1px)}.ep-checkbox.is-bordered.ep-checkbox--small .ep-checkbox__label{font-size:12px}.ep-checkbox.is-bordered.ep-checkbox--small .ep-checkbox__inner{height:12px;width:12px}.ep-checkbox.is-bordered.ep-checkbox--small .ep-checkbox__inner:after{height:6px;width:2px}.ep-checkbox input:focus-visible+.ep-checkbox__inner{outline:2px solid var(--ep-checkbox-input-border-color-hover);outline-offset:1px;border-radius:var(--ep-checkbox-border-radius)}.ep-checkbox__input{white-space:nowrap;cursor:pointer;outline:none;display:inline-flex;position:relative}.ep-checkbox__input.is-disabled .ep-checkbox__inner{background-color:var(--ep-checkbox-disabled-input-fill);border-color:var(--ep-checkbox-disabled-border-color);cursor:not-allowed}.ep-checkbox__input.is-disabled .ep-checkbox__inner:after{cursor:not-allowed;border-color:var(--ep-checkbox-disabled-icon-color)}.ep-checkbox__input.is-disabled.is-checked .ep-checkbox__inner{background-color:var(--ep-checkbox-disabled-checked-input-fill);border-color:var(--ep-checkbox-disabled-checked-input-border-color)}.ep-checkbox__input.is-disabled.is-checked .ep-checkbox__inner:after{border-color:var(--ep-checkbox-disabled-checked-icon-color)}.ep-checkbox__input.is-disabled.is-indeterminate .ep-checkbox__inner{background-color:var(--ep-checkbox-disabled-checked-input-fill);border-color:var(--ep-checkbox-disabled-checked-input-border-color)}.ep-checkbox__input.is-disabled.is-indeterminate .ep-checkbox__inner:before{background-color:var(--ep-checkbox-disabled-checked-icon-color);border-color:var(--ep-checkbox-disabled-checked-icon-color)}.ep-checkbox__input.is-disabled+span.ep-checkbox__label{color:var(--ep-disabled-text-color);cursor:not-allowed}.ep-checkbox__input.is-checked .ep-checkbox__inner{background-color:var(--ep-checkbox-checked-bg-color);border-color:var(--ep-checkbox-checked-input-border-color)}.ep-checkbox__input.is-checked .ep-checkbox__inner:after{transform:rotate(45deg) scaleY(1)}.ep-checkbox__input.is-checked+.ep-checkbox__label{color:var(--ep-checkbox-checked-text-color)}.ep-checkbox__input.is-focus:not(.is-checked) .ep-checkbox__original:not(:focus-visible){border-color:var(--ep-checkbox-input-border-color-hover)}.ep-checkbox__input.is-indeterminate .ep-checkbox__inner{background-color:var(--ep-checkbox-checked-bg-color);border-color:var(--ep-checkbox-checked-input-border-color)}.ep-checkbox__input.is-indeterminate .ep-checkbox__inner:before{content:"";position:absolute;display:block;background-color:var(--ep-checkbox-checked-icon-color);height:2px;transform:scale(.5);left:0;right:0;top:5px}.ep-checkbox__input.is-indeterminate .ep-checkbox__inner:after{display:none}.ep-checkbox__inner{display:inline-block;position:relative;border:var(--ep-checkbox-input-border);border-radius:var(--ep-checkbox-border-radius);box-sizing:border-box;width:var(--ep-checkbox-input-width);height:var(--ep-checkbox-input-height);background-color:var(--ep-checkbox-bg-color);z-index:var(--ep-index-normal);transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46),outline .25s cubic-bezier(.71,-.46,.29,1.46)}.ep-checkbox__inner:hover{border-color:var(--ep-checkbox-input-border-color-hover)}.ep-checkbox__inner:after{box-sizing:content-box;content:"";border:1px solid var(--ep-checkbox-checked-icon-color);border-left:0;border-top:0;height:7px;left:4px;position:absolute;top:1px;transform:rotate(45deg) scaleY(0);width:3px;transition:transform .15s ease-in .05s;transform-origin:center}.ep-checkbox__original{opacity:0;outline:none;position:absolute;margin:0;width:0;height:0;z-index:-1}.ep-checkbox__label{display:inline-block;padding-left:8px;line-height:1;font-size:var(--ep-checkbox-font-size)}.ep-checkbox.ep-checkbox--large{height:40px}.ep-checkbox.ep-checkbox--large .ep-checkbox__label{font-size:14px}.ep-checkbox.ep-checkbox--large .ep-checkbox__inner{width:14px;height:14px}.ep-checkbox.ep-checkbox--small{height:24px}.ep-checkbox.ep-checkbox--small .ep-checkbox__label{font-size:12px}.ep-checkbox.ep-checkbox--small .ep-checkbox__inner{width:12px;height:12px}.ep-checkbox.ep-checkbox--small .ep-checkbox__input.is-indeterminate .ep-checkbox__inner:before{top:4px}.ep-checkbox.ep-checkbox--small .ep-checkbox__inner:after{width:2px;height:6px}.ep-checkbox:last-of-type{margin-right:0}.ep-tag{--ep-tag-font-size: 12px;--ep-tag-border-radius: 4px;--ep-tag-border-radius-rounded: 9999px;--ep-tag-bg-color: var(--ep-color-primary-light-9);--ep-tag-border-color: var(--ep-color-primary-light-8);--ep-tag-hover-color: var(--ep-color-primary);--ep-tag-text-color: var(--ep-color-primary);background-color:var(--ep-tag-bg-color);border-color:var(--ep-tag-border-color);color:var(--ep-tag-text-color);display:inline-flex;justify-content:center;align-items:center;height:24px;padding:0 9px;font-size:var(--ep-tag-font-size);line-height:1;border-width:1px;border-style:solid;border-radius:var(--ep-tag-border-radius);box-sizing:border-box;white-space:nowrap;--ep-icon-size: 14px}.ep-tag.ep-tag--primary{--ep-tag-bg-color: var(--ep-color-primary-light-9);--ep-tag-border-color: var(--ep-color-primary-light-8);--ep-tag-hover-color: var(--ep-color-primary)}.ep-tag.ep-tag--success{--ep-tag-bg-color: var(--ep-color-success-light-9);--ep-tag-border-color: var(--ep-color-success-light-8);--ep-tag-hover-color: var(--ep-color-success)}.ep-tag.ep-tag--warning{--ep-tag-bg-color: var(--ep-color-warning-light-9);--ep-tag-border-color: var(--ep-color-warning-light-8);--ep-tag-hover-color: var(--ep-color-warning)}.ep-tag.ep-tag--danger{--ep-tag-bg-color: var(--ep-color-danger-light-9);--ep-tag-border-color: var(--ep-color-danger-light-8);--ep-tag-hover-color: var(--ep-color-danger)}.ep-tag.ep-tag--error{--ep-tag-bg-color: var(--ep-color-error-light-9);--ep-tag-border-color: var(--ep-color-error-light-8);--ep-tag-hover-color: var(--ep-color-error)}.ep-tag.ep-tag--info{--ep-tag-bg-color: var(--ep-color-info-light-9);--ep-tag-border-color: var(--ep-color-info-light-8);--ep-tag-hover-color: var(--ep-color-info)}.ep-tag.ep-tag--primary{--ep-tag-text-color: var(--ep-color-primary)}.ep-tag.ep-tag--success{--ep-tag-text-color: var(--ep-color-success)}.ep-tag.ep-tag--warning{--ep-tag-text-color: var(--ep-color-warning)}.ep-tag.ep-tag--danger{--ep-tag-text-color: var(--ep-color-danger)}.ep-tag.ep-tag--error{--ep-tag-text-color: var(--ep-color-error)}.ep-tag.ep-tag--info{--ep-tag-text-color: var(--ep-color-info)}.ep-tag.is-hit{border-color:var(--ep-color-primary)}.ep-tag.is-round{border-radius:var(--ep-tag-border-radius-rounded)}.ep-tag .ep-tag__close{color:var(--ep-tag-text-color)}.ep-tag .ep-tag__close:hover{color:var(--ep-color-white);background-color:var(--ep-tag-hover-color)}.ep-tag .ep-icon{border-radius:50%;cursor:pointer;font-size:calc(var(--ep-icon-size) - 2px);height:var(--ep-icon-size);width:var(--ep-icon-size)}.ep-tag .ep-tag__close{margin-left:6px}.ep-tag--dark{--ep-tag-bg-color: var(--ep-color-primary);--ep-tag-border-color: var(--ep-color-primary);--ep-tag-hover-color: var(--ep-color-primary-light-3);--ep-tag-text-color: var(--ep-color-white)}.ep-tag--dark.ep-tag--primary{--ep-tag-bg-color: var(--ep-color-primary);--ep-tag-border-color: var(--ep-color-primary);--ep-tag-hover-color: var(--ep-color-primary-light-3)}.ep-tag--dark.ep-tag--success{--ep-tag-bg-color: var(--ep-color-success);--ep-tag-border-color: var(--ep-color-success);--ep-tag-hover-color: var(--ep-color-success-light-3)}.ep-tag--dark.ep-tag--warning{--ep-tag-bg-color: var(--ep-color-warning);--ep-tag-border-color: var(--ep-color-warning);--ep-tag-hover-color: var(--ep-color-warning-light-3)}.ep-tag--dark.ep-tag--danger{--ep-tag-bg-color: var(--ep-color-danger);--ep-tag-border-color: var(--ep-color-danger);--ep-tag-hover-color: var(--ep-color-danger-light-3)}.ep-tag--dark.ep-tag--error{--ep-tag-bg-color: var(--ep-color-error);--ep-tag-border-color: var(--ep-color-error);--ep-tag-hover-color: var(--ep-color-error-light-3)}.ep-tag--dark.ep-tag--info{--ep-tag-bg-color: var(--ep-color-info);--ep-tag-border-color: var(--ep-color-info);--ep-tag-hover-color: var(--ep-color-info-light-3)}.ep-tag--dark.ep-tag--primary,.ep-tag--dark.ep-tag--success,.ep-tag--dark.ep-tag--warning,.ep-tag--dark.ep-tag--danger,.ep-tag--dark.ep-tag--error,.ep-tag--dark.ep-tag--info{--ep-tag-text-color: var(--ep-color-white)}.ep-tag--plain{--ep-tag-border-color: var(--ep-color-primary-light-5);--ep-tag-hover-color: var(--ep-color-primary);--ep-tag-bg-color: var(--ep-fill-color-blank)}.ep-tag--plain.ep-tag--primary{--ep-tag-bg-color: var(--ep-fill-color-blank);--ep-tag-border-color: var(--ep-color-primary-light-5);--ep-tag-hover-color: var(--ep-color-primary)}.ep-tag--plain.ep-tag--success{--ep-tag-bg-color: var(--ep-fill-color-blank);--ep-tag-border-color: var(--ep-color-success-light-5);--ep-tag-hover-color: var(--ep-color-success)}.ep-tag--plain.ep-tag--warning{--ep-tag-bg-color: var(--ep-fill-color-blank);--ep-tag-border-color: var(--ep-color-warning-light-5);--ep-tag-hover-color: var(--ep-color-warning)}.ep-tag--plain.ep-tag--danger{--ep-tag-bg-color: var(--ep-fill-color-blank);--ep-tag-border-color: var(--ep-color-danger-light-5);--ep-tag-hover-color: var(--ep-color-danger)}.ep-tag--plain.ep-tag--error{--ep-tag-bg-color: var(--ep-fill-color-blank);--ep-tag-border-color: var(--ep-color-error-light-5);--ep-tag-hover-color: var(--ep-color-error)}.ep-tag--plain.ep-tag--info{--ep-tag-bg-color: var(--ep-fill-color-blank);--ep-tag-border-color: var(--ep-color-info-light-5);--ep-tag-hover-color: var(--ep-color-info)}.ep-tag.is-closable{padding-right:5px}.ep-tag--large{padding:0 11px;height:32px;--ep-icon-size: 16px}.ep-tag--large .ep-tag__close{margin-left:8px}.ep-tag--large.is-closable{padding-right:7px}.ep-tag--small{padding:0 7px;height:20px;--ep-icon-size: 12px}.ep-tag--small .ep-tag__close{margin-left:4px}.ep-tag--small.is-closable{padding-right:3px}.ep-tag--small .ep-icon-close{transform:scale(.8)}.ep-tag.ep-tag--primary.is-hit{border-color:var(--ep-color-primary)}.ep-tag.ep-tag--success.is-hit{border-color:var(--ep-color-success)}.ep-tag.ep-tag--warning.is-hit{border-color:var(--ep-color-warning)}.ep-tag.ep-tag--danger.is-hit{border-color:var(--ep-color-danger)}.ep-tag.ep-tag--error.is-hit{border-color:var(--ep-color-error)}.ep-tag.ep-tag--info.is-hit{border-color:var(--ep-color-info)}.ep-scrollbar{--ep-scrollbar-opacity: .3;--ep-scrollbar-bg-color: var(--ep-text-color-secondary);--ep-scrollbar-hover-opacity: .5;--ep-scrollbar-hover-bg-color: var(--ep-text-color-secondary);overflow:hidden;position:relative;height:100%}.ep-scrollbar__wrap{overflow:auto;height:100%}.ep-scrollbar__wrap--hidden-default{scrollbar-width:none}.ep-scrollbar__wrap--hidden-default::-webkit-scrollbar{display:none}.ep-scrollbar__thumb{position:relative;display:block;width:0;height:0;cursor:pointer;border-radius:inherit;background-color:var(--ep-scrollbar-bg-color, var(--ep-text-color-secondary));transition:var(--ep-transition-duration) background-color;opacity:var(--ep-scrollbar-opacity, .3)}.ep-scrollbar__thumb:hover{background-color:var(--ep-scrollbar-hover-bg-color, var(--ep-text-color-secondary));opacity:var(--ep-scrollbar-hover-opacity, .5)}.ep-scrollbar__bar{position:absolute;right:2px;bottom:2px;z-index:1;border-radius:4px}.ep-scrollbar__bar.is-vertical{width:6px;top:2px}.ep-scrollbar__bar.is-vertical>div{width:100%}.ep-scrollbar__bar.is-horizontal{height:6px;left:2px}.ep-scrollbar__bar.is-horizontal>div{height:100%}.ep-scrollbar-fade-enter-active{transition:opacity .34s ease-out}.ep-scrollbar-fade-leave-active{transition:opacity .12s ease-out}.ep-scrollbar-fade-enter-from,.ep-scrollbar-fade-leave-active{opacity:0}.ep-table-column--selection .cell{padding-left:14px;padding-right:14px}.ep-table-filter{border:solid 1px var(--ep-border-color-lighter);border-radius:2px;background-color:#fff;box-shadow:var(--ep-box-shadow-light);box-sizing:border-box}.ep-table-filter__list{padding:5px 0;margin:0;list-style:none;min-width:100px}.ep-table-filter__list-item{line-height:36px;padding:0 10px;cursor:pointer;font-size:var(--ep-font-size-base)}.ep-table-filter__list-item:hover{background-color:var(--ep-color-primary-light-9);color:var(--ep-color-primary)}.ep-table-filter__list-item.is-active{background-color:var(--ep-color-primary);color:#fff}.ep-table-filter__content{min-width:100px}.ep-table-filter__bottom{border-top:1px solid var(--ep-border-color-lighter);padding:8px}.ep-table-filter__bottom button{background:transparent;border:none;color:var(--ep-text-color-regular);cursor:pointer;font-size:var(--ep-font-size-small);padding:0 3px}.ep-table-filter__bottom button:hover{color:var(--ep-color-primary)}.ep-table-filter__bottom button:focus{outline:none}.ep-table-filter__bottom button.is-disabled{color:var(--ep-disabled-text-color);cursor:not-allowed}.ep-table-filter__wrap{max-height:280px}.ep-table-filter__checkbox-group{padding:10px}.ep-table-filter__checkbox-group label.ep-checkbox{display:flex;align-items:center;margin-right:5px;margin-bottom:12px;margin-left:5px;height:unset}.ep-table-filter__checkbox-group .ep-checkbox:last-child{margin-bottom:0}.ep-textarea{--ep-input-text-color: var(--ep-text-color-regular);--ep-input-border: var(--ep-border);--ep-input-hover-border: var(--ep-border-color-hover);--ep-input-focus-border: var(--ep-color-primary);--ep-input-transparent-border: 0 0 0 1px transparent inset;--ep-input-border-color: var(--ep-border-color);--ep-input-border-radius: var(--ep-border-radius-base);--ep-input-bg-color: var(--ep-fill-color-blank);--ep-input-icon-color: var(--ep-text-color-placeholder);--ep-input-placeholder-color: var(--ep-text-color-placeholder);--ep-input-hover-border-color: var(--ep-border-color-hover);--ep-input-clear-hover-color: var(--ep-text-color-secondary);--ep-input-focus-border-color: var(--ep-color-primary);position:relative;display:inline-block;width:100%;vertical-align:bottom;font-size:var(--ep-font-size-base)}.ep-textarea__inner{position:relative;display:block;resize:vertical;padding:5px 11px;line-height:1.5;box-sizing:border-box;width:100%;font-size:inherit;font-family:inherit;color:var(--ep-input-text-color, var(--ep-text-color-regular));background-color:var(--ep-input-bg-color, var(--ep-fill-color-blank));background-image:none;-webkit-appearance:none;box-shadow:0 0 0 1px var(--ep-input-border-color, var(--ep-border-color)) inset;border-radius:var(--ep-input-border-radius, var(--ep-border-radius-base));transition:var(--ep-transition-box-shadow);border:none}.ep-textarea__inner::placeholder{color:var(--ep-input-placeholder-color, var(--ep-text-color-placeholder))}.ep-textarea__inner:hover{box-shadow:0 0 0 1px var(--ep-input-hover-border-color) inset}.ep-textarea__inner:focus{outline:none;box-shadow:0 0 0 1px var(--ep-input-focus-border-color) inset}.ep-textarea .ep-input__count{color:var(--ep-color-info);background:var(--ep-fill-color-blank);position:absolute;font-size:12px;line-height:14px;bottom:5px;right:10px}.ep-textarea.is-disabled .ep-textarea__inner{background-color:var(--ep-disabled-bg-color);border-color:var(--ep-disabled-border-color);color:var(--ep-disabled-text-color);cursor:not-allowed}.ep-textarea.is-disabled .ep-textarea__inner::placeholder{color:var(--ep-text-color-placeholder)}.ep-textarea.is-exceed .ep-textarea__inner{box-shadow:0 0 0 1px var(--ep-color-danger) inset}.ep-textarea.is-exceed .ep-input__count{color:var(--ep-color-danger)}.ep-input{--ep-input-text-color: var(--ep-text-color-regular);--ep-input-border: var(--ep-border);--ep-input-hover-border: var(--ep-border-color-hover);--ep-input-focus-border: var(--ep-color-primary);--ep-input-transparent-border: 0 0 0 1px transparent inset;--ep-input-border-color: var(--ep-border-color);--ep-input-border-radius: var(--ep-border-radius-base);--ep-input-bg-color: var(--ep-fill-color-blank);--ep-input-icon-color: var(--ep-text-color-placeholder);--ep-input-placeholder-color: var(--ep-text-color-placeholder);--ep-input-hover-border-color: var(--ep-border-color-hover);--ep-input-clear-hover-color: var(--ep-text-color-secondary);--ep-input-focus-border-color: var(--ep-color-primary);--ep-input-height: var(--ep-component-size);position:relative;font-size:var(--ep-font-size-base);display:inline-flex;width:100%;line-height:var(--ep-input-height);box-sizing:border-box;vertical-align:middle}.ep-input::-webkit-scrollbar{z-index:11;width:6px}.ep-input::-webkit-scrollbar:horizontal{height:6px}.ep-input::-webkit-scrollbar-thumb{border-radius:5px;width:6px;background:var(--ep-text-color-disabled)}.ep-input::-webkit-scrollbar-corner{background:var(--ep-fill-color-blank)}.ep-input::-webkit-scrollbar-track{background:var(--ep-fill-color-blank)}.ep-input::-webkit-scrollbar-track-piece{background:var(--ep-fill-color-blank);width:6px}.ep-input .ep-input__clear,.ep-input .ep-input__password{color:var(--ep-input-icon-color);font-size:14px;cursor:pointer}.ep-input .ep-input__clear:hover,.ep-input .ep-input__password:hover{color:var(--ep-input-clear-hover-color)}.ep-input .ep-input__count{height:100%;display:inline-flex;align-items:center;color:var(--ep-color-info);font-size:12px}.ep-input .ep-input__count .ep-input__count-inner{background:var(--ep-fill-color-blank);line-height:initial;display:inline-block;padding-left:8px}.ep-input__wrapper{display:inline-flex;flex-grow:1;align-items:center;justify-content:center;padding:1px 11px;background-color:var(--ep-input-bg-color, var(--ep-fill-color-blank));background-image:none;border-radius:var(--ep-input-border-radius, var(--ep-border-radius-base));transition:var(--ep-transition-box-shadow);transform:translateZ(0);box-shadow:0 0 0 1px var(--ep-input-border-color, var(--ep-border-color)) inset}.ep-input__wrapper:hover{box-shadow:0 0 0 1px var(--ep-input-hover-border-color) inset}.ep-input__wrapper.is-focus{box-shadow:0 0 0 1px var(--ep-input-focus-border-color) inset}.ep-input__inner{--ep-input-inner-height: calc(var(--ep-input-height, 32px) - 2px);width:100%;flex-grow:1;-webkit-appearance:none;color:var(--ep-input-text-color, var(--ep-text-color-regular));font-size:inherit;height:var(--ep-input-inner-height);line-height:var(--ep-input-inner-height);padding:0;outline:none;border:none;background:none;box-sizing:border-box}.ep-input__inner:focus{outline:none}.ep-input__inner::placeholder{color:var(--ep-input-placeholder-color, var(--ep-text-color-placeholder))}.ep-input__inner[type=password]::-ms-reveal{display:none}.ep-input__prefix{display:inline-flex;white-space:nowrap;flex-shrink:0;flex-wrap:nowrap;height:100%;text-align:center;color:var(--ep-input-icon-color, var(--ep-text-color-placeholder));transition:all var(--ep-transition-duration);pointer-events:none}.ep-input__prefix-inner{pointer-events:all;display:inline-flex;align-items:center;justify-content:center}.ep-input__prefix-inner>:last-child{margin-right:8px}.ep-input__prefix-inner>:first-child,.ep-input__prefix-inner>:first-child.ep-input__icon{margin-left:0}.ep-input__suffix{display:inline-flex;white-space:nowrap;flex-shrink:0;flex-wrap:nowrap;height:100%;text-align:center;color:var(--ep-input-icon-color, var(--ep-text-color-placeholder));transition:all var(--ep-transition-duration);pointer-events:none}.ep-input__suffix-inner{pointer-events:all;display:inline-flex;align-items:center;justify-content:center}.ep-input__suffix-inner>:first-child{margin-left:8px}.ep-input .ep-input__icon{height:inherit;line-height:inherit;display:flex;justify-content:center;align-items:center;transition:all var(--ep-transition-duration);margin-left:8px}.ep-input__validateIcon{pointer-events:none}.ep-input.is-active .ep-input__wrapper{box-shadow:0 0 0 1px var(--ep-input-focus-color, ) inset}.ep-input.is-disabled{cursor:not-allowed}.ep-input.is-disabled .ep-input__wrapper{background-color:var(--ep-disabled-bg-color);box-shadow:0 0 0 1px var(--ep-disabled-border-color) inset}.ep-input.is-disabled .ep-input__inner{color:var(--ep-disabled-text-color);-webkit-text-fill-color:var(--ep-disabled-text-color);cursor:not-allowed}.ep-input.is-disabled .ep-input__inner::placeholder{color:var(--ep-text-color-placeholder)}.ep-input.is-disabled .ep-input__icon{cursor:not-allowed}.ep-input.is-exceed .ep-input__wrapper{box-shadow:0 0 0 1px var(--ep-color-danger) inset}.ep-input.is-exceed .ep-input__suffix .ep-input__count{color:var(--ep-color-danger)}.ep-input--large{--ep-input-height: var(--ep-component-size-large);font-size:14px}.ep-input--large .ep-input__wrapper{padding:1px 15px}.ep-input--large .ep-input__inner{--ep-input-inner-height: calc(var(--ep-input-height, 40px) - 2px)}.ep-input--small{--ep-input-height: var(--ep-component-size-small);font-size:12px}.ep-input--small .ep-input__wrapper{padding:1px 7px}.ep-input--small .ep-input__inner{--ep-input-inner-height: calc(var(--ep-input-height, 24px) - 2px)}.ep-input-group{display:inline-flex;width:100%;align-items:stretch}.ep-input-group__append,.ep-input-group__prepend{background-color:var(--ep-fill-color-light);color:var(--ep-color-info);position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:100%;border-radius:var(--ep-input-border-radius);padding:0 20px;white-space:nowrap}.ep-input-group__append:focus,.ep-input-group__prepend:focus{outline:none}.ep-input-group__append .ep-select,.ep-input-group__append .ep-button,.ep-input-group__prepend .ep-select,.ep-input-group__prepend .ep-button{display:inline-block;margin:0 -20px}.ep-input-group__append button.ep-button,.ep-input-group__append button.ep-button:hover,.ep-input-group__append div.ep-select .ep-input__wrapper,.ep-input-group__append div.ep-select:hover .ep-input__wrapper,.ep-input-group__prepend button.ep-button,.ep-input-group__prepend button.ep-button:hover,.ep-input-group__prepend div.ep-select .ep-input__wrapper,.ep-input-group__prepend div.ep-select:hover .ep-input__wrapper{border-color:transparent;background-color:transparent;color:inherit}.ep-input-group__append .ep-button,.ep-input-group__append .ep-input,.ep-input-group__prepend .ep-button,.ep-input-group__prepend .ep-input{font-size:inherit}.ep-input-group__prepend{border-right:0;border-top-right-radius:0;border-bottom-right-radius:0;box-shadow:1px 0 0 0 var(--ep-input-border-color) inset,0 1px 0 0 var(--ep-input-border-color) inset,0 -1px 0 0 var(--ep-input-border-color) inset}.ep-input-group__append{border-left:0;border-top-left-radius:0;border-bottom-left-radius:0;box-shadow:0 1px 0 0 var(--ep-input-border-color) inset,0 -1px 0 0 var(--ep-input-border-color) inset,-1px 0 0 0 var(--ep-input-border-color) inset}.ep-input-group--prepend>.ep-input__wrapper{border-top-left-radius:0;border-bottom-left-radius:0}.ep-input-group--prepend .ep-input-group__prepend .ep-select .ep-input .ep-input__inner{box-shadow:none!important}.ep-input-group--prepend .ep-input-group__prepend .ep-select .ep-input .ep-input__wrapper{border-top-right-radius:0;border-bottom-right-radius:0;box-shadow:1px 0 0 0 var(--ep-input-border-color) inset,0 1px 0 0 var(--ep-input-border-color) inset,0 -1px 0 0 var(--ep-input-border-color) inset}.ep-input-group--prepend .ep-input-group__prepend .ep-select .ep-input.is-focus .ep-input__inner{box-shadow:none!important}.ep-input-group--prepend .ep-input-group__prepend .ep-select .ep-input.is-focus .ep-input__wrapper{box-shadow:1px 0 0 0 var(--ep-input-focus-border-color) inset,1px 0 0 0 var(--ep-input-focus-border-color),0 1px 0 0 var(--ep-input-focus-border-color) inset,0 -1px 0 0 var(--ep-input-focus-border-color) inset!important;z-index:2}.ep-input-group--prepend .ep-input-group__prepend .ep-select .ep-input.is-focus .ep-input__wrapper:focus{outline:none;z-index:2;box-shadow:1px 0 0 0 var(--ep-input-focus-border-color) inset,1px 0 0 0 var(--ep-input-focus-border-color),0 1px 0 0 var(--ep-input-focus-border-color) inset,0 -1px 0 0 var(--ep-input-focus-border-color) inset!important}.ep-input-group--prepend .ep-input-group__prepend .ep-select:hover .ep-input__inner{box-shadow:none!important}.ep-input-group--prepend .ep-input-group__prepend .ep-select:hover .ep-input__wrapper{z-index:1;box-shadow:1px 0 0 0 var(--ep-input-hover-border-color) inset,1px 0 0 0 var(--ep-input-hover-border-color),0 1px 0 0 var(--ep-input-hover-border-color) inset,0 -1px 0 0 var(--ep-input-hover-border-color) inset!important}.ep-input-group--append>.ep-input__wrapper{border-top-right-radius:0;border-bottom-right-radius:0}.ep-input-group--append .ep-input-group__append .ep-select .ep-input .ep-input__inner{box-shadow:none!important}.ep-input-group--append .ep-input-group__append .ep-select .ep-input .ep-input__wrapper{border-top-left-radius:0;border-bottom-left-radius:0;box-shadow:0 1px 0 0 var(--ep-input-border-color) inset,0 -1px 0 0 var(--ep-input-border-color) inset,-1px 0 0 0 var(--ep-input-border-color) inset}.ep-input-group--append .ep-input-group__append .ep-select .ep-input.is-focus .ep-input__inner{box-shadow:none!important}.ep-input-group--append .ep-input-group__append .ep-select .ep-input.is-focus .ep-input__wrapper{z-index:2;box-shadow:-1px 0 0 0 var(--ep-input-focus-border-color),-1px 0 0 0 var(--ep-input-focus-border-color) inset,0 1px 0 0 var(--ep-input-focus-border-color) inset,0 -1px 0 0 var(--ep-input-focus-border-color) inset!important}.ep-input-group--append .ep-input-group__append .ep-select:hover .ep-input__inner{box-shadow:none!important}.ep-input-group--append .ep-input-group__append .ep-select:hover .ep-input__wrapper{z-index:1;box-shadow:-1px 0 0 0 var(--ep-input-hover-border-color),-1px 0 0 0 var(--ep-input-hover-border-color) inset,0 1px 0 0 var(--ep-input-hover-border-color) inset,0 -1px 0 0 var(--ep-input-hover-border-color) inset!important}.ep-select-dropdown__item{font-size:var(--ep-font-size-base);padding:0 32px 0 20px;position:relative;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ep-text-color-regular);height:34px;line-height:34px;box-sizing:border-box;cursor:pointer}.ep-select-dropdown__item.is-disabled{color:var(--ep-text-color-placeholder);cursor:not-allowed}.ep-select-dropdown__item.hover,.ep-select-dropdown__item:hover{background-color:var(--ep-fill-color-light)}.ep-select-dropdown__item.selected{color:var(--ep-color-primary);font-weight:700}.ep-select-group{margin:0;padding:0}.ep-select-group__wrap{position:relative;list-style:none;margin:0;padding:0}.ep-select-group__wrap:not(:last-of-type){padding-bottom:24px}.ep-select-group__wrap:not(:last-of-type):after{content:"";position:absolute;display:block;left:20px;right:20px;bottom:12px;height:1px;background:var(--ep-border-color-light)}.ep-select-group__split-dash{position:absolute;left:20px;right:20px;height:1px;background:var(--ep-border-color-light)}.ep-select-group__title{padding-left:20px;font-size:12px;color:var(--ep-color-info);line-height:30px}.ep-select-group .ep-select-dropdown__item{padding-left:20px}.ep-select-dropdown{z-index:calc(var(--ep-index-top) + 1);border-radius:var(--ep-border-radius-base);box-sizing:border-box}.ep-select-dropdown.is-multiple .ep-select-dropdown__item.selected{color:var(--ep-color-primary);background-color:var(--ep-bg-color-overlay)}.ep-select-dropdown.is-multiple .ep-select-dropdown__item.selected.hover{background-color:var(--ep-fill-color-light)}.ep-select-dropdown.is-multiple .ep-select-dropdown__item.selected:after{content:"";position:absolute;top:50%;right:20px;border-top:none;border-right:none;background-repeat:no-repeat;background-position:center;background-color:var(--ep-color-primary);-webkit-mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;mask-size:100% 100%;-webkit-mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;-webkit-mask-size:100% 100%;transform:translateY(-50%);width:12px;height:12px}.ep-select-dropdown.is-multiple .ep-select-dropdown__item.selected.is-disabled:after{background-color:var(--ep-text-color-disabled)}.ep-select-dropdown .ep-select-dropdown__option-item.is-selected:after{content:"";position:absolute;top:50%;right:20px;border-top:none;border-right:none;background-repeat:no-repeat;background-position:center;background-color:var(--ep-color-primary);-webkit-mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;mask-size:100% 100%;-webkit-mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;-webkit-mask-size:100% 100%;transform:translateY(-50%);width:12px;height:12px}.ep-select-dropdown .ep-scrollbar.is-empty .ep-select-dropdown__list{padding:0}.ep-select-dropdown .ep-select-dropdown__item.is-disabled:hover{background-color:unset}.ep-select-dropdown .ep-select-dropdown__item.is-disabled.selected{color:var(--ep-text-color-disabled)}.ep-select-dropdown__empty{padding:10px 0;margin:0;text-align:center;color:var(--ep-text-color-secondary);font-size:var(--ep-select-font-size)}.ep-select-dropdown__wrap{max-height:274px}.ep-select-dropdown__list{list-style:none;padding:6px 0;margin:0;box-sizing:border-box}.ep-select{--ep-select-border-color-hover: var(--ep-border-color-hover);--ep-select-disabled-border: var(--ep-disabled-border-color);--ep-select-font-size: var(--ep-font-size-base);--ep-select-close-hover-color: var(--ep-text-color-secondary);--ep-select-input-color: var(--ep-text-color-placeholder);--ep-select-multiple-input-color: var(--ep-text-color-regular);--ep-select-input-focus-border-color: var(--ep-color-primary);--ep-select-input-font-size: 14px;display:inline-block;position:relative;vertical-align:middle;line-height:32px}.ep-select__popper.ep-popper{background:var(--ep-bg-color-overlay);border:1px solid var(--ep-border-color-light);box-shadow:var(--ep-box-shadow-light)}.ep-select__popper.ep-popper .ep-popper__arrow:before{border:1px solid var(--ep-border-color-light)}.ep-select__popper.ep-popper[data-popper-placement^=top] .ep-popper__arrow:before{border-top-color:transparent;border-left-color:transparent}.ep-select__popper.ep-popper[data-popper-placement^=bottom] .ep-popper__arrow:before{border-bottom-color:transparent;border-right-color:transparent}.ep-select__popper.ep-popper[data-popper-placement^=left] .ep-popper__arrow:before{border-left-color:transparent;border-bottom-color:transparent}.ep-select__popper.ep-popper[data-popper-placement^=right] .ep-popper__arrow:before{border-right-color:transparent;border-top-color:transparent}.ep-select .ep-select-tags-wrapper.has-prefix{margin-left:6px}.ep-select--large{line-height:40px}.ep-select--large .ep-select-tags-wrapper.has-prefix{margin-left:8px}.ep-select--small{line-height:24px}.ep-select--small .ep-select-tags-wrapper.has-prefix{margin-left:4px}.ep-select .ep-select__tags>span{display:inline-block}.ep-select:hover:not(.ep-select--disabled) .ep-input__wrapper{box-shadow:0 0 0 1px var(--ep-select-border-color-hover) inset}.ep-select .ep-select__tags-text{display:inline-block;line-height:normal;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ep-select .ep-input__wrapper{cursor:pointer}.ep-select .ep-input__wrapper.is-focus{box-shadow:0 0 0 1px var(--ep-select-input-focus-border-color) inset!important}.ep-select .ep-input__inner{cursor:pointer}.ep-select .ep-input{display:flex}.ep-select .ep-input .ep-select__caret{color:var(--ep-select-input-color);font-size:var(--ep-select-input-font-size);transition:transform var(--ep-transition-duration);transform:rotate(0);cursor:pointer}.ep-select .ep-input .ep-select__caret.is-reverse{transform:rotate(-180deg)}.ep-select .ep-input .ep-select__caret.is-show-close{font-size:var(--ep-select-font-size);text-align:center;transform:rotate(0);border-radius:var(--ep-border-radius-circle);color:var(--ep-select-input-color);transition:var(--ep-transition-color)}.ep-select .ep-input .ep-select__caret.is-show-close:hover{color:var(--ep-select-close-hover-color)}.ep-select .ep-input .ep-select__caret.ep-icon{position:relative;height:inherit;z-index:2}.ep-select .ep-input.is-disabled .ep-input__wrapper{cursor:not-allowed}.ep-select .ep-input.is-disabled .ep-input__wrapper:hover{box-shadow:0 0 0 1px var(--ep-select-disabled-border) inset}.ep-select .ep-input.is-disabled .ep-input__inner,.ep-select .ep-input.is-disabled .ep-select__caret{cursor:not-allowed}.ep-select .ep-input.is-focus .ep-input__wrapper{box-shadow:0 0 0 1px var(--ep-select-input-focus-border-color) inset!important}.ep-select__input{border:none;outline:none;padding:0;margin-left:15px;color:var(--ep-select-multiple-input-color);font-size:var(--ep-select-font-size);-webkit-appearance:none;appearance:none;height:28px;background-color:transparent}.ep-select__input.is-disabled{cursor:not-allowed}.ep-select__input--iOS{position:absolute;left:0;top:0;z-index:6}.ep-select__input.is-small{height:14px}.ep-select__close{cursor:pointer;position:absolute;top:8px;z-index:var(--ep-index-top);right:25px;color:var(--ep-select-input-color);line-height:18px;font-size:var(--ep-select-input-font-size)}.ep-select__close:hover{color:var(--ep-select-close-hover-color)}.ep-select__tags{position:absolute;line-height:normal;top:50%;transform:translateY(-50%);white-space:normal;z-index:var(--ep-index-normal);display:flex;align-items:center;flex-wrap:wrap;cursor:pointer}.ep-select__tags .ep-tag{box-sizing:border-box;border-color:transparent;margin:2px 6px 2px 0}.ep-select__tags .ep-tag:last-child{margin-right:0}.ep-select__tags .ep-tag .ep-icon-close{background-color:var(--ep-text-color-placeholder);right:-7px;top:0;color:#fff}.ep-select__tags .ep-tag .ep-icon-close:hover{background-color:var(--ep-text-color-secondary)}.ep-select__tags .ep-tag .ep-icon-close:before{display:block;transform:translateY(.5px)}.ep-select__tags .ep-tag--info{background-color:var(--ep-fill-color)}.ep-select__tags.is-disabled{cursor:not-allowed}.ep-select__collapse-tags{white-space:normal;z-index:var(--ep-index-normal);display:flex;align-items:center;flex-wrap:wrap;cursor:pointer}.ep-select__collapse-tags .ep-tag{box-sizing:border-box;border-color:transparent;margin:2px 6px 2px 0}.ep-select__collapse-tags .ep-tag:last-child{margin-right:0}.ep-select__collapse-tags .ep-tag .ep-icon-close{background-color:var(--ep-text-color-placeholder);right:-7px;top:0;color:#fff}.ep-select__collapse-tags .ep-tag .ep-icon-close:hover{background-color:var(--ep-text-color-secondary)}.ep-select__collapse-tags .ep-tag .ep-icon-close:before{display:block;transform:translateY(.5px)}.ep-select__collapse-tags .ep-tag--info{background-color:var(--ep-fill-color)}.ep-select__collapse-tag{line-height:inherit;height:inherit;display:flex}.ep-drawer{--ep-drawer-bg-color: var(--ep-dialog-bg-color, var(--ep-bg-color));--ep-drawer-padding-primary: var(--ep-dialog-padding-primary, 20px);position:absolute;box-sizing:border-box;background-color:var(--ep-drawer-bg-color);display:flex;flex-direction:column;box-shadow:var(--ep-box-shadow-dark);overflow:hidden;transition:all var(--ep-transition-duration)}.ep-drawer .rtl,.ep-drawer .ltr,.ep-drawer .ttb,.ep-drawer .btt{transform:translate(0)}.ep-drawer__sr-focus:focus{outline:none!important}.ep-drawer__header{align-items:center;color:#72767b;display:flex;margin-bottom:32px;padding:var(--ep-drawer-padding-primary);padding-bottom:0}.ep-drawer__header>:first-child{flex:1}.ep-drawer__title{margin:0;flex:1;line-height:inherit;font-size:1rem}.ep-drawer__footer{padding:var(--ep-drawer-padding-primary);padding-top:10px;text-align:right}.ep-drawer__close-btn{display:inline-flex;border:none;cursor:pointer;font-size:var(--ep-font-size-extra-large);color:inherit;background-color:transparent;outline:none}.ep-drawer__close-btn:focus i,.ep-drawer__close-btn:hover i{color:var(--ep-color-primary)}.ep-drawer__body{flex:1;padding:var(--ep-drawer-padding-primary);overflow:auto}.ep-drawer__body>*{box-sizing:border-box}.ep-drawer.ltr,.ep-drawer.rtl{height:100%;top:0;bottom:0}.ep-drawer.ttb,.ep-drawer.btt{width:100%;left:0;right:0}.ep-drawer.ltr{left:0}.ep-drawer.rtl{right:0}.ep-drawer.ttb{top:0}.ep-drawer.btt{bottom:0}.ep-drawer-fade-enter-active,.ep-drawer-fade-leave-active{transition:all var(--ep-transition-duration)}.ep-drawer-fade-enter-from,.ep-drawer-fade-enter-active,.ep-drawer-fade-enter-to,.ep-drawer-fade-leave-from,.ep-drawer-fade-leave-active,.ep-drawer-fade-leave-to{overflow:hidden!important}.ep-drawer-fade-enter-from,.ep-drawer-fade-leave-to{opacity:0}.ep-drawer-fade-enter-to,.ep-drawer-fade-leave-from{opacity:1}.ep-drawer-fade-enter-from .rtl,.ep-drawer-fade-leave-to .rtl{transform:translate(100%)}.ep-drawer-fade-enter-from .ltr,.ep-drawer-fade-leave-to .ltr{transform:translate(-100%)}.ep-drawer-fade-enter-from .ttb,.ep-drawer-fade-leave-to .ttb{transform:translateY(-100%)}.ep-drawer-fade-enter-from .btt,.ep-drawer-fade-leave-to .btt{transform:translateY(100%)}html.dark{color-scheme:dark;--ep-color-primary: #589ef8;--ep-color-primary-light-3: #4475b4;--ep-color-primary-light-5: #365986;--ep-color-primary-light-7: #283d58;--ep-color-primary-light-8: #223042;--ep-color-primary-light-9: #1b222b;--ep-color-primary-dark-2: #79b1f9;--ep-color-success: #21ba45;--ep-color-success-light-3: #1d8836;--ep-color-success-light-5: #1b672d;--ep-color-success-light-7: #184623;--ep-color-success-light-8: #17351e;--ep-color-success-light-9: #152519;--ep-color-success-dark-2: #4dc86a;--ep-color-warning: #f2711c;--ep-color-warning-light-3: #af551a;--ep-color-warning-light-5: #834318;--ep-color-warning-light-7: #573016;--ep-color-warning-light-8: #402716;--ep-color-warning-light-9: #2a1d15;--ep-color-warning-dark-2: #f58d49;--ep-color-danger: #db2828;--ep-color-danger-light-3: #9f2222;--ep-color-danger-light-5: #781e1e;--ep-color-danger-light-7: #501a1a;--ep-color-danger-light-8: #3c1818;--ep-color-danger-light-9: #281616;--ep-color-danger-dark-2: #e25353;--ep-color-error: #db2828;--ep-color-error-light-3: #9f2222;--ep-color-error-light-5: #781e1e;--ep-color-error-light-7: #501a1a;--ep-color-error-light-8: #3c1818;--ep-color-error-light-9: #281616;--ep-color-error-dark-2: #e25353;--ep-color-info: #42b8dd;--ep-color-info-light-3: #3487a1;--ep-color-info-light-5: #2b6679;--ep-color-info-light-7: #224550;--ep-color-info-light-8: #1d353c;--ep-color-info-light-9: #192428;--ep-color-info-dark-2: #68c6e4;--ep-box-shadow: 0px 12px 32px 4px rgba(0, 0, 0, .36), 0px 8px 20px rgba(0, 0, 0, .72);--ep-box-shadow-light: 0px 0px 12px rgba(0, 0, 0, .72);--ep-box-shadow-lighter: 0px 0px 6px rgba(0, 0, 0, .72);--ep-box-shadow-dark: 0px 16px 48px 16px rgba(0, 0, 0, .72), 0px 12px 32px #000000, 0px 8px 16px -8px #000000;--ep-bg-color-page: #0a0a0a;--ep-bg-color: #141414;--ep-bg-color-overlay: #1d1e1f;--ep-text-color-primary: #E5EAF3;--ep-text-color-regular: #CFD3DC;--ep-text-color-secondary: #A3A6AD;--ep-text-color-placeholder: #8D9095;--ep-text-color-disabled: #6C6E72;--ep-border-color-darker: #636466;--ep-border-color-dark: #58585B;--ep-border-color: #4C4D4F;--ep-border-color-light: #414243;--ep-border-color-lighter: #363637;--ep-border-color-extra-light: #2B2B2C;--ep-fill-color-darker: #424243;--ep-fill-color-dark: #39393A;--ep-fill-color: #303030;--ep-fill-color-light: #262727;--ep-fill-color-lighter: #1D1D1D;--ep-fill-color-extra-light: #191919;--ep-fill-color-blank: transparent;--ep-mask-color: rgba(0, 0, 0, .8);--ep-mask-color-extra-light: rgba(0, 0, 0, .3)}html.dark .ep-button{--ep-button-disabled-text-color: rgba(255, 255, 255, .5)}html.dark .ep-card{--ep-card-bg-color: var(--ep-bg-color-overlay)}html.dark .ep-empty{--ep-empty-fill-color-0: var(--ep-color-black);--ep-empty-fill-color-1: #4b4b52;--ep-empty-fill-color-2: #36383d;--ep-empty-fill-color-3: #1e1e20;--ep-empty-fill-color-4: #262629;--ep-empty-fill-color-5: #202124;--ep-empty-fill-color-6: #212224;--ep-empty-fill-color-7: #1b1c1f;--ep-empty-fill-color-8: #1c1d1f;--ep-empty-fill-color-9: #18181a}body{font-family:Inter,system-ui,Avenir,Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,微软雅黑,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0}a{color:var(--ep-color-primary)}code{border-radius:2px;padding:2px 4px;background-color:var(--ep-color-primary-light-9);color:var(--ep-color-primary)}*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgba(0,0,0,0);--un-ring-shadow:0 0 rgba(0,0,0,0);--un-shadow-inset: ;--un-shadow:0 0 rgba(0,0,0,0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgba(0,0,0,0);--un-ring-shadow:0 0 rgba(0,0,0,0);--un-shadow-inset: ;--un-shadow:0 0 rgba(0,0,0,0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.dark [i~="dark:ep-moon"]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 1024 1024' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M240.448 240.448a384 384 0 1 0 559.424 525.696a448 448 0 0 1-542.016-542.08a390.592 390.592 0 0 0-17.408 16.384zm181.056 362.048a384 384 0 0 0 525.632 16.384A448 448 0 1 1 405.056 76.8a384 384 0 0 0 16.448 525.696z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1.2em;height:1.2em}[i~=ep-sunny]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 1024 1024' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M512 704a192 192 0 1 0 0-384a192 192 0 0 0 0 384zm0 64a256 256 0 1 1 0-512a256 256 0 0 1 0 512zm0-704a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 768a32 32 0 0 1 32 32v64a32 32 0 1 1-64 0v-64a32 32 0 0 1 32-32zM195.2 195.2a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 1 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm543.104 543.104a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 0 1-45.248 45.248l-45.248-45.248a32 32 0 0 1 0-45.248zM64 512a32 32 0 0 1 32-32h64a32 32 0 0 1 0 64H96a32 32 0 0 1-32-32zm768 0a32 32 0 0 1 32-32h64a32 32 0 1 1 0 64h-64a32 32 0 0 1-32-32zM195.2 828.8a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248L240.448 828.8a32 32 0 0 1-45.248 0zm543.104-543.104a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248l-45.248 45.248a32 32 0 0 1-45.248 0z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1.2em;height:1.2em}.relative{position:relative}.grid{display:grid}.m-2{margin:.5rem}.m-4{margin:1rem}.mx-4{margin-left:1rem;margin-right:1rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.mr-4{margin-right:1rem}.mt-4{margin-top:1rem}.hidden{display:none}.h-6{height:1.5rem}.h2{height:.5rem}.h3{height:.75rem}.max-h-\[600px\]{max-height:600px}.min-w-fit{min-width:-moz-fit-content;min-width:fit-content}.w-6{width:1.5rem}.w-full{width:100%}[h~=full]{height:100%}.flex{display:flex}.inline-flex,[inline-flex=""]{display:inline-flex}.flex-col{flex-direction:column}.table{display:table}.cursor-pointer{cursor:pointer}.list-inside{list-style-position:inside}.list-none{list-style-type:none}.items-center{align-items:center}.justify-center{justify-content:center}.justify-self-center{justify-self:center}.overflow-auto{overflow:auto}.overflow-x-scroll{overflow-x:scroll}.break-normal{overflow-wrap:normal;word-break:normal}.break-all{word-break:break-all}.border,.border-1,[border=""]{border-width:1px}.border-b-0{border-bottom-width:0}.border-l-4{border-left-width:4px}.border-t-4{border-top-width:4px}.border-gray-200{--un-border-opacity:1;border-color:rgba(229,231,235,var(--un-border-opacity))}.border-orange-500{--un-border-opacity:1;border-color:rgba(249,115,22,var(--un-border-opacity))}.border-teal-500{--un-border-opacity:1;border-color:rgba(20,184,166,var(--un-border-opacity))}.rounded-b{border-bottom-left-radius:.25rem;border-bottom-right-radius:.25rem}.border-none{border-style:none}.border-solid{border-style:solid}.bg-orange-100{--un-bg-opacity:1;background-color:rgba(255,237,213,var(--un-bg-opacity))}.bg-teal-100{--un-bg-opacity:1;background-color:rgba(204,251,241,var(--un-bg-opacity))}.bg-transparent{background-color:transparent}.fill-current{fill:currentColor}.p-2{padding:.5rem}.p-4{padding:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-20{padding-bottom:5rem}.pie{-webkit-padding-end:1rem;padding-inline-end:1rem}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.text-orange-700{--un-text-opacity:1;color:rgba(194,65,12,var(--un-text-opacity))}.text-teal-500{--un-text-opacity:1;color:rgba(20,184,166,var(--un-text-opacity))}.text-teal-900{--un-text-opacity:1;color:rgba(19,78,74,var(--un-text-opacity))}.underline{text-decoration-line:underline}.shadow-md{--un-shadow:var(--un-shadow-inset) 0 4px 6px -1px var(--un-shadow-color, rgba(0,0,0,.1)),var(--un-shadow-inset) 0 2px 4px -2px var(--un-shadow-color, rgba(0,0,0,.1));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)} diff --git a/assets/index-9bafb651.js b/assets/index-9bafb651.js new file mode 100644 index 0000000..4d279e3 --- /dev/null +++ b/assets/index-9bafb651.js @@ -0,0 +1,96 @@ +var qL=Object.defineProperty;var YL=(e,t,n)=>t in e?qL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Re=(e,t,n)=>(YL(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();function lm(e,t){const n=Object.create(null),r=e.split(",");for(let i=0;i!!n[i.toLowerCase()]:i=>!!n[i]}const Jt={},_a=[],xn=()=>{},GL=()=>!1,XL=/^on[^a-z]/,bd=e=>XL.test(e),um=e=>e.startsWith("onUpdate:"),gn=Object.assign,cm=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},JL=Object.prototype.hasOwnProperty,_t=(e,t)=>JL.call(e,t),He=Array.isArray,wa=e=>ku(e)==="[object Map]",yd=e=>ku(e)==="[object Set]",v0=e=>ku(e)==="[object Date]",Je=e=>typeof e=="function",gt=e=>typeof e=="string",ru=e=>typeof e=="symbol",bt=e=>e!==null&&typeof e=="object",Ax=e=>bt(e)&&Je(e.then)&&Je(e.catch),Px=Object.prototype.toString,ku=e=>Px.call(e),mf=e=>ku(e).slice(8,-1),Rx=e=>ku(e)==="[object Object]",fm=e=>gt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,vf=lm(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),_d=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},ZL=/-(\w)/g,ri=_d(e=>e.replace(ZL,(t,n)=>n?n.toUpperCase():"")),QL=/\B([A-Z])/g,jo=_d(e=>e.replace(QL,"-$1").toLowerCase()),wd=_d(e=>e.charAt(0).toUpperCase()+e.slice(1)),bf=_d(e=>e?`on${wd(e)}`:""),iu=(e,t)=>!Object.is(e,t),yf=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Gp=e=>{const t=parseFloat(e);return isNaN(t)?e:t},eI=e=>{const t=gt(e)?Number(e):NaN;return isNaN(t)?e:t};let b0;const Xp=()=>b0||(b0=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Vt(e){if(He(e)){const t={};for(let n=0;n{if(n){const r=n.split(nI);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function be(e){let t="";if(gt(e))t=e;else if(He(e))for(let n=0;nxd(n,t))}const wt=e=>gt(e)?e:e==null?"":He(e)||bt(e)&&(e.toString===Px||!Je(e.toString))?JSON.stringify(e,Ix,2):String(e),Ix=(e,t)=>t&&t.__v_isRef?Ix(e,t.value):wa(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i])=>(n[`${r} =>`]=i,n),{})}:yd(t)?{[`Set(${t.size})`]:[...t.values()]}:bt(t)&&!He(t)&&!Rx(t)?String(t):t;let wr;class $x{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=wr,!t&&wr&&(this.index=(wr.scopes||(wr.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=wr;try{return wr=this,t()}finally{wr=n}}}on(){wr=this}off(){wr=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},Dx=e=>(e.w&Hs)>0,Nx=e=>(e.n&Hs)>0,uI=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{(d==="length"||d>=u)&&a.push(c)})}else switch(n!==void 0&&a.push(o.get(n)),t){case"add":He(e)?fm(n)&&a.push(o.get("length")):(a.push(o.get(ko)),wa(e)&&a.push(o.get(Zp)));break;case"delete":He(e)||(a.push(o.get(ko)),wa(e)&&a.push(o.get(Zp)));break;case"set":wa(e)&&a.push(o.get(ko));break}if(a.length===1)a[0]&&Qp(a[0]);else{const u=[];for(const c of a)c&&u.push(...c);Qp(pm(u))}}function Qp(e,t){const n=He(e)?e:[...e];for(const r of n)r.computed&&_0(r);for(const r of n)r.computed||_0(r)}function _0(e,t){(e!==Jr||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function fI(e,t){var n;return(n=jf.get(e))==null?void 0:n.get(t)}const dI=lm("__proto__,__v_isRef,__isVue"),Hx=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ru)),hI=mm(),pI=mm(!1,!0),gI=mm(!0),w0=mI();function mI(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=ut(this);for(let s=0,o=this.length;s{e[t]=function(...n){ja();const r=ut(this)[t].apply(this,n);return Ua(),r}}),e}function vI(e){const t=ut(this);return cr(t,"has",e),t.hasOwnProperty(e)}function mm(e=!1,t=!1){return function(r,i,s){if(i==="__v_isReactive")return!e;if(i==="__v_isReadonly")return e;if(i==="__v_isShallow")return t;if(i==="__v_raw"&&s===(e?t?LI:Kx:t?Ux:jx).get(r))return r;const o=He(r);if(!e){if(o&&_t(w0,i))return Reflect.get(w0,i,s);if(i==="hasOwnProperty")return vI}const a=Reflect.get(r,i,s);return(ru(i)?Hx.has(i):dI(i))||(e||cr(r,"get",i),t)?a:$t(a)?o&&fm(i)?a:a.value:bt(a)?e?Lu(a):vn(a):a}}const bI=Wx(),yI=Wx(!0);function Wx(e=!1){return function(n,r,i,s){let o=n[r];if(Oa(o)&&$t(o)&&!$t(i))return!1;if(!e&&(!Uf(i)&&!Oa(i)&&(o=ut(o),i=ut(i)),!He(n)&&$t(o)&&!$t(i)))return o.value=i,!0;const a=He(n)&&fm(r)?Number(r)e,Cd=e=>Reflect.getPrototypeOf(e);function Fc(e,t,n=!1,r=!1){e=e.__v_raw;const i=ut(e),s=ut(t);n||(t!==s&&cr(i,"get",t),cr(i,"get",s));const{has:o}=Cd(i),a=r?vm:n?_m:su;if(o.call(i,t))return a(e.get(t));if(o.call(i,s))return a(e.get(s));e!==i&&e.get(t)}function Dc(e,t=!1){const n=this.__v_raw,r=ut(n),i=ut(e);return t||(e!==i&&cr(r,"has",e),cr(r,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function Nc(e,t=!1){return e=e.__v_raw,!t&&cr(ut(e),"iterate",ko),Reflect.get(e,"size",e)}function x0(e){e=ut(e);const t=ut(this);return Cd(t).has.call(t,e)||(t.add(e),Ji(t,"add",e,e)),this}function C0(e,t){t=ut(t);const n=ut(this),{has:r,get:i}=Cd(n);let s=r.call(n,e);s||(e=ut(e),s=r.call(n,e));const o=i.call(n,e);return n.set(e,t),s?iu(t,o)&&Ji(n,"set",e,t):Ji(n,"add",e,t),this}function S0(e){const t=ut(this),{has:n,get:r}=Cd(t);let i=n.call(t,e);i||(e=ut(e),i=n.call(t,e)),r&&r.call(t,e);const s=t.delete(e);return i&&Ji(t,"delete",e,void 0),s}function O0(){const e=ut(this),t=e.size!==0,n=e.clear();return t&&Ji(e,"clear",void 0,void 0),n}function Bc(e,t){return function(r,i){const s=this,o=s.__v_raw,a=ut(o),u=t?vm:e?_m:su;return!e&&cr(a,"iterate",ko),o.forEach((c,d)=>r.call(i,u(c),u(d),s))}}function zc(e,t,n){return function(...r){const i=this.__v_raw,s=ut(i),o=wa(s),a=e==="entries"||e===Symbol.iterator&&o,u=e==="keys"&&o,c=i[e](...r),d=n?vm:t?_m:su;return!t&&cr(s,"iterate",u?Zp:ko),{next(){const{value:h,done:g}=c.next();return g?{value:h,done:g}:{value:a?[d(h[0]),d(h[1])]:d(h),done:g}},[Symbol.iterator](){return this}}}}function vs(e){return function(...t){return e==="delete"?!1:this}}function OI(){const e={get(s){return Fc(this,s)},get size(){return Nc(this)},has:Dc,add:x0,set:C0,delete:S0,clear:O0,forEach:Bc(!1,!1)},t={get(s){return Fc(this,s,!1,!0)},get size(){return Nc(this)},has:Dc,add:x0,set:C0,delete:S0,clear:O0,forEach:Bc(!1,!0)},n={get(s){return Fc(this,s,!0)},get size(){return Nc(this,!0)},has(s){return Dc.call(this,s,!0)},add:vs("add"),set:vs("set"),delete:vs("delete"),clear:vs("clear"),forEach:Bc(!0,!1)},r={get(s){return Fc(this,s,!0,!0)},get size(){return Nc(this,!0)},has(s){return Dc.call(this,s,!0)},add:vs("add"),set:vs("set"),delete:vs("delete"),clear:vs("clear"),forEach:Bc(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=zc(s,!1,!1),n[s]=zc(s,!0,!1),t[s]=zc(s,!1,!0),r[s]=zc(s,!0,!0)}),[e,n,t,r]}const[EI,MI,TI,AI]=OI();function bm(e,t){const n=t?e?AI:TI:e?MI:EI;return(r,i,s)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(_t(n,i)&&i in r?n:r,i,s)}const PI={get:bm(!1,!1)},RI={get:bm(!1,!0)},kI={get:bm(!0,!1)},jx=new WeakMap,Ux=new WeakMap,Kx=new WeakMap,LI=new WeakMap;function II(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function $I(e){return e.__v_skip||!Object.isExtensible(e)?0:II(mf(e))}function vn(e){return Oa(e)?e:ym(e,!1,Vx,PI,jx)}function FI(e){return ym(e,!1,SI,RI,Ux)}function Lu(e){return ym(e,!0,CI,kI,Kx)}function ym(e,t,n,r,i){if(!bt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=i.get(e);if(s)return s;const o=$I(e);if(o===0)return e;const a=new Proxy(e,o===2?r:n);return i.set(e,a),a}function $s(e){return Oa(e)?$s(e.__v_raw):!!(e&&e.__v_isReactive)}function Oa(e){return!!(e&&e.__v_isReadonly)}function Uf(e){return!!(e&&e.__v_isShallow)}function qx(e){return $s(e)||Oa(e)}function ut(e){const t=e&&e.__v_raw;return t?ut(t):e}function Sd(e){return Vf(e,"__v_skip",!0),e}const su=e=>bt(e)?vn(e):e,_m=e=>bt(e)?Lu(e):e;function Yx(e){Is&&Jr&&(e=ut(e),zx(e.dep||(e.dep=pm())))}function wm(e,t){e=ut(e);const n=e.dep;n&&Qp(n)}function $t(e){return!!(e&&e.__v_isRef===!0)}function X(e){return Gx(e,!1)}function Fs(e){return Gx(e,!0)}function Gx(e,t){return $t(e)?e:new DI(e,t)}class DI{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ut(t),this._value=n?t:su(t)}get value(){return Yx(this),this._value}set value(t){const n=this.__v_isShallow||Uf(t)||Oa(t);t=n?t:ut(t),iu(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:su(t),wm(this))}}function bl(e){wm(e)}function O(e){return $t(e)?e.value:e}const NI={get:(e,t,n)=>O(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return $t(i)&&!$t(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Xx(e){return $s(e)?e:new Proxy(e,NI)}function Gs(e){const t=He(e)?new Array(e.length):{};for(const n in e)t[n]=Jx(e,n);return t}class BI{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return fI(ut(this._object),this._key)}}class zI{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Dr(e,t,n){return $t(e)?e:Je(e)?new zI(e):bt(e)&&arguments.length>1?Jx(e,t,n):X(e)}function Jx(e,t,n){const r=e[t];return $t(r)?r:new BI(e,t,n)}class HI{constructor(t,n,r,i){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new gm(t,()=>{this._dirty||(this._dirty=!0,wm(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=r}get value(){const t=ut(this);return Yx(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Zx(e,t,n=!1){let r,i;const s=Je(e);return s?(r=e,i=xn):(r=e.get,i=e.set),new HI(r,i,s||!i,n)}function WI(e,...t){}function Ds(e,t,n,r){let i;try{i=r?e(...r):e()}catch(s){Od(s,t,n)}return i}function Nr(e,t,n,r){if(Je(e)){const s=Ds(e,t,n,r);return s&&Ax(s)&&s.catch(o=>{Od(o,t,n)}),s}const i=[];for(let s=0;s>>1;au(Hn[r])bi&&Hn.splice(t,1)}function KI(e){He(e)?xa.push(...e):(!Ui||!Ui.includes(e,e.allowRecurse?_o+1:_o))&&xa.push(e),eC()}function E0(e,t=ou?bi+1:0){for(;tau(n)-au(r)),_o=0;_oe.id==null?1/0:e.id,qI=(e,t)=>{const n=au(e)-au(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function nC(e){eg=!1,ou=!0,Hn.sort(qI);const t=xn;try{for(bi=0;bigt(m)?m.trim():m)),h&&(i=n.map(Gp))}let a,u=r[a=bf(t)]||r[a=bf(ri(t))];!u&&s&&(u=r[a=bf(jo(t))]),u&&Nr(u,e,6,i);const c=r[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Nr(c,e,6,i)}}function rC(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(i!==void 0)return i;const s=e.emits;let o={},a=!1;if(!Je(e)){const u=c=>{const d=rC(c,t,!0);d&&(a=!0,gn(o,d))};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!s&&!a?(bt(e)&&r.set(e,null),null):(He(s)?s.forEach(u=>o[u]=null):gn(o,s),bt(e)&&r.set(e,o),o)}function Ed(e,t){return!e||!bd(t)?!1:(t=t.slice(2).replace(/Once$/,""),_t(e,t[0].toLowerCase()+t.slice(1))||_t(e,jo(t))||_t(e,t))}let On=null,iC=null;function Kf(e){const t=On;return On=e,iC=e&&e.type.__scopeId||null,t}function D(e,t=On,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&B0(-1);const s=Kf(t);let o;try{o=e(...i)}finally{Kf(s),r._d&&B0(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function fp(e){const{type:t,vnode:n,proxy:r,withProxy:i,props:s,propsOptions:[o],slots:a,attrs:u,emit:c,render:d,renderCache:h,data:g,setupState:m,ctx:b,inheritAttrs:v}=e;let _,y;const C=Kf(e);try{if(n.shapeFlag&4){const x=i||r;_=mi(d.call(x,x,h,s,m,g,b)),y=u}else{const x=t;_=mi(x.length>1?x(s,{attrs:u,slots:a,emit:c}):x(s,null)),y=t.props?u:GI(u)}}catch(x){Wl.length=0,Od(x,e,1),_=z(ar)}let T=_;if(y&&v!==!1){const x=Object.keys(y),{shapeFlag:S}=T;x.length&&S&7&&(o&&x.some(um)&&(y=XI(y,o)),T=Zi(T,y))}return n.dirs&&(T=Zi(T),T.dirs=T.dirs?T.dirs.concat(n.dirs):n.dirs),n.transition&&(T.transition=n.transition),_=T,Kf(C),_}const GI=e=>{let t;for(const n in e)(n==="class"||n==="style"||bd(n))&&((t||(t={}))[n]=e[n]);return t},XI=(e,t)=>{const n={};for(const r in e)(!um(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function JI(e,t,n){const{props:r,children:i,component:s}=e,{props:o,children:a,patchFlag:u}=t,c=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&u>=0){if(u&1024)return!0;if(u&16)return r?M0(r,o,c):!!o;if(u&8){const d=t.dynamicProps;for(let h=0;he.__isSuspense;function e$(e,t){t&&t.pendingBranch?He(e)?t.effects.push(...e):t.effects.push(e):KI(e)}function Ns(e,t){return Sm(e,null,t)}const Hc={};function Ie(e,t,n){return Sm(e,t,n)}function Sm(e,t,{immediate:n,deep:r,flush:i,onTrack:s,onTrigger:o}=Jt){var a;const u=dm()===((a=_n)==null?void 0:a.scope)?_n:null;let c,d=!1,h=!1;if($t(e)?(c=()=>e.value,d=Uf(e)):$s(e)?(c=()=>e,r=!0):He(e)?(h=!0,d=e.some(x=>$s(x)||Uf(x)),c=()=>e.map(x=>{if($t(x))return x.value;if($s(x))return Eo(x);if(Je(x))return Ds(x,u,2)})):Je(e)?t?c=()=>Ds(e,u,2):c=()=>{if(!(u&&u.isUnmounted))return g&&g(),Nr(e,u,3,[m])}:c=xn,t&&r){const x=c;c=()=>Eo(x())}let g,m=x=>{g=C.onStop=()=>{Ds(x,u,4)}},b;if(du)if(m=xn,t?n&&Nr(t,u,3,[c(),h?[]:void 0,m]):c(),i==="sync"){const x=K$();b=x.__watcherHandles||(x.__watcherHandles=[])}else return xn;let v=h?new Array(e.length).fill(Hc):Hc;const _=()=>{if(C.active)if(t){const x=C.run();(r||d||(h?x.some((S,E)=>iu(S,v[E])):iu(x,v)))&&(g&&g(),Nr(t,u,3,[x,v===Hc?void 0:h&&v[0]===Hc?[]:v,m]),v=x)}else C.run()};_.allowRecurse=!!t;let y;i==="sync"?y=_:i==="post"?y=()=>sr(_,u&&u.suspense):(_.pre=!0,u&&(_.id=u.uid),y=()=>Cm(_));const C=new gm(c,y);t?n?_():v=C.run():i==="post"?sr(C.run.bind(C),u&&u.suspense):C.run();const T=()=>{C.stop(),u&&u.scope&&cm(u.scope.effects,C)};return b&&b.push(T),T}function t$(e,t,n){const r=this.proxy,i=gt(e)?e.includes(".")?sC(r,e):()=>r[e]:e.bind(r,r);let s;Je(t)?s=t:(s=t.handler,n=t);const o=_n;Ma(this);const a=Sm(i,s.bind(r),n);return o?Ma(o):Lo(),a}function sC(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i{Eo(n,t)});else if(Rx(e))for(const n in e)Eo(e[n],t);return e}function mn(e,t){const n=On;if(n===null)return e;const r=Pd(n)||n.proxy,i=e.dirs||(e.dirs=[]);for(let s=0;s{e.isMounted=!0}),Mn(()=>{e.isUnmounting=!0}),e}const $r=[Function,Array],aC={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:$r,onEnter:$r,onAfterEnter:$r,onEnterCancelled:$r,onBeforeLeave:$r,onLeave:$r,onAfterLeave:$r,onLeaveCancelled:$r,onBeforeAppear:$r,onAppear:$r,onAfterAppear:$r,onAppearCancelled:$r},n$={name:"BaseTransition",props:aC,setup(e,{slots:t}){const n=kt(),r=oC();let i;return()=>{const s=t.default&&Om(t.default(),!0);if(!s||!s.length)return;let o=s[0];if(s.length>1){for(const v of s)if(v.type!==ar){o=v;break}}const a=ut(e),{mode:u}=a;if(r.isLeaving)return dp(o);const c=T0(o);if(!c)return dp(o);const d=lu(c,a,r,n);uu(c,d);const h=n.subTree,g=h&&T0(h);let m=!1;const{getTransitionKey:b}=c.type;if(b){const v=b();i===void 0?i=v:v!==i&&(i=v,m=!0)}if(g&&g.type!==ar&&(!wo(c,g)||m)){const v=lu(g,a,r,n);if(uu(g,v),u==="out-in")return r.isLeaving=!0,v.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},dp(o);u==="in-out"&&c.type!==ar&&(v.delayLeave=(_,y,C)=>{const T=lC(r,g);T[String(g.key)]=g,_._leaveCb=()=>{y(),_._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=C})}return o}}},r$=n$;function lC(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 lu(e,t,n,r){const{appear:i,mode:s,persisted:o=!1,onBeforeEnter:a,onEnter:u,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:h,onLeave:g,onAfterLeave:m,onLeaveCancelled:b,onBeforeAppear:v,onAppear:_,onAfterAppear:y,onAppearCancelled:C}=t,T=String(e.key),x=lC(n,e),S=(R,$)=>{R&&Nr(R,r,9,$)},E=(R,$)=>{const B=$[1];S(R,$),He(R)?R.every(V=>V.length<=1)&&B():R.length<=1&&B()},A={mode:s,persisted:o,beforeEnter(R){let $=a;if(!n.isMounted)if(i)$=v||a;else return;R._leaveCb&&R._leaveCb(!0);const B=x[T];B&&wo(e,B)&&B.el._leaveCb&&B.el._leaveCb(),S($,[R])},enter(R){let $=u,B=c,V=d;if(!n.isMounted)if(i)$=_||u,B=y||c,V=C||d;else return;let P=!1;const j=R._enterCb=ue=>{P||(P=!0,ue?S(V,[R]):S(B,[R]),A.delayedLeave&&A.delayedLeave(),R._enterCb=void 0)};$?E($,[R,j]):j()},leave(R,$){const B=String(e.key);if(R._enterCb&&R._enterCb(!0),n.isUnmounting)return $();S(h,[R]);let V=!1;const P=R._leaveCb=j=>{V||(V=!0,$(),j?S(b,[R]):S(m,[R]),R._leaveCb=void 0,x[B]===e&&delete x[B])};x[B]=e,g?E(g,[R,P]):P()},clone(R){return lu(R,t,n,r)}};return A}function dp(e){if(Md(e))return e=Zi(e),e.children=null,e}function T0(e){return Md(e)?e.children?e.children[0]:void 0:e}function uu(e,t){e.shapeFlag&6&&e.component?uu(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Om(e,t=!1,n){let r=[],i=0;for(let s=0;s1)for(let s=0;sgn({name:e.name},t,{setup:e}))():e}const Bl=e=>!!e.type.__asyncLoader,Md=e=>e.type.__isKeepAlive;function i$(e,t){cC(e,"a",t)}function uC(e,t){cC(e,"da",t)}function cC(e,t,n=_n){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Td(t,r,n),n){let i=n.parent;for(;i&&i.parent;)Md(i.parent.vnode)&&s$(r,t,n,i),i=i.parent}}function s$(e,t,n,r){const i=Td(t,e,r,!0);qa(()=>{cm(r[t],i)},n)}function Td(e,t,n=_n,r=!1){if(n){const i=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;ja(),Ma(n);const a=Nr(t,n,e,o);return Lo(),Ua(),a});return r?i.unshift(s):i.push(s),s}}const rs=e=>(t,n=_n)=>(!du||e==="sp")&&Td(e,(...r)=>t(...r),n),Ka=rs("bm"),Lt=rs("m"),o$=rs("bu"),Uo=rs("u"),Mn=rs("bum"),qa=rs("um"),a$=rs("sp"),l$=rs("rtg"),u$=rs("rtc");function c$(e,t=_n){Td("ec",e,t)}const Em="components",f$="directives";function Yt(e,t){return Tm(Em,e,!0,t)||e}const fC=Symbol.for("v-ndc");function Vn(e){return gt(e)?Tm(Em,e,!1)||e:e||fC}function Mm(e){return Tm(f$,e)}function Tm(e,t,n=!0,r=!1){const i=On||_n;if(i){const s=i.type;if(e===Em){const a=V$(s,!1);if(a&&(a===t||a===ri(t)||a===wd(ri(t))))return s}const o=A0(i[e]||s[e],t)||A0(i.appContext[e],t);return!o&&r?s:o}}function A0(e,t){return e&&(e[t]||e[ri(t)]||e[wd(ri(t))])}function Pn(e,t,n,r){let i;const s=n&&n[r];if(He(e)||gt(e)){i=new Array(e.length);for(let o=0,a=e.length;ot(o,a,void 0,s&&s[a]));else{const o=Object.keys(e);i=new Array(o.length);for(let a=0,u=o.length;a{const s=r.fn(...i);return s&&(s.key=r.key),s}:r.fn)}return e}function je(e,t,n={},r,i){if(On.isCE||On.parent&&Bl(On.parent)&&On.parent.isCE)return t!=="default"&&(n.name=t),z("slot",n,r&&r());let s=e[t];s&&s._c&&(s._d=!1),K();const o=s&&hC(s(n)),a=Ae(ot,{key:n.key||o&&o.key||`_${t}`},o||(r?r():[]),o&&e._===1?64:-2);return!i&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),s&&s._c&&(s._d=!0),a}function hC(e){return e.some(t=>Ea(t)?!(t.type===ar||t.type===ot&&!hC(t.children)):!0)?e:null}function d$(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:bf(r)]=e[r];return n}const tg=e=>e?OC(e)?Pd(e)||e.proxy:tg(e.parent):null,zl=gn(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=>tg(e.parent),$root:e=>tg(e.root),$emit:e=>e.emit,$options:e=>Am(e),$forceUpdate:e=>e.f||(e.f=()=>Cm(e.update)),$nextTick:e=>e.n||(e.n=vt.bind(e.proxy)),$watch:e=>t$.bind(e)}),hp=(e,t)=>e!==Jt&&!e.__isScriptSetup&&_t(e,t),h$={get({_:e},t){const{ctx:n,setupState:r,data:i,props:s,accessCache:o,type:a,appContext:u}=e;let c;if(t[0]!=="$"){const m=o[t];if(m!==void 0)switch(m){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return s[t]}else{if(hp(r,t))return o[t]=1,r[t];if(i!==Jt&&_t(i,t))return o[t]=2,i[t];if((c=e.propsOptions[0])&&_t(c,t))return o[t]=3,s[t];if(n!==Jt&&_t(n,t))return o[t]=4,n[t];ng&&(o[t]=0)}}const d=zl[t];let h,g;if(d)return t==="$attrs"&&cr(e,"get",t),d(e);if((h=a.__cssModules)&&(h=h[t]))return h;if(n!==Jt&&_t(n,t))return o[t]=4,n[t];if(g=u.config.globalProperties,_t(g,t))return g[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:s}=e;return hp(i,t)?(i[t]=n,!0):r!==Jt&&_t(r,t)?(r[t]=n,!0):_t(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:s}},o){let a;return!!n[o]||e!==Jt&&_t(e,o)||hp(t,o)||(a=s[0])&&_t(a,o)||_t(r,o)||_t(zl,o)||_t(i.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:_t(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ya(){return pC().slots}function p$(){return pC().attrs}function pC(){const e=kt();return e.setupContext||(e.setupContext=MC(e))}function P0(e){return He(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let ng=!0;function g$(e){const t=Am(e),n=e.proxy,r=e.ctx;ng=!1,t.beforeCreate&&R0(t.beforeCreate,e,"bc");const{data:i,computed:s,methods:o,watch:a,provide:u,inject:c,created:d,beforeMount:h,mounted:g,beforeUpdate:m,updated:b,activated:v,deactivated:_,beforeDestroy:y,beforeUnmount:C,destroyed:T,unmounted:x,render:S,renderTracked:E,renderTriggered:A,errorCaptured:R,serverPrefetch:$,expose:B,inheritAttrs:V,components:P,directives:j,filters:ue}=t;if(c&&m$(c,r,null),o)for(const Q in o){const ie=o[Q];Je(ie)&&(r[Q]=ie.bind(n))}if(i){const Q=i.call(n,n);bt(Q)&&(e.data=vn(Q))}if(ng=!0,s)for(const Q in s){const ie=s[Q],ee=Je(ie)?ie.bind(n,n):Je(ie.get)?ie.get.bind(n,n):xn,ye=!Je(ie)&&Je(ie.set)?ie.set.bind(n):xn,Ee=H({get:ee,set:ye});Object.defineProperty(r,Q,{enumerable:!0,configurable:!0,get:()=>Ee.value,set:ke=>Ee.value=ke})}if(a)for(const Q in a)gC(a[Q],r,n,Q);if(u){const Q=Je(u)?u.call(n):u;Reflect.ownKeys(Q).forEach(ie=>{sn(ie,Q[ie])})}d&&R0(d,e,"c");function ne(Q,ie){He(ie)?ie.forEach(ee=>Q(ee.bind(n))):ie&&Q(ie.bind(n))}if(ne(Ka,h),ne(Lt,g),ne(o$,m),ne(Uo,b),ne(i$,v),ne(uC,_),ne(c$,R),ne(u$,E),ne(l$,A),ne(Mn,C),ne(qa,x),ne(a$,$),He(B))if(B.length){const Q=e.exposed||(e.exposed={});B.forEach(ie=>{Object.defineProperty(Q,ie,{get:()=>n[ie],set:ee=>n[ie]=ee})})}else e.exposed||(e.exposed={});S&&e.render===xn&&(e.render=S),V!=null&&(e.inheritAttrs=V),P&&(e.components=P),j&&(e.directives=j)}function m$(e,t,n=xn){He(e)&&(e=rg(e));for(const r in e){const i=e[r];let s;bt(i)?"default"in i?s=qe(i.from||r,i.default,!0):s=qe(i.from||r):s=qe(i),$t(s)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:o=>s.value=o}):t[r]=s}}function R0(e,t,n){Nr(He(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function gC(e,t,n,r){const i=r.includes(".")?sC(n,r):()=>n[r];if(gt(e)){const s=t[e];Je(s)&&Ie(i,s)}else if(Je(e))Ie(i,e.bind(n));else if(bt(e))if(He(e))e.forEach(s=>gC(s,t,n,r));else{const s=Je(e.handler)?e.handler.bind(n):t[e.handler];Je(s)&&Ie(i,s,e)}}function Am(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:s,config:{optionMergeStrategies:o}}=e.appContext,a=s.get(t);let u;return a?u=a:!i.length&&!n&&!r?u=t:(u={},i.length&&i.forEach(c=>qf(u,c,o,!0)),qf(u,t,o)),bt(t)&&s.set(t,u),u}function qf(e,t,n,r=!1){const{mixins:i,extends:s}=t;s&&qf(e,s,n,!0),i&&i.forEach(o=>qf(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const a=v$[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const v$={data:k0,props:L0,emits:L0,methods:Pl,computed:Pl,beforeCreate:Xn,created:Xn,beforeMount:Xn,mounted:Xn,beforeUpdate:Xn,updated:Xn,beforeDestroy:Xn,beforeUnmount:Xn,destroyed:Xn,unmounted:Xn,activated:Xn,deactivated:Xn,errorCaptured:Xn,serverPrefetch:Xn,components:Pl,directives:Pl,watch:y$,provide:k0,inject:b$};function k0(e,t){return t?e?function(){return gn(Je(e)?e.call(this,this):e,Je(t)?t.call(this,this):t)}:t:e}function b$(e,t){return Pl(rg(e),rg(t))}function rg(e){if(He(e)){const t={};for(let n=0;n1)return n&&Je(t)?t.call(r&&r.proxy):t}}function x$(){return!!(_n||On||cu)}function C$(e,t,n,r=!1){const i={},s={};Vf(s,Ad,1),e.propsDefaults=Object.create(null),vC(e,t,i,s);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);n?e.props=r?i:FI(i):e.type.props?e.props=i:e.props=s,e.attrs=s}function S$(e,t,n,r){const{props:i,attrs:s,vnode:{patchFlag:o}}=e,a=ut(i),[u]=e.propsOptions;let c=!1;if((r||o>0)&&!(o&16)){if(o&8){const d=e.vnode.dynamicProps;for(let h=0;h{u=!0;const[g,m]=bC(h,t,!0);gn(o,g),m&&a.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!s&&!u)return bt(e)&&r.set(e,_a),_a;if(He(s))for(let d=0;d-1,m[1]=v<0||b-1||_t(m,"default"))&&a.push(h)}}}const c=[o,a];return bt(e)&&r.set(e,c),c}function I0(e){return e[0]!=="$"}function $0(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function F0(e,t){return $0(e)===$0(t)}function D0(e,t){return He(t)?t.findIndex(n=>F0(n,e)):Je(t)&&F0(t,e)?0:-1}const yC=e=>e[0]==="_"||e==="$stable",Pm=e=>He(e)?e.map(mi):[mi(e)],O$=(e,t,n)=>{if(t._n)return t;const r=D((...i)=>Pm(t(...i)),n);return r._c=!1,r},_C=(e,t,n)=>{const r=e._ctx;for(const i in e){if(yC(i))continue;const s=e[i];if(Je(s))t[i]=O$(i,s,r);else if(s!=null){const o=Pm(s);t[i]=()=>o}}},wC=(e,t)=>{const n=Pm(t);e.slots.default=()=>n},E$=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ut(t),Vf(t,"_",n)):_C(t,e.slots={})}else e.slots={},t&&wC(e,t);Vf(e.slots,Ad,1)},M$=(e,t,n)=>{const{vnode:r,slots:i}=e;let s=!0,o=Jt;if(r.shapeFlag&32){const a=t._;a?n&&a===1?s=!1:(gn(i,t),!n&&a===1&&delete i._):(s=!t.$stable,_C(t,i)),o=t}else t&&(wC(e,t),o={default:1});if(s)for(const a in i)!yC(a)&&!(a in o)&&delete i[a]};function sg(e,t,n,r,i=!1){if(He(e)){e.forEach((g,m)=>sg(g,t&&(He(t)?t[m]:t),n,r,i));return}if(Bl(r)&&!i)return;const s=r.shapeFlag&4?Pd(r.component)||r.component.proxy:r.el,o=i?null:s,{i:a,r:u}=e,c=t&&t.r,d=a.refs===Jt?a.refs={}:a.refs,h=a.setupState;if(c!=null&&c!==u&&(gt(c)?(d[c]=null,_t(h,c)&&(h[c]=null)):$t(c)&&(c.value=null)),Je(u))Ds(u,a,12,[o,d]);else{const g=gt(u),m=$t(u);if(g||m){const b=()=>{if(e.f){const v=g?_t(h,u)?h[u]:d[u]:u.value;i?He(v)&&cm(v,s):He(v)?v.includes(s)||v.push(s):g?(d[u]=[s],_t(h,u)&&(h[u]=d[u])):(u.value=[s],e.k&&(d[e.k]=u.value))}else g?(d[u]=o,_t(h,u)&&(h[u]=o)):m&&(u.value=o,e.k&&(d[e.k]=o))};o?(b.id=-1,sr(b,n)):b()}}}const sr=e$;function T$(e){return A$(e)}function A$(e,t){const n=Xp();n.__VUE__=!0;const{insert:r,remove:i,patchProp:s,createElement:o,createText:a,createComment:u,setText:c,setElementText:d,parentNode:h,nextSibling:g,setScopeId:m=xn,insertStaticContent:b}=e,v=(F,W,q,se=null,he=null,ge=null,Te=!1,Se=null,Ce=!!W.dynamicChildren)=>{if(F===W)return;F&&!wo(F,W)&&(se=Y(F),ke(F,he,ge,!0),F=null),W.patchFlag===-2&&(Ce=!1,W.dynamicChildren=null);const{type:pe,ref:Be,shapeFlag:Pe}=W;switch(pe){case Ga:_(F,W,q,se);break;case ar:y(F,W,q,se);break;case pp:F==null&&C(W,q,se,Te);break;case ot:P(F,W,q,se,he,ge,Te,Se,Ce);break;default:Pe&1?S(F,W,q,se,he,ge,Te,Se,Ce):Pe&6?j(F,W,q,se,he,ge,Te,Se,Ce):(Pe&64||Pe&128)&&pe.process(F,W,q,se,he,ge,Te,Se,Ce,de)}Be!=null&&he&&sg(Be,F&&F.ref,ge,W||F,!W)},_=(F,W,q,se)=>{if(F==null)r(W.el=a(W.children),q,se);else{const he=W.el=F.el;W.children!==F.children&&c(he,W.children)}},y=(F,W,q,se)=>{F==null?r(W.el=u(W.children||""),q,se):W.el=F.el},C=(F,W,q,se)=>{[F.el,F.anchor]=b(F.children,W,q,se,F.el,F.anchor)},T=({el:F,anchor:W},q,se)=>{let he;for(;F&&F!==W;)he=g(F),r(F,q,se),F=he;r(W,q,se)},x=({el:F,anchor:W})=>{let q;for(;F&&F!==W;)q=g(F),i(F),F=q;i(W)},S=(F,W,q,se,he,ge,Te,Se,Ce)=>{Te=Te||W.type==="svg",F==null?E(W,q,se,he,ge,Te,Se,Ce):$(F,W,he,ge,Te,Se,Ce)},E=(F,W,q,se,he,ge,Te,Se)=>{let Ce,pe;const{type:Be,props:Pe,shapeFlag:re,transition:Me,dirs:Ue}=F;if(Ce=F.el=o(F.type,ge,Pe&&Pe.is,Pe),re&8?d(Ce,F.children):re&16&&R(F.children,Ce,null,se,he,ge&&Be!=="foreignObject",Te,Se),Ue&&ao(F,null,se,"created"),A(Ce,F,F.scopeId,Te,se),Pe){for(const st in Pe)st!=="value"&&!vf(st)&&s(Ce,st,null,Pe[st],ge,F.children,se,he,Ne);"value"in Pe&&s(Ce,"value",null,Pe.value),(pe=Pe.onVnodeBeforeMount)&&hi(pe,se,F)}Ue&&ao(F,null,se,"beforeMount");const at=(!he||he&&!he.pendingBranch)&&Me&&!Me.persisted;at&&Me.beforeEnter(Ce),r(Ce,W,q),((pe=Pe&&Pe.onVnodeMounted)||at||Ue)&&sr(()=>{pe&&hi(pe,se,F),at&&Me.enter(Ce),Ue&&ao(F,null,se,"mounted")},he)},A=(F,W,q,se,he)=>{if(q&&m(F,q),se)for(let ge=0;ge{for(let pe=Ce;pe{const Se=W.el=F.el;let{patchFlag:Ce,dynamicChildren:pe,dirs:Be}=W;Ce|=F.patchFlag&16;const Pe=F.props||Jt,re=W.props||Jt;let Me;q&&lo(q,!1),(Me=re.onVnodeBeforeUpdate)&&hi(Me,q,W,F),Be&&ao(W,F,q,"beforeUpdate"),q&&lo(q,!0);const Ue=he&&W.type!=="foreignObject";if(pe?B(F.dynamicChildren,pe,Se,q,se,Ue,ge):Te||ie(F,W,Se,null,q,se,Ue,ge,!1),Ce>0){if(Ce&16)V(Se,W,Pe,re,q,se,he);else if(Ce&2&&Pe.class!==re.class&&s(Se,"class",null,re.class,he),Ce&4&&s(Se,"style",Pe.style,re.style,he),Ce&8){const at=W.dynamicProps;for(let st=0;st{Me&&hi(Me,q,W,F),Be&&ao(W,F,q,"updated")},se)},B=(F,W,q,se,he,ge,Te)=>{for(let Se=0;Se{if(q!==se){if(q!==Jt)for(const Se in q)!vf(Se)&&!(Se in se)&&s(F,Se,q[Se],null,Te,W.children,he,ge,Ne);for(const Se in se){if(vf(Se))continue;const Ce=se[Se],pe=q[Se];Ce!==pe&&Se!=="value"&&s(F,Se,pe,Ce,Te,W.children,he,ge,Ne)}"value"in se&&s(F,"value",q.value,se.value)}},P=(F,W,q,se,he,ge,Te,Se,Ce)=>{const pe=W.el=F?F.el:a(""),Be=W.anchor=F?F.anchor:a("");let{patchFlag:Pe,dynamicChildren:re,slotScopeIds:Me}=W;Me&&(Se=Se?Se.concat(Me):Me),F==null?(r(pe,q,se),r(Be,q,se),R(W.children,q,Be,he,ge,Te,Se,Ce)):Pe>0&&Pe&64&&re&&F.dynamicChildren?(B(F.dynamicChildren,re,q,he,ge,Te,Se),(W.key!=null||he&&W===he.subTree)&&Rm(F,W,!0)):ie(F,W,q,Be,he,ge,Te,Se,Ce)},j=(F,W,q,se,he,ge,Te,Se,Ce)=>{W.slotScopeIds=Se,F==null?W.shapeFlag&512?he.ctx.activate(W,q,se,Te,Ce):ue(W,q,se,he,ge,Te,Ce):ce(F,W,Ce)},ue=(F,W,q,se,he,ge,Te)=>{const Se=F.component=B$(F,se,he);if(Md(F)&&(Se.ctx.renderer=de),z$(Se),Se.asyncDep){if(he&&he.registerDep(Se,ne),!F.el){const Ce=Se.subTree=z(ar);y(null,Ce,W,q)}return}ne(Se,F,W,q,he,ge,Te)},ce=(F,W,q)=>{const se=W.component=F.component;if(JI(F,W,q))if(se.asyncDep&&!se.asyncResolved){Q(se,W,q);return}else se.next=W,UI(se.update),se.update();else W.el=F.el,se.vnode=W},ne=(F,W,q,se,he,ge,Te)=>{const Se=()=>{if(F.isMounted){let{next:Be,bu:Pe,u:re,parent:Me,vnode:Ue}=F,at=Be,st;lo(F,!1),Be?(Be.el=Ue.el,Q(F,Be,Te)):Be=Ue,Pe&&yf(Pe),(st=Be.props&&Be.props.onVnodeBeforeUpdate)&&hi(st,Me,Be,Ue),lo(F,!0);const Bt=fp(F),Le=F.subTree;F.subTree=Bt,v(Le,Bt,h(Le.el),Y(Le),F,he,ge),Be.el=Bt.el,at===null&&ZI(F,Bt.el),re&&sr(re,he),(st=Be.props&&Be.props.onVnodeUpdated)&&sr(()=>hi(st,Me,Be,Ue),he)}else{let Be;const{el:Pe,props:re}=W,{bm:Me,m:Ue,parent:at}=F,st=Bl(W);if(lo(F,!1),Me&&yf(Me),!st&&(Be=re&&re.onVnodeBeforeMount)&&hi(Be,at,W),lo(F,!0),Pe&&We){const Bt=()=>{F.subTree=fp(F),We(Pe,F.subTree,F,he,null)};st?W.type.__asyncLoader().then(()=>!F.isUnmounted&&Bt()):Bt()}else{const Bt=F.subTree=fp(F);v(null,Bt,q,se,F,he,ge),W.el=Bt.el}if(Ue&&sr(Ue,he),!st&&(Be=re&&re.onVnodeMounted)){const Bt=W;sr(()=>hi(Be,at,Bt),he)}(W.shapeFlag&256||at&&Bl(at.vnode)&&at.vnode.shapeFlag&256)&&F.a&&sr(F.a,he),F.isMounted=!0,W=q=se=null}},Ce=F.effect=new gm(Se,()=>Cm(pe),F.scope),pe=F.update=()=>Ce.run();pe.id=F.uid,lo(F,!0),pe()},Q=(F,W,q)=>{W.component=F;const se=F.vnode.props;F.vnode=W,F.next=null,S$(F,W.props,se,q),M$(F,W.children,q),ja(),E0(),Ua()},ie=(F,W,q,se,he,ge,Te,Se,Ce=!1)=>{const pe=F&&F.children,Be=F?F.shapeFlag:0,Pe=W.children,{patchFlag:re,shapeFlag:Me}=W;if(re>0){if(re&128){ye(pe,Pe,q,se,he,ge,Te,Se,Ce);return}else if(re&256){ee(pe,Pe,q,se,he,ge,Te,Se,Ce);return}}Me&8?(Be&16&&Ne(pe,he,ge),Pe!==pe&&d(q,Pe)):Be&16?Me&16?ye(pe,Pe,q,se,he,ge,Te,Se,Ce):Ne(pe,he,ge,!0):(Be&8&&d(q,""),Me&16&&R(Pe,q,se,he,ge,Te,Se,Ce))},ee=(F,W,q,se,he,ge,Te,Se,Ce)=>{F=F||_a,W=W||_a;const pe=F.length,Be=W.length,Pe=Math.min(pe,Be);let re;for(re=0;reBe?Ne(F,he,ge,!0,!1,Pe):R(W,q,se,he,ge,Te,Se,Ce,Pe)},ye=(F,W,q,se,he,ge,Te,Se,Ce)=>{let pe=0;const Be=W.length;let Pe=F.length-1,re=Be-1;for(;pe<=Pe&&pe<=re;){const Me=F[pe],Ue=W[pe]=Ce?Os(W[pe]):mi(W[pe]);if(wo(Me,Ue))v(Me,Ue,q,null,he,ge,Te,Se,Ce);else break;pe++}for(;pe<=Pe&&pe<=re;){const Me=F[Pe],Ue=W[re]=Ce?Os(W[re]):mi(W[re]);if(wo(Me,Ue))v(Me,Ue,q,null,he,ge,Te,Se,Ce);else break;Pe--,re--}if(pe>Pe){if(pe<=re){const Me=re+1,Ue=Mere)for(;pe<=Pe;)ke(F[pe],he,ge,!0),pe++;else{const Me=pe,Ue=pe,at=new Map;for(pe=Ue;pe<=re;pe++){const St=W[pe]=Ce?Os(W[pe]):mi(W[pe]);St.key!=null&&at.set(St.key,pe)}let st,Bt=0;const Le=re-Ue+1;let Ke=!1,ct=0;const Qe=new Array(Le);for(pe=0;pe=Le){ke(St,he,ge,!0);continue}let Ft;if(St.key!=null)Ft=at.get(St.key);else for(st=Ue;st<=re;st++)if(Qe[st-Ue]===0&&wo(St,W[st])){Ft=st;break}Ft===void 0?ke(St,he,ge,!0):(Qe[Ft-Ue]=pe+1,Ft>=ct?ct=Ft:Ke=!0,v(St,W[Ft],q,null,he,ge,Te,Se,Ce),Bt++)}const xt=Ke?P$(Qe):_a;for(st=xt.length-1,pe=Le-1;pe>=0;pe--){const St=Ue+pe,Ft=W[St],te=St+1{const{el:ge,type:Te,transition:Se,children:Ce,shapeFlag:pe}=F;if(pe&6){Ee(F.component.subTree,W,q,se);return}if(pe&128){F.suspense.move(W,q,se);return}if(pe&64){Te.move(F,W,q,de);return}if(Te===ot){r(ge,W,q);for(let Pe=0;PeSe.enter(ge),he);else{const{leave:Pe,delayLeave:re,afterLeave:Me}=Se,Ue=()=>r(ge,W,q),at=()=>{Pe(ge,()=>{Ue(),Me&&Me()})};re?re(ge,Ue,at):at()}else r(ge,W,q)},ke=(F,W,q,se=!1,he=!1)=>{const{type:ge,props:Te,ref:Se,children:Ce,dynamicChildren:pe,shapeFlag:Be,patchFlag:Pe,dirs:re}=F;if(Se!=null&&sg(Se,null,q,F,!0),Be&256){W.ctx.deactivate(F);return}const Me=Be&1&&re,Ue=!Bl(F);let at;if(Ue&&(at=Te&&Te.onVnodeBeforeUnmount)&&hi(at,W,F),Be&6)Ye(F.component,q,se);else{if(Be&128){F.suspense.unmount(q,se);return}Me&&ao(F,null,W,"beforeUnmount"),Be&64?F.type.remove(F,W,q,he,de,se):pe&&(ge!==ot||Pe>0&&Pe&64)?Ne(pe,W,q,!1,!0):(ge===ot&&Pe&384||!he&&Be&16)&&Ne(Ce,W,q),se&&Ze(F)}(Ue&&(at=Te&&Te.onVnodeUnmounted)||Me)&&sr(()=>{at&&hi(at,W,F),Me&&ao(F,null,W,"unmounted")},q)},Ze=F=>{const{type:W,el:q,anchor:se,transition:he}=F;if(W===ot){le(q,se);return}if(W===pp){x(F);return}const ge=()=>{i(q),he&&!he.persisted&&he.afterLeave&&he.afterLeave()};if(F.shapeFlag&1&&he&&!he.persisted){const{leave:Te,delayLeave:Se}=he,Ce=()=>Te(q,ge);Se?Se(F.el,ge,Ce):Ce()}else ge()},le=(F,W)=>{let q;for(;F!==W;)q=g(F),i(F),F=q;i(W)},Ye=(F,W,q)=>{const{bum:se,scope:he,update:ge,subTree:Te,um:Se}=F;se&&yf(se),he.stop(),ge&&(ge.active=!1,ke(Te,F,W,q)),Se&&sr(Se,W),sr(()=>{F.isUnmounted=!0},W),W&&W.pendingBranch&&!W.isUnmounted&&F.asyncDep&&!F.asyncResolved&&F.suspenseId===W.pendingId&&(W.deps--,W.deps===0&&W.resolve())},Ne=(F,W,q,se=!1,he=!1,ge=0)=>{for(let Te=ge;TeF.shapeFlag&6?Y(F.component.subTree):F.shapeFlag&128?F.suspense.next():g(F.anchor||F.el),oe=(F,W,q)=>{F==null?W._vnode&&ke(W._vnode,null,null,!0):v(W._vnode||null,F,W,null,null,null,q),E0(),tC(),W._vnode=F},de={p:v,um:ke,m:Ee,r:Ze,mt:ue,mc:R,pc:ie,pbc:B,n:Y,o:e};let Oe,We;return t&&([Oe,We]=t(de)),{render:oe,hydrate:Oe,createApp:w$(oe,Oe)}}function lo({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Rm(e,t,n=!1){const r=e.children,i=t.children;if(He(r)&&He(i))for(let s=0;s>1,e[n[a]]0&&(t[r]=n[s-1]),n[s]=r)}}for(s=n.length,o=n[s-1];s-- >0;)n[s]=o,o=t[o];return n}const R$=e=>e.__isTeleport,Hl=e=>e&&(e.disabled||e.disabled===""),N0=e=>typeof SVGElement<"u"&&e instanceof SVGElement,og=(e,t)=>{const n=e&&e.to;return gt(n)?t?t(n):null:n},k$={__isTeleport:!0,process(e,t,n,r,i,s,o,a,u,c){const{mc:d,pc:h,pbc:g,o:{insert:m,querySelector:b,createText:v,createComment:_}}=c,y=Hl(t.props);let{shapeFlag:C,children:T,dynamicChildren:x}=t;if(e==null){const S=t.el=v(""),E=t.anchor=v("");m(S,n,r),m(E,n,r);const A=t.target=og(t.props,b),R=t.targetAnchor=v("");A&&(m(R,A),o=o||N0(A));const $=(B,V)=>{C&16&&d(T,B,V,i,s,o,a,u)};y?$(n,E):A&&$(A,R)}else{t.el=e.el;const S=t.anchor=e.anchor,E=t.target=e.target,A=t.targetAnchor=e.targetAnchor,R=Hl(e.props),$=R?n:E,B=R?S:A;if(o=o||N0(E),x?(g(e.dynamicChildren,x,$,i,s,o,a),Rm(e,t,!0)):u||h(e,t,$,B,i,s,o,a,!1),y)R||Wc(t,n,S,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const V=t.target=og(t.props,b);V&&Wc(t,V,null,c,0)}else R&&Wc(t,E,A,c,1)}xC(t)},remove(e,t,n,r,{um:i,o:{remove:s}},o){const{shapeFlag:a,children:u,anchor:c,targetAnchor:d,target:h,props:g}=e;if(h&&s(d),(o||!Hl(g))&&(s(c),a&16))for(let m=0;m0?Zr||_a:null,I$(),fu>0&&Zr&&Zr.push(e),e}function _e(e,t,n,r,i,s){return CC(L(e,t,n,r,i,s,!0))}function Ae(e,t,n,r,i){return CC(z(e,t,n,r,i,!0))}function Ea(e){return e?e.__v_isVNode===!0:!1}function wo(e,t){return e.type===t.type&&e.key===t.key}const Ad="__vInternal",SC=({key:e})=>e??null,_f=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?gt(e)||$t(e)||Je(e)?{i:On,r:e,k:t,f:!!n}:e:null);function L(e,t=null,n=null,r=0,i=null,s=e===ot?0:1,o=!1,a=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&SC(t),ref:t&&_f(t),scopeId:iC,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:On};return a?(Lm(u,n),s&128&&e.normalize(u)):n&&(u.shapeFlag|=gt(n)?8:16),fu>0&&!o&&Zr&&(u.patchFlag>0||s&6)&&u.patchFlag!==32&&Zr.push(u),u}const z=$$;function $$(e,t=null,n=null,r=0,i=null,s=!1){if((!e||e===fC)&&(e=ar),Ea(e)){const a=Zi(e,t,!0);return n&&Lm(a,n),fu>0&&!s&&Zr&&(a.shapeFlag&6?Zr[Zr.indexOf(e)]=a:Zr.push(a)),a.patchFlag|=-2,a}if(j$(e)&&(e=e.__vccOpts),t){t=F$(t);let{class:a,style:u}=t;a&&!gt(a)&&(t.class=be(a)),bt(u)&&(qx(u)&&!He(u)&&(u=gn({},u)),t.style=Vt(u))}const o=gt(e)?1:QI(e)?128:R$(e)?64:bt(e)?4:Je(e)?2:0;return L(e,t,n,r,i,o,s,!0)}function F$(e){return e?qx(e)||Ad in e?gn({},e):e:null}function Zi(e,t,n=!1){const{props:r,ref:i,patchFlag:s,children:o}=e,a=t?Er(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&SC(a),ref:t&&t.ref?n&&i?He(i)?i.concat(_f(t)):[i,_f(t)]:_f(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ot?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Zi(e.ssContent),ssFallback:e.ssFallback&&Zi(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Z(e=" ",t=0){return z(Ga,null,e,t)}function $e(e="",t=!1){return t?(K(),Ae(ar,null,e)):z(ar,null,e)}function mi(e){return e==null||typeof e=="boolean"?z(ar):He(e)?z(ot,null,e.slice()):typeof e=="object"?Os(e):z(Ga,null,String(e))}function Os(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Zi(e)}function Lm(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(He(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),Lm(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!(Ad in t)?t._ctx=On:i===3&&On&&(On.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Je(t)?(t={default:t,_ctx:On},n=32):(t=String(t),r&64?(n=16,t=[Z(t)]):n=8);e.children=t,e.shapeFlag|=n}function Er(...e){const t={};for(let n=0;n_n||On;let Im,fa,z0="__VUE_INSTANCE_SETTERS__";(fa=Xp()[z0])||(fa=Xp()[z0]=[]),fa.push(e=>_n=e),Im=e=>{fa.length>1?fa.forEach(t=>t(e)):fa[0](e)};const Ma=e=>{Im(e),e.scope.on()},Lo=()=>{_n&&_n.scope.off(),Im(null)};function OC(e){return e.vnode.shapeFlag&4}let du=!1;function z$(e,t=!1){du=t;const{props:n,children:r}=e.vnode,i=OC(e);C$(e,n,i,t),E$(e,r);const s=i?H$(e,t):void 0;return du=!1,s}function H$(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Sd(new Proxy(e.ctx,h$));const{setup:r}=n;if(r){const i=e.setupContext=r.length>1?MC(e):null;Ma(e),ja();const s=Ds(r,e,0,[e.props,i]);if(Ua(),Lo(),Ax(s)){if(s.then(Lo,Lo),t)return s.then(o=>{H0(e,o,t)}).catch(o=>{Od(o,e,0)});e.asyncDep=s}else H0(e,s,t)}else EC(e,t)}function H0(e,t,n){Je(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:bt(t)&&(e.setupState=Xx(t)),EC(e,n)}let W0;function EC(e,t,n){const r=e.type;if(!e.render){if(!t&&W0&&!r.render){const i=r.template||Am(e).template;if(i){const{isCustomElement:s,compilerOptions:o}=e.appContext.config,{delimiters:a,compilerOptions:u}=r,c=gn(gn({isCustomElement:s,delimiters:a},o),u);r.render=W0(i,c)}}e.render=r.render||xn}Ma(e),ja(),g$(e),Ua(),Lo()}function W$(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return cr(e,"get","$attrs"),t[n]}}))}function MC(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return W$(e)},slots:e.slots,emit:e.emit,expose:t}}function Pd(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Xx(Sd(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in zl)return zl[n](e)},has(t,n){return n in t||n in zl}}))}function V$(e,t=!0){return Je(e)?e.displayName||e.name:e.name||t&&e.__name}function j$(e){return Je(e)&&"__vccOpts"in e}const H=(e,t)=>Zx(e,t,du);function Ge(e,t,n){const r=arguments.length;return r===2?bt(t)&&!He(t)?Ea(t)?z(e,null,[t]):z(e,t):z(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Ea(n)&&(n=[n]),z(e,t,n))}const U$=Symbol.for("v-scx"),K$=()=>qe(U$),q$="3.3.4",Y$="http://www.w3.org/2000/svg",xo=typeof document<"u"?document:null,V0=xo&&xo.createElement("template"),G$={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=t?xo.createElementNS(Y$,e):xo.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>xo.createTextNode(e),createComment:e=>xo.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>xo.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,s){const o=n?n.previousSibling:t.lastChild;if(i&&(i===s||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===s||!(i=i.nextSibling)););else{V0.innerHTML=r?`${e}`:e;const a=V0.content;if(r){const u=a.firstChild;for(;u.firstChild;)a.appendChild(u.firstChild);a.removeChild(u)}t.insertBefore(a,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function X$(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function J$(e,t,n){const r=e.style,i=gt(n);if(n&&!i){if(t&&!gt(t))for(const s in t)n[s]==null&&ag(r,s,"");for(const s in n)ag(r,s,n[s])}else{const s=r.display;i?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=s)}}const j0=/\s*!important$/;function ag(e,t,n){if(He(n))n.forEach(r=>ag(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Z$(e,t);j0.test(n)?e.setProperty(jo(r),n.replace(j0,""),"important"):e[r]=n}}const U0=["Webkit","Moz","ms"],gp={};function Z$(e,t){const n=gp[t];if(n)return n;let r=ri(t);if(r!=="filter"&&r in e)return gp[t]=r;r=wd(r);for(let i=0;imp||(iF.then(()=>mp=0),mp=Date.now());function oF(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Nr(aF(r,n.value),t,5,[r])};return n.value=e,n.attached=sF(),n}function aF(e,t){if(He(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>i=>!i._stopped&&r&&r(i))}else return t}const Y0=/^on[a-z]/,lF=(e,t,n,r,i=!1,s,o,a,u)=>{t==="class"?X$(e,r,i):t==="style"?J$(e,n,r):bd(t)?um(t)||nF(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):uF(e,t,r,i))?eF(e,t,r,s,o,a,u):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Q$(e,t,r,i))};function uF(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&Y0.test(t)&&Je(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Y0.test(t)&>(n)?!1:t in e}const bs="transition",yl="animation",ii=(e,{slots:t})=>Ge(r$,AC(e),t);ii.displayName="Transition";const TC={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},cF=ii.props=gn({},aC,TC),uo=(e,t=[])=>{He(e)?e.forEach(n=>n(...t)):e&&e(...t)},G0=e=>e?He(e)?e.some(t=>t.length>1):e.length>1:!1;function AC(e){const t={};for(const P in e)P in TC||(t[P]=e[P]);if(e.css===!1)return t;const{name:n="v",type:r,duration:i,enterFromClass:s=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:u=s,appearActiveClass:c=o,appearToClass:d=a,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:g=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,b=fF(i),v=b&&b[0],_=b&&b[1],{onBeforeEnter:y,onEnter:C,onEnterCancelled:T,onLeave:x,onLeaveCancelled:S,onBeforeAppear:E=y,onAppear:A=C,onAppearCancelled:R=T}=t,$=(P,j,ue)=>{ws(P,j?d:a),ws(P,j?c:o),ue&&ue()},B=(P,j)=>{P._isLeaving=!1,ws(P,h),ws(P,m),ws(P,g),j&&j()},V=P=>(j,ue)=>{const ce=P?A:C,ne=()=>$(j,P,ue);uo(ce,[j,ne]),X0(()=>{ws(j,P?u:s),Hi(j,P?d:a),G0(ce)||J0(j,r,v,ne)})};return gn(t,{onBeforeEnter(P){uo(y,[P]),Hi(P,s),Hi(P,o)},onBeforeAppear(P){uo(E,[P]),Hi(P,u),Hi(P,c)},onEnter:V(!1),onAppear:V(!0),onLeave(P,j){P._isLeaving=!0;const ue=()=>B(P,j);Hi(P,h),RC(),Hi(P,g),X0(()=>{P._isLeaving&&(ws(P,h),Hi(P,m),G0(x)||J0(P,r,_,ue))}),uo(x,[P,ue])},onEnterCancelled(P){$(P,!1),uo(T,[P])},onAppearCancelled(P){$(P,!0),uo(R,[P])},onLeaveCancelled(P){B(P),uo(S,[P])}})}function fF(e){if(e==null)return null;if(bt(e))return[vp(e.enter),vp(e.leave)];{const t=vp(e);return[t,t]}}function vp(e){return eI(e)}function Hi(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function ws(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function X0(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let dF=0;function J0(e,t,n,r){const i=e._endId=++dF,s=()=>{i===e._endId&&r()};if(n)return setTimeout(s,n);const{type:o,timeout:a,propCount:u}=PC(e,t);if(!o)return r();const c=o+"end";let d=0;const h=()=>{e.removeEventListener(c,g),s()},g=m=>{m.target===e&&++d>=u&&h()};setTimeout(()=>{d(n[b]||"").split(", "),i=r(`${bs}Delay`),s=r(`${bs}Duration`),o=Z0(i,s),a=r(`${yl}Delay`),u=r(`${yl}Duration`),c=Z0(a,u);let d=null,h=0,g=0;t===bs?o>0&&(d=bs,h=o,g=s.length):t===yl?c>0&&(d=yl,h=c,g=u.length):(h=Math.max(o,c),d=h>0?o>c?bs:yl:null,g=d?d===bs?s.length:u.length:0);const m=d===bs&&/\b(transform|all)(,|$)/.test(r(`${bs}Property`).toString());return{type:d,timeout:h,propCount:g,hasTransform:m}}function Z0(e,t){for(;e.lengthQ0(n)+Q0(e[r])))}function Q0(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function RC(){return document.body.offsetHeight}const kC=new WeakMap,LC=new WeakMap,IC={name:"TransitionGroup",props:gn({},cF,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=kt(),r=oC();let i,s;return Uo(()=>{if(!i.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!bF(i[0].el,n.vnode.el,o))return;i.forEach(gF),i.forEach(mF);const a=i.filter(vF);RC(),a.forEach(u=>{const c=u.el,d=c.style;Hi(c,o),d.transform=d.webkitTransform=d.transitionDuration="";const h=c._moveCb=g=>{g&&g.target!==c||(!g||/transform$/.test(g.propertyName))&&(c.removeEventListener("transitionend",h),c._moveCb=null,ws(c,o))};c.addEventListener("transitionend",h)})}),()=>{const o=ut(e),a=AC(o);let u=o.tag||ot;i=s,s=t.default?Om(t.default()):[];for(let c=0;cdelete e.mode;IC.props;const pF=IC;function gF(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function mF(e){LC.set(e,e.el.getBoundingClientRect())}function vF(e){const t=kC.get(e),n=LC.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){const s=e.el.style;return s.transform=s.webkitTransform=`translate(${r}px,${i}px)`,s.transitionDuration="0s",e}}function bF(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach(o=>{o.split(/\s+/).forEach(a=>a&&r.classList.remove(a))}),n.split(/\s+/).forEach(o=>o&&r.classList.add(o)),r.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(r);const{hasTransform:s}=PC(r);return i.removeChild(r),s}const Yf=e=>{const t=e.props["onUpdate:modelValue"]||!1;return He(t)?n=>yf(t,n):t};function yF(e){e.target.composing=!0}function e_(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const _F={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e._assign=Yf(i);const s=r||i.props&&i.props.type==="number";Co(e,t?"change":"input",o=>{if(o.target.composing)return;let a=e.value;n&&(a=a.trim()),s&&(a=Gp(a)),e._assign(a)}),n&&Co(e,"change",()=>{e.value=e.value.trim()}),t||(Co(e,"compositionstart",yF),Co(e,"compositionend",e_),Co(e,"change",e_))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:i}},s){if(e._assign=Yf(s),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(i||e.type==="number")&&Gp(e.value)===t))return;const o=t??"";e.value!==o&&(e.value=o)}},Gf={deep:!0,created(e,t,n){e._assign=Yf(n),Co(e,"change",()=>{const r=e._modelValue,i=wF(e),s=e.checked,o=e._assign;if(He(r)){const a=Lx(r,i),u=a!==-1;if(s&&!u)o(r.concat(i));else if(!s&&u){const c=[...r];c.splice(a,1),o(c)}}else if(yd(r)){const a=new Set(r);s?a.add(i):a.delete(i),o(a)}else o($C(e,s))})},mounted:t_,beforeUpdate(e,t,n){e._assign=Yf(n),t_(e,t,n)}};function t_(e,{value:t,oldValue:n},r){e._modelValue=t,He(t)?e.checked=Lx(t,r.props.value)>-1:yd(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=xd(t,$C(e,!0)))}function wF(e){return"_value"in e?e._value:e.value}function $C(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const xF=["ctrl","shift","alt","meta"],CF={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&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>xF.some(n=>e[`${n}Key`]&&!t.includes(n))},xr=(e,t)=>(n,...r)=>{for(let i=0;in=>{if(!("key"in n))return;const r=jo(n.key);if(t.some(i=>i===r||SF[i]===r))return e(n)},si={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):_l(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),_l(e,!0),r.enter(e)):r.leave(e,()=>{_l(e,!1)}):_l(e,t))},beforeUnmount(e,{value:t}){_l(e,t)}};function _l(e,t){e.style.display=t?e._vod:"none"}const OF=gn({patchProp:lF},G$);let n_;function EF(){return n_||(n_=T$(OF))}const MF=(...e)=>{const t=EF().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=TF(r);if(!i)return;const s=t._component;!Je(s)&&!s.render&&!s.template&&(s.template=i.innerHTML),i.innerHTML="";const o=n(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t};function TF(e){return gt(e)?document.querySelector(e):e}const wf=function(e,t,...n){let r;t.includes("mouse")||t.includes("click")?r="MouseEvents":t.includes("key")?r="KeyboardEvent":r="HTMLEvents";const i=document.createEvent(r);return i.initEvent(t,...n),e.dispatchEvent(i),e},Ki=(e,t,{checkForDefaultPrevented:n=!0}={})=>i=>{const s=e==null?void 0:e(i);if(n===!1||!s)return t==null?void 0:t(i)};var r_;const tn=typeof window<"u",AF=e=>typeof e=="function",PF=e=>typeof e=="string",Xf=()=>{},FC=tn&&((r_=window==null?void 0:window.navigator)==null?void 0:r_.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Ws(e){return typeof e=="function"?e():O(e)}function DC(e,t){function n(...r){return new Promise((i,s)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(i).catch(s)})}return n}const NC=e=>e();function RF(e,t={}){let n,r,i=Xf;const s=a=>{clearTimeout(a),i(),i=Xf};return a=>{const u=Ws(e),c=Ws(t.maxWait);return n&&s(n),u<=0||c!==void 0&&c<=0?(r&&(s(r),r=null),Promise.resolve(a())):new Promise((d,h)=>{i=t.rejectOnCancel?h:d,c&&!r&&(r=setTimeout(()=>{n&&s(n),r=null,d(a())},c)),n=setTimeout(()=>{r&&s(r),r=null,d(a())},u)})}}function kF(e=NC){const t=X(!0);function n(){t.value=!1}function r(){t.value=!0}const i=(...s)=>{t.value&&e(...s)};return{isActive:Lu(t),pause:n,resume:r,eventFilter:i}}function LF(e){return e}function Iu(e){return dm()?(hm(e),!0):!1}function IF(e,t=200,n={}){return DC(RF(t,n),e)}function $F(e,t=200,n={}){const r=X(e.value),i=IF(()=>{r.value=e.value},t,n);return Ie(e,()=>i()),r}function FF(e){return typeof e=="function"?H(e):X(e)}function BC(e,t=!0){kt()?Lt(e):t?e():vt(e)}function Jf(e,t,n={}){const{immediate:r=!0}=n,i=X(!1);let s=null;function o(){s&&(clearTimeout(s),s=null)}function a(){i.value=!1,o()}function u(...c){o(),i.value=!0,s=setTimeout(()=>{i.value=!1,s=null,e(...c)},Ws(t))}return r&&(i.value=!0,tn&&u()),Iu(a),{isPending:Lu(i),start:u,stop:a}}function DF(e=!1,t={}){const{truthyValue:n=!0,falsyValue:r=!1}=t,i=$t(e),s=X(e);function o(a){if(arguments.length)return s.value=a,s.value;{const u=Ws(n);return s.value=s.value===u?Ws(r):u,s.value}}return i?o:[s,o]}var i_=Object.getOwnPropertySymbols,NF=Object.prototype.hasOwnProperty,BF=Object.prototype.propertyIsEnumerable,zF=(e,t)=>{var n={};for(var r in e)NF.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&i_)for(var r of i_(e))t.indexOf(r)<0&&BF.call(e,r)&&(n[r]=e[r]);return n};function HF(e,t,n={}){const r=n,{eventFilter:i=NC}=r,s=zF(r,["eventFilter"]);return Ie(e,DC(i,t),s)}var WF=Object.defineProperty,VF=Object.defineProperties,jF=Object.getOwnPropertyDescriptors,Zf=Object.getOwnPropertySymbols,zC=Object.prototype.hasOwnProperty,HC=Object.prototype.propertyIsEnumerable,s_=(e,t,n)=>t in e?WF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,UF=(e,t)=>{for(var n in t||(t={}))zC.call(t,n)&&s_(e,n,t[n]);if(Zf)for(var n of Zf(t))HC.call(t,n)&&s_(e,n,t[n]);return e},KF=(e,t)=>VF(e,jF(t)),qF=(e,t)=>{var n={};for(var r in e)zC.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Zf)for(var r of Zf(e))t.indexOf(r)<0&&HC.call(e,r)&&(n[r]=e[r]);return n};function YF(e,t,n={}){const r=n,{eventFilter:i}=r,s=qF(r,["eventFilter"]),{eventFilter:o,pause:a,resume:u,isActive:c}=kF(i);return{stop:HF(e,t,KF(UF({},s),{eventFilter:o})),pause:a,resume:u,isActive:c}}function Ms(e){var t;const n=Ws(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Vs=tn?window:void 0;function yi(...e){let t,n,r,i;if(PF(e[0])||Array.isArray(e[0])?([n,r,i]=e,t=Vs):[t,n,r,i]=e,!t)return Xf;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const s=[],o=()=>{s.forEach(d=>d()),s.length=0},a=(d,h,g,m)=>(d.addEventListener(h,g,m),()=>d.removeEventListener(h,g,m)),u=Ie(()=>[Ms(t),Ws(i)],([d,h])=>{o(),d&&s.push(...n.flatMap(g=>r.map(m=>a(d,g,m,h))))},{immediate:!0,flush:"post"}),c=()=>{u(),o()};return Iu(c),c}let o_=!1;function GF(e,t,n={}){const{window:r=Vs,ignore:i=[],capture:s=!0,detectIframe:o=!1}=n;if(!r)return;FC&&!o_&&(o_=!0,Array.from(r.document.body.children).forEach(g=>g.addEventListener("click",Xf)));let a=!0;const u=g=>i.some(m=>{if(typeof m=="string")return Array.from(r.document.querySelectorAll(m)).some(b=>b===g.target||g.composedPath().includes(b));{const b=Ms(m);return b&&(g.target===b||g.composedPath().includes(b))}}),d=[yi(r,"click",g=>{const m=Ms(e);if(!(!m||m===g.target||g.composedPath().includes(m))){if(g.detail===0&&(a=!u(g)),!a){a=!0;return}t(g)}},{passive:!0,capture:s}),yi(r,"pointerdown",g=>{const m=Ms(e);m&&(a=!g.composedPath().includes(m)&&!u(g))},{passive:!0}),o&&yi(r,"blur",g=>{var m;const b=Ms(e);((m=r.document.activeElement)==null?void 0:m.tagName)==="IFRAME"&&!(b!=null&&b.contains(r.document.activeElement))&&t(g)})].filter(Boolean);return()=>d.forEach(g=>g())}function WC(e,t=!1){const n=X(),r=()=>n.value=!!e();return r(),BC(r,t),n}function XF(e,t={}){const{window:n=Vs}=t,r=WC(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let i;const s=X(!1),o=()=>{i&&("removeEventListener"in i?i.removeEventListener("change",a):i.removeListener(a))},a=()=>{r.value&&(o(),i=n.matchMedia(FF(e).value),s.value=i.matches,"addEventListener"in i?i.addEventListener("change",a):i.addListener(a))};return Ns(a),Iu(()=>o()),s}const lg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ug="__vueuse_ssr_handlers__";lg[ug]=lg[ug]||{};const JF=lg[ug];function VC(e,t){return JF[e]||t}function ZF(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}var QF=Object.defineProperty,a_=Object.getOwnPropertySymbols,eD=Object.prototype.hasOwnProperty,tD=Object.prototype.propertyIsEnumerable,l_=(e,t,n)=>t in e?QF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,u_=(e,t)=>{for(var n in t||(t={}))eD.call(t,n)&&l_(e,n,t[n]);if(a_)for(var n of a_(t))tD.call(t,n)&&l_(e,n,t[n]);return e};const nD={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},c_="vueuse-storage";function rD(e,t,n,r={}){var i;const{flush:s="pre",deep:o=!0,listenToStorageChanges:a=!0,writeDefaults:u=!0,mergeDefaults:c=!1,shallow:d,window:h=Vs,eventFilter:g,onError:m=R=>{console.error(R)}}=r,b=(d?Fs:X)(t);if(!n)try{n=VC("getDefaultStorage",()=>{var R;return(R=Vs)==null?void 0:R.localStorage})()}catch(R){m(R)}if(!n)return b;const v=Ws(t),_=ZF(v),y=(i=r.serializer)!=null?i:nD[_],{pause:C,resume:T}=YF(b,()=>x(b.value),{flush:s,deep:o,eventFilter:g});return h&&a&&(yi(h,"storage",A),yi(h,c_,E)),A(),b;function x(R){try{if(R==null)n.removeItem(e);else{const $=y.write(R),B=n.getItem(e);B!==$&&(n.setItem(e,$),h&&h.dispatchEvent(new CustomEvent(c_,{detail:{key:e,oldValue:B,newValue:$,storageArea:n}})))}}catch($){m($)}}function S(R){const $=R?R.newValue:n.getItem(e);if($==null)return u&&v!==null&&n.setItem(e,y.write(v)),v;if(!R&&c){const B=y.read($);return AF(c)?c(B,v):_==="object"&&!Array.isArray(B)?u_(u_({},v),B):B}else return typeof $!="string"?$:y.read($)}function E(R){A(R.detail)}function A(R){if(!(R&&R.storageArea!==n)){if(R&&R.key==null){b.value=v;return}if(!(R&&R.key!==e)){C();try{b.value=S(R)}catch($){m($)}finally{R?vt(T):T()}}}}}function jC(e){return XF("(prefers-color-scheme: dark)",e)}var iD=Object.defineProperty,f_=Object.getOwnPropertySymbols,sD=Object.prototype.hasOwnProperty,oD=Object.prototype.propertyIsEnumerable,d_=(e,t,n)=>t in e?iD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,aD=(e,t)=>{for(var n in t||(t={}))sD.call(t,n)&&d_(e,n,t[n]);if(f_)for(var n of f_(t))oD.call(t,n)&&d_(e,n,t[n]);return e};function lD(e={}){const{selector:t="html",attribute:n="class",initialValue:r="auto",window:i=Vs,storage:s,storageKey:o="vueuse-color-scheme",listenToStorageChanges:a=!0,storageRef:u,emitAuto:c}=e,d=aD({auto:"",light:"light",dark:"dark"},e.modes||{}),h=jC({window:i}),g=H(()=>h.value?"dark":"light"),m=u||(o==null?X(r):rD(o,r,s,{window:i,listenToStorageChanges:a})),b=H({get(){return m.value==="auto"&&!c?g.value:m.value},set(C){m.value=C}}),v=VC("updateHTMLAttrs",(C,T,x)=>{const S=i==null?void 0:i.document.querySelector(C);if(S)if(T==="class"){const E=x.split(/\s/g);Object.values(d).flatMap(A=>(A||"").split(/\s/g)).filter(Boolean).forEach(A=>{E.includes(A)?S.classList.add(A):S.classList.remove(A)})}else S.setAttribute(T,x)});function _(C){var T;const x=C==="auto"?g.value:C;v(t,n,(T=d[x])!=null?T:x)}function y(C){e.onChanged?e.onChanged(C,_):_(C)}return Ie(b,y,{flush:"post",immediate:!0}),c&&Ie(g,()=>y(b.value),{flush:"post"}),BC(()=>y(b.value)),b}var uD=Object.defineProperty,cD=Object.defineProperties,fD=Object.getOwnPropertyDescriptors,h_=Object.getOwnPropertySymbols,dD=Object.prototype.hasOwnProperty,hD=Object.prototype.propertyIsEnumerable,p_=(e,t,n)=>t in e?uD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,pD=(e,t)=>{for(var n in t||(t={}))dD.call(t,n)&&p_(e,n,t[n]);if(h_)for(var n of h_(t))hD.call(t,n)&&p_(e,n,t[n]);return e},gD=(e,t)=>cD(e,fD(t));function mD(e={}){const{valueDark:t="dark",valueLight:n="",window:r=Vs}=e,i=lD(gD(pD({},e),{onChanged:(a,u)=>{var c;e.onChanged?(c=e.onChanged)==null||c.call(e,a==="dark"):u(a)},modes:{dark:t,light:n}})),s=jC({window:r});return H({get(){return i.value==="dark"},set(a){a===s.value?i.value="auto":i.value=a?"dark":"light"}})}var g_=Object.getOwnPropertySymbols,vD=Object.prototype.hasOwnProperty,bD=Object.prototype.propertyIsEnumerable,yD=(e,t)=>{var n={};for(var r in e)vD.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&g_)for(var r of g_(e))t.indexOf(r)<0&&bD.call(e,r)&&(n[r]=e[r]);return n};function js(e,t,n={}){const r=n,{window:i=Vs}=r,s=yD(r,["window"]);let o;const a=WC(()=>i&&"ResizeObserver"in i),u=()=>{o&&(o.disconnect(),o=void 0)},c=Ie(()=>Ms(e),h=>{u(),a.value&&i&&h&&(o=new ResizeObserver(t),o.observe(h,s))},{immediate:!0,flush:"post"}),d=()=>{u(),c()};return Iu(d),{isSupported:a,stop:d}}var m_;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(m_||(m_={}));var _D=Object.defineProperty,v_=Object.getOwnPropertySymbols,wD=Object.prototype.hasOwnProperty,xD=Object.prototype.propertyIsEnumerable,b_=(e,t,n)=>t in e?_D(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,CD=(e,t)=>{for(var n in t||(t={}))wD.call(t,n)&&b_(e,n,t[n]);if(v_)for(var n of v_(t))xD.call(t,n)&&b_(e,n,t[n]);return e};const SD={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};CD({linear:LF},SD);const OD=()=>tn&&/firefox/i.test(window.navigator.userAgent);var ED=typeof global=="object"&&global&&global.Object===Object&&global;const UC=ED;var MD=typeof self=="object"&&self&&self.Object===Object&&self,TD=UC||MD||Function("return this")();const ai=TD;var AD=ai.Symbol;const zr=AD;var KC=Object.prototype,PD=KC.hasOwnProperty,RD=KC.toString,wl=zr?zr.toStringTag:void 0;function kD(e){var t=PD.call(e,wl),n=e[wl];try{e[wl]=void 0;var r=!0}catch{}var i=RD.call(e);return r&&(t?e[wl]=n:delete e[wl]),i}var LD=Object.prototype,ID=LD.toString;function $D(e){return ID.call(e)}var FD="[object Null]",DD="[object Undefined]",y_=zr?zr.toStringTag:void 0;function Ko(e){return e==null?e===void 0?DD:FD:y_&&y_ in Object(e)?kD(e):$D(e)}function xi(e){return e!=null&&typeof e=="object"}var ND="[object Symbol]";function Rd(e){return typeof e=="symbol"||xi(e)&&Ko(e)==ND}function qC(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n0){if(++t>=m4)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function _4(e){return function(){return e}}var w4=function(){try{var e=Yo(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Qf=w4;var x4=Qf?function(e,t){return Qf(e,"toString",{configurable:!0,enumerable:!1,value:_4(t),writable:!0})}:$m;const C4=x4;var S4=y4(C4);const XC=S4;function O4(e,t){for(var n=-1,r=e==null?0:e.length;++n-1&&e%1==0&&e-1&&e%1==0&&e<=R4}function Xa(e){return e!=null&&Bm(e.length)&&!Fm(e)}function k4(e,t,n){if(!fr(n))return!1;var r=typeof t;return(r=="number"?Xa(n)&&kd(t,n.length):r=="string"&&t in n)?$u(n[t],e):!1}function L4(e){return P4(function(t,n){var r=-1,i=n.length,s=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(s=e.length>3&&typeof s=="function"?(i--,s):void 0,o&&k4(n[0],n[1],o)&&(s=i<3?void 0:s,i=1),t=Object(t);++r-1}function GN(e,t){var n=this.__data__,r=Ld(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function is(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t0&&n(a)?t>1?qm(a,t-1,n,r,i):Km(i,a):r||(i[i.length]=a)}return i}function h3(e){var t=e==null?0:e.length;return t?qm(e,1):[]}function p3(e){return XC(JC(e,void 0,h3),e+"")}var g3=nS(Object.getPrototypeOf,Object);const Ym=g3;var m3="[object Object]",v3=Function.prototype,b3=Object.prototype,rS=v3.toString,y3=b3.hasOwnProperty,_3=rS.call(Object);function w3(e){if(!xi(e)||Ko(e)!=m3)return!1;var t=Ym(e);if(t===null)return!0;var n=y3.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&rS.call(n)==_3}function fg(){if(!arguments.length)return[];var e=arguments[0];return Jn(e)?e:[e]}function x3(){this.__data__=new is,this.size=0}function C3(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function S3(e){return this.__data__.get(e)}function O3(e){return this.__data__.has(e)}var E3=200;function M3(e,t){var n=this.__data__;if(n instanceof is){var r=n.__data__;if(!mu||r.lengtha))return!1;var c=s.get(e),d=s.get(t);if(c&&d)return c==t&&d==e;var h=-1,g=!0,m=n&c8?new td:void 0;for(s.set(e,t),s.set(t,e);++h=t||A<0||h&&R>=s}function y(){var E=wp();if(_(E))return C(E);a=setTimeout(y,v(E))}function C(E){return a=void 0,g&&r?m(E):(r=i=void 0,o)}function T(){a!==void 0&&clearTimeout(a),c=0,r=u=i=a=void 0}function x(){return a===void 0?o:C(wp())}function S(){var E=wp(),A=_(E);if(r=arguments,i=this,u=E,A){if(a===void 0)return b(u);if(h)return clearTimeout(a),a=setTimeout(y,t),m(u)}return a===void 0&&(a=setTimeout(y,t)),o}return S.cancel=T,S.flush=x,S}function mg(e,t,n){(n!==void 0&&!$u(e[t],n)||n===void 0&&!(t in e))&&Dm(e,t,n)}function i5(e){return xi(e)&&Xa(e)}function vg(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function s5(e){return Fu(e,Nu(e))}function o5(e,t,n,r,i,s,o){var a=vg(e,n),u=vg(t,n),c=o.get(u);if(c){mg(e,n,c);return}var d=s?s(a,u,n+"",e,t,o):void 0,h=d===void 0;if(h){var g=Jn(u),m=!g&&pu(u),b=!g&&!m&&Wm(u);d=u,g||m||b?Jn(a)?d=a:i5(a)?d=GC(a):m?(h=!1,d=sS(u,!0)):b?(h=!1,d=uS(u,!0)):d=[]:w3(u)||hu(u)?(d=a,hu(a)?d=s5(a):(!fr(a)||Fm(a))&&(d=cS(u))):h=!1}h&&(o.set(u,d),i(d,u,r,s,o),o.delete(u)),mg(e,n,d)}function yS(e,t,n,r,i){e!==t&&bS(t,function(s,o){if(i||(i=new ti),fr(s))o5(e,t,o,n,yS,r,i);else{var a=r?r(vg(e,o),s,o+"",e,t,i):void 0;a===void 0&&(a=s),mg(e,o,a)}},Nu)}function a5(e,t){var n=-1,r=Xa(e)?Array(e.length):[];return Q8(e,function(i,s,o){r[++n]=t(i,s,o)}),r}function l5(e,t){var n=Jn(e)?qC:a5;return n(e,q8(t))}function u5(e,t){return qm(l5(e,t),1)}function nd(e){for(var t=-1,n=e==null?0:e.length,r={};++te===void 0,Qi=e=>typeof e=="boolean",jn=e=>typeof e=="number",Ra=e=>typeof Element>"u"?!1:e instanceof Element,v5=e=>gt(e)?!Number.isNaN(Number(e)):!1,b5=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),X_=e=>Object.keys(e),Cf=(e,t,n)=>({get value(){return zn(e,t,n)},set value(r){m5(e,t,r)}});class y5 extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Us(e,t){throw new y5(`[${e}] ${t}`)}const xS=(e="")=>e.split(" ").filter(t=>!!t.trim()),Io=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Mo=(e,t)=>{!e||!t.trim()||e.classList.add(...xS(t))},$o=(e,t)=>{!e||!t.trim()||e.classList.remove(...xS(t))},yg=(e,t)=>{var n;if(!tn||!e||!t)return"";let r=ri(t);r==="float"&&(r="cssFloat");try{const i=e.style[r];if(i)return i;const s=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return s?s[r]:""}catch{return e.style[r]}};function es(e,t="px"){if(!e)return"";if(jn(e)||v5(e))return`${e}${t}`;if(gt(e))return e}let jc;const _5=e=>{var t;if(!tn)return 0;if(jc!==void 0)return jc;const n=document.createElement("div");n.className=`${e}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const r=n.offsetWidth;n.style.overflow="scroll";const i=document.createElement("div");i.style.width="100%",n.appendChild(i);const s=i.offsetWidth;return(t=n.parentNode)==null||t.removeChild(n),jc=r-s,jc};function w5(e,t){if(!tn)return;if(!t){e.scrollTop=0;return}const n=[];let r=t.offsetParent;for(;r!==null&&e!==r&&e.contains(r);)n.push(r),r=r.offsetParent;const i=t.offsetTop+n.reduce((u,c)=>u+c.offsetTop,0),s=i+t.offsetHeight,o=e.scrollTop,a=o+e.clientHeight;ia&&(e.scrollTop=s-e.clientHeight)}/*! Element Plus Icons Vue v2.1.0 */var Si=(e,t)=>{let n=e.__vccOpts||e;for(let[r,i]of t)n[r]=i;return n},x5={name:"ArrowDown"},C5={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},S5=L("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"},null,-1),O5=[S5];function E5(e,t,n,r,i,s){return K(),_e("svg",C5,O5)}var Jm=Si(x5,[["render",E5],["__file","arrow-down.vue"]]),M5={name:"ArrowRight"},T5={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},A5=L("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"},null,-1),P5=[A5];function R5(e,t,n,r,i,s){return K(),_e("svg",T5,P5)}var Zm=Si(M5,[["render",R5],["__file","arrow-right.vue"]]),k5={name:"ArrowUp"},L5={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},I5=L("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0z"},null,-1),$5=[I5];function F5(e,t,n,r,i,s){return K(),_e("svg",L5,$5)}var D5=Si(k5,[["render",F5],["__file","arrow-up.vue"]]),N5={name:"CircleCheck"},B5={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},z5=L("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),H5=L("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"},null,-1),W5=[z5,H5];function V5(e,t,n,r,i,s){return K(),_e("svg",B5,W5)}var j5=Si(N5,[["render",V5],["__file","circle-check.vue"]]),U5={name:"CircleClose"},K5={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},q5=L("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248L466.752 512z"},null,-1),Y5=L("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),G5=[q5,Y5];function X5(e,t,n,r,i,s){return K(),_e("svg",K5,G5)}var Qm=Si(U5,[["render",X5],["__file","circle-close.vue"]]),J5={name:"Close"},Z5={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Q5=L("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"},null,-1),e6=[Q5];function t6(e,t,n,r,i,s){return K(),_e("svg",Z5,e6)}var id=Si(J5,[["render",t6],["__file","close.vue"]]),n6={name:"Hide"},r6={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},i6=L("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2L371.2 588.8ZM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"},null,-1),s6=L("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"},null,-1),o6=[i6,s6];function a6(e,t,n,r,i,s){return K(),_e("svg",r6,o6)}var l6=Si(n6,[["render",a6],["__file","hide.vue"]]),u6={name:"Loading"},c6={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},f6=L("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0zm-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"},null,-1),d6=[f6];function h6(e,t,n,r,i,s){return K(),_e("svg",c6,d6)}var ev=Si(u6,[["render",h6],["__file","loading.vue"]]),p6={name:"More"},g6={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},m6=L("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96z"},null,-1),v6=[m6];function b6(e,t,n,r,i,s){return K(),_e("svg",g6,v6)}var y6=Si(p6,[["render",b6],["__file","more.vue"]]),_6={name:"View"},w6={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},x6=L("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352zm0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448zm0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160z"},null,-1),C6=[x6];function S6(e,t,n,r,i,s){return K(),_e("svg",w6,C6)}var O6=Si(_6,[["render",S6],["__file","view.vue"]]);const CS="__epPropKey",it=e=>e,E6=e=>bt(e)&&!!e[CS],Dd=(e,t)=>{if(!bt(e)||E6(e))return e;const{values:n,required:r,default:i,type:s,validator:o}=e,u={type:s,required:!!r,validator:n||o?c=>{let d=!1,h=[];if(n&&(h=Array.from(n),_t(e,"default")&&h.push(i),d||(d=h.includes(c))),o&&(d||(d=o(c))),!d&&h.length>0){const g=[...new Set(h)].map(m=>JSON.stringify(m)).join(", ");WI(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${g}], got value ${JSON.stringify(c)}.`)}return d}:void 0,[CS]:!0};return _t(e,"default")&&(u.default=i),u},Nt=e=>nd(Object.entries(e).map(([t,n])=>[t,Dd(n,t)])),Qr=it([String,Object,Function]),M6={Close:id},T6={validating:ev,success:j5,error:Qm},$n=(e,t)=>{if(e.install=n=>{for(const r of[e,...Object.values(t??{})])n.component(r.name,r)},t)for(const[n,r]of Object.entries(t))e[n]=r;return e},Oi=e=>(e.install=xn,e),A6=(...e)=>t=>{e.forEach(n=>{Je(n)?n(t):n.value=t})},Wn={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},Rn="update:modelValue",SS="change",zu=["","default","small","large"],P6={large:40,default:32,small:24},R6=e=>P6[e||"default"],k6=e=>["",...zu].includes(e);var Sf=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(Sf||{});const Of=e=>{const t=He(e)?e:[e],n=[];return t.forEach(r=>{var i;He(r)?n.push(...Of(r)):Ea(r)&&He(r.children)?n.push(...Of(r.children)):(n.push(r),Ea(r)&&((i=r.component)!=null&&i.subTree)&&n.push(...Of(r.component.subTree)))}),n},OS=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),So=e=>e,L6=["class","style"],I6=/^on[A-Z]/,$6=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,r=H(()=>((n==null?void 0:n.value)||[]).concat(L6)),i=kt();return H(i?()=>{var s;return nd(Object.entries((s=i.proxy)==null?void 0:s.$attrs).filter(([o])=>!r.value.includes(o)&&!(t&&I6.test(o))))}:()=>({}))},zo=({from:e,replacement:t,scope:n,version:r,ref:i,type:s="API"},o)=>{Ie(()=>O(o),a=>{},{immediate:!0})},F6=(e,t,n)=>{let r={offsetX:0,offsetY:0};const i=a=>{const u=a.clientX,c=a.clientY,{offsetX:d,offsetY:h}=r,g=e.value.getBoundingClientRect(),m=g.left,b=g.top,v=g.width,_=g.height,y=document.documentElement.clientWidth,C=document.documentElement.clientHeight,T=-m+d,x=-b+h,S=y-m-v+d,E=C-b-_+h,A=$=>{const B=Math.min(Math.max(d+$.clientX-u,T),S),V=Math.min(Math.max(h+$.clientY-c,x),E);r={offsetX:B,offsetY:V},e.value.style.transform=`translate(${es(B)}, ${es(V)})`},R=()=>{document.removeEventListener("mousemove",A),document.removeEventListener("mouseup",R)};document.addEventListener("mousemove",A),document.addEventListener("mouseup",R)},s=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",i)},o=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",i)};Lt(()=>{Ns(()=>{n.value?s():o()})}),Mn(()=>{o()})},D6=e=>({focus:()=>{var t,n;(n=(t=e.value)==null?void 0:t.focus)==null||n.call(t)}});var N6={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};const B6=e=>(t,n)=>z6(t,n,O(e)),z6=(e,t,n)=>zn(n,e,e).replace(/\{(\w+)\}/g,(r,i)=>{var s;return`${(s=t==null?void 0:t[i])!=null?s:`{${i}}`}`}),H6=e=>{const t=H(()=>O(e).name),n=$t(e)?e:X(e);return{lang:t,locale:n,t:B6(e)}},ES=Symbol("localeContextKey"),Go=e=>{const t=e||qe(ES,X());return H6(H(()=>t.value||N6))},_g="el",W6="is-",co=(e,t,n,r,i)=>{let s=`${e}-${t}`;return n&&(s+=`-${n}`),r&&(s+=`__${r}`),i&&(s+=`--${i}`),s},MS=Symbol("namespaceContextKey"),tv=e=>{const t=e||qe(MS,X(_g));return H(()=>O(t)||_g)},et=(e,t)=>{const n=tv(t);return{namespace:n,b:(v="")=>co(n.value,e,v,"",""),e:v=>v?co(n.value,e,"",v,""):"",m:v=>v?co(n.value,e,"","",v):"",be:(v,_)=>v&&_?co(n.value,e,v,_,""):"",em:(v,_)=>v&&_?co(n.value,e,"",v,_):"",bm:(v,_)=>v&&_?co(n.value,e,v,"",_):"",bem:(v,_,y)=>v&&_&&y?co(n.value,e,v,_,y):"",is:(v,..._)=>{const y=_.length>=1?_[0]:!0;return v&&y?`${W6}${v}`:""},cssVar:v=>{const _={};for(const y in v)v[y]&&(_[`--${n.value}-${y}`]=v[y]);return _},cssVarName:v=>`--${n.value}-${v}`,cssVarBlock:v=>{const _={};for(const y in v)v[y]&&(_[`--${n.value}-${e}-${y}`]=v[y]);return _},cssVarBlockName:v=>`--${n.value}-${e}-${v}`}},V6=(e,t={})=>{$t(e)||Us("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||et("popup"),r=Zx(()=>n.bm("parent","hidden"));if(!tn||Io(document.body,r.value))return;let i=0,s=!1,o="0";const a=()=>{setTimeout(()=>{$o(document==null?void 0:document.body,r.value),s&&document&&(document.body.style.width=o)},200)};Ie(e,u=>{if(!u){a();return}s=!Io(document.body,r.value),s&&(o=document.body.style.width),i=_5(n.namespace.value);const c=document.documentElement.clientHeight0&&(c||d==="scroll")&&s&&(document.body.style.width=`calc(100% - ${i}px)`),Mo(document.body,r.value)}),hm(()=>a())},j6=Dd({type:it(Boolean),default:null}),U6=Dd({type:it(Function)}),TS=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,r=[t],i={[e]:j6,[n]:U6};return{useModelToggle:({indicator:o,toggleReason:a,shouldHideWhenRouteChanges:u,shouldProceed:c,onShow:d,onHide:h})=>{const g=kt(),{emit:m}=g,b=g.props,v=H(()=>Je(b[n])),_=H(()=>b[e]===null),y=A=>{o.value!==!0&&(o.value=!0,a&&(a.value=A),Je(d)&&d(A))},C=A=>{o.value!==!1&&(o.value=!1,a&&(a.value=A),Je(h)&&h(A))},T=A=>{if(b.disabled===!0||Je(c)&&!c())return;const R=v.value&&tn;R&&m(t,!0),(_.value||!R)&&y(A)},x=A=>{if(b.disabled===!0||!tn)return;const R=v.value&&tn;R&&m(t,!1),(_.value||!R)&&C(A)},S=A=>{Qi(A)&&(b.disabled&&A?v.value&&m(t,!1):o.value!==A&&(A?y():C()))},E=()=>{o.value?x():T()};return Ie(()=>b[e],S),u&&g.appContext.config.globalProperties.$route!==void 0&&Ie(()=>({...g.proxy.$route}),()=>{u.value&&o.value&&x()}),Lt(()=>{S(b[e])}),{hide:x,show:T,toggle:E,hasUpdateHandler:v}},useModelToggleProps:i,useModelToggleEmits:r}};TS("modelValue");const AS=e=>{const t=kt();return H(()=>{var n,r;return(r=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:r[e]})};var lr="top",Hr="bottom",Wr="right",ur="left",nv="auto",Hu=[lr,Hr,Wr,ur],ka="start",bu="end",K6="clippingParents",PS="viewport",xl="popper",q6="reference",J_=Hu.reduce(function(e,t){return e.concat([t+"-"+ka,t+"-"+bu])},[]),Nd=[].concat(Hu,[nv]).reduce(function(e,t){return e.concat([t,t+"-"+ka,t+"-"+bu])},[]),Y6="beforeRead",G6="read",X6="afterRead",J6="beforeMain",Z6="main",Q6="afterMain",ez="beforeWrite",tz="write",nz="afterWrite",rz=[Y6,G6,X6,J6,Z6,Q6,ez,tz,nz];function Ci(e){return e?(e.nodeName||"").toLowerCase():null}function li(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function La(e){var t=li(e).Element;return e instanceof t||e instanceof Element}function Br(e){var t=li(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function rv(e){if(typeof ShadowRoot>"u")return!1;var t=li(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function iz(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},s=t.elements[n];!Br(s)||!Ci(s)||(Object.assign(s.style,r),Object.keys(i).forEach(function(o){var a=i[o];a===!1?s.removeAttribute(o):s.setAttribute(o,a===!0?"":a)}))})}function sz(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],s=t.attributes[r]||{},o=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=o.reduce(function(u,c){return u[c]="",u},{});!Br(i)||!Ci(i)||(Object.assign(i.style,a),Object.keys(s).forEach(function(u){i.removeAttribute(u)}))})}}var RS={name:"applyStyles",enabled:!0,phase:"write",fn:iz,effect:sz,requires:["computeStyles"]};function _i(e){return e.split("-")[0]}var Fo=Math.max,sd=Math.min,Ia=Math.round;function $a(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,i=1;if(Br(e)&&t){var s=e.offsetHeight,o=e.offsetWidth;o>0&&(r=Ia(n.width)/o||1),s>0&&(i=Ia(n.height)/s||1)}return{width:n.width/r,height:n.height/i,top:n.top/i,right:n.right/r,bottom:n.bottom/i,left:n.left/r,x:n.left/r,y:n.top/i}}function iv(e){var t=$a(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function kS(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&rv(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ts(e){return li(e).getComputedStyle(e)}function oz(e){return["table","td","th"].indexOf(Ci(e))>=0}function Xs(e){return((La(e)?e.ownerDocument:e.document)||window.document).documentElement}function Bd(e){return Ci(e)==="html"?e:e.assignedSlot||e.parentNode||(rv(e)?e.host:null)||Xs(e)}function Z_(e){return!Br(e)||ts(e).position==="fixed"?null:e.offsetParent}function az(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Br(e)){var r=ts(e);if(r.position==="fixed")return null}var i=Bd(e);for(rv(i)&&(i=i.host);Br(i)&&["html","body"].indexOf(Ci(i))<0;){var s=ts(i);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return i;i=i.parentNode}return null}function Wu(e){for(var t=li(e),n=Z_(e);n&&oz(n)&&ts(n).position==="static";)n=Z_(n);return n&&(Ci(n)==="html"||Ci(n)==="body"&&ts(n).position==="static")?t:n||az(e)||t}function sv(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function jl(e,t,n){return Fo(e,sd(t,n))}function lz(e,t,n){var r=jl(e,t,n);return r>n?n:r}function LS(){return{top:0,right:0,bottom:0,left:0}}function IS(e){return Object.assign({},LS(),e)}function $S(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var uz=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,IS(typeof e!="number"?e:$S(e,Hu))};function cz(e){var t,n=e.state,r=e.name,i=e.options,s=n.elements.arrow,o=n.modifiersData.popperOffsets,a=_i(n.placement),u=sv(a),c=[ur,Wr].indexOf(a)>=0,d=c?"height":"width";if(!(!s||!o)){var h=uz(i.padding,n),g=iv(s),m=u==="y"?lr:ur,b=u==="y"?Hr:Wr,v=n.rects.reference[d]+n.rects.reference[u]-o[u]-n.rects.popper[d],_=o[u]-n.rects.reference[u],y=Wu(s),C=y?u==="y"?y.clientHeight||0:y.clientWidth||0:0,T=v/2-_/2,x=h[m],S=C-g[d]-h[b],E=C/2-g[d]/2+T,A=jl(x,E,S),R=u;n.modifiersData[r]=(t={},t[R]=A,t.centerOffset=A-E,t)}}function fz(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||!kS(t.elements.popper,i)||(t.elements.arrow=i))}var dz={name:"arrow",enabled:!0,phase:"main",fn:cz,effect:fz,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Fa(e){return e.split("-")[1]}var hz={top:"auto",right:"auto",bottom:"auto",left:"auto"};function pz(e){var t=e.x,n=e.y,r=window,i=r.devicePixelRatio||1;return{x:Ia(t*i)/i||0,y:Ia(n*i)/i||0}}function Q_(e){var t,n=e.popper,r=e.popperRect,i=e.placement,s=e.variation,o=e.offsets,a=e.position,u=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,h=e.isFixed,g=o.x,m=g===void 0?0:g,b=o.y,v=b===void 0?0:b,_=typeof d=="function"?d({x:m,y:v}):{x:m,y:v};m=_.x,v=_.y;var y=o.hasOwnProperty("x"),C=o.hasOwnProperty("y"),T=ur,x=lr,S=window;if(c){var E=Wu(n),A="clientHeight",R="clientWidth";if(E===li(n)&&(E=Xs(n),ts(E).position!=="static"&&a==="absolute"&&(A="scrollHeight",R="scrollWidth")),E=E,i===lr||(i===ur||i===Wr)&&s===bu){x=Hr;var $=h&&E===S&&S.visualViewport?S.visualViewport.height:E[A];v-=$-r.height,v*=u?1:-1}if(i===ur||(i===lr||i===Hr)&&s===bu){T=Wr;var B=h&&E===S&&S.visualViewport?S.visualViewport.width:E[R];m-=B-r.width,m*=u?1:-1}}var V=Object.assign({position:a},c&&hz),P=d===!0?pz({x:m,y:v}):{x:m,y:v};if(m=P.x,v=P.y,u){var j;return Object.assign({},V,(j={},j[x]=C?"0":"",j[T]=y?"0":"",j.transform=(S.devicePixelRatio||1)<=1?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",j))}return Object.assign({},V,(t={},t[x]=C?v+"px":"",t[T]=y?m+"px":"",t.transform="",t))}function gz(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,s=n.adaptive,o=s===void 0?!0:s,a=n.roundOffsets,u=a===void 0?!0:a,c={placement:_i(t.placement),variation:Fa(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Q_(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Q_(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var FS={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:gz,data:{}},Uc={passive:!0};function mz(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,s=i===void 0?!0:i,o=r.resize,a=o===void 0?!0:o,u=li(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach(function(d){d.addEventListener("scroll",n.update,Uc)}),a&&u.addEventListener("resize",n.update,Uc),function(){s&&c.forEach(function(d){d.removeEventListener("scroll",n.update,Uc)}),a&&u.removeEventListener("resize",n.update,Uc)}}var DS={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:mz,data:{}},vz={left:"right",right:"left",bottom:"top",top:"bottom"};function Ef(e){return e.replace(/left|right|bottom|top/g,function(t){return vz[t]})}var bz={start:"end",end:"start"};function e1(e){return e.replace(/start|end/g,function(t){return bz[t]})}function ov(e){var t=li(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function av(e){return $a(Xs(e)).left+ov(e).scrollLeft}function yz(e){var t=li(e),n=Xs(e),r=t.visualViewport,i=n.clientWidth,s=n.clientHeight,o=0,a=0;return r&&(i=r.width,s=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=r.offsetLeft,a=r.offsetTop)),{width:i,height:s,x:o+av(e),y:a}}function _z(e){var t,n=Xs(e),r=ov(e),i=(t=e.ownerDocument)==null?void 0:t.body,s=Fo(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=Fo(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+av(e),u=-r.scrollTop;return ts(i||n).direction==="rtl"&&(a+=Fo(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:o,x:a,y:u}}function lv(e){var t=ts(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function NS(e){return["html","body","#document"].indexOf(Ci(e))>=0?e.ownerDocument.body:Br(e)&&lv(e)?e:NS(Bd(e))}function Ul(e,t){var n;t===void 0&&(t=[]);var r=NS(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),s=li(r),o=i?[s].concat(s.visualViewport||[],lv(r)?r:[]):r,a=t.concat(o);return i?a:a.concat(Ul(Bd(o)))}function wg(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function wz(e){var t=$a(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function t1(e,t){return t===PS?wg(yz(e)):La(t)?wz(t):wg(_z(Xs(e)))}function xz(e){var t=Ul(Bd(e)),n=["absolute","fixed"].indexOf(ts(e).position)>=0,r=n&&Br(e)?Wu(e):e;return La(r)?t.filter(function(i){return La(i)&&kS(i,r)&&Ci(i)!=="body"}):[]}function Cz(e,t,n){var r=t==="clippingParents"?xz(e):[].concat(t),i=[].concat(r,[n]),s=i[0],o=i.reduce(function(a,u){var c=t1(e,u);return a.top=Fo(c.top,a.top),a.right=sd(c.right,a.right),a.bottom=sd(c.bottom,a.bottom),a.left=Fo(c.left,a.left),a},t1(e,s));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function BS(e){var t=e.reference,n=e.element,r=e.placement,i=r?_i(r):null,s=r?Fa(r):null,o=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,u;switch(i){case lr:u={x:o,y:t.y-n.height};break;case Hr:u={x:o,y:t.y+t.height};break;case Wr:u={x:t.x+t.width,y:a};break;case ur:u={x:t.x-n.width,y:a};break;default:u={x:t.x,y:t.y}}var c=i?sv(i):null;if(c!=null){var d=c==="y"?"height":"width";switch(s){case ka:u[c]=u[c]-(t[d]/2-n[d]/2);break;case bu:u[c]=u[c]+(t[d]/2-n[d]/2);break}}return u}function yu(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,s=n.boundary,o=s===void 0?K6:s,a=n.rootBoundary,u=a===void 0?PS:a,c=n.elementContext,d=c===void 0?xl:c,h=n.altBoundary,g=h===void 0?!1:h,m=n.padding,b=m===void 0?0:m,v=IS(typeof b!="number"?b:$S(b,Hu)),_=d===xl?q6:xl,y=e.rects.popper,C=e.elements[g?_:d],T=Cz(La(C)?C:C.contextElement||Xs(e.elements.popper),o,u),x=$a(e.elements.reference),S=BS({reference:x,element:y,strategy:"absolute",placement:i}),E=wg(Object.assign({},y,S)),A=d===xl?E:x,R={top:T.top-A.top+v.top,bottom:A.bottom-T.bottom+v.bottom,left:T.left-A.left+v.left,right:A.right-T.right+v.right},$=e.modifiersData.offset;if(d===xl&&$){var B=$[i];Object.keys(R).forEach(function(V){var P=[Wr,Hr].indexOf(V)>=0?1:-1,j=[lr,Hr].indexOf(V)>=0?"y":"x";R[V]+=B[j]*P})}return R}function Sz(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,s=n.rootBoundary,o=n.padding,a=n.flipVariations,u=n.allowedAutoPlacements,c=u===void 0?Nd:u,d=Fa(r),h=d?a?J_:J_.filter(function(b){return Fa(b)===d}):Hu,g=h.filter(function(b){return c.indexOf(b)>=0});g.length===0&&(g=h);var m=g.reduce(function(b,v){return b[v]=yu(e,{placement:v,boundary:i,rootBoundary:s,padding:o})[_i(v)],b},{});return Object.keys(m).sort(function(b,v){return m[b]-m[v]})}function Oz(e){if(_i(e)===nv)return[];var t=Ef(e);return[e1(e),t,e1(t)]}function Ez(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,s=i===void 0?!0:i,o=n.altAxis,a=o===void 0?!0:o,u=n.fallbackPlacements,c=n.padding,d=n.boundary,h=n.rootBoundary,g=n.altBoundary,m=n.flipVariations,b=m===void 0?!0:m,v=n.allowedAutoPlacements,_=t.options.placement,y=_i(_),C=y===_,T=u||(C||!b?[Ef(_)]:Oz(_)),x=[_].concat(T).reduce(function(le,Ye){return le.concat(_i(Ye)===nv?Sz(t,{placement:Ye,boundary:d,rootBoundary:h,padding:c,flipVariations:b,allowedAutoPlacements:v}):Ye)},[]),S=t.rects.reference,E=t.rects.popper,A=new Map,R=!0,$=x[0],B=0;B=0,ce=ue?"width":"height",ne=yu(t,{placement:V,boundary:d,rootBoundary:h,altBoundary:g,padding:c}),Q=ue?j?Wr:ur:j?Hr:lr;S[ce]>E[ce]&&(Q=Ef(Q));var ie=Ef(Q),ee=[];if(s&&ee.push(ne[P]<=0),a&&ee.push(ne[Q]<=0,ne[ie]<=0),ee.every(function(le){return le})){$=V,R=!1;break}A.set(V,ee)}if(R)for(var ye=b?3:1,Ee=function(le){var Ye=x.find(function(Ne){var Y=A.get(Ne);if(Y)return Y.slice(0,le).every(function(oe){return oe})});if(Ye)return $=Ye,"break"},ke=ye;ke>0;ke--){var Ze=Ee(ke);if(Ze==="break")break}t.placement!==$&&(t.modifiersData[r]._skip=!0,t.placement=$,t.reset=!0)}}var Mz={name:"flip",enabled:!0,phase:"main",fn:Ez,requiresIfExists:["offset"],data:{_skip:!1}};function n1(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function r1(e){return[lr,Wr,Hr,ur].some(function(t){return e[t]>=0})}function Tz(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,s=t.modifiersData.preventOverflow,o=yu(t,{elementContext:"reference"}),a=yu(t,{altBoundary:!0}),u=n1(o,r),c=n1(a,i,s),d=r1(u),h=r1(c);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":h})}var Az={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Tz};function Pz(e,t,n){var r=_i(e),i=[ur,lr].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=s[0],a=s[1];return o=o||0,a=(a||0)*i,[ur,Wr].indexOf(r)>=0?{x:a,y:o}:{x:o,y:a}}function Rz(e){var t=e.state,n=e.options,r=e.name,i=n.offset,s=i===void 0?[0,0]:i,o=Nd.reduce(function(d,h){return d[h]=Pz(h,t.rects,s),d},{}),a=o[t.placement],u=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=o}var kz={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Rz};function Lz(e){var t=e.state,n=e.name;t.modifiersData[n]=BS({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var zS={name:"popperOffsets",enabled:!0,phase:"read",fn:Lz,data:{}};function Iz(e){return e==="x"?"y":"x"}function $z(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,s=i===void 0?!0:i,o=n.altAxis,a=o===void 0?!1:o,u=n.boundary,c=n.rootBoundary,d=n.altBoundary,h=n.padding,g=n.tether,m=g===void 0?!0:g,b=n.tetherOffset,v=b===void 0?0:b,_=yu(t,{boundary:u,rootBoundary:c,padding:h,altBoundary:d}),y=_i(t.placement),C=Fa(t.placement),T=!C,x=sv(y),S=Iz(x),E=t.modifiersData.popperOffsets,A=t.rects.reference,R=t.rects.popper,$=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,B=typeof $=="number"?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),V=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(E){if(s){var j,ue=x==="y"?lr:ur,ce=x==="y"?Hr:Wr,ne=x==="y"?"height":"width",Q=E[x],ie=Q+_[ue],ee=Q-_[ce],ye=m?-R[ne]/2:0,Ee=C===ka?A[ne]:R[ne],ke=C===ka?-R[ne]:-A[ne],Ze=t.elements.arrow,le=m&&Ze?iv(Ze):{width:0,height:0},Ye=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:LS(),Ne=Ye[ue],Y=Ye[ce],oe=jl(0,A[ne],le[ne]),de=T?A[ne]/2-ye-oe-Ne-B.mainAxis:Ee-oe-Ne-B.mainAxis,Oe=T?-A[ne]/2+ye+oe+Y+B.mainAxis:ke+oe+Y+B.mainAxis,We=t.elements.arrow&&Wu(t.elements.arrow),F=We?x==="y"?We.clientTop||0:We.clientLeft||0:0,W=(j=V==null?void 0:V[x])!=null?j:0,q=Q+de-W-F,se=Q+Oe-W,he=jl(m?sd(ie,q):ie,Q,m?Fo(ee,se):ee);E[x]=he,P[x]=he-Q}if(a){var ge,Te=x==="x"?lr:ur,Se=x==="x"?Hr:Wr,Ce=E[S],pe=S==="y"?"height":"width",Be=Ce+_[Te],Pe=Ce-_[Se],re=[lr,ur].indexOf(y)!==-1,Me=(ge=V==null?void 0:V[S])!=null?ge:0,Ue=re?Be:Ce-A[pe]-R[pe]-Me+B.altAxis,at=re?Ce+A[pe]+R[pe]-Me-B.altAxis:Pe,st=m&&re?lz(Ue,Ce,at):jl(m?Ue:Be,Ce,m?at:Pe);E[S]=st,P[S]=st-Ce}t.modifiersData[r]=P}}var Fz={name:"preventOverflow",enabled:!0,phase:"main",fn:$z,requiresIfExists:["offset"]};function Dz(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Nz(e){return e===li(e)||!Br(e)?ov(e):Dz(e)}function Bz(e){var t=e.getBoundingClientRect(),n=Ia(t.width)/e.offsetWidth||1,r=Ia(t.height)/e.offsetHeight||1;return n!==1||r!==1}function zz(e,t,n){n===void 0&&(n=!1);var r=Br(t),i=Br(t)&&Bz(t),s=Xs(t),o=$a(e,i),a={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((Ci(t)!=="body"||lv(s))&&(a=Nz(t)),Br(t)?(u=$a(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=av(s))),{x:o.left+a.scrollLeft-u.x,y:o.top+a.scrollTop-u.y,width:o.width,height:o.height}}function Hz(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function i(s){n.add(s.name);var o=[].concat(s.requires||[],s.requiresIfExists||[]);o.forEach(function(a){if(!n.has(a)){var u=t.get(a);u&&i(u)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||i(s)}),r}function Wz(e){var t=Hz(e);return rz.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function Vz(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function jz(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var i1={placement:"bottom",modifiers:[],strategy:"absolute"};function s1(){for(var e=arguments.length,t=new Array(e),n=0;n{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:u})=>{const c=Yz(u);Object.assign(o.value,c)},requires:["computeStyles"]},i=H(()=>{const{onFirstUpdate:u,placement:c,strategy:d,modifiers:h}=O(n);return{onFirstUpdate:u,placement:c||"bottom",strategy:d||"absolute",modifiers:[...h||[],r,{name:"applyStyles",enabled:!1}]}}),s=Fs(),o=X({styles:{popper:{position:O(i).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),a=()=>{s.value&&(s.value.destroy(),s.value=void 0)};return Ie(i,u=>{const c=O(s);c&&c.setOptions(u)},{deep:!0}),Ie([e,t],([u,c])=>{a(),!(!u||!c)&&(s.value=HS(u,c,O(i)))}),Mn(()=>{a()}),{state:H(()=>{var u;return{...((u=O(s))==null?void 0:u.state)||{}}}),styles:H(()=>O(o).styles),attributes:H(()=>O(o).attributes),update:()=>{var u;return(u=O(s))==null?void 0:u.update()},forceUpdate:()=>{var u;return(u=O(s))==null?void 0:u.forceUpdate()},instanceRef:H(()=>O(s))}};function Yz(e){const t=Object.keys(e.elements),n=nd(t.map(i=>[i,e.styles[i]||{}])),r=nd(t.map(i=>[i,e.attributes[i]]));return{styles:n,attributes:r}}const WS=e=>{if(!e)return{onClick:xn,onMousedown:xn,onMouseup:xn};let t=!1,n=!1;return{onClick:o=>{t&&n&&e(o),t=n=!1},onMousedown:o=>{t=o.target===o.currentTarget},onMouseup:o=>{n=o.target===o.currentTarget}}};function o1(){let e;const t=(r,i)=>{n(),e=window.setTimeout(r,i)},n=()=>window.clearTimeout(e);return Iu(()=>n()),{registerTimeout:t,cancelTimeout:n}}const a1={prefix:Math.floor(Math.random()*1e4),current:0},Gz=Symbol("elIdInjection"),VS=()=>kt()?qe(Gz,a1):a1,_u=e=>{const t=VS(),n=tv();return H(()=>O(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let va=[];const l1=e=>{const t=e;t.key===Wn.esc&&va.forEach(n=>n(t))},Xz=e=>{Lt(()=>{va.length===0&&document.addEventListener("keydown",l1),tn&&va.push(e)}),Mn(()=>{va=va.filter(t=>t!==e),va.length===0&&tn&&document.removeEventListener("keydown",l1)})};let u1;const jS=()=>{const e=tv(),t=VS(),n=H(()=>`${e.value}-popper-container-${t.prefix}`),r=H(()=>`#${n.value}`);return{id:n,selector:r}},Jz=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},Zz=()=>{const{id:e,selector:t}=jS();return Ka(()=>{tn&&!u1&&!document.body.querySelector(t.value)&&(u1=Jz(e.value))}),{id:e,selector:t}},Qz=Nt({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),US=({showAfter:e,hideAfter:t,autoClose:n,open:r,close:i})=>{const{registerTimeout:s}=o1(),{registerTimeout:o,cancelTimeout:a}=o1();return{onOpen:d=>{s(()=>{r(d);const h=O(n);jn(h)&&h>0&&o(()=>{i(d)},h)},O(e))},onClose:d=>{a(),s(()=>{i(d)},O(t))}}},KS=Symbol("elForwardRef"),eH=e=>{sn(KS,{setForwardRef:n=>{e.value=n}})},tH=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),c1=X(0),nH=2e3,qS=Symbol("zIndexContextKey"),cv=e=>{const t=e||qe(qS,void 0),n=H(()=>{const s=O(t);return jn(s)?s:nH}),r=H(()=>n.value+c1.value);return{initialZIndex:n,currentZIndex:r,nextZIndex:()=>(c1.value++,r.value)}};function rH(e){const t=X();function n(){if(e.value==null)return;const{selectionStart:i,selectionEnd:s,value:o}=e.value;if(i==null||s==null)return;const a=o.slice(0,Math.max(0,i)),u=o.slice(Math.max(0,s));t.value={selectionStart:i,selectionEnd:s,value:o,beforeTxt:a,afterTxt:u}}function r(){if(e.value==null||t.value==null)return;const{value:i}=e.value,{beforeTxt:s,afterTxt:o,selectionStart:a}=t.value;if(s==null||o==null||a==null)return;let u=i.length;if(i.endsWith(o))u=i.length-o.length;else if(i.startsWith(s))u=s.length;else{const c=s[a-1],d=i.indexOf(c,a-1);d!==-1&&(u=d+1)}e.value.setSelectionRange(u,u)}return[n,r]}const Ja=Dd({type:String,values:zu,required:!1}),YS=Symbol("size"),iH=()=>{const e=qe(YS,{});return H(()=>O(e.size)||"")},GS=Symbol(),od=X();function fv(e,t=void 0){const n=kt()?qe(GS,od):od;return e?H(()=>{var r,i;return(i=(r=n.value)==null?void 0:r[e])!=null?i:t}):n}const sH=(e,t,n=!1)=>{var r;const i=!!kt(),s=i?fv():void 0,o=(r=t==null?void 0:t.provide)!=null?r:i?sn:void 0;if(!o)return;const a=H(()=>{const u=O(e);return s!=null&&s.value?oH(s.value,u):u});return o(GS,a),o(ES,H(()=>a.value.locale)),o(MS,H(()=>a.value.namespace)),o(qS,H(()=>a.value.zIndex)),o(YS,{size:H(()=>a.value.size||"")}),(n||!od.value)&&(od.value=a.value),a},oH=(e,t)=>{var n;const r=[...new Set([...X_(e),...X_(t)])],i={};for(const s of r)i[s]=(n=t[s])!=null?n:e[s];return i},aH=Nt({a11y:{type:Boolean,default:!0},locale:{type:it(Object)},size:Ja,button:{type:it(Object)},experimentalFeatures:{type:it(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:it(Object)},zIndex:Number,namespace:{type:String,default:"el"}}),lH={},uH=De({name:"ElConfigProvider",props:aH,setup(e,{slots:t}){Ie(()=>e.message,r=>{Object.assign(lH,r??{})},{immediate:!0,deep:!0});const n=sH(e);return()=>je(t,"default",{config:n==null?void 0:n.value})}}),cH=$n(uH);var At=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n};const fH=Nt({size:{type:it([Number,String])},color:{type:String}}),dH=De({name:"ElIcon",inheritAttrs:!1}),hH=De({...dH,props:fH,setup(e){const t=e,n=et("icon"),r=H(()=>{const{size:i,color:s}=t;return!i&&!s?{}:{fontSize:rd(i)?void 0:es(i),"--color":s}});return(i,s)=>(K(),_e("i",Er({class:O(n).b(),style:O(r)},i.$attrs),[je(i.$slots,"default")],16))}});var pH=At(hH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const kn=$n(pH),Za=Symbol("formContextKey"),Ho=Symbol("formItemContextKey"),ns=(e,t={})=>{const n=X(void 0),r=t.prop?n:AS("size"),i=t.global?n:iH(),s=t.form?{size:void 0}:qe(Za,void 0),o=t.formItem?{size:void 0}:qe(Ho,void 0);return H(()=>r.value||O(e)||(o==null?void 0:o.size)||(s==null?void 0:s.size)||i.value||"")},zd=e=>{const t=AS("disabled"),n=qe(Za,void 0);return H(()=>t.value||O(e)||(n==null?void 0:n.disabled)||!1)},Qa=()=>{const e=qe(Za,void 0),t=qe(Ho,void 0);return{form:e,formItem:t}},dv=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=X(!1)),r||(r=X(!1));const i=X();let s;const o=H(()=>{var a;return!!(!e.label&&t&&t.inputIds&&((a=t.inputIds)==null?void 0:a.length)<=1)});return Lt(()=>{s=Ie([Dr(e,"id"),n],([a,u])=>{const c=a??(u?void 0:_u().value);c!==i.value&&(t!=null&&t.removeInputId&&(i.value&&t.removeInputId(i.value),!(r!=null&&r.value)&&!u&&c&&t.addInputId(c)),i.value=c)},{immediate:!0})}),qa(()=>{s&&s(),t!=null&&t.removeInputId&&i.value&&t.removeInputId(i.value)}),{isLabeledByFormItem:o,inputId:i}},gH=Nt({size:{type:String,values:zu},disabled:Boolean}),mH=Nt({...gH,model:Object,rules:{type:it(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:{type:Boolean,default:!1},scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean]}}),vH={validate:(e,t,n)=>(He(e)||gt(e))&&Qi(t)&>(n)};function bH(){const e=X([]),t=H(()=>{if(!e.value.length)return"0";const s=Math.max(...e.value);return s?`${s}px`:""});function n(s){const o=e.value.indexOf(s);return o===-1&&t.value,o}function r(s,o){if(s&&o){const a=n(o);e.value.splice(a,1,s)}else s&&e.value.push(s)}function i(s){const o=n(s);o>-1&&e.value.splice(o,1)}return{autoLabelWidth:t,registerLabelWidth:r,deregisterLabelWidth:i}}const Kc=(e,t)=>{const n=fg(t);return n.length>0?e.filter(r=>r.prop&&n.includes(r.prop)):e},yH="ElForm",_H=De({name:yH}),wH=De({..._H,props:mH,emits:vH,setup(e,{expose:t,emit:n}){const r=e,i=[],s=ns(),o=et("form"),a=H(()=>{const{labelPosition:C,inline:T}=r;return[o.b(),o.m(s.value||"default"),{[o.m(`label-${C}`)]:C,[o.m("inline")]:T}]}),u=C=>{i.push(C)},c=C=>{C.prop&&i.splice(i.indexOf(C),1)},d=(C=[])=>{r.model&&Kc(i,C).forEach(T=>T.resetField())},h=(C=[])=>{Kc(i,C).forEach(T=>T.clearValidate())},g=H(()=>!!r.model),m=C=>{if(i.length===0)return[];const T=Kc(i,C);return T.length?T:[]},b=async C=>_(void 0,C),v=async(C=[])=>{if(!g.value)return!1;const T=m(C);if(T.length===0)return!0;let x={};for(const S of T)try{await S.validate("")}catch(E){x={...x,...E}}return Object.keys(x).length===0?!0:Promise.reject(x)},_=async(C=[],T)=>{const x=!Je(T);try{const S=await v(C);return S===!0&&(T==null||T(S)),S}catch(S){if(S instanceof Error)throw S;const E=S;return r.scrollToError&&y(Object.keys(E)[0]),T==null||T(!1,E),x&&Promise.reject(E)}},y=C=>{var T;const x=Kc(i,C)[0];x&&((T=x.$el)==null||T.scrollIntoView(r.scrollIntoViewOptions))};return Ie(()=>r.rules,()=>{r.validateOnRuleChange&&b().catch(C=>void 0)},{deep:!0}),sn(Za,vn({...Gs(r),emit:n,resetFields:d,clearValidate:h,validateField:_,addField:u,removeField:c,...bH()})),t({validate:b,validateField:_,resetFields:d,clearValidate:h,scrollToField:y}),(C,T)=>(K(),_e("form",{class:be(O(a))},[je(C.$slots,"default")],2))}});var xH=At(wH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);function To(){return To=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Mf(e,t,n){return SH()?Mf=Reflect.construct.bind():Mf=function(i,s,o){var a=[null];a.push.apply(a,s);var u=Function.bind.apply(i,a),c=new u;return o&&wu(c,o.prototype),c},Mf.apply(null,arguments)}function OH(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Cg(e){var t=typeof Map=="function"?new Map:void 0;return Cg=function(r){if(r===null||!OH(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return Mf(r,arguments,xg(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),wu(i,r)},Cg(e)}var EH=/%[sdj%]/g,MH=function(){};typeof process<"u"&&process.env;function Sg(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function Sr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=s)return a;switch(a){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch{return"[Circular]"}break;default:return a}});return o}return e}function TH(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Cn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||TH(t)&&typeof e=="string"&&!e)}function AH(e,t,n){var r=[],i=0,s=e.length;function o(a){r.push.apply(r,a||[]),i++,i===s&&n(r)}e.forEach(function(a){t(a,o)})}function f1(e,t,n){var r=0,i=e.length;function s(o){if(o&&o.length){n(o);return}var a=r;r=r+1,a()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Rl={integer:function(t){return Rl.number(t)&&parseInt(t,10)===t},float:function(t){return Rl.number(t)&&!Rl.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!Rl.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(g1.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match($H())},hex:function(t){return typeof t=="string"&&!!t.match(g1.hex)}},FH=function(t,n,r,i,s){if(t.required&&n===void 0){XS(t,n,r,i,s);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],a=t.type;o.indexOf(a)>-1?Rl[a](n)||i.push(Sr(s.messages.types[a],t.fullField,t.type)):a&&typeof n!==t.type&&i.push(Sr(s.messages.types[a],t.fullField,t.type))},DH=function(t,n,r,i,s){var o=typeof t.len=="number",a=typeof t.min=="number",u=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,h=null,g=typeof n=="number",m=typeof n=="string",b=Array.isArray(n);if(g?h="number":m?h="string":b&&(h="array"),!h)return!1;b&&(d=n.length),m&&(d=n.replace(c,"_").length),o?d!==t.len&&i.push(Sr(s.messages[h].len,t.fullField,t.len)):a&&!u&&dt.max?i.push(Sr(s.messages[h].max,t.fullField,t.max)):a&&u&&(dt.max)&&i.push(Sr(s.messages[h].range,t.fullField,t.min,t.max))},da="enum",NH=function(t,n,r,i,s){t[da]=Array.isArray(t[da])?t[da]:[],t[da].indexOf(n)===-1&&i.push(Sr(s.messages[da],t.fullField,t[da].join(", ")))},BH=function(t,n,r,i,s){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||i.push(Sr(s.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var o=new RegExp(t.pattern);o.test(n)||i.push(Sr(s.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Mt={required:XS,whitespace:IH,type:FH,range:DH,enum:NH,pattern:BH},zH=function(t,n,r,i,s){var o=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(Cn(n,"string")&&!t.required)return r();Mt.required(t,n,i,o,s,"string"),Cn(n,"string")||(Mt.type(t,n,i,o,s),Mt.range(t,n,i,o,s),Mt.pattern(t,n,i,o,s),t.whitespace===!0&&Mt.whitespace(t,n,i,o,s))}r(o)},HH=function(t,n,r,i,s){var o=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(Cn(n)&&!t.required)return r();Mt.required(t,n,i,o,s),n!==void 0&&Mt.type(t,n,i,o,s)}r(o)},WH=function(t,n,r,i,s){var o=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(n===""&&(n=void 0),Cn(n)&&!t.required)return r();Mt.required(t,n,i,o,s),n!==void 0&&(Mt.type(t,n,i,o,s),Mt.range(t,n,i,o,s))}r(o)},VH=function(t,n,r,i,s){var o=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(Cn(n)&&!t.required)return r();Mt.required(t,n,i,o,s),n!==void 0&&Mt.type(t,n,i,o,s)}r(o)},jH=function(t,n,r,i,s){var o=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(Cn(n)&&!t.required)return r();Mt.required(t,n,i,o,s),Cn(n)||Mt.type(t,n,i,o,s)}r(o)},UH=function(t,n,r,i,s){var o=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(Cn(n)&&!t.required)return r();Mt.required(t,n,i,o,s),n!==void 0&&(Mt.type(t,n,i,o,s),Mt.range(t,n,i,o,s))}r(o)},KH=function(t,n,r,i,s){var o=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(Cn(n)&&!t.required)return r();Mt.required(t,n,i,o,s),n!==void 0&&(Mt.type(t,n,i,o,s),Mt.range(t,n,i,o,s))}r(o)},qH=function(t,n,r,i,s){var o=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(n==null&&!t.required)return r();Mt.required(t,n,i,o,s,"array"),n!=null&&(Mt.type(t,n,i,o,s),Mt.range(t,n,i,o,s))}r(o)},YH=function(t,n,r,i,s){var o=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(Cn(n)&&!t.required)return r();Mt.required(t,n,i,o,s),n!==void 0&&Mt.type(t,n,i,o,s)}r(o)},GH="enum",XH=function(t,n,r,i,s){var o=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(Cn(n)&&!t.required)return r();Mt.required(t,n,i,o,s),n!==void 0&&Mt[GH](t,n,i,o,s)}r(o)},JH=function(t,n,r,i,s){var o=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(Cn(n,"string")&&!t.required)return r();Mt.required(t,n,i,o,s),Cn(n,"string")||Mt.pattern(t,n,i,o,s)}r(o)},ZH=function(t,n,r,i,s){var o=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(Cn(n,"date")&&!t.required)return r();if(Mt.required(t,n,i,o,s),!Cn(n,"date")){var u;n instanceof Date?u=n:u=new Date(n),Mt.type(t,u,i,o,s),u&&Mt.range(t,u.getTime(),i,o,s)}}r(o)},QH=function(t,n,r,i,s){var o=[],a=Array.isArray(n)?"array":typeof n;Mt.required(t,n,i,o,s,a),r(o)},xp=function(t,n,r,i,s){var o=t.type,a=[],u=t.required||!t.required&&i.hasOwnProperty(t.field);if(u){if(Cn(n,o)&&!t.required)return r();Mt.required(t,n,i,a,s,o),Cn(n,o)||Mt.type(t,n,i,a,s)}r(a)},eW=function(t,n,r,i,s){var o=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(Cn(n)&&!t.required)return r();Mt.required(t,n,i,o,s)}r(o)},Kl={string:zH,method:HH,number:WH,boolean:VH,regexp:jH,integer:UH,float:KH,array:qH,object:YH,enum:XH,pattern:JH,date:ZH,url:xp,hex:xp,email:xp,required:QH,any:eW};function Og(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Eg=Og(),Vu=function(){function e(n){this.rules=null,this._messages=Eg,this.define(n)}var t=e.prototype;return t.define=function(r){var i=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(s){var o=r[s];i.rules[s]=Array.isArray(o)?o:[o]})},t.messages=function(r){return r&&(this._messages=p1(Og(),r)),this._messages},t.validate=function(r,i,s){var o=this;i===void 0&&(i={}),s===void 0&&(s=function(){});var a=r,u=i,c=s;if(typeof u=="function"&&(c=u,u={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,a),Promise.resolve(a);function d(v){var _=[],y={};function C(x){if(Array.isArray(x)){var S;_=(S=_).concat.apply(S,x)}else _.push(x)}for(var T=0;T");const i=et("form"),s=X(),o=X(0),a=()=>{var d;if((d=s.value)!=null&&d.firstElementChild){const h=window.getComputedStyle(s.value.firstElementChild).width;return Math.ceil(Number.parseFloat(h))}else return 0},u=(d="update")=>{vt(()=>{t.default&&e.isAutoWidth&&(d==="update"?o.value=a():d==="remove"&&(n==null||n.deregisterLabelWidth(o.value)))})},c=()=>u("update");return Lt(()=>{c()}),Mn(()=>{u("remove")}),Uo(()=>c()),Ie(o,(d,h)=>{e.updateAll&&(n==null||n.registerLabelWidth(d,h))}),js(H(()=>{var d,h;return(h=(d=s.value)==null?void 0:d.firstElementChild)!=null?h:null}),c),()=>{var d,h;if(!t)return null;const{isAutoWidth:g}=e;if(g){const m=n==null?void 0:n.autoLabelWidth,b=r==null?void 0:r.hasLabel,v={};if(b&&m&&m!=="auto"){const _=Math.max(0,Number.parseInt(m,10)-o.value),y=n.labelPosition==="left"?"marginRight":"marginLeft";_&&(v[y]=`${_}px`)}return z("div",{ref:s,class:[i.be("item","label-wrap")],style:v},[(d=t.default)==null?void 0:d.call(t)])}else return z(ot,{ref:s},[(h=t.default)==null?void 0:h.call(t)])}}});const iW=["role","aria-labelledby"],sW=De({name:"ElFormItem"}),oW=De({...sW,props:nW,setup(e,{expose:t}){const n=e,r=Ya(),i=qe(Za,void 0),s=qe(Ho,void 0),o=ns(void 0,{formItem:!1}),a=et("form-item"),u=_u().value,c=X([]),d=X(""),h=$F(d,100),g=X(""),m=X();let b,v=!1;const _=H(()=>{if((i==null?void 0:i.labelPosition)==="top")return{};const Y=es(n.labelWidth||(i==null?void 0:i.labelWidth)||"");return Y?{width:Y}:{}}),y=H(()=>{if((i==null?void 0:i.labelPosition)==="top"||i!=null&&i.inline)return{};if(!n.label&&!n.labelWidth&&$)return{};const Y=es(n.labelWidth||(i==null?void 0:i.labelWidth)||"");return!n.label&&!r.label?{marginLeft:Y}:{}}),C=H(()=>[a.b(),a.m(o.value),a.is("error",d.value==="error"),a.is("validating",d.value==="validating"),a.is("success",d.value==="success"),a.is("required",ue.value||n.required),a.is("no-asterisk",i==null?void 0:i.hideRequiredAsterisk),(i==null?void 0:i.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[a.m("feedback")]:i==null?void 0:i.statusIcon}]),T=H(()=>Qi(n.inlineMessage)?n.inlineMessage:(i==null?void 0:i.inlineMessage)||!1),x=H(()=>[a.e("error"),{[a.em("error","inline")]:T.value}]),S=H(()=>n.prop?gt(n.prop)?n.prop:n.prop.join("."):""),E=H(()=>!!(n.label||r.label)),A=H(()=>n.for||c.value.length===1?c.value[0]:void 0),R=H(()=>!A.value&&E.value),$=!!s,B=H(()=>{const Y=i==null?void 0:i.model;if(!(!Y||!n.prop))return Cf(Y,n.prop).value}),V=H(()=>{const{required:Y}=n,oe=[];n.rules&&oe.push(...fg(n.rules));const de=i==null?void 0:i.rules;if(de&&n.prop){const Oe=Cf(de,n.prop).value;Oe&&oe.push(...fg(Oe))}if(Y!==void 0){const Oe=oe.map((We,F)=>[We,F]).filter(([We])=>Object.keys(We).includes("required"));if(Oe.length>0)for(const[We,F]of Oe)We.required!==Y&&(oe[F]={...We,required:Y});else oe.push({required:Y})}return oe}),P=H(()=>V.value.length>0),j=Y=>V.value.filter(de=>!de.trigger||!Y?!0:Array.isArray(de.trigger)?de.trigger.includes(Y):de.trigger===Y).map(({trigger:de,...Oe})=>Oe),ue=H(()=>V.value.some(Y=>Y.required)),ce=H(()=>{var Y;return h.value==="error"&&n.showMessage&&((Y=i==null?void 0:i.showMessage)!=null?Y:!0)}),ne=H(()=>`${n.label||""}${(i==null?void 0:i.labelSuffix)||""}`),Q=Y=>{d.value=Y},ie=Y=>{var oe,de;const{errors:Oe,fields:We}=Y;(!Oe||!We)&&console.error(Y),Q("error"),g.value=Oe?(de=(oe=Oe==null?void 0:Oe[0])==null?void 0:oe.message)!=null?de:`${n.prop} is required`:"",i==null||i.emit("validate",n.prop,!1,g.value)},ee=()=>{Q("success"),i==null||i.emit("validate",n.prop,!0,"")},ye=async Y=>{const oe=S.value;return new Vu({[oe]:Y}).validate({[oe]:B.value},{firstFields:!0}).then(()=>(ee(),!0)).catch(Oe=>(ie(Oe),Promise.reject(Oe)))},Ee=async(Y,oe)=>{if(v||!n.prop)return!1;const de=Je(oe);if(!P.value)return oe==null||oe(!1),!1;const Oe=j(Y);return Oe.length===0?(oe==null||oe(!0),!0):(Q("validating"),ye(Oe).then(()=>(oe==null||oe(!0),!0)).catch(We=>{const{fields:F}=We;return oe==null||oe(!1,F),de?!1:Promise.reject(F)}))},ke=()=>{Q(""),g.value="",v=!1},Ze=async()=>{const Y=i==null?void 0:i.model;if(!Y||!n.prop)return;const oe=Cf(Y,n.prop);v=!0,oe.value=U_(b),await vt(),ke(),v=!1},le=Y=>{c.value.includes(Y)||c.value.push(Y)},Ye=Y=>{c.value=c.value.filter(oe=>oe!==Y)};Ie(()=>n.error,Y=>{g.value=Y||"",Q(Y?"error":"")},{immediate:!0}),Ie(()=>n.validateStatus,Y=>Q(Y||""));const Ne=vn({...Gs(n),$el:m,size:o,validateState:d,labelId:u,inputIds:c,isGroup:R,hasLabel:E,addInputId:le,removeInputId:Ye,resetField:Ze,clearValidate:ke,validate:Ee});return sn(Ho,Ne),Lt(()=>{n.prop&&(i==null||i.addField(Ne),b=U_(B.value))}),Mn(()=>{i==null||i.removeField(Ne)}),t({size:o,validateMessage:g,validateState:d,validate:Ee,clearValidate:ke,resetField:Ze}),(Y,oe)=>{var de;return K(),_e("div",{ref_key:"formItemRef",ref:m,class:be(O(C)),role:O(R)?"group":void 0,"aria-labelledby":O(R)?O(u):void 0},[z(O(rW),{"is-auto-width":O(_).width==="auto","update-all":((de=O(i))==null?void 0:de.labelWidth)==="auto"},{default:D(()=>[O(E)?(K(),Ae(Vn(O(A)?"label":"div"),{key:0,id:O(u),for:O(A),class:be(O(a).e("label")),style:Vt(O(_))},{default:D(()=>[je(Y.$slots,"label",{label:O(ne)},()=>[Z(wt(O(ne)),1)])]),_:3},8,["id","for","class","style"])):$e("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),L("div",{class:be(O(a).e("content")),style:Vt(O(y))},[je(Y.$slots,"default"),z(pF,{name:`${O(a).namespace.value}-zoom-in-top`},{default:D(()=>[O(ce)?je(Y.$slots,"error",{key:0,error:g.value},()=>[L("div",{class:be(O(x))},wt(g.value),3)]):$e("v-if",!0)]),_:3},8,["name"])],6)],10,iW)}}});var JS=At(oW,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const aW=$n(xH,{FormItem:JS});Oi(JS);let Gr;const lW=` + height:0 !important; + visibility:hidden !important; + ${OD()?"":"overflow:hidden !important;"} + position:absolute !important; + z-index:-1000 !important; + top:0 !important; + right:0 !important; +`,uW=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function cW(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),i=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:uW.map(o=>`${o}:${t.getPropertyValue(o)}`).join(";"),paddingSize:r,borderSize:i,boxSizing:n}}function v1(e,t=1,n){var r;Gr||(Gr=document.createElement("textarea"),document.body.appendChild(Gr));const{paddingSize:i,borderSize:s,boxSizing:o,contextStyle:a}=cW(e);Gr.setAttribute("style",`${a};${lW}`),Gr.value=e.value||e.placeholder||"";let u=Gr.scrollHeight;const c={};o==="border-box"?u=u+s:o==="content-box"&&(u=u-i),Gr.value="";const d=Gr.scrollHeight-i;if(jn(t)){let h=d*t;o==="border-box"&&(h=h+i+s),u=Math.max(h,u),c.minHeight=`${h}px`}if(jn(n)){let h=d*n;o==="border-box"&&(h=h+i+s),u=Math.min(h,u)}return c.height=`${u}px`,(r=Gr.parentNode)==null||r.removeChild(Gr),Gr=void 0,c}const fW=Nt({id:{type:String,default:void 0},size:Ja,disabled:Boolean,modelValue:{type:it([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:it([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:Qr},prefixIcon:{type:Qr},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:it([Object,Array,String]),default:()=>So({})}}),dW={[Rn]:e=>gt(e),input:e=>gt(e),change:e=>gt(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},hW=["role"],pW=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form"],gW=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form"],mW=De({name:"ElInput",inheritAttrs:!1}),vW=De({...mW,props:fW,emits:dW,setup(e,{expose:t,emit:n}){const r=e,i=p$(),s=Ya(),o=H(()=>{const re={};return r.containerRole==="combobox"&&(re["aria-haspopup"]=i["aria-haspopup"],re["aria-owns"]=i["aria-owns"],re["aria-expanded"]=i["aria-expanded"]),re}),a=H(()=>[r.type==="textarea"?_.b():v.b(),v.m(m.value),v.is("disabled",b.value),v.is("exceed",Ee.value),{[v.b("group")]:s.prepend||s.append,[v.bm("group","append")]:s.append,[v.bm("group","prepend")]:s.prepend,[v.m("prefix")]:s.prefix||r.prefixIcon,[v.m("suffix")]:s.suffix||r.suffixIcon||r.clearable||r.showPassword,[v.bm("suffix","password-clear")]:Q.value&&ie.value},i.class]),u=H(()=>[v.e("wrapper"),v.is("focus",T.value)]),c=$6({excludeKeys:H(()=>Object.keys(o.value))}),{form:d,formItem:h}=Qa(),{inputId:g}=dv(r,{formItemContext:h}),m=ns(),b=zd(),v=et("input"),_=et("textarea"),y=Fs(),C=Fs(),T=X(!1),x=X(!1),S=X(!1),E=X(!1),A=X(),R=Fs(r.inputStyle),$=H(()=>y.value||C.value),B=H(()=>{var re;return(re=d==null?void 0:d.statusIcon)!=null?re:!1}),V=H(()=>(h==null?void 0:h.validateState)||""),P=H(()=>V.value&&T6[V.value]),j=H(()=>E.value?O6:l6),ue=H(()=>[i.style,r.inputStyle]),ce=H(()=>[r.inputStyle,R.value,{resize:r.resize}]),ne=H(()=>Pa(r.modelValue)?"":String(r.modelValue)),Q=H(()=>r.clearable&&!b.value&&!r.readonly&&!!ne.value&&(T.value||x.value)),ie=H(()=>r.showPassword&&!b.value&&!r.readonly&&!!ne.value&&(!!ne.value||T.value)),ee=H(()=>r.showWordLimit&&!!c.value.maxlength&&(r.type==="text"||r.type==="textarea")&&!b.value&&!r.readonly&&!r.showPassword),ye=H(()=>ne.value.length),Ee=H(()=>!!ee.value&&ye.value>Number(c.value.maxlength)),ke=H(()=>!!s.suffix||!!r.suffixIcon||Q.value||r.showPassword||ee.value||!!V.value&&B.value),[Ze,le]=rH(y);js(C,re=>{if(Y(),!ee.value||r.resize!=="both")return;const Me=re[0],{width:Ue}=Me.contentRect;A.value={right:`calc(100% - ${Ue+15+6}px)`}});const Ye=()=>{const{type:re,autosize:Me}=r;if(!(!tn||re!=="textarea"||!C.value))if(Me){const Ue=bt(Me)?Me.minRows:void 0,at=bt(Me)?Me.maxRows:void 0,st=v1(C.value,Ue,at);R.value={overflowY:"hidden",...st},vt(()=>{C.value.offsetHeight,R.value=st})}else R.value={minHeight:v1(C.value).minHeight}},Y=(re=>{let Me=!1;return()=>{var Ue;if(Me||!r.autosize)return;((Ue=C.value)==null?void 0:Ue.offsetParent)===null||(re(),Me=!0)}})(Ye),oe=()=>{const re=$.value;!re||re.value===ne.value||(re.value=ne.value)},de=async re=>{Ze();let{value:Me}=re.target;if(r.formatter&&(Me=r.parser?r.parser(Me):Me,Me=r.formatter(Me)),!S.value){if(Me===ne.value){oe();return}n(Rn,Me),n("input",Me),await vt(),oe(),le()}},Oe=re=>{n("change",re.target.value)},We=re=>{n("compositionstart",re),S.value=!0},F=re=>{var Me;n("compositionupdate",re);const Ue=(Me=re.target)==null?void 0:Me.value,at=Ue[Ue.length-1]||"";S.value=!OS(at)},W=re=>{n("compositionend",re),S.value&&(S.value=!1,de(re))},q=()=>{E.value=!E.value,se()},se=async()=>{var re;await vt(),(re=$.value)==null||re.focus()},he=()=>{var re;return(re=$.value)==null?void 0:re.blur()},ge=re=>{T.value=!0,n("focus",re)},Te=re=>{var Me;T.value=!1,n("blur",re),r.validateEvent&&((Me=h==null?void 0:h.validate)==null||Me.call(h,"blur").catch(Ue=>void 0))},Se=re=>{x.value=!1,n("mouseleave",re)},Ce=re=>{x.value=!0,n("mouseenter",re)},pe=re=>{n("keydown",re)},Be=()=>{var re;(re=$.value)==null||re.select()},Pe=()=>{n(Rn,""),n("change",""),n("clear"),n("input","")};return Ie(()=>r.modelValue,()=>{var re;vt(()=>Ye()),r.validateEvent&&((re=h==null?void 0:h.validate)==null||re.call(h,"change").catch(Me=>void 0))}),Ie(ne,()=>oe()),Ie(()=>r.type,async()=>{await vt(),oe(),Ye()}),Lt(()=>{!r.formatter&&r.parser,oe(),vt(Ye)}),t({input:y,textarea:C,ref:$,textareaStyle:ce,autosize:Dr(r,"autosize"),focus:se,blur:he,select:Be,clear:Pe,resizeTextarea:Ye}),(re,Me)=>mn((K(),_e("div",Er(O(o),{class:O(a),style:O(ue),role:re.containerRole,onMouseenter:Ce,onMouseleave:Se}),[$e(" input "),re.type!=="textarea"?(K(),_e(ot,{key:0},[$e(" prepend slot "),re.$slots.prepend?(K(),_e("div",{key:0,class:be(O(v).be("group","prepend"))},[je(re.$slots,"prepend")],2)):$e("v-if",!0),L("div",{class:be(O(u))},[$e(" prefix slot "),re.$slots.prefix||re.prefixIcon?(K(),_e("span",{key:0,class:be(O(v).e("prefix"))},[L("span",{class:be(O(v).e("prefix-inner")),onClick:se},[je(re.$slots,"prefix"),re.prefixIcon?(K(),Ae(O(kn),{key:0,class:be(O(v).e("icon"))},{default:D(()=>[(K(),Ae(Vn(re.prefixIcon)))]),_:1},8,["class"])):$e("v-if",!0)],2)],2)):$e("v-if",!0),L("input",Er({id:O(g),ref_key:"input",ref:y,class:O(v).e("inner")},O(c),{type:re.showPassword?E.value?"text":"password":re.type,disabled:O(b),formatter:re.formatter,parser:re.parser,readonly:re.readonly,autocomplete:re.autocomplete,tabindex:re.tabindex,"aria-label":re.label,placeholder:re.placeholder,style:re.inputStyle,form:r.form,onCompositionstart:We,onCompositionupdate:F,onCompositionend:W,onInput:de,onFocus:ge,onBlur:Te,onChange:Oe,onKeydown:pe}),null,16,pW),$e(" suffix slot "),O(ke)?(K(),_e("span",{key:1,class:be(O(v).e("suffix"))},[L("span",{class:be(O(v).e("suffix-inner")),onClick:se},[!O(Q)||!O(ie)||!O(ee)?(K(),_e(ot,{key:0},[je(re.$slots,"suffix"),re.suffixIcon?(K(),Ae(O(kn),{key:0,class:be(O(v).e("icon"))},{default:D(()=>[(K(),Ae(Vn(re.suffixIcon)))]),_:1},8,["class"])):$e("v-if",!0)],64)):$e("v-if",!0),O(Q)?(K(),Ae(O(kn),{key:1,class:be([O(v).e("icon"),O(v).e("clear")]),onMousedown:xr(O(xn),["prevent"]),onClick:Pe},{default:D(()=>[z(O(Qm))]),_:1},8,["class","onMousedown"])):$e("v-if",!0),O(ie)?(K(),Ae(O(kn),{key:2,class:be([O(v).e("icon"),O(v).e("password")]),onClick:q},{default:D(()=>[(K(),Ae(Vn(O(j))))]),_:1},8,["class"])):$e("v-if",!0),O(ee)?(K(),_e("span",{key:3,class:be(O(v).e("count"))},[L("span",{class:be(O(v).e("count-inner"))},wt(O(ye))+" / "+wt(O(c).maxlength),3)],2)):$e("v-if",!0),O(V)&&O(P)&&O(B)?(K(),Ae(O(kn),{key:4,class:be([O(v).e("icon"),O(v).e("validateIcon"),O(v).is("loading",O(V)==="validating")])},{default:D(()=>[(K(),Ae(Vn(O(P))))]),_:1},8,["class"])):$e("v-if",!0)],2)],2)):$e("v-if",!0)],2),$e(" append slot "),re.$slots.append?(K(),_e("div",{key:1,class:be(O(v).be("group","append"))},[je(re.$slots,"append")],2)):$e("v-if",!0)],64)):(K(),_e(ot,{key:1},[$e(" textarea "),L("textarea",Er({id:O(g),ref_key:"textarea",ref:C,class:O(_).e("inner")},O(c),{tabindex:re.tabindex,disabled:O(b),readonly:re.readonly,autocomplete:re.autocomplete,style:O(ce),"aria-label":re.label,placeholder:re.placeholder,form:r.form,onCompositionstart:We,onCompositionupdate:F,onCompositionend:W,onInput:de,onFocus:ge,onBlur:Te,onChange:Oe,onKeydown:pe}),null,16,gW),O(ee)?(K(),_e("span",{key:0,style:Vt(A.value),class:be(O(v).e("count"))},wt(O(ye))+" / "+wt(O(c).maxlength),7)):$e("v-if",!0)],64))],16,hW)),[[si,re.type!=="hidden"]])}});var bW=At(vW,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);const el=$n(bW),ya=4,yW={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},_W=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),ZS=Symbol("scrollbarContextKey"),wW=Nt({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),xW="Thumb",CW=De({__name:"thumb",props:wW,setup(e){const t=e,n=qe(ZS),r=et("scrollbar");n||Us(xW,"can not inject scrollbar context");const i=X(),s=X(),o=X({}),a=X(!1);let u=!1,c=!1,d=tn?document.onselectstart:null;const h=H(()=>yW[t.vertical?"vertical":"horizontal"]),g=H(()=>_W({size:t.size,move:t.move,bar:h.value})),m=H(()=>i.value[h.value.offset]**2/n.wrapElement[h.value.scrollSize]/t.ratio/s.value[h.value.offset]),b=E=>{var A;if(E.stopPropagation(),E.ctrlKey||[1,2].includes(E.button))return;(A=window.getSelection())==null||A.removeAllRanges(),_(E);const R=E.currentTarget;R&&(o.value[h.value.axis]=R[h.value.offset]-(E[h.value.client]-R.getBoundingClientRect()[h.value.direction]))},v=E=>{if(!s.value||!i.value||!n.wrapElement)return;const A=Math.abs(E.target.getBoundingClientRect()[h.value.direction]-E[h.value.client]),R=s.value[h.value.offset]/2,$=(A-R)*100*m.value/i.value[h.value.offset];n.wrapElement[h.value.scroll]=$*n.wrapElement[h.value.scrollSize]/100},_=E=>{E.stopImmediatePropagation(),u=!0,document.addEventListener("mousemove",y),document.addEventListener("mouseup",C),d=document.onselectstart,document.onselectstart=()=>!1},y=E=>{if(!i.value||!s.value||u===!1)return;const A=o.value[h.value.axis];if(!A)return;const R=(i.value.getBoundingClientRect()[h.value.direction]-E[h.value.client])*-1,$=s.value[h.value.offset]-A,B=(R-$)*100*m.value/i.value[h.value.offset];n.wrapElement[h.value.scroll]=B*n.wrapElement[h.value.scrollSize]/100},C=()=>{u=!1,o.value[h.value.axis]=0,document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",C),S(),c&&(a.value=!1)},T=()=>{c=!1,a.value=!!t.size},x=()=>{c=!0,a.value=u};Mn(()=>{S(),document.removeEventListener("mouseup",C)});const S=()=>{document.onselectstart!==d&&(document.onselectstart=d)};return yi(Dr(n,"scrollbarElement"),"mousemove",T),yi(Dr(n,"scrollbarElement"),"mouseleave",x),(E,A)=>(K(),Ae(ii,{name:O(r).b("fade"),persisted:""},{default:D(()=>[mn(L("div",{ref_key:"instance",ref:i,class:be([O(r).e("bar"),O(r).is(O(h).key)]),onMousedown:v},[L("div",{ref_key:"thumb",ref:s,class:be(O(r).e("thumb")),style:Vt(O(g)),onMousedown:b},null,38)],34),[[si,E.always||a.value]])]),_:1},8,["name"]))}});var b1=At(CW,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const SW=Nt({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),OW=De({__name:"bar",props:SW,setup(e,{expose:t}){const n=e,r=X(0),i=X(0);return t({handleScroll:o=>{if(o){const a=o.offsetHeight-ya,u=o.offsetWidth-ya;i.value=o.scrollTop*100/a*n.ratioY,r.value=o.scrollLeft*100/u*n.ratioX}}}),(o,a)=>(K(),_e(ot,null,[z(b1,{move:r.value,ratio:o.ratioX,size:o.width,always:o.always},null,8,["move","ratio","size","always"]),z(b1,{move:i.value,ratio:o.ratioY,size:o.height,vertical:"",always:o.always},null,8,["move","ratio","size","always"])],64))}});var EW=At(OW,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const MW=Nt({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:it([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20}}),TW={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(jn)},AW="ElScrollbar",PW=De({name:AW}),RW=De({...PW,props:MW,emits:TW,setup(e,{expose:t,emit:n}){const r=e,i=et("scrollbar");let s,o;const a=X(),u=X(),c=X(),d=X("0"),h=X("0"),g=X(),m=X(1),b=X(1),v=H(()=>{const A={};return r.height&&(A.height=es(r.height)),r.maxHeight&&(A.maxHeight=es(r.maxHeight)),[r.wrapStyle,A]}),_=H(()=>[r.wrapClass,i.e("wrap"),{[i.em("wrap","hidden-default")]:!r.native}]),y=H(()=>[i.e("view"),r.viewClass]),C=()=>{var A;u.value&&((A=g.value)==null||A.handleScroll(u.value),n("scroll",{scrollTop:u.value.scrollTop,scrollLeft:u.value.scrollLeft}))};function T(A,R){bt(A)?u.value.scrollTo(A):jn(A)&&jn(R)&&u.value.scrollTo(A,R)}const x=A=>{jn(A)&&(u.value.scrollTop=A)},S=A=>{jn(A)&&(u.value.scrollLeft=A)},E=()=>{if(!u.value)return;const A=u.value.offsetHeight-ya,R=u.value.offsetWidth-ya,$=A**2/u.value.scrollHeight,B=R**2/u.value.scrollWidth,V=Math.max($,r.minSize),P=Math.max(B,r.minSize);m.value=$/(A-$)/(V/(A-V)),b.value=B/(R-B)/(P/(R-P)),h.value=V+yar.noresize,A=>{A?(s==null||s(),o==null||o()):({stop:s}=js(c,E),o=yi("resize",E))},{immediate:!0}),Ie(()=>[r.maxHeight,r.height],()=>{r.native||vt(()=>{var A;E(),u.value&&((A=g.value)==null||A.handleScroll(u.value))})}),sn(ZS,vn({scrollbarElement:a,wrapElement:u})),Lt(()=>{r.native||vt(()=>{E()})}),Uo(()=>E()),t({wrapRef:u,update:E,scrollTo:T,setScrollTop:x,setScrollLeft:S,handleScroll:C}),(A,R)=>(K(),_e("div",{ref_key:"scrollbarRef",ref:a,class:be(O(i).b())},[L("div",{ref_key:"wrapRef",ref:u,class:be(O(_)),style:Vt(O(v)),onScroll:C},[(K(),Ae(Vn(A.tag),{ref_key:"resizeRef",ref:c,class:be(O(y)),style:Vt(A.viewStyle)},{default:D(()=>[je(A.$slots,"default")]),_:3},8,["class","style"]))],38),A.native?$e("v-if",!0):(K(),Ae(EW,{key:0,ref_key:"barRef",ref:g,height:h.value,width:d.value,always:A.always,"ratio-x":b.value,"ratio-y":m.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var kW=At(RW,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const hv=$n(kW),pv=Symbol("popper"),QS=Symbol("popperContent"),LW=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],e2=Nt({role:{type:String,values:LW,default:"tooltip"}}),IW=De({name:"ElPopper",inheritAttrs:!1}),$W=De({...IW,props:e2,setup(e,{expose:t}){const n=e,r=X(),i=X(),s=X(),o=X(),a=H(()=>n.role),u={triggerRef:r,popperInstanceRef:i,contentRef:s,referenceRef:o,role:a};return t(u),sn(pv,u),(c,d)=>je(c.$slots,"default")}});var FW=At($W,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const t2=Nt({arrowOffset:{type:Number,default:5}}),DW=De({name:"ElPopperArrow",inheritAttrs:!1}),NW=De({...DW,props:t2,setup(e,{expose:t}){const n=e,r=et("popper"),{arrowOffset:i,arrowRef:s,arrowStyle:o}=qe(QS,void 0);return Ie(()=>n.arrowOffset,a=>{i.value=a}),Mn(()=>{s.value=void 0}),t({arrowRef:s}),(a,u)=>(K(),_e("span",{ref_key:"arrowRef",ref:s,class:be(O(r).e("arrow")),style:Vt(O(o)),"data-popper-arrow":""},null,6))}});var BW=At(NW,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const zW="ElOnlyChild",HW=De({name:zW,setup(e,{slots:t,attrs:n}){var r;const i=qe(KS),s=tH((r=i==null?void 0:i.setForwardRef)!=null?r:xn);return()=>{var o;const a=(o=t.default)==null?void 0:o.call(t,n);if(!a||a.length>1)return null;const u=n2(a);return u?mn(Zi(u,n),[[s]]):null}}});function n2(e){if(!e)return null;const t=e;for(const n of t){if(bt(n))switch(n.type){case ar:continue;case Ga:case"svg":return y1(n);case ot:return n2(n.children);default:return n}return y1(n)}return null}function y1(e){const t=et("only-child");return z("span",{class:t.e("content")},[e])}const r2=Nt({virtualRef:{type:it(Object)},virtualTriggering:Boolean,onMouseenter:{type:it(Function)},onMouseleave:{type:it(Function)},onClick:{type:it(Function)},onKeydown:{type:it(Function)},onFocus:{type:it(Function)},onBlur:{type:it(Function)},onContextmenu:{type:it(Function)},id:String,open:Boolean}),WW=De({name:"ElPopperTrigger",inheritAttrs:!1}),VW=De({...WW,props:r2,setup(e,{expose:t}){const n=e,{role:r,triggerRef:i}=qe(pv,void 0);eH(i);const s=H(()=>a.value?n.id:void 0),o=H(()=>{if(r&&r.value==="tooltip")return n.open&&n.id?n.id:void 0}),a=H(()=>{if(r&&r.value!=="tooltip")return r.value}),u=H(()=>a.value?`${n.open}`:void 0);let c;return Lt(()=>{Ie(()=>n.virtualRef,d=>{d&&(i.value=Ms(d))},{immediate:!0}),Ie(i,(d,h)=>{c==null||c(),c=void 0,Ra(d)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(g=>{var m;const b=n[g];b&&(d.addEventListener(g.slice(2).toLowerCase(),b),(m=h==null?void 0:h.removeEventListener)==null||m.call(h,g.slice(2).toLowerCase(),b))}),c=Ie([s,o,a,u],g=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((m,b)=>{Pa(g[b])?d.removeAttribute(m):d.setAttribute(m,g[b])})},{immediate:!0})),Ra(h)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(g=>h.removeAttribute(g))},{immediate:!0})}),Mn(()=>{c==null||c(),c=void 0}),t({triggerRef:i}),(d,h)=>d.virtualTriggering?$e("v-if",!0):(K(),Ae(O(HW),Er({key:0},d.$attrs,{"aria-controls":O(s),"aria-describedby":O(o),"aria-expanded":O(u),"aria-haspopup":O(a)}),{default:D(()=>[je(d.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var jW=At(VW,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]);const Cp="focus-trap.focus-after-trapped",Sp="focus-trap.focus-after-released",UW="focus-trap.focusout-prevented",_1={cancelable:!0,bubbles:!1},KW={cancelable:!0,bubbles:!1},w1="focusAfterTrapped",x1="focusAfterReleased",i2=Symbol("elFocusTrap"),gv=X(),Hd=X(0),mv=X(0);let Yc=0;const s2=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},C1=(e,t)=>{for(const n of e)if(!qW(n,t))return n},qW=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},YW=e=>{const t=s2(e),n=C1(t,e),r=C1(t.reverse(),e);return[n,r]},GW=e=>e instanceof HTMLInputElement&&"select"in e,xs=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),mv.value=window.performance.now(),e!==n&&GW(e)&&t&&e.select()}};function S1(e,t){const n=[...e],r=e.indexOf(t);return r!==-1&&n.splice(r,1),n}const XW=()=>{let e=[];return{push:r=>{const i=e[0];i&&r!==i&&i.pause(),e=S1(e,r),e.unshift(r)},remove:r=>{var i,s;e=S1(e,r),(s=(i=e[0])==null?void 0:i.resume)==null||s.call(i)}}},JW=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(xs(r,t),document.activeElement!==n)return},O1=XW(),ZW=()=>Hd.value>mv.value,Gc=()=>{gv.value="pointer",Hd.value=window.performance.now()},E1=()=>{gv.value="keyboard",Hd.value=window.performance.now()},QW=()=>(Lt(()=>{Yc===0&&(document.addEventListener("mousedown",Gc),document.addEventListener("touchstart",Gc),document.addEventListener("keydown",E1)),Yc++}),Mn(()=>{Yc--,Yc<=0&&(document.removeEventListener("mousedown",Gc),document.removeEventListener("touchstart",Gc),document.removeEventListener("keydown",E1))}),{focusReason:gv,lastUserFocusTimestamp:Hd,lastAutomatedFocusTimestamp:mv}),Xc=e=>new CustomEvent(UW,{...KW,detail:e}),eV=De({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[w1,x1,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=X();let r,i;const{focusReason:s}=QW();Xz(b=>{e.trapped&&!o.paused&&t("release-requested",b)});const o={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},a=b=>{if(!e.loop&&!e.trapped||o.paused)return;const{key:v,altKey:_,ctrlKey:y,metaKey:C,currentTarget:T,shiftKey:x}=b,{loop:S}=e,E=v===Wn.tab&&!_&&!y&&!C,A=document.activeElement;if(E&&A){const R=T,[$,B]=YW(R);if($&&B){if(!x&&A===B){const P=Xc({focusReason:s.value});t("focusout-prevented",P),P.defaultPrevented||(b.preventDefault(),S&&xs($,!0))}else if(x&&[$,R].includes(A)){const P=Xc({focusReason:s.value});t("focusout-prevented",P),P.defaultPrevented||(b.preventDefault(),S&&xs(B,!0))}}else if(A===R){const P=Xc({focusReason:s.value});t("focusout-prevented",P),P.defaultPrevented||b.preventDefault()}}};sn(i2,{focusTrapRef:n,onKeydown:a}),Ie(()=>e.focusTrapEl,b=>{b&&(n.value=b)},{immediate:!0}),Ie([n],([b],[v])=>{b&&(b.addEventListener("keydown",a),b.addEventListener("focusin",d),b.addEventListener("focusout",h)),v&&(v.removeEventListener("keydown",a),v.removeEventListener("focusin",d),v.removeEventListener("focusout",h))});const u=b=>{t(w1,b)},c=b=>t(x1,b),d=b=>{const v=O(n);if(!v)return;const _=b.target,y=b.relatedTarget,C=_&&v.contains(_);e.trapped||y&&v.contains(y)||(r=y),C&&t("focusin",b),!o.paused&&e.trapped&&(C?i=_:xs(i,!0))},h=b=>{const v=O(n);if(!(o.paused||!v))if(e.trapped){const _=b.relatedTarget;!Pa(_)&&!v.contains(_)&&setTimeout(()=>{if(!o.paused&&e.trapped){const y=Xc({focusReason:s.value});t("focusout-prevented",y),y.defaultPrevented||xs(i,!0)}},0)}else{const _=b.target;_&&v.contains(_)||t("focusout",b)}};async function g(){await vt();const b=O(n);if(b){O1.push(o);const v=b.contains(document.activeElement)?r:document.activeElement;if(r=v,!b.contains(v)){const y=new Event(Cp,_1);b.addEventListener(Cp,u),b.dispatchEvent(y),y.defaultPrevented||vt(()=>{let C=e.focusStartEl;gt(C)||(xs(C),document.activeElement!==C&&(C="first")),C==="first"&&JW(s2(b),!0),(document.activeElement===v||C==="container")&&xs(b)})}}}function m(){const b=O(n);if(b){b.removeEventListener(Cp,u);const v=new CustomEvent(Sp,{..._1,detail:{focusReason:s.value}});b.addEventListener(Sp,c),b.dispatchEvent(v),!v.defaultPrevented&&(s.value=="keyboard"||!ZW()||b.contains(document.activeElement))&&xs(r??document.body),b.removeEventListener(Sp,u),O1.remove(o)}}return Lt(()=>{e.trapped&&g(),Ie(()=>e.trapped,b=>{b?g():m()})}),Mn(()=>{e.trapped&&m()}),{onKeydown:a}}});function tV(e,t,n,r,i,s){return je(e.$slots,"default",{handleKeydown:e.onKeydown})}var vv=At(eV,[["render",tV],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const nV=["fixed","absolute"],rV=Nt({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:it(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Nd,default:"bottom"},popperOptions:{type:it(Object),default:()=>({})},strategy:{type:String,values:nV,default:"absolute"}}),o2=Nt({...rV,id:String,style:{type:it([String,Array,Object])},className:{type:it([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:it([String,Array,Object])},popperStyle:{type:it([String,Array,Object])},referenceEl:{type:it(Object)},triggerTargetEl:{type:it(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),iV={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},sV=(e,t=[])=>{const{placement:n,strategy:r,popperOptions:i}=e,s={placement:n,strategy:r,...i,modifiers:[...aV(e),...t]};return lV(s,i==null?void 0:i.modifiers),s},oV=e=>{if(tn)return Ms(e)};function aV(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:r}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:r}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function lV(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const uV=0,cV=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:r,role:i}=qe(pv,void 0),s=X(),o=X(),a=H(()=>({name:"eventListeners",enabled:!!e.visible})),u=H(()=>{var y;const C=O(s),T=(y=O(o))!=null?y:uV;return{name:"arrow",enabled:!c5(C),options:{element:C,padding:T}}}),c=H(()=>({onFirstUpdate:()=>{b()},...sV(e,[O(u),O(a)])})),d=H(()=>oV(e.referenceEl)||O(r)),{attributes:h,state:g,styles:m,update:b,forceUpdate:v,instanceRef:_}=qz(d,n,c);return Ie(_,y=>t.value=y),Lt(()=>{Ie(()=>{var y;return(y=O(d))==null?void 0:y.getBoundingClientRect()},()=>{b()})}),{attributes:h,arrowRef:s,contentRef:n,instanceRef:_,state:g,styles:m,role:i,forceUpdate:v,update:b}},fV=(e,{attributes:t,styles:n,role:r})=>{const{nextZIndex:i}=cv(),s=et("popper"),o=H(()=>O(t).popper),a=X(e.zIndex||i()),u=H(()=>[s.b(),s.is("pure",e.pure),s.is(e.effect),e.popperClass]),c=H(()=>[{zIndex:O(a)},e.popperStyle||{},O(n).popper]),d=H(()=>r.value==="dialog"?"false":void 0),h=H(()=>O(n).arrow||{});return{ariaModal:d,arrowStyle:h,contentAttrs:o,contentClass:u,contentStyle:c,contentZIndex:a,updateZIndex:()=>{a.value=e.zIndex||i()}}},dV=(e,t)=>{const n=X(!1),r=X();return{focusStartRef:r,trapped:n,onFocusAfterReleased:c=>{var d;((d=c.detail)==null?void 0:d.focusReason)!=="pointer"&&(r.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:c=>{e.visible&&!n.value&&(c.target&&(r.value=c.target),n.value=!0)},onFocusoutPrevented:c=>{e.trapping||(c.detail.focusReason==="pointer"&&c.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,t("close")}}},hV=De({name:"ElPopperContent"}),pV=De({...hV,props:o2,emits:iV,setup(e,{expose:t,emit:n}){const r=e,{focusStartRef:i,trapped:s,onFocusAfterReleased:o,onFocusAfterTrapped:a,onFocusInTrap:u,onFocusoutPrevented:c,onReleaseRequested:d}=dV(r,n),{attributes:h,arrowRef:g,contentRef:m,styles:b,instanceRef:v,role:_,update:y}=cV(r),{ariaModal:C,arrowStyle:T,contentAttrs:x,contentClass:S,contentStyle:E,updateZIndex:A}=fV(r,{styles:b,attributes:h,role:_}),R=qe(Ho,void 0),$=X();sn(QS,{arrowStyle:T,arrowRef:g,arrowOffset:$}),R&&(R.addInputId||R.removeInputId)&&sn(Ho,{...R,addInputId:xn,removeInputId:xn});let B;const V=(j=!0)=>{y(),j&&A()},P=()=>{V(!1),r.visible&&r.focusOnShow?s.value=!0:r.visible===!1&&(s.value=!1)};return Lt(()=>{Ie(()=>r.triggerTargetEl,(j,ue)=>{B==null||B(),B=void 0;const ce=O(j||m.value),ne=O(ue||m.value);Ra(ce)&&(B=Ie([_,()=>r.ariaLabel,C,()=>r.id],Q=>{["role","aria-label","aria-modal","id"].forEach((ie,ee)=>{Pa(Q[ee])?ce.removeAttribute(ie):ce.setAttribute(ie,Q[ee])})},{immediate:!0})),ne!==ce&&Ra(ne)&&["role","aria-label","aria-modal","id"].forEach(Q=>{ne.removeAttribute(Q)})},{immediate:!0}),Ie(()=>r.visible,P,{immediate:!0})}),Mn(()=>{B==null||B(),B=void 0}),t({popperContentRef:m,popperInstanceRef:v,updatePopper:V,contentStyle:E}),(j,ue)=>(K(),_e("div",Er({ref_key:"contentRef",ref:m},O(x),{style:O(E),class:O(S),tabindex:"-1",onMouseenter:ue[0]||(ue[0]=ce=>j.$emit("mouseenter",ce)),onMouseleave:ue[1]||(ue[1]=ce=>j.$emit("mouseleave",ce))}),[z(O(vv),{trapped:O(s),"trap-on-focus-in":!0,"focus-trap-el":O(m),"focus-start-el":O(i),onFocusAfterTrapped:O(a),onFocusAfterReleased:O(o),onFocusin:O(u),onFocusoutPrevented:O(c),onReleaseRequested:O(d)},{default:D(()=>[je(j.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var gV=At(pV,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const mV=$n(FW),bv=Symbol("elTooltip"),yv=Nt({...Qz,...o2,appendTo:{type:it([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:it(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean}),a2=Nt({...r2,disabled:Boolean,trigger:{type:it([String,Array]),default:"hover"},triggerKeys:{type:it(Array),default:()=>[Wn.enter,Wn.space]}}),{useModelToggleProps:vV,useModelToggleEmits:bV,useModelToggle:yV}=TS("visible"),_V=Nt({...e2,...vV,...yv,...a2,...t2,showArrow:{type:Boolean,default:!0}}),wV=[...bV,"before-show","before-hide","show","hide","open","close"],xV=(e,t)=>He(e)?e.includes(t):e===t,ha=(e,t,n)=>r=>{xV(O(e),t)&&n(r)},CV=De({name:"ElTooltipTrigger"}),SV=De({...CV,props:a2,setup(e,{expose:t}){const n=e,r=et("tooltip"),{controlled:i,id:s,open:o,onOpen:a,onClose:u,onToggle:c}=qe(bv,void 0),d=X(null),h=()=>{if(O(i)||n.disabled)return!0},g=Dr(n,"trigger"),m=Ki(h,ha(g,"hover",a)),b=Ki(h,ha(g,"hover",u)),v=Ki(h,ha(g,"click",x=>{x.button===0&&c(x)})),_=Ki(h,ha(g,"focus",a)),y=Ki(h,ha(g,"focus",u)),C=Ki(h,ha(g,"contextmenu",x=>{x.preventDefault(),c(x)})),T=Ki(h,x=>{const{code:S}=x;n.triggerKeys.includes(S)&&(x.preventDefault(),c(x))});return t({triggerRef:d}),(x,S)=>(K(),Ae(O(jW),{id:O(s),"virtual-ref":x.virtualRef,open:O(o),"virtual-triggering":x.virtualTriggering,class:be(O(r).e("trigger")),onBlur:O(y),onClick:O(v),onContextmenu:O(C),onFocus:O(_),onMouseenter:O(m),onMouseleave:O(b),onKeydown:O(T)},{default:D(()=>[je(x.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var OV=At(SV,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const EV=De({name:"ElTooltipContent",inheritAttrs:!1}),MV=De({...EV,props:yv,setup(e,{expose:t}){const n=e,{selector:r}=jS(),i=et("tooltip"),s=X(null),o=X(!1),{controlled:a,id:u,open:c,trigger:d,onClose:h,onOpen:g,onShow:m,onHide:b,onBeforeShow:v,onBeforeHide:_}=qe(bv,void 0),y=H(()=>n.transition||`${i.namespace.value}-fade-in-linear`),C=H(()=>n.persistent);Mn(()=>{o.value=!0});const T=H(()=>O(C)?!0:O(c)),x=H(()=>n.disabled?!1:O(c)),S=H(()=>n.appendTo||r.value),E=H(()=>{var Q;return(Q=n.style)!=null?Q:{}}),A=H(()=>!O(c)),R=()=>{b()},$=()=>{if(O(a))return!0},B=Ki($,()=>{n.enterable&&O(d)==="hover"&&g()}),V=Ki($,()=>{O(d)==="hover"&&h()}),P=()=>{var Q,ie;(ie=(Q=s.value)==null?void 0:Q.updatePopper)==null||ie.call(Q),v==null||v()},j=()=>{_==null||_()},ue=()=>{m(),ne=GF(H(()=>{var Q;return(Q=s.value)==null?void 0:Q.popperContentRef}),()=>{if(O(a))return;O(d)!=="hover"&&h()})},ce=()=>{n.virtualTriggering||h()};let ne;return Ie(()=>O(c),Q=>{Q||ne==null||ne()},{flush:"post"}),Ie(()=>n.content,()=>{var Q,ie;(ie=(Q=s.value)==null?void 0:Q.updatePopper)==null||ie.call(Q)}),t({contentRef:s}),(Q,ie)=>(K(),Ae(km,{disabled:!Q.teleported,to:O(S)},[z(ii,{name:O(y),onAfterLeave:R,onBeforeEnter:P,onAfterEnter:ue,onBeforeLeave:j},{default:D(()=>[O(T)?mn((K(),Ae(O(gV),Er({key:0,id:O(u),ref_key:"contentRef",ref:s},Q.$attrs,{"aria-label":Q.ariaLabel,"aria-hidden":O(A),"boundaries-padding":Q.boundariesPadding,"fallback-placements":Q.fallbackPlacements,"gpu-acceleration":Q.gpuAcceleration,offset:Q.offset,placement:Q.placement,"popper-options":Q.popperOptions,strategy:Q.strategy,effect:Q.effect,enterable:Q.enterable,pure:Q.pure,"popper-class":Q.popperClass,"popper-style":[Q.popperStyle,O(E)],"reference-el":Q.referenceEl,"trigger-target-el":Q.triggerTargetEl,visible:O(x),"z-index":Q.zIndex,onMouseenter:O(B),onMouseleave:O(V),onBlur:ce,onClose:O(h)}),{default:D(()=>[o.value?$e("v-if",!0):je(Q.$slots,"default",{key:0})]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[si,O(x)]]):$e("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var TV=At(MV,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const AV=["innerHTML"],PV={key:1},RV=De({name:"ElTooltip"}),kV=De({...RV,props:_V,emits:wV,setup(e,{expose:t,emit:n}){const r=e;Zz();const i=_u(),s=X(),o=X(),a=()=>{var y;const C=O(s);C&&((y=C.popperInstanceRef)==null||y.update())},u=X(!1),c=X(),{show:d,hide:h,hasUpdateHandler:g}=yV({indicator:u,toggleReason:c}),{onOpen:m,onClose:b}=US({showAfter:Dr(r,"showAfter"),hideAfter:Dr(r,"hideAfter"),autoClose:Dr(r,"autoClose"),open:d,close:h}),v=H(()=>Qi(r.visible)&&!g.value);sn(bv,{controlled:v,id:i,open:Lu(u),trigger:Dr(r,"trigger"),onOpen:y=>{m(y)},onClose:y=>{b(y)},onToggle:y=>{O(u)?b(y):m(y)},onShow:()=>{n("show",c.value)},onHide:()=>{n("hide",c.value)},onBeforeShow:()=>{n("before-show",c.value)},onBeforeHide:()=>{n("before-hide",c.value)},updatePopper:a}),Ie(()=>r.disabled,y=>{y&&u.value&&(u.value=!1)});const _=()=>{var y,C;const T=(C=(y=o.value)==null?void 0:y.contentRef)==null?void 0:C.popperContentRef;return T&&T.contains(document.activeElement)};return uC(()=>u.value&&h()),t({popperRef:s,contentRef:o,isFocusInsideContent:_,updatePopper:a,onOpen:m,onClose:b,hide:h}),(y,C)=>(K(),Ae(O(mV),{ref_key:"popperRef",ref:s,role:y.role},{default:D(()=>[z(OV,{disabled:y.disabled,trigger:y.trigger,"trigger-keys":y.triggerKeys,"virtual-ref":y.virtualRef,"virtual-triggering":y.virtualTriggering},{default:D(()=>[y.$slots.default?je(y.$slots,"default",{key:0}):$e("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),z(TV,{ref_key:"contentRef",ref:o,"aria-label":y.ariaLabel,"boundaries-padding":y.boundariesPadding,content:y.content,disabled:y.disabled,effect:y.effect,enterable:y.enterable,"fallback-placements":y.fallbackPlacements,"hide-after":y.hideAfter,"gpu-acceleration":y.gpuAcceleration,offset:y.offset,persistent:y.persistent,"popper-class":y.popperClass,"popper-style":y.popperStyle,placement:y.placement,"popper-options":y.popperOptions,pure:y.pure,"raw-content":y.rawContent,"reference-el":y.referenceEl,"trigger-target-el":y.triggerTargetEl,"show-after":y.showAfter,strategy:y.strategy,teleported:y.teleported,transition:y.transition,"virtual-triggering":y.virtualTriggering,"z-index":y.zIndex,"append-to":y.appendTo},{default:D(()=>[je(y.$slots,"content",{},()=>[y.rawContent?(K(),_e("span",{key:0,innerHTML:y.content},null,8,AV)):(K(),_e("span",PV,wt(y.content),1))]),y.showArrow?(K(),Ae(O(BW),{key:0,"arrow-offset":y.arrowOffset},null,8,["arrow-offset"])):$e("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var LV=At(kV,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const Wd=$n(LV),l2=Symbol("buttonGroupContextKey"),IV=(e,t)=>{zo({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},H(()=>e.type==="text"));const n=qe(l2,void 0),r=fv("button"),{form:i}=Qa(),s=ns(H(()=>n==null?void 0:n.size)),o=zd(),a=X(),u=Ya(),c=H(()=>e.type||(n==null?void 0:n.type)||""),d=H(()=>{var b,v,_;return(_=(v=e.autoInsertSpace)!=null?v:(b=r.value)==null?void 0:b.autoInsertSpace)!=null?_:!1}),h=H(()=>e.tag==="button"?{ariaDisabled:o.value||e.loading,disabled:o.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),g=H(()=>{var b;const v=(b=u.default)==null?void 0:b.call(u);if(d.value&&(v==null?void 0:v.length)===1){const _=v[0];if((_==null?void 0:_.type)===Ga){const y=_.children;return/^\p{Unified_Ideograph}{2}$/u.test(y.trim())}}return!1});return{_disabled:o,_size:s,_type:c,_ref:a,_props:h,shouldAddSpace:g,handleClick:b=>{e.nativeType==="reset"&&(i==null||i.resetFields()),t("click",b)}}},$V=["default","primary","success","warning","info","danger","text",""],FV=["button","submit","reset"],Mg=Nt({size:Ja,disabled:Boolean,type:{type:String,values:$V,default:""},icon:{type:Qr},nativeType:{type:String,values:FV,default:"button"},loading:Boolean,loadingIcon:{type:Qr,default:()=>ev},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:it([String,Object]),default:"button"}}),DV={click:e=>e instanceof MouseEvent};function In(e,t){NV(e)&&(e="100%");var n=BV(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Jc(e){return Math.min(1,Math.max(0,e))}function NV(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function BV(e){return typeof e=="string"&&e.indexOf("%")!==-1}function u2(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Zc(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Ao(e){return e.length===1?"0"+e:String(e)}function zV(e,t,n){return{r:In(e,255)*255,g:In(t,255)*255,b:In(n,255)*255}}function M1(e,t,n){e=In(e,255),t=In(t,255),n=In(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),s=0,o=0,a=(r+i)/2;if(r===i)o=0,s=0;else{var u=r-i;switch(o=a>.5?u/(2-r-i):u/(r+i),r){case e:s=(t-n)/u+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function HV(e,t,n){var r,i,s;if(e=In(e,360),t=In(t,100),n=In(n,100),t===0)i=n,s=n,r=n;else{var o=n<.5?n*(1+t):n+t-n*t,a=2*n-o;r=Op(a,o,e+1/3),i=Op(a,o,e),s=Op(a,o,e-1/3)}return{r:r*255,g:i*255,b:s*255}}function T1(e,t,n){e=In(e,255),t=In(t,255),n=In(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),s=0,o=r,a=r-i,u=r===0?0:a/r;if(r===i)s=0;else{switch(r){case e:s=(t-n)/a+(t>16,g:(e&65280)>>8,b:e&255}}var Tg={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",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:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",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:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",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:"#ff0000",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:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function KV(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,s=null,o=!1,a=!1;return typeof e=="string"&&(e=GV(e)),typeof e=="object"&&(Di(e.r)&&Di(e.g)&&Di(e.b)?(t=zV(e.r,e.g,e.b),o=!0,a=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Di(e.h)&&Di(e.s)&&Di(e.v)?(r=Zc(e.s),i=Zc(e.v),t=WV(e.h,r,i),o=!0,a="hsv"):Di(e.h)&&Di(e.s)&&Di(e.l)&&(r=Zc(e.s),s=Zc(e.l),t=HV(e.h,r,s),o=!0,a="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=u2(n),{ok:o,format:e.format||a,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var qV="[-\\+]?\\d+%?",YV="[-\\+]?\\d*\\.\\d+%?",Ts="(?:".concat(YV,")|(?:").concat(qV,")"),Ep="[\\s|\\(]+(".concat(Ts,")[,|\\s]+(").concat(Ts,")[,|\\s]+(").concat(Ts,")\\s*\\)?"),Mp="[\\s|\\(]+(".concat(Ts,")[,|\\s]+(").concat(Ts,")[,|\\s]+(").concat(Ts,")[,|\\s]+(").concat(Ts,")\\s*\\)?"),Xr={CSS_UNIT:new RegExp(Ts),rgb:new RegExp("rgb"+Ep),rgba:new RegExp("rgba"+Mp),hsl:new RegExp("hsl"+Ep),hsla:new RegExp("hsla"+Mp),hsv:new RegExp("hsv"+Ep),hsva:new RegExp("hsva"+Mp),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function GV(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Tg[e])e=Tg[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Xr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Xr.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Xr.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Xr.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Xr.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Xr.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Xr.hex8.exec(e),n?{r:yr(n[1]),g:yr(n[2]),b:yr(n[3]),a:P1(n[4]),format:t?"name":"hex8"}:(n=Xr.hex6.exec(e),n?{r:yr(n[1]),g:yr(n[2]),b:yr(n[3]),format:t?"name":"hex"}:(n=Xr.hex4.exec(e),n?{r:yr(n[1]+n[1]),g:yr(n[2]+n[2]),b:yr(n[3]+n[3]),a:P1(n[4]+n[4]),format:t?"name":"hex8"}:(n=Xr.hex3.exec(e),n?{r:yr(n[1]+n[1]),g:yr(n[2]+n[2]),b:yr(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Di(e){return!!Xr.CSS_UNIT.exec(String(e))}var c2=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=UV(t)),this.originalInput=t;var i=KV(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:i.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=i.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,i,s=t.r/255,o=t.g/255,a=t.b/255;return s<=.03928?n=s/12.92:n=Math.pow((s+.055)/1.055,2.4),o<=.03928?r=o/12.92:r=Math.pow((o+.055)/1.055,2.4),a<=.03928?i=a/12.92:i=Math.pow((a+.055)/1.055,2.4),.2126*n+.7152*r+.0722*i},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=u2(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=T1(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=T1(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=M1(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=M1(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),A1(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),VV(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(In(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(In(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+A1(this.r,this.g,this.b,!1),n=0,r=Object.entries(Tg);n=0,s=!n&&i&&(t.startsWith("hex")||t==="name");return s?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Jc(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Jc(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Jc(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Jc(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),i=new e(t).toRgb(),s=n/100,o={r:(i.r-r.r)*s+r.r,g:(i.g-r.g)*s+r.g,b:(i.b-r.b)*s+r.b,a:(i.a-r.a)*s+r.a};return new e(o)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),i=360/n,s=[this];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,s.push(new e(r));return s},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,i=n.s,s=n.v,o=[],a=1/t;t--;)o.push(new e({h:r,s:i,v:s})),s=(s+a)%1;return o},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),i=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/i,g:(n.g*n.a+r.g*r.a*(1-n.a))/i,b:(n.b*n.a+r.b*r.a*(1-n.a))/i,a:i})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,i=[this],s=360/t,o=1;o{let r={};const i=e.color;if(i){const s=new c2(i),o=e.dark?s.tint(20).toString():ys(s,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?ys(s,90):s.tint(90).toString(),"text-color":i,"border-color":e.dark?ys(s,50):s.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":i,"hover-border-color":i,"active-bg-color":o,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":o}),t.value&&(r[n.cssVarBlockName("disabled-bg-color")]=e.dark?ys(s,90):s.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?ys(s,50):s.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?ys(s,80):s.tint(80).toString());else{const a=e.dark?ys(s,30):s.tint(30).toString(),u=s.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":i,"text-color":u,"border-color":i,"hover-bg-color":a,"hover-text-color":u,"hover-border-color":a,"active-bg-color":o,"active-border-color":o}),t.value){const c=e.dark?ys(s,50):s.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=c,r[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,r[n.cssVarBlockName("disabled-border-color")]=c}}}return r})}const JV=De({name:"ElButton"}),ZV=De({...JV,props:Mg,emits:DV,setup(e,{expose:t,emit:n}){const r=e,i=XV(r),s=et("button"),{_ref:o,_size:a,_type:u,_disabled:c,_props:d,shouldAddSpace:h,handleClick:g}=IV(r,n);return t({ref:o,size:a,type:u,disabled:c,shouldAddSpace:h}),(m,b)=>(K(),Ae(Vn(m.tag),Er({ref_key:"_ref",ref:o},O(d),{class:[O(s).b(),O(s).m(O(u)),O(s).m(O(a)),O(s).is("disabled",O(c)),O(s).is("loading",m.loading),O(s).is("plain",m.plain),O(s).is("round",m.round),O(s).is("circle",m.circle),O(s).is("text",m.text),O(s).is("link",m.link),O(s).is("has-bg",m.bg)],style:O(i),onClick:O(g)}),{default:D(()=>[m.loading?(K(),_e(ot,{key:0},[m.$slots.loading?je(m.$slots,"loading",{key:0}):(K(),Ae(O(kn),{key:1,class:be(O(s).is("loading"))},{default:D(()=>[(K(),Ae(Vn(m.loadingIcon)))]),_:1},8,["class"]))],64)):m.icon||m.$slots.icon?(K(),Ae(O(kn),{key:1},{default:D(()=>[m.icon?(K(),Ae(Vn(m.icon),{key:0})):je(m.$slots,"icon",{key:1})]),_:3})):$e("v-if",!0),m.$slots.default?(K(),_e("span",{key:2,class:be({[O(s).em("text","expand")]:O(h)})},[je(m.$slots,"default")],2)):$e("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var QV=At(ZV,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const ej={size:Mg.size,type:Mg.type},tj=De({name:"ElButtonGroup"}),nj=De({...tj,props:ej,setup(e){const t=e;sn(l2,vn({size:Dr(t,"size"),type:Dr(t,"type")}));const n=et("button");return(r,i)=>(K(),_e("div",{class:be(`${O(n).b("group")}`)},[je(r.$slots,"default")],2))}});var f2=At(nj,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const d2=$n(QV,{ButtonGroup:f2});Oi(f2);var Zt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function rj(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const Cs=new Map;let R1;tn&&(document.addEventListener("mousedown",e=>R1=e),document.addEventListener("mouseup",e=>{for(const t of Cs.values())for(const{documentHandler:n}of t)n(e,R1)}));function k1(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:Ra(t.arg)&&n.push(t.arg),function(r,i){const s=t.instance.popperRef,o=r.target,a=i==null?void 0:i.target,u=!t||!t.instance,c=!o||!a,d=e.contains(o)||e.contains(a),h=e===o,g=n.length&&n.some(b=>b==null?void 0:b.contains(o))||n.length&&n.includes(a),m=s&&(s.contains(o)||s.contains(a));u||c||d||h||g||m||t.value(r,i)}}const h2={beforeMount(e,t){Cs.has(e)||Cs.set(e,[]),Cs.get(e).push({documentHandler:k1(e,t),bindingFn:t.value})},updated(e,t){Cs.has(e)||Cs.set(e,[]);const n=Cs.get(e),r=n.findIndex(s=>s.bindingFn===t.oldValue),i={documentHandler:k1(e,t),bindingFn:t.value};r>=0?n.splice(r,1,i):n.push(i)},unmounted(e){Cs.delete(e)}};var L1=!1,Oo,Ag,Pg,Tf,Af,p2,Pf,Rg,kg,Lg,g2,Ig,$g,m2,v2;function rr(){if(!L1){L1=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),n=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(Ig=/\b(iPhone|iP[ao]d)/.exec(e),$g=/\b(iP[ao]d)/.exec(e),Lg=/Android/i.exec(e),m2=/FBAN\/\w+;/i.exec(e),v2=/Mobile/i.exec(e),g2=!!/Win64/.exec(e),t){Oo=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,Oo&&document&&document.documentMode&&(Oo=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(e);p2=r?parseFloat(r[1])+4:Oo,Ag=t[2]?parseFloat(t[2]):NaN,Pg=t[3]?parseFloat(t[3]):NaN,Tf=t[4]?parseFloat(t[4]):NaN,Tf?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),Af=t&&t[1]?parseFloat(t[1]):NaN):Af=NaN}else Oo=Ag=Pg=Af=Tf=NaN;if(n){if(n[1]){var i=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);Pf=i?parseFloat(i[1].replace("_",".")):!0}else Pf=!1;Rg=!!n[2],kg=!!n[3]}else Pf=Rg=kg=!1}}var Fg={ie:function(){return rr()||Oo},ieCompatibilityMode:function(){return rr()||p2>Oo},ie64:function(){return Fg.ie()&&g2},firefox:function(){return rr()||Ag},opera:function(){return rr()||Pg},webkit:function(){return rr()||Tf},safari:function(){return Fg.webkit()},chrome:function(){return rr()||Af},windows:function(){return rr()||Rg},osx:function(){return rr()||Pf},linux:function(){return rr()||kg},iphone:function(){return rr()||Ig},mobile:function(){return rr()||Ig||$g||Lg||v2},nativeApp:function(){return rr()||m2},android:function(){return rr()||Lg},ipad:function(){return rr()||$g}},ij=Fg,Qc=!!(typeof window<"u"&&window.document&&window.document.createElement),sj={canUseDOM:Qc,canUseWorkers:typeof Worker<"u",canUseEventListeners:Qc&&!!(window.addEventListener||window.attachEvent),canUseViewport:Qc&&!!window.screen,isInWorker:!Qc},b2=sj,y2;b2.canUseDOM&&(y2=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function oj(e,t){if(!b2.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var i=document.createElement("div");i.setAttribute(n,"return;"),r=typeof i[n]=="function"}return!r&&y2&&e==="wheel"&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var aj=oj,I1=10,$1=40,F1=800;function _2(e){var t=0,n=0,r=0,i=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=t*I1,i=n*I1,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||i)&&e.deltaMode&&(e.deltaMode==1?(r*=$1,i*=$1):(r*=F1,i*=F1)),r&&!t&&(t=r<1?-1:1),i&&!n&&(n=i<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:i}}_2.getEventType=function(){return ij.firefox()?"DOMMouseScroll":aj("wheel")?"wheel":"mousewheel"};var lj=_2;/** +* Checks if an event is supported in the current execution environment. +* +* NOTE: This will not work correctly for non-generic events such as `change`, +* `reset`, `load`, `error`, and `select`. +* +* Borrows from Modernizr. +* +* @param {string} eventNameSuffix Event name, e.g. "click". +* @param {?boolean} capture Check if the capture phase is supported. +* @return {boolean} True if the event is supported. +* @internal +* @license Modernizr 3.0.0pre (Custom Build) | MIT +*/const uj=function(e,t){if(e&&e.addEventListener){const n=function(r){const i=lj(r);t&&Reflect.apply(t,this,[r,i])};e.addEventListener("wheel",n,{passive:!0})}},cj={beforeMount(e,t){uj(e,t.value)}},w2={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object]},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:Ja,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},x2={[Rn]:e=>gt(e)||jn(e)||Qi(e),change:e=>gt(e)||jn(e)||Qi(e)},tl=Symbol("checkboxGroupContextKey"),fj=({model:e,isChecked:t})=>{const n=qe(tl,void 0),r=H(()=>{var s,o;const a=(s=n==null?void 0:n.max)==null?void 0:s.value,u=(o=n==null?void 0:n.min)==null?void 0:o.value;return!rd(a)&&e.value.length>=a&&!t.value||!rd(u)&&e.value.length<=u&&t.value});return{isDisabled:zd(H(()=>(n==null?void 0:n.disabled.value)||r.value)),isLimitDisabled:r}},dj=(e,{model:t,isLimitExceeded:n,hasOwnLabel:r,isDisabled:i,isLabeledByFormItem:s})=>{const o=qe(tl,void 0),{formItem:a}=Qa(),{emit:u}=kt();function c(b){var v,_;return b===e.trueLabel||b===!0?(v=e.trueLabel)!=null?v:!0:(_=e.falseLabel)!=null?_:!1}function d(b,v){u("change",c(b),v)}function h(b){if(n.value)return;const v=b.target;u("change",c(v.checked),b)}async function g(b){n.value||!r.value&&!i.value&&s.value&&(b.composedPath().some(y=>y.tagName==="LABEL")||(t.value=c([!1,e.falseLabel].includes(t.value)),await vt(),d(t.value,b)))}const m=H(()=>(o==null?void 0:o.validateEvent)||e.validateEvent);return Ie(()=>e.modelValue,()=>{m.value&&(a==null||a.validate("change").catch(b=>void 0))}),{handleChange:h,onClickRoot:g}},hj=e=>{const t=X(!1),{emit:n}=kt(),r=qe(tl,void 0),i=H(()=>rd(r)===!1),s=X(!1);return{model:H({get(){var a,u;return i.value?(a=r==null?void 0:r.modelValue)==null?void 0:a.value:(u=e.modelValue)!=null?u:t.value},set(a){var u,c;i.value&&He(a)?(s.value=((u=r==null?void 0:r.max)==null?void 0:u.value)!==void 0&&a.length>(r==null?void 0:r.max.value),s.value===!1&&((c=r==null?void 0:r.changeEvent)==null||c.call(r,a))):(n(Rn,a),t.value=a)}}),isGroup:i,isLimitExceeded:s}},pj=(e,t,{model:n})=>{const r=qe(tl,void 0),i=X(!1),s=H(()=>{const c=n.value;return Qi(c)?c:He(c)?bt(e.label)?c.map(ut).some(d=>bg(d,e.label)):c.map(ut).includes(e.label):c!=null?c===e.trueLabel:!!c}),o=ns(H(()=>{var c;return(c=r==null?void 0:r.size)==null?void 0:c.value}),{prop:!0}),a=ns(H(()=>{var c;return(c=r==null?void 0:r.size)==null?void 0:c.value})),u=H(()=>!!(t.default||e.label));return{checkboxButtonSize:o,isChecked:s,isFocused:i,checkboxSize:a,hasOwnLabel:u}},gj=(e,{model:t})=>{function n(){He(t.value)&&!t.value.includes(e.label)?t.value.push(e.label):t.value=e.trueLabel||!0}e.checked&&n()},C2=(e,t)=>{const{formItem:n}=Qa(),{model:r,isGroup:i,isLimitExceeded:s}=hj(e),{isFocused:o,isChecked:a,checkboxButtonSize:u,checkboxSize:c,hasOwnLabel:d}=pj(e,t,{model:r}),{isDisabled:h}=fj({model:r,isChecked:a}),{inputId:g,isLabeledByFormItem:m}=dv(e,{formItemContext:n,disableIdGeneration:d,disableIdManagement:i}),{handleChange:b,onClickRoot:v}=dj(e,{model:r,isLimitExceeded:s,hasOwnLabel:d,isDisabled:h,isLabeledByFormItem:m});return gj(e,{model:r}),{inputId:g,isLabeledByFormItem:m,isChecked:a,isDisabled:h,isFocused:o,checkboxButtonSize:u,checkboxSize:c,hasOwnLabel:d,model:r,handleChange:b,onClickRoot:v}},mj=["tabindex","role","aria-checked"],vj=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],bj=["id","aria-hidden","disabled","value","name","tabindex"],yj=De({name:"ElCheckbox"}),_j=De({...yj,props:w2,emits:x2,setup(e){const t=e,n=Ya(),{inputId:r,isLabeledByFormItem:i,isChecked:s,isDisabled:o,isFocused:a,checkboxSize:u,hasOwnLabel:c,model:d,handleChange:h,onClickRoot:g}=C2(t,n),m=et("checkbox"),b=H(()=>[m.b(),m.m(u.value),m.is("disabled",o.value),m.is("bordered",t.border),m.is("checked",s.value)]),v=H(()=>[m.e("input"),m.is("disabled",o.value),m.is("checked",s.value),m.is("indeterminate",t.indeterminate),m.is("focus",a.value)]);return(_,y)=>(K(),Ae(Vn(!O(c)&&O(i)?"span":"label"),{class:be(O(b)),"aria-controls":_.indeterminate?_.controls:null,onClick:O(g)},{default:D(()=>[L("span",{class:be(O(v)),tabindex:_.indeterminate?0:void 0,role:_.indeterminate?"checkbox":void 0,"aria-checked":_.indeterminate?"mixed":void 0},[_.trueLabel||_.falseLabel?mn((K(),_e("input",{key:0,id:O(r),"onUpdate:modelValue":y[0]||(y[0]=C=>$t(d)?d.value=C:null),class:be(O(m).e("original")),type:"checkbox","aria-hidden":_.indeterminate?"true":"false",name:_.name,tabindex:_.tabindex,disabled:O(o),"true-value":_.trueLabel,"false-value":_.falseLabel,onChange:y[1]||(y[1]=(...C)=>O(h)&&O(h)(...C)),onFocus:y[2]||(y[2]=C=>a.value=!0),onBlur:y[3]||(y[3]=C=>a.value=!1)},null,42,vj)),[[Gf,O(d)]]):mn((K(),_e("input",{key:1,id:O(r),"onUpdate:modelValue":y[4]||(y[4]=C=>$t(d)?d.value=C:null),class:be(O(m).e("original")),type:"checkbox","aria-hidden":_.indeterminate?"true":"false",disabled:O(o),value:_.label,name:_.name,tabindex:_.tabindex,onChange:y[5]||(y[5]=(...C)=>O(h)&&O(h)(...C)),onFocus:y[6]||(y[6]=C=>a.value=!0),onBlur:y[7]||(y[7]=C=>a.value=!1)},null,42,bj)),[[Gf,O(d)]]),L("span",{class:be(O(m).e("inner"))},null,2)],10,mj),O(c)?(K(),_e("span",{key:0,class:be(O(m).e("label"))},[je(_.$slots,"default"),_.$slots.default?$e("v-if",!0):(K(),_e(ot,{key:0},[Z(wt(_.label),1)],64))],2)):$e("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var wj=At(_j,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const xj=["name","tabindex","disabled","true-value","false-value"],Cj=["name","tabindex","disabled","value"],Sj=De({name:"ElCheckboxButton"}),Oj=De({...Sj,props:w2,emits:x2,setup(e){const t=e,n=Ya(),{isFocused:r,isChecked:i,isDisabled:s,checkboxButtonSize:o,model:a,handleChange:u}=C2(t,n),c=qe(tl,void 0),d=et("checkbox"),h=H(()=>{var m,b,v,_;const y=(b=(m=c==null?void 0:c.fill)==null?void 0:m.value)!=null?b:"";return{backgroundColor:y,borderColor:y,color:(_=(v=c==null?void 0:c.textColor)==null?void 0:v.value)!=null?_:"",boxShadow:y?`-1px 0 0 0 ${y}`:void 0}}),g=H(()=>[d.b("button"),d.bm("button",o.value),d.is("disabled",s.value),d.is("checked",i.value),d.is("focus",r.value)]);return(m,b)=>(K(),_e("label",{class:be(O(g))},[m.trueLabel||m.falseLabel?mn((K(),_e("input",{key:0,"onUpdate:modelValue":b[0]||(b[0]=v=>$t(a)?a.value=v:null),class:be(O(d).be("button","original")),type:"checkbox",name:m.name,tabindex:m.tabindex,disabled:O(s),"true-value":m.trueLabel,"false-value":m.falseLabel,onChange:b[1]||(b[1]=(...v)=>O(u)&&O(u)(...v)),onFocus:b[2]||(b[2]=v=>r.value=!0),onBlur:b[3]||(b[3]=v=>r.value=!1)},null,42,xj)),[[Gf,O(a)]]):mn((K(),_e("input",{key:1,"onUpdate:modelValue":b[4]||(b[4]=v=>$t(a)?a.value=v:null),class:be(O(d).be("button","original")),type:"checkbox",name:m.name,tabindex:m.tabindex,disabled:O(s),value:m.label,onChange:b[5]||(b[5]=(...v)=>O(u)&&O(u)(...v)),onFocus:b[6]||(b[6]=v=>r.value=!0),onBlur:b[7]||(b[7]=v=>r.value=!1)},null,42,Cj)),[[Gf,O(a)]]),m.$slots.default||m.label?(K(),_e("span",{key:2,class:be(O(d).be("button","inner")),style:Vt(O(i)?O(h):void 0)},[je(m.$slots,"default",{},()=>[Z(wt(m.label),1)])],6)):$e("v-if",!0)],2))}});var S2=At(Oj,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);const Ej=Nt({modelValue:{type:it(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:Ja,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}}),Mj={[Rn]:e=>He(e),change:e=>He(e)},Tj=De({name:"ElCheckboxGroup"}),Aj=De({...Tj,props:Ej,emits:Mj,setup(e,{emit:t}){const n=e,r=et("checkbox"),{formItem:i}=Qa(),{inputId:s,isLabeledByFormItem:o}=dv(n,{formItemContext:i}),a=async c=>{t(Rn,c),await vt(),t("change",c)},u=H({get(){return n.modelValue},set(c){a(c)}});return sn(tl,{...g5(Gs(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:u,changeEvent:a}),Ie(()=>n.modelValue,()=>{n.validateEvent&&(i==null||i.validate("change").catch(c=>void 0))}),(c,d)=>{var h;return K(),Ae(Vn(c.tag),{id:O(s),class:be(O(r).b("group")),role:"group","aria-label":O(o)?void 0:c.label||"checkbox-group","aria-labelledby":O(o)?(h=O(i))==null?void 0:h.labelId:void 0},{default:D(()=>[je(c.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var O2=At(Aj,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);const Da=$n(wj,{CheckboxButton:S2,CheckboxGroup:O2});Oi(S2);Oi(O2);const E2=Nt({type:{type:String,values:["success","info","warning","danger",""],default:""},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:{type:String,default:""},size:{type:String,values:zu,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),Pj={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},Rj=De({name:"ElTag"}),kj=De({...Rj,props:E2,emits:Pj,setup(e,{emit:t}){const n=e,r=ns(),i=et("tag"),s=H(()=>{const{type:u,hit:c,effect:d,closable:h,round:g}=n;return[i.b(),i.is("closable",h),i.m(u),i.m(r.value),i.m(d),i.is("hit",c),i.is("round",g)]}),o=u=>{t("close",u)},a=u=>{t("click",u)};return(u,c)=>u.disableTransitions?(K(),_e("span",{key:0,class:be(O(s)),style:Vt({backgroundColor:u.color}),onClick:a},[L("span",{class:be(O(i).e("content"))},[je(u.$slots,"default")],2),u.closable?(K(),Ae(O(kn),{key:0,class:be(O(i).e("close")),onClick:xr(o,["stop"])},{default:D(()=>[z(O(id))]),_:1},8,["class","onClick"])):$e("v-if",!0)],6)):(K(),Ae(ii,{key:1,name:`${O(i).namespace.value}-zoom-in-center`,appear:""},{default:D(()=>[L("span",{class:be(O(s)),style:Vt({backgroundColor:u.color}),onClick:a},[L("span",{class:be(O(i).e("content"))},[je(u.$slots,"default")],2),u.closable?(K(),Ae(O(kn),{key:0,class:be(O(i).e("close")),onClick:xr(o,["stop"])},{default:D(()=>[z(O(id))]),_:1},8,["class","onClick"])):$e("v-if",!0)],6)]),_:3},8,["name"]))}});var Lj=At(kj,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const Ij=$n(Lj),M2=Symbol("rowContextKey"),$j=["start","center","end","space-around","space-between","space-evenly"],Fj=["top","middle","bottom"],Dj=Nt({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:$j,default:"start"},align:{type:String,values:Fj,default:"top"}}),Nj=De({name:"ElRow"}),Bj=De({...Nj,props:Dj,setup(e){const t=e,n=et("row"),r=H(()=>t.gutter);sn(M2,{gutter:r});const i=H(()=>{const o={};return t.gutter&&(o.marginRight=o.marginLeft=`-${t.gutter/2}px`),o}),s=H(()=>[n.b(),n.is(`justify-${t.justify}`,t.justify!=="start"),n.is(`align-${t.align}`,t.align!=="top")]);return(o,a)=>(K(),Ae(Vn(o.tag),{class:be(O(s)),style:Vt(O(i))},{default:D(()=>[je(o.$slots,"default")]),_:3},8,["class","style"]))}});var zj=At(Bj,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const ui=$n(zj),Hj=Nt({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:it([Number,Object]),default:()=>So({})},sm:{type:it([Number,Object]),default:()=>So({})},md:{type:it([Number,Object]),default:()=>So({})},lg:{type:it([Number,Object]),default:()=>So({})},xl:{type:it([Number,Object]),default:()=>So({})}}),Wj=De({name:"ElCol"}),Vj=De({...Wj,props:Hj,setup(e){const t=e,{gutter:n}=qe(M2,{gutter:H(()=>0)}),r=et("col"),i=H(()=>{const o={};return n.value&&(o.paddingLeft=o.paddingRight=`${n.value/2}px`),o}),s=H(()=>{const o=[];return["span","offset","pull","push"].forEach(c=>{const d=t[c];jn(d)&&(c==="span"?o.push(r.b(`${t[c]}`)):d>0&&o.push(r.b(`${c}-${t[c]}`)))}),["xs","sm","md","lg","xl"].forEach(c=>{jn(t[c])?o.push(r.b(`${c}-${t[c]}`)):bt(t[c])&&Object.entries(t[c]).forEach(([d,h])=>{o.push(d!=="span"?r.b(`${c}-${d}-${h}`):r.b(`${c}-${h}`))})}),n.value&&o.push(r.is("guttered")),[r.b(),o]});return(o,a)=>(K(),Ae(Vn(o.tag),{class:be(O(s)),style:Vt(O(i))},{default:D(()=>[je(o.$slots,"default")]),_:3},8,["class","style"]))}});var jj=At(Vj,[["__file","/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);const os=$n(jj),Uj=De({name:"ElCollapseTransition"}),Kj=De({...Uj,setup(e){const t=et("collapse-transition"),n={beforeEnter(r){r.dataset||(r.dataset={}),r.dataset.oldPaddingTop=r.style.paddingTop,r.dataset.oldPaddingBottom=r.style.paddingBottom,r.style.maxHeight=0,r.style.paddingTop=0,r.style.paddingBottom=0},enter(r){r.dataset.oldOverflow=r.style.overflow,r.scrollHeight!==0?(r.style.maxHeight=`${r.scrollHeight}px`,r.style.paddingTop=r.dataset.oldPaddingTop,r.style.paddingBottom=r.dataset.oldPaddingBottom):(r.style.maxHeight=0,r.style.paddingTop=r.dataset.oldPaddingTop,r.style.paddingBottom=r.dataset.oldPaddingBottom),r.style.overflow="hidden"},afterEnter(r){r.style.maxHeight="",r.style.overflow=r.dataset.oldOverflow},beforeLeave(r){r.dataset||(r.dataset={}),r.dataset.oldPaddingTop=r.style.paddingTop,r.dataset.oldPaddingBottom=r.style.paddingBottom,r.dataset.oldOverflow=r.style.overflow,r.style.maxHeight=`${r.scrollHeight}px`,r.style.overflow="hidden"},leave(r){r.scrollHeight!==0&&(r.style.maxHeight=0,r.style.paddingTop=0,r.style.paddingBottom=0)},afterLeave(r){r.style.maxHeight="",r.style.overflow=r.dataset.oldOverflow,r.style.paddingTop=r.dataset.oldPaddingTop,r.style.paddingBottom=r.dataset.oldPaddingBottom}};return(r,i)=>(K(),Ae(ii,Er({name:O(t).b()},d$(n)),{default:D(()=>[je(r.$slots,"default")]),_:3},16,["name"]))}});var Rf=At(Kj,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);Rf.install=e=>{e.component(Rf.name,Rf)};const qj=Rf,Yj=Nt({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:it([String,Array,Object])},zIndex:{type:it([String,Number])}}),Gj={click:e=>e instanceof MouseEvent},Xj="overlay";var Jj=De({name:"ElOverlay",props:Yj,emits:Gj,setup(e,{slots:t,emit:n}){const r=et(Xj),i=u=>{n("click",u)},{onClick:s,onMousedown:o,onMouseup:a}=WS(e.customMaskEvent?void 0:i);return()=>e.mask?z("div",{class:[r.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:s,onMousedown:o,onMouseup:a},[je(t,"default")],Sf.STYLE|Sf.CLASS|Sf.PROPS,["onClick","onMouseup","onMousedown"]):Ge("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[je(t,"default")])}});const T2=Jj,A2=Symbol("dialogInjectionKey"),P2=Nt({center:{type:Boolean,default:!1},alignCenter:{type:Boolean,default:!1},closeIcon:{type:Qr},customClass:{type:String,default:""},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},title:{type:String,default:""}}),Zj={close:()=>!0},Qj=["aria-label"],e9=["id"],t9=De({name:"ElDialogContent"}),n9=De({...t9,props:P2,emits:Zj,setup(e){const t=e,{t:n}=Go(),{Close:r}=M6,{dialogRef:i,headerRef:s,bodyId:o,ns:a,style:u}=qe(A2),{focusTrapRef:c}=qe(i2),d=A6(c,i),h=H(()=>t.draggable);return F6(i,s,h),(g,m)=>(K(),_e("div",{ref:O(d),class:be([O(a).b(),O(a).is("fullscreen",g.fullscreen),O(a).is("draggable",O(h)),O(a).is("align-center",g.alignCenter),{[O(a).m("center")]:g.center},g.customClass]),style:Vt(O(u)),tabindex:"-1"},[L("header",{ref_key:"headerRef",ref:s,class:be(O(a).e("header"))},[je(g.$slots,"header",{},()=>[L("span",{role:"heading",class:be(O(a).e("title"))},wt(g.title),3)]),g.showClose?(K(),_e("button",{key:0,"aria-label":O(n)("el.dialog.close"),class:be(O(a).e("headerbtn")),type:"button",onClick:m[0]||(m[0]=b=>g.$emit("close"))},[z(O(kn),{class:be(O(a).e("close"))},{default:D(()=>[(K(),Ae(Vn(g.closeIcon||O(r))))]),_:1},8,["class"])],10,Qj)):$e("v-if",!0)],2),L("div",{id:O(o),class:be(O(a).e("body"))},[je(g.$slots,"default")],10,e9),g.$slots.footer?(K(),_e("footer",{key:0,class:be(O(a).e("footer"))},[je(g.$slots,"footer")],2)):$e("v-if",!0)],6))}});var r9=At(n9,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const R2=Nt({...P2,appendToBody:{type:Boolean,default:!1},beforeClose:{type:it(Function)},destroyOnClose:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:{type:Boolean,default:!1},modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1}}),k2={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[Rn]:e=>Qi(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},L2=(e,t)=>{const r=kt().emit,{nextZIndex:i}=cv();let s="";const o=_u(),a=_u(),u=X(!1),c=X(!1),d=X(!1),h=X(e.zIndex||i());let g,m;const b=fv("namespace",_g),v=H(()=>{const ue={},ce=`--${b.value}-dialog`;return e.fullscreen||(e.top&&(ue[`${ce}-margin-top`]=e.top),e.width&&(ue[`${ce}-width`]=es(e.width))),ue}),_=H(()=>e.alignCenter?{display:"flex"}:{});function y(){r("opened")}function C(){r("closed"),r(Rn,!1),e.destroyOnClose&&(d.value=!1)}function T(){r("close")}function x(){m==null||m(),g==null||g(),e.openDelay&&e.openDelay>0?{stop:g}=Jf(()=>R(),e.openDelay):R()}function S(){g==null||g(),m==null||m(),e.closeDelay&&e.closeDelay>0?{stop:m}=Jf(()=>$(),e.closeDelay):$()}function E(){function ue(ce){ce||(c.value=!0,u.value=!1)}e.beforeClose?e.beforeClose(ue):S()}function A(){e.closeOnClickModal&&E()}function R(){tn&&(u.value=!0)}function $(){u.value=!1}function B(){r("openAutoFocus")}function V(){r("closeAutoFocus")}function P(ue){var ce;((ce=ue.detail)==null?void 0:ce.focusReason)==="pointer"&&ue.preventDefault()}e.lockScroll&&V6(u);function j(){e.closeOnPressEscape&&E()}return Ie(()=>e.modelValue,ue=>{ue?(c.value=!1,x(),d.value=!0,h.value=e.zIndex?h.value++:i(),vt(()=>{r("open"),t.value&&(t.value.scrollTop=0)})):u.value&&S()}),Ie(()=>e.fullscreen,ue=>{t.value&&(ue?(s=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=s)}),Lt(()=>{e.modelValue&&(u.value=!0,d.value=!0,x())}),{afterEnter:y,afterLeave:C,beforeLeave:T,handleClose:E,onModalClick:A,close:S,doClose:$,onOpenAutoFocus:B,onCloseAutoFocus:V,onCloseRequested:j,onFocusoutPrevented:P,titleId:o,bodyId:a,closed:c,style:v,overlayDialogStyle:_,rendered:d,visible:u,zIndex:h}},i9=["aria-label","aria-labelledby","aria-describedby"],s9=De({name:"ElDialog",inheritAttrs:!1}),o9=De({...s9,props:R2,emits:k2,setup(e,{expose:t}){const n=e,r=Ya();zo({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},H(()=>!!r.title)),zo({scope:"el-dialog",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/dialog.html#attributes",type:"Attribute"},H(()=>!!n.customClass));const i=et("dialog"),s=X(),o=X(),a=X(),{visible:u,titleId:c,bodyId:d,style:h,overlayDialogStyle:g,rendered:m,zIndex:b,afterEnter:v,afterLeave:_,beforeLeave:y,handleClose:C,onModalClick:T,onOpenAutoFocus:x,onCloseAutoFocus:S,onCloseRequested:E,onFocusoutPrevented:A}=L2(n,s);sn(A2,{dialogRef:s,headerRef:o,bodyId:d,ns:i,rendered:m,style:h});const R=WS(T),$=H(()=>n.draggable&&!n.fullscreen);return t({visible:u,dialogContentRef:a}),(B,V)=>(K(),Ae(km,{to:"body",disabled:!B.appendToBody},[z(ii,{name:"dialog-fade",onAfterEnter:O(v),onAfterLeave:O(_),onBeforeLeave:O(y),persisted:""},{default:D(()=>[mn(z(O(T2),{"custom-mask-event":"",mask:B.modal,"overlay-class":B.modalClass,"z-index":O(b)},{default:D(()=>[L("div",{role:"dialog","aria-modal":"true","aria-label":B.title||void 0,"aria-labelledby":B.title?void 0:O(c),"aria-describedby":O(d),class:be(`${O(i).namespace.value}-overlay-dialog`),style:Vt(O(g)),onClick:V[0]||(V[0]=(...P)=>O(R).onClick&&O(R).onClick(...P)),onMousedown:V[1]||(V[1]=(...P)=>O(R).onMousedown&&O(R).onMousedown(...P)),onMouseup:V[2]||(V[2]=(...P)=>O(R).onMouseup&&O(R).onMouseup(...P))},[z(O(vv),{loop:"",trapped:O(u),"focus-start-el":"container",onFocusAfterTrapped:O(x),onFocusAfterReleased:O(S),onFocusoutPrevented:O(A),onReleaseRequested:O(E)},{default:D(()=>[O(m)?(K(),Ae(r9,Er({key:0,ref_key:"dialogContentRef",ref:a},B.$attrs,{"custom-class":B.customClass,center:B.center,"align-center":B.alignCenter,"close-icon":B.closeIcon,draggable:O($),fullscreen:B.fullscreen,"show-close":B.showClose,title:B.title,onClose:O(C)}),dC({header:D(()=>[B.$slots.title?je(B.$slots,"title",{key:1}):je(B.$slots,"header",{key:0,close:O(C),titleId:O(c),titleClass:O(i).e("title")})]),default:D(()=>[je(B.$slots,"default")]),_:2},[B.$slots.footer?{name:"footer",fn:D(()=>[je(B.$slots,"footer")])}:void 0]),1040,["custom-class","center","align-center","close-icon","draggable","fullscreen","show-close","title","onClose"])):$e("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,i9)]),_:3},8,["mask","overlay-class","z-index"]),[[si,O(u)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}});var a9=At(o9,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]]);const l9=$n(a9),u9=Nt({...R2,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0}}),c9=k2,f9=De({name:"ElDrawer",components:{ElOverlay:T2,ElFocusTrap:vv,ElIcon:kn,Close:id},inheritAttrs:!1,props:u9,emits:c9,setup(e,{slots:t}){zo({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},H(()=>!!t.title)),zo({scope:"el-drawer",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/drawer.html#attributes",type:"Attribute"},H(()=>!!e.customClass));const n=X(),r=X(),i=et("drawer"),{t:s}=Go(),o=H(()=>e.direction==="rtl"||e.direction==="ltr"),a=H(()=>es(e.size));return{...L2(e,n),drawerRef:n,focusStartRef:r,isHorizontal:o,drawerSize:a,ns:i,t:s}}}),d9=["aria-label","aria-labelledby","aria-describedby"],h9=["id"],p9=["aria-label"],g9=["id"];function m9(e,t,n,r,i,s){const o=Yt("close"),a=Yt("el-icon"),u=Yt("el-focus-trap"),c=Yt("el-overlay");return K(),Ae(km,{to:"body",disabled:!e.appendToBody},[z(ii,{name:e.ns.b("fade"),onAfterEnter:e.afterEnter,onAfterLeave:e.afterLeave,onBeforeLeave:e.beforeLeave,persisted:""},{default:D(()=>[mn(z(c,{mask:e.modal,"overlay-class":e.modalClass,"z-index":e.zIndex,onClick:e.onModalClick},{default:D(()=>[z(u,{loop:"",trapped:e.visible,"focus-trap-el":e.drawerRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:D(()=>[L("div",Er({ref:"drawerRef","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:e.titleId,"aria-describedby":e.bodyId},e.$attrs,{class:[e.ns.b(),e.direction,e.visible&&"open",e.customClass],style:e.isHorizontal?"width: "+e.drawerSize:"height: "+e.drawerSize,role:"dialog",onClick:t[1]||(t[1]=xr(()=>{},["stop"]))}),[L("span",{ref:"focusStartRef",class:be(e.ns.e("sr-focus")),tabindex:"-1"},null,2),e.withHeader?(K(),_e("header",{key:0,class:be(e.ns.e("header"))},[e.$slots.title?je(e.$slots,"title",{key:1},()=>[$e(" DEPRECATED SLOT ")]):je(e.$slots,"header",{key:0,close:e.handleClose,titleId:e.titleId,titleClass:e.ns.e("title")},()=>[e.$slots.title?$e("v-if",!0):(K(),_e("span",{key:0,id:e.titleId,role:"heading",class:be(e.ns.e("title"))},wt(e.title),11,h9))]),e.showClose?(K(),_e("button",{key:2,"aria-label":e.t("el.drawer.close"),class:be(e.ns.e("close-btn")),type:"button",onClick:t[0]||(t[0]=(...d)=>e.handleClose&&e.handleClose(...d))},[z(a,{class:be(e.ns.e("close"))},{default:D(()=>[z(o)]),_:1},8,["class"])],10,p9)):$e("v-if",!0)],2)):$e("v-if",!0),e.rendered?(K(),_e("div",{key:1,id:e.bodyId,class:be(e.ns.e("body"))},[je(e.$slots,"default")],10,g9)):$e("v-if",!0),e.$slots.footer?(K(),_e("div",{key:2,class:be(e.ns.e("footer"))},[je(e.$slots,"footer")],2)):$e("v-if",!0)],16,d9)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[si,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"])}var v9=At(f9,[["render",m9],["__file","/home/runner/work/element-plus/element-plus/packages/components/drawer/src/drawer.vue"]]);const b9=$n(v9);let y9=class{constructor(t,n){this.parent=t,this.domNode=n,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(t){t===this.subMenuItems.length?t=0:t<0&&(t=this.subMenuItems.length-1),this.subMenuItems[t].focus(),this.subIndex=t}addListeners(){const t=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,n=>{n.addEventListener("keydown",r=>{let i=!1;switch(r.code){case Wn.down:{this.gotoSubIndex(this.subIndex+1),i=!0;break}case Wn.up:{this.gotoSubIndex(this.subIndex-1),i=!0;break}case Wn.tab:{wf(t,"mouseleave");break}case Wn.enter:case Wn.space:{i=!0,r.currentTarget.click();break}}return i&&(r.preventDefault(),r.stopPropagation()),!1})})}},_9=class{constructor(t,n){this.domNode=t,this.submenu=null,this.submenu=null,this.init(n)}init(t){this.domNode.setAttribute("tabindex","0");const n=this.domNode.querySelector(`.${t}-menu`);n&&(this.submenu=new y9(this,n)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{let n=!1;switch(t.code){case Wn.down:{wf(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),n=!0;break}case Wn.up:{wf(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),n=!0;break}case Wn.tab:{wf(t.currentTarget,"mouseleave");break}case Wn.enter:case Wn.space:{n=!0,t.currentTarget.click();break}}n&&t.preventDefault()})}},w9=class{constructor(t,n){this.domNode=t,this.init(n)}init(t){const n=this.domNode.childNodes;Array.from(n).forEach(r=>{r.nodeType===1&&new _9(r,t)})}};const x9=De({name:"ElMenuCollapseTransition",setup(){const e=et("menu");return{listeners:{onBeforeEnter:n=>n.style.opacity="0.2",onEnter(n,r){Mo(n,`${e.namespace.value}-opacity-transition`),n.style.opacity="1",r()},onAfterEnter(n){$o(n,`${e.namespace.value}-opacity-transition`),n.style.opacity=""},onBeforeLeave(n){n.dataset||(n.dataset={}),Io(n,e.m("collapse"))?($o(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),Mo(n,e.m("collapse"))):(Mo(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),$o(n,e.m("collapse"))),n.style.width=`${n.scrollWidth}px`,n.style.overflow="hidden"},onLeave(n){Mo(n,"horizontal-collapse-transition"),n.style.width=`${n.dataset.scrollWidth}px`}}}}});function C9(e,t,n,r,i,s){return K(),Ae(ii,Er({mode:"out-in"},e.listeners),{default:D(()=>[je(e.$slots,"default")]),_:3},16)}var S9=At(x9,[["render",C9],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-collapse-transition.vue"]]);function I2(e,t){const n=H(()=>{let i=e.parent;const s=[t.value];for(;i.type.name!=="ElMenu";)i.props.index&&s.unshift(i.props.index),i=i.parent;return s});return{parentMenu:H(()=>{let i=e.parent;for(;i&&!["ElMenu","ElSubMenu"].includes(i.type.name);)i=i.parent;return i}),indexPath:n}}function O9(e){return H(()=>{const n=e.backgroundColor;return n?new c2(n).shade(20).toString():""})}const $2=(e,t)=>{const n=et("menu");return H(()=>n.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":O9(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},E9=Nt({index:{type:String,required:!0},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},popperClass:String,disabled:Boolean,popperAppendToBody:{type:Boolean,default:void 0},teleported:{type:Boolean,default:void 0},popperOffset:{type:Number,default:6},expandCloseIcon:{type:Qr},expandOpenIcon:{type:Qr},collapseCloseIcon:{type:Qr},collapseOpenIcon:{type:Qr}}),ef="ElSubMenu";var _v=De({name:ef,props:E9,setup(e,{slots:t,expose:n}){zo({from:"popper-append-to-body",replacement:"teleported",scope:ef,version:"2.3.0",ref:"https://element-plus.org/en-US/component/menu.html#submenu-attributes"},H(()=>e.popperAppendToBody!==void 0));const r=kt(),{indexPath:i,parentMenu:s}=I2(r,H(()=>e.index)),o=et("menu"),a=et("sub-menu"),u=qe("rootMenu");u||Us(ef,"can not inject root menu");const c=qe(`subMenu:${s.value.uid}`);c||Us(ef,"can not inject sub menu");const d=X({}),h=X({});let g;const m=X(!1),b=X(),v=X(null),_=H(()=>V.value==="horizontal"&&C.value?"bottom-start":"right-start"),y=H(()=>V.value==="horizontal"&&C.value||V.value==="vertical"&&!u.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?E.value?e.expandOpenIcon:e.expandCloseIcon:Jm:e.collapseCloseIcon&&e.collapseOpenIcon?E.value?e.collapseOpenIcon:e.collapseCloseIcon:Zm),C=H(()=>c.level===0),T=H(()=>{var ye;const Ee=(ye=e.teleported)!=null?ye:e.popperAppendToBody;return Ee===void 0?C.value:Ee}),x=H(()=>u.props.collapse?`${o.namespace.value}-zoom-in-left`:`${o.namespace.value}-zoom-in-top`),S=H(()=>V.value==="horizontal"&&C.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","left-start","bottom-start","bottom-end","top-start","top-end"]),E=H(()=>u.openedMenus.includes(e.index)),A=H(()=>{let ye=!1;return Object.values(d.value).forEach(Ee=>{Ee.active&&(ye=!0)}),Object.values(h.value).forEach(Ee=>{Ee.active&&(ye=!0)}),ye}),R=H(()=>u.props.backgroundColor||""),$=H(()=>u.props.activeTextColor||""),B=H(()=>u.props.textColor||""),V=H(()=>u.props.mode),P=vn({index:e.index,indexPath:i,active:A}),j=$2(u.props,c.level+1),ue=H(()=>V.value!=="horizontal"?{color:B.value}:{borderBottomColor:A.value?u.props.activeTextColor?$.value:"":"transparent",color:A.value?$.value:B.value}),ce=()=>{var ye,Ee,ke;return(ke=(Ee=(ye=v.value)==null?void 0:ye.popperRef)==null?void 0:Ee.popperInstanceRef)==null?void 0:ke.destroy()},ne=ye=>{ye||ce()},Q=()=>{u.props.menuTrigger==="hover"&&u.props.mode==="horizontal"||u.props.collapse&&u.props.mode==="vertical"||e.disabled||u.handleSubMenuClick({index:e.index,indexPath:i.value,active:A.value})},ie=(ye,Ee=e.showTimeout)=>{var ke;ye.type!=="focus"&&(u.props.menuTrigger==="click"&&u.props.mode==="horizontal"||!u.props.collapse&&u.props.mode==="vertical"||e.disabled||(c.mouseInChild.value=!0,g==null||g(),{stop:g}=Jf(()=>{u.openMenu(e.index,i.value)},Ee),T.value&&((ke=s.value.vnode.el)==null||ke.dispatchEvent(new MouseEvent("mouseenter")))))},ee=(ye=!1)=>{var Ee,ke;u.props.menuTrigger==="click"&&u.props.mode==="horizontal"||!u.props.collapse&&u.props.mode==="vertical"||(g==null||g(),c.mouseInChild.value=!1,{stop:g}=Jf(()=>!m.value&&u.closeMenu(e.index,i.value),e.hideTimeout),T.value&&ye&&((Ee=r.parent)==null?void 0:Ee.type.name)==="ElSubMenu"&&((ke=c.handleMouseleave)==null||ke.call(c,!0)))};Ie(()=>u.props.collapse,ye=>ne(!!ye));{const ye=ke=>{h.value[ke.index]=ke},Ee=ke=>{delete h.value[ke.index]};sn(`subMenu:${r.uid}`,{addSubMenu:ye,removeSubMenu:Ee,handleMouseleave:ee,mouseInChild:m,level:c.level+1})}return n({opened:E}),Lt(()=>{u.addSubMenu(P),c.addSubMenu(P)}),Mn(()=>{c.removeSubMenu(P),u.removeSubMenu(P)}),()=>{var ye;const Ee=[(ye=t.title)==null?void 0:ye.call(t),Ge(kn,{class:a.e("icon-arrow"),style:{transform:E.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&u.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>gt(y.value)?Ge(r.appContext.components[y.value]):Ge(y.value)})],ke=u.isMenuPopup?Ge(Wd,{ref:v,visible:E.value,effect:"light",pure:!0,offset:e.popperOffset,showArrow:!1,persistent:!0,popperClass:e.popperClass,placement:_.value,teleported:T.value,fallbackPlacements:S.value,transition:x.value,gpuAcceleration:!1},{content:()=>{var Ze;return Ge("div",{class:[o.m(V.value),o.m("popup-container"),e.popperClass],onMouseenter:le=>ie(le,100),onMouseleave:()=>ee(!0),onFocus:le=>ie(le,100)},[Ge("ul",{class:[o.b(),o.m("popup"),o.m(`popup-${_.value}`)],style:j.value},[(Ze=t.default)==null?void 0:Ze.call(t)])])},default:()=>Ge("div",{class:a.e("title"),style:[ue.value,{backgroundColor:R.value}],onClick:Q},Ee)}):Ge(ot,{},[Ge("div",{class:a.e("title"),style:[ue.value,{backgroundColor:R.value}],ref:b,onClick:Q},Ee),Ge(qj,{},{default:()=>{var Ze;return mn(Ge("ul",{role:"menu",class:[o.b(),o.m("inline")],style:j.value},[(Ze=t.default)==null?void 0:Ze.call(t)]),[[si,E.value]])}})]);return Ge("li",{class:[a.b(),a.is("active",A.value),a.is("opened",E.value),a.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:E.value,onMouseenter:ie,onMouseleave:()=>ee(!0),onFocus:ie},[ke])}}});const M9=Nt({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:it(Array),default:()=>So([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperEffect:{type:String,values:["dark","light"],default:"dark"}}),Tp=e=>Array.isArray(e)&&e.every(t=>gt(t)),T9={close:(e,t)=>gt(e)&&Tp(t),open:(e,t)=>gt(e)&&Tp(t),select:(e,t,n,r)=>gt(e)&&Tp(t)&&bt(n)&&(r===void 0||r instanceof Promise)};var A9=De({name:"ElMenu",props:M9,emits:T9,setup(e,{emit:t,slots:n,expose:r}){const i=kt(),s=i.appContext.config.globalProperties.$router,o=X(),a=et("menu"),u=et("sub-menu"),c=X(-1),d=X(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),h=X(e.defaultActive),g=X({}),m=X({}),b=H(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),v=()=>{const V=h.value&&g.value[h.value];if(!V||e.mode==="horizontal"||e.collapse)return;V.indexPath.forEach(j=>{const ue=m.value[j];ue&&_(j,ue.indexPath)})},_=(V,P)=>{d.value.includes(V)||(e.uniqueOpened&&(d.value=d.value.filter(j=>P.includes(j))),d.value.push(V),t("open",V,P))},y=V=>{const P=d.value.indexOf(V);P!==-1&&d.value.splice(P,1)},C=(V,P)=>{y(V),t("close",V,P)},T=({index:V,indexPath:P})=>{d.value.includes(V)?C(V,P):_(V,P)},x=V=>{(e.mode==="horizontal"||e.collapse)&&(d.value=[]);const{index:P,indexPath:j}=V;if(!(Pa(P)||Pa(j)))if(e.router&&s){const ue=V.route||P,ce=s.push(ue).then(ne=>(ne||(h.value=P),ne));t("select",P,j,{index:P,indexPath:j,route:ue},ce)}else h.value=P,t("select",P,j,{index:P,indexPath:j})},S=V=>{const P=g.value,j=P[V]||h.value&&P[h.value]||P[e.defaultActive];j?h.value=j.index:h.value=V},E=()=>{var V,P;if(!o.value)return-1;const j=Array.from((P=(V=o.value)==null?void 0:V.childNodes)!=null?P:[]).filter(ye=>ye.nodeName!=="#comment"&&(ye.nodeName!=="#text"||ye.nodeValue)),ue=64,ce=Number.parseInt(getComputedStyle(o.value).paddingLeft,10),ne=Number.parseInt(getComputedStyle(o.value).paddingRight,10),Q=o.value.clientWidth-ce-ne;let ie=0,ee=0;return j.forEach((ye,Ee)=>{ie+=ye.offsetWidth||0,ie<=Q-ue&&(ee=Ee+1)}),ee===j.length?-1:ee},A=(V,P=33.34)=>{let j;return()=>{j&&clearTimeout(j),j=setTimeout(()=>{V()},P)}};let R=!0;const $=()=>{const V=()=>{c.value=-1,vt(()=>{c.value=E()})};R?V():A(V)(),R=!1};Ie(()=>e.defaultActive,V=>{g.value[V]||(h.value=""),S(V)}),Ie(()=>e.collapse,V=>{V&&(d.value=[])}),Ie(g.value,v);let B;Ns(()=>{e.mode==="horizontal"&&e.ellipsis?B=js(o,$).stop:B==null||B()});{const V=ce=>{m.value[ce.index]=ce},P=ce=>{delete m.value[ce.index]};sn("rootMenu",vn({props:e,openedMenus:d,items:g,subMenus:m,activeIndex:h,isMenuPopup:b,addMenuItem:ce=>{g.value[ce.index]=ce},removeMenuItem:ce=>{delete g.value[ce.index]},addSubMenu:V,removeSubMenu:P,openMenu:_,closeMenu:C,handleMenuItemClick:x,handleSubMenuClick:T})),sn(`subMenu:${i.uid}`,{addSubMenu:V,removeSubMenu:P,mouseInChild:X(!1),level:0})}return Lt(()=>{e.mode==="horizontal"&&new w9(i.vnode.el,a.namespace.value)}),r({open:P=>{const{indexPath:j}=m.value[P];j.forEach(ue=>_(ue,j))},close:y,handleResize:$}),()=>{var V,P;let j=(P=(V=n.default)==null?void 0:V.call(n))!=null?P:[];const ue=[];if(e.mode==="horizontal"&&o.value){const Q=Of(j),ie=c.value===-1?Q:Q.slice(0,c.value),ee=c.value===-1?[]:Q.slice(c.value);ee!=null&&ee.length&&e.ellipsis&&(j=ie,ue.push(Ge(_v,{index:"sub-menu-more",class:u.e("hide-arrow")},{title:()=>Ge(kn,{class:u.e("icon-more")},{default:()=>Ge(y6)}),default:()=>ee})))}const ce=$2(e,0),ne=Ge("ul",{key:String(e.collapse),role:"menubar",ref:o,style:ce.value,class:{[a.b()]:!0,[a.m(e.mode)]:!0,[a.m("collapse")]:e.collapse}},[...j,...ue]);return e.collapseTransition&&e.mode==="vertical"?Ge(S9,()=>ne):ne}}});const P9=Nt({index:{type:it([String,null]),default:null},route:{type:it([String,Object])},disabled:Boolean}),R9={click:e=>gt(e.index)&&Array.isArray(e.indexPath)},Ap="ElMenuItem",k9=De({name:Ap,components:{ElTooltip:Wd},props:P9,emits:R9,setup(e,{emit:t}){const n=kt(),r=qe("rootMenu"),i=et("menu"),s=et("menu-item");r||Us(Ap,"can not inject root menu");const{parentMenu:o,indexPath:a}=I2(n,Dr(e,"index")),u=qe(`subMenu:${o.value.uid}`);u||Us(Ap,"can not inject sub menu");const c=H(()=>e.index===r.activeIndex),d=vn({index:e.index,indexPath:a,active:c}),h=()=>{e.disabled||(r.handleMenuItemClick({index:e.index,indexPath:a.value,route:e.route}),t("click",d))};return Lt(()=>{u.addSubMenu(d),r.addMenuItem(d)}),Mn(()=>{u.removeSubMenu(d),r.removeMenuItem(d)}),{parentMenu:o,rootMenu:r,active:c,nsMenu:i,nsMenuItem:s,handleClick:h}}});function L9(e,t,n,r,i,s){const o=Yt("el-tooltip");return K(),_e("li",{class:be([e.nsMenuItem.b(),e.nsMenuItem.is("active",e.active),e.nsMenuItem.is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:t[0]||(t[0]=(...a)=>e.handleClick&&e.handleClick(...a))},[e.parentMenu.type.name==="ElMenu"&&e.rootMenu.props.collapse&&e.$slots.title?(K(),Ae(o,{key:0,effect:e.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:D(()=>[je(e.$slots,"title")]),default:D(()=>[L("div",{class:be(e.nsMenu.be("tooltip","trigger"))},[je(e.$slots,"default")],2)]),_:3},8,["effect"])):(K(),_e(ot,{key:1},[je(e.$slots,"default"),je(e.$slots,"title")],64))],2)}var F2=At(k9,[["render",L9],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item.vue"]]);const I9={title:String},$9="ElMenuItemGroup",F9=De({name:$9,props:I9,setup(){return{ns:et("menu-item-group")}}});function D9(e,t,n,r,i,s){return K(),_e("li",{class:be(e.ns.b())},[L("div",{class:be(e.ns.e("title"))},[e.$slots.title?je(e.$slots,"title",{key:1}):(K(),_e(ot,{key:0},[Z(wt(e.title),1)],64))],2),L("ul",null,[je(e.$slots,"default")])],2)}var D2=At(F9,[["render",D9],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item-group.vue"]]);const N9=$n(A9,{MenuItem:F2,MenuItemGroup:D2,SubMenu:_v}),B9=Oi(F2);Oi(D2);Oi(_v);const N2=Symbol("ElSelectGroup"),Vd=Symbol("ElSelect");function z9(e,t){const n=qe(Vd),r=qe(N2,{disabled:!1}),i=H(()=>Object.prototype.toString.call(e.value).toLowerCase()==="[object object]"),s=H(()=>n.props.multiple?h(n.props.modelValue,e.value):g(e.value,n.props.modelValue)),o=H(()=>{if(n.props.multiple){const v=n.props.modelValue||[];return!s.value&&v.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),a=H(()=>e.label||(i.value?"":e.value)),u=H(()=>e.value||e.label||""),c=H(()=>e.disabled||t.groupDisabled||o.value),d=kt(),h=(v=[],_)=>{if(i.value){const y=n.props.valueKey;return v&&v.some(C=>ut(zn(C,y))===zn(_,y))}else return v&&v.includes(_)},g=(v,_)=>{if(i.value){const{valueKey:y}=n.props;return zn(v,y)===zn(_,y)}else return v===_},m=()=>{!e.disabled&&!r.disabled&&(n.hoverIndex=n.optionsArray.indexOf(d.proxy))};Ie(()=>a.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),Ie(()=>e.value,(v,_)=>{const{remote:y,valueKey:C}=n.props;if(Object.is(v,_)||(n.onOptionDestroy(_,d.proxy),n.onOptionCreate(d.proxy)),!e.created&&!y){if(C&&typeof v=="object"&&typeof _=="object"&&v[C]===_[C])return;n.setSelected()}}),Ie(()=>r.disabled,()=>{t.groupDisabled=r.disabled},{immediate:!0});const{queryChange:b}=ut(n);return Ie(b,v=>{const{query:_}=O(v),y=new RegExp(b5(_),"i");t.visible=y.test(a.value)||e.created,t.visible||n.filteredOptionsCount--},{immediate:!0}),{select:n,currentLabel:a,currentValue:u,itemSelected:s,isDisabled:c,hoverItem:m}}const H9=De({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},setup(e){const t=et("select"),n=vn({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:r,itemSelected:i,isDisabled:s,select:o,hoverItem:a}=z9(e,n),{visible:u,hover:c}=Gs(n),d=kt().proxy;o.onOptionCreate(d),Mn(()=>{const g=d.value,{selected:m}=o,v=(o.props.multiple?m:[m]).some(_=>_.value===d.value);vt(()=>{o.cachedOptions.get(g)===d&&!v&&o.cachedOptions.delete(g)}),o.onOptionDestroy(g,d)});function h(){e.disabled!==!0&&n.groupDisabled!==!0&&o.handleOptionSelect(d,!0)}return{ns:t,currentLabel:r,itemSelected:i,isDisabled:s,select:o,hoverItem:a,visible:u,hover:c,selectOptionClick:h,states:n}}});function W9(e,t,n,r,i,s){return mn((K(),_e("li",{class:be([e.ns.be("dropdown","item"),e.ns.is("disabled",e.isDisabled),{selected:e.itemSelected,hover:e.hover}]),onMouseenter:t[0]||(t[0]=(...o)=>e.hoverItem&&e.hoverItem(...o)),onClick:t[1]||(t[1]=xr((...o)=>e.selectOptionClick&&e.selectOptionClick(...o),["stop"]))},[je(e.$slots,"default",{},()=>[L("span",null,wt(e.currentLabel),1)])],34)),[[si,e.visible]])}var wv=At(H9,[["render",W9],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]);const V9=De({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=qe(Vd),t=et("select"),n=H(()=>e.props.popperClass),r=H(()=>e.props.multiple),i=H(()=>e.props.fitInputWidth),s=X("");function o(){var a;s.value=`${(a=e.selectWrapper)==null?void 0:a.offsetWidth}px`}return Lt(()=>{o(),js(e.selectWrapper,o)}),{ns:t,minWidth:s,popperClass:n,isMultiple:r,isFitInputWidth:i}}});function j9(e,t,n,r,i,s){return K(),_e("div",{class:be([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:Vt({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[je(e.$slots,"default")],6)}var U9=At(V9,[["render",j9],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]);function K9(e){const{t}=Go();return vn({options:new Map,cachedOptions:new Map,createdLabel:null,createdSelected:!1,selected:e.multiple?[]:{},inputLength:20,inputWidth:0,optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,cachedPlaceHolder:"",currentPlaceholder:t("el.select.placeholder"),menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1,prefixWidth:11,tagInMultiLine:!1,mouseEnter:!1})}const q9=(e,t,n)=>{const{t:r}=Go(),i=et("select");zo({from:"suffixTransition",replacement:"override style scheme",version:"2.3.0",scope:"props",ref:"https://element-plus.org/en-US/component/select.html#select-attributes"},H(()=>e.suffixTransition===!1));const s=X(null),o=X(null),a=X(null),u=X(null),c=X(null),d=X(null),h=X(null),g=X(-1),m=Fs({query:""}),b=Fs(""),v=X([]);let _=0;const{form:y,formItem:C}=Qa(),T=H(()=>!e.filterable||e.multiple||!t.visible),x=H(()=>e.disabled||(y==null?void 0:y.disabled)),S=H(()=>{const te=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:e.modelValue!==void 0&&e.modelValue!==null&&e.modelValue!=="";return e.clearable&&!x.value&&t.inputHovering&&te}),E=H(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),A=H(()=>i.is("reverse",E.value&&t.visible&&e.suffixTransition)),R=H(()=>e.remote?300:0),$=H(()=>e.loading?e.loadingText||r("el.select.loading"):e.remote&&t.query===""&&t.options.size===0?!1:e.filterable&&t.query&&t.options.size>0&&t.filteredOptionsCount===0?e.noMatchText||r("el.select.noMatch"):t.options.size===0?e.noDataText||r("el.select.noData"):null),B=H(()=>{const te=Array.from(t.options.values()),we=[];return v.value.forEach(Xe=>{const ft=te.findIndex(nn=>nn.currentLabel===Xe);ft>-1&&we.push(te[ft])}),we.length?we:te}),V=H(()=>Array.from(t.cachedOptions.values())),P=H(()=>{const te=B.value.filter(we=>!we.created).some(we=>we.currentLabel===t.query);return e.filterable&&e.allowCreate&&t.query!==""&&!te}),j=ns(),ue=H(()=>["small"].includes(j.value)?"small":"default"),ce=H({get(){return t.visible&&$.value!==!1},set(te){t.visible=te}});Ie([()=>x.value,()=>j.value,()=>y==null?void 0:y.size],()=>{vt(()=>{ne()})}),Ie(()=>e.placeholder,te=>{t.cachedPlaceHolder=t.currentPlaceholder=te,e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(t.currentPlaceholder="")}),Ie(()=>e.modelValue,(te,we)=>{e.multiple&&(ne(),te&&te.length>0||o.value&&t.query!==""?t.currentPlaceholder="":t.currentPlaceholder=t.cachedPlaceHolder,e.filterable&&!e.reserveKeyword&&(t.query="",Q(t.query))),ye(),e.filterable&&!e.multiple&&(t.inputLength=20),!bg(te,we)&&e.validateEvent&&(C==null||C.validate("change").catch(Xe=>void 0))},{flush:"post",deep:!0}),Ie(()=>t.visible,te=>{var we,Xe,ft,nn,an;te?((Xe=(we=u.value)==null?void 0:we.updatePopper)==null||Xe.call(we),e.filterable&&(t.filteredOptionsCount=t.optionsCount,t.query=e.remote?"":t.selectedLabel,(nn=(ft=a.value)==null?void 0:ft.focus)==null||nn.call(ft),e.multiple?(an=o.value)==null||an.focus():t.selectedLabel&&(t.currentPlaceholder=`${t.selectedLabel}`,t.selectedLabel=""),Q(t.query),!e.multiple&&!e.remote&&(m.value.query="",bl(m),bl(b)))):(e.filterable&&(Je(e.filterMethod)&&e.filterMethod(""),Je(e.remoteMethod)&&e.remoteMethod("")),o.value&&o.value.blur(),t.query="",t.previousQuery=null,t.selectedLabel="",t.inputLength=20,t.menuVisibleOnFocus=!1,ke(),vt(()=>{o.value&&o.value.value===""&&t.selected.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)}),e.multiple||(t.selected&&(e.filterable&&e.allowCreate&&t.createdSelected&&t.createdLabel?t.selectedLabel=t.createdLabel:t.selectedLabel=t.selected.currentLabel,e.filterable&&(t.query=t.selectedLabel)),e.filterable&&(t.currentPlaceholder=t.cachedPlaceHolder))),n.emit("visible-change",te)}),Ie(()=>t.options.entries(),()=>{var te,we,Xe;if(!tn)return;(we=(te=u.value)==null?void 0:te.updatePopper)==null||we.call(te),e.multiple&&ne();const ft=((Xe=d.value)==null?void 0:Xe.querySelectorAll("input"))||[];Array.from(ft).includes(document.activeElement)||ye(),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&ee()},{flush:"post"}),Ie(()=>t.hoverIndex,te=>{jn(te)&&te>-1?g.value=B.value[te]||{}:g.value={},B.value.forEach(we=>{we.hover=g.value===we})});const ne=()=>{vt(()=>{var te,we;if(!s.value)return;const Xe=s.value.$el.querySelector("input");_=_||(Xe.clientHeight>0?Xe.clientHeight+2:0);const ft=c.value,nn=R6(j.value||(y==null?void 0:y.size)),an=j.value||nn===_||_<=0?nn:_;!(Xe.offsetParent===null)&&(Xe.style.height=`${(t.selected.length===0?an:Math.max(ft?ft.clientHeight+(ft.clientHeight>an?6:0):0,an))-2}px`),t.tagInMultiLine=Number.parseFloat(Xe.style.height)>=an,t.visible&&$.value!==!1&&((we=(te=u.value)==null?void 0:te.updatePopper)==null||we.call(te))})},Q=async te=>{if(!(t.previousQuery===te||t.isOnComposition)){if(t.previousQuery===null&&(Je(e.filterMethod)||Je(e.remoteMethod))){t.previousQuery=te;return}t.previousQuery=te,vt(()=>{var we,Xe;t.visible&&((Xe=(we=u.value)==null?void 0:we.updatePopper)==null||Xe.call(we))}),t.hoverIndex=-1,e.multiple&&e.filterable&&vt(()=>{const we=o.value.value.length*15+20;t.inputLength=e.collapseTags?Math.min(50,we):we,ie(),ne()}),e.remote&&Je(e.remoteMethod)?(t.hoverIndex=-1,e.remoteMethod(te)):Je(e.filterMethod)?(e.filterMethod(te),bl(b)):(t.filteredOptionsCount=t.optionsCount,m.value.query=te,bl(m),bl(b)),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&(await vt(),ee())}},ie=()=>{t.currentPlaceholder!==""&&(t.currentPlaceholder=o.value.value?"":t.cachedPlaceHolder)},ee=()=>{const te=B.value.filter(ft=>ft.visible&&!ft.disabled&&!ft.states.groupDisabled),we=te.find(ft=>ft.created),Xe=te[0];t.hoverIndex=W(B.value,we||Xe)},ye=()=>{var te;if(e.multiple)t.selectedLabel="";else{const Xe=Ee(e.modelValue);(te=Xe.props)!=null&&te.created?(t.createdLabel=Xe.props.value,t.createdSelected=!0):t.createdSelected=!1,t.selectedLabel=Xe.currentLabel,t.selected=Xe,e.filterable&&(t.query=t.selectedLabel);return}const we=[];Array.isArray(e.modelValue)&&e.modelValue.forEach(Xe=>{we.push(Ee(Xe))}),t.selected=we,vt(()=>{ne()})},Ee=te=>{let we;const Xe=mf(te).toLowerCase()==="object",ft=mf(te).toLowerCase()==="null",nn=mf(te).toLowerCase()==="undefined";for(let Vr=t.cachedOptions.size-1;Vr>=0;Vr--){const Zn=V.value[Vr];if(Xe?zn(Zn.value,e.valueKey)===zn(te,e.valueKey):Zn.value===te){we={value:te,currentLabel:Zn.currentLabel,isDisabled:Zn.isDisabled};break}}if(we)return we;const an=Xe?te.label:!ft&&!nn?te:"",dr={value:te,currentLabel:an};return e.multiple&&(dr.hitState=!1),dr},ke=()=>{setTimeout(()=>{const te=e.valueKey;e.multiple?t.selected.length>0?t.hoverIndex=Math.min.apply(null,t.selected.map(we=>B.value.findIndex(Xe=>zn(Xe,te)===zn(we,te)))):t.hoverIndex=-1:t.hoverIndex=B.value.findIndex(we=>Le(we)===Le(t.selected))},300)},Ze=()=>{var te,we;le(),(we=(te=u.value)==null?void 0:te.updatePopper)==null||we.call(te),e.multiple&&ne()},le=()=>{var te;t.inputWidth=(te=s.value)==null?void 0:te.$el.offsetWidth},Ye=()=>{e.filterable&&t.query!==t.selectedLabel&&(t.query=t.selectedLabel,Q(t.query))},Ne=Aa(()=>{Ye()},R.value),Y=Aa(te=>{Q(te.target.value)},R.value),oe=te=>{bg(e.modelValue,te)||n.emit(SS,te)},de=te=>{if(te.code!==Wn.delete){if(te.target.value.length<=0&&!Se()){const we=e.modelValue.slice();we.pop(),n.emit(Rn,we),oe(we)}te.target.value.length===1&&e.modelValue.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)}},Oe=(te,we)=>{const Xe=t.selected.indexOf(we);if(Xe>-1&&!x.value){const ft=e.modelValue.slice();ft.splice(Xe,1),n.emit(Rn,ft),oe(ft),n.emit("remove-tag",we.value)}te.stopPropagation()},We=te=>{te.stopPropagation();const we=e.multiple?[]:"";if(!gt(we))for(const Xe of t.selected)Xe.isDisabled&&we.push(Xe.value);n.emit(Rn,we),oe(we),t.hoverIndex=-1,t.visible=!1,n.emit("clear")},F=(te,we)=>{var Xe;if(e.multiple){const ft=(e.modelValue||[]).slice(),nn=W(ft,te.value);nn>-1?ft.splice(nn,1):(e.multipleLimit<=0||ft.length{se(te)})},W=(te=[],we)=>{if(!bt(we))return te.indexOf(we);const Xe=e.valueKey;let ft=-1;return te.some((nn,an)=>ut(zn(nn,Xe))===zn(we,Xe)?(ft=an,!0):!1),ft},q=()=>{t.softFocus=!0;const te=o.value||s.value;te&&(te==null||te.focus())},se=te=>{var we,Xe,ft,nn,an;const dr=Array.isArray(te)?te[0]:te;let Vr=null;if(dr!=null&&dr.value){const Zn=B.value.filter(nl=>nl.value===dr.value);Zn.length>0&&(Vr=Zn[0].$el)}if(u.value&&Vr){const Zn=(nn=(ft=(Xe=(we=u.value)==null?void 0:we.popperRef)==null?void 0:Xe.contentRef)==null?void 0:ft.querySelector)==null?void 0:nn.call(ft,`.${i.be("dropdown","wrap")}`);Zn&&w5(Zn,Vr)}(an=h.value)==null||an.handleScroll()},he=te=>{t.optionsCount++,t.filteredOptionsCount++,t.options.set(te.value,te),t.cachedOptions.set(te.value,te)},ge=(te,we)=>{t.options.get(te)===we&&(t.optionsCount--,t.filteredOptionsCount--,t.options.delete(te))},Te=te=>{te.code!==Wn.backspace&&Se(!1),t.inputLength=o.value.value.length*15+20,ne()},Se=te=>{if(!Array.isArray(t.selected))return;const we=t.selected[t.selected.length-1];if(we)return te===!0||te===!1?(we.hitState=te,te):(we.hitState=!we.hitState,we.hitState)},Ce=te=>{const we=te.target.value;if(te.type==="compositionend")t.isOnComposition=!1,vt(()=>Q(we));else{const Xe=we[we.length-1]||"";t.isOnComposition=!OS(Xe)}},pe=()=>{vt(()=>se(t.selected))},Be=te=>{t.softFocus?t.softFocus=!1:((e.automaticDropdown||e.filterable)&&(e.filterable&&!t.visible&&(t.menuVisibleOnFocus=!0),t.visible=!0),n.emit("focus",te))},Pe=()=>{var te,we,Xe;t.visible=!1,(te=s.value)==null||te.blur(),(Xe=(we=a.value)==null?void 0:we.blur)==null||Xe.call(we)},re=te=>{vt(()=>{t.isSilentBlur?t.isSilentBlur=!1:n.emit("blur",te)}),t.softFocus=!1},Me=te=>{We(te)},Ue=()=>{t.visible=!1},at=te=>{t.visible&&(te.preventDefault(),te.stopPropagation(),t.visible=!1)},st=te=>{var we;te&&!t.mouseEnter||x.value||(t.menuVisibleOnFocus?t.menuVisibleOnFocus=!1:(!u.value||!u.value.isFocusInsideContent())&&(t.visible=!t.visible),t.visible&&((we=o.value||s.value)==null||we.focus()))},Bt=()=>{t.visible?B.value[t.hoverIndex]&&F(B.value[t.hoverIndex],void 0):st()},Le=te=>bt(te.value)?zn(te.value,e.valueKey):te.value,Ke=H(()=>B.value.filter(te=>te.visible).every(te=>te.disabled)),ct=H(()=>t.selected.slice(0,e.maxCollapseTags)),Qe=H(()=>t.selected.slice(e.maxCollapseTags)),xt=te=>{if(!t.visible){t.visible=!0;return}if(!(t.options.size===0||t.filteredOptionsCount===0)&&!t.isOnComposition&&!Ke.value){te==="next"?(t.hoverIndex++,t.hoverIndex===t.options.size&&(t.hoverIndex=0)):te==="prev"&&(t.hoverIndex--,t.hoverIndex<0&&(t.hoverIndex=t.options.size-1));const we=B.value[t.hoverIndex];(we.disabled===!0||we.states.groupDisabled===!0||!we.visible)&&xt(te),vt(()=>se(g.value))}};return{optionList:v,optionsArray:B,selectSize:j,handleResize:Ze,debouncedOnInputChange:Ne,debouncedQueryChange:Y,deletePrevTag:de,deleteTag:Oe,deleteSelected:We,handleOptionSelect:F,scrollToOption:se,readonly:T,resetInputHeight:ne,showClose:S,iconComponent:E,iconReverse:A,showNewOption:P,collapseTagSize:ue,setSelected:ye,managePlaceholder:ie,selectDisabled:x,emptyText:$,toggleLastOptionHitState:Se,resetInputState:Te,handleComposition:Ce,onOptionCreate:he,onOptionDestroy:ge,handleMenuEnter:pe,handleFocus:Be,blur:Pe,handleBlur:re,handleClearClick:Me,handleClose:Ue,handleKeydownEscape:at,toggleMenu:st,selectOption:Bt,getValueKey:Le,navigateOptions:xt,dropMenuVisible:ce,queryChange:m,groupQueryChange:b,showTagList:ct,collapseTagList:Qe,reference:s,input:o,iOSInput:a,tooltipRef:u,tags:c,selectWrapper:d,scrollbar:h,handleMouseEnter:()=>{t.mouseEnter=!0},handleMouseLeave:()=>{t.mouseEnter=!1}}};var Y9=De({name:"ElOptions",emits:["update-options"],setup(e,{slots:t,emit:n}){let r=[];function i(s,o){if(s.length!==o.length)return!1;for(const[a]of s.entries())if(s[a]!=o[a])return!1;return!0}return()=>{var s,o;const a=(s=t.default)==null?void 0:s.call(t),u=[];function c(d){Array.isArray(d)&&d.forEach(h=>{var g,m,b,v;const _=(g=(h==null?void 0:h.type)||{})==null?void 0:g.name;_==="ElOptionGroup"?c(!gt(h.children)&&!Array.isArray(h.children)&&Je((m=h.children)==null?void 0:m.default)?(b=h.children)==null?void 0:b.default():h.children):_==="ElOption"?u.push((v=h.props)==null?void 0:v.label):Array.isArray(h.children)&&c(h.children)})}return a.length&&c((o=a[0])==null?void 0:o.children),i(u,r)||(r=u,n("update-options",u)),a}}});const D1="ElSelect",G9=De({name:D1,componentName:D1,components:{ElInput:el,ElSelectMenu:U9,ElOption:wv,ElOptions:Y9,ElTag:Ij,ElScrollbar:hv,ElTooltip:Wd,ElIcon:kn},directives:{ClickOutside:h2},props:{name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:{type:String,validator:k6},effect:{type:String,default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},maxCollapseTags:{type:Number,default:1},teleported:yv.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:Qr,default:Qm},fitInputWidth:{type:Boolean,default:!1},suffixIcon:{type:Qr,default:Jm},tagType:{...E2.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:{type:Boolean,default:!1},suffixTransition:{type:Boolean,default:!0},placement:{type:String,values:Nd,default:"bottom-start"}},emits:[Rn,SS,"remove-tag","clear","visible-change","focus","blur"],setup(e,t){const n=et("select"),r=et("input"),{t:i}=Go(),s=K9(e),{optionList:o,optionsArray:a,selectSize:u,readonly:c,handleResize:d,collapseTagSize:h,debouncedOnInputChange:g,debouncedQueryChange:m,deletePrevTag:b,deleteTag:v,deleteSelected:_,handleOptionSelect:y,scrollToOption:C,setSelected:T,resetInputHeight:x,managePlaceholder:S,showClose:E,selectDisabled:A,iconComponent:R,iconReverse:$,showNewOption:B,emptyText:V,toggleLastOptionHitState:P,resetInputState:j,handleComposition:ue,onOptionCreate:ce,onOptionDestroy:ne,handleMenuEnter:Q,handleFocus:ie,blur:ee,handleBlur:ye,handleClearClick:Ee,handleClose:ke,handleKeydownEscape:Ze,toggleMenu:le,selectOption:Ye,getValueKey:Ne,navigateOptions:Y,dropMenuVisible:oe,reference:de,input:Oe,iOSInput:We,tooltipRef:F,tags:W,selectWrapper:q,scrollbar:se,queryChange:he,groupQueryChange:ge,handleMouseEnter:Te,handleMouseLeave:Se,showTagList:Ce,collapseTagList:pe}=q9(e,s,t),{focus:Be}=D6(de),{inputWidth:Pe,selected:re,inputLength:Me,filteredOptionsCount:Ue,visible:at,softFocus:st,selectedLabel:Bt,hoverIndex:Le,query:Ke,inputHovering:ct,currentPlaceholder:Qe,menuVisibleOnFocus:xt,isOnComposition:St,isSilentBlur:Ft,options:te,cachedOptions:we,optionsCount:Xe,prefixWidth:ft,tagInMultiLine:nn}=Gs(s),an=H(()=>{const Fn=[n.b()],Mi=O(u);return Mi&&Fn.push(n.m(Mi)),e.disabled&&Fn.push(n.m("disabled")),Fn}),dr=H(()=>({maxWidth:`${O(Pe)-32}px`,width:"100%"})),Vr=H(()=>({maxWidth:`${O(Pe)>123?O(Pe)-123:O(Pe)-75}px`}));sn(Vd,vn({props:e,options:te,optionsArray:a,cachedOptions:we,optionsCount:Xe,filteredOptionsCount:Ue,hoverIndex:Le,handleOptionSelect:y,onOptionCreate:ce,onOptionDestroy:ne,selectWrapper:q,selected:re,setSelected:T,queryChange:he,groupQueryChange:ge})),Lt(()=>{s.cachedPlaceHolder=Qe.value=e.placeholder||(()=>i("el.select.placeholder")),e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(Qe.value=""),js(q,d),e.remote&&e.multiple&&x(),vt(()=>{const Fn=de.value&&de.value.$el;if(Fn&&(Pe.value=Fn.getBoundingClientRect().width,t.slots.prefix)){const Mi=Fn.querySelector(`.${r.e("prefix")}`);ft.value=Math.max(Mi.getBoundingClientRect().width+5,30)}}),T()}),e.multiple&&!Array.isArray(e.modelValue)&&t.emit(Rn,[]),!e.multiple&&Array.isArray(e.modelValue)&&t.emit(Rn,"");const Zn=H(()=>{var Fn,Mi;return(Mi=(Fn=F.value)==null?void 0:Fn.popperRef)==null?void 0:Mi.contentRef});return{isIOS:FC,onOptionsRendered:Fn=>{o.value=Fn},tagInMultiLine:nn,prefixWidth:ft,selectSize:u,readonly:c,handleResize:d,collapseTagSize:h,debouncedOnInputChange:g,debouncedQueryChange:m,deletePrevTag:b,deleteTag:v,deleteSelected:_,handleOptionSelect:y,scrollToOption:C,inputWidth:Pe,selected:re,inputLength:Me,filteredOptionsCount:Ue,visible:at,softFocus:st,selectedLabel:Bt,hoverIndex:Le,query:Ke,inputHovering:ct,currentPlaceholder:Qe,menuVisibleOnFocus:xt,isOnComposition:St,isSilentBlur:Ft,options:te,resetInputHeight:x,managePlaceholder:S,showClose:E,selectDisabled:A,iconComponent:R,iconReverse:$,showNewOption:B,emptyText:V,toggleLastOptionHitState:P,resetInputState:j,handleComposition:ue,handleMenuEnter:Q,handleFocus:ie,blur:ee,handleBlur:ye,handleClearClick:Ee,handleClose:ke,handleKeydownEscape:Ze,toggleMenu:le,selectOption:Ye,getValueKey:Ne,navigateOptions:Y,dropMenuVisible:oe,focus:Be,reference:de,input:Oe,iOSInput:We,tooltipRef:F,popperPaneRef:Zn,tags:W,selectWrapper:q,scrollbar:se,wrapperKls:an,selectTagsStyle:dr,nsSelect:n,tagTextStyle:Vr,handleMouseEnter:Te,handleMouseLeave:Se,showTagList:Ce,collapseTagList:pe}}}),X9=["disabled","autocomplete"],J9=["disabled"],Z9={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};function Q9(e,t,n,r,i,s){const o=Yt("el-tag"),a=Yt("el-tooltip"),u=Yt("el-icon"),c=Yt("el-input"),d=Yt("el-option"),h=Yt("el-options"),g=Yt("el-scrollbar"),m=Yt("el-select-menu"),b=Mm("click-outside");return mn((K(),_e("div",{ref:"selectWrapper",class:be(e.wrapperKls),onMouseenter:t[21]||(t[21]=(...v)=>e.handleMouseEnter&&e.handleMouseEnter(...v)),onMouseleave:t[22]||(t[22]=(...v)=>e.handleMouseLeave&&e.handleMouseLeave(...v)),onClick:t[23]||(t[23]=xr((...v)=>e.toggleMenu&&e.toggleMenu(...v),["stop"]))},[z(a,{ref:"tooltipRef",visible:e.dropMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,onShow:e.handleMenuEnter},{default:D(()=>[L("div",{class:"select-trigger",onMouseenter:t[19]||(t[19]=v=>e.inputHovering=!0),onMouseleave:t[20]||(t[20]=v=>e.inputHovering=!1)},[e.multiple?(K(),_e("div",{key:0,ref:"tags",class:be([e.nsSelect.e("tags"),e.nsSelect.is("disabled",e.selectDisabled)]),style:Vt(e.selectTagsStyle)},[e.collapseTags&&e.selected.length?(K(),Ae(ii,{key:0,onAfterLeave:e.resetInputHeight},{default:D(()=>[L("span",{class:be([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[(K(!0),_e(ot,null,Pn(e.showTagList,v=>(K(),Ae(o,{key:e.getValueKey(v),closable:!e.selectDisabled&&!v.isDisabled,size:e.collapseTagSize,hit:v.hitState,type:e.tagType,"disable-transitions":"",onClose:_=>e.deleteTag(_,v)},{default:D(()=>[L("span",{class:be(e.nsSelect.e("tags-text")),style:Vt(e.tagTextStyle)},wt(v.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128)),e.selected.length>e.maxCollapseTags?(K(),Ae(o,{key:0,closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":""},{default:D(()=>[e.collapseTagsTooltip?(K(),Ae(a,{key:0,disabled:e.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:D(()=>[L("span",{class:be(e.nsSelect.e("tags-text"))},"+ "+wt(e.selected.length-e.maxCollapseTags),3)]),content:D(()=>[L("div",{class:be(e.nsSelect.e("collapse-tags"))},[(K(!0),_e(ot,null,Pn(e.collapseTagList,v=>(K(),_e("div",{key:e.getValueKey(v),class:be(e.nsSelect.e("collapse-tag"))},[z(o,{class:"in-tooltip",closable:!e.selectDisabled&&!v.isDisabled,size:e.collapseTagSize,hit:v.hitState,type:e.tagType,"disable-transitions":"",style:{margin:"2px"},onClose:_=>e.deleteTag(_,v)},{default:D(()=>[L("span",{class:be(e.nsSelect.e("tags-text")),style:Vt({maxWidth:e.inputWidth-75+"px"})},wt(v.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect","teleported"])):(K(),_e("span",{key:1,class:be(e.nsSelect.e("tags-text"))},"+ "+wt(e.selected.length-e.maxCollapseTags),3))]),_:1},8,["size","type"])):$e("v-if",!0)],2)]),_:1},8,["onAfterLeave"])):$e("v-if",!0),e.collapseTags?$e("v-if",!0):(K(),Ae(ii,{key:1,onAfterLeave:e.resetInputHeight},{default:D(()=>[L("span",{class:be([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[(K(!0),_e(ot,null,Pn(e.selected,v=>(K(),Ae(o,{key:e.getValueKey(v),closable:!e.selectDisabled&&!v.isDisabled,size:e.collapseTagSize,hit:v.hitState,type:e.tagType,"disable-transitions":"",onClose:_=>e.deleteTag(_,v)},{default:D(()=>[L("span",{class:be(e.nsSelect.e("tags-text")),style:Vt({maxWidth:e.inputWidth-75+"px"})},wt(v.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128))],2)]),_:1},8,["onAfterLeave"])),e.filterable?mn((K(),_e("input",{key:2,ref:"input","onUpdate:modelValue":t[0]||(t[0]=v=>e.query=v),type:"text",class:be([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize),e.nsSelect.is("disabled",e.selectDisabled)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:Vt({marginLeft:e.prefixWidth&&!e.selected.length||e.tagInMultiLine?`${e.prefixWidth}px`:"",flexGrow:1,width:`${e.inputLength/(e.inputWidth-32)}%`,maxWidth:`${e.inputWidth-42}px`}),onFocus:t[1]||(t[1]=(...v)=>e.handleFocus&&e.handleFocus(...v)),onBlur:t[2]||(t[2]=(...v)=>e.handleBlur&&e.handleBlur(...v)),onKeyup:t[3]||(t[3]=(...v)=>e.managePlaceholder&&e.managePlaceholder(...v)),onKeydown:[t[4]||(t[4]=(...v)=>e.resetInputState&&e.resetInputState(...v)),t[5]||(t[5]=Yr(xr(v=>e.navigateOptions("next"),["prevent"]),["down"])),t[6]||(t[6]=Yr(xr(v=>e.navigateOptions("prev"),["prevent"]),["up"])),t[7]||(t[7]=Yr((...v)=>e.handleKeydownEscape&&e.handleKeydownEscape(...v),["esc"])),t[8]||(t[8]=Yr(xr((...v)=>e.selectOption&&e.selectOption(...v),["stop","prevent"]),["enter"])),t[9]||(t[9]=Yr((...v)=>e.deletePrevTag&&e.deletePrevTag(...v),["delete"])),t[10]||(t[10]=Yr(v=>e.visible=!1,["tab"]))],onCompositionstart:t[11]||(t[11]=(...v)=>e.handleComposition&&e.handleComposition(...v)),onCompositionupdate:t[12]||(t[12]=(...v)=>e.handleComposition&&e.handleComposition(...v)),onCompositionend:t[13]||(t[13]=(...v)=>e.handleComposition&&e.handleComposition(...v)),onInput:t[14]||(t[14]=(...v)=>e.debouncedQueryChange&&e.debouncedQueryChange(...v))},null,46,X9)),[[_F,e.query]]):$e("v-if",!0)],6)):$e("v-if",!0),$e(" fix: https://github.com/element-plus/element-plus/issues/11415 "),e.isIOS&&!e.multiple&&e.filterable&&e.readonly?(K(),_e("input",{key:1,ref:"iOSInput",class:be([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize),e.nsSelect.em("input","iOS")]),disabled:e.selectDisabled,type:"text"},null,10,J9)):$e("v-if",!0),z(c,{id:e.id,ref:"reference",modelValue:e.selectedLabel,"onUpdate:modelValue":t[15]||(t[15]=v=>e.selectedLabel=v),type:"text",placeholder:typeof e.currentPlaceholder=="function"?e.currentPlaceholder():e.currentPlaceholder,name:e.name,autocomplete:e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,class:be([e.nsSelect.is("focus",e.visible)]),tabindex:e.multiple&&e.filterable?-1:void 0,onFocus:e.handleFocus,onBlur:e.handleBlur,onInput:e.debouncedOnInputChange,onPaste:e.debouncedOnInputChange,onCompositionstart:e.handleComposition,onCompositionupdate:e.handleComposition,onCompositionend:e.handleComposition,onKeydown:[t[16]||(t[16]=Yr(xr(v=>e.navigateOptions("next"),["stop","prevent"]),["down"])),t[17]||(t[17]=Yr(xr(v=>e.navigateOptions("prev"),["stop","prevent"]),["up"])),Yr(xr(e.selectOption,["stop","prevent"]),["enter"]),Yr(e.handleKeydownEscape,["esc"]),t[18]||(t[18]=Yr(v=>e.visible=!1,["tab"]))]},dC({suffix:D(()=>[e.iconComponent&&!e.showClose?(K(),Ae(u,{key:0,class:be([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:D(()=>[(K(),Ae(Vn(e.iconComponent)))]),_:1},8,["class"])):$e("v-if",!0),e.showClose&&e.clearIcon?(K(),Ae(u,{key:1,class:be([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:D(()=>[(K(),Ae(Vn(e.clearIcon)))]),_:1},8,["class","onClick"])):$e("v-if",!0)]),_:2},[e.$slots.prefix?{name:"prefix",fn:D(()=>[L("div",Z9,[je(e.$slots,"prefix")])])}:void 0]),1032,["id","modelValue","placeholder","name","autocomplete","size","disabled","readonly","class","tabindex","onFocus","onBlur","onInput","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown"])],32)]),content:D(()=>[z(m,null,{default:D(()=>[mn(z(g,{ref:"scrollbar",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:be([e.nsSelect.is("empty",!e.allowCreate&&!!e.query&&e.filteredOptionsCount===0)])},{default:D(()=>[e.showNewOption?(K(),Ae(d,{key:0,value:e.query,created:!0},null,8,["value"])):$e("v-if",!0),z(h,{onUpdateOptions:e.onOptionsRendered},{default:D(()=>[je(e.$slots,"default")]),_:3},8,["onUpdateOptions"])]),_:3},8,["wrap-class","view-class","class"]),[[si,e.options.size>0&&!e.loading]]),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&e.options.size===0)?(K(),_e(ot,{key:0},[e.$slots.empty?je(e.$slots,"empty",{key:0}):(K(),_e("p",{key:1,class:be(e.nsSelect.be("dropdown","empty"))},wt(e.emptyText),3))],64)):$e("v-if",!0)]),_:3})]),_:3},8,["visible","placement","teleported","popper-class","popper-options","effect","transition","persistent","onShow"])],34)),[[b,e.handleClose,e.popperPaneRef]])}var eU=At(G9,[["render",Q9],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]);const tU=De({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:{type:Boolean,default:!1}},setup(e){const t=et("select"),n=X(!0),r=kt(),i=X([]);sn(N2,vn({...Gs(e)}));const s=qe(Vd);Lt(()=>{i.value=o(r.subTree)});const o=u=>{const c=[];return Array.isArray(u.children)&&u.children.forEach(d=>{var h;d.type&&d.type.name==="ElOption"&&d.component&&d.component.proxy?c.push(d.component.proxy):(h=d.children)!=null&&h.length&&c.push(...o(d))}),c},{groupQueryChange:a}=ut(s);return Ie(a,()=>{n.value=i.value.some(u=>u.visible===!0)},{flush:"post"}),{visible:n,ns:t}}});function nU(e,t,n,r,i,s){return mn((K(),_e("ul",{class:be(e.ns.be("group","wrap"))},[L("li",{class:be(e.ns.be("group","title"))},wt(e.label),3),L("li",null,[L("ul",{class:be(e.ns.b("group"))},[je(e.$slots,"default")],2)])],2)),[[si,e.visible]])}var B2=At(tU,[["render",nU],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]);const z2=$n(eU,{Option:wv,OptionGroup:B2}),H2=Oi(wv);Oi(B2);/*! + * escape-html + * Copyright(c) 2012-2013 TJ Holowaychuk + * Copyright(c) 2015 Andreas Lubbe + * Copyright(c) 2015 Tiancheng "Timothy" Gu + * MIT Licensed + */var rU=/["'&<>]/,iU=sU;function sU(e){var t=""+e,n=rU.exec(t);if(!n)return t;var r,i="",s=0,o=0;for(s=n.index;stypeof c=="string"?zn(a,c):c(a,u,e))):(t!=="$key"&&bt(a)&&"$value"in a&&(a=a.$value),[bt(a)?zn(a,t):a])},o=function(a,u){if(r)return r(a.value,u.value);for(let c=0,d=a.key.length;cu.key[c])return 1}return 0};return e.map((a,u)=>({value:a,index:u,key:s?s(a,u):null})).sort((a,u)=>{let c=o(a,u);return c||(c=a.index-u.index),c*+n}).map(a=>a.value)},W2=function(e,t){let n=null;return e.columns.forEach(r=>{r.id===t&&(n=r)}),n},lU=function(e,t){let n=null;for(let r=0;r{if(!e)throw new Error("Row is required when get row identity");if(typeof t=="string"){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let r=e;for(const i of n)r=r[i];return`${r}`}else if(typeof t=="function")return t.call(null,e)},Po=function(e,t){const n={};return(e||[]).forEach((r,i)=>{n[Ln(r,t)]={row:r,index:i}}),n};function uU(e,t){const n={};let r;for(r in e)n[r]=e[r];for(r in t)if(_t(t,r)){const i=t[r];typeof i<"u"&&(n[r]=i)}return n}function xv(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function V2(e){return e===""||e!==void 0&&(e=xv(e),Number.isNaN(e)&&(e=80)),e}function cU(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function fU(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function ql(e,t,n){let r=!1;const i=e.indexOf(t),s=i!==-1,o=a=>{a==="add"?e.push(t):e.splice(i,1),r=!0,He(t.children)&&t.children.forEach(u=>{ql(e,u,n??!s)})};return Qi(n)?n&&!s?o("add"):!n&&s&&o("remove"):o(s?"remove":"add"),r}function dU(e,t,n="children",r="hasChildren"){const i=o=>!(Array.isArray(o)&&o.length);function s(o,a,u){t(o,a,u),a.forEach(c=>{if(c[r]){t(c,null,u+1);return}const d=c[n];i(d)||s(c,d,u+1)})}e.forEach(o=>{if(o[r]){t(o,null,0);return}const a=o[n];i(a)||s(o,a,0)})}let Wi;function hU(e,t,n,r,i){i=_S({enterable:!0,showArrow:!0},i);const s=e==null?void 0:e.dataset.prefix,o=e==null?void 0:e.querySelector(`.${s}-scrollbar__wrap`);function a(){const _=i.effect==="light",y=document.createElement("div");return y.className=[`${s}-popper`,_?"is-light":"is-dark",i.popperClass||""].join(" "),n=oU(n),y.innerHTML=n,y.style.zIndex=String(r()),e==null||e.appendChild(y),y}function u(){const _=document.createElement("div");return _.className=`${s}-popper__arrow`,_}function c(){d&&d.update()}Wi==null||Wi(),Wi=()=>{try{d&&d.destroy(),m&&(e==null||e.removeChild(m)),t.removeEventListener("mouseenter",h),t.removeEventListener("mouseleave",g),o==null||o.removeEventListener("scroll",Wi),Wi=void 0}catch{}};let d=null,h=c,g=Wi;i.enterable&&({onOpen:h,onClose:g}=US({showAfter:i.showAfter,hideAfter:i.hideAfter,open:c,close:Wi}));const m=a();m.onmouseenter=h,m.onmouseleave=g;const b=[];if(i.offset&&b.push({name:"offset",options:{offset:[0,i.offset]}}),i.showArrow){const _=m.appendChild(u());b.push({name:"arrow",options:{element:_,padding:10}})}const v=i.popperOptions||{};return d=HS(t,m,{placement:i.placement||"top",strategy:"fixed",...v,modifiers:v.modifiers?b.concat(v.modifiers):b}),t.addEventListener("mouseenter",h),t.addEventListener("mouseleave",g),o==null||o.addEventListener("scroll",Wi),d}function j2(e){return e.children?u5(e.children,j2):[e]}function B1(e,t){return e+t.colSpan}const U2=(e,t,n,r)=>{let i=0,s=e;const o=n.states.columns.value;if(r){const u=j2(r[e]);i=o.slice(0,o.indexOf(u[0])).reduce(B1,0),s=i+u.reduce(B1,0)-1}else i=e;let a;switch(t){case"left":s=o.length-n.states.rightFixedLeafColumnsLength.value&&(a="right");break;default:s=o.length-n.states.rightFixedLeafColumnsLength.value&&(a="right")}return a?{direction:a,start:i,after:s}:{}},Cv=(e,t,n,r,i,s=0)=>{const o=[],{direction:a,start:u,after:c}=U2(t,n,r,i);if(a){const d=a==="left";o.push(`${e}-fixed-column--${a}`),d&&c+s===r.states.fixedLeafColumnsLength.value-1?o.push("is-last-column"):!d&&u-s===r.states.columns.value.length-r.states.rightFixedLeafColumnsLength.value&&o.push("is-first-column")}return o};function z1(e,t){return e+(t.realWidth===null||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const Sv=(e,t,n,r)=>{const{direction:i,start:s=0,after:o=0}=U2(e,t,n,r);if(!i)return;const a={},u=i==="left",c=n.states.columns.value;return u?a.left=c.slice(0,s).reduce(z1,0):a.right=c.slice(o+1).reverse().reduce(z1,0),a},Na=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function pU(e){const t=kt(),n=X(!1),r=X([]);return{updateExpandRows:()=>{const u=e.data.value||[],c=e.rowKey.value;if(n.value)r.value=u.slice();else if(c){const d=Po(r.value,c);r.value=u.reduce((h,g)=>{const m=Ln(g,c);return d[m]&&h.push(g),h},[])}else r.value=[]},toggleRowExpansion:(u,c)=>{ql(r.value,u,c)&&t.emit("expand-change",u,r.value.slice())},setExpandRowKeys:u=>{t.store.assertRowKey();const c=e.data.value||[],d=e.rowKey.value,h=Po(c,d);r.value=u.reduce((g,m)=>{const b=h[m];return b&&g.push(b.row),g},[])},isRowExpanded:u=>{const c=e.rowKey.value;return c?!!Po(r.value,c)[Ln(u,c)]:r.value.includes(u)},states:{expandRows:r,defaultExpandAll:n}}}function gU(e){const t=kt(),n=X(null),r=X(null),i=c=>{t.store.assertRowKey(),n.value=c,o(c)},s=()=>{n.value=null},o=c=>{const{data:d,rowKey:h}=e;let g=null;h.value&&(g=(O(d)||[]).find(m=>Ln(m,h.value)===c)),r.value=g,t.emit("current-change",r.value,null)};return{setCurrentRowKey:i,restoreCurrentRowKey:s,setCurrentRowByKey:o,updateCurrentRow:c=>{const d=r.value;if(c&&c!==d){r.value=c,t.emit("current-change",r.value,d);return}!c&&d&&(r.value=null,t.emit("current-change",null,d))},updateCurrentRowData:()=>{const c=e.rowKey.value,d=e.data.value||[],h=r.value;if(!d.includes(h)&&h){if(c){const g=Ln(h,c);o(g)}else r.value=null;r.value===null&&t.emit("current-change",null,h)}else n.value&&(o(n.value),s())},states:{_currentRowKey:n,currentRow:r}}}function mU(e){const t=X([]),n=X({}),r=X(16),i=X(!1),s=X({}),o=X("hasChildren"),a=X("children"),u=kt(),c=H(()=>{if(!e.rowKey.value)return{};const y=e.data.value||[];return h(y)}),d=H(()=>{const y=e.rowKey.value,C=Object.keys(s.value),T={};return C.length&&C.forEach(x=>{if(s.value[x].length){const S={children:[]};s.value[x].forEach(E=>{const A=Ln(E,y);S.children.push(A),E[o.value]&&!T[A]&&(T[A]={children:[]})}),T[x]=S}}),T}),h=y=>{const C=e.rowKey.value,T={};return dU(y,(x,S,E)=>{const A=Ln(x,C);Array.isArray(S)?T[A]={children:S.map(R=>Ln(R,C)),level:E}:i.value&&(T[A]={children:[],lazy:!0,level:E})},a.value,o.value),T},g=(y=!1,C=(T=>(T=u.store)==null?void 0:T.states.defaultExpandAll.value)())=>{var T;const x=c.value,S=d.value,E=Object.keys(x),A={};if(E.length){const R=O(n),$=[],B=(P,j)=>{if(y)return t.value?C||t.value.includes(j):!!(C||P!=null&&P.expanded);{const ue=C||t.value&&t.value.includes(j);return!!(P!=null&&P.expanded||ue)}};E.forEach(P=>{const j=R[P],ue={...x[P]};if(ue.expanded=B(j,P),ue.lazy){const{loaded:ce=!1,loading:ne=!1}=j||{};ue.loaded=!!ce,ue.loading=!!ne,$.push(P)}A[P]=ue});const V=Object.keys(S);i.value&&V.length&&$.length&&V.forEach(P=>{const j=R[P],ue=S[P].children;if($.includes(P)){if(A[P].children.length!==0)throw new Error("[ElTable]children must be an empty array.");A[P].children=ue}else{const{loaded:ce=!1,loading:ne=!1}=j||{};A[P]={lazy:!0,loaded:!!ce,loading:!!ne,expanded:B(j,P),children:ue,level:""}}})}n.value=A,(T=u.store)==null||T.updateTableScrollY()};Ie(()=>t.value,()=>{g(!0)}),Ie(()=>c.value,()=>{g()}),Ie(()=>d.value,()=>{g()});const m=y=>{t.value=y,g()},b=(y,C)=>{u.store.assertRowKey();const T=e.rowKey.value,x=Ln(y,T),S=x&&n.value[x];if(x&&S&&"expanded"in S){const E=S.expanded;C=typeof C>"u"?!S.expanded:C,n.value[x].expanded=C,E!==C&&u.emit("expand-change",y,C),u.store.updateTableScrollY()}},v=y=>{u.store.assertRowKey();const C=e.rowKey.value,T=Ln(y,C),x=n.value[T];i.value&&x&&"loaded"in x&&!x.loaded?_(y,T,x):b(y,void 0)},_=(y,C,T)=>{const{load:x}=u.props;x&&!n.value[C].loaded&&(n.value[C].loading=!0,x(y,T,S=>{if(!Array.isArray(S))throw new TypeError("[ElTable] data must be an array");n.value[C].loading=!1,n.value[C].loaded=!0,n.value[C].expanded=!0,S.length&&(s.value[C]=S),u.emit("expand-change",y,!0)}))};return{loadData:_,loadOrToggle:v,toggleTreeExpansion:b,updateTreeExpandKeys:m,updateTreeData:g,normalize:h,states:{expandRowKeys:t,treeData:n,indent:r,lazy:i,lazyTreeNodeMap:s,lazyColumnIdentifier:o,childrenColumnName:a}}}const vU=(e,t)=>{const n=t.sortingColumn;return!n||typeof n.sortable=="string"?e:aU(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},kf=e=>{const t=[];return e.forEach(n=>{n.children?t.push.apply(t,kf(n.children)):t.push(n)}),t};function bU(){var e;const t=kt(),{size:n}=Gs((e=t.proxy)==null?void 0:e.$props),r=X(null),i=X([]),s=X([]),o=X(!1),a=X([]),u=X([]),c=X([]),d=X([]),h=X([]),g=X([]),m=X([]),b=X([]),v=[],_=X(0),y=X(0),C=X(0),T=X(!1),x=X([]),S=X(!1),E=X(!1),A=X(null),R=X({}),$=X(null),B=X(null),V=X(null),P=X(null),j=X(null);Ie(i,()=>t.state&&Q(!1),{deep:!0});const ue=()=>{if(!r.value)throw new Error("[ElTable] prop row-key is required")},ce=Le=>{var Ke;(Ke=Le.children)==null||Ke.forEach(ct=>{ct.fixed=Le.fixed,ce(ct)})},ne=()=>{a.value.forEach(xt=>{ce(xt)}),d.value=a.value.filter(xt=>xt.fixed===!0||xt.fixed==="left"),h.value=a.value.filter(xt=>xt.fixed==="right"),d.value.length>0&&a.value[0]&&a.value[0].type==="selection"&&!a.value[0].fixed&&(a.value[0].fixed=!0,d.value.unshift(a.value[0]));const Le=a.value.filter(xt=>!xt.fixed);u.value=[].concat(d.value).concat(Le).concat(h.value);const Ke=kf(Le),ct=kf(d.value),Qe=kf(h.value);_.value=Ke.length,y.value=ct.length,C.value=Qe.length,c.value=[].concat(ct).concat(Ke).concat(Qe),o.value=d.value.length>0||h.value.length>0},Q=(Le,Ke=!1)=>{Le&&ne(),Ke?t.state.doLayout():t.state.debouncedUpdateLayout()},ie=Le=>x.value.includes(Le),ee=()=>{T.value=!1,x.value.length&&(x.value=[],t.emit("selection-change",[]))},ye=()=>{let Le;if(r.value){Le=[];const Ke=Po(x.value,r.value),ct=Po(i.value,r.value);for(const Qe in Ke)_t(Ke,Qe)&&!ct[Qe]&&Le.push(Ke[Qe].row)}else Le=x.value.filter(Ke=>!i.value.includes(Ke));if(Le.length){const Ke=x.value.filter(ct=>!Le.includes(ct));x.value=Ke,t.emit("selection-change",Ke.slice())}},Ee=()=>(x.value||[]).slice(),ke=(Le,Ke=void 0,ct=!0)=>{if(ql(x.value,Le,Ke)){const xt=(x.value||[]).slice();ct&&t.emit("select",xt,Le),t.emit("selection-change",xt)}},Ze=()=>{var Le,Ke;const ct=E.value?!T.value:!(T.value||x.value.length);T.value=ct;let Qe=!1,xt=0;const St=(Ke=(Le=t==null?void 0:t.store)==null?void 0:Le.states)==null?void 0:Ke.rowKey.value;i.value.forEach((Ft,te)=>{const we=te+xt;A.value?A.value.call(null,Ft,we)&&ql(x.value,Ft,ct)&&(Qe=!0):ql(x.value,Ft,ct)&&(Qe=!0),xt+=Ne(Ln(Ft,St))}),Qe&&t.emit("selection-change",x.value?x.value.slice():[]),t.emit("select-all",x.value)},le=()=>{const Le=Po(x.value,r.value);i.value.forEach(Ke=>{const ct=Ln(Ke,r.value),Qe=Le[ct];Qe&&(x.value[Qe.index]=Ke)})},Ye=()=>{var Le,Ke,ct;if(((Le=i.value)==null?void 0:Le.length)===0){T.value=!1;return}let Qe;r.value&&(Qe=Po(x.value,r.value));const xt=function(we){return Qe?!!Qe[Ln(we,r.value)]:x.value.includes(we)};let St=!0,Ft=0,te=0;for(let we=0,Xe=(i.value||[]).length;we{var Ke;if(!t||!t.store)return 0;const{treeData:ct}=t.store.states;let Qe=0;const xt=(Ke=ct.value[Le])==null?void 0:Ke.children;return xt&&(Qe+=xt.length,xt.forEach(St=>{Qe+=Ne(St)})),Qe},Y=(Le,Ke)=>{Array.isArray(Le)||(Le=[Le]);const ct={};return Le.forEach(Qe=>{R.value[Qe.id]=Ke,ct[Qe.columnKey||Qe.id]=Ke}),ct},oe=(Le,Ke,ct)=>{B.value&&B.value!==Le&&(B.value.order=null),B.value=Le,V.value=Ke,P.value=ct},de=()=>{let Le=O(s);Object.keys(R.value).forEach(Ke=>{const ct=R.value[Ke];if(!ct||ct.length===0)return;const Qe=W2({columns:c.value},Ke);Qe&&Qe.filterMethod&&(Le=Le.filter(xt=>ct.some(St=>Qe.filterMethod.call(null,St,xt,Qe))))}),$.value=Le},Oe=()=>{i.value=vU($.value,{sortingColumn:B.value,sortProp:V.value,sortOrder:P.value})},We=(Le=void 0)=>{Le&&Le.filter||de(),Oe()},F=Le=>{const{tableHeaderRef:Ke}=t.refs;if(!Ke)return;const ct=Object.assign({},Ke.filterPanels),Qe=Object.keys(ct);if(Qe.length)if(typeof Le=="string"&&(Le=[Le]),Array.isArray(Le)){const xt=Le.map(St=>lU({columns:c.value},St));Qe.forEach(St=>{const Ft=xt.find(te=>te.id===St);Ft&&(Ft.filteredValue=[])}),t.store.commit("filterChange",{column:xt,values:[],silent:!0,multi:!0})}else Qe.forEach(xt=>{const St=c.value.find(Ft=>Ft.id===xt);St&&(St.filteredValue=[])}),R.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},W=()=>{B.value&&(oe(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:q,toggleRowExpansion:se,updateExpandRows:he,states:ge,isRowExpanded:Te}=pU({data:i,rowKey:r}),{updateTreeExpandKeys:Se,toggleTreeExpansion:Ce,updateTreeData:pe,loadOrToggle:Be,states:Pe}=mU({data:i,rowKey:r}),{updateCurrentRowData:re,updateCurrentRow:Me,setCurrentRowKey:Ue,states:at}=gU({data:i,rowKey:r});return{assertRowKey:ue,updateColumns:ne,scheduleLayout:Q,isSelected:ie,clearSelection:ee,cleanSelection:ye,getSelectionRows:Ee,toggleRowSelection:ke,_toggleAllSelection:Ze,toggleAllSelection:null,updateSelectionByRowKey:le,updateAllSelected:Ye,updateFilters:Y,updateCurrentRow:Me,updateSort:oe,execFilter:de,execSort:Oe,execQuery:We,clearFilter:F,clearSort:W,toggleRowExpansion:se,setExpandRowKeysAdapter:Le=>{q(Le),Se(Le)},setCurrentRowKey:Ue,toggleRowExpansionAdapter:(Le,Ke)=>{c.value.some(({type:Qe})=>Qe==="expand")?se(Le,Ke):Ce(Le,Ke)},isRowExpanded:Te,updateExpandRows:he,updateCurrentRowData:re,loadOrToggle:Be,updateTreeData:pe,states:{tableSize:n,rowKey:r,data:i,_data:s,isComplex:o,_columns:a,originColumns:u,columns:c,fixedColumns:d,rightFixedColumns:h,leafColumns:g,fixedLeafColumns:m,rightFixedLeafColumns:b,updateOrderFns:v,leafColumnsLength:_,fixedLeafColumnsLength:y,rightFixedLeafColumnsLength:C,isAllSelected:T,selection:x,reserveSelection:S,selectOnIndeterminate:E,selectable:A,filters:R,filteredData:$,sortingColumn:B,sortProp:V,sortOrder:P,hoverRow:j,...ge,...Pe,...at}}}function Dg(e,t){return e.map(n=>{var r;return n.id===t.id?t:((r=n.children)!=null&&r.length&&(n.children=Dg(n.children,t)),n)})}function Ng(e){e.forEach(t=>{var n,r;t.no=(n=t.getColumnIndex)==null?void 0:n.call(t),(r=t.children)!=null&&r.length&&Ng(t.children)}),e.sort((t,n)=>t.no-n.no)}function yU(){const e=kt(),t=bU();return{ns:et("table"),...t,mutations:{setData(o,a){const u=O(o._data)!==a;o.data.value=a,o._data.value=a,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),O(o.reserveSelection)?(e.store.assertRowKey(),e.store.updateSelectionByRowKey()):u?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(o,a,u,c){const d=O(o._columns);let h=[];u?(u&&!u.children&&(u.children=[]),u.children.push(a),h=Dg(d,u)):(d.push(a),h=d),Ng(h),o._columns.value=h,o.updateOrderFns.push(c),a.type==="selection"&&(o.selectable.value=a.selectable,o.reserveSelection.value=a.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(o,a){var u;((u=a.getColumnIndex)==null?void 0:u.call(a))!==a.no&&(Ng(o._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(o,a,u,c){const d=O(o._columns)||[];if(u)u.children.splice(u.children.findIndex(g=>g.id===a.id),1),vt(()=>{var g;((g=u.children)==null?void 0:g.length)===0&&delete u.children}),o._columns.value=Dg(d,u);else{const g=d.indexOf(a);g>-1&&(d.splice(g,1),o._columns.value=d)}const h=o.updateOrderFns.indexOf(c);h>-1&&o.updateOrderFns.splice(h,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(o,a){const{prop:u,order:c,init:d}=a;if(u){const h=O(o.columns).find(g=>g.property===u);h&&(h.order=c,e.store.updateSort(h,u,c),e.store.commit("changeSortCondition",{init:d}))}},changeSortCondition(o,a){const{sortingColumn:u,sortProp:c,sortOrder:d}=o,h=O(u),g=O(c),m=O(d);m===null&&(o.sortingColumn.value=null,o.sortProp.value=null);const b={filter:!0};e.store.execQuery(b),(!a||!(a.silent||a.init))&&e.emit("sort-change",{column:h,prop:g,order:m}),e.store.updateTableScrollY()},filterChange(o,a){const{column:u,values:c,silent:d}=a,h=e.store.updateFilters(u,c);e.store.execQuery(),d||e.emit("filter-change",h),e.store.updateTableScrollY()},toggleAllSelection(){e.store.toggleAllSelection()},rowSelectedChanged(o,a){e.store.toggleRowSelection(a),e.store.updateAllSelected()},setHoverRow(o,a){o.hoverRow.value=a},setCurrentRow(o,a){e.store.updateCurrentRow(a)}},commit:function(o,...a){const u=e.store.mutations;if(u[o])u[o].apply(e,[e.store.states].concat(a));else throw new Error(`Action not found: ${o}`)},updateTableScrollY:function(){vt(()=>e.layout.updateScrollY.apply(e.layout))}}}const Yl={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data",["treeProps.hasChildren"]:{key:"lazyColumnIdentifier",default:"hasChildren"},["treeProps.children"]:{key:"childrenColumnName",default:"children"}};function _U(e,t){if(!e)throw new Error("Table is required.");const n=yU();return n.toggleAllSelection=Aa(n._toggleAllSelection,10),Object.keys(Yl).forEach(r=>{K2(q2(t,r),r,n)}),wU(n,t),n}function wU(e,t){Object.keys(Yl).forEach(n=>{Ie(()=>q2(t,n),r=>{K2(r,n,e)})})}function K2(e,t,n){let r=e,i=Yl[t];typeof Yl[t]=="object"&&(i=i.key,r=r||Yl[t].default),n.states[i].value=r}function q2(e,t){if(t.includes(".")){const n=t.split(".");let r=e;return n.forEach(i=>{r=r[i]}),r}else return e[t]}class xU{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=X(null),this.scrollX=X(!1),this.scrollY=X(!1),this.bodyWidth=X(null),this.fixedWidth=X(null),this.rightFixedWidth=X(null),this.gutterWidth=0;for(const n in t)_t(t,n)&&($t(this[n])?this[n].value=t[n]:this[n]=t[n]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){if(this.height.value===null)return!1;const n=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(n!=null&&n.wrapRef)){let r=!0;const i=this.scrollY.value;return r=n.wrapRef.scrollHeight>n.wrapRef.clientHeight,this.scrollY.value=r,i!==r}return!1}setHeight(t,n="height"){if(!tn)return;const r=this.table.vnode.el;if(t=cU(t),this.height.value=Number(t),!r&&(t||t===0))return vt(()=>this.setHeight(t,n));typeof t=="number"?(r.style[n]=`${t}px`,this.updateElsHeight()):typeof t=="string"&&(r.style[n]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(r=>{r.isColumnGroup?t.push.apply(t,r.columns):t.push(r)}),t}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(t){if(!t)return!0;let n=t;for(;n.tagName!=="DIV";){if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}updateColumnsWidth(){if(!tn)return;const t=this.fit,n=this.table.vnode.el.clientWidth;let r=0;const i=this.getFlattenColumns(),s=i.filter(u=>typeof u.width!="number");if(i.forEach(u=>{typeof u.width=="number"&&u.realWidth&&(u.realWidth=null)}),s.length>0&&t){if(i.forEach(u=>{r+=Number(u.width||u.minWidth||80)}),r<=n){this.scrollX.value=!1;const u=n-r;if(s.length===1)s[0].realWidth=Number(s[0].minWidth||80)+u;else{const c=s.reduce((g,m)=>g+Number(m.minWidth||80),0),d=u/c;let h=0;s.forEach((g,m)=>{if(m===0)return;const b=Math.floor(Number(g.minWidth||80)*d);h+=b,g.realWidth=Number(g.minWidth||80)+b}),s[0].realWidth=Number(s[0].minWidth||80)+u-h}}else this.scrollX.value=!0,s.forEach(u=>{u.realWidth=Number(u.minWidth)});this.bodyWidth.value=Math.max(r,n),this.table.state.resizeState.value.width=this.bodyWidth.value}else i.forEach(u=>{!u.width&&!u.minWidth?u.realWidth=80:u.realWidth=Number(u.width||u.minWidth),r+=u.realWidth}),this.scrollX.value=r>n,this.bodyWidth.value=r;const o=this.store.states.fixedColumns.value;if(o.length>0){let u=0;o.forEach(c=>{u+=Number(c.realWidth||c.width)}),this.fixedWidth.value=u}const a=this.store.states.rightFixedColumns.value;if(a.length>0){let u=0;a.forEach(c=>{u+=Number(c.realWidth||c.width)}),this.rightFixedWidth.value=u}this.notifyObservers("columns")}addObserver(t){this.observers.push(t)}removeObserver(t){const n=this.observers.indexOf(t);n!==-1&&this.observers.splice(n,1)}notifyObservers(t){this.observers.forEach(r=>{var i,s;switch(t){case"columns":(i=r.state)==null||i.onColumnsChange(this);break;case"scrollable":(s=r.state)==null||s.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}const{CheckboxGroup:CU}=Da,SU=De({name:"ElTableFilterPanel",components:{ElCheckbox:Da,ElCheckboxGroup:CU,ElScrollbar:hv,ElTooltip:Wd,ElIcon:kn,ArrowDown:Jm,ArrowUp:D5},directives:{ClickOutside:h2},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(e){const t=kt(),{t:n}=Go(),r=et("table-filter"),i=t==null?void 0:t.parent;i.filterPanels.value[e.column.id]||(i.filterPanels.value[e.column.id]=t);const s=X(!1),o=X(null),a=H(()=>e.column&&e.column.filters),u=H({get:()=>{var x;return(((x=e.column)==null?void 0:x.filteredValue)||[])[0]},set:x=>{c.value&&(typeof x<"u"&&x!==null?c.value.splice(0,1,x):c.value.splice(0,1))}}),c=H({get(){return e.column?e.column.filteredValue||[]:[]},set(x){e.column&&e.upDataColumn("filteredValue",x)}}),d=H(()=>e.column?e.column.filterMultiple:!0),h=x=>x.value===u.value,g=()=>{s.value=!1},m=x=>{x.stopPropagation(),s.value=!s.value},b=()=>{s.value=!1},v=()=>{C(c.value),g()},_=()=>{c.value=[],C(c.value),g()},y=x=>{u.value=x,C(typeof x<"u"&&x!==null?c.value:[]),g()},C=x=>{e.store.commit("filterChange",{column:e.column,values:x}),e.store.updateAllSelected()};Ie(s,x=>{e.column&&e.upDataColumn("filterOpened",x)},{immediate:!0});const T=H(()=>{var x,S;return(S=(x=o.value)==null?void 0:x.popperRef)==null?void 0:S.contentRef});return{tooltipVisible:s,multiple:d,filteredValue:c,filterValue:u,filters:a,handleConfirm:v,handleReset:_,handleSelect:y,isActive:h,t:n,ns:r,showFilterPanel:m,hideFilterPanel:b,popperPaneRef:T,tooltip:o}}}),OU={key:0},EU=["disabled"],MU=["label","onClick"];function TU(e,t,n,r,i,s){const o=Yt("el-checkbox"),a=Yt("el-checkbox-group"),u=Yt("el-scrollbar"),c=Yt("arrow-up"),d=Yt("arrow-down"),h=Yt("el-icon"),g=Yt("el-tooltip"),m=Mm("click-outside");return K(),Ae(g,{ref:"tooltip",visible:e.tooltipVisible,offset:0,placement:e.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":e.ns.b(),persistent:""},{content:D(()=>[e.multiple?(K(),_e("div",OU,[L("div",{class:be(e.ns.e("content"))},[z(u,{"wrap-class":e.ns.e("wrap")},{default:D(()=>[z(a,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=b=>e.filteredValue=b),class:be(e.ns.e("checkbox-group"))},{default:D(()=>[(K(!0),_e(ot,null,Pn(e.filters,b=>(K(),Ae(o,{key:b.value,label:b.value},{default:D(()=>[Z(wt(b.text),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),L("div",{class:be(e.ns.e("bottom"))},[L("button",{class:be({[e.ns.is("disabled")]:e.filteredValue.length===0}),disabled:e.filteredValue.length===0,type:"button",onClick:t[1]||(t[1]=(...b)=>e.handleConfirm&&e.handleConfirm(...b))},wt(e.t("el.table.confirmFilter")),11,EU),L("button",{type:"button",onClick:t[2]||(t[2]=(...b)=>e.handleReset&&e.handleReset(...b))},wt(e.t("el.table.resetFilter")),1)],2)])):(K(),_e("ul",{key:1,class:be(e.ns.e("list"))},[L("li",{class:be([e.ns.e("list-item"),{[e.ns.is("active")]:e.filterValue===void 0||e.filterValue===null}]),onClick:t[3]||(t[3]=b=>e.handleSelect(null))},wt(e.t("el.table.clearFilter")),3),(K(!0),_e(ot,null,Pn(e.filters,b=>(K(),_e("li",{key:b.value,class:be([e.ns.e("list-item"),e.ns.is("active",e.isActive(b))]),label:b.value,onClick:v=>e.handleSelect(b.value)},wt(b.text),11,MU))),128))],2))]),default:D(()=>[mn((K(),_e("span",{class:be([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:t[4]||(t[4]=(...b)=>e.showFilterPanel&&e.showFilterPanel(...b))},[z(h,null,{default:D(()=>[e.column.filterOpened?(K(),Ae(c,{key:0})):(K(),Ae(d,{key:1}))]),_:1})],2)),[[m,e.hideFilterPanel,e.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var AU=At(SU,[["render",TU],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/filter-panel.vue"]]);function Y2(e){const t=kt();Ka(()=>{n.value.addObserver(t)}),Lt(()=>{r(n.value),i(n.value)}),Uo(()=>{r(n.value),i(n.value)}),qa(()=>{n.value.removeObserver(t)});const n=H(()=>{const s=e.layout;if(!s)throw new Error("Can not find table layout.");return s}),r=s=>{var o;const a=((o=e.vnode.el)==null?void 0:o.querySelectorAll("colgroup > col"))||[];if(!a.length)return;const u=s.getFlattenColumns(),c={};u.forEach(d=>{c[d.id]=d});for(let d=0,h=a.length;d{var o,a;const u=((o=e.vnode.el)==null?void 0:o.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let d=0,h=u.length;d{v.stopPropagation()},s=(v,_)=>{!_.filters&&_.sortable?b(v,_,!1):_.filterable&&!_.sortable&&i(v),r==null||r.emit("header-click",_,v)},o=(v,_)=>{r==null||r.emit("header-contextmenu",_,v)},a=X(null),u=X(!1),c=X({}),d=(v,_)=>{if(tn&&!(_.children&&_.children.length>0)&&a.value&&e.border){u.value=!0;const y=r;t("set-drag-visible",!0);const T=(y==null?void 0:y.vnode.el).getBoundingClientRect().left,x=n.vnode.el.querySelector(`th.${_.id}`),S=x.getBoundingClientRect(),E=S.left-T+30;Mo(x,"noclick"),c.value={startMouseLeft:v.clientX,startLeft:S.right-T,startColumnLeft:S.left-T,tableLeft:T};const A=y==null?void 0:y.refs.resizeProxy;A.style.left=`${c.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const R=B=>{const V=B.clientX-c.value.startMouseLeft,P=c.value.startLeft+V;A.style.left=`${Math.max(E,P)}px`},$=()=>{if(u.value){const{startColumnLeft:B,startLeft:V}=c.value,j=Number.parseInt(A.style.left,10)-B;_.width=_.realWidth=j,y==null||y.emit("header-dragend",_.width,V-B,_,v),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",u.value=!1,a.value=null,c.value={},t("set-drag-visible",!1)}document.removeEventListener("mousemove",R),document.removeEventListener("mouseup",$),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{$o(x,"noclick")},0)};document.addEventListener("mousemove",R),document.addEventListener("mouseup",$)}},h=(v,_)=>{if(_.children&&_.children.length>0)return;const y=v.target;if(!Ra(y))return;const C=y==null?void 0:y.closest("th");if(!(!_||!_.resizable)&&!u.value&&e.border){const T=C.getBoundingClientRect(),x=document.body.style;T.width>12&&T.right-v.pageX<8?(x.cursor="col-resize",Io(C,"is-sortable")&&(C.style.cursor="col-resize"),a.value=_):u.value||(x.cursor="",Io(C,"is-sortable")&&(C.style.cursor="pointer"),a.value=null)}},g=()=>{tn&&(document.body.style.cursor="")},m=({order:v,sortOrders:_})=>{if(v==="")return _[0];const y=_.indexOf(v||null);return _[y>_.length-2?0:y+1]},b=(v,_,y)=>{var C;v.stopPropagation();const T=_.order===y?null:y||m(_),x=(C=v.target)==null?void 0:C.closest("th");if(x&&Io(x,"noclick")){$o(x,"noclick");return}if(!_.sortable)return;const S=e.store.states;let E=S.sortProp.value,A;const R=S.sortingColumn.value;(R!==_||R===_&&R.order===null)&&(R&&(R.order=null),S.sortingColumn.value=_,E=_.property),T?A=_.order=T:A=_.order=null,S.sortProp.value=E,S.sortOrder.value=A,r==null||r.store.commit("changeSortCondition")};return{handleHeaderClick:s,handleHeaderContextMenu:o,handleMouseDown:d,handleMouseMove:h,handleMouseOut:g,handleSortClick:b,handleFilterClick:i}}function RU(e){const t=qe(Ei),n=et("table");return{getHeaderRowStyle:a=>{const u=t==null?void 0:t.props.headerRowStyle;return typeof u=="function"?u.call(null,{rowIndex:a}):u},getHeaderRowClass:a=>{const u=[],c=t==null?void 0:t.props.headerRowClassName;return typeof c=="string"?u.push(c):typeof c=="function"&&u.push(c.call(null,{rowIndex:a})),u.join(" ")},getHeaderCellStyle:(a,u,c,d)=>{var h;let g=(h=t==null?void 0:t.props.headerCellStyle)!=null?h:{};typeof g=="function"&&(g=g.call(null,{rowIndex:a,columnIndex:u,row:c,column:d}));const m=Sv(u,d.fixed,e.store,c);return Na(m,"left"),Na(m,"right"),Object.assign({},g,m)},getHeaderCellClass:(a,u,c,d)=>{const h=Cv(n.b(),u,d.fixed,e.store,c),g=[d.id,d.order,d.headerAlign,d.className,d.labelClassName,...h];d.children||g.push("is-leaf"),d.sortable&&g.push("is-sortable");const m=t==null?void 0:t.props.headerCellClassName;return typeof m=="string"?g.push(m):typeof m=="function"&&g.push(m.call(null,{rowIndex:a,columnIndex:u,row:c,column:d})),g.push(n.e("cell")),g.filter(b=>!!b).join(" ")}}}const G2=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,G2(n.children))):t.push(n)}),t},kU=e=>{let t=1;const n=(s,o)=>{if(o&&(s.level=o.level+1,t{n(u,s),a+=u.colSpan}),s.colSpan=a}else s.colSpan=1};e.forEach(s=>{s.level=1,n(s,void 0)});const r=[];for(let s=0;s{s.children?(s.rowSpan=1,s.children.forEach(o=>o.isSubColumn=!0)):s.rowSpan=t-s.level+1,r[s.level-1].push(s)}),r};function LU(e){const t=qe(Ei),n=H(()=>kU(e.store.states.originColumns.value));return{isGroup:H(()=>{const s=n.value.length>1;return s&&t&&(t.state.isGroup.value=!0),s}),toggleAllSelection:s=>{s.stopPropagation(),t==null||t.store.commit("toggleAllSelection")},columnRows:n}}var IU=De({name:"ElTableHeader",components:{ElCheckbox:Da},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e,{emit:t}){const n=kt(),r=qe(Ei),i=et("table"),s=X({}),{onColumnsChange:o,onScrollableChange:a}=Y2(r);Lt(async()=>{await vt(),await vt();const{prop:E,order:A}=e.defaultSort;r==null||r.store.commit("sort",{prop:E,order:A,init:!0})});const{handleHeaderClick:u,handleHeaderContextMenu:c,handleMouseDown:d,handleMouseMove:h,handleMouseOut:g,handleSortClick:m,handleFilterClick:b}=PU(e,t),{getHeaderRowStyle:v,getHeaderRowClass:_,getHeaderCellStyle:y,getHeaderCellClass:C}=RU(e),{isGroup:T,toggleAllSelection:x,columnRows:S}=LU(e);return n.state={onColumnsChange:o,onScrollableChange:a},n.filterPanels=s,{ns:i,filterPanels:s,onColumnsChange:o,onScrollableChange:a,columnRows:S,getHeaderRowClass:_,getHeaderRowStyle:v,getHeaderCellClass:C,getHeaderCellStyle:y,handleHeaderClick:u,handleHeaderContextMenu:c,handleMouseDown:d,handleMouseMove:h,handleMouseOut:g,handleSortClick:m,handleFilterClick:b,isGroup:T,toggleAllSelection:x}},render(){const{ns:e,isGroup:t,columnRows:n,getHeaderCellStyle:r,getHeaderCellClass:i,getHeaderRowClass:s,getHeaderRowStyle:o,handleHeaderClick:a,handleHeaderContextMenu:u,handleMouseDown:c,handleMouseMove:d,handleSortClick:h,handleMouseOut:g,store:m,$parent:b}=this;let v=1;return Ge("thead",{class:{[e.is("group")]:t}},n.map((_,y)=>Ge("tr",{class:s(y),key:y,style:o(y)},_.map((C,T)=>(C.rowSpan>v&&(v=C.rowSpan),Ge("th",{class:i(y,T,_,C),colspan:C.colSpan,key:`${C.id}-thead`,rowspan:C.rowSpan,style:r(y,T,_,C),onClick:x=>a(x,C),onContextmenu:x=>u(x,C),onMousedown:x=>c(x,C),onMousemove:x=>d(x,C),onMouseout:g},[Ge("div",{class:["cell",C.filteredValue&&C.filteredValue.length>0?"highlight":""]},[C.renderHeader?C.renderHeader({column:C,$index:T,store:m,_self:b}):C.label,C.sortable&&Ge("span",{onClick:x=>h(x,C),class:"caret-wrapper"},[Ge("i",{onClick:x=>h(x,C,"ascending"),class:"sort-caret ascending"}),Ge("i",{onClick:x=>h(x,C,"descending"),class:"sort-caret descending"})]),C.filterable&&Ge(AU,{store:m,placement:C.filterPlacement||"bottom-start",column:C,upDataColumn:(x,S)=>{C[x]=S}})])]))))))}});function $U(e){const t=qe(Ei),n=X(""),r=X(Ge("div")),{nextZIndex:i}=cv(),s=(m,b,v)=>{var _;const y=t,C=Pp(m);let T;const x=(_=y==null?void 0:y.vnode.el)==null?void 0:_.dataset.prefix;C&&(T=N1({columns:e.store.states.columns.value},C,x),T&&(y==null||y.emit(`cell-${v}`,b,T,C,m))),y==null||y.emit(`row-${v}`,b,T,m)},o=(m,b)=>{s(m,b,"dblclick")},a=(m,b)=>{e.store.commit("setCurrentRow",b),s(m,b,"click")},u=(m,b)=>{s(m,b,"contextmenu")},c=Aa(m=>{e.store.commit("setHoverRow",m)},30),d=Aa(()=>{e.store.commit("setHoverRow",null)},30);return{handleDoubleClick:o,handleClick:a,handleContextMenu:u,handleMouseEnter:c,handleMouseLeave:d,handleCellMouseEnter:(m,b,v)=>{var _;const y=t,C=Pp(m),T=(_=y==null?void 0:y.vnode.el)==null?void 0:_.dataset.prefix;if(C){const R=N1({columns:e.store.states.columns.value},C,T),$=y.hoverState={cell:C,column:R,row:b};y==null||y.emit("cell-mouse-enter",$.row,$.column,$.cell,m)}if(!v)return;const x=m.target.querySelector(".cell");if(!(Io(x,`${T}-tooltip`)&&x.childNodes.length))return;const S=document.createRange();S.setStart(x,0),S.setEnd(x,x.childNodes.length);const E=Math.round(S.getBoundingClientRect().width),A=(Number.parseInt(yg(x,"paddingLeft"),10)||0)+(Number.parseInt(yg(x,"paddingRight"),10)||0);(E+A>x.offsetWidth||x.scrollWidth>x.offsetWidth)&&hU(t==null?void 0:t.refs.tableWrapper,C,C.innerText||C.textContent,i,v)},handleCellMouseLeave:m=>{if(!Pp(m))return;const v=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",v==null?void 0:v.row,v==null?void 0:v.column,v==null?void 0:v.cell,m)},tooltipContent:n,tooltipTrigger:r}}function FU(e){const t=qe(Ei),n=et("table");return{getRowStyle:(c,d)=>{const h=t==null?void 0:t.props.rowStyle;return typeof h=="function"?h.call(null,{row:c,rowIndex:d}):h||null},getRowClass:(c,d)=>{const h=[n.e("row")];t!=null&&t.props.highlightCurrentRow&&c===e.store.states.currentRow.value&&h.push("current-row"),e.stripe&&d%2===1&&h.push(n.em("row","striped"));const g=t==null?void 0:t.props.rowClassName;return typeof g=="string"?h.push(g):typeof g=="function"&&h.push(g.call(null,{row:c,rowIndex:d})),h},getCellStyle:(c,d,h,g)=>{const m=t==null?void 0:t.props.cellStyle;let b=m??{};typeof m=="function"&&(b=m.call(null,{rowIndex:c,columnIndex:d,row:h,column:g}));const v=Sv(d,e==null?void 0:e.fixed,e.store);return Na(v,"left"),Na(v,"right"),Object.assign({},b,v)},getCellClass:(c,d,h,g,m)=>{const b=Cv(n.b(),d,e==null?void 0:e.fixed,e.store,void 0,m),v=[g.id,g.align,g.className,...b],_=t==null?void 0:t.props.cellClassName;return typeof _=="string"?v.push(_):typeof _=="function"&&v.push(_.call(null,{rowIndex:c,columnIndex:d,row:h,column:g})),v.push(n.e("cell")),v.filter(y=>!!y).join(" ")},getSpan:(c,d,h,g)=>{let m=1,b=1;const v=t==null?void 0:t.props.spanMethod;if(typeof v=="function"){const _=v({row:c,column:d,rowIndex:h,columnIndex:g});Array.isArray(_)?(m=_[0],b=_[1]):typeof _=="object"&&(m=_.rowspan,b=_.colspan)}return{rowspan:m,colspan:b}},getColspanRealWidth:(c,d,h)=>{if(d<1)return c[h].realWidth;const g=c.map(({realWidth:m,width:b})=>m||b).slice(h,h+d);return Number(g.reduce((m,b)=>Number(m)+Number(b),-1))}}}function DU(e){const t=qe(Ei),n=et("table"),{handleDoubleClick:r,handleClick:i,handleContextMenu:s,handleMouseEnter:o,handleMouseLeave:a,handleCellMouseEnter:u,handleCellMouseLeave:c,tooltipContent:d,tooltipTrigger:h}=$U(e),{getRowStyle:g,getRowClass:m,getCellStyle:b,getCellClass:v,getSpan:_,getColspanRealWidth:y}=FU(e),C=H(()=>e.store.states.columns.value.findIndex(({type:A})=>A==="default")),T=(A,R)=>{const $=t.props.rowKey;return $?Ln(A,$):R},x=(A,R,$,B=!1)=>{const{tooltipEffect:V,tooltipOptions:P,store:j}=e,{indent:ue,columns:ce}=j.states,ne=m(A,R);let Q=!0;return $&&(ne.push(n.em("row",`level-${$.level}`)),Q=$.display),Ge("tr",{style:[Q?null:{display:"none"},g(A,R)],class:ne,key:T(A,R),onDblclick:ee=>r(ee,A),onClick:ee=>i(ee,A),onContextmenu:ee=>s(ee,A),onMouseenter:()=>o(R),onMouseleave:a},ce.value.map((ee,ye)=>{const{rowspan:Ee,colspan:ke}=_(A,ee,R,ye);if(!Ee||!ke)return null;const Ze={...ee};Ze.realWidth=y(ce.value,ke,ye);const le={store:e.store,_self:e.context||t,column:Ze,row:A,$index:R,cellIndex:ye,expanded:B};ye===C.value&&$&&(le.treeNode={indent:$.level*ue.value,level:$.level},typeof $.expanded=="boolean"&&(le.treeNode.expanded=$.expanded,"loading"in $&&(le.treeNode.loading=$.loading),"noLazyChildren"in $&&(le.treeNode.noLazyChildren=$.noLazyChildren)));const Ye=`${R},${ye}`,Ne=Ze.columnKey||Ze.rawColumnKey||"",Y=S(ye,ee,le),oe=ee.showOverflowTooltip&&_S({effect:V},P,ee.showOverflowTooltip);return Ge("td",{style:b(R,ye,A,ee),class:v(R,ye,A,ee,ke-1),key:`${Ne}${Ye}`,rowspan:Ee,colspan:ke,onMouseenter:de=>u(de,A,oe),onMouseleave:c},[Y])}))},S=(A,R,$)=>R.renderCell($);return{wrappedRowRender:(A,R)=>{const $=e.store,{isRowExpanded:B,assertRowKey:V}=$,{treeData:P,lazyTreeNodeMap:j,childrenColumnName:ue,rowKey:ce}=$.states,ne=$.states.columns.value;if(ne.some(({type:ie})=>ie==="expand")){const ie=B(A),ee=x(A,R,void 0,ie),ye=t.renderExpanded;return ie?ye?[[ee,Ge("tr",{key:`expanded-row__${ee.key}`},[Ge("td",{colspan:ne.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[ye({row:A,$index:R,store:$,expanded:ie})])])]]:(console.error("[Element Error]renderExpanded is required."),ee):[[ee]]}else if(Object.keys(P.value).length){V();const ie=Ln(A,ce.value);let ee=P.value[ie],ye=null;ee&&(ye={expanded:ee.expanded,level:ee.level,display:!0},typeof ee.lazy=="boolean"&&(typeof ee.loaded=="boolean"&&ee.loaded&&(ye.noLazyChildren=!(ee.children&&ee.children.length)),ye.loading=ee.loading));const Ee=[x(A,R,ye)];if(ee){let ke=0;const Ze=(Ye,Ne)=>{Ye&&Ye.length&&Ne&&Ye.forEach(Y=>{const oe={display:Ne.display&&Ne.expanded,level:Ne.level+1,expanded:!1,noLazyChildren:!1,loading:!1},de=Ln(Y,ce.value);if(de==null)throw new Error("For nested data item, row-key is required.");if(ee={...P.value[de]},ee&&(oe.expanded=ee.expanded,ee.level=ee.level||oe.level,ee.display=!!(ee.expanded&&oe.display),typeof ee.lazy=="boolean"&&(typeof ee.loaded=="boolean"&&ee.loaded&&(oe.noLazyChildren=!(ee.children&&ee.children.length)),oe.loading=ee.loading)),ke++,Ee.push(x(Y,R+ke,oe)),ee){const Oe=j.value[de]||Y[ue.value];Ze(Oe,ee)}})};ee.display=!0;const le=j.value[ie]||A[ue.value];Ze(le,ee)}return Ee}else return x(A,R,void 0)},tooltipContent:d,tooltipTrigger:h}}const NU={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var BU=De({name:"ElTableBody",props:NU,setup(e){const t=kt(),n=qe(Ei),r=et("table"),{wrappedRowRender:i,tooltipContent:s,tooltipTrigger:o}=DU(e),{onColumnsChange:a,onScrollableChange:u}=Y2(n);return Ie(e.store.states.hoverRow,(c,d)=>{if(!e.store.states.isComplex.value||!tn)return;let h=window.requestAnimationFrame;h||(h=g=>window.setTimeout(g,16)),h(()=>{const g=t==null?void 0:t.vnode.el,m=Array.from((g==null?void 0:g.children)||[]).filter(_=>_==null?void 0:_.classList.contains(`${r.e("row")}`)),b=m[d],v=m[c];b&&$o(b,"hover-row"),v&&Mo(v,"hover-row")})}),qa(()=>{var c;(c=Wi)==null||c()}),{ns:r,onColumnsChange:a,onScrollableChange:u,wrappedRowRender:i,tooltipContent:s,tooltipTrigger:o}},render(){const{wrappedRowRender:e,store:t}=this,n=t.states.data.value||[];return Ge("tbody",{},[n.reduce((r,i)=>r.concat(e(i,r.length)),[])])}});function Ov(e){const t=e.tableLayout==="auto";let n=e.columns||[];t&&n.every(i=>i.width===void 0)&&(n=[]);const r=i=>{const s={key:`${e.tableLayout}_${i.id}`,style:{},name:void 0};return t?s.style={width:`${i.width}px`}:s.name=i.id,s};return Ge("colgroup",{},n.map(i=>Ge("col",r(i))))}Ov.props=["columns","tableLayout"];function zU(){const e=qe(Ei),t=e==null?void 0:e.store,n=H(()=>t.states.fixedLeafColumnsLength.value),r=H(()=>t.states.rightFixedColumns.value.length),i=H(()=>t.states.columns.value.length),s=H(()=>t.states.fixedColumns.value.length),o=H(()=>t.states.rightFixedColumns.value.length);return{leftFixedLeafCount:n,rightFixedLeafCount:r,columnsCount:i,leftFixedCount:s,rightFixedCount:o,columns:t.states.columns}}function HU(e){const{columns:t}=zU(),n=et("table");return{getCellClasses:(s,o)=>{const a=s[o],u=[n.e("cell"),a.id,a.align,a.labelClassName,...Cv(n.b(),o,a.fixed,e.store)];return a.className&&u.push(a.className),a.children||u.push(n.is("leaf")),u},getCellStyles:(s,o)=>{const a=Sv(o,s.fixed,e.store);return Na(a,"left"),Na(a,"right"),a},columns:t}}var WU=De({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const{getCellClasses:t,getCellStyles:n,columns:r}=HU(e);return{ns:et("table"),getCellClasses:t,getCellStyles:n,columns:r}},render(){const{columns:e,getCellStyles:t,getCellClasses:n,summaryMethod:r,sumText:i,ns:s}=this,o=this.store.states.data.value;let a=[];return r?a=r({columns:e,data:o}):e.forEach((u,c)=>{if(c===0){a[c]=i;return}const d=o.map(b=>Number(b[u.property])),h=[];let g=!0;d.forEach(b=>{if(!Number.isNaN(+b)){g=!1;const v=`${b}`.split(".")[1];h.push(v?v.length:0)}});const m=Math.max.apply(null,h);g?a[c]="":a[c]=d.reduce((b,v)=>{const _=Number(v);return Number.isNaN(+_)?b:Number.parseFloat((b+v).toFixed(Math.min(m,20)))},0)}),Ge("table",{class:s.e("footer"),cellspacing:"0",cellpadding:"0",border:"0"},[Ov({columns:e}),Ge("tbody",[Ge("tr",{},[...e.map((u,c)=>Ge("td",{key:c,colspan:u.colSpan,rowspan:u.rowSpan,class:n(e,c),style:t(u,c)},[Ge("div",{class:["cell",u.labelClassName]},[a[c]])]))])])])}});function VU(e){return{setCurrentRow:d=>{e.commit("setCurrentRow",d)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(d,h)=>{e.toggleRowSelection(d,h,!1),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:d=>{e.clearFilter(d)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(d,h)=>{e.toggleRowExpansionAdapter(d,h)},clearSort:()=>{e.clearSort()},sort:(d,h)=>{e.commit("sort",{prop:d,order:h})}}}function jU(e,t,n,r){const i=X(!1),s=X(null),o=X(!1),a=ie=>{o.value=ie},u=X({width:null,height:null,headerHeight:null}),c=X(!1),d={display:"inline-block",verticalAlign:"middle"},h=X(),g=X(0),m=X(0),b=X(0),v=X(0);Ns(()=>{t.setHeight(e.height)}),Ns(()=>{t.setMaxHeight(e.maxHeight)}),Ie(()=>[e.currentRowKey,n.states.rowKey],([ie,ee])=>{!O(ee)||!O(ie)||n.setCurrentRowKey(`${ie}`)},{immediate:!0}),Ie(()=>e.data,ie=>{r.store.commit("setData",ie)},{immediate:!0,deep:!0}),Ns(()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)});const _=()=>{r.store.commit("setHoverRow",null),r.hoverState&&(r.hoverState=null)},y=(ie,ee)=>{const{pixelX:ye,pixelY:Ee}=ee;Math.abs(ye)>=Math.abs(Ee)&&(r.refs.bodyWrapper.scrollLeft+=ee.pixelX/5)},C=H(()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),T=H(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),x=()=>{C.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(R)};Lt(async()=>{await vt(),n.updateColumns(),$(),requestAnimationFrame(x);const ie=r.vnode.el,ee=r.refs.headerWrapper;e.flexible&&ie&&ie.parentElement&&(ie.parentElement.style.minWidth="0"),u.value={width:h.value=ie.offsetWidth,height:ie.offsetHeight,headerHeight:e.showHeader&&ee?ee.offsetHeight:null},n.states.columns.value.forEach(ye=>{ye.filteredValue&&ye.filteredValue.length&&r.store.commit("filterChange",{column:ye,values:ye.filteredValue,silent:!0})}),r.$ready=!0});const S=(ie,ee)=>{if(!ie)return;const ye=Array.from(ie.classList).filter(Ee=>!Ee.startsWith("is-scrolling-"));ye.push(t.scrollX.value?ee:"is-scrolling-none"),ie.className=ye.join(" ")},E=ie=>{const{tableWrapper:ee}=r.refs;S(ee,ie)},A=ie=>{const{tableWrapper:ee}=r.refs;return!!(ee&&ee.classList.contains(ie))},R=function(){if(!r.refs.scrollBarRef)return;if(!t.scrollX.value){const Ye="is-scrolling-none";A(Ye)||E(Ye);return}const ie=r.refs.scrollBarRef.wrapRef;if(!ie)return;const{scrollLeft:ee,offsetWidth:ye,scrollWidth:Ee}=ie,{headerWrapper:ke,footerWrapper:Ze}=r.refs;ke&&(ke.scrollLeft=ee),Ze&&(Ze.scrollLeft=ee);const le=Ee-ye-1;ee>=le?E("is-scrolling-right"):E(ee===0?"is-scrolling-left":"is-scrolling-middle")},$=()=>{r.refs.scrollBarRef&&(r.refs.scrollBarRef.wrapRef&&yi(r.refs.scrollBarRef.wrapRef,"scroll",R,{passive:!0}),e.fit?js(r.vnode.el,B):yi(window,"resize",B),js(r.refs.bodyWrapper,()=>{var ie,ee;B(),(ee=(ie=r.refs)==null?void 0:ie.scrollBarRef)==null||ee.update()}))},B=()=>{var ie,ee,ye;const Ee=r.vnode.el;if(!r.$ready||!Ee)return;let ke=!1;const{width:Ze,height:le,headerHeight:Ye}=u.value,Ne=h.value=Ee.offsetWidth;Ze!==Ne&&(ke=!0);const Y=Ee.offsetHeight;(e.height||C.value)&&le!==Y&&(ke=!0);const oe=e.tableLayout==="fixed"?r.refs.headerWrapper:(ie=r.refs.tableHeaderRef)==null?void 0:ie.$el;e.showHeader&&(oe==null?void 0:oe.offsetHeight)!==Ye&&(ke=!0),g.value=((ee=r.refs.tableWrapper)==null?void 0:ee.scrollHeight)||0,b.value=(oe==null?void 0:oe.scrollHeight)||0,v.value=((ye=r.refs.footerWrapper)==null?void 0:ye.offsetHeight)||0,m.value=g.value-b.value-v.value,ke&&(u.value={width:Ne,height:Y,headerHeight:e.showHeader&&(oe==null?void 0:oe.offsetHeight)||0},x())},V=ns(),P=H(()=>{const{bodyWidth:ie,scrollY:ee,gutterWidth:ye}=t;return ie.value?`${ie.value-(ee.value?ye:0)}px`:""}),j=H(()=>e.maxHeight?"fixed":e.tableLayout),ue=H(()=>{if(e.data&&e.data.length)return null;let ie="100%";e.height&&m.value&&(ie=`${m.value}px`);const ee=h.value;return{width:ee?`${ee}px`:"",height:ie}}),ce=H(()=>e.height?{height:Number.isNaN(Number(e.height))?e.height:`${e.height}px`}:e.maxHeight?{maxHeight:Number.isNaN(Number(e.maxHeight))?e.maxHeight:`${e.maxHeight}px`}:{}),ne=H(()=>{if(e.height)return{height:"100%"};if(e.maxHeight){if(Number.isNaN(Number(e.maxHeight)))return{maxHeight:`calc(${e.maxHeight} - ${b.value+v.value}px)`};{const ie=e.maxHeight;if(g.value>=Number(ie))return{maxHeight:`${g.value-b.value-v.value}px`}}}return{}});return{isHidden:i,renderExpanded:s,setDragVisible:a,isGroup:c,handleMouseLeave:_,handleHeaderFooterMousewheel:y,tableSize:V,emptyBlockStyle:ue,handleFixedMousewheel:(ie,ee)=>{const ye=r.refs.bodyWrapper;if(Math.abs(ee.spinY)>0){const Ee=ye.scrollTop;ee.pixelY<0&&Ee!==0&&ie.preventDefault(),ee.pixelY>0&&ye.scrollHeight-ye.clientHeight>Ee&&ie.preventDefault(),ye.scrollTop+=Math.ceil(ee.pixelY/5)}else ye.scrollLeft+=Math.ceil(ee.pixelX/5)},resizeProxyVisible:o,bodyWidth:P,resizeState:u,doLayout:x,tableBodyStyles:T,tableLayout:j,scrollbarViewStyle:d,tableInnerStyle:ce,scrollbarStyle:ne}}function UU(e){const t=X(),n=()=>{const i=e.vnode.el.querySelector(".hidden-columns"),s={childList:!0,subtree:!0},o=e.store.states.updateOrderFns;t.value=new MutationObserver(()=>{o.forEach(a=>a())}),t.value.observe(i,s)};Lt(()=>{n()}),qa(()=>{var r;(r=t.value)==null||r.disconnect()})}var KU={data:{type:Array,default:()=>[]},size:Ja,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children"})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:{type:Boolean,default:!1},flexible:Boolean};const qU=()=>{const e=X(),t=(s,o)=>{const a=e.value;a&&a.scrollTo(s,o)},n=(s,o)=>{const a=e.value;a&&jn(o)&&["Top","Left"].includes(s)&&a[`setScroll${s}`](o)};return{scrollBarRef:e,scrollTo:t,setScrollTop:s=>n("Top",s),setScrollLeft:s=>n("Left",s)}};let YU=1;const GU=De({name:"ElTable",directives:{Mousewheel:cj},components:{TableHeader:IU,TableBody:BU,TableFooter:WU,ElScrollbar:hv,hColgroup:Ov},props:KU,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change"],setup(e){const{t}=Go(),n=et("table"),r=kt();sn(Ei,r);const i=_U(r,e);r.store=i;const s=new xU({store:r.store,table:r,fit:e.fit,showHeader:e.showHeader});r.layout=s;const o=H(()=>(i.states.data.value||[]).length===0),{setCurrentRow:a,getSelectionRows:u,toggleRowSelection:c,clearSelection:d,clearFilter:h,toggleAllSelection:g,toggleRowExpansion:m,clearSort:b,sort:v}=VU(i),{isHidden:_,renderExpanded:y,setDragVisible:C,isGroup:T,handleMouseLeave:x,handleHeaderFooterMousewheel:S,tableSize:E,emptyBlockStyle:A,handleFixedMousewheel:R,resizeProxyVisible:$,bodyWidth:B,resizeState:V,doLayout:P,tableBodyStyles:j,tableLayout:ue,scrollbarViewStyle:ce,tableInnerStyle:ne,scrollbarStyle:Q}=jU(e,s,i,r),{scrollBarRef:ie,scrollTo:ee,setScrollLeft:ye,setScrollTop:Ee}=qU(),ke=Aa(P,50),Ze=`${n.namespace.value}-table_${YU++}`;r.tableId=Ze,r.state={isGroup:T,resizeState:V,doLayout:P,debouncedUpdateLayout:ke};const le=H(()=>e.sumText||t("el.table.sumText")),Ye=H(()=>e.emptyText||t("el.table.emptyText"));return UU(r),{ns:n,layout:s,store:i,handleHeaderFooterMousewheel:S,handleMouseLeave:x,tableId:Ze,tableSize:E,isHidden:_,isEmpty:o,renderExpanded:y,resizeProxyVisible:$,resizeState:V,isGroup:T,bodyWidth:B,tableBodyStyles:j,emptyBlockStyle:A,debouncedUpdateLayout:ke,handleFixedMousewheel:R,setCurrentRow:a,getSelectionRows:u,toggleRowSelection:c,clearSelection:d,clearFilter:h,toggleAllSelection:g,toggleRowExpansion:m,clearSort:b,doLayout:P,sort:v,t,setDragVisible:C,context:r,computedSumText:le,computedEmptyText:Ye,tableLayout:ue,scrollbarViewStyle:ce,tableInnerStyle:ne,scrollbarStyle:Q,scrollBarRef:ie,scrollTo:ee,setScrollLeft:ye,setScrollTop:Ee}}}),XU=["data-prefix"],JU={ref:"hiddenColumns",class:"hidden-columns"};function ZU(e,t,n,r,i,s){const o=Yt("hColgroup"),a=Yt("table-header"),u=Yt("table-body"),c=Yt("el-scrollbar"),d=Yt("table-footer"),h=Mm("mousewheel");return K(),_e("div",{ref:"tableWrapper",class:be([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:(e.store.states.data.value||[]).length!==0&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:Vt(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[0]||(t[0]=(...g)=>e.handleMouseLeave&&e.handleMouseLeave(...g))},[L("div",{class:be(e.ns.e("inner-wrapper")),style:Vt(e.tableInnerStyle)},[L("div",JU,[je(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?mn((K(),_e("div",{key:0,ref:"headerWrapper",class:be(e.ns.e("header-wrapper"))},[L("table",{ref:"tableHeader",class:be(e.ns.e("header")),style:Vt(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[z(o,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),z(a,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[h,e.handleHeaderFooterMousewheel]]):$e("v-if",!0),L("div",{ref:"bodyWrapper",class:be(e.ns.e("body-wrapper"))},[z(c,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn},{default:D(()=>[L("table",{ref:"tableBody",class:be(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:Vt({width:e.bodyWidth,tableLayout:e.tableLayout})},[z(o,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(K(),Ae(a,{key:0,ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])):$e("v-if",!0),z(u,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"tooltip-options":e.tooltipOptions,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"])],6),e.isEmpty?(K(),_e("div",{key:0,ref:"emptyBlock",style:Vt(e.emptyBlockStyle),class:be(e.ns.e("empty-block"))},[L("span",{class:be(e.ns.e("empty-text"))},[je(e.$slots,"empty",{},()=>[Z(wt(e.computedEmptyText),1)])],2)],6)):$e("v-if",!0),e.$slots.append?(K(),_e("div",{key:1,ref:"appendWrapper",class:be(e.ns.e("append-wrapper"))},[je(e.$slots,"append")],2)):$e("v-if",!0)]),_:3},8,["view-style","wrap-style","always"])],2),e.showSummary?mn((K(),_e("div",{key:1,ref:"footerWrapper",class:be(e.ns.e("footer-wrapper"))},[z(d,{border:e.border,"default-sort":e.defaultSort,store:e.store,style:Vt(e.tableBodyStyles),"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","style","sum-text","summary-method"])],2)),[[si,!e.isEmpty],[h,e.handleHeaderFooterMousewheel]]):$e("v-if",!0),e.border||e.isGroup?(K(),_e("div",{key:2,class:be(e.ns.e("border-left-patch"))},null,2)):$e("v-if",!0)],6),mn(L("div",{ref:"resizeProxy",class:be(e.ns.e("column-resize-proxy"))},null,2),[[si,e.resizeProxyVisible]])],46,XU)}var QU=At(GU,[["render",ZU],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table.vue"]]);const e7={selection:"table-column--selection",expand:"table__expand-column"},t7={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},n7=e=>e7[e]||"",r7={selection:{renderHeader({store:e}){function t(){return e.states.data.value&&e.states.data.value.length===0}return Ge(Da,{disabled:t(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":e.toggleAllSelection,modelValue:e.states.isAllSelected.value})},renderCell({row:e,column:t,store:n,$index:r}){return Ge(Da,{disabled:t.selectable?!t.selectable.call(null,e,r):!1,size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",e)},onClick:i=>i.stopPropagation(),modelValue:n.isSelected(e)})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let n=t+1;const r=e.index;return typeof r=="number"?n=t+r:typeof r=="function"&&(n=r(t)),Ge("div",{},[n])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({row:e,store:t,expanded:n}){const{ns:r}=t,i=[r.e("expand-icon")];return n&&i.push(r.em("expand-icon","expanded")),Ge("div",{class:i,onClick:function(o){o.stopPropagation(),t.toggleRowExpansion(e)}},{default:()=>[Ge(kn,null,{default:()=>[Ge(Zm)]})]})},sortable:!1,resizable:!1}};function i7({row:e,column:t,$index:n}){var r;const i=t.property,s=i&&Cf(e,i).value;return t&&t.formatter?t.formatter(e,t,s,n):((r=s==null?void 0:s.toString)==null?void 0:r.call(s))||""}function s7({row:e,treeNode:t,store:n},r=!1){const{ns:i}=n;if(!t)return r?[Ge("span",{class:i.e("placeholder")})]:null;const s=[],o=function(a){a.stopPropagation(),!t.loading&&n.loadOrToggle(e)};if(t.indent&&s.push(Ge("span",{class:i.e("indent"),style:{"padding-left":`${t.indent}px`}})),typeof t.expanded=="boolean"&&!t.noLazyChildren){const a=[i.e("expand-icon"),t.expanded?i.em("expand-icon","expanded"):""];let u=Zm;t.loading&&(u=ev),s.push(Ge("div",{class:a,onClick:o},{default:()=>[Ge(kn,{class:{[i.is("loading")]:t.loading}},{default:()=>[Ge(u)]})]}))}else s.push(Ge("span",{class:i.e("placeholder")}));return s}function H1(e,t){return e.reduce((n,r)=>(n[r]=r,n),t)}function o7(e,t){const n=kt();return{registerComplexWatchers:()=>{const s=["fixed"],o={realWidth:"width",realMinWidth:"minWidth"},a=H1(s,o);Object.keys(a).forEach(u=>{const c=o[u];_t(t,c)&&Ie(()=>t[c],d=>{let h=d;c==="width"&&u==="realWidth"&&(h=xv(d)),c==="minWidth"&&u==="realMinWidth"&&(h=V2(d)),n.columnConfig.value[c]=h,n.columnConfig.value[u]=h;const g=c==="fixed";e.value.store.scheduleLayout(g)})})},registerNormalWatchers:()=>{const s=["label","filters","filterMultiple","sortable","index","formatter","className","labelClassName","showOverflowTooltip"],o={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},a=H1(s,o);Object.keys(a).forEach(u=>{const c=o[u];_t(t,c)&&Ie(()=>t[c],d=>{n.columnConfig.value[u]=d})})}}}function a7(e,t,n){const r=kt(),i=X(""),s=X(!1),o=X(),a=X(),u=et("table");Ns(()=>{o.value=e.align?`is-${e.align}`:null,o.value}),Ns(()=>{a.value=e.headerAlign?`is-${e.headerAlign}`:o.value,a.value});const c=H(()=>{let x=r.vnode.vParent||r.parent;for(;x&&!x.tableId&&!x.columnId;)x=x.vnode.vParent||x.parent;return x}),d=H(()=>{const{store:x}=r.parent;if(!x)return!1;const{treeData:S}=x.states,E=S.value;return E&&Object.keys(E).length>0}),h=X(xv(e.width)),g=X(V2(e.minWidth)),m=x=>(h.value&&(x.width=h.value),g.value&&(x.minWidth=g.value),!h.value&&g.value&&(x.width=void 0),x.minWidth||(x.minWidth=80),x.realWidth=Number(x.width===void 0?x.minWidth:x.width),x),b=x=>{const S=x.type,E=r7[S]||{};Object.keys(E).forEach(R=>{const $=E[R];R!=="className"&&$!==void 0&&(x[R]=$)});const A=n7(S);if(A){const R=`${O(u.namespace)}-${A}`;x.className=x.className?`${x.className} ${R}`:R}return x},v=x=>{Array.isArray(x)?x.forEach(E=>S(E)):S(x);function S(E){var A;((A=E==null?void 0:E.type)==null?void 0:A.name)==="ElTableColumn"&&(E.vParent=r)}};return{columnId:i,realAlign:o,isSubColumn:s,realHeaderAlign:a,columnOrTableParent:c,setColumnWidth:m,setColumnForcedProps:b,setColumnRenders:x=>{e.renderHeader||x.type!=="selection"&&(x.renderHeader=E=>{r.columnConfig.value.label;const A=t.header;return A?A(E):x.label});let S=x.renderCell;return x.type==="expand"?(x.renderCell=E=>Ge("div",{class:"cell"},[S(E)]),n.value.renderExpanded=E=>t.default?t.default(E):t.default):(S=S||i7,x.renderCell=E=>{let A=null;if(t.default){const j=t.default(E);A=j.some(ue=>ue.type!==ar)?j:S(E)}else A=S(E);const{columns:R}=n.value.store.states,$=R.value.findIndex(j=>j.type==="default"),B=d.value&&E.cellIndex===$,V=s7(E,B),P={class:"cell",style:{}};return x.showOverflowTooltip&&(P.class=`${P.class} ${O(u.namespace)}-tooltip`,P.style={width:`${(E.column.realWidth||Number(E.column.width))-1}px`}),v(A),Ge("div",P,[V,A])}),x},getPropsData:(...x)=>x.reduce((S,E)=>(Array.isArray(E)&&E.forEach(A=>{S[A]=e[A]}),S),{}),getColumnElIndex:(x,S)=>Array.prototype.indexOf.call(x,S),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",r.columnConfig.value)}}}var l7={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:[Boolean,Object],fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let u7=1;var X2=De({name:"ElTableColumn",components:{ElCheckbox:Da},props:l7,setup(e,{slots:t}){const n=kt(),r=X({}),i=H(()=>{let T=n.parent;for(;T&&!T.tableId;)T=T.parent;return T}),{registerNormalWatchers:s,registerComplexWatchers:o}=o7(i,e),{columnId:a,isSubColumn:u,realHeaderAlign:c,columnOrTableParent:d,setColumnWidth:h,setColumnForcedProps:g,setColumnRenders:m,getPropsData:b,getColumnElIndex:v,realAlign:_,updateColumnOrder:y}=a7(e,t,i),C=d.value;a.value=`${C.tableId||C.columnId}_column_${u7++}`,Ka(()=>{u.value=i.value!==C;const T=e.type||"default",x=e.sortable===""?!0:e.sortable,S={...t7[T],id:a.value,type:T,property:e.prop||e.property,align:_,headerAlign:c,showOverflowTooltip:e.showOverflowTooltip,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:x,index:e.index,rawColumnKey:n.vnode.key};let B=b(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"]);B=uU(S,B),B=fU(m,h,g)(B),r.value=B,s(),o()}),Lt(()=>{var T;const x=d.value,S=u.value?x.vnode.el.children:(T=x.refs.hiddenColumns)==null?void 0:T.children,E=()=>v(S||[],n.vnode.el);r.value.getColumnIndex=E,E()>-1&&i.value.store.commit("insertColumn",r.value,u.value?x.columnConfig.value:null,y)}),Mn(()=>{i.value.store.commit("removeColumn",r.value,u.value?C.columnConfig.value:null,y)}),n.columnId=a.value,n.columnConfig=r},render(){var e,t,n;try{const r=(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1}),i=[];if(Array.isArray(r))for(const o of r)((n=o.type)==null?void 0:n.name)==="ElTableColumn"||o.shapeFlag&2?i.push(o):o.type===ot&&Array.isArray(o.children)&&o.children.forEach(a=>{(a==null?void 0:a.patchFlag)!==1024&&!gt(a==null?void 0:a.children)&&i.push(a)});return Ge("div",i)}catch{return Ge("div",[])}}});const J2=$n(QU,{TableColumn:X2}),Z2=Oi(X2);const c7=mD(),f7=DF(c7),d7=L("button",{class:"border-none w-full bg-transparent cursor-pointer",style:{height:"var(--ep-menu-item-height)"}},[L("i",{"inline-flex":"",i:"dark:ep-moon ep-sunny"})],-1),h7={__name:"BaseHeader",setup(e){return(t,n)=>{const r=B9,i=N9;return K(),Ae(i,{class:"el-menu-demo",mode:"horizontal",router:!0},{default:D(()=>[z(r,{index:"/input"},{default:D(()=>[Z("SOCRATES")]),_:1}),z(r,{index:"/about"},{default:D(()=>[Z("About")]),_:1}),z(r,{index:"/help"},{default:D(()=>[Z("Help")]),_:1}),z(r,{index:"/contact"},{default:D(()=>[Z("Contact")]),_:1}),z(r,{h:"full",onClick:n[0]||(n[0]=s=>O(f7)())},{default:D(()=>[d7]),_:1})]),_:1})}}};/*! + * vue-router v4.2.1 + * (c) 2023 Eduardo San Martin Morote + * @license MIT + */const ba=typeof window<"u";function p7(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Ht=Object.assign;function Rp(e,t){const n={};for(const r in t){const i=t[r];n[r]=oi(i)?i.map(e):e(i)}return n}const Gl=()=>{},oi=Array.isArray,g7=/\/$/,m7=e=>e.replace(g7,"");function kp(e,t,n="/"){let r,i={},s="",o="";const a=t.indexOf("#");let u=t.indexOf("?");return a=0&&(u=-1),u>-1&&(r=t.slice(0,u),s=t.slice(u+1,a>-1?a:t.length),i=e(s)),a>-1&&(r=r||t.slice(0,a),o=t.slice(a,t.length)),r=_7(r??t,n),{fullPath:r+(s&&"?")+s+o,path:r,query:i,hash:o}}function v7(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function W1(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function b7(e,t,n){const r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&Ba(t.matched[r],n.matched[i])&&Q2(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Ba(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Q2(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!y7(e[n],t[n]))return!1;return!0}function y7(e,t){return oi(e)?V1(e,t):oi(t)?V1(t,e):e===t}function V1(e,t){return oi(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function _7(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),i=r[r.length-1];(i===".."||i===".")&&r.push("");let s=n.length-1,o,a;for(o=0;o1&&s--;else break;return n.slice(0,s).join("/")+"/"+r.slice(o-(o===r.length?1:0)).join("/")}var xu;(function(e){e.pop="pop",e.push="push"})(xu||(xu={}));var Xl;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Xl||(Xl={}));function w7(e){if(!e)if(ba){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),m7(e)}const x7=/^[^#]+#/;function C7(e,t){return e.replace(x7,"#")+t}function S7(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const jd=()=>({left:window.pageXOffset,top:window.pageYOffset});function O7(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=S7(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function j1(e,t){return(history.state?history.state.position-t:-1)+e}const Bg=new Map;function E7(e,t){Bg.set(e,t)}function M7(e){const t=Bg.get(e);return Bg.delete(e),t}let T7=()=>location.protocol+"//"+location.host;function eO(e,t){const{pathname:n,search:r,hash:i}=t,s=e.indexOf("#");if(s>-1){let a=i.includes(e.slice(s))?e.slice(s).length:1,u=i.slice(a);return u[0]!=="/"&&(u="/"+u),W1(u,"")}return W1(n,e)+r+i}function A7(e,t,n,r){let i=[],s=[],o=null;const a=({state:g})=>{const m=eO(e,location),b=n.value,v=t.value;let _=0;if(g){if(n.value=m,t.value=g,o&&o===b){o=null;return}_=v?g.position-v.position:0}else r(m);i.forEach(y=>{y(n.value,b,{delta:_,type:xu.pop,direction:_?_>0?Xl.forward:Xl.back:Xl.unknown})})};function u(){o=n.value}function c(g){i.push(g);const m=()=>{const b=i.indexOf(g);b>-1&&i.splice(b,1)};return s.push(m),m}function d(){const{history:g}=window;g.state&&g.replaceState(Ht({},g.state,{scroll:jd()}),"")}function h(){for(const g of s)g();s=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",d,{passive:!0}),{pauseListeners:u,listen:c,destroy:h}}function U1(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?jd():null}}function P7(e){const{history:t,location:n}=window,r={value:eO(e,n)},i={value:t.state};i.value||s(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(u,c,d){const h=e.indexOf("#"),g=h>-1?(n.host&&document.querySelector("base")?e:e.slice(h))+u:T7()+e+u;try{t[d?"replaceState":"pushState"](c,"",g),i.value=c}catch(m){console.error(m),n[d?"replace":"assign"](g)}}function o(u,c){const d=Ht({},t.state,U1(i.value.back,u,i.value.forward,!0),c,{position:i.value.position});s(u,d,!0),r.value=u}function a(u,c){const d=Ht({},i.value,t.state,{forward:u,scroll:jd()});s(d.current,d,!0);const h=Ht({},U1(r.value,u,null),{position:d.position+1},c);s(u,h,!1),r.value=u}return{location:r,state:i,push:a,replace:o}}function R7(e){e=w7(e);const t=P7(e),n=A7(e,t.state,t.location,t.replace);function r(s,o=!0){o||n.pauseListeners(),history.go(s)}const i=Ht({location:"",base:e,go:r,createHref:C7.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function k7(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),R7(e)}function L7(e){return typeof e=="string"||e&&typeof e=="object"}function tO(e){return typeof e=="string"||typeof e=="symbol"}const _s={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},nO=Symbol("");var K1;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(K1||(K1={}));function za(e,t){return Ht(new Error,{type:e,[nO]:!0},t)}function Ni(e,t){return e instanceof Error&&nO in e&&(t==null||!!(e.type&t))}const q1="[^/]+?",I7={sensitive:!1,strict:!1,start:!0,end:!0},$7=/[.+*?^${}()[\]/\\]/g;function F7(e,t){const n=Ht({},I7,t),r=[];let i=n.start?"^":"";const s=[];for(const c of e){const d=c.length?[]:[90];n.strict&&!c.length&&(i+="/");for(let h=0;ht.length?t.length===1&&t[0]===40+40?1:-1:0}function N7(e,t){let n=0;const r=e.score,i=t.score;for(;n0&&t[t.length-1]<0}const B7={type:0,value:""},z7=/[a-zA-Z0-9_]/;function H7(e){if(!e)return[[]];if(e==="/")return[[B7]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${n})/"${c}": ${m}`)}let n=0,r=n;const i=[];let s;function o(){s&&i.push(s),s=[]}let a=0,u,c="",d="";function h(){c&&(n===0?s.push({type:0,value:c}):n===1||n===2||n===3?(s.length>1&&(u==="*"||u==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:c,regexp:d,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):t("Invalid state to consume buffer"),c="")}function g(){c+=u}for(;a{o(C)}:Gl}function o(d){if(tO(d)){const h=r.get(d);h&&(r.delete(d),n.splice(n.indexOf(h),1),h.children.forEach(o),h.alias.forEach(o))}else{const h=n.indexOf(d);h>-1&&(n.splice(h,1),d.record.name&&r.delete(d.record.name),d.children.forEach(o),d.alias.forEach(o))}}function a(){return n}function u(d){let h=0;for(;h=0&&(d.record.path!==n[h].record.path||!rO(d,n[h]));)h++;n.splice(h,0,d),d.record.name&&!X1(d)&&r.set(d.record.name,d)}function c(d,h){let g,m={},b,v;if("name"in d&&d.name){if(g=r.get(d.name),!g)throw za(1,{location:d});v=g.record.name,m=Ht(G1(h.params,g.keys.filter(C=>!C.optional).map(C=>C.name)),d.params&&G1(d.params,g.keys.map(C=>C.name))),b=g.stringify(m)}else if("path"in d)b=d.path,g=n.find(C=>C.re.test(b)),g&&(m=g.parse(b),v=g.record.name);else{if(g=h.name?r.get(h.name):n.find(C=>C.re.test(h.path)),!g)throw za(1,{location:d,currentLocation:h});v=g.record.name,m=Ht({},h.params,d.params),b=g.stringify(m)}const _=[];let y=g;for(;y;)_.unshift(y.record),y=y.parent;return{name:v,path:b,params:m,matched:_,meta:K7(_)}}return e.forEach(d=>s(d)),{addRoute:s,resolve:c,removeRoute:o,getRoutes:a,getRecordMatcher:i}}function G1(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function j7(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:U7(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function U7(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="boolean"?n:n[r];return t}function X1(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function K7(e){return e.reduce((t,n)=>Ht(t,n.meta),{})}function J1(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function rO(e,t){return t.children.some(n=>n===e||rO(e,n))}const iO=/#/g,q7=/&/g,Y7=/\//g,G7=/=/g,X7=/\?/g,sO=/\+/g,J7=/%5B/g,Z7=/%5D/g,oO=/%5E/g,Q7=/%60/g,aO=/%7B/g,eK=/%7C/g,lO=/%7D/g,tK=/%20/g;function Ev(e){return encodeURI(""+e).replace(eK,"|").replace(J7,"[").replace(Z7,"]")}function nK(e){return Ev(e).replace(aO,"{").replace(lO,"}").replace(oO,"^")}function zg(e){return Ev(e).replace(sO,"%2B").replace(tK,"+").replace(iO,"%23").replace(q7,"%26").replace(Q7,"`").replace(aO,"{").replace(lO,"}").replace(oO,"^")}function rK(e){return zg(e).replace(G7,"%3D")}function iK(e){return Ev(e).replace(iO,"%23").replace(X7,"%3F")}function sK(e){return e==null?"":iK(e).replace(Y7,"%2F")}function ad(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function oK(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;is&&zg(s)):[r&&zg(r)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function aK(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=oi(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return t}const lK=Symbol(""),Q1=Symbol(""),Mv=Symbol(""),uO=Symbol(""),Hg=Symbol("");function Cl(){let e=[];function t(r){return e.push(r),()=>{const i=e.indexOf(r);i>-1&&e.splice(i,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function Es(e,t,n,r,i){const s=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((o,a)=>{const u=h=>{h===!1?a(za(4,{from:n,to:t})):h instanceof Error?a(h):L7(h)?a(za(2,{from:t,to:h})):(s&&r.enterCallbacks[i]===s&&typeof h=="function"&&s.push(h),o())},c=e.call(r&&r.instances[i],t,n,u);let d=Promise.resolve(c);e.length<3&&(d=d.then(u)),d.catch(h=>a(h))})}function Lp(e,t,n,r){const i=[];for(const s of e)for(const o in s.components){let a=s.components[o];if(!(t!=="beforeRouteEnter"&&!s.instances[o]))if(uK(a)){const c=(a.__vccOpts||a)[t];c&&i.push(Es(c,n,r,s,o))}else{let u=a();i.push(()=>u.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${s.path}"`));const d=p7(c)?c.default:c;s.components[o]=d;const g=(d.__vccOpts||d)[t];return g&&Es(g,n,r,s,o)()}))}}return i}function uK(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function ew(e){const t=qe(Mv),n=qe(uO),r=H(()=>t.resolve(O(e.to))),i=H(()=>{const{matched:u}=r.value,{length:c}=u,d=u[c-1],h=n.matched;if(!d||!h.length)return-1;const g=h.findIndex(Ba.bind(null,d));if(g>-1)return g;const m=tw(u[c-2]);return c>1&&tw(d)===m&&h[h.length-1].path!==m?h.findIndex(Ba.bind(null,u[c-2])):g}),s=H(()=>i.value>-1&&hK(n.params,r.value.params)),o=H(()=>i.value>-1&&i.value===n.matched.length-1&&Q2(n.params,r.value.params));function a(u={}){return dK(u)?t[O(e.replace)?"replace":"push"](O(e.to)).catch(Gl):Promise.resolve()}return{route:r,href:H(()=>r.value.href),isActive:s,isExactActive:o,navigate:a}}const cK=De({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:ew,setup(e,{slots:t}){const n=vn(ew(e)),{options:r}=qe(Mv),i=H(()=>({[nw(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[nw(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const s=t.default&&t.default(n);return e.custom?s:Ge("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},s)}}}),fK=cK;function dK(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function hK(e,t){for(const n in t){const r=t[n],i=e[n];if(typeof r=="string"){if(r!==i)return!1}else if(!oi(i)||i.length!==r.length||r.some((s,o)=>s!==i[o]))return!1}return!0}function tw(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const nw=(e,t,n)=>e??t??n,pK=De({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=qe(Hg),i=H(()=>e.route||r.value),s=qe(Q1,0),o=H(()=>{let c=O(s);const{matched:d}=i.value;let h;for(;(h=d[c])&&!h.components;)c++;return c}),a=H(()=>i.value.matched[o.value]);sn(Q1,H(()=>o.value+1)),sn(lK,a),sn(Hg,i);const u=X();return Ie(()=>[u.value,a.value,e.name],([c,d,h],[g,m,b])=>{d&&(d.instances[h]=c,m&&m!==d&&c&&c===g&&(d.leaveGuards.size||(d.leaveGuards=m.leaveGuards),d.updateGuards.size||(d.updateGuards=m.updateGuards))),c&&d&&(!m||!Ba(d,m)||!g)&&(d.enterCallbacks[h]||[]).forEach(v=>v(c))},{flush:"post"}),()=>{const c=i.value,d=e.name,h=a.value,g=h&&h.components[d];if(!g)return rw(n.default,{Component:g,route:c});const m=h.props[d],b=m?m===!0?c.params:typeof m=="function"?m(c):m:null,_=Ge(g,Ht({},b,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(h.instances[d]=null)},ref:u}));return rw(n.default,{Component:_,route:c})||_}}});function rw(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const cO=pK;function gK(e){const t=V7(e.routes,e),n=e.parseQuery||oK,r=e.stringifyQuery||Z1,i=e.history,s=Cl(),o=Cl(),a=Cl(),u=Fs(_s);let c=_s;ba&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=Rp.bind(null,Y=>""+Y),h=Rp.bind(null,sK),g=Rp.bind(null,ad);function m(Y,oe){let de,Oe;return tO(Y)?(de=t.getRecordMatcher(Y),Oe=oe):Oe=Y,t.addRoute(Oe,de)}function b(Y){const oe=t.getRecordMatcher(Y);oe&&t.removeRoute(oe)}function v(){return t.getRoutes().map(Y=>Y.record)}function _(Y){return!!t.getRecordMatcher(Y)}function y(Y,oe){if(oe=Ht({},oe||u.value),typeof Y=="string"){const q=kp(n,Y,oe.path),se=t.resolve({path:q.path},oe),he=i.createHref(q.fullPath);return Ht(q,se,{params:g(se.params),hash:ad(q.hash),redirectedFrom:void 0,href:he})}let de;if("path"in Y)de=Ht({},Y,{path:kp(n,Y.path,oe.path).path});else{const q=Ht({},Y.params);for(const se in q)q[se]==null&&delete q[se];de=Ht({},Y,{params:h(q)}),oe.params=h(oe.params)}const Oe=t.resolve(de,oe),We=Y.hash||"";Oe.params=d(g(Oe.params));const F=v7(r,Ht({},Y,{hash:nK(We),path:Oe.path})),W=i.createHref(F);return Ht({fullPath:F,hash:We,query:r===Z1?aK(Y.query):Y.query||{}},Oe,{redirectedFrom:void 0,href:W})}function C(Y){return typeof Y=="string"?kp(n,Y,u.value.path):Ht({},Y)}function T(Y,oe){if(c!==Y)return za(8,{from:oe,to:Y})}function x(Y){return A(Y)}function S(Y){return x(Ht(C(Y),{replace:!0}))}function E(Y){const oe=Y.matched[Y.matched.length-1];if(oe&&oe.redirect){const{redirect:de}=oe;let Oe=typeof de=="function"?de(Y):de;return typeof Oe=="string"&&(Oe=Oe.includes("?")||Oe.includes("#")?Oe=C(Oe):{path:Oe},Oe.params={}),Ht({query:Y.query,hash:Y.hash,params:"path"in Oe?{}:Y.params},Oe)}}function A(Y,oe){const de=c=y(Y),Oe=u.value,We=Y.state,F=Y.force,W=Y.replace===!0,q=E(de);if(q)return A(Ht(C(q),{state:typeof q=="object"?Ht({},We,q.state):We,force:F,replace:W}),oe||de);const se=de;se.redirectedFrom=oe;let he;return!F&&b7(r,Oe,de)&&(he=za(16,{to:se,from:Oe}),Ee(Oe,Oe,!0,!1)),(he?Promise.resolve(he):B(se,Oe)).catch(ge=>Ni(ge)?Ni(ge,2)?ge:ye(ge):ie(ge,se,Oe)).then(ge=>{if(ge){if(Ni(ge,2))return A(Ht({replace:W},C(ge.to),{state:typeof ge.to=="object"?Ht({},We,ge.to.state):We,force:F}),oe||se)}else ge=P(se,Oe,!0,W,We);return V(se,Oe,ge),ge})}function R(Y,oe){const de=T(Y,oe);return de?Promise.reject(de):Promise.resolve()}function $(Y){const oe=le.values().next().value;return oe&&typeof oe.runWithContext=="function"?oe.runWithContext(Y):Y()}function B(Y,oe){let de;const[Oe,We,F]=mK(Y,oe);de=Lp(Oe.reverse(),"beforeRouteLeave",Y,oe);for(const q of Oe)q.leaveGuards.forEach(se=>{de.push(Es(se,Y,oe))});const W=R.bind(null,Y,oe);return de.push(W),Ne(de).then(()=>{de=[];for(const q of s.list())de.push(Es(q,Y,oe));return de.push(W),Ne(de)}).then(()=>{de=Lp(We,"beforeRouteUpdate",Y,oe);for(const q of We)q.updateGuards.forEach(se=>{de.push(Es(se,Y,oe))});return de.push(W),Ne(de)}).then(()=>{de=[];for(const q of Y.matched)if(q.beforeEnter&&!oe.matched.includes(q))if(oi(q.beforeEnter))for(const se of q.beforeEnter)de.push(Es(se,Y,oe));else de.push(Es(q.beforeEnter,Y,oe));return de.push(W),Ne(de)}).then(()=>(Y.matched.forEach(q=>q.enterCallbacks={}),de=Lp(F,"beforeRouteEnter",Y,oe),de.push(W),Ne(de))).then(()=>{de=[];for(const q of o.list())de.push(Es(q,Y,oe));return de.push(W),Ne(de)}).catch(q=>Ni(q,8)?q:Promise.reject(q))}function V(Y,oe,de){for(const Oe of a.list())$(()=>Oe(Y,oe,de))}function P(Y,oe,de,Oe,We){const F=T(Y,oe);if(F)return F;const W=oe===_s,q=ba?history.state:{};de&&(Oe||W?i.replace(Y.fullPath,Ht({scroll:W&&q&&q.scroll},We)):i.push(Y.fullPath,We)),u.value=Y,Ee(Y,oe,de,W),ye()}let j;function ue(){j||(j=i.listen((Y,oe,de)=>{if(!Ye.listening)return;const Oe=y(Y),We=E(Oe);if(We){A(Ht(We,{replace:!0}),Oe).catch(Gl);return}c=Oe;const F=u.value;ba&&E7(j1(F.fullPath,de.delta),jd()),B(Oe,F).catch(W=>Ni(W,12)?W:Ni(W,2)?(A(W.to,Oe).then(q=>{Ni(q,20)&&!de.delta&&de.type===xu.pop&&i.go(-1,!1)}).catch(Gl),Promise.reject()):(de.delta&&i.go(-de.delta,!1),ie(W,Oe,F))).then(W=>{W=W||P(Oe,F,!1),W&&(de.delta&&!Ni(W,8)?i.go(-de.delta,!1):de.type===xu.pop&&Ni(W,20)&&i.go(-1,!1)),V(Oe,F,W)}).catch(Gl)}))}let ce=Cl(),ne=Cl(),Q;function ie(Y,oe,de){ye(Y);const Oe=ne.list();return Oe.length?Oe.forEach(We=>We(Y,oe,de)):console.error(Y),Promise.reject(Y)}function ee(){return Q&&u.value!==_s?Promise.resolve():new Promise((Y,oe)=>{ce.add([Y,oe])})}function ye(Y){return Q||(Q=!Y,ue(),ce.list().forEach(([oe,de])=>Y?de(Y):oe()),ce.reset()),Y}function Ee(Y,oe,de,Oe){const{scrollBehavior:We}=e;if(!ba||!We)return Promise.resolve();const F=!de&&M7(j1(Y.fullPath,0))||(Oe||!de)&&history.state&&history.state.scroll||null;return vt().then(()=>We(Y,oe,F)).then(W=>W&&O7(W)).catch(W=>ie(W,Y,oe))}const ke=Y=>i.go(Y);let Ze;const le=new Set,Ye={currentRoute:u,listening:!0,addRoute:m,removeRoute:b,hasRoute:_,getRoutes:v,resolve:y,options:e,push:x,replace:S,go:ke,back:()=>ke(-1),forward:()=>ke(1),beforeEach:s.add,beforeResolve:o.add,afterEach:a.add,onError:ne.add,isReady:ee,install(Y){const oe=this;Y.component("RouterLink",fK),Y.component("RouterView",cO),Y.config.globalProperties.$router=oe,Object.defineProperty(Y.config.globalProperties,"$route",{enumerable:!0,get:()=>O(u)}),ba&&!Ze&&u.value===_s&&(Ze=!0,x(i.location).catch(We=>{}));const de={};for(const We in _s)de[We]=H(()=>u.value[We]);Y.provide(Mv,oe),Y.provide(uO,vn(de)),Y.provide(Hg,u);const Oe=Y.unmount;le.add(Y),Y.unmount=function(){le.delete(Y),le.size<1&&(c=_s,j&&j(),j=null,u.value=_s,Ze=!1,Q=!1),Oe()}}};function Ne(Y){return Y.reduce((oe,de)=>oe.then(()=>$(de)),Promise.resolve())}return Ye}function mK(e,t){const n=[],r=[],i=[],s=Math.max(t.matched.length,e.matched.length);for(let o=0;oBa(c,a))?r.push(a):n.push(a));const u=e.matched[o];u&&(t.matched.find(c=>Ba(c,u))||i.push(u))}return[n,r,i]}const vK=De({__name:"App",setup(e){return(t,n)=>{const r=h7,i=cH;return K(),Ae(i,{namespace:"ep"},{default:D(()=>[z(r),z(O(cO))]),_:1})}}});const ju=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},bK=ju(vK,[["__scopeId","data-v-aa3fa0a7"]]);const yK={},_K={class:"mx-4"},wK=L("h2",{class:"center",style:{"word-break":"break-all"}}," ",-1),xK=L("div",{class:"col-md-1"},null,-1),CK=L("div",{class:"col-md-9"},[L("div",{class:"basic-form"},[L("h3",{class:"center text-3xl"},[Z("S.O.C.R.A.T.E.S."),L("br"),Z("Soil Organic Carbon Reserves And Transformations in EcoSystems")])])],-1),SK=L("div",{class:"row"},[L("div",{class:"col-md-1"}),L("div",{class:"col-md-9"},[L("div",{class:"basic-form border-noshadow"},[L("h4",{class:"text-1xl"},"A simple model for predicting long-term changes in soil organic carbon in terrestrial ecosystems"),L("p",null,"The maintenance of soil organic carbon (SOC) in terrestrial ecosystems is critical for long-term productivity."),L("p",null,"Simulation models of SOC dynamics are valuable tools in predicting the impacts of climate on carbon storage and developing management strategies for the mitigation of greenhouse gas emissions, however, their utility is generally reduced due to need for specific data. "),L("p",null,"The SOCRATES model is a simple process based representation of SOC dynamics in terrestrial ecosystems, which requires minimal data inputs and specifically designed to examine the impact of land use and land use change on soil carbon storage. It also contains a simple yield calculator."),L("p",null,[Z("SOCRATES was successful in predicting SOC change at eighteen long-term non-irrigated crop, pasture and forestry trials from North America, Europe and Australasia. These trials ranged from 8 to 86 years in duration, over a wide range of climates and soil types. See "),L("a",{target:"_blank",rel:"noreferrer noopener",href:"http://doi.org/10.1016/j.soilbio.2005.09.013"},"Grace et al (2006) SOCRATES—a simple model for predicting long-term changes in soil organic carbon in terrestrial ecosystems. Soil Biology and Biochemistry, 38, 1172-1176.")])])])],-1);function OK(e,t){const n=os,r=ui;return K(),_e("div",_K,[z(r,{gutter:20,class:"flex flex-col justify-center items-center"},{default:D(()=>[z(n,{span:24,xl:20,lg:20,md:24,sm:24,xs:24},{default:D(()=>[wK]),_:1}),z(n,{xl:20,lg:20,md:20,sm:24,xs:24},{default:D(()=>[xK,CK,SK]),_:1})]),_:1})])}const fO=ju(yK,[["render",OK]]),EK={};function MK(e,t){const n=fO,r=d2,i=Yt("router-link"),s=ui,o=os;return K(),Ae(s,null,{default:D(()=>[z(o,{xl:20,lg:20,md:20,sm:24,xs:24},{default:D(()=>[z(n),z(s,{class:"m-4 p-4"},{default:D(()=>[z(i,{to:"/input"},{default:D(({href:a,route:u,navigate:c})=>[z(r,{href:a,onClick:c,class:"btn btn-custom btn-lg btn-block",role:"button"},{default:D(()=>[Z("Start Model ")]),_:2},1032,["href","onClick"])]),_:1})]),_:1})]),_:1})]),_:1})}const TK=ju(EK,[["render",MK]]);/*! + * @kurkle/color v0.3.2 + * https://github.com/kurkle/color#readme + * (c) 2023 Jukka Kurkela + * Released under the MIT License + */function Uu(e){return e+.5|0}const As=(e,t,n)=>Math.max(Math.min(e,n),t);function kl(e){return As(Uu(e*2.55),0,255)}function Bs(e){return As(Uu(e*255),0,255)}function qi(e){return As(Uu(e/2.55)/100,0,1)}function iw(e){return As(Uu(e*100),0,100)}const Fr={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Wg=[..."0123456789ABCDEF"],AK=e=>Wg[e&15],PK=e=>Wg[(e&240)>>4]+Wg[e&15],tf=e=>(e&240)>>4===(e&15),RK=e=>tf(e.r)&&tf(e.g)&&tf(e.b)&&tf(e.a);function kK(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&Fr[e[1]]*17,g:255&Fr[e[2]]*17,b:255&Fr[e[3]]*17,a:t===5?Fr[e[4]]*17:255}:(t===7||t===9)&&(n={r:Fr[e[1]]<<4|Fr[e[2]],g:Fr[e[3]]<<4|Fr[e[4]],b:Fr[e[5]]<<4|Fr[e[6]],a:t===9?Fr[e[7]]<<4|Fr[e[8]]:255})),n}const LK=(e,t)=>e<255?t(e):"";function IK(e){var t=RK(e)?AK:PK;return e?"#"+t(e.r)+t(e.g)+t(e.b)+LK(e.a,t):void 0}const $K=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function dO(e,t,n){const r=t*Math.min(n,1-n),i=(s,o=(s+e/30)%12)=>n-r*Math.max(Math.min(o-3,9-o,1),-1);return[i(0),i(8),i(4)]}function FK(e,t,n){const r=(i,s=(i+e/60)%6)=>n-n*t*Math.max(Math.min(s,4-s,1),0);return[r(5),r(3),r(1)]}function DK(e,t,n){const r=dO(e,1,.5);let i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)r[i]*=1-t-n,r[i]+=t;return r}function NK(e,t,n,r,i){return e===i?(t-n)/r+(t.5?d/(2-s-o):d/(s+o),u=NK(n,r,i,d,s),u=u*60+.5),[u|0,c||0,a]}function Av(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(Bs)}function Pv(e,t,n){return Av(dO,e,t,n)}function BK(e,t,n){return Av(DK,e,t,n)}function zK(e,t,n){return Av(FK,e,t,n)}function hO(e){return(e%360+360)%360}function HK(e){const t=$K.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?kl(+t[5]):Bs(+t[5]));const i=hO(+t[2]),s=+t[3]/100,o=+t[4]/100;return t[1]==="hwb"?r=BK(i,s,o):t[1]==="hsv"?r=zK(i,s,o):r=Pv(i,s,o),{r:r[0],g:r[1],b:r[2],a:n}}function WK(e,t){var n=Tv(e);n[0]=hO(n[0]+t),n=Pv(n),e.r=n[0],e.g=n[1],e.b=n[2]}function VK(e){if(!e)return;const t=Tv(e),n=t[0],r=iw(t[1]),i=iw(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${qi(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}const sw={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},ow={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function jK(){const e={},t=Object.keys(ow),n=Object.keys(sw);let r,i,s,o,a;for(r=0;r>16&255,s>>8&255,s&255]}return e}let nf;function UK(e){nf||(nf=jK(),nf.transparent=[0,0,0,0]);const t=nf[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const KK=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function qK(e){const t=KK.exec(e);let n=255,r,i,s;if(t){if(t[7]!==r){const o=+t[7];n=t[8]?kl(o):As(o*255,0,255)}return r=+t[1],i=+t[3],s=+t[5],r=255&(t[2]?kl(r):As(r,0,255)),i=255&(t[4]?kl(i):As(i,0,255)),s=255&(t[6]?kl(s):As(s,0,255)),{r,g:i,b:s,a:n}}}function YK(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${qi(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const Ip=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,pa=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function GK(e,t,n){const r=pa(qi(e.r)),i=pa(qi(e.g)),s=pa(qi(e.b));return{r:Bs(Ip(r+n*(pa(qi(t.r))-r))),g:Bs(Ip(i+n*(pa(qi(t.g))-i))),b:Bs(Ip(s+n*(pa(qi(t.b))-s))),a:e.a+n*(t.a-e.a)}}function rf(e,t,n){if(e){let r=Tv(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=Pv(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function pO(e,t){return e&&Object.assign(t||{},e)}function aw(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=Bs(e[3]))):(t=pO(e,{r:0,g:0,b:0,a:1}),t.a=Bs(t.a)),t}function XK(e){return e.charAt(0)==="r"?qK(e):HK(e)}class Cu{constructor(t){if(t instanceof Cu)return t;const n=typeof t;let r;n==="object"?r=aw(t):n==="string"&&(r=kK(t)||UK(t)||XK(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=pO(this._rgb);return t&&(t.a=qi(t.a)),t}set rgb(t){this._rgb=aw(t)}rgbString(){return this._valid?YK(this._rgb):void 0}hexString(){return this._valid?IK(this._rgb):void 0}hslString(){return this._valid?VK(this._rgb):void 0}mix(t,n){if(t){const r=this.rgb,i=t.rgb;let s;const o=n===s?.5:n,a=2*o-1,u=r.a-i.a,c=((a*u===-1?a:(a+u)/(1+a*u))+1)/2;s=1-c,r.r=255&c*r.r+s*i.r+.5,r.g=255&c*r.g+s*i.g+.5,r.b=255&c*r.b+s*i.b+.5,r.a=o*r.a+(1-o)*i.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=GK(this._rgb,t._rgb,n)),this}clone(){return new Cu(this.rgb)}alpha(t){return this._rgb.a=Bs(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=Uu(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return rf(this._rgb,2,t),this}darken(t){return rf(this._rgb,2,-t),this}saturate(t){return rf(this._rgb,1,t),this}desaturate(t){return rf(this._rgb,1,-t),this}rotate(t){return WK(this._rgb,t),this}}/*! + * Chart.js v4.3.0 + * https://www.chartjs.org + * (c) 2023 Chart.js Contributors + * Released under the MIT License + */function Bi(){}const JK=(()=>{let e=0;return()=>e++})();function Rt(e){return e===null||typeof e>"u"}function Qt(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function Tt(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function cn(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function _r(e,t){return cn(e)?e:t}function pt(e,t){return typeof e>"u"?t:e}const ZK=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,gO=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function qt(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function Wt(e,t,n,r){let i,s,o;if(Qt(e))if(s=e.length,r)for(i=s-1;i>=0;i--)t.call(n,e[i],i);else for(i=0;ie,x:e=>e.x,y:e=>e.y};function tq(e){const t=e.split("."),n=[];let r="";for(const i of t)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function nq(e){const t=tq(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function Ks(e,t){return(lw[t]||(lw[t]=nq(t)))(e)}function Rv(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Ou=e=>typeof e<"u",qs=e=>typeof e=="function",uw=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function rq(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const on=Math.PI,en=2*on,iq=en+on,cd=Number.POSITIVE_INFINITY,sq=on/180,fn=on/2,fo=on/4,cw=on*2/3,Ps=Math.log10,wi=Math.sign;function Zl(e,t,n){return Math.abs(e-t)i-s).pop(),t}function Ha(e){return!isNaN(parseFloat(e))&&isFinite(e)}function aq(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function vO(e,t,n){let r,i,s;for(r=0,i=e.length;ru&&c=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function Lv(e,t,n){n=n||(o=>e[o]1;)s=i+r>>1,n(s)?i=s:r=s;return{lo:i,hi:r}}const Gi=(e,t,n,r)=>Lv(e,n,r?i=>{const s=e[i][t];return se[i][t]Lv(e,n,r=>e[r][t]>=n);function fq(e,t,n){let r=0,i=e.length;for(;rr&&e[i-1]>n;)i--;return r>0||i{const r="_onData"+Rv(n),i=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...s){const o=i.apply(this,s);return e._chartjs.listeners.forEach(a=>{typeof a[r]=="function"&&a[r](...s)}),o}})})}function hw(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(t);i!==-1&&r.splice(i,1),!(r.length>0)&&(yO.forEach(s=>{delete e[s]}),delete e._chartjs)}function _O(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const wO=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function xO(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,wO.call(window,()=>{r=!1,e.apply(t,n)}))}}function hq(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const Iv=e=>e==="start"?"left":e==="end"?"right":"center",Bn=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,pq=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t;function CO(e,t,n){const r=t.length;let i=0,s=r;if(e._sorted){const{iScale:o,_parsed:a}=e,u=o.axis,{min:c,max:d,minDefined:h,maxDefined:g}=o.getUserBounds();h&&(i=En(Math.min(Gi(a,o.axis,c).lo,n?r:Gi(t,u,o.getPixelForValue(c)).lo),0,r-1)),g?s=En(Math.max(Gi(a,o.axis,d,!0).hi+1,n?0:Gi(t,u,o.getPixelForValue(d),!0).hi+1),i,r)-i:s=r-i}return{start:i,count:s}}function SO(e){const{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;const s=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),s}const sf=e=>e===0||e===1,pw=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*en/n)),gw=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*en/n)+1,Ql={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*fn)+1,easeOutSine:e=>Math.sin(e*fn),easeInOutSine:e=>-.5*(Math.cos(on*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>sf(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>sf(e)?e:pw(e,.075,.3),easeOutElastic:e=>sf(e)?e:gw(e,.075,.3),easeInOutElastic(e){return sf(e)?e:e<.5?.5*pw(e*2,.1125,.45):.5+.5*gw(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-Ql.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?Ql.easeInBounce(e*2)*.5:Ql.easeOutBounce(e*2-1)*.5+.5};function $v(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function mw(e){return $v(e)?e:new Cu(e)}function $p(e){return $v(e)?e:new Cu(e).saturate(.5).darken(.1).hexString()}const gq=["x","y","borderWidth","radius","tension"],mq=["color","borderColor","backgroundColor"];function vq(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:mq},numbers:{type:"number",properties:gq}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function bq(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const vw=new Map;function yq(e,t){t=t||{};const n=e+JSON.stringify(t);let r=vw.get(n);return r||(r=new Intl.NumberFormat(e,t),vw.set(n,r)),r}function Ku(e,t,n){return yq(t,n).format(e)}const OO={values(e){return Qt(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const r=this.chart.options.locale;let i,s=e;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(i="scientific"),s=_q(e,n)}const o=Ps(Math.abs(s)),a=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),u={notation:i,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(u,this.options.ticks.format),Ku(e,r,u)},logarithmic(e,t,n){if(e===0)return"0";const r=n[t].significand||e/Math.pow(10,Math.floor(Ps(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?OO.numeric.call(this,e,t,n):""}};function _q(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var Ud={formatters:OO};function wq(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Ud.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const Wo=Object.create(null),jg=Object.create(null);function eu(e,t){if(!t)return e;const n=t.split(".");for(let r=0,i=n.length;rr.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,i)=>$p(i.backgroundColor),this.hoverBorderColor=(r,i)=>$p(i.borderColor),this.hoverColor=(r,i)=>$p(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return Fp(this,t,n)}get(t){return eu(this,t)}describe(t,n){return Fp(jg,t,n)}override(t,n){return Fp(Wo,t,n)}route(t,n,r,i){const s=eu(this,t),o=eu(this,r),a="_"+n;Object.defineProperties(s,{[a]:{value:s[n],writable:!0},[n]:{enumerable:!0,get(){const u=this[a],c=o[i];return Tt(u)?Object.assign({},c,u):pt(u,c)},set(u){this[a]=u}}})}apply(t){t.forEach(n=>n(this))}};var dn=new xq({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[vq,bq,wq]);function Cq(e){return!e||Rt(e.size)||Rt(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function fd(e,t,n,r,i){let s=t[i];return s||(s=t[i]=e.measureText(i).width,n.push(i)),s>r&&(r=s),r}function Sq(e,t,n,r){r=r||{};let i=r.data=r.data||{},s=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(i=r.data={},s=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let o=0;const a=n.length;let u,c,d,h,g;for(u=0;un.length){for(u=0;u0&&e.stroke()}}function Xi(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.xt.top-n&&e.y0&&s.strokeColor!=="";let u,c;for(e.save(),e.font=i.string,Mq(e,s),u=0;u+e||0;function Fv(e,t){const n={},r=Tt(t),i=r?Object.keys(t):t,s=Tt(e)?r?o=>pt(e[o],e[t[o]]):o=>e[o]:()=>e;for(const o of i)n[o]=Lq(s(o));return n}function MO(e){return Fv(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Do(e){return Fv(e,["topLeft","topRight","bottomLeft","bottomRight"])}function Kn(e){const t=MO(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function wn(e,t){e=e||{},t=t||dn.font;let n=pt(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=pt(e.style,t.style);r&&!(""+r).match(Rq)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:pt(e.family,t.family),lineHeight:kq(pt(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:pt(e.weight,t.weight),string:""};return i.string=Cq(i),i}function Ll(e,t,n,r){let i=!0,s,o,a;for(s=0,o=e.length;sn&&a===0?0:a+u;return{min:o(r,-Math.abs(s)),max:o(i,s)}}function Js(e,t){return Object.assign(Object.create(e),t)}function Dv(e,t=[""],n,r,i=()=>e[0]){const s=n||e;typeof r>"u"&&(r=RO("_fallback",e));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:s,_fallback:r,_getTarget:i,override:a=>Dv([a,...e],t,s,r)};return new Proxy(o,{deleteProperty(a,u){return delete a[u],delete a._keys,delete e[0][u],!0},get(a,u){return AO(a,u,()=>Wq(u,t,e,a))},getOwnPropertyDescriptor(a,u){return Reflect.getOwnPropertyDescriptor(a._scopes[0],u)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(a,u){return _w(a).includes(u)},ownKeys(a){return _w(a)},set(a,u,c){const d=a._storage||(a._storage=i());return a[u]=d[u]=c,delete a._keys,!0}})}function Wa(e,t,n,r){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:TO(e,r),setContext:s=>Wa(e,s,n,r),override:s=>Wa(e.override(s),t,n,r)};return new Proxy(i,{deleteProperty(s,o){return delete s[o],delete e[o],!0},get(s,o,a){return AO(s,o,()=>Fq(s,o,a))},getOwnPropertyDescriptor(s,o){return s._descriptors.allKeys?Reflect.has(e,o)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,o)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(s,o){return Reflect.has(e,o)},ownKeys(){return Reflect.ownKeys(e)},set(s,o,a){return e[o]=a,delete s[o],!0}})}function TO(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:qs(n)?n:()=>n,isIndexable:qs(r)?r:()=>r}}const $q=(e,t)=>e?e+Rv(t):t,Nv=(e,t)=>Tt(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function AO(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const r=n();return e[t]=r,r}function Fq(e,t,n){const{_proxy:r,_context:i,_subProxy:s,_descriptors:o}=e;let a=r[t];return qs(a)&&o.isScriptable(t)&&(a=Dq(t,a,e,n)),Qt(a)&&a.length&&(a=Nq(t,a,e,o.isIndexable)),Nv(t,a)&&(a=Wa(a,i,s&&s[t],o)),a}function Dq(e,t,n,r){const{_proxy:i,_context:s,_subProxy:o,_stack:a}=n;if(a.has(e))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+e);a.add(e);let u=t(s,o||r);return a.delete(e),Nv(e,u)&&(u=Bv(i._scopes,i,e,u)),u}function Nq(e,t,n,r){const{_proxy:i,_context:s,_subProxy:o,_descriptors:a}=n;if(typeof s.index<"u"&&r(e))return t[s.index%t.length];if(Tt(t[0])){const u=t,c=i._scopes.filter(d=>d!==u);t=[];for(const d of u){const h=Bv(c,i,e,d);t.push(Wa(h,s,o&&o[e],a))}}return t}function PO(e,t,n){return qs(e)?e(t,n):e}const Bq=(e,t)=>e===!0?t:typeof e=="string"?Ks(t,e):void 0;function zq(e,t,n,r,i){for(const s of t){const o=Bq(n,s);if(o){e.add(o);const a=PO(o._fallback,n,i);if(typeof a<"u"&&a!==n&&a!==r)return a}else if(o===!1&&typeof r<"u"&&n!==r)return null}return!1}function Bv(e,t,n,r){const i=t._rootScopes,s=PO(t._fallback,n,r),o=[...e,...i],a=new Set;a.add(r);let u=yw(a,o,n,s||n,r);return u===null||typeof s<"u"&&s!==n&&(u=yw(a,o,s,u,r),u===null)?!1:Dv(Array.from(a),[""],i,s,()=>Hq(t,n,r))}function yw(e,t,n,r,i){for(;n;)n=zq(e,t,n,r,i);return n}function Hq(e,t,n){const r=e._getTarget();t in r||(r[t]={});const i=r[t];return Qt(i)&&Tt(n)?n:i||{}}function Wq(e,t,n,r){let i;for(const s of t)if(i=RO($q(s,e),n),typeof i<"u")return Nv(e,i)?Bv(n,r,e,i):i}function RO(e,t){for(const n of t){if(!n)continue;const r=n[e];if(typeof r<"u")return r}}function _w(e){let t=e._keys;return t||(t=e._keys=Vq(e._scopes)),t}function Vq(e){const t=new Set;for(const n of e)for(const r of Object.keys(n).filter(i=>!i.startsWith("_")))t.add(r);return Array.from(t)}function kO(e,t,n,r){const{iScale:i}=e,{key:s="r"}=this._parsing,o=new Array(r);let a,u,c,d;for(a=0,u=r;ate==="x"?"y":"x";function Uq(e,t,n,r){const i=e.skip?t:e,s=t,o=n.skip?t:n,a=Vg(s,i),u=Vg(o,s);let c=a/(a+u),d=u/(a+u);c=isNaN(c)?0:c,d=isNaN(d)?0:d;const h=r*c,g=r*d;return{previous:{x:s.x-h*(o.x-i.x),y:s.y-h*(o.y-i.y)},next:{x:s.x+g*(o.x-i.x),y:s.y+g*(o.y-i.y)}}}function Kq(e,t,n){const r=e.length;let i,s,o,a,u,c=Va(e,0);for(let d=0;d!c.skip)),t.cubicInterpolationMode==="monotone")Yq(e,i);else{let c=r?e[e.length-1]:e[0];for(s=0,o=e.length;se.ownerDocument.defaultView.getComputedStyle(e,null);function Jq(e,t){return Yd(e).getPropertyValue(t)}const Zq=["top","right","bottom","left"];function No(e,t,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const s=Zq[i];r[s]=parseFloat(e[t+"-"+s+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const Qq=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function eY(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:s}=r;let o=!1,a,u;if(Qq(i,s,e.target))a=i,u=s;else{const c=t.getBoundingClientRect();a=r.clientX-c.left,u=r.clientY-c.top,o=!0}return{x:a,y:u,box:o}}function bo(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,i=Yd(n),s=i.boxSizing==="border-box",o=No(i,"padding"),a=No(i,"border","width"),{x:u,y:c,box:d}=eY(e,n),h=o.left+(d&&a.left),g=o.top+(d&&a.top);let{width:m,height:b}=t;return s&&(m-=o.width+a.width,b-=o.height+a.height),{x:Math.round((u-h)/m*n.width/r),y:Math.round((c-g)/b*n.height/r)}}function tY(e,t,n){let r,i;if(t===void 0||n===void 0){const s=zv(e);if(!s)t=e.clientWidth,n=e.clientHeight;else{const o=s.getBoundingClientRect(),a=Yd(s),u=No(a,"border","width"),c=No(a,"padding");t=o.width-c.width-u.width,n=o.height-c.height-u.height,r=dd(a.maxWidth,s,"clientWidth"),i=dd(a.maxHeight,s,"clientHeight")}}return{width:t,height:n,maxWidth:r||cd,maxHeight:i||cd}}const af=e=>Math.round(e*10)/10;function nY(e,t,n,r){const i=Yd(e),s=No(i,"margin"),o=dd(i.maxWidth,e,"clientWidth")||cd,a=dd(i.maxHeight,e,"clientHeight")||cd,u=tY(e,t,n);let{width:c,height:d}=u;if(i.boxSizing==="content-box"){const g=No(i,"border","width"),m=No(i,"padding");c-=m.width+g.width,d-=m.height+g.height}return c=Math.max(0,c-s.width),d=Math.max(0,r?c/r:d-s.height),c=af(Math.min(c,o,u.maxWidth)),d=af(Math.min(d,a,u.maxHeight)),c&&!d&&(d=af(c/2)),(t!==void 0||n!==void 0)&&r&&u.height&&d>u.height&&(d=u.height,c=af(Math.floor(d*r))),{width:c,height:d}}function ww(e,t,n){const r=t||1,i=Math.floor(e.height*r),s=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const o=e.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${e.height}px`,o.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||o.height!==i||o.width!==s?(e.currentDevicePixelRatio=r,o.height=i,o.width=s,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const rY=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch{}return e}();function xw(e,t){const n=Jq(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function yo(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function iY(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:r==="middle"?n<.5?e.y:t.y:r==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function sY(e,t,n,r){const i={x:e.cp2x,y:e.cp2y},s={x:t.cp1x,y:t.cp1y},o=yo(e,i,n),a=yo(i,s,n),u=yo(s,t,n),c=yo(o,a,n),d=yo(a,u,n);return yo(c,d,n)}const oY=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},aY=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function Ca(e,t,n){return e?oY(t,n):aY()}function $O(e,t){let n,r;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function FO(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function DO(e){return e==="angle"?{between:Eu,compare:lq,normalize:Cr}:{between:Yi,compare:(t,n)=>t-n,normalize:t=>t}}function Cw({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n===0,style:i}}function lY(e,t,n){const{property:r,start:i,end:s}=n,{between:o,normalize:a}=DO(r),u=t.length;let{start:c,end:d,loop:h}=e,g,m;if(h){for(c+=u,d+=u,g=0,m=u;gu(i,T,y)&&a(i,T)!==0,S=()=>a(s,y)===0||u(s,T,y),E=()=>v||x(),A=()=>!v||S();for(let R=d,$=d;R<=h;++R)C=t[R%o],!C.skip&&(y=c(C[r]),y!==T&&(v=u(y,i,s),_===null&&E()&&(_=a(y,i)===0?R:$),_!==null&&A()&&(b.push(Cw({start:_,end:R,loop:g,count:o,style:m})),_=null),$=R,T=y));return _!==null&&b.push(Cw({start:_,end:h,loop:g,count:o,style:m})),b}function BO(e,t){const n=[],r=e.segments;for(let i=0;ii&&e[s%t].skip;)s--;return s%=t,{start:i,end:s}}function cY(e,t,n,r){const i=e.length,s=[];let o=t,a=e[t],u;for(u=t+1;u<=n;++u){const c=e[u%i];c.skip||c.stop?a.skip||(r=!1,s.push({start:t%i,end:(u-1)%i,loop:r}),t=o=c.stop?u:null):(o=u,a.skip&&(t=u)),a=c}return o!==null&&s.push({start:t%i,end:o%i,loop:r}),s}function fY(e,t){const n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];const s=!!e._loop,{start:o,end:a}=uY(n,i,s,r);if(r===!0)return Sw(e,[{start:o,end:a,loop:s}],n,t);const u=aa({chart:t,initial:n.initial,numSteps:o,currentStep:Math.min(r-n.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=wO.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;const s=r.items;let o=s.length-1,a=!1,u;for(;o>=0;--o)u=s[o],u._active?(u._total>r.duration&&(r.duration=u._total),u.tick(t),a=!0):(s[o]=s[s.length-1],s.pop());a&&(i.draw(),this._notify(i,r,t,"progress")),s.length||(r.running=!1,this._notify(i,r,t,"complete"),r.initial=!1),n+=s.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,i)=>Math.max(r,i._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const r=n.items;let i=r.length-1;for(;i>=0;--i)r[i].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var Vi=new pY;const Ew="transparent",gY={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=mw(e||Ew),i=r.valid&&mw(t||Ew);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class mY{constructor(t,n,r,i){const s=n[r];i=Ll([t.to,i,s,t.from]);const o=Ll([t.from,s,i]);this._active=!0,this._fn=t.fn||gY[t.type||typeof o],this._easing=Ql[t.easing]||Ql.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=o,this._to=i,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);const i=this._target[this._prop],s=r-this._start,o=this._duration-s;this._start=r,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=s,this._loop=!!t.loop,this._to=Ll([t.to,n,i,t.from]),this._from=Ll([t.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,r=this._duration,i=this._prop,s=this._from,o=this._loop,a=this._to;let u;if(this._active=s!==a&&(o||n1?2-u:u,u=this._easing(Math.min(1,Math.max(0,u))),this._target[i]=this._fn(s,a,u)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){const n=t?"res":"rej",r=this._promises||[];for(let i=0;i{const s=t[i];if(!Tt(s))return;const o={};for(const a of n)o[a]=s[a];(Qt(s.properties)&&s.properties||[i]).forEach(a=>{(a===i||!r.has(a))&&r.set(a,o)})})}_animateOptions(t,n){const r=n.options,i=bY(t,r);if(!i)return[];const s=this._createAnimations(i,r);return r.$shared&&vY(t.options.$animations,r).then(()=>{t.options=r},()=>{}),s}_createAnimations(t,n){const r=this._properties,i=[],s=t.$animations||(t.$animations={}),o=Object.keys(n),a=Date.now();let u;for(u=o.length-1;u>=0;--u){const c=o[u];if(c.charAt(0)==="$")continue;if(c==="options"){i.push(...this._animateOptions(t,n));continue}const d=n[c];let h=s[c];const g=r.get(c);if(h)if(g&&h.active()){h.update(g,d,a);continue}else h.cancel();if(!g||!g.duration){t[c]=d;continue}s[c]=h=new mY(g,t,c,d),i.push(h)}return i}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const r=this._createAnimations(t,n);if(r.length)return Vi.add(this._chart,r),!0}}function vY(e,t){const n=[],r=Object.keys(t);for(let i=0;i0||!n&&s<0)return i.index}return null}function Rw(e,t){const{chart:n,_cachedMeta:r}=e,i=n._stacks||(n._stacks={}),{iScale:s,vScale:o,index:a}=r,u=s.axis,c=o.axis,d=xY(s,o,r),h=t.length;let g;for(let m=0;mn[r].axis===t).shift()}function OY(e,t){return Js(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function EY(e,t,n){return Js(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function Sl(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;for(const i of t){const s=i._stacks;if(!s||s[r]===void 0||s[r][n]===void 0)return;delete s[r][n],s[r]._visualValues!==void 0&&s[r]._visualValues[n]!==void 0&&delete s[r]._visualValues[n]}}}const Np=e=>e==="reset"||e==="none",kw=(e,t)=>t?e:Object.assign({},e),MY=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:HO(n,!0),values:null};class ni{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Aw(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Sl(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(h,g,m,b)=>h==="x"?g:h==="r"?b:m,s=n.xAxisID=pt(r.xAxisID,Dp(t,"x")),o=n.yAxisID=pt(r.yAxisID,Dp(t,"y")),a=n.rAxisID=pt(r.rAxisID,Dp(t,"r")),u=n.indexAxis,c=n.iAxisID=i(u,s,o,a),d=n.vAxisID=i(u,o,s,a);n.xScale=this.getScaleForId(s),n.yScale=this.getScaleForId(o),n.rScale=this.getScaleForId(a),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(d)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&hw(this._data,this),t._stacked&&Sl(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(Tt(n))this._data=wY(n);else if(r!==n){if(r){hw(r,this);const i=this._cachedMeta;Sl(i),i._parsed=[]}n&&Object.isExtensible(n)&&dq(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,r=this.getDataset();let i=!1;this._dataCheck();const s=n._stacked;n._stacked=Aw(n.vScale,n),n.stack!==r.stack&&(i=!0,Sl(n),n.stack=r.stack),this._resyncElements(t),(i||s!==n._stacked)&&Rw(this,n._parsed)}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:r,_data:i}=this,{iScale:s,_stacked:o}=r,a=s.axis;let u=t===0&&n===i.length?!0:r._sorted,c=t>0&&r._parsed[t-1],d,h,g;if(this._parsing===!1)r._parsed=i,r._sorted=!0,g=i;else{Qt(i[t])?g=this.parseArrayData(r,i,t,n):Tt(i[t])?g=this.parseObjectData(r,i,t,n):g=this.parsePrimitiveData(r,i,t,n);const m=()=>h[a]===null||c&&h[a]v||h=0;--g)if(!b()){this.updateRangeFromParsed(c,t,m,u);break}}return c}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let i,s,o;for(i=0,s=n.length;i=0&&tthis.getContext(r,i,n),v=c.resolveNamedOptions(g,m,b,h);return v.$shared&&(v.$shared=u,s[o]=Object.freeze(kw(v,u))),v}_resolveAnimations(t,n,r){const i=this.chart,s=this._cachedDataOpts,o=`animation-${n}`,a=s[o];if(a)return a;let u;if(i.options.animation!==!1){const d=this.chart.config,h=d.datasetAnimationScopeKeys(this._type,n),g=d.getOptionScopes(this.getDataset(),h);u=d.createResolver(g,this.getContext(t,r,n))}const c=new zO(i,u&&u.animations);return u&&u._cacheable&&(s[o]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||Np(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),i=this._sharedOptions,s=this.getSharedOptions(r),o=this.includeOptions(n,s)||s!==i;return this.updateSharedOptions(s,n,r),{sharedOptions:s,includeOptions:o}}updateElement(t,n,r,i){Np(i)?Object.assign(t,r):this._resolveAnimations(n,i).update(t,r)}updateSharedOptions(t,n,r){t&&!Np(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,i){t.active=i;const s=this.getStyle(n,i);this._resolveAnimations(n,r,i).update(t,{options:!i&&this.getSharedOptions(s)||s})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,r=this._cachedMeta.data;for(const[a,u,c]of this._syncList)this[a](u,c);this._syncList=[];const i=r.length,s=n.length,o=Math.min(s,i);o&&this.parse(0,o),s>i?this._insertElements(i,s-i,t):s{for(c.length+=n,a=c.length-1;a>=o;a--)c[a]=c[a-n]};for(u(s),a=t;ai-s))}return e._cache.$bar}function AY(e){const t=e.iScale,n=TY(t,e.type);let r=t._length,i,s,o,a;const u=()=>{o===32767||o===-32768||(Ou(a)&&(r=Math.min(r,Math.abs(o-a)||r)),a=o)};for(i=0,s=n.length;i0?i[e-1]:null,a=eMath.abs(a)&&(u=a,c=o),t[n.axis]=c,t._custom={barStart:u,barEnd:c,start:i,end:s,min:o,max:a}}function WO(e,t,n,r){return Qt(e)?kY(e,t,n,r):t[n.axis]=n.parse(e,r),t}function Lw(e,t,n,r){const i=e.iScale,s=e.vScale,o=i.getLabels(),a=i===s,u=[];let c,d,h,g;for(c=n,d=n+r;c=n?1:-1)}function IY(e){let t,n,r,i,s;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.baseu.controller.options.grouped),s=r.options.stacked,o=[],a=u=>{const c=u.controller.getParsed(n),d=c&&c[u.vScale.axis];if(Rt(d)||isNaN(d))return!0};for(const u of i)if(!(n!==void 0&&a(u))&&((s===!1||o.indexOf(u.stack)===-1||s===void 0&&u.stack===void 0)&&o.push(u.stack),u.index===t))break;return o.length||o.push(void 0),o}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,r){const i=this._getStacks(t,r),s=n!==void 0?i.indexOf(n):-1;return s===-1?i.length-1:s}_getRuler(){const t=this.options,n=this._cachedMeta,r=n.iScale,i=[];let s,o;for(s=0,o=n.data.length;s=0;--r)n=Math.max(n,t[r].size(this.resolveDataElementOptions(r))/2);return n>0&&n}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart.data.labels||[],{xScale:i,yScale:s}=n,o=this.getParsed(t),a=i.getLabelForValue(o.x),u=s.getLabelForValue(o.y),c=o._custom;return{label:r[t]||"",value:"("+a+", "+u+(c?", "+c:"")+")"}}update(t){const n=this._cachedMeta.data;this.updateElements(n,0,n.length,t)}updateElements(t,n,r,i){const s=i==="reset",{iScale:o,vScale:a}=this._cachedMeta,{sharedOptions:u,includeOptions:c}=this._getSharedOptions(n,i),d=o.axis,h=a.axis;for(let g=n;gEu(T,a,u,!0)?1:Math.max(x,x*n,S,S*n),b=(T,x,S)=>Eu(T,a,u,!0)?-1:Math.min(x,x*n,S,S*n),v=m(0,c,h),_=m(fn,d,g),y=b(on,c,h),C=b(on+fn,d,g);r=(v-y)/2,i=(_-C)/2,s=-(v+y)/2,o=-(_+C)/2}return{ratioX:r,ratioY:i,offsetX:s,offsetY:o}}class Ro extends ni{constructor(t,n){super(t,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){const r=this.getDataset().data,i=this._cachedMeta;if(this._parsing===!1)i._parsed=r;else{let s=u=>+r[u];if(Tt(r[t])){const{key:u="value"}=this._parsing;s=c=>+Ks(r[c],u)}let o,a;for(o=t,a=t+n;o0&&!isNaN(t)?en*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],s=Ku(n._parsed[t],r.options.locale);return{label:i[t]||"",value:s}}getMaxBorderWidth(t){let n=0;const r=this.chart;let i,s,o,a,u;if(!t){for(i=0,s=r.data.datasets.length;it!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),Re(Ro,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:r,color:i}}=t.legend.options;return n.labels.map((s,o)=>{const u=t.getDatasetMeta(0).controller.getStyle(o);return{text:s,fillStyle:u.backgroundColor,strokeStyle:u.borderColor,fontColor:i,lineWidth:u.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(o),index:o}})}return[]}},onClick(t,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}}});class $f extends ni{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:r,data:i=[],_dataset:s}=n,o=this.chart._animationsDisabled;let{start:a,count:u}=CO(n,i,o);this._drawStart=a,this._drawCount=u,SO(n)&&(a=0,u=i.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!s._decimated,r.points=i;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(r,void 0,{animated:!o,options:c},t),this.updateElements(i,a,u,t)}updateElements(t,n,r,i){const s=i==="reset",{iScale:o,vScale:a,_stacked:u,_dataset:c}=this._cachedMeta,{sharedOptions:d,includeOptions:h}=this._getSharedOptions(n,i),g=o.axis,m=a.axis,{spanGaps:b,segment:v}=this.options,_=Ha(b)?b:Number.POSITIVE_INFINITY,y=this.chart._animationsDisabled||s||i==="none",C=n+r,T=t.length;let x=n>0&&this.getParsed(n-1);for(let S=0;S=C){A.skip=!0;continue}const R=this.getParsed(S),$=Rt(R[m]),B=A[g]=o.getPixelForValue(R[g],S),V=A[m]=s||$?a.getBasePixel():a.getPixelForValue(u?this.applyStack(a,R,u):R[m],S);A.skip=isNaN(B)||isNaN(V)||$,A.stop=S>0&&Math.abs(R[g]-x[g])>_,v&&(A.parsed=R,A.raw=c.data[S]),h&&(A.options=d||this.resolveDataElementOptions(S,E.active?"active":i)),y||this.updateElement(E,S,A,i),x=R}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,r=n.options&&n.options.borderWidth||0,i=t.data||[];if(!i.length)return r;const s=i[0].size(this.resolveDataElementOptions(0)),o=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,s,o)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}Re($f,"id","line"),Re($f,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),Re($f,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class tu extends ni{constructor(t,n){super(t,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],s=Ku(n._parsed[t].r,r.options.locale);return{label:i[t]||"",value:s}}parseObjectData(t,n,r,i){return kO.bind(this)(t,n,r,i)}update(t){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,t)}getMinMax(){const t=this._cachedMeta,n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((r,i)=>{const s=this.getParsed(i).r;!isNaN(s)&&this.chart.getDataVisibility(i)&&(sn.max&&(n.max=s))}),n}_updateRadius(){const t=this.chart,n=t.chartArea,r=t.options,i=Math.min(n.right-n.left,n.bottom-n.top),s=Math.max(i/2,0),o=Math.max(r.cutoutPercentage?s/100*r.cutoutPercentage:1,0),a=(s-o)/t.getVisibleDatasetCount();this.outerRadius=s-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(t,n,r,i){const s=i==="reset",o=this.chart,u=o.options.animation,c=this._cachedMeta.rScale,d=c.xCenter,h=c.yCenter,g=c.getIndexAngle(0)-.5*on;let m=g,b;const v=360/this.countVisibleElements();for(b=0;b{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&n++}),n}_computeAngle(t,n,r){return this.chart.getDataVisibility(t)?ei(this.resolveDataElementOptions(t,n).angle||r):0}}Re(tu,"id","polarArea"),Re(tu,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),Re(tu,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:r,color:i}}=t.legend.options;return n.labels.map((s,o)=>{const u=t.getDatasetMeta(0).controller.getStyle(o);return{text:s,fillStyle:u.backgroundColor,strokeStyle:u.borderColor,fontColor:i,lineWidth:u.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(o),index:o}})}return[]}},onClick(t,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class Kg extends Ro{}Re(Kg,"id","pie"),Re(Kg,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class Ff extends ni{getLabelAndValue(t){const n=this._cachedMeta.vScale,r=this.getParsed(t);return{label:n.getLabels()[t],value:""+n.getLabelForValue(r[n.axis])}}parseObjectData(t,n,r,i){return kO.bind(this)(t,n,r,i)}update(t){const n=this._cachedMeta,r=n.dataset,i=n.data||[],s=n.iScale.getLabels();if(r.points=i,t!=="resize"){const o=this.resolveDatasetElementOptions(t);this.options.showLine||(o.borderWidth=0);const a={_loop:!0,_fullLoop:s.length===i.length,options:o};this.updateElement(r,void 0,a,t)}this.updateElements(i,0,i.length,t)}updateElements(t,n,r,i){const s=this._cachedMeta.rScale,o=i==="reset";for(let a=n;a0&&this.getParsed(n-1);for(let x=n;x0&&Math.abs(E[m]-T[m])>y,_&&(A.parsed=E,A.raw=c.data[x]),g&&(A.options=h||this.resolveDataElementOptions(x,S.active?"active":i)),C||this.updateElement(S,x,A,i),T=E}this.updateSharedOptions(h,i,d)}getMaxOverflow(){const t=this._cachedMeta,n=t.data||[];if(!this.options.showLine){let a=0;for(let u=n.length-1;u>=0;--u)a=Math.max(a,n[u].size(this.resolveDataElementOptions(u))/2);return a>0&&a}const r=t.dataset,i=r.options&&r.options.borderWidth||0;if(!n.length)return i;const s=n[0].size(this.resolveDataElementOptions(0)),o=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(i,s,o)/2}}Re(Df,"id","scatter"),Re(Df,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),Re(Df,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var BY=Object.freeze({__proto__:null,BarController:Lf,BubbleController:If,DoughnutController:Ro,LineController:$f,PieController:Kg,PolarAreaController:tu,RadarController:Ff,ScatterController:Df});function po(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Hv{constructor(t){Re(this,"options");this.options=t||{}}static override(t){Object.assign(Hv.prototype,t)}init(){}formats(){return po()}parse(){return po()}format(){return po()}add(){return po()}diff(){return po()}startOf(){return po()}endOf(){return po()}}var zY={_date:Hv};function HY(e,t,n,r){const{controller:i,data:s,_sorted:o}=e,a=i._cachedMeta.iScale;if(a&&t===a.axis&&t!=="r"&&o&&s.length){const u=a._reversePixels?cq:Gi;if(r){if(i._sharedOptions){const c=s[0],d=typeof c.getRange=="function"&&c.getRange(t);if(d){const h=u(s,t,n-d),g=u(s,t,n+d);return{lo:h.lo,hi:g.hi}}}}else return u(s,t,n)}return{lo:0,hi:s.length-1}}function qu(e,t,n,r,i){const s=e.getSortedVisibleDatasetMetas(),o=n[t];for(let a=0,u=s.length;a{u[o](t[n],i)&&(s.push({element:u,datasetIndex:c,index:d}),a=a||u.inRange(t.x,t.y,i))}),r&&!a?[]:s}var UY={evaluateInteractionItems:qu,modes:{index(e,t,n,r){const i=bo(t,e),s=n.axis||"x",o=n.includeInvisible||!1,a=n.intersect?zp(e,i,s,r,o):Hp(e,i,s,!1,r,o),u=[];return a.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const d=a[0].index,h=c.data[d];h&&!h.skip&&u.push({element:h,datasetIndex:c.index,index:d})}),u):[]},dataset(e,t,n,r){const i=bo(t,e),s=n.axis||"xy",o=n.includeInvisible||!1;let a=n.intersect?zp(e,i,s,r,o):Hp(e,i,s,!1,r,o);if(a.length>0){const u=a[0].datasetIndex,c=e.getDatasetMeta(u).data;a=[];for(let d=0;dn.pos===t)}function Dw(e,t){return e.filter(n=>VO.indexOf(n.pos)===-1&&n.box.axis===t)}function El(e,t){return e.sort((n,r)=>{const i=t?r:n,s=t?n:r;return i.weight===s.weight?i.index-s.index:i.weight-s.weight})}function KY(e){const t=[];let n,r,i,s,o,a;for(n=0,r=(e||[]).length;nc.box.fullSize),!0),r=El(Ol(t,"left"),!0),i=El(Ol(t,"right")),s=El(Ol(t,"top"),!0),o=El(Ol(t,"bottom")),a=Dw(t,"x"),u=Dw(t,"y");return{fullSize:n,leftAndTop:r.concat(s),rightAndBottom:i.concat(u).concat(o).concat(a),chartArea:Ol(t,"chartArea"),vertical:r.concat(i).concat(u),horizontal:s.concat(o).concat(a)}}function Nw(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function jO(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function XY(e,t,n,r){const{pos:i,box:s}=n,o=e.maxPadding;if(!Tt(i)){n.size&&(e[i]-=n.size);const h=r[n.stack]||{size:0,count:1};h.size=Math.max(h.size,n.horizontal?s.height:s.width),n.size=h.size/h.count,e[i]+=n.size}s.getPadding&&jO(o,s.getPadding());const a=Math.max(0,t.outerWidth-Nw(o,e,"left","right")),u=Math.max(0,t.outerHeight-Nw(o,e,"top","bottom")),c=a!==e.w,d=u!==e.h;return e.w=a,e.h=u,n.horizontal?{same:c,other:d}:{same:d,other:c}}function JY(e){const t=e.maxPadding;function n(r){const i=Math.max(t[r]-e[r],0);return e[r]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function ZY(e,t){const n=t.maxPadding;function r(i){const s={left:0,top:0,right:0,bottom:0};return i.forEach(o=>{s[o]=Math.max(t[o],n[o])}),s}return r(e?["left","right"]:["top","bottom"])}function Il(e,t,n,r){const i=[];let s,o,a,u,c,d;for(s=0,o=e.length,c=0;s{typeof v.beforeLayout=="function"&&v.beforeLayout()});const d=u.reduce((v,_)=>_.box.options&&_.box.options.display===!1?v:v+1,0)||1,h=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:s,availableHeight:o,vBoxMaxWidth:s/2/d,hBoxMaxHeight:o/2}),g=Object.assign({},i);jO(g,Kn(r));const m=Object.assign({maxPadding:g,w:s,h:o,x:i.left,y:i.top},i),b=YY(u.concat(c),h);Il(a.fullSize,m,h,b),Il(u,m,h,b),Il(c,m,h,b)&&Il(u,m,h,b),JY(m),Bw(a.leftAndTop,m,h,b),m.x+=m.w,m.y+=m.h,Bw(a.rightAndBottom,m,h,b),e.chartArea={left:m.left,top:m.top,right:m.left+m.w,bottom:m.top+m.h,height:m.h,width:m.w},Wt(a.chartArea,v=>{const _=v.box;Object.assign(_,e.chartArea),_.update(m.w,m.h,{left:0,top:0,right:0,bottom:0})})}};class UO{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,i){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,i?Math.floor(n/i):r)}}isAttached(t){return!0}updateConfig(t){}}class QY extends UO{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Nf="$chartjs",eG={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},zw=e=>e===null||e==="";function tG(e,t){const n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e[Nf]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",zw(i)){const s=xw(e,"width");s!==void 0&&(e.width=s)}if(zw(r))if(e.style.height==="")e.height=e.width/(t||2);else{const s=xw(e,"height");s!==void 0&&(e.height=s)}return e}const KO=rY?{passive:!0}:!1;function nG(e,t,n){e.addEventListener(t,n,KO)}function rG(e,t,n){e.canvas.removeEventListener(t,n,KO)}function iG(e,t){const n=eG[e.type]||e.type,{x:r,y:i}=bo(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:i!==void 0?i:null}}function hd(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function sG(e,t,n){const r=e.canvas,i=new MutationObserver(s=>{let o=!1;for(const a of s)o=o||hd(a.addedNodes,r),o=o&&!hd(a.removedNodes,r);o&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function oG(e,t,n){const r=e.canvas,i=new MutationObserver(s=>{let o=!1;for(const a of s)o=o||hd(a.removedNodes,r),o=o&&!hd(a.addedNodes,r);o&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const Tu=new Map;let Hw=0;function qO(){const e=window.devicePixelRatio;e!==Hw&&(Hw=e,Tu.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function aG(e,t){Tu.size||window.addEventListener("resize",qO),Tu.set(e,t)}function lG(e){Tu.delete(e),Tu.size||window.removeEventListener("resize",qO)}function uG(e,t,n){const r=e.canvas,i=r&&zv(r);if(!i)return;const s=xO((a,u)=>{const c=i.clientWidth;n(a,u),c{const u=a[0],c=u.contentRect.width,d=u.contentRect.height;c===0&&d===0||s(c,d)});return o.observe(i),aG(e,s),o}function Wp(e,t,n){n&&n.disconnect(),t==="resize"&&lG(e)}function cG(e,t,n){const r=e.canvas,i=xO(s=>{e.ctx!==null&&n(iG(s,e))},e);return nG(r,t,i),i}class fG extends UO{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(tG(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[Nf])return!1;const r=n[Nf].initial;["height","width"].forEach(s=>{const o=r[s];Rt(o)?n.removeAttribute(s):n.setAttribute(s,o)});const i=r.style||{};return Object.keys(i).forEach(s=>{n.style[s]=i[s]}),n.width=n.width,delete n[Nf],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const i=t.$proxies||(t.$proxies={}),o={attach:sG,detach:oG,resize:uG}[n]||cG;i[n]=o(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),i=r[n];if(!i)return;({attach:Wp,detach:Wp,resize:Wp}[n]||rG)(t,n,i),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,i){return nY(t,n,r,i)}isAttached(t){const n=zv(t);return!!(n&&n.isConnected)}}function dG(e){return!IO()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?QY:fG}var gf;let as=(gf=class{constructor(){Re(this,"x");Re(this,"y");Re(this,"active",!1);Re(this,"options");Re(this,"$animations")}tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return Ha(this.x)&&Ha(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const i={};return t.forEach(s=>{i[s]=r[s]&&r[s].active()?r[s]._to:this[s]}),i}},Re(gf,"defaults",{}),Re(gf,"defaultRoutes"),gf);function hG(e,t){const n=e.options.ticks,r=pG(e),i=Math.min(n.maxTicksLimit||r,r),s=n.major.enabled?mG(t):[],o=s.length,a=s[0],u=s[o-1],c=[];if(o>i)return vG(t,c,s,o/i),c;const d=gG(s,t,i);if(o>0){let h,g;const m=o>1?Math.round((u-a)/(o-1)):null;for(uf(t,c,d,Rt(m)?0:a-m,a),h=0,g=o-1;hi)return u}return Math.max(i,1)}function mG(e){const t=[];let n,r;for(n=0,r=e.length;ne==="left"?"right":e==="right"?"left":e,Ww=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,Vw=(e,t)=>Math.min(t||e,e);function jw(e,t){const n=[],r=e.length/t,i=e.length;let s=0;for(;so+a)))return u}function wG(e,t){Wt(e,n=>{const r=n.gc,i=r.length/2;let s;if(i>t){for(s=0;sr?r:n,r=i&&n>r?n:r,{min:_r(n,_r(r,n)),max:_r(r,_r(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){qt(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:i,grace:s,ticks:o}=this.options,a=o.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=Iq(this,s,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const u=a=s||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const d=this._getLabelSizes(),h=d.widest.width,g=d.highest.height,m=En(this.chart.width-h,0,this.maxWidth);a=t.offset?this.maxWidth/r:m/(r-1),h+6>a&&(a=m/(r-(t.offset?.5:1)),u=this.maxHeight-Ml(t.grid)-n.padding-Uw(t.title,this.chart.options.font),c=Math.sqrt(h*h+g*g),o=kv(Math.min(Math.asin(En((d.highest.height+6)/a,-1,1)),Math.asin(En(u/c,-1,1))-Math.asin(En(g/c,-1,1)))),o=Math.max(i,Math.min(s,o))),this.labelRotation=o}afterCalculateLabelRotation(){qt(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){qt(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:s}}=this,o=this._isVisible(),a=this.isHorizontal();if(o){const u=Uw(i,n.options.font);if(a?(t.width=this.maxWidth,t.height=Ml(s)+u):(t.height=this.maxHeight,t.width=Ml(s)+u),r.display&&this.ticks.length){const{first:c,last:d,widest:h,highest:g}=this._getLabelSizes(),m=r.padding*2,b=ei(this.labelRotation),v=Math.cos(b),_=Math.sin(b);if(a){const y=r.mirror?0:_*h.width+v*g.height;t.height=Math.min(this.maxHeight,t.height+y+m)}else{const y=r.mirror?0:v*h.width+_*g.height;t.width=Math.min(this.maxWidth,t.width+y+m)}this._calculatePadding(c,d,_,v)}}this._handleMargins(),a?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,r,i){const{ticks:{align:s,padding:o},position:a}=this.options,u=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const d=this.getPixelForTick(0)-this.left,h=this.right-this.getPixelForTick(this.ticks.length-1);let g=0,m=0;u?c?(g=i*t.width,m=r*n.height):(g=r*t.height,m=i*n.width):s==="start"?m=n.width:s==="end"?g=t.width:s!=="inner"&&(g=t.width/2,m=n.width/2),this.paddingLeft=Math.max((g-d+o)*this.width/(this.width-d),0),this.paddingRight=Math.max((m-h+o)*this.width/(this.width-h),0)}else{let d=n.height/2,h=t.height/2;s==="start"?(d=0,h=t.height):s==="end"&&(d=n.height,h=0),this.paddingTop=d+o,this.paddingBottom=h+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){qt(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,r;for(n=0,r=t.length;n({width:o[$]||0,height:a[$]||0});return{first:R(0),last:R(n-1),widest:R(E),highest:R(A),widths:o,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return uq(this._alignToPixels?ho(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&ta*i?a/r:u/i:u*i0}_computeGridLineItems(t){const n=this.axis,r=this.chart,i=this.options,{grid:s,position:o,border:a}=i,u=s.offset,c=this.isHorizontal(),h=this.ticks.length+(u?1:0),g=Ml(s),m=[],b=a.setContext(this.getContext()),v=b.display?b.width:0,_=v/2,y=function(ne){return ho(r,ne,v)};let C,T,x,S,E,A,R,$,B,V,P,j;if(o==="top")C=y(this.bottom),A=this.bottom-g,$=C-_,V=y(t.top)+_,j=t.bottom;else if(o==="bottom")C=y(this.top),V=t.top,j=y(t.bottom)-_,A=C+_,$=this.top+g;else if(o==="left")C=y(this.right),E=this.right-g,R=C-_,B=y(t.left)+_,P=t.right;else if(o==="right")C=y(this.left),B=t.left,P=y(t.right)-_,E=C+_,R=this.left+g;else if(n==="x"){if(o==="center")C=y((t.top+t.bottom)/2+.5);else if(Tt(o)){const ne=Object.keys(o)[0],Q=o[ne];C=y(this.chart.scales[ne].getPixelForValue(Q))}V=t.top,j=t.bottom,A=C+_,$=A+g}else if(n==="y"){if(o==="center")C=y((t.left+t.right)/2);else if(Tt(o)){const ne=Object.keys(o)[0],Q=o[ne];C=y(this.chart.scales[ne].getPixelForValue(Q))}E=C-_,R=E-g,B=t.left,P=t.right}const ue=pt(i.ticks.maxTicksLimit,h),ce=Math.max(1,Math.ceil(h/ue));for(T=0;Ts.value===t);return i>=0?n.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let s,o;const a=(u,c,d)=>{!d.width||!d.color||(r.save(),r.lineWidth=d.width,r.strokeStyle=d.color,r.setLineDash(d.borderDash||[]),r.lineDashOffset=d.borderDashOffset,r.beginPath(),r.moveTo(u.x,u.y),r.lineTo(c.x,c.y),r.stroke(),r.restore())};if(n.display)for(s=0,o=i.length;s{this.draw(s)}}]:[{z:r,draw:s=>{this.drawBackground(),this.drawGrid(s),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:s=>{this.drawLabels(s)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let s,o;for(s=0,o=n.length;s{const r=n.split("."),i=r.pop(),s=[e].concat(r).join("."),o=t[n].split("."),a=o.pop(),u=o.join(".");dn.route(s,i,u,a)})}function TG(e){return"id"in e&&"defaults"in e}class AG{constructor(){this.controllers=new cf(ni,"datasets",!0),this.elements=new cf(as,"elements"),this.plugins=new cf(Object,"plugins"),this.scales=new cf(Xo,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,r){[...n].forEach(i=>{const s=r||this._getRegistryForType(i);r||s.isForType(i)||s===this.plugins&&i.id?this._exec(t,s,i):Wt(i,o=>{const a=r||this._getRegistryForType(o);this._exec(t,a,o)})})}_exec(t,n,r){const i=Rv(t);qt(r["before"+i],[],r),n[t](r),qt(r["after"+i],[],r)}_getRegistryForType(t){for(let n=0;ns.filter(a=>!o.some(u=>a.plugin.id===u.plugin.id));this._notify(i(n,r),t,"stop"),this._notify(i(r,n),t,"start")}}function RG(e){const t={},n=[],r=Object.keys(gi.plugins.items);for(let s=0;s1&&Kw(e[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function qw(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function NG(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(r=>r.xAxisID===e||r.yAxisID===e);if(n.length)return qw(e,"x",n[0])||qw(e,"y",n[0])}return{}}function BG(e,t){const n=Wo[e.type]||{scales:{}},r=t.scales||{},i=qg(e.type,t),s=Object.create(null);return Object.keys(r).forEach(o=>{const a=r[o];if(!Tt(a))return console.error(`Invalid scale configuration for scale: ${o}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${o}`);const u=Yg(o,a,NG(o,e),dn.scales[a.type]),c=FG(u,i),d=n.scales||{};s[o]=Jl(Object.create(null),[{axis:u},a,d[u],d[c]])}),e.data.datasets.forEach(o=>{const a=o.type||e.type,u=o.indexAxis||qg(a,t),d=(Wo[a]||{}).scales||{};Object.keys(d).forEach(h=>{const g=$G(h,u),m=o[g+"AxisID"]||g;s[m]=s[m]||Object.create(null),Jl(s[m],[{axis:g},r[m],d[h]])})}),Object.keys(s).forEach(o=>{const a=s[o];Jl(a,[dn.scales[a.type],dn.scale])}),s}function YO(e){const t=e.options||(e.options={});t.plugins=pt(t.plugins,{}),t.scales=BG(e,t)}function GO(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function zG(e){return e=e||{},e.data=GO(e.data),YO(e),e}const Yw=new Map,XO=new Set;function ff(e,t){let n=Yw.get(e);return n||(n=t(),Yw.set(e,n),XO.add(n)),n}const Tl=(e,t,n)=>{const r=Ks(t,n);r!==void 0&&e.add(r)};class HG{constructor(t){this._config=zG(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=GO(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),YO(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return ff(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return ff(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return ff(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return ff(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const r=this._scopeCache;let i=r.get(t);return(!i||n)&&(i=new Map,r.set(t,i)),i}getOptionScopes(t,n,r){const{options:i,type:s}=this,o=this._cachedScopes(t,r),a=o.get(n);if(a)return a;const u=new Set;n.forEach(d=>{t&&(u.add(t),d.forEach(h=>Tl(u,t,h))),d.forEach(h=>Tl(u,i,h)),d.forEach(h=>Tl(u,Wo[s]||{},h)),d.forEach(h=>Tl(u,dn,h)),d.forEach(h=>Tl(u,jg,h))});const c=Array.from(u);return c.length===0&&c.push(Object.create(null)),XO.has(n)&&o.set(n,c),c}chartOptionScopes(){const{options:t,type:n}=this;return[t,Wo[n]||{},dn.datasets[n]||{},{type:n},dn,jg]}resolveNamedOptions(t,n,r,i=[""]){const s={$shared:!0},{resolver:o,subPrefixes:a}=Gw(this._resolverCache,t,i);let u=o;if(VG(o,n)){s.$shared=!1,r=qs(r)?r():r;const c=this.createResolver(t,r,a);u=Wa(o,r,c)}for(const c of n)s[c]=u[c];return s}createResolver(t,n,r=[""],i){const{resolver:s}=Gw(this._resolverCache,t,r);return Tt(n)?Wa(s,n,void 0,i):s}}function Gw(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const i=n.join();let s=r.get(i);return s||(s={resolver:Dv(t,n),subPrefixes:n.filter(a=>!a.toLowerCase().includes("hover"))},r.set(i,s)),s}const WG=e=>Tt(e)&&Object.getOwnPropertyNames(e).reduce((t,n)=>t||qs(e[n]),!1);function VG(e,t){const{isScriptable:n,isIndexable:r}=TO(e);for(const i of t){const s=n(i),o=r(i),a=(o||s)&&e[i];if(s&&(qs(a)||WG(a))||o&&Qt(a))return!0}return!1}var jG="4.3.0";const UG=["top","bottom","left","right","chartArea"];function Xw(e,t){return e==="top"||e==="bottom"||UG.indexOf(e)===-1&&t==="x"}function Jw(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function Zw(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),qt(n&&n.onComplete,[e],t)}function KG(e){const t=e.chart,n=t.options.animation;qt(n&&n.onProgress,[e],t)}function JO(e){return IO()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const Bf={},Qw=e=>{const t=JO(e);return Object.values(Bf).filter(n=>n.canvas===t).pop()};function qG(e,t,n){const r=Object.keys(e);for(const i of r){const s=+i;if(s>=t){const o=e[i];delete e[i],(n>0||s>t)&&(e[s+n]=o)}}}function YG(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}function GG(e){const{xScale:t,yScale:n}=e;if(t&&n)return{left:t.left,right:t.right,top:n.top,bottom:n.bottom}}class vi{static register(...t){gi.add(...t),ex()}static unregister(...t){gi.remove(...t),ex()}constructor(t,n){const r=this.config=new HG(n),i=JO(t),s=Qw(i);if(s)throw new Error("Canvas is already in use. Chart with ID '"+s.id+"' must be destroyed before the canvas with ID '"+s.canvas.id+"' can be reused.");const o=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||dG(i)),this.platform.updateConfig(r);const a=this.platform.acquireContext(i,o.aspectRatio),u=a&&a.canvas,c=u&&u.height,d=u&&u.width;if(this.id=JK(),this.ctx=a,this.canvas=u,this.width=d,this.height=c,this._options=o,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new PG,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=hq(h=>this.update(h),o.resizeDelay||0),this._dataChanges=[],Bf[this.id]=this,!a||!u){console.error("Failed to create chart: can't acquire context from the given item");return}Vi.listen(this,"complete",Zw),Vi.listen(this,"progress",KG),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:i,_aspectRatio:s}=this;return Rt(t)?n&&s?s:i?r/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return gi}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():ww(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return bw(this.canvas,this.ctx),this}stop(){return Vi.stop(this),this}resize(t,n){Vi.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,i=this.canvas,s=r.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(i,t,n,s),a=r.devicePixelRatio||this.platform.getDevicePixelRatio(),u=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,ww(this,a,!0)&&(this.notifyPlugins("resize",{size:o}),qt(r.onResize,[this,o],this),this.attached&&this._doResize(u)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};Wt(n,(r,i)=>{r.id=i})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,i=Object.keys(r).reduce((o,a)=>(o[a]=!1,o),{});let s=[];n&&(s=s.concat(Object.keys(n).map(o=>{const a=n[o],u=Yg(o,a),c=u==="r",d=u==="x";return{options:a,dposition:c?"chartArea":d?"bottom":"left",dtype:c?"radialLinear":d?"category":"linear"}}))),Wt(s,o=>{const a=o.options,u=a.id,c=Yg(u,a),d=pt(a.type,o.dtype);(a.position===void 0||Xw(a.position,c)!==Xw(o.dposition))&&(a.position=o.dposition),i[u]=!0;let h=null;if(u in r&&r[u].type===d)h=r[u];else{const g=gi.getScale(d);h=new g({id:u,type:d,ctx:this.ctx,chart:this}),r[h.id]=h}h.init(a,t)}),Wt(i,(o,a)=>{o||delete r[a]}),Wt(r,o=>{Un.configure(this,o,o.options),Un.addBox(this,o)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((i,s)=>i.index-s.index),r>n){for(let i=n;in.length&&delete this._stacks,t.forEach((r,i)=>{n.filter(s=>s===r._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let r,i;for(this._removeUnreferencedMetasets(),r=0,i=n.length;r{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const s=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let c=0,d=this.data.datasets.length;c{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Jw("z","_idx"));const{_active:a,_lastEvent:u}=this;u?this._eventHandler(u,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){Wt(this.scales,t=>{Un.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!uw(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:i,count:s}of n){const o=r==="_removeElements"?-s:s;qG(t,i,o)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=s=>new Set(t.filter(o=>o[0]===s).map((o,a)=>a+","+o.splice(1).join(","))),i=r(0);for(let s=1;ss.split(",")).map(s=>({method:s[1],start:+s[2],count:+s[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Un.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],Wt(this.boxes,i=>{r&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,s)=>{i._idx=s}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,r=t._clip,i=!r.disabled,s=GG(t)||this.chartArea,o={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",o)!==!1&&(i&&Kd(n,{left:r.left===!1?0:s.left-r.left,right:r.right===!1?this.width:s.right+r.right,top:r.top===!1?0:s.top-r.top,bottom:r.bottom===!1?this.height:s.bottom+r.bottom}),t.controller.draw(),i&&qd(n),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(t){return Xi(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,i){const s=UY.modes[n];return typeof s=="function"?s(this,t,r,i):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let i=r.filter(s=>s&&s._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},r.push(i)),i}getContext(){return this.$context||(this.$context=Js(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(t,n){const r=this.getDatasetMeta(t);r.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,r){const i=r?"show":"hide",s=this.getDatasetMeta(t),o=s.controller._resolveAnimations(void 0,i);Ou(n)?(s.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),o.update(s,{visible:r}),this.update(a=>a.datasetIndex===t?i:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),Vi.remove(this),t=0,n=this.data.datasets.length;t{n.addEventListener(this,s,o),t[s]=o},i=(s,o,a)=>{s.offsetX=o,s.offsetY=a,this._eventHandler(s)};Wt(this.options.events,s=>r(s,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,r=(u,c)=>{n.addEventListener(this,u,c),t[u]=c},i=(u,c)=>{t[u]&&(n.removeEventListener(this,u,c),delete t[u])},s=(u,c)=>{this.canvas&&this.resize(u,c)};let o;const a=()=>{i("attach",a),this.attached=!0,this.resize(),r("resize",s),r("detach",o)};o=()=>{this.attached=!1,i("resize",s),this._stop(),this._resize(0,0),r("attach",a)},n.isAttached(this.canvas)?a():o()}unbindEvents(){Wt(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},Wt(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const i=r?"set":"remove";let s,o,a,u;for(n==="dataset"&&(s=this.getDatasetMeta(t[0].datasetIndex),s.controller["_"+i+"DatasetHoverStyle"]()),a=0,u=t.length;a{const a=this.getDatasetMeta(s);if(!a)throw new Error("No dataset found at index "+s);return{datasetIndex:s,element:a.data[o],index:o}});!ld(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(t,n,r){return this._plugins.notify(this,t,n,r)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,r){const i=this.options.hover,s=(u,c)=>u.filter(d=>!c.some(h=>d.datasetIndex===h.datasetIndex&&d.index===h.index)),o=s(n,t),a=r?t:s(t,n);o.length&&this.updateHoverStyle(o,i.mode,!1),a.length&&i.mode&&this.updateHoverStyle(a,i.mode,!0)}_eventHandler(t,n){const r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},i=o=>(o.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,i)===!1)return;const s=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(s||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:i=[],options:s}=this,o=n,a=this._getActiveElements(t,i,r,o),u=rq(t),c=YG(t,this._lastEvent,r,u);r&&(this._lastEvent=null,qt(s.onHover,[t,a,this],this),u&&qt(s.onClick,[t,a,this],this));const d=!ld(a,i);return(d||n)&&(this._active=a,this._updateHoverStyles(a,i,n)),this._lastEvent=c,d}_getActiveElements(t,n,r,i){if(t.type==="mouseout")return[];if(!r)return n;const s=this.options.hover;return this.getElementsAtEventForMode(t,s.mode,s,i)}}Re(vi,"defaults",dn),Re(vi,"instances",Bf),Re(vi,"overrides",Wo),Re(vi,"registry",gi),Re(vi,"version",jG),Re(vi,"getChart",Qw);function ex(){return Wt(vi.instances,e=>e._plugins.invalidate())}function XG(e,t,n){const{startAngle:r,pixelMargin:i,x:s,y:o,outerRadius:a,innerRadius:u}=t;let c=i/a;e.beginPath(),e.arc(s,o,a,r-c,n+c),u>i?(c=i/u,e.arc(s,o,u,n+c,r-c,!0)):e.arc(s,o,i,n+fn,r-fn),e.closePath(),e.clip()}function JG(e){return Fv(e,["outerStart","outerEnd","innerStart","innerEnd"])}function ZG(e,t,n,r){const i=JG(e.options.borderRadius),s=(n-t)/2,o=Math.min(s,r*t/2),a=u=>{const c=(n-Math.min(s,u))*r/2;return En(u,0,Math.min(s,c))};return{outerStart:a(i.outerStart),outerEnd:a(i.outerEnd),innerStart:En(i.innerStart,0,o),innerEnd:En(i.innerEnd,0,o)}}function ga(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function pd(e,t,n,r,i,s){const{x:o,y:a,startAngle:u,pixelMargin:c,innerRadius:d}=t,h=Math.max(t.outerRadius+r+n-c,0),g=d>0?d+r+n+c:0;let m=0;const b=i-u;if(r){const ce=d>0?d-r:0,ne=h>0?h-r:0,Q=(ce+ne)/2,ie=Q!==0?b*Q/(Q+r):b;m=(b-ie)/2}const v=Math.max(.001,b*h-n/on)/h,_=(b-v)/2,y=u+_+m,C=i-_-m,{outerStart:T,outerEnd:x,innerStart:S,innerEnd:E}=ZG(t,g,h,C-y),A=h-T,R=h-x,$=y+T/A,B=C-x/R,V=g+S,P=g+E,j=y+S/V,ue=C-E/P;if(e.beginPath(),s){const ce=($+B)/2;if(e.arc(o,a,h,$,ce),e.arc(o,a,h,ce,B),x>0){const ee=ga(R,B,o,a);e.arc(ee.x,ee.y,x,B,C+fn)}const ne=ga(P,C,o,a);if(e.lineTo(ne.x,ne.y),E>0){const ee=ga(P,ue,o,a);e.arc(ee.x,ee.y,E,C+fn,ue+Math.PI)}const Q=(C-E/g+(y+S/g))/2;if(e.arc(o,a,g,C-E/g,Q,!0),e.arc(o,a,g,Q,y+S/g,!0),S>0){const ee=ga(V,j,o,a);e.arc(ee.x,ee.y,S,j+Math.PI,y-fn)}const ie=ga(A,y,o,a);if(e.lineTo(ie.x,ie.y),T>0){const ee=ga(A,$,o,a);e.arc(ee.x,ee.y,T,y-fn,$)}}else{e.moveTo(o,a);const ce=Math.cos($)*h+o,ne=Math.sin($)*h+a;e.lineTo(ce,ne);const Q=Math.cos(B)*h+o,ie=Math.sin(B)*h+a;e.lineTo(Q,ie)}e.closePath()}function QG(e,t,n,r,i){const{fullCircles:s,startAngle:o,circumference:a}=t;let u=t.endAngle;if(s){pd(e,t,n,r,u,i);for(let c=0;c=en||Eu(o,u,c),_=Yi(a,d+m,h+m);return v&&_}getCenterPoint(n){const{x:r,y:i,startAngle:s,endAngle:o,innerRadius:a,outerRadius:u}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:c,spacing:d}=this.options,h=(s+o)/2,g=(a+u+d+c)/2;return{x:r+Math.cos(h)*g,y:i+Math.sin(h)*g}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:r,circumference:i}=this,s=(r.offset||0)/4,o=(r.spacing||0)/2,a=r.circular;if(this.pixelMargin=r.borderAlign==="inner"?.33:0,this.fullCircles=i>en?Math.floor(i/en):0,i===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const u=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(u)*s,Math.sin(u)*s);const c=1-Math.sin(Math.min(on,i||0)),d=s*c;n.fillStyle=r.backgroundColor,n.strokeStyle=r.borderColor,QG(n,this,d,o,a),eX(n,this,d,o,a),n.restore()}}Re($l,"id","arc"),Re($l,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),Re($l,"defaultRoutes",{backgroundColor:"backgroundColor"}),Re($l,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function ZO(e,t,n=t){e.lineCap=pt(n.borderCapStyle,t.borderCapStyle),e.setLineDash(pt(n.borderDash,t.borderDash)),e.lineDashOffset=pt(n.borderDashOffset,t.borderDashOffset),e.lineJoin=pt(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=pt(n.borderWidth,t.borderWidth),e.strokeStyle=pt(n.borderColor,t.borderColor)}function tX(e,t,n){e.lineTo(n.x,n.y)}function nX(e){return e.stepped?Oq:e.tension||e.cubicInterpolationMode==="monotone"?Eq:tX}function QO(e,t,n={}){const r=e.length,{start:i=0,end:s=r-1}=n,{start:o,end:a}=t,u=Math.max(i,o),c=Math.min(s,a),d=ia&&s>a;return{count:r,start:u,loop:t.loop,ilen:c(o+(c?a-x:x))%s,T=()=>{v!==_&&(e.lineTo(d,_),e.lineTo(d,v),e.lineTo(d,y))};for(u&&(m=i[C(0)],e.moveTo(m.x,m.y)),g=0;g<=a;++g){if(m=i[C(g)],m.skip)continue;const x=m.x,S=m.y,E=x|0;E===b?(S_&&(_=S),d=(h*d+x)/++h):(T(),e.lineTo(x,S),b=E,h=0,v=_=S),y=S}T()}function Gg(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?iX:rX}function sX(e){return e.stepped?iY:e.tension||e.cubicInterpolationMode==="monotone"?sY:yo}function oX(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),ZO(e,t.options),e.stroke(i)}function aX(e,t,n,r){const{segments:i,options:s}=t,o=Gg(t);for(const a of i)ZO(e,s,a.style),e.beginPath(),o(e,t,a,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}const lX=typeof Path2D=="function";function uX(e,t,n,r){lX&&!t.options.segment?oX(e,t,n,r):aX(e,t,n,r)}class Rs extends as{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const i=r.spanGaps?this._loop:this._fullLoop;Xq(this._points,r,t,i,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=fY(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,r=t.length;return r&&n[t[r-1].end]}interpolate(t,n){const r=this.options,i=t[n],s=this.points,o=BO(this,{property:n,start:i,end:i});if(!o.length)return;const a=[],u=sX(r);let c,d;for(c=0,d=o.length;ct!=="borderDash"&&t!=="fill"});function tx(e,t,n,r){const i=e.options,{[n]:s}=e.getProps([n],r);return Math.abs(t-s)e.replace("rgb(","rgba(").replace(")",", 0.5)"));function tE(e){return Xg[e%Xg.length]}function nE(e){return nx[e%nx.length]}function mX(e,t){return e.borderColor=tE(t),e.backgroundColor=nE(t),++t}function vX(e,t){return e.backgroundColor=e.data.map(()=>tE(t++)),t}function bX(e,t){return e.backgroundColor=e.data.map(()=>nE(t++)),t}function yX(e){let t=0;return(n,r)=>{const i=e.getDatasetMeta(r).controller;i instanceof Ro?t=vX(n,t):i instanceof tu?t=bX(n,t):i&&(t=mX(n,t))}}function rx(e){let t;for(t in e)if(e[t].borderColor||e[t].backgroundColor)return!0;return!1}function _X(e){return e&&(e.borderColor||e.backgroundColor)}var wX={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,t,n){if(!n.enabled)return;const{data:{datasets:r},options:i}=e.config,{elements:s}=i;if(!n.forceOverride&&(rx(r)||_X(i)||s&&rx(s)))return;const o=yX(e);r.forEach(o)}};function xX(e,t,n,r,i){const s=i.samples||r;if(s>=n)return e.slice(t,t+n);const o=[],a=(n-2)/(s-2);let u=0;const c=t+n-1;let d=t,h,g,m,b,v;for(o[u++]=e[d],h=0;hm&&(m=b,g=e[C],v=C);o[u++]=g,d=v}return o[u++]=e[c],o}function CX(e,t,n,r){let i=0,s=0,o,a,u,c,d,h,g,m,b,v;const _=[],y=t+n-1,C=e[t].x,x=e[y].x-C;for(o=t;ov&&(v=c,g=o),i=(s*i+a.x)/++s;else{const E=o-1;if(!Rt(h)&&!Rt(g)){const A=Math.min(h,g),R=Math.max(h,g);A!==m&&A!==E&&_.push({...e[A],x:i}),R!==m&&R!==E&&_.push({...e[R],x:i})}o>0&&E!==m&&_.push(e[E]),_.push(a),d=S,s=0,b=v=c,h=g=m=o}}return _}function rE(e){if(e._decimated){const t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:t})}}function ix(e){e.data.datasets.forEach(t=>{rE(t)})}function SX(e,t){const n=t.length;let r=0,i;const{iScale:s}=e,{min:o,max:a,minDefined:u,maxDefined:c}=s.getUserBounds();return u&&(r=En(Gi(t,s.axis,o).lo,0,n-1)),c?i=En(Gi(t,s.axis,a).hi+1,r,n)-r:i=n-r,{start:r,count:i}}var OX={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,n)=>{if(!n.enabled){ix(e);return}const r=e.width;e.data.datasets.forEach((i,s)=>{const{_data:o,indexAxis:a}=i,u=e.getDatasetMeta(s),c=o||i.data;if(Ll([a,e.options.indexAxis])==="y"||!u.controller.supportsDecimation)return;const d=e.scales[u.xAxisID];if(d.type!=="linear"&&d.type!=="time"||e.options.parsing)return;let{start:h,count:g}=SX(u,c);const m=n.threshold||4*r;if(g<=m){rE(i);return}Rt(o)&&(i._data=c,delete i.data,Object.defineProperty(i,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(v){this._data=v}}));let b;switch(n.algorithm){case"lttb":b=xX(c,h,g,r,n);break;case"min-max":b=CX(c,h,g,r);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}i._decimated=b})},destroy(e){ix(e)}};function EX(e,t,n){const r=e.segments,i=e.points,s=t.points,o=[];for(const a of r){let{start:u,end:c}=a;c=Wv(u,c,i);const d=Jg(n,i[u],i[c],a.loop);if(!t.segments){o.push({source:a,target:d,start:i[u],end:i[c]});continue}const h=BO(t,d);for(const g of h){const m=Jg(n,s[g.start],s[g.end],g.loop),b=NO(a,i,m);for(const v of b)o.push({source:v,target:g,start:{[n]:sx(d,m,"start",Math.max)},end:{[n]:sx(d,m,"end",Math.min)}})}}return o}function Jg(e,t,n,r){if(r)return;let i=t[e],s=n[e];return e==="angle"&&(i=Cr(i),s=Cr(s)),{property:e,start:i,end:s}}function MX(e,t){const{x:n=null,y:r=null}=e||{},i=t.points,s=[];return t.segments.forEach(({start:o,end:a})=>{a=Wv(o,a,i);const u=i[o],c=i[a];r!==null?(s.push({x:u.x,y:r}),s.push({x:c.x,y:r})):n!==null&&(s.push({x:n,y:u.y}),s.push({x:n,y:c.y}))}),s}function Wv(e,t,n){for(;t>e;t--){const r=n[t];if(!isNaN(r.x)&&!isNaN(r.y))break}return t}function sx(e,t,n,r){return e&&t?r(e[n],t[n]):e?e[n]:t?t[n]:0}function iE(e,t){let n=[],r=!1;return Qt(e)?(r=!0,n=e):n=MX(e,t),n.length?new Rs({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function ox(e){return e&&e.fill!==!1}function TX(e,t,n){let i=e[t].fill;const s=[t];let o;if(!n)return i;for(;i!==!1&&s.indexOf(i)===-1;){if(!cn(i))return i;if(o=e[i],!o)return!1;if(o.visible)return i;s.push(i),i=o.fill}return!1}function AX(e,t,n){const r=LX(e);if(Tt(r))return isNaN(r.value)?!1:r;let i=parseFloat(r);return cn(i)&&Math.floor(i)===i?PX(r[0],t,i,n):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function PX(e,t,n,r){return(e==="-"||e==="+")&&(n=t+n),n===t||n<0||n>=r?!1:n}function RX(e,t){let n=null;return e==="start"?n=t.bottom:e==="end"?n=t.top:Tt(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}function kX(e,t,n){let r;return e==="start"?r=n:e==="end"?r=t.options.reverse?t.min:t.max:Tt(e)?r=e.value:r=t.getBaseValue(),r}function LX(e){const t=e.options,n=t.fill;let r=pt(n&&n.target,n);return r===void 0&&(r=!!t.backgroundColor),r===!1||r===null?!1:r===!0?"origin":r}function IX(e){const{scale:t,index:n,line:r}=e,i=[],s=r.segments,o=r.points,a=$X(t,n);a.push(iE({x:null,y:t.bottom},r));for(let u=0;u=0;--o){const a=i[o].$filler;a&&(a.line.updateControlPoints(s,a.axis),r&&a.fill&&Up(e.ctx,a,s))}},beforeDatasetsDraw(e,t,n){if(n.drawTime!=="beforeDatasetsDraw")return;const r=e.getSortedVisibleDatasetMetas();for(let i=r.length-1;i>=0;--i){const s=r[i].$filler;ox(s)&&Up(e.ctx,s,e.chartArea)}},beforeDatasetDraw(e,t,n){const r=t.meta.$filler;!ox(r)||n.drawTime!=="beforeDatasetDraw"||Up(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const cx=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},KX=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class fx extends as{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,r){this.maxWidth=t,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=qt(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(r=>t.filter(r,this.chart.data))),t.sort&&(n=n.sort((r,i)=>t.sort(r,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const r=t.labels,i=wn(r.font),s=i.size,o=this._computeTitleHeight(),{boxWidth:a,itemHeight:u}=cx(r,s);let c,d;n.font=i.string,this.isHorizontal()?(c=this.maxWidth,d=this._fitRows(o,s,a,u)+10):(d=this.maxHeight,c=this._fitCols(o,i,a,u)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(d,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,i){const{ctx:s,maxWidth:o,options:{labels:{padding:a}}}=this,u=this.legendHitBoxes=[],c=this.lineWidths=[0],d=i+a;let h=t;s.textAlign="left",s.textBaseline="middle";let g=-1,m=-d;return this.legendItems.forEach((b,v)=>{const _=r+n/2+s.measureText(b.text).width;(v===0||c[c.length-1]+_+2*a>o)&&(h+=d,c[c.length-(v>0?0:1)]=0,m+=d,g++),u[v]={left:0,top:m,row:g,width:_,height:i},c[c.length-1]+=_+a}),h}_fitCols(t,n,r,i){const{ctx:s,maxHeight:o,options:{labels:{padding:a}}}=this,u=this.legendHitBoxes=[],c=this.columnSizes=[],d=o-t;let h=a,g=0,m=0,b=0,v=0;return this.legendItems.forEach((_,y)=>{const{itemWidth:C,itemHeight:T}=qX(r,n,s,_,i);y>0&&m+T+2*a>d&&(h+=g+a,c.push({width:g,height:m}),b+=g+a,v++,g=m=0),u[y]={left:b,top:m,col:v,width:C,height:T},g=Math.max(g,C),m+=T+a}),h+=g,c.push({width:g,height:m}),h}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:i},rtl:s}}=this,o=Ca(s,this.left,this.width);if(this.isHorizontal()){let a=0,u=Bn(r,this.left+i,this.right-this.lineWidths[a]);for(const c of n)a!==c.row&&(a=c.row,u=Bn(r,this.left+i,this.right-this.lineWidths[a])),c.top+=this.top+t+i,c.left=o.leftForLtr(o.x(u),c.width),u+=c.width+i}else{let a=0,u=Bn(r,this.top+t+i,this.bottom-this.columnSizes[a].height);for(const c of n)c.col!==a&&(a=c.col,u=Bn(r,this.top+t+i,this.bottom-this.columnSizes[a].height)),c.top=u,c.left+=this.left+i,c.left=o.leftForLtr(o.x(c.left),c.width),u+=c.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;Kd(t,this),this._draw(),qd(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:i}=this,{align:s,labels:o}=t,a=dn.color,u=Ca(t.rtl,this.left,this.width),c=wn(o.font),{padding:d}=o,h=c.size,g=h/2;let m;this.drawTitle(),i.textAlign=u.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=c.string;const{boxWidth:b,boxHeight:v,itemHeight:_}=cx(o,h),y=function(E,A,R){if(isNaN(b)||b<=0||isNaN(v)||v<0)return;i.save();const $=pt(R.lineWidth,1);if(i.fillStyle=pt(R.fillStyle,a),i.lineCap=pt(R.lineCap,"butt"),i.lineDashOffset=pt(R.lineDashOffset,0),i.lineJoin=pt(R.lineJoin,"miter"),i.lineWidth=$,i.strokeStyle=pt(R.strokeStyle,a),i.setLineDash(pt(R.lineDash,[])),o.usePointStyle){const B={radius:v*Math.SQRT2/2,pointStyle:R.pointStyle,rotation:R.rotation,borderWidth:$},V=u.xPlus(E,b/2),P=A+g;EO(i,B,V,P,o.pointStyleWidth&&b)}else{const B=A+Math.max((h-v)/2,0),V=u.leftForLtr(E,b),P=Do(R.borderRadius);i.beginPath(),Object.values(P).some(j=>j!==0)?Mu(i,{x:V,y:B,w:b,h:v,radius:P}):i.rect(V,B,b,v),i.fill(),$!==0&&i.stroke()}i.restore()},C=function(E,A,R){Vo(i,R.text,E,A+_/2,c,{strikethrough:R.hidden,textAlign:u.textAlign(R.textAlign)})},T=this.isHorizontal(),x=this._computeTitleHeight();T?m={x:Bn(s,this.left+d,this.right-r[0]),y:this.top+d+x,line:0}:m={x:this.left+d,y:Bn(s,this.top+x+d,this.bottom-n[0].height),line:0},$O(this.ctx,t.textDirection);const S=_+d;this.legendItems.forEach((E,A)=>{i.strokeStyle=E.fontColor,i.fillStyle=E.fontColor;const R=i.measureText(E.text).width,$=u.textAlign(E.textAlign||(E.textAlign=o.textAlign)),B=b+g+R;let V=m.x,P=m.y;u.setWidth(this.width),T?A>0&&V+B+d>this.right&&(P=m.y+=S,m.line++,V=m.x=Bn(s,this.left+d,this.right-r[m.line])):A>0&&P+S>this.bottom&&(V=m.x=V+n[m.line].width+d,m.line++,P=m.y=Bn(s,this.top+x+d,this.bottom-n[m.line].height));const j=u.x(V);if(y(j,P,E),V=pq($,V+b+g,T?V+B:this.right,t.rtl),C(u.x(V),P,E),T)m.x+=B+d;else if(typeof E.text!="string"){const ue=c.lineHeight;m.y+=oE(E,ue)}else m.y+=S}),FO(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=wn(n.font),i=Kn(n.padding);if(!n.display)return;const s=Ca(t.rtl,this.left,this.width),o=this.ctx,a=n.position,u=r.size/2,c=i.top+u;let d,h=this.left,g=this.width;if(this.isHorizontal())g=Math.max(...this.lineWidths),d=this.top+c,h=Bn(t.align,h,this.right-g);else{const b=this.columnSizes.reduce((v,_)=>Math.max(v,_.height),0);d=c+Bn(t.align,this.top,this.bottom-b-t.labels.padding-this._computeTitleHeight())}const m=Bn(a,h,h+g);o.textAlign=s.textAlign(Iv(a)),o.textBaseline="middle",o.strokeStyle=n.color,o.fillStyle=n.color,o.font=r.string,Vo(o,n.text,m,d,r)}_computeTitleHeight(){const t=this.options.title,n=wn(t.font),r=Kn(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,i,s;if(Yi(t,this.left,this.right)&&Yi(n,this.top,this.bottom)){for(s=this.legendHitBoxes,r=0;rs.length>o.length?s:o)),t+n.size/2+r.measureText(i).width}function GX(e,t,n){let r=e;return typeof t.text!="string"&&(r=oE(t,n)),r}function oE(e,t){const n=e.text?e.text.length+.5:0;return t*n}function XX(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var JX={id:"legend",_element:fx,start(e,t,n){const r=e.legend=new fx({ctx:e.ctx,options:n,chart:e});Un.configure(e,r,n),Un.addBox(e,r)},stop(e){Un.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;Un.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:s,useBorderRadius:o,borderRadius:a}}=e.legend.options;return e._getSortedDatasetMetas().map(u=>{const c=u.controller.getStyle(n?0:void 0),d=Kn(c.borderWidth);return{text:t[u.index].label,fillStyle:c.backgroundColor,fontColor:s,hidden:!u.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(d.width+d.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:i||c.textAlign,borderRadius:o&&(a||c.borderRadius),datasetIndex:u.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class Vv extends as{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const i=Qt(r.text)?r.text.length:1;this._padding=Kn(r.padding);const s=i*wn(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=s:this.width=s}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:r,bottom:i,right:s,options:o}=this,a=o.align;let u=0,c,d,h;return this.isHorizontal()?(d=Bn(a,r,s),h=n+t,c=s-r):(o.position==="left"?(d=r+t,h=Bn(a,i,n),u=on*-.5):(d=s-t,h=Bn(a,n,i),u=on*.5),c=i-n),{titleX:d,titleY:h,maxWidth:c,rotation:u}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const r=wn(n.font),s=r.lineHeight/2+this._padding.top,{titleX:o,titleY:a,maxWidth:u,rotation:c}=this._drawArgs(s);Vo(t,n.text,0,0,r,{color:n.color,maxWidth:u,rotation:c,textAlign:Iv(n.align),textBaseline:"middle",translation:[o,a]})}}function ZX(e,t){const n=new Vv({ctx:e.ctx,options:t,chart:e});Un.configure(e,n,t),Un.addBox(e,n),e.titleBlock=n}var QX={id:"title",_element:Vv,start(e,t,n){ZX(e,n)},stop(e){const t=e.titleBlock;Un.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;Un.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const df=new WeakMap;var eJ={id:"subtitle",start(e,t,n){const r=new Vv({ctx:e.ctx,options:n,chart:e});Un.configure(e,r,n),Un.addBox(e,r),df.set(e,r)},stop(e){Un.removeBox(e,df.get(e)),df.delete(e)},beforeUpdate(e,t,n){const r=df.get(e);Un.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Fl={average(e){if(!e.length)return!1;let t,n,r=0,i=0,s=0;for(t=0,n=e.length;t-1?e.split(` +`):e}function tJ(e,t){const{element:n,datasetIndex:r,index:i}=t,s=e.getDatasetMeta(r).controller,{label:o,value:a}=s.getLabelAndValue(i);return{chart:e,label:o,parsed:s.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:a,dataset:s.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function dx(e,t){const n=e.chart.ctx,{body:r,footer:i,title:s}=e,{boxWidth:o,boxHeight:a}=t,u=wn(t.bodyFont),c=wn(t.titleFont),d=wn(t.footerFont),h=s.length,g=i.length,m=r.length,b=Kn(t.padding);let v=b.height,_=0,y=r.reduce((x,S)=>x+S.before.length+S.lines.length+S.after.length,0);if(y+=e.beforeBody.length+e.afterBody.length,h&&(v+=h*c.lineHeight+(h-1)*t.titleSpacing+t.titleMarginBottom),y){const x=t.displayColors?Math.max(a,u.lineHeight):u.lineHeight;v+=m*x+(y-m)*u.lineHeight+(y-1)*t.bodySpacing}g&&(v+=t.footerMarginTop+g*d.lineHeight+(g-1)*t.footerSpacing);let C=0;const T=function(x){_=Math.max(_,n.measureText(x).width+C)};return n.save(),n.font=c.string,Wt(e.title,T),n.font=u.string,Wt(e.beforeBody.concat(e.afterBody),T),C=t.displayColors?o+2+t.boxPadding:0,Wt(r,x=>{Wt(x.before,T),Wt(x.lines,T),Wt(x.after,T)}),C=0,n.font=d.string,Wt(e.footer,T),n.restore(),_+=b.width,{width:_,height:v}}function nJ(e,t){const{y:n,height:r}=t;return ne.height-r/2?"bottom":"center"}function rJ(e,t,n,r){const{x:i,width:s}=r,o=n.caretSize+n.caretPadding;if(e==="left"&&i+s+o>t.width||e==="right"&&i-s-o<0)return!0}function iJ(e,t,n,r){const{x:i,width:s}=n,{width:o,chartArea:{left:a,right:u}}=e;let c="center";return r==="center"?c=i<=(a+u)/2?"left":"right":i<=s/2?c="left":i>=o-s/2&&(c="right"),rJ(c,e,t,n)&&(c="center"),c}function hx(e,t,n){const r=n.yAlign||t.yAlign||nJ(e,n);return{xAlign:n.xAlign||t.xAlign||iJ(e,t,n,r),yAlign:r}}function sJ(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function oJ(e,t,n){let{y:r,height:i}=e;return t==="top"?r+=n:t==="bottom"?r-=i+n:r-=i/2,r}function px(e,t,n,r){const{caretSize:i,caretPadding:s,cornerRadius:o}=e,{xAlign:a,yAlign:u}=n,c=i+s,{topLeft:d,topRight:h,bottomLeft:g,bottomRight:m}=Do(o);let b=sJ(t,a);const v=oJ(t,u,c);return u==="center"?a==="left"?b+=c:a==="right"&&(b-=c):a==="left"?b-=Math.max(d,g)+i:a==="right"&&(b+=Math.max(h,m)+i),{x:En(b,0,r.width-t.width),y:En(v,0,r.height-t.height)}}function hf(e,t,n){const r=Kn(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function gx(e){return pi([],ji(e))}function aJ(e,t,n){return Js(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function mx(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const aE={beforeTitle:Bi,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex"u"?aE[t].call(n,r):i}class Zg extends as{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,r=this.options.setContext(this.getContext()),i=r.enabled&&n.options.animation&&r.animations,s=new zO(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(s)),s}getContext(){return this.$context||(this.$context=aJ(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,i=ir(r,"beforeTitle",this,t),s=ir(r,"title",this,t),o=ir(r,"afterTitle",this,t);let a=[];return a=pi(a,ji(i)),a=pi(a,ji(s)),a=pi(a,ji(o)),a}getBeforeBody(t,n){return gx(ir(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,i=[];return Wt(t,s=>{const o={before:[],lines:[],after:[]},a=mx(r,s);pi(o.before,ji(ir(a,"beforeLabel",this,s))),pi(o.lines,ir(a,"label",this,s)),pi(o.after,ji(ir(a,"afterLabel",this,s))),i.push(o)}),i}getAfterBody(t,n){return gx(ir(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,i=ir(r,"beforeFooter",this,t),s=ir(r,"footer",this,t),o=ir(r,"afterFooter",this,t);let a=[];return a=pi(a,ji(i)),a=pi(a,ji(s)),a=pi(a,ji(o)),a}_createItems(t){const n=this._active,r=this.chart.data,i=[],s=[],o=[];let a=[],u,c;for(u=0,c=n.length;ut.filter(d,h,g,r))),t.itemSort&&(a=a.sort((d,h)=>t.itemSort(d,h,r))),Wt(a,d=>{const h=mx(t.callbacks,d);i.push(ir(h,"labelColor",this,d)),s.push(ir(h,"labelPointStyle",this,d)),o.push(ir(h,"labelTextColor",this,d))}),this.labelColors=i,this.labelPointStyles=s,this.labelTextColors=o,this.dataPoints=a,a}update(t,n){const r=this.options.setContext(this.getContext()),i=this._active;let s,o=[];if(!i.length)this.opacity!==0&&(s={opacity:0});else{const a=Fl[r.position].call(this,i,this._eventPosition);o=this._createItems(r),this.title=this.getTitle(o,r),this.beforeBody=this.getBeforeBody(o,r),this.body=this.getBody(o,r),this.afterBody=this.getAfterBody(o,r),this.footer=this.getFooter(o,r);const u=this._size=dx(this,r),c=Object.assign({},a,u),d=hx(this.chart,r,c),h=px(r,c,d,this.chart);this.xAlign=d.xAlign,this.yAlign=d.yAlign,s={opacity:1,x:h.x,y:h.y,width:u.width,height:u.height,caretX:a.x,caretY:a.y}}this._tooltipItems=o,this.$context=void 0,s&&this._resolveAnimations().update(this,s),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,i){const s=this.getCaretPosition(t,r,i);n.lineTo(s.x1,s.y1),n.lineTo(s.x2,s.y2),n.lineTo(s.x3,s.y3)}getCaretPosition(t,n,r){const{xAlign:i,yAlign:s}=this,{caretSize:o,cornerRadius:a}=r,{topLeft:u,topRight:c,bottomLeft:d,bottomRight:h}=Do(a),{x:g,y:m}=t,{width:b,height:v}=n;let _,y,C,T,x,S;return s==="center"?(x=m+v/2,i==="left"?(_=g,y=_-o,T=x+o,S=x-o):(_=g+b,y=_+o,T=x-o,S=x+o),C=_):(i==="left"?y=g+Math.max(u,d)+o:i==="right"?y=g+b-Math.max(c,h)-o:y=this.caretX,s==="top"?(T=m,x=T-o,_=y-o,C=y+o):(T=m+v,x=T+o,_=y+o,C=y-o),S=T),{x1:_,x2:y,x3:C,y1:T,y2:x,y3:S}}drawTitle(t,n,r){const i=this.title,s=i.length;let o,a,u;if(s){const c=Ca(r.rtl,this.x,this.width);for(t.x=hf(this,r.titleAlign,r),n.textAlign=c.textAlign(r.titleAlign),n.textBaseline="middle",o=wn(r.titleFont),a=r.titleSpacing,n.fillStyle=r.titleColor,n.font=o.string,u=0;uC!==0)?(t.beginPath(),t.fillStyle=s.multiKeyBackground,Mu(t,{x:v,y:b,w:c,h:u,radius:y}),t.fill(),t.stroke(),t.fillStyle=o.backgroundColor,t.beginPath(),Mu(t,{x:_,y:b+1,w:c-2,h:u-2,radius:y}),t.fill()):(t.fillStyle=s.multiKeyBackground,t.fillRect(v,b,c,u),t.strokeRect(v,b,c,u),t.fillStyle=o.backgroundColor,t.fillRect(_,b+1,c-2,u-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:i}=this,{bodySpacing:s,bodyAlign:o,displayColors:a,boxHeight:u,boxWidth:c,boxPadding:d}=r,h=wn(r.bodyFont);let g=h.lineHeight,m=0;const b=Ca(r.rtl,this.x,this.width),v=function(R){n.fillText(R,b.x(t.x+m),t.y+g/2),t.y+=g+s},_=b.textAlign(o);let y,C,T,x,S,E,A;for(n.textAlign=o,n.textBaseline="middle",n.font=h.string,t.x=hf(this,_,r),n.fillStyle=r.bodyColor,Wt(this.beforeBody,v),m=a&&_!=="right"?o==="center"?c/2+d:c+2+d:0,x=0,E=i.length;x0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,i=r&&r.x,s=r&&r.y;if(i||s){const o=Fl[t.position].call(this,this._active,this._eventPosition);if(!o)return;const a=this._size=dx(this,t),u=Object.assign({},o,this._size),c=hx(n,t,u),d=px(t,u,c,n);(i._to!==d.x||s._to!==d.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=a.width,this.height=a.height,this.caretX=o.x,this.caretY=o.y,this._resolveAnimations().update(this,d))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},s={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const o=Kn(n.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&a&&(t.save(),t.globalAlpha=r,this.drawBackground(s,t,i,n),$O(t,n.textDirection),s.y+=o.top,this.drawTitle(s,t,n),this.drawBody(s,t,n),this.drawFooter(s,t,n),FO(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,i=t.map(({datasetIndex:a,index:u})=>{const c=this.chart.getDatasetMeta(a);if(!c)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:c.data[u],index:u}}),s=!ld(r,i),o=this._positionChanged(i,n);(s||o)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,s=this._active||[],o=this._getActiveElements(t,s,n,r),a=this._positionChanged(o,t),u=n||!ld(o,s)||a;return u&&(this._active=o,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),u}_getActiveElements(t,n,r,i){const s=this.options;if(t.type==="mouseout")return[];if(!i)return n;const o=this.chart.getElementsAtEventForMode(t,s.mode,s,r);return s.reverse&&o.reverse(),o}_positionChanged(t,n){const{caretX:r,caretY:i,options:s}=this,o=Fl[s.position].call(this,t,n);return o!==!1&&(r!==o.x||i!==o.y)}}Re(Zg,"positioners",Fl);var lJ={id:"tooltip",_element:Zg,positioners:Fl,afterInit(e,t,n){n&&(e.tooltip=new Zg({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:aE},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},uJ=Object.freeze({__proto__:null,Colors:wX,Decimation:OX,Filler:UX,Legend:JX,SubTitle:eJ,Title:QX,Tooltip:lJ});const cJ=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function fJ(e,t,n,r){const i=e.indexOf(t);if(i===-1)return cJ(e,t,n,r);const s=e.lastIndexOf(t);return i!==s?n:i}const dJ=(e,t)=>e===null?null:En(Math.round(e),0,t);function vx(e){const t=this.getLabels();return e>=0&&en.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}Re(Qg,"id","category"),Re(Qg,"defaults",{ticks:{callback:vx}});function hJ(e,t){const n=[],{bounds:i,step:s,min:o,max:a,precision:u,count:c,maxTicks:d,maxDigits:h,includeBounds:g}=e,m=s||1,b=d-1,{min:v,max:_}=t,y=!Rt(o),C=!Rt(a),T=!Rt(c),x=(_-v)/(h+1);let S=fw((_-v)/b/m)*m,E,A,R,$;if(S<1e-14&&!y&&!C)return[{value:v},{value:_}];$=Math.ceil(_/S)-Math.floor(v/S),$>b&&(S=fw($*S/b/m)*m),Rt(u)||(E=Math.pow(10,u),S=Math.ceil(S*E)/E),i==="ticks"?(A=Math.floor(v/S)*S,R=Math.ceil(_/S)*S):(A=v,R=_),y&&C&&s&&aq((a-o)/s,S/1e3)?($=Math.round(Math.min((a-o)/S,d)),S=(a-o)/$,A=o,R=a):T?(A=y?o:A,R=C?a:R,$=c-1,S=(R-A)/$):($=(R-A)/S,Zl($,Math.round($),S/1e3)?$=Math.round($):$=Math.ceil($));const B=Math.max(dw(S),dw(A));E=Math.pow(10,Rt(u)?B:u),A=Math.round(A*E)/E,R=Math.round(R*E)/E;let V=0;for(y&&(g&&A!==o?(n.push({value:o}),Aa)break;n.push({value:P})}return C&&g&&R!==a?n.length&&Zl(n[n.length-1].value,a,bx(a,x,e))?n[n.length-1].value=a:n.push({value:a}):(!C||R===a)&&n.push({value:R}),n}function bx(e,t,{horizontal:n,minRotation:r}){const i=ei(r),s=(n?Math.sin(i):Math.cos(i))||.001,o=.75*t*(""+e).length;return Math.min(t/s,o)}class gd extends Xo{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return Rt(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:i,max:s}=this;const o=u=>i=n?i:u,a=u=>s=r?s:u;if(t){const u=wi(i),c=wi(s);u<0&&c<0?a(0):u>0&&c>0&&o(0)}if(i===s){let u=s===0?1:Math.abs(s*.05);a(s+u),t||o(i-u)}this.min=i,this.max=s}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,i;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const i={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},s=this._range||this,o=hJ(i,s);return t.bounds==="ticks"&&vO(o,this,"value"),t.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const i=(r-n)/Math.max(t.length-1,1)/2;n-=i,r+=i}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return Ku(t,this.chart.options.locale,this.options.ticks.format)}}class em extends gd{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=cn(t)?t:0,this.max=cn(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=ei(this.options.ticks.minRotation),i=(t?Math.sin(r):Math.cos(r))||.001,s=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,s.lineHeight/i))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}Re(em,"id","linear"),Re(em,"defaults",{ticks:{callback:Ud.formatters.numeric}});const Au=e=>Math.floor(Ps(e)),go=(e,t)=>Math.pow(10,Au(e)+t);function yx(e){return e/Math.pow(10,Au(e))===1}function _x(e,t,n){const r=Math.pow(10,n),i=Math.floor(e/r);return Math.ceil(t/r)-i}function pJ(e,t){const n=t-e;let r=Au(n);for(;_x(e,t,r)>10;)r++;for(;_x(e,t,r)<10;)r--;return Math.min(r,Au(e))}function gJ(e,{min:t,max:n}){t=_r(e.min,t);const r=[],i=Au(t);let s=pJ(t,n),o=s<0?Math.pow(10,Math.abs(s)):1;const a=Math.pow(10,s),u=i>s?Math.pow(10,i):0,c=Math.round((t-u)*o)/o,d=Math.floor((t-u)/a/10)*a*10;let h=Math.floor((c-d)/Math.pow(10,s)),g=_r(e.min,Math.round((u+d+h*Math.pow(10,s))*o)/o);for(;g=10?h=h<15?15:20:h++,h>=20&&(s++,h=2,o=s>=0?1:o),g=Math.round((u+d+h*Math.pow(10,s))*o)/o;const m=_r(e.max,g);return r.push({value:m,major:yx(m),significand:h}),r}class tm extends Xo{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){const r=gd.prototype.parse.apply(this,[t,n]);if(r===0){this._zero=!0;return}return cn(r)&&r>0?r:null}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=cn(t)?Math.max(0,t):null,this.max=cn(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!cn(this._userMin)&&(this.min=t===go(this.min,0)?go(this.min,-1):go(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let r=this.min,i=this.max;const s=a=>r=t?r:a,o=a=>i=n?i:a;r===i&&(r<=0?(s(1),o(10)):(s(go(r,-1)),o(go(i,1)))),r<=0&&s(go(i,-1)),i<=0&&o(go(r,1)),this.min=r,this.max=i}buildTicks(){const t=this.options,n={min:this._userMin,max:this._userMax},r=gJ(n,this);return t.bounds==="ticks"&&vO(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(t){return t===void 0?"0":Ku(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=Ps(t),this._valueRange=Ps(this.max)-Ps(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Ps(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}}Re(tm,"id","logarithmic"),Re(tm,"defaults",{ticks:{callback:Ud.formatters.logarithmic,major:{enabled:!0}}});function nm(e){const t=e.ticks;if(t.display&&e.display){const n=Kn(t.backdropPadding);return pt(t.font&&t.font.size,dn.font.size)+n.height}return 0}function mJ(e,t,n){return n=Qt(n)?n:[n],{w:Sq(e,t.string,n),h:n.length*t.lineHeight}}function wx(e,t,n,r,i){return e===r||e===i?{start:t-n/2,end:t+n/2}:ei?{start:t-n,end:t}:{start:t,end:t+n}}function vJ(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],i=[],s=e._pointLabels.length,o=e.options.pointLabels,a=o.centerPointLabels?on/s:0;for(let u=0;ut.r&&(a=(r.end-t.r)/s,e.r=Math.max(e.r,t.r+a)),i.startt.b&&(u=(i.end-t.b)/o,e.b=Math.max(e.b,t.b+u))}function yJ(e,t,n){const r=e.drawingArea,{extra:i,additionalAngle:s,padding:o,size:a}=n,u=e.getPointPosition(t,r+i+o,s),c=Math.round(kv(Cr(u.angle+fn))),d=SJ(u.y,a.h,c),h=xJ(c),g=CJ(u.x,a.w,h);return{visible:!0,x:u.x,y:d,textAlign:h,left:g,top:d,right:g+a.w,bottom:d+a.h}}function _J(e,t){if(!t)return!0;const{left:n,top:r,right:i,bottom:s}=e;return!(Xi({x:n,y:r},t)||Xi({x:n,y:s},t)||Xi({x:i,y:r},t)||Xi({x:i,y:s},t))}function wJ(e,t,n){const r=[],i=e._pointLabels.length,s=e.options,{centerPointLabels:o,display:a}=s.pointLabels,u={extra:nm(s)/2,additionalAngle:o?on/i:0};let c;for(let d=0;d270||n<90)&&(e-=t),e}function OJ(e,t,n){const{left:r,top:i,right:s,bottom:o}=n,{backdropColor:a}=t;if(!Rt(a)){const u=Do(t.borderRadius),c=Kn(t.backdropPadding);e.fillStyle=a;const d=r-c.left,h=i-c.top,g=s-r+c.width,m=o-i+c.height;Object.values(u).some(b=>b!==0)?(e.beginPath(),Mu(e,{x:d,y:h,w:g,h:m,radius:u}),e.fill()):e.fillRect(d,h,g,m)}}function EJ(e,t){const{ctx:n,options:{pointLabels:r}}=e;for(let i=t-1;i>=0;i--){const s=e._pointLabelItems[i];if(!s.visible)continue;const o=r.setContext(e.getPointLabelContext(i));OJ(n,o,s);const a=wn(o.font),{x:u,y:c,textAlign:d}=s;Vo(n,e._pointLabels[i],u,c+a.lineHeight/2,a,{color:o.color,textAlign:d,textBaseline:"middle"})}}function lE(e,t,n,r){const{ctx:i}=e;if(n)i.arc(e.xCenter,e.yCenter,t,0,en);else{let s=e.getPointPosition(0,t);i.moveTo(s.x,s.y);for(let o=1;o{const i=qt(this.options.pointLabels.callback,[n,r],this);return i||i===0?i:""}).filter((n,r)=>this.chart.getDataVisibility(r))}fit(){const t=this.options;t.display&&t.pointLabels.display?vJ(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,r,i){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((r-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,r,i))}getIndexAngle(t){const n=en/(this._pointLabels.length||1),r=this.options.startAngle||0;return Cr(t*n+ei(r))}getDistanceFromCenterForValue(t){if(Rt(t))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if(Rt(t))return NaN;const n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){const n=this._pointLabels||[];if(t>=0&&t{if(h!==0){u=this.getDistanceFromCenterForValue(d.value);const g=this.getContext(h),m=i.setContext(g),b=s.setContext(g);MJ(this,m,u,o,b)}}),r.display){for(t.save(),a=o-1;a>=0;a--){const d=r.setContext(this.getPointLabelContext(a)),{color:h,lineWidth:g}=d;!g||!h||(t.lineWidth=g,t.strokeStyle=h,t.setLineDash(d.borderDash),t.lineDashOffset=d.borderDashOffset,u=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),c=this.getPointPosition(a,u),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(c.x,c.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,n=this.options,r=n.ticks;if(!r.display)return;const i=this.getIndexAngle(0);let s,o;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((a,u)=>{if(u===0&&!n.reverse)return;const c=r.setContext(this.getContext(u)),d=wn(c.font);if(s=this.getDistanceFromCenterForValue(this.ticks[u].value),c.showLabelBackdrop){t.font=d.string,o=t.measureText(a.label).width,t.fillStyle=c.backdropColor;const h=Kn(c.backdropPadding);t.fillRect(-o/2-h.left,-s-d.size/2-h.top,o+h.width,d.size+h.height)}Vo(t,a.label,0,-s,d,{color:c.color})}),t.restore()}drawTitle(){}}Re(Dl,"id","radialLinear"),Re(Dl,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Ud.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),Re(Dl,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),Re(Dl,"descriptors",{angleLines:{_fallback:"grid"}});const Gd={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},or=Object.keys(Gd);function AJ(e,t){return e-t}function xx(e,t){if(Rt(t))return null;const n=e._adapter,{parser:r,round:i,isoWeekday:s}=e._parseOpts;let o=t;return typeof r=="function"&&(o=r(o)),cn(o)||(o=typeof r=="string"?n.parse(o,r):n.parse(o)),o===null?null:(i&&(o=i==="week"&&(Ha(s)||s===!0)?n.startOf(o,"isoWeek",s):n.startOf(o,i)),+o)}function Cx(e,t,n,r){const i=or.length;for(let s=or.indexOf(e);s=or.indexOf(n);s--){const o=or[s];if(Gd[o].common&&e._adapter.diff(i,r,o)>=t-1)return o}return or[n?or.indexOf(n):0]}function RJ(e){for(let t=or.indexOf(e)+1,n=or.length;t=t?n[r]:n[i];e[s]=!0}}function kJ(e,t,n,r){const i=e._adapter,s=+i.startOf(t[0].value,r),o=t[t.length-1].value;let a,u;for(a=s;a<=o;a=+i.add(a,1,r))u=n[a],u>=0&&(t[u].major=!0);return t}function Ox(e,t,n){const r=[],i={},s=t.length;let o,a;for(o=0;o+t.value))}initOffsets(t=[]){let n=0,r=0,i,s;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?n=1-i:n=(this.getDecimalForValue(t[1])-i)/2,s=this.getDecimalForValue(t[t.length-1]),t.length===1?r=s:r=(s-this.getDecimalForValue(t[t.length-2]))/2);const o=t.length<3?.5:.25;n=En(n,0,o),r=En(r,0,o),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,i=this.options,s=i.time,o=s.unit||Cx(s.minUnit,n,r,this._getLabelCapacity(n)),a=pt(i.ticks.stepSize,1),u=o==="week"?s.isoWeekday:!1,c=Ha(u)||u===!0,d={};let h=n,g,m;if(c&&(h=+t.startOf(h,"isoWeek",u)),h=+t.startOf(h,c?"day":o),t.diff(r,n,o)>1e5*a)throw new Error(n+" and "+r+" are too far apart with stepSize of "+a+" "+o);const b=i.ticks.source==="data"&&this.getDataTimestamps();for(g=h,m=0;gv-_).map(v=>+v)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}format(t,n){const i=this.options.time.displayFormats,s=this._unit,o=n||i[s];return this._adapter.format(t,o)}_tickFormatFunction(t,n,r,i){const s=this.options,o=s.ticks.callback;if(o)return qt(o,[t,n,r],this);const a=s.time.displayFormats,u=this._unit,c=this._majorUnit,d=u&&a[u],h=c&&a[c],g=r[n],m=c&&h&&g&&g.major;return this._adapter.format(t,i||(m?h:d))}generateTickLabels(t){let n,r,i;for(n=0,r=t.length;n0?a:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,r=i.length;n=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=Gi(e,"pos",t)),{pos:s,time:a}=e[r],{pos:o,time:u}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=Gi(e,"time",t)),{time:s,pos:a}=e[r],{time:o,pos:u}=e[i]);const c=o-s;return c?a+(u-a)*(t-s)/c:a}class rm extends Pu{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=pf(n,this.min),this._tableRange=pf(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,i=[],s=[];let o,a,u,c,d;for(o=0,a=t.length;o=n&&c<=r&&i.push(c);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(o=0,a=i.length;o{n=new vi(r,{type:"pie",data:{labels:["Soil C (0-30 cm)","Nitrous Oxide (Fertiliser)","Nitrous Oxide (Mineralised)","Nitrous Oxide (Residues)","Nitrous Oxide (Indirect)","Nitrous Oxide (Urine)","Methane (Animal)"],datasets:[{label:" ",backgroundColor:["rgb(44,55,166)","rgb(255, 99, 132)","rgb(54, 162, 235)","rgb(255, 205, 86)","rgb(79,73,79)","rgb(206,58,31)","rgb(217,109,62)"],data:[t.data.co2[t.data.years.length-1],t.data.n2o.fert[t.data.years.length-1],t.data.n2o.min[t.data.years.length-1],t.data.n2o.res[t.data.years.length-1],t.data.n2o.indirect[t.data.years.length-1],t.data.n2o.urine[t.data.years.length-1],t.data.ch4.animal[t.data.years.length-1]]}]},hoverOffset:1,options:{responsive:!0,maintainAspectRatio:!0}})};return Lt(()=>{r=document.getElementById("pieChartCanvas"),i()}),Uo(()=>{n.data={labels:["Soil C (0-30 cm)","Nitrous Oxide (Fertiliser)","Nitrous Oxide (Mineralised)","Nitrous Oxide (Residues)","Nitrous Oxide (Indirect)","Nitrous Oxide (Urine)","Methane (Animal)"],datasets:[{label:" ",backgroundColor:["rgb(44,55,166)","rgb(255, 99, 132)","rgb(54, 162, 235)","rgb(255, 205, 86)","rgb(79,73,79)","rgb(206,58,31)","rgb(217,109,62)"],data:[t.data.co2[t.data.years.length-1],t.data.n2o.fert[t.data.years.length-1],t.data.n2o.min[t.data.years.length-1],t.data.n2o.res[t.data.years.length-1],t.data.n2o.indirect[t.data.years.length-1],t.data.n2o.urine[t.data.years.length-1],t.data.ch4.animal[t.data.years.length-1]]}]},n.update()}),(s,o)=>(K(),_e(ot,null,[L("div",$J,[L("h3",FJ,wt(t.label),1)]),DJ],64))}};const BJ=L("h3",null,"Simulation Results",-1),zJ=L("br",null,null,-1),HJ=L("br",null,null,-1),WJ=L("br",null,null,-1),VJ=L("br",null,null,-1),jJ=L("br",null,null,-1),UJ=L("br",null,null,-1),KJ=L("br",null,null,-1),qJ=L("br",null,null,-1),YJ=L("br",null,null,-1),GJ=L("sub",null,"2",-1),XJ=L("sub",null,"2",-1),JJ=L("br",null,null,-1),ZJ=L("br",null,null,-1),QJ=L("sub",null,"2",-1),eZ=L("sub",null,"2",-1),tZ=L("br",null,null,-1),nZ=L("br",null,null,-1),rZ=L("sub",null,"2",-1),iZ=L("sub",null,"2",-1),sZ=L("br",null,null,-1),oZ=L("br",null,null,-1),aZ=L("sub",null,"2",-1),lZ=L("sub",null,"2",-1),uZ=L("br",null,null,-1),cZ=L("br",null,null,-1),fZ=L("sub",null,"2",-1),dZ=L("sub",null,"2",-1),hZ=L("br",null,null,-1),pZ=L("br",null,null,-1),gZ=L("sub",null,"2",-1),mZ=L("sub",null,"4",-1),vZ=L("br",null,null,-1),bZ=L("br",null,null,-1),yZ=L("sub",null,"2",-1),_Z=L("br",null,null,-1),wZ=L("sub",null,"2",-1),xZ=L("div",{class:"table-error"},null,-1),CZ={__name:"ResultsTable",props:["results","initialOC"],setup(e){const t=e,n=H(()=>{const r=ut(t.results),i=[];i.push({year:r.years[0]-1,oc:t.initialOC});for(let s=0;s{const s=Z2,o=J2,a=ui;return K(),_e(ot,null,[BJ,z(a,null,{default:D(()=>[z(o,{data:n.value,border:"",style:{width:"100%"}},{default:D(()=>[z(s,{prop:"year",label:"Year"}),z(s,{prop:"crop",label:"Crop"}),z(s,{prop:"rain"},{header:D(()=>[Z("Rain "),zJ,Z("mm")]),_:1}),z(s,{prop:"yields","min-width":"90px"},{header:D(()=>[Z("Yield "),HJ,Z("kg DM/ha")]),_:1}),z(s,{prop:"biomass","min-width":"90px"},{header:D(()=>[Z("Biomass "),WJ,Z("kg C/ha")]),_:1}),z(s,{prop:"nitrogen","min-width":"90px"},{header:D(()=>[Z("Fert "),VJ,Z("kg N/ha")]),_:1}),z(s,{prop:"urine","min-width":"90px"},{header:D(()=>[Z("Urine "),jJ,Z("kg N/ha")]),_:1}),z(s,{prop:"oc","min-width":"100px"},{header:D(()=>[Z("OC"),UJ,Z("(0-10 cm)"),KJ,Z("%")]),_:1}),z(s,{prop:"co2","min-width":"130px"},{header:D(()=>[Z("Soil C "),qJ,Z("(0-30 cm)"),YJ,Z("kg CO"),GJ,Z("-eq/ha")]),_:1}),z(s,{prop:"n2o_fert","min-width":"130px"},{header:D(()=>[Z("N"),XJ,Z("O"),JJ,Z("(Fertiliser)"),ZJ,Z("kg CO"),QJ,Z("-eq/ha")]),_:1}),z(s,{prop:"n2o_min","min-width":"130px"},{header:D(()=>[Z("N"),eZ,Z("O"),tZ,Z("(Mineralised)"),nZ,Z("kg CO"),rZ,Z("-eq/ha")]),_:1}),z(s,{prop:"n2o_res","min-width":"130px"},{header:D(()=>[Z("N"),iZ,Z("O"),sZ,Z("(Residues)"),oZ,Z("kg CO"),aZ,Z("-eq/ha")]),_:1}),z(s,{prop:"n2o_indirect","min-width":"130px"},{header:D(()=>[Z("N"),lZ,Z("O"),uZ,Z("(Indirect)"),cZ,Z("kg CO"),fZ,Z("-eq/ha")]),_:1}),z(s,{prop:"n2o_urine","min-width":"130px"},{header:D(()=>[Z("N"),dZ,Z("O"),hZ,Z("(Urine)"),pZ,Z("kg CO"),gZ,Z("-eq/ha")]),_:1}),z(s,{prop:"ch4_animal","min-width":"130px"},{header:D(()=>[Z("CH"),mZ,vZ,Z("(Animal)"),bZ,Z("kg CO"),yZ,Z("-eq/ha")]),_:1}),z(s,{prop:"total","min-width":"130px"},{header:D(()=>[Z("TOTAL"),_Z,Z("kg CO"),wZ,Z("-eq/ha")]),_:1})]),_:1},8,["data"]),xZ]),_:1})],64)}}},SZ=L("h3",null,"Table of management",-1),OZ=L("div",{class:"table-error"},null,-1),EZ={__name:"ManagementTable",props:["results"],setup(e){const t=e,n=H(()=>{const r=ut(t.results),i=[],s=["crop","nitrogen","stubble","grazing"];for(let o of s){const a={};a.year=o.charAt(0).toUpperCase()+o.slice(1);for(let u=0;u{const s=Z2,o=J2,a=ui;return K(),_e(ot,null,[SZ,z(a,null,{default:D(()=>[z(o,{data:n.value,border:"",style:{width:"100%"}},{default:D(()=>[z(s,{prop:"year",label:"Year",width:"100px"}),(K(!0),_e(ot,null,Pn(e.results.years,u=>(K(),Ae(s,{prop:`'${u}'`},{header:D(()=>[Z(wt(u),1)]),_:2},1032,["prop"]))),256))]),_:1},8,["data"]),OZ]),_:1})],64)}}},MZ=L("canvas",{id:"lineChartCanvas",style:{position:"relative",height:"40vh",width:"80vw"}},null,-1),TZ=[MZ],AZ={__name:"LineChart",props:["label","xAxis","data"],setup(e){const t=e;let n,r;const i=({min:s,max:o})=>{n=new vi(r,{type:"line",data:{labels:t.xAxis,datasets:[{label:t.label,backgroundColor:"rgba(220,220,220,0.26)",borderColor:"rgb(53,148,126)",data:t.data}]},options:{responsive:!0,maintainAspectRatio:!1,lineTension:0,scales:{y:{ticks:{beginAtZero:!1,padding:25},suggestedMin:s,suggestedMax:o},x:{}}}})};return Lt(()=>{r=document.getElementById("lineChartCanvas");const s=t.data[0]+t.data[0]*.01,o=t.data[t.data.length-1]-t.data[t.data.length-1]*.01;i({min:o,max:s,data:t.data})}),Uo(()=>{const s=t.data[0]+t.data[0]*.01,o=t.data[t.data.length-1]-t.data[t.data.length-1]*.01;n.options={responsive:!0,maintainAspectRatio:!0,lineTension:0,scales:{y:{ticks:{beginAtZero:!1,padding:25},suggestedMin:o,suggestedMax:s},x:{}}},n.data={labels:t.xAxis,datasets:[{label:t.label,backgroundColor:"rgba(220,220,220,0.26)",borderColor:"rgb(53,148,126)",data:t.data}]},n.update()}),(s,o)=>(K(),_e("div",null,TZ))}};var md={exports:{}};/** + * @license + * Lodash + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */md.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",a="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",c=500,d="__lodash_placeholder__",h=1,g=2,m=4,b=1,v=2,_=1,y=2,C=4,T=8,x=16,S=32,E=64,A=128,R=256,$=512,B=30,V="...",P=800,j=16,ue=1,ce=2,ne=3,Q=1/0,ie=9007199254740991,ee=17976931348623157e292,ye=0/0,Ee=4294967295,ke=Ee-1,Ze=Ee>>>1,le=[["ary",A],["bind",_],["bindKey",y],["curry",T],["curryRight",x],["flip",$],["partial",S],["partialRight",E],["rearg",R]],Ye="[object Arguments]",Ne="[object Array]",Y="[object AsyncFunction]",oe="[object Boolean]",de="[object Date]",Oe="[object DOMException]",We="[object Error]",F="[object Function]",W="[object GeneratorFunction]",q="[object Map]",se="[object Number]",he="[object Null]",ge="[object Object]",Te="[object Promise]",Se="[object Proxy]",Ce="[object RegExp]",pe="[object Set]",Be="[object String]",Pe="[object Symbol]",re="[object Undefined]",Me="[object WeakMap]",Ue="[object WeakSet]",at="[object ArrayBuffer]",st="[object DataView]",Bt="[object Float32Array]",Le="[object Float64Array]",Ke="[object Int8Array]",ct="[object Int16Array]",Qe="[object Int32Array]",xt="[object Uint8Array]",St="[object Uint8ClampedArray]",Ft="[object Uint16Array]",te="[object Uint32Array]",we=/\b__p \+= '';/g,Xe=/\b(__p \+=) '' \+/g,ft=/(__e\(.*?\)|\b__t\)) \+\n'';/g,nn=/&(?:amp|lt|gt|quot|#39);/g,an=/[&<>"']/g,dr=RegExp(nn.source),Vr=RegExp(an.source),Zn=/<%-([\s\S]+?)%>/g,nl=/<%([\s\S]+?)%>/g,Fn=/<%=([\s\S]+?)%>/g,Mi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xE=/^\w*$/,CE=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Qd=/[\\^$.*+?()[\]{}|]/g,SE=RegExp(Qd.source),eh=/^\s+/,OE=/\s/,EE=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ME=/\{\n\/\* \[wrapped with (.+)\] \*/,TE=/,? & /,AE=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,PE=/[()=,{}\[\]\/\s]/,RE=/\\(\\)?/g,kE=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Uv=/\w*$/,LE=/^[-+]0x[0-9a-f]+$/i,IE=/^0b[01]+$/i,$E=/^\[object .+?Constructor\]$/,FE=/^0o[0-7]+$/i,DE=/^(?:0|[1-9]\d*)$/,NE=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Yu=/($^)/,BE=/['\n\r\u2028\u2029\\]/g,Gu="\\ud800-\\udfff",zE="\\u0300-\\u036f",HE="\\ufe20-\\ufe2f",WE="\\u20d0-\\u20ff",Kv=zE+HE+WE,qv="\\u2700-\\u27bf",Yv="a-z\\xdf-\\xf6\\xf8-\\xff",VE="\\xac\\xb1\\xd7\\xf7",jE="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",UE="\\u2000-\\u206f",KE=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Gv="A-Z\\xc0-\\xd6\\xd8-\\xde",Xv="\\ufe0e\\ufe0f",Jv=VE+jE+UE+KE,th="['’]",qE="["+Gu+"]",Zv="["+Jv+"]",Xu="["+Kv+"]",Qv="\\d+",YE="["+qv+"]",eb="["+Yv+"]",tb="[^"+Gu+Jv+Qv+qv+Yv+Gv+"]",nh="\\ud83c[\\udffb-\\udfff]",GE="(?:"+Xu+"|"+nh+")",nb="[^"+Gu+"]",rh="(?:\\ud83c[\\udde6-\\uddff]){2}",ih="[\\ud800-\\udbff][\\udc00-\\udfff]",Jo="["+Gv+"]",rb="\\u200d",ib="(?:"+eb+"|"+tb+")",XE="(?:"+Jo+"|"+tb+")",sb="(?:"+th+"(?:d|ll|m|re|s|t|ve))?",ob="(?:"+th+"(?:D|LL|M|RE|S|T|VE))?",ab=GE+"?",lb="["+Xv+"]?",JE="(?:"+rb+"(?:"+[nb,rh,ih].join("|")+")"+lb+ab+")*",ZE="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",QE="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ub=lb+ab+JE,eM="(?:"+[YE,rh,ih].join("|")+")"+ub,tM="(?:"+[nb+Xu+"?",Xu,rh,ih,qE].join("|")+")",nM=RegExp(th,"g"),rM=RegExp(Xu,"g"),sh=RegExp(nh+"(?="+nh+")|"+tM+ub,"g"),iM=RegExp([Jo+"?"+eb+"+"+sb+"(?="+[Zv,Jo,"$"].join("|")+")",XE+"+"+ob+"(?="+[Zv,Jo+ib,"$"].join("|")+")",Jo+"?"+ib+"+"+sb,Jo+"+"+ob,QE,ZE,Qv,eM].join("|"),"g"),sM=RegExp("["+rb+Gu+Kv+Xv+"]"),oM=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,aM=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],lM=-1,Gt={};Gt[Bt]=Gt[Le]=Gt[Ke]=Gt[ct]=Gt[Qe]=Gt[xt]=Gt[St]=Gt[Ft]=Gt[te]=!0,Gt[Ye]=Gt[Ne]=Gt[at]=Gt[oe]=Gt[st]=Gt[de]=Gt[We]=Gt[F]=Gt[q]=Gt[se]=Gt[ge]=Gt[Ce]=Gt[pe]=Gt[Be]=Gt[Me]=!1;var Ut={};Ut[Ye]=Ut[Ne]=Ut[at]=Ut[st]=Ut[oe]=Ut[de]=Ut[Bt]=Ut[Le]=Ut[Ke]=Ut[ct]=Ut[Qe]=Ut[q]=Ut[se]=Ut[ge]=Ut[Ce]=Ut[pe]=Ut[Be]=Ut[Pe]=Ut[xt]=Ut[St]=Ut[Ft]=Ut[te]=!0,Ut[We]=Ut[F]=Ut[Me]=!1;var uM={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},cM={"&":"&","<":"<",">":">",'"':""","'":"'"},fM={"&":"&","<":"<",">":">",""":'"',"'":"'"},dM={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},hM=parseFloat,pM=parseInt,cb=typeof Zt=="object"&&Zt&&Zt.Object===Object&&Zt,gM=typeof self=="object"&&self&&self.Object===Object&&self,Tn=cb||gM||Function("return this")(),oh=t&&!t.nodeType&&t,Zs=oh&&!0&&e&&!e.nodeType&&e,fb=Zs&&Zs.exports===oh,ah=fb&&cb.process,Mr=function(){try{var G=Zs&&Zs.require&&Zs.require("util").types;return G||ah&&ah.binding&&ah.binding("util")}catch{}}(),db=Mr&&Mr.isArrayBuffer,hb=Mr&&Mr.isDate,pb=Mr&&Mr.isMap,gb=Mr&&Mr.isRegExp,mb=Mr&&Mr.isSet,vb=Mr&&Mr.isTypedArray;function hr(G,fe,ae){switch(ae.length){case 0:return G.call(fe);case 1:return G.call(fe,ae[0]);case 2:return G.call(fe,ae[0],ae[1]);case 3:return G.call(fe,ae[0],ae[1],ae[2])}return G.apply(fe,ae)}function mM(G,fe,ae,ze){for(var dt=-1,It=G==null?0:G.length;++dt-1}function lh(G,fe,ae){for(var ze=-1,dt=G==null?0:G.length;++ze-1;);return ae}function Ob(G,fe){for(var ae=G.length;ae--&&Zo(fe,G[ae],0)>-1;);return ae}function OM(G,fe){for(var ae=G.length,ze=0;ae--;)G[ae]===fe&&++ze;return ze}var EM=dh(uM),MM=dh(cM);function TM(G){return"\\"+dM[G]}function AM(G,fe){return G==null?n:G[fe]}function Qo(G){return sM.test(G)}function PM(G){return oM.test(G)}function RM(G){for(var fe,ae=[];!(fe=G.next()).done;)ae.push(fe.value);return ae}function mh(G){var fe=-1,ae=Array(G.size);return G.forEach(function(ze,dt){ae[++fe]=[dt,ze]}),ae}function Eb(G,fe){return function(ae){return G(fe(ae))}}function cs(G,fe){for(var ae=-1,ze=G.length,dt=0,It=[];++ae-1}function bT(l,f){var p=this.__data__,w=pc(p,l);return w<0?(++this.size,p.push([l,f])):p[w][1]=f,this}Ti.prototype.clear=pT,Ti.prototype.delete=gT,Ti.prototype.get=mT,Ti.prototype.has=vT,Ti.prototype.set=bT;function Ai(l){var f=-1,p=l==null?0:l.length;for(this.clear();++f=f?l:f)),l}function Rr(l,f,p,w,M,I){var N,U=f&h,J=f&g,me=f&m;if(p&&(N=M?p(l,w,M,I):p(l)),N!==n)return N;if(!ln(l))return l;var ve=ht(l);if(ve){if(N=xA(l),!U)return Qn(l,N)}else{var xe=Nn(l),Fe=xe==F||xe==W;if(ms(l))return ly(l,U);if(xe==ge||xe==Ye||Fe&&!M){if(N=J||Fe?{}:My(l),!U)return J?fA(l,IT(N,l)):cA(l,Nb(N,l))}else{if(!Ut[xe])return M?l:{};N=CA(l,xe,U)}}I||(I=new Ur);var Ve=I.get(l);if(Ve)return Ve;I.set(l,N),n0(l)?l.forEach(function(rt){N.add(Rr(rt,f,p,rt,l,I))}):e0(l)&&l.forEach(function(rt,Ot){N.set(Ot,Rr(rt,f,p,Ot,l,I))});var nt=me?J?Wh:Hh:J?tr:Sn,yt=ve?n:nt(l);return Tr(yt||l,function(rt,Ot){yt&&(Ot=rt,rt=l[Ot]),ul(N,Ot,Rr(rt,f,p,Ot,l,I))}),N}function $T(l){var f=Sn(l);return function(p){return Bb(p,l,f)}}function Bb(l,f,p){var w=p.length;if(l==null)return!w;for(l=jt(l);w--;){var M=p[w],I=f[M],N=l[M];if(N===n&&!(M in l)||!I(N))return!1}return!0}function zb(l,f,p){if(typeof l!="function")throw new Ar(o);return ml(function(){l.apply(n,p)},f)}function cl(l,f,p,w){var M=-1,I=Ju,N=!0,U=l.length,J=[],me=f.length;if(!U)return J;p&&(f=rn(f,pr(p))),w?(I=lh,N=!1):f.length>=i&&(I=rl,N=!1,f=new to(f));e:for(;++MM?0:M+p),w=w===n||w>M?M:mt(w),w<0&&(w+=M),w=p>w?0:i0(w);p0&&p(U)?f>1?An(U,f-1,p,w,M):us(M,U):w||(M[M.length]=U)}return M}var Ch=py(),Vb=py(!0);function ci(l,f){return l&&Ch(l,f,Sn)}function Sh(l,f){return l&&Vb(l,f,Sn)}function mc(l,f){return ls(f,function(p){return Ii(l[p])})}function ro(l,f){f=ps(f,l);for(var p=0,w=f.length;l!=null&&pf}function NT(l,f){return l!=null&&zt.call(l,f)}function BT(l,f){return l!=null&&f in jt(l)}function zT(l,f,p){return l>=Dn(f,p)&&l=120&&ve.length>=120)?new to(N&&ve):n}ve=l[0];var xe=-1,Fe=U[0];e:for(;++xe-1;)U!==l&&ac.call(U,J,1),ac.call(l,J,1);return l}function ey(l,f){for(var p=l?f.length:0,w=p-1;p--;){var M=f[p];if(p==w||M!==I){var I=M;Li(M)?ac.call(l,M,1):Ih(l,M)}}return l}function Rh(l,f){return l+cc(Ib()*(f-l+1))}function QT(l,f,p,w){for(var M=-1,I=yn(uc((f-l)/(p||1)),0),N=ae(I);I--;)N[w?I:++M]=l,l+=p;return N}function kh(l,f){var p="";if(!l||f<1||f>ie)return p;do f%2&&(p+=l),f=cc(f/2),f&&(l+=l);while(f);return p}function Ct(l,f){return Gh(Py(l,f,nr),l+"")}function eA(l){return Db(ca(l))}function tA(l,f){var p=ca(l);return Mc(p,no(f,0,p.length))}function hl(l,f,p,w){if(!ln(l))return l;f=ps(f,l);for(var M=-1,I=f.length,N=I-1,U=l;U!=null&&++MM?0:M+f),p=p>M?M:p,p<0&&(p+=M),M=f>p?0:p-f>>>0,f>>>=0;for(var I=ae(M);++w>>1,N=l[I];N!==null&&!mr(N)&&(p?N<=f:N=i){var me=f?null:gA(l);if(me)return Qu(me);N=!1,M=rl,J=new to}else J=f?[]:U;e:for(;++w=w?l:kr(l,f,p)}var ay=KM||function(l){return Tn.clearTimeout(l)};function ly(l,f){if(f)return l.slice();var p=l.length,w=Ab?Ab(p):new l.constructor(p);return l.copy(w),w}function Nh(l){var f=new l.constructor(l.byteLength);return new sc(f).set(new sc(l)),f}function oA(l,f){var p=f?Nh(l.buffer):l.buffer;return new l.constructor(p,l.byteOffset,l.byteLength)}function aA(l){var f=new l.constructor(l.source,Uv.exec(l));return f.lastIndex=l.lastIndex,f}function lA(l){return ll?jt(ll.call(l)):{}}function uy(l,f){var p=f?Nh(l.buffer):l.buffer;return new l.constructor(p,l.byteOffset,l.length)}function cy(l,f){if(l!==f){var p=l!==n,w=l===null,M=l===l,I=mr(l),N=f!==n,U=f===null,J=f===f,me=mr(f);if(!U&&!me&&!I&&l>f||I&&N&&J&&!U&&!me||w&&N&&J||!p&&J||!M)return 1;if(!w&&!I&&!me&&l=U)return J;var me=p[w];return J*(me=="desc"?-1:1)}}return l.index-f.index}function fy(l,f,p,w){for(var M=-1,I=l.length,N=p.length,U=-1,J=f.length,me=yn(I-N,0),ve=ae(J+me),xe=!w;++U1?p[M-1]:n,N=M>2?p[2]:n;for(I=l.length>3&&typeof I=="function"?(M--,I):n,N&&Yn(p[0],p[1],N)&&(I=M<3?n:I,M=1),f=jt(f);++w-1?M[I?f[N]:N]:n}}function vy(l){return ki(function(f){var p=f.length,w=p,M=Pr.prototype.thru;for(l&&f.reverse();w--;){var I=f[w];if(typeof I!="function")throw new Ar(o);if(M&&!N&&Oc(I)=="wrapper")var N=new Pr([],!0)}for(w=N?w:p;++w1&&Pt.reverse(),ve&&JU))return!1;var me=I.get(l),ve=I.get(f);if(me&&ve)return me==f&&ve==l;var xe=-1,Fe=!0,Ve=p&v?new to:n;for(I.set(l,f),I.set(f,l);++xe1?"& ":"")+f[w],f=f.join(p>2?", ":" "),l.replace(EE,`{ +/* [wrapped with `+f+`] */ +`)}function OA(l){return ht(l)||oo(l)||!!(kb&&l&&l[kb])}function Li(l,f){var p=typeof l;return f=f??ie,!!f&&(p=="number"||p!="symbol"&&DE.test(l))&&l>-1&&l%1==0&&l0){if(++f>=P)return arguments[0]}else f=0;return l.apply(n,arguments)}}function Mc(l,f){var p=-1,w=l.length,M=w-1;for(f=f===n?w:f;++p1?l[f-1]:n;return p=typeof p=="function"?(l.pop(),p):n,Wy(l,p)});function Vy(l){var f=k(l);return f.__chain__=!0,f}function FP(l,f){return f(l),l}function Tc(l,f){return f(l)}var DP=ki(function(l){var f=l.length,p=f?l[0]:0,w=this.__wrapped__,M=function(I){return xh(I,l)};return f>1||this.__actions__.length||!(w instanceof Et)||!Li(p)?this.thru(M):(w=w.slice(p,+p+(f?1:0)),w.__actions__.push({func:Tc,args:[M],thisArg:n}),new Pr(w,this.__chain__).thru(function(I){return f&&!I.length&&I.push(n),I}))});function NP(){return Vy(this)}function BP(){return new Pr(this.value(),this.__chain__)}function zP(){this.__values__===n&&(this.__values__=r0(this.value()));var l=this.__index__>=this.__values__.length,f=l?n:this.__values__[this.__index__++];return{done:l,value:f}}function HP(){return this}function WP(l){for(var f,p=this;p instanceof hc;){var w=Fy(p);w.__index__=0,w.__values__=n,f?M.__wrapped__=w:f=w;var M=w;p=p.__wrapped__}return M.__wrapped__=l,f}function VP(){var l=this.__wrapped__;if(l instanceof Et){var f=l;return this.__actions__.length&&(f=new Et(this)),f=f.reverse(),f.__actions__.push({func:Tc,args:[Xh],thisArg:n}),new Pr(f,this.__chain__)}return this.thru(Xh)}function jP(){return sy(this.__wrapped__,this.__actions__)}var UP=_c(function(l,f,p){zt.call(l,p)?++l[p]:Pi(l,p,1)});function KP(l,f,p){var w=ht(l)?bb:FT;return p&&Yn(l,f,p)&&(f=n),w(l,tt(f,3))}function qP(l,f){var p=ht(l)?ls:Wb;return p(l,tt(f,3))}var YP=my(Dy),GP=my(Ny);function XP(l,f){return An(Ac(l,f),1)}function JP(l,f){return An(Ac(l,f),Q)}function ZP(l,f,p){return p=p===n?1:mt(p),An(Ac(l,f),p)}function jy(l,f){var p=ht(l)?Tr:ds;return p(l,tt(f,3))}function Uy(l,f){var p=ht(l)?vM:Hb;return p(l,tt(f,3))}var QP=_c(function(l,f,p){zt.call(l,p)?l[p].push(f):Pi(l,p,[f])});function eR(l,f,p,w){l=er(l)?l:ca(l),p=p&&!w?mt(p):0;var M=l.length;return p<0&&(p=yn(M+p,0)),Ic(l)?p<=M&&l.indexOf(f,p)>-1:!!M&&Zo(l,f,p)>-1}var tR=Ct(function(l,f,p){var w=-1,M=typeof f=="function",I=er(l)?ae(l.length):[];return ds(l,function(N){I[++w]=M?hr(f,N,p):fl(N,f,p)}),I}),nR=_c(function(l,f,p){Pi(l,p,f)});function Ac(l,f){var p=ht(l)?rn:Yb;return p(l,tt(f,3))}function rR(l,f,p,w){return l==null?[]:(ht(f)||(f=f==null?[]:[f]),p=w?n:p,ht(p)||(p=p==null?[]:[p]),Zb(l,f,p))}var iR=_c(function(l,f,p){l[p?0:1].push(f)},function(){return[[],[]]});function sR(l,f,p){var w=ht(l)?uh:xb,M=arguments.length<3;return w(l,tt(f,4),p,M,ds)}function oR(l,f,p){var w=ht(l)?bM:xb,M=arguments.length<3;return w(l,tt(f,4),p,M,Hb)}function aR(l,f){var p=ht(l)?ls:Wb;return p(l,kc(tt(f,3)))}function lR(l){var f=ht(l)?Db:eA;return f(l)}function uR(l,f,p){(p?Yn(l,f,p):f===n)?f=1:f=mt(f);var w=ht(l)?RT:tA;return w(l,f)}function cR(l){var f=ht(l)?kT:rA;return f(l)}function fR(l){if(l==null)return 0;if(er(l))return Ic(l)?ea(l):l.length;var f=Nn(l);return f==q||f==pe?l.size:Th(l).length}function dR(l,f,p){var w=ht(l)?ch:iA;return p&&Yn(l,f,p)&&(f=n),w(l,tt(f,3))}var hR=Ct(function(l,f){if(l==null)return[];var p=f.length;return p>1&&Yn(l,f[0],f[1])?f=[]:p>2&&Yn(f[0],f[1],f[2])&&(f=[f[0]]),Zb(l,An(f,1),[])}),Pc=qM||function(){return Tn.Date.now()};function pR(l,f){if(typeof f!="function")throw new Ar(o);return l=mt(l),function(){if(--l<1)return f.apply(this,arguments)}}function Ky(l,f,p){return f=p?n:f,f=l&&f==null?l.length:f,Ri(l,A,n,n,n,n,f)}function qy(l,f){var p;if(typeof f!="function")throw new Ar(o);return l=mt(l),function(){return--l>0&&(p=f.apply(this,arguments)),l<=1&&(f=n),p}}var Zh=Ct(function(l,f,p){var w=_;if(p.length){var M=cs(p,la(Zh));w|=S}return Ri(l,w,f,p,M)}),Yy=Ct(function(l,f,p){var w=_|y;if(p.length){var M=cs(p,la(Yy));w|=S}return Ri(f,w,l,p,M)});function Gy(l,f,p){f=p?n:f;var w=Ri(l,T,n,n,n,n,n,f);return w.placeholder=Gy.placeholder,w}function Xy(l,f,p){f=p?n:f;var w=Ri(l,x,n,n,n,n,n,f);return w.placeholder=Xy.placeholder,w}function Jy(l,f,p){var w,M,I,N,U,J,me=0,ve=!1,xe=!1,Fe=!0;if(typeof l!="function")throw new Ar(o);f=Ir(f)||0,ln(p)&&(ve=!!p.leading,xe="maxWait"in p,I=xe?yn(Ir(p.maxWait)||0,f):I,Fe="trailing"in p?!!p.trailing:Fe);function Ve(pn){var qr=w,Fi=M;return w=M=n,me=pn,N=l.apply(Fi,qr),N}function nt(pn){return me=pn,U=ml(Ot,f),ve?Ve(pn):N}function yt(pn){var qr=pn-J,Fi=pn-me,m0=f-qr;return xe?Dn(m0,I-Fi):m0}function rt(pn){var qr=pn-J,Fi=pn-me;return J===n||qr>=f||qr<0||xe&&Fi>=I}function Ot(){var pn=Pc();if(rt(pn))return Pt(pn);U=ml(Ot,yt(pn))}function Pt(pn){return U=n,Fe&&w?Ve(pn):(w=M=n,N)}function vr(){U!==n&&ay(U),me=0,w=J=M=U=n}function Gn(){return U===n?N:Pt(Pc())}function br(){var pn=Pc(),qr=rt(pn);if(w=arguments,M=this,J=pn,qr){if(U===n)return nt(J);if(xe)return ay(U),U=ml(Ot,f),Ve(J)}return U===n&&(U=ml(Ot,f)),N}return br.cancel=vr,br.flush=Gn,br}var gR=Ct(function(l,f){return zb(l,1,f)}),mR=Ct(function(l,f,p){return zb(l,Ir(f)||0,p)});function vR(l){return Ri(l,$)}function Rc(l,f){if(typeof l!="function"||f!=null&&typeof f!="function")throw new Ar(o);var p=function(){var w=arguments,M=f?f.apply(this,w):w[0],I=p.cache;if(I.has(M))return I.get(M);var N=l.apply(this,w);return p.cache=I.set(M,N)||I,N};return p.cache=new(Rc.Cache||Ai),p}Rc.Cache=Ai;function kc(l){if(typeof l!="function")throw new Ar(o);return function(){var f=arguments;switch(f.length){case 0:return!l.call(this);case 1:return!l.call(this,f[0]);case 2:return!l.call(this,f[0],f[1]);case 3:return!l.call(this,f[0],f[1],f[2])}return!l.apply(this,f)}}function bR(l){return qy(2,l)}var yR=sA(function(l,f){f=f.length==1&&ht(f[0])?rn(f[0],pr(tt())):rn(An(f,1),pr(tt()));var p=f.length;return Ct(function(w){for(var M=-1,I=Dn(w.length,p);++M=f}),oo=Ub(function(){return arguments}())?Ub:function(l){return un(l)&&zt.call(l,"callee")&&!Rb.call(l,"callee")},ht=ae.isArray,IR=db?pr(db):WT;function er(l){return l!=null&&Lc(l.length)&&!Ii(l)}function hn(l){return un(l)&&er(l)}function $R(l){return l===!0||l===!1||un(l)&&qn(l)==oe}var ms=GM||cp,FR=hb?pr(hb):VT;function DR(l){return un(l)&&l.nodeType===1&&!vl(l)}function NR(l){if(l==null)return!0;if(er(l)&&(ht(l)||typeof l=="string"||typeof l.splice=="function"||ms(l)||ua(l)||oo(l)))return!l.length;var f=Nn(l);if(f==q||f==pe)return!l.size;if(gl(l))return!Th(l).length;for(var p in l)if(zt.call(l,p))return!1;return!0}function BR(l,f){return dl(l,f)}function zR(l,f,p){p=typeof p=="function"?p:n;var w=p?p(l,f):n;return w===n?dl(l,f,n,p):!!w}function ep(l){if(!un(l))return!1;var f=qn(l);return f==We||f==Oe||typeof l.message=="string"&&typeof l.name=="string"&&!vl(l)}function HR(l){return typeof l=="number"&&Lb(l)}function Ii(l){if(!ln(l))return!1;var f=qn(l);return f==F||f==W||f==Y||f==Se}function Qy(l){return typeof l=="number"&&l==mt(l)}function Lc(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=ie}function ln(l){var f=typeof l;return l!=null&&(f=="object"||f=="function")}function un(l){return l!=null&&typeof l=="object"}var e0=pb?pr(pb):UT;function WR(l,f){return l===f||Mh(l,f,jh(f))}function VR(l,f,p){return p=typeof p=="function"?p:n,Mh(l,f,jh(f),p)}function jR(l){return t0(l)&&l!=+l}function UR(l){if(TA(l))throw new dt(s);return Kb(l)}function KR(l){return l===null}function qR(l){return l==null}function t0(l){return typeof l=="number"||un(l)&&qn(l)==se}function vl(l){if(!un(l)||qn(l)!=ge)return!1;var f=oc(l);if(f===null)return!0;var p=zt.call(f,"constructor")&&f.constructor;return typeof p=="function"&&p instanceof p&&nc.call(p)==VM}var tp=gb?pr(gb):KT;function YR(l){return Qy(l)&&l>=-ie&&l<=ie}var n0=mb?pr(mb):qT;function Ic(l){return typeof l=="string"||!ht(l)&&un(l)&&qn(l)==Be}function mr(l){return typeof l=="symbol"||un(l)&&qn(l)==Pe}var ua=vb?pr(vb):YT;function GR(l){return l===n}function XR(l){return un(l)&&Nn(l)==Me}function JR(l){return un(l)&&qn(l)==Ue}var ZR=Sc(Ah),QR=Sc(function(l,f){return l<=f});function r0(l){if(!l)return[];if(er(l))return Ic(l)?jr(l):Qn(l);if(il&&l[il])return RM(l[il]());var f=Nn(l),p=f==q?mh:f==pe?Qu:ca;return p(l)}function $i(l){if(!l)return l===0?l:0;if(l=Ir(l),l===Q||l===-Q){var f=l<0?-1:1;return f*ee}return l===l?l:0}function mt(l){var f=$i(l),p=f%1;return f===f?p?f-p:f:0}function i0(l){return l?no(mt(l),0,Ee):0}function Ir(l){if(typeof l=="number")return l;if(mr(l))return ye;if(ln(l)){var f=typeof l.valueOf=="function"?l.valueOf():l;l=ln(f)?f+"":f}if(typeof l!="string")return l===0?l:+l;l=Cb(l);var p=IE.test(l);return p||FE.test(l)?pM(l.slice(2),p?2:8):LE.test(l)?ye:+l}function s0(l){return fi(l,tr(l))}function ek(l){return l?no(mt(l),-ie,ie):l===0?l:0}function Dt(l){return l==null?"":gr(l)}var tk=oa(function(l,f){if(gl(f)||er(f)){fi(f,Sn(f),l);return}for(var p in f)zt.call(f,p)&&ul(l,p,f[p])}),o0=oa(function(l,f){fi(f,tr(f),l)}),$c=oa(function(l,f,p,w){fi(f,tr(f),l,w)}),nk=oa(function(l,f,p,w){fi(f,Sn(f),l,w)}),rk=ki(xh);function ik(l,f){var p=sa(l);return f==null?p:Nb(p,f)}var sk=Ct(function(l,f){l=jt(l);var p=-1,w=f.length,M=w>2?f[2]:n;for(M&&Yn(f[0],f[1],M)&&(w=1);++p1),I}),fi(l,Wh(l),p),w&&(p=Rr(p,h|g|m,mA));for(var M=f.length;M--;)Ih(p,f[M]);return p});function Ck(l,f){return l0(l,kc(tt(f)))}var Sk=ki(function(l,f){return l==null?{}:JT(l,f)});function l0(l,f){if(l==null)return{};var p=rn(Wh(l),function(w){return[w]});return f=tt(f),Qb(l,p,function(w,M){return f(w,M[0])})}function Ok(l,f,p){f=ps(f,l);var w=-1,M=f.length;for(M||(M=1,l=n);++wf){var w=l;l=f,f=w}if(p||l%1||f%1){var M=Ib();return Dn(l+M*(f-l+hM("1e-"+((M+"").length-1))),f)}return Rh(l,f)}var Fk=aa(function(l,f,p){return f=f.toLowerCase(),l+(p?f0(f):f)});function f0(l){return ip(Dt(l).toLowerCase())}function d0(l){return l=Dt(l),l&&l.replace(NE,EM).replace(rM,"")}function Dk(l,f,p){l=Dt(l),f=gr(f);var w=l.length;p=p===n?w:no(mt(p),0,w);var M=p;return p-=f.length,p>=0&&l.slice(p,M)==f}function Nk(l){return l=Dt(l),l&&Vr.test(l)?l.replace(an,MM):l}function Bk(l){return l=Dt(l),l&&SE.test(l)?l.replace(Qd,"\\$&"):l}var zk=aa(function(l,f,p){return l+(p?"-":"")+f.toLowerCase()}),Hk=aa(function(l,f,p){return l+(p?" ":"")+f.toLowerCase()}),Wk=gy("toLowerCase");function Vk(l,f,p){l=Dt(l),f=mt(f);var w=f?ea(l):0;if(!f||w>=f)return l;var M=(f-w)/2;return Cc(cc(M),p)+l+Cc(uc(M),p)}function jk(l,f,p){l=Dt(l),f=mt(f);var w=f?ea(l):0;return f&&w>>0,p?(l=Dt(l),l&&(typeof f=="string"||f!=null&&!tp(f))&&(f=gr(f),!f&&Qo(l))?gs(jr(l),0,p):l.split(f,p)):[]}var Jk=aa(function(l,f,p){return l+(p?" ":"")+ip(f)});function Zk(l,f,p){return l=Dt(l),p=p==null?0:no(mt(p),0,l.length),f=gr(f),l.slice(p,p+f.length)==f}function Qk(l,f,p){var w=k.templateSettings;p&&Yn(l,f,p)&&(f=n),l=Dt(l),f=$c({},f,w,xy);var M=$c({},f.imports,w.imports,xy),I=Sn(M),N=gh(M,I),U,J,me=0,ve=f.interpolate||Yu,xe="__p += '",Fe=vh((f.escape||Yu).source+"|"+ve.source+"|"+(ve===Fn?kE:Yu).source+"|"+(f.evaluate||Yu).source+"|$","g"),Ve="//# sourceURL="+(zt.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++lM+"]")+` +`;l.replace(Fe,function(rt,Ot,Pt,vr,Gn,br){return Pt||(Pt=vr),xe+=l.slice(me,br).replace(BE,TM),Ot&&(U=!0,xe+=`' + +__e(`+Ot+`) + +'`),Gn&&(J=!0,xe+=`'; +`+Gn+`; +__p += '`),Pt&&(xe+=`' + +((__t = (`+Pt+`)) == null ? '' : __t) + +'`),me=br+rt.length,rt}),xe+=`'; +`;var nt=zt.call(f,"variable")&&f.variable;if(!nt)xe=`with (obj) { +`+xe+` +} +`;else if(PE.test(nt))throw new dt(a);xe=(J?xe.replace(we,""):xe).replace(Xe,"$1").replace(ft,"$1;"),xe="function("+(nt||"obj")+`) { +`+(nt?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(U?", __e = _.escape":"")+(J?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+xe+`return __p +}`;var yt=p0(function(){return It(I,Ve+"return "+xe).apply(n,N)});if(yt.source=xe,ep(yt))throw yt;return yt}function eL(l){return Dt(l).toLowerCase()}function tL(l){return Dt(l).toUpperCase()}function nL(l,f,p){if(l=Dt(l),l&&(p||f===n))return Cb(l);if(!l||!(f=gr(f)))return l;var w=jr(l),M=jr(f),I=Sb(w,M),N=Ob(w,M)+1;return gs(w,I,N).join("")}function rL(l,f,p){if(l=Dt(l),l&&(p||f===n))return l.slice(0,Mb(l)+1);if(!l||!(f=gr(f)))return l;var w=jr(l),M=Ob(w,jr(f))+1;return gs(w,0,M).join("")}function iL(l,f,p){if(l=Dt(l),l&&(p||f===n))return l.replace(eh,"");if(!l||!(f=gr(f)))return l;var w=jr(l),M=Sb(w,jr(f));return gs(w,M).join("")}function sL(l,f){var p=B,w=V;if(ln(f)){var M="separator"in f?f.separator:M;p="length"in f?mt(f.length):p,w="omission"in f?gr(f.omission):w}l=Dt(l);var I=l.length;if(Qo(l)){var N=jr(l);I=N.length}if(p>=I)return l;var U=p-ea(w);if(U<1)return w;var J=N?gs(N,0,U).join(""):l.slice(0,U);if(M===n)return J+w;if(N&&(U+=J.length-U),tp(M)){if(l.slice(U).search(M)){var me,ve=J;for(M.global||(M=vh(M.source,Dt(Uv.exec(M))+"g")),M.lastIndex=0;me=M.exec(ve);)var xe=me.index;J=J.slice(0,xe===n?U:xe)}}else if(l.indexOf(gr(M),U)!=U){var Fe=J.lastIndexOf(M);Fe>-1&&(J=J.slice(0,Fe))}return J+w}function oL(l){return l=Dt(l),l&&dr.test(l)?l.replace(nn,$M):l}var aL=aa(function(l,f,p){return l+(p?" ":"")+f.toUpperCase()}),ip=gy("toUpperCase");function h0(l,f,p){return l=Dt(l),f=p?n:f,f===n?PM(l)?NM(l):wM(l):l.match(f)||[]}var p0=Ct(function(l,f){try{return hr(l,n,f)}catch(p){return ep(p)?p:new dt(p)}}),lL=ki(function(l,f){return Tr(f,function(p){p=di(p),Pi(l,p,Zh(l[p],l))}),l});function uL(l){var f=l==null?0:l.length,p=tt();return l=f?rn(l,function(w){if(typeof w[1]!="function")throw new Ar(o);return[p(w[0]),w[1]]}):[],Ct(function(w){for(var M=-1;++Mie)return[];var p=Ee,w=Dn(l,Ee);f=tt(f),l-=Ee;for(var M=ph(w,f);++p0||f<0)?new Et(p):(l<0?p=p.takeRight(-l):l&&(p=p.drop(l)),f!==n&&(f=mt(f),p=f<0?p.dropRight(-f):p.take(f-l)),p)},Et.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},Et.prototype.toArray=function(){return this.take(Ee)},ci(Et.prototype,function(l,f){var p=/^(?:filter|find|map|reject)|While$/.test(f),w=/^(?:head|last)$/.test(f),M=k[w?"take"+(f=="last"?"Right":""):f],I=w||/^find/.test(f);M&&(k.prototype[f]=function(){var N=this.__wrapped__,U=w?[1]:arguments,J=N instanceof Et,me=U[0],ve=J||ht(N),xe=function(Ot){var Pt=M.apply(k,us([Ot],U));return w&&Fe?Pt[0]:Pt};ve&&p&&typeof me=="function"&&me.length!=1&&(J=ve=!1);var Fe=this.__chain__,Ve=!!this.__actions__.length,nt=I&&!Fe,yt=J&&!Ve;if(!I&&ve){N=yt?N:new Et(this);var rt=l.apply(N,U);return rt.__actions__.push({func:Tc,args:[xe],thisArg:n}),new Pr(rt,Fe)}return nt&&yt?l.apply(this,U):(rt=this.thru(xe),nt?w?rt.value()[0]:rt.value():rt)})}),Tr(["pop","push","shift","sort","splice","unshift"],function(l){var f=ec[l],p=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",w=/^(?:pop|shift)$/.test(l);k.prototype[l]=function(){var M=arguments;if(w&&!this.__chain__){var I=this.value();return f.apply(ht(I)?I:[],M)}return this[p](function(N){return f.apply(ht(N)?N:[],M)})}}),ci(Et.prototype,function(l,f){var p=k[f];if(p){var w=p.name+"";zt.call(ia,w)||(ia[w]=[]),ia[w].push({name:f,func:p})}}),ia[wc(n,y).name]=[{name:"wrapper",func:n}],Et.prototype.clone=oT,Et.prototype.reverse=aT,Et.prototype.value=lT,k.prototype.at=DP,k.prototype.chain=NP,k.prototype.commit=BP,k.prototype.next=zP,k.prototype.plant=WP,k.prototype.reverse=VP,k.prototype.toJSON=k.prototype.valueOf=k.prototype.value=jP,k.prototype.first=k.prototype.head,il&&(k.prototype[il]=HP),k},ta=BM();Zs?((Zs.exports=ta)._=ta,oh._=ta):Tn._=ta}).call(Zt)})(md,md.exports);var Ex=md.exports;const PZ=L("p",null,[Z("Add "),L("span",{class:"font-bold"},"Simulation period in years"),Z(" and "),L("span",{class:"font-bold"},"Start Year")],-1),RZ={__name:"YieldsTable",props:["annualYields","startYear","periodLength","rotationTable","rotationLength","plants"],emits:["updateYields"],setup(e,{emit:t}){const n=e,r=vn({annualYields:[]});Ie(()=>n.annualYields,a=>{r.annualYields=n.annualYields},{immediate:!0}),Ie(()=>n.periodLength,a=>{var u,c,d,h;r.annualYields=n.annualYields;for(let g=0;gn.rotationLength,a=>{o(),t("updateYields",{annualYields:r.annualYields})},{immediate:!0}),Ie(()=>n.rotationTable,a=>{o(),t("updateYields",{annualYields:r.annualYields})},{immediate:!0});function i({$event:a,key:u}){s(a,u),t("updateYields",{annualYields:r.annualYields})}function s(a,u){r.annualYields[u].yield=a}function o(){var u,c;let a=0;for(let d=0;d<((u=r.annualYields)==null?void 0:u.length);d++)if(n.rotationTable[a]){const g=n.rotationTable[a].plant.id;r.annualYields[d].rotation=(c=n.plants[g])==null?void 0:c.name,a++,a>=n.rotationLength&&(a=0)}}return(a,u)=>{const c=os,d=ui,h=el;return K(),_e("div",null,[z(d,{class:""},{default:D(()=>[z(c,{span:24,class:"p-2 text-center text-2xl"},{default:D(()=>[Z("Annual Yields")]),_:1})]),_:1}),parseInt(n.periodLength)>0&&parseInt(n.startYear)>=0?(K(!0),_e(ot,{key:0},Pn(r.annualYields,(g,m,b)=>(K(),Ae(d,{key:b},{default:D(()=>[z(c,{span:24,class:"p-2"},{default:D(()=>{var v,_;return[z(h,{modelValue:(_=(v=r.annualYields)==null?void 0:v[m])==null?void 0:_.yield,onInput:y=>i({$event:y,key:m})},{prepend:D(()=>[Z(wt(g.year),1)]),_:2},1032,["modelValue","onInput"])]}),_:2},1024)]),_:2},1024))),128)):(K(),Ae(d,{key:1},{default:D(()=>[PZ]),_:1}))])}}};const kZ={key:0},LZ={__name:"RotationSelect",props:["posibleValues","year","modelValue","name","nullify"],emits:["update:modelValue"],setup(e,{emit:t}){const n=e;let r=n.modelValue;Lt(()=>{n.nullify&&(r="null",i("null"))}),Ie(()=>n.nullify,(s,o)=>{n.nullify&&(r="null",i("null"))},{immediate:!0});function i(s){t("update:modelValue",s)}return(s,o)=>{const a=H2,u=z2;return e.nullify?$e("",!0):(K(),_e("div",kZ,[z(u,{modelValue:O(r),"onUpdate:modelValue":o[0]||(o[0]=c=>$t(r)?r.value=c:r=c),onChange:o[1]||(o[1]=c=>i(c))},{default:D(()=>[(K(!0),_e(ot,null,Pn(e.posibleValues,c=>(K(),Ae(a,{key:n.year+n.name,label:c.name,value:c.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]))}}},IZ={class:"flex flex-col"},$Z=L("p",null,[Z("Add "),L("span",{class:"font-bold"},"Simulation period in years")],-1),FZ={__name:"YearlyTable",props:["annualRainfall","periodLength","startYear"],emits:["updateAnnualRainfall"],setup(e,{emit:t}){const n=e,r=vn({annualRainfall:n.annualRainfall});Ka(()=>{var o,a,u,c;if(parseInt(n.periodLength)>0)for(let d=0;dn.periodLength,o=>{for(let a=0;a{const u=os,c=ui,d=el;return K(),_e("div",IZ,[z(c,{class:""},{default:D(()=>[z(u,{span:24,class:"p-2 text-center text-2xl"},{default:D(()=>[Z("Yearly Rain")]),_:1})]),_:1}),z(c,null,{default:D(()=>[z(u,{span:6,class:"p-2 font-bold"},{default:D(()=>[Z("Year")]),_:1}),z(u,{span:18,class:"p-2 font-bold"},{default:D(()=>[Z("Rainfall (mm)")]),_:1})]),_:1}),parseInt(n.periodLength)>0?(K(!0),_e(ot,{key:0},Pn(parseInt(n.periodLength),(h,g)=>(K(),Ae(c,{key:h},{default:D(()=>[z(u,{span:6,class:"p-2"},{default:D(()=>[Z(wt(parseInt(n.startYear)-1+parseInt(h)),1)]),_:2},1024),z(u,{span:18,class:"p-2"},{default:D(()=>{var m,b;return[z(d,{modelValue:(b=(m=r.annualRainfall)==null?void 0:m[g])==null?void 0:b.rainfall,onInput:v=>i({$event:v,key:g})},null,8,["modelValue","onInput"])]}),_:2},1024)]),_:2},1024))),128)):(K(),Ae(c,{key:1},{default:D(()=>[$Z]),_:1}))])}}},DZ={__name:"MonthlyTable",props:["monthRainTemp","periodLength","startYear"],emits:["updateMonthRainTemps"],setup(e,{emit:t}){const n=e,r=vn({monthRainTemp:[]}),i=["January","February","March","April","May","June","July","August","September","October","November","December"];Ka(()=>{var u,c,d,h,g,m,b,v;const a=[];for(let _=0;_{const c=os,d=ui,h=el;return K(),_e("div",null,[z(d,{class:""},{default:D(()=>[z(c,{span:24,class:"p-2 text-center text-2xl"},{default:D(()=>[Z("Monthly Rain Temperature")]),_:1})]),_:1}),z(d,null,{default:D(()=>[z(c,{span:6,class:"p-2 font-bold"},{default:D(()=>[Z("Month")]),_:1}),z(c,{span:9,class:"p-2 font-bold"},{default:D(()=>[Z("Rainfall (mm)")]),_:1}),z(c,{span:9,class:"p-2 font-bold"},{default:D(()=>[Z("Temperature (℃)")]),_:1})]),_:1}),(K(),_e(ot,null,Pn(i,(g,m)=>z(d,{key:m,class:""},{default:D(()=>[z(c,{span:6,class:"p-2"},{default:D(()=>[Z(wt(g),1)]),_:2},1024),z(c,{span:9,class:"p-2"},{default:D(()=>[z(h,{modelValue:r.monthRainTemp[m].rainfall,onInput:b=>s({$event:b,index:m,key:"rainfall"})},null,8,["modelValue","onInput"])]),_:2},1024),z(c,{span:9,class:"p-2"},{default:D(()=>[z(h,{modelValue:r.monthRainTemp[m].temperature,onInput:b=>s({$event:b,index:m,key:"temperature"})},null,8,["modelValue","onInput"])]),_:2},1024)]),_:2},1024)),64))])}}};var NZ=!1;/*! + * pinia v2.1.7 + * (c) 2023 Eduardo San Martin Morote + * @license MIT + */let uE;const Xd=e=>uE=e,cE=Symbol();function im(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var nu;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(nu||(nu={}));function BZ(){const e=Fx(!0),t=e.run(()=>X({}));let n=[],r=[];const i=Sd({install(s){Xd(i),i._a=s,s.provide(cE,i),s.config.globalProperties.$pinia=i,r.forEach(o=>n.push(o)),r=[]},use(s){return!this._a&&!NZ?r.push(s):n.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}const fE=()=>{};function Mx(e,t,n,r=fE){e.push(t);const i=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),r())};return!n&&dm()&&hm(i),i}function ma(e,...t){e.slice().forEach(n=>{n(...t)})}const zZ=e=>e();function sm(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],i=e[n];im(i)&&im(r)&&e.hasOwnProperty(n)&&!$t(r)&&!$s(r)?e[n]=sm(i,r):e[n]=r}return e}const HZ=Symbol();function WZ(e){return!im(e)||!e.hasOwnProperty(HZ)}const{assign:Ss}=Object;function VZ(e){return!!($t(e)&&e.effect)}function jZ(e,t,n,r){const{state:i,actions:s,getters:o}=t,a=n.state.value[e];let u;function c(){a||(n.state.value[e]=i?i():{});const d=Gs(n.state.value[e]);return Ss(d,s,Object.keys(o||{}).reduce((h,g)=>(h[g]=Sd(H(()=>{Xd(n);const m=n._s.get(e);return o[g].call(m,m)})),h),{}))}return u=dE(e,c,t,n,r,!0),u}function dE(e,t,n={},r,i,s){let o;const a=Ss({actions:{}},n),u={deep:!0};let c,d,h=[],g=[],m;const b=r.state.value[e];!s&&!b&&(r.state.value[e]={}),X({});let v;function _(R){let $;c=d=!1,typeof R=="function"?(R(r.state.value[e]),$={type:nu.patchFunction,storeId:e,events:m}):(sm(r.state.value[e],R),$={type:nu.patchObject,payload:R,storeId:e,events:m});const B=v=Symbol();vt().then(()=>{v===B&&(c=!0)}),d=!0,ma(h,$,r.state.value[e])}const y=s?function(){const{state:$}=n,B=$?$():{};this.$patch(V=>{Ss(V,B)})}:fE;function C(){o.stop(),h=[],g=[],r._s.delete(e)}function T(R,$){return function(){Xd(r);const B=Array.from(arguments),V=[],P=[];function j(ne){V.push(ne)}function ue(ne){P.push(ne)}ma(g,{args:B,name:R,store:S,after:j,onError:ue});let ce;try{ce=$.apply(this&&this.$id===e?this:S,B)}catch(ne){throw ma(P,ne),ne}return ce instanceof Promise?ce.then(ne=>(ma(V,ne),ne)).catch(ne=>(ma(P,ne),Promise.reject(ne))):(ma(V,ce),ce)}}const x={_p:r,$id:e,$onAction:Mx.bind(null,g),$patch:_,$reset:y,$subscribe(R,$={}){const B=Mx(h,R,$.detached,()=>V()),V=o.run(()=>Ie(()=>r.state.value[e],P=>{($.flush==="sync"?d:c)&&R({storeId:e,type:nu.direct,events:m},P)},Ss({},u,$)));return B},$dispose:C},S=vn(x);r._s.set(e,S);const A=(r._a&&r._a.runWithContext||zZ)(()=>r._e.run(()=>(o=Fx()).run(t)));for(const R in A){const $=A[R];if($t($)&&!VZ($)||$s($))s||(b&&WZ($)&&($t($)?$.value=b[R]:sm($,b[R])),r.state.value[e][R]=$);else if(typeof $=="function"){const B=T(R,$);A[R]=B,a.actions[R]=$}}return Ss(S,A),Ss(ut(S),A),Object.defineProperty(S,"$state",{get:()=>r.state.value[e],set:R=>{_($=>{Ss($,R)})}}),r._p.forEach(R=>{Ss(S,o.run(()=>R({store:S,app:r._a,pinia:r,options:a})))}),b&&s&&n.hydrate&&n.hydrate(S.$state,b),c=!0,d=!0,S}function UZ(e,t,n){let r,i;const s=typeof t=="function";typeof e=="string"?(r=e,i=s?n:t):(i=e,r=e.id);function o(a,u){const c=x$();return a=a||(c?qe(cE,null):null),a&&Xd(a),a=uE,a._s.has(r)||(s?dE(r,t,i,a):jZ(r,i,a)),a._s.get(r)}return o.$id=r,o}class vd{}Re(vd,"version","1.0.0");async function KZ({socrates:e,parameters:t}){let r=await fetch("https://api.socrates-soil.net/run",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({socrates:e,parameters:t})}),i=r.status;if(r=await r.json(),i===200)return r;throw new Error(r==null?void 0:r.message)}async function qZ(){let e=await fetch("parameters.json"),t=e.status;if(e=await e.json(),t===200)return e;throw new Error(e==null?void 0:e.message)}async function YZ(){let e=await fetch("sample-data-20-year.json");if(e.status===200)return e=await e.json(),e}const hE=UZ({id:"input",state:()=>({version:vd.version,soilProperties:null,clay:0,cec:0,initialOC:0,startYear:0,periodLength:0,rotationLength:0,climateMethodDataEntry:null,monthRainTemp:[{rainfall:0,temperature:0}],annualRainfall:[{rainfall:0}],annualYields:[],averageAnnualRainFall:0,annualMeanTemperature:0,randomizeRainAndTemperature:0,rotationTable:[],yieldsMethodDataEntry:0,parameters:[],showParameters:!1,results:null,socrates:{soil:{},simulation:{},climate:{},rotation:{},yields:{}},toggleAnnualYields:!1,toggleMonthlyClimate:!1,toggleYearlyClimate:!1,rotationTableMessage:null,displayRunInNotebook:!1,jupyterNotebook:[],showLoadDialog:!1,selectedFile:null,socratesOld:{},errors:[],parametersEdited:!1}),actions:{async getParameters(){this.parameters=await qZ(),this.parametersEdited=!1},deleteRotation(e){this.rotationTable.splice(e,1),this.rotationLength--},updateRotation(e){if(e){this.rotationLength=parseInt(e);for(let t=0;t{const s=os,o=ui,a=el;return K(),_e(ot,null,[z(o,null,{default:D(()=>[z(s,{span:24,class:"p-2 text-center text-2xl"},{default:D(()=>[Z("Parameters")]),_:1})]),_:1}),(K(!0),_e(ot,null,Pn(O(t).parameters,(u,c)=>(K(),Ae(o,{key:c,class:""},{default:D(()=>[z(s,{span:24,class:"p-2"},{default:D(()=>[z(a,{modelValue:O(t).parameters[c],"onUpdate:modelValue":d=>O(t).parameters[c]=d,type:"number",onInput:i[0]||(i[0]=d=>n())},{prepend:D(()=>[Z(wt(c),1)]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1024))),128)),GZ],64)}}};var Ru={},Or={};Object.defineProperty(Or,"__esModule",{value:!0});Or.excelBOM=Or.defaultCsv2JsonOptions=Or.defaultJson2CsvOptions=Or.errors=void 0;Or.errors={optionsRequired:"Options were not passed and are required.",json2csv:{cannotCallOn:"Cannot call json2csv on",dataCheckFailure:"Data provided was not an array of documents.",notSameSchema:"Not all documents have the same schema."},csv2json:{cannotCallOn:"Cannot call csv2json on",dataCheckFailure:"CSV is not a string."}};Or.defaultJson2CsvOptions={checkSchemaDifferences:!1,delimiter:{field:",",wrap:'"',eol:` +`},emptyFieldValue:void 0,excelBOM:!1,excludeKeys:[],expandArrayObjects:!1,prependHeader:!0,preventCsvInjection:!1,sortHeader:!1,trimFieldValues:!1,trimHeaderFields:!1,unwindArrays:!1,useDateIso8601Format:!1,useLocaleFormat:!1,wrapBooleans:!1};Or.defaultCsv2JsonOptions={delimiter:{field:",",wrap:'"',eol:` +`},excelBOM:!1,preventCsvInjection:!1,trimFieldValues:!1,trimHeaderFields:!1,wrapBooleans:!1};Or.excelBOM="\uFEFF";var Jd={},Ys={};/** + * @license MIT + * doc-path + * Copyright (c) 2015-present, Michael Rodrigues. + */Object.defineProperty(Ys,"__esModule",{value:!0});Ys.setPath=Ys.evaluatePath=void 0;function Nl(e,t){if(!e)return null;const{dotIndex:n,key:r,remaining:i}=pE(t),s=typeof e=="object"&&t in e?e[t]:void 0,o=typeof e=="object"&&r in e?e[r]:void 0;return n>=0&&typeof e=="object"&&!(t in e)?Array.isArray(o)?o.map(a=>Nl(a,i)):Nl(o,i):Array.isArray(e)?e.map(a=>Nl(a,t)):n>=0&&t!==r&&typeof e=="object"&&r in e?Nl(o,i):n===-1&&typeof e=="object"&&r in e&&!(t in e)?o:s}Ys.evaluatePath=Nl;function JZ(e,t,n){if(e){if(!t)throw new Error("No keyPath was provided.")}else throw new Error("No object was provided.");return Wf(e,t,n)}Ys.setPath=JZ;function Wf(e,t,n){const{dotIndex:r,key:i,remaining:s}=pE(t);if(t.startsWith("__proto__")||t.startsWith("constructor")||t.startsWith("prototype"))return e;if(r>=0){if(typeof e=="object"&&e!==null&&!(i in e)&&Array.isArray(e))return e.forEach(o=>Wf(o,t,n)),e;typeof e=="object"&&e!==null&&!(i in e)&&!Array.isArray(e)&&(e[i]={}),Wf(e[i],s,n)}else{if(Array.isArray(e))return e.forEach(o=>Wf(o,s,n)),e;e[i]=n}return e}function pE(e){const t=ZZ(e);return{dotIndex:t,key:e.slice(0,t>=0?t:void 0).replace(/\\./g,"."),remaining:e.slice(t+1)}}function ZZ(e){for(let t=0;t0?e[t-1]:"";if(e[t]==="."&&n!=="\\")return t}return-1}var gE={},zs={};Object.defineProperty(zs,"__esModule",{value:!0});zs.isDocumentToRecurOn=zs.flatten=zs.unique=void 0;function QZ(e){return[...new Set(e)]}zs.unique=QZ;function eQ(e){return[].concat(...e)}zs.flatten=eQ;function tQ(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&Object.keys(e).length}zs.isDocumentToRecurOn=tQ;var mE={};Object.defineProperty(mE,"__esModule",{value:!0});(function(e){var t=Zt&&Zt.__createBinding||(Object.create?function(m,b,v,_){_===void 0&&(_=v);var y=Object.getOwnPropertyDescriptor(b,v);(!y||("get"in y?!b.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:function(){return b[v]}}),Object.defineProperty(m,_,y)}:function(m,b,v,_){_===void 0&&(_=v),m[_]=b[v]}),n=Zt&&Zt.__setModuleDefault||(Object.create?function(m,b){Object.defineProperty(m,"default",{enumerable:!0,value:b})}:function(m,b){m.default=b}),r=Zt&&Zt.__importStar||function(m){if(m&&m.__esModule)return m;var b={};if(m!=null)for(var v in m)v!=="default"&&Object.prototype.hasOwnProperty.call(m,v)&&t(b,m,v);return n(b,m),b},i=Zt&&Zt.__exportStar||function(m,b){for(var v in m)v!=="default"&&!Object.prototype.hasOwnProperty.call(b,v)&&t(b,m,v)};Object.defineProperty(e,"__esModule",{value:!0}),e.deepKeysFromList=e.deepKeys=void 0;const s=r(zs);i(mE,e);function o(m,b){const v=g(b);return typeof m=="object"&&m!==null?u("",m,v):[]}e.deepKeys=o;function a(m,b){const v=g(b);return m.map(_=>typeof _=="object"&&_!==null?o(_,v):[])}e.deepKeysFromList=a;function u(m,b,v){const _=Object.keys(b).map(y=>{const C=h(m,d(y,v));return s.isDocumentToRecurOn(b[y])?u(C,b[y],v):v.expandArrayObjects&&Array.isArray(b[y])?c(b[y],C,v):v.ignoreEmptyArrays&&Array.isArray(b[y])&&!b[y].length?[]:C});return s.flatten(_)}function c(m,b,v){let _=a(m,v);return m.length?m.length&&s.flatten(_).length===0?[b]:(_=_.map(y=>Array.isArray(y)&&y.length===0?[b]:y.map(C=>h(b,d(C,v)))),s.unique(s.flatten(_))):v.ignoreEmptyArraysWhenExpanding?[]:[b]}function d(m,b){return b.escapeNestedDots?m.replace(/\./g,"\\."):m}function h(m,b){return m?m+"."+b:b}function g(m){return{expandArrayObjects:!1,ignoreEmptyArraysWhenExpanding:!1,escapeNestedDots:!1,ignoreEmptyArrays:!1,...m??{}}}})(gE);var lt={};Object.defineProperty(lt,"__esModule",{value:!0});lt.isInvalid=lt.flatten=lt.unique=lt.arrayDifference=lt.isError=lt.isUndefined=lt.isNull=lt.isObject=lt.isString=lt.isNumber=lt.unwind=lt.getNCharacters=lt.removeEmptyFields=lt.isEmptyField=lt.computeSchemaDifferences=lt.isDateRepresentation=lt.isStringRepresentation=lt.deepCopy=lt.validate=lt.buildC2JOptions=lt.buildJ2COptions=void 0;const Kp=Ys,Ls=Or,nQ=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/,qp=1e5;function rQ(e){var t,n,r;return{...Ls.defaultJson2CsvOptions,...e,delimiter:{field:((t=e==null?void 0:e.delimiter)==null?void 0:t.field)??Ls.defaultJson2CsvOptions.delimiter.field,wrap:((n=e==null?void 0:e.delimiter)==null?void 0:n.wrap)||Ls.defaultJson2CsvOptions.delimiter.wrap,eol:((r=e==null?void 0:e.delimiter)==null?void 0:r.eol)||Ls.defaultJson2CsvOptions.delimiter.eol},fieldTitleMap:Object.create({})}}lt.buildJ2COptions=rQ;function iQ(e){var t,n,r;return{...Ls.defaultCsv2JsonOptions,...e,delimiter:{field:((t=e==null?void 0:e.delimiter)==null?void 0:t.field)??Ls.defaultCsv2JsonOptions.delimiter.field,wrap:((n=e==null?void 0:e.delimiter)==null?void 0:n.wrap)||Ls.defaultCsv2JsonOptions.delimiter.wrap,eol:((r=e==null?void 0:e.delimiter)==null?void 0:r.eol)||Ls.defaultCsv2JsonOptions.delimiter.eol}}}lt.buildC2JOptions=iQ;function sQ(e,t,n){if(!e)throw new Error(`${n.cannotCallOn} ${e}.`);if(!t(e))throw new Error(n.dataCheckFailure);return!0}lt.validate=sQ;function om(e){return JSON.parse(JSON.stringify(e))}lt.deepCopy=om;function oQ(e,t){const n=e[0],r=e.length-1,i=e[r];return n===t.delimiter.wrap&&i===t.delimiter.wrap}lt.isStringRepresentation=oQ;function aQ(e){return nQ.test(e)}lt.isDateRepresentation=aQ;function lQ(e,t){return am(e,t).concat(am(t,e))}lt.computeSchemaDifferences=lQ;function vE(e){return yE(e)||bE(e)||e===""}lt.isEmptyField=vE;function uQ(e){return e.filter(t=>!vE(t))}lt.removeEmptyFields=uQ;function cQ(e,t,n){return e.substring(t,t+n)}lt.getNCharacters=cQ;function fQ(e,t,n){const r=(0,Kp.evaluatePath)(t,n);let i=om(t);Array.isArray(r)&&r.length?r.forEach(s=>{i=om(t),e.push((0,Kp.setPath)(i,n,s))}):(Array.isArray(r)&&r.length===0&&(0,Kp.setPath)(i,n,""),e.push(i))}function dQ(e,t){const n=[];return e.forEach(r=>{fQ(n,r,t)}),n}lt.unwind=dQ;function hQ(e){return!isNaN(Number(e))}lt.isNumber=hQ;function pQ(e){return typeof e=="string"}lt.isString=pQ;function gQ(e){return typeof e=="object"}lt.isObject=gQ;function bE(e){return e===null}lt.isNull=bE;function yE(e){return typeof e>"u"}lt.isUndefined=yE;function mQ(e){return Object.prototype.toString.call(e)==="[object Error]"}lt.isError=mQ;function am(e,t){return e.filter(n=>!t.includes(n))}lt.arrayDifference=am;function vQ(e){return[...new Set(e)]}lt.unique=vQ;function bQ(e){if(e.flat)return e.flat();if(e.length>qp){let t=[];for(let n=0;nt.concat(n),[])}lt.flatten=bQ;function yQ(e){return e===1/0||e===-1/0}lt.isInvalid=yQ;var _Q=Zt&&Zt.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),wQ=Zt&&Zt.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),xQ=Zt&&Zt.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&_Q(t,e,n);return wQ(t,e),t};Object.defineProperty(Jd,"__esModule",{value:!0});Jd.Json2Csv=void 0;const CQ=Ys,SQ=gE,Tx=Or,zi=xQ(lt),OQ=function(e){const t=new RegExp(e.delimiter.wrap,"g"),n=/\r?\n|\r/,r=e.parseValue&&typeof e.parseValue=="function"?e.parseValue:null,i=e.expandArrayObjects&&!e.unwindArrays,s={expandArrayObjects:i,ignoreEmptyArraysWhenExpanding:i,escapeNestedDots:!0};async function o(P){return(0,SQ.deepKeysFromList)(P,s)}function a(P){return e.checkSchemaDifferences?u(P):zi.unique(zi.flatten(P))}function u(P){const j=P[0],ue=P.slice(1);if(c(j,ue))throw new Error(Tx.errors.json2csv.notSameSchema);return j}function c(P,j){return j.reduce((ue,ce)=>zi.computeSchemaDifferences(P,ce).length>0?ue+1:ue,0)}function d(P){return e.excludeKeys?P.filter(j=>!e.excludeKeys.includes(j)):P}function h(P){return e.sortHeader&&typeof e.sortHeader=="function"?P.sort(e.sortHeader):e.sortHeader?P.sort():P}function g(P){return e.trimHeaderFields&&(P.headerFields=P.headerFields.map(j=>j.split(".").map(ue=>ue.trim()).join("."))),P}function m(P){return e.prependHeader&&(P.headerFields=P.headerFields.map(function(j){return R(j)})),P}function b(P){const j=Object.keys(e.fieldTitleMap);return P.header=P.headerFields.map(function(ue){const ce=j.includes(ue)?e.fieldTitleMap[ue]:ue;return R(ce)}).join(e.delimiter.field),P}function v(){return e.keys?e.keys.map(P=>typeof P=="object"&&"field"in P?(e.fieldTitleMap[P.field]=P.title??P.field,P.field):P):[]}function _(P){const j=v();return e.keys&&(e.keys=j,!e.unwindArrays)?Promise.resolve(j).then(d).then(h):o(P).then(a).then(d).then(h)}async function y(P,j=!1){if(e.unwindArrays){const ue=P.records.length;return P.headerFields.forEach(ce=>{P.records=zi.unwind(P.records,ce)}),_(P.records).then(ce=>{if(P.headerFields=ce,ue!==P.records.length)return y(P);if(!j)return y(P,!0);if(e.keys){const ne=v();P.headerFields=d(ne)}return P})}return P}function C(P){return P.recordString=P.records.map(j=>{const ue=x(j,P.headerFields),ce=ue.map(ne=>{ne=E(ne),ne=A(ne);let Q=r?r(ne,S):S(ne);return Q=R(Q),Q});return $(ce)}).join(e.delimiter.eol),P}function T(P){const j=zi.removeEmptyFields(P);return!P.length||!j.length?e.emptyFieldValue||"":j.length===1?j[0]:P}function x(P,j){const ue=[];return j.forEach(ce=>{let ne=(0,CQ.evaluatePath)(P,ce);!zi.isUndefined(e.emptyFieldValue)&&zi.isEmptyField(ne)?ne=e.emptyFieldValue:e.expandArrayObjects&&Array.isArray(ne)&&(ne=T(ne)),ue.push(ne)}),ue}function S(P){const j=P instanceof Date;return P===null||Array.isArray(P)||typeof P=="object"&&!j?JSON.stringify(P):typeof P>"u"?"undefined":j&&e.useDateIso8601Format?P.toISOString():e.useLocaleFormat?P.toLocaleString():P.toString()}function E(P){return e.trimFieldValues?Array.isArray(P)?P.map(E):typeof P=="string"?P.trim():P:P}function A(P){return e.preventCsvInjection?Array.isArray(P)?P.map(A):typeof P=="string"&&!zi.isNumber(P)?P.replace(/^[=+\-@\t\r]+/g,""):P:P}function R(P){const j=e.delimiter.wrap;return P.includes(e.delimiter.wrap)&&(P=P.replace(t,j+j)),(P.includes(e.delimiter.field)||P.includes(e.delimiter.wrap)||P.match(n)||e.wrapBooleans&&(P==="true"||P==="false"))&&(P=j+P+j),P}function $(P){return P.join(e.delimiter.field)}function B(P){const j=P.header,ue=P.recordString;return(e.excelBOM?Tx.excelBOM:"")+(e.prependHeader?j+e.delimiter.eol:"")+ue}async function V(P){return zi.isObject(P)&&!P.length&&(P=[P]),_(P).then(j=>({headerFields:j,records:P,header:"",recordString:""})).then(y).then(C).then(m).then(g).then(b).then(B)}return{convert:V}};Jd.Json2Csv=OQ;var Zd={},EQ=Zt&&Zt.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),MQ=Zt&&Zt.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),TQ=Zt&&Zt.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&EQ(t,e,n);return MQ(t,e),t};Object.defineProperty(Zd,"__esModule",{value:!0});Zd.Csv2Json=void 0;const AQ=Ys,PQ=Or,mo=TQ(lt),RQ=function(e){const t=new RegExp(e.delimiter.wrap+e.delimiter.wrap,"g"),n=new RegExp("^"+PQ.excelBOM),r=e.parseValue&&typeof e.parseValue=="function"?e.parseValue:JSON.parse;function i(C){return C=m(C),e.trimHeaderFields?C.split(".").map(T=>T.trim()).join("."):C}function s(C){let T=[];if(e.headerFields)T=e.headerFields.map((x,S)=>({value:i(x),index:S}));else if(T=C[0].map((S,E)=>({value:i(S),index:E})),e.keys){const S=e.keys;T=T.filter(E=>S.includes(E.value))}return{lines:C,headerFields:T,recordLines:[]}}async function o(C){return e.excelBOM?C.replace(n,""):C}function a(C){const T=[],x=C.length-1,S=e.delimiter.eol.length,E={insideWrapDelimiter:!1,parsingValue:!0,justParsedDoubleQuote:!1,startIndex:0};let A=[],R,$,B,V,P=0;for(;P{const E=c(S,T);try{return(0,AQ.setPath)(x,S.value,E)}catch{return x}},{})}function m(C){const T=C[0],x=C.length-1,S=C[x];return T===e.delimiter.wrap&&S===e.delimiter.wrap?C.substr(1,x-1):C}function b(C){return C.replace(t,e.delimiter.wrap)}function v(C){return C.recordLines.reduce((T,x)=>{x=x.map(E=>(E=m(E),E=b(E),E=h(E),E));const S=g(C.headerFields,x);return T.concat(S)},[])}function _(C){try{if(mo.isStringRepresentation(C,e)&&!mo.isDateRepresentation(C))return C;const T=r(C);return Array.isArray(T)?T.map(h):T}catch(T){return T}}async function y(C){return o(C).then(a).then(s).then(u).then(v)}return{convert:y}};Zd.Csv2Json=RQ;Object.defineProperty(Ru,"__esModule",{value:!0});Ru.csv2json=wE=Ru.json2csv=void 0;const _E=Or,kQ=Jd,LQ=Zd,Sa=lt;async function IQ(e,t){const n=(0,Sa.buildJ2COptions)(t??{});return(0,Sa.validate)(e,Sa.isObject,_E.errors.json2csv),(0,kQ.Json2Csv)(n).convert(e)}var wE=Ru.json2csv=IQ;async function $Q(e,t){const n=(0,Sa.buildC2JOptions)(t??{});return(0,Sa.validate)(e,Sa.isString,_E.errors.csv2json),(0,LQ.Csv2Json)(n).convert(e)}Ru.csv2json=$Q;async function FQ({results:e,initialOC:t}){const n=[];n.push({year:"",crop:"",rain:"mm",yields:"kg DM/ha",biomass:"kg C/ha",nitrogen:"kg N/ha",urine:"kg N/ha",oc:"%",co2:"kg CO2e/ha",n2o_fert:"kg CO2e/ha",n2o_min:"kg CO2e/ha",n2o_res:"kg CO2e/ha",n2o_indirect:"kg CO2e/ha",n2o_urine:"kg CO2e/ha",ch4_animal:"kg CO2e/ha",total:"kg CO2e/ha"}),n.push({year:e.years[0]-1,crop:"",rain:"",yields:"",biomass:"",nitrogen:"",urine:"",oc:t,co2:"",n2o_fert:"",n2o_min:"",n2o_res:"",n2o_indirect:"",n2o_urine:"",ch4_animal:"",total:""});for(let i=0;i{await t.getParameters()});const n=[{id:0,type:"clay",name:"clay"},{id:1,type:"silt",name:"silt clay"},{id:2,type:"clay loam",name:"clay loam"},{id:3,type:"silt loam",name:"silt loam"},{id:4,type:"sandy loam",name:"sandy loam"},{id:5,type:"sand",name:"sand"},{id:6,type:"Enter Clay",name:"Enter Clay %"},{id:7,type:"Enter CEC",name:"Enter CEC"}],r=[{id:0,name:"Wheat",short_name:"Wh"},{id:1,name:"Barley",short_name:"Ba"},{id:2,name:"Oats",short_name:"Oa"},{id:3,name:"Canola",short_name:"Ca"},{id:4,name:"Grain Legume",short_name:"GL"},{id:5,name:"Legume Pasture",short_name:"LP"},{id:6,name:"Fallow",short_name:"Fa"},{id:7,name:"Grass Pasture",short_name:"GP"}],i=[{id:"null",name:"None"},{id:0,name:"Light"},{id:1,name:"Heavy"}],s=[{id:"null",name:"None"},{id:0,name:"Burnt or Removed"},{id:1,name:"Retained"}],o=async()=>{if(t.errors=[],c(),d(),t.errors.length===0)try{const x=await KZ({socrates:ut(t.socrates),parameters:ut(t.parameters)});t.results=x.run,y("resultsOfInputPage")}catch(x){t.errors.push(x.message),console.error(x)}},a=async()=>{t.errors=[];try{t.socrates=await YZ(),h()}catch(x){t.errors.push(x.message),console.error(x)}t.showLoadDialog=!1},u=x=>{t.selectedFile=x.target.files[0];const S=new FileReader;S.onload=E=>{try{const A=JSON.parse(E.target.result);A&&(A.version?(t.socrates=A,h()):(t.socratesOld=A,g()))}catch{t.errors.push("Invalid JSON file.")}},S.readAsText(t.selectedFile),t.showLoadDialog=!1};function c(){try{if(t.socrates.version=t.version,t.socrates.soil.soil_properties=parseInt(t.soilProperties),(!t.socrates.soil.soil_properties&&t.socrates.soil.soil_properties!==0||t.socrates.soil.soil_properties<0&&t.socrates.soil.soil_properties>7)&&t.errors.push("Select soil properties"),t.socrates.soil.clay_percentage=parseFloat(t.clay),t.socrates.soil.cec=parseFloat(t.cec),t.socrates.soil.initial_oc=parseFloat(t.initialOC),t.socrates.simulation.initial_oc===0&&t.errors.push("Insert a value for Initial OC%"),t.socrates.simulation.start_year=parseInt(t.startYear),!t.socrates.simulation.start_year&&t.socrates.simulation.start_year!==0&&t.errors.push("Simulation Start year missing"),t.socrates.simulation.period_length=parseInt(t.periodLength),(!t.socrates.simulation.period_length&&t.socrates.simulation.period_length!==0||t.socrates.simulation.period_length<=0)&&t.errors.push("Add simulation period in years"),t.socrates.simulation.rotation_length=parseInt(t.rotationLength),(!t.socrates.simulation.rotation_length&&t.socrates.simulation.rotation_length!==0||t.socrates.simulation.rotation_length<1)&&t.errors.push("Add length of rotation in years"),t.socrates.climate.climate_method_data_entry=t.climateMethodDataEntry,(!t.socrates.climate.climate_method_data_entry&&t.socrates.climate.climate_method_data_entry!==0||t.socrates.climate.climate_method_data_entry<0)&&t.errors.push("Missing: Method of entering data"),t.socrates.climate.average_annual_rainfall=parseFloat(t.averageAnnualRainFall),t.socrates.climate.annual_mean_temperature=parseFloat(t.annualMeanTemperature),t.socrates.climate.randomize_rain_and_temperature=t.randomizeRainAndTemperature,t.socrates.climate.annual_rainfall=[],T(t.annualRainfall))for(let x of t.annualRainfall)t.socrates.climate.annual_rainfall.push({rainfall:parseFloat(x==null?void 0:x.rainfall)});if(t.socrates.climate.month_rain_temp=[],T(t.monthRainTemp))for(let x of t.monthRainTemp)t.socrates.climate.month_rain_temp.push({rainfall:parseFloat(x==null?void 0:x.rainfall),temperature:parseFloat(x==null?void 0:x.temperature)});t.socrates.rotation=[];for(let x of t.rotationTable){const S={year:parseInt(x.year),plant:parseInt(x.plant),stubble:parseInt(x.stubble),graze:parseInt(x.graze),fertiliser:parseFloat(x.fertiliser)};!S.plant&&S.plant!==0||S.plant<0||S.plant>7?t.errors.push(`Missing or incorrect plant in rotation year #${S.year}`):(S.plant<5&&!S.stubble&&S.stubble!==0&&t.errors.push(`Stubble management missing in rotation year #${S.year}`),!S.fertiliser&&S.fertiliser!==0&&t.errors.push(`Fertiliser missing in rotation year #${S.year}`)),t.socrates.rotation.push(S)}if(t.socrates.rotation<1&&t.errors.push("Add rotation crop"),t.socrates.yields.yields_method_data_entry=t.yieldsMethodDataEntry,t.socrates.yields.annual_yields=[],T(t.annualYields)){const x=[];for(let S of t.annualYields){const E={year:S==null?void 0:S.year,rotation:S==null?void 0:S.rotation,yield:parseFloat(S.yield)};!E.yield&&E.yield!==0&&x.push(`Missing: yield in year #${E.year}`),t.socrates.yields.annual_yields.push(E)}x.length>0&&x.push("Missing: some yield values")}else t.socrates.yields.annual_yields=[]}catch(x){t.errors.push(`${x.name} ${x.message}`),console.error(x)}}function d(){for(let x of Object.keys(t.parameters))t.parameters[x]=parseFloat(t.parameters[x])}function h(){try{t.version=t.socrates.version||vd.version,t.soilProperties=t.socrates.soil.soil_properties,t.clay=t.socrates.soil.clay_percentage,t.cec=t.socrates.soil.cec,t.initialOC=t.socrates.soil.initial_oc,t.startYear=t.socrates.simulation.start_year,t.periodLength=t.socrates.simulation.period_length,t.rotationLength=t.socrates.simulation.rotation_length,t.climateMethodDataEntry=t.socrates.climate.climate_method_data_entry,t.averageAnnualRainFall=t.socrates.climate.average_annual_rainfall,t.annualMeanTemperature=t.socrates.climate.annual_mean_temperature,t.randomizeRainAndTemperature=t.socrates.climate.randomize_rain_and_temperature,t.annualRainfall=t.socrates.climate.annual_rainfall,t.monthRainTemp=t.socrates.climate.month_rain_temp,t.rotationTable=t.socrates.rotation,t.yieldsMethodDataEntry=t.socrates.yields.yields_method_data_entry,t.annualYields=t.socrates.yields.annual_yields}catch(x){t.errors.push(x.message),console.error(x)}}function g(){try{t.version=vd.version,t.soilProperties=t.socratesOld.soil.soilProperties,t.clay=t.socratesOld.soil.clayPercentage,t.cec=t.socratesOld.soil.cec||0,t.initialOC=t.socratesOld.soil.initialOC,t.startYear=t.socratesOld.simulation.startYear,t.periodLength=t.socratesOld.simulation.periodLength,t.rotationLength=t.socratesOld.simulation.rotationLength,t.climateMethodDataEntry=t.socratesOld.climate.climateMethodDataEntry,t.averageAnnualRainFall=t.socratesOld.climate.averageAnnualRainfall,t.annualMeanTemperature=t.socratesOld.climate.annualMeanTemperature,t.randomizeRainAndTemperature=t.socratesOld.climate.randomizeRainAndTemperature,t.annualRainfall=t.socratesOld.climate.annualRainFall,t.monthRainTemp=t.socratesOld.climate.monthRainTemp,t.rotationTable=t.socratesOld.rotation,t.yieldsMethodDataEntry=t.socratesOld.yields.yieldsMethodDataEntry,t.annualYields=t.socratesOld.yields.annualYields,t.socratesOld.parametersEdited&&(t.parametersEdited=!0,t.parameters=t.socratesOld.parameters)}catch(x){t.errors.push(x.message),console.error(x)}}async function m(){t.$reset(),await t.getParameters()}function b(){t.results=null}async function v(){const x=await FQ({results:t.results,initialOC:t.initialOC}),S="data.csv",E=new Blob([x],{type:"text/csv;charset=utf-8;"});if(navigator.msSaveBlob)navigator.msSaveBlob(E,S);else{const A=document.createElement("a");if(A.download!==void 0){const R=URL.createObjectURL(E);A.setAttribute("href",R),A.setAttribute("download",S),A.style.visibility="hidden",document.body.appendChild(A),A.click(),document.body.removeChild(A)}}}function _(){c();const x=ut(t.socrates),S=JSON.stringify(x,null,2),E=new Blob([S],{type:"application/json"}),A=window.URL.createObjectURL(E),R=document.createElement("a");R.style.display="none",R.href=A,R.download="socrates.json",document.body.appendChild(R),R.click(),window.URL.revokeObjectURL(A),document.body.removeChild(R)}function y(x){setTimeout(function(){document.getElementById(x).scrollIntoView({behavior:"smooth"})},100)}function C(){t.displayRunInNotebook=!0;const x=JSON.stringify(t.socrates),S=JSON.stringify(t.parameters);t.jupyterSource=["!pip install requests","import os","import json","import requests","socrates_json = '''",x,"'''","socrates = json.loads(socrates_json)","parameters_json = '''",S,"'''","parameters = json.loads(parameters_json)",'api_url = "https://api.socrates-soil.net/run"',"payload = {"," 'socrates' : socrates,"," 'parameters': parameters","}","response = requests.post(api_url, json=payload)","results = response.json()","results"]}function T(x){return x==null?!1:typeof x[Symbol.iterator]=="function"}return(x,S)=>{const E=os,A=ui,R=d2,$=XZ,B=b9,V=H2,P=z2,j=el,ue=DZ,ce=FZ,ne=LZ,Q=RZ,ie=AZ,ee=EZ,ye=CZ,Ee=NJ,ke=l9,Ze=aW;return K(),_e("div",DQ,[z(A,{gutter:20,class:"flex flex-col justify-center items-center"},{default:D(()=>[z(E,{span:24,xl:20,lg:20,md:24,sm:24,xs:24},{default:D(()=>[NQ]),_:1}),O(t).errors.length>0?(K(),Ae(E,{key:0,span:24,xl:20,lg:20,md:20,sm:24,xs:24,class:"py-10"},{default:D(()=>[z(A,{span:24,class:""},{default:D(()=>[L("div",BQ,[zQ,(K(!0),_e(ot,null,Pn(O(t).errors,le=>(K(),_e("p",HQ,wt(le),1))),256))])]),_:1})]),_:1})):$e("",!0),z(E,{span:24,xl:20,lg:20,md:20,sm:24,xs:24},{default:D(()=>[z(R,{onClick:S[0]||(S[0]=le=>O(t).showParameters=!O(t).showParameters)},{default:D(()=>[Z(wt(O(t).showParameters?"Hide Parameters":"Edit Parameters"),1)]),_:1}),z(B,{modelValue:O(t).showParameters,"onUpdate:modelValue":S[3]||(S[3]=le=>O(t).showParameters=le),title:"Climate","with-header":!1,direction:"ltr",class:"min-w-fit"},{footer:D(()=>[L("div",VQ,[z(R,{onClick:S[1]||(S[1]=le=>O(t).resetParameters())},{default:D(()=>[Z("Reset Parameters")]),_:1}),z(R,{type:"primary",onClick:S[2]||(S[2]=le=>O(t).showParameters=!1)},{default:D(()=>[Z("Close")]),_:1})])]),default:D(()=>[z($),WQ]),_:1},8,["modelValue"]),jQ,z(A,null,{default:D(()=>[z(E,{class:"py-1"},{default:D(()=>[L("div",UQ,[KQ,z(P,{modelValue:O(t).soilProperties,"onUpdate:modelValue":S[4]||(S[4]=le=>O(t).soilProperties=le),class:"m-2",placeholder:"Select"},{default:D(()=>[(K(),_e(ot,null,Pn(n,le=>z(V,{key:le.id,label:le.type,value:le.id},null,8,["label","value"])),64))]),_:1},8,["modelValue"])])]),_:1}),z(E,{class:"py-1",xl:8,lg:8,md:8,sm:8,xs:24},{default:D(()=>[L("div",qQ,[z(j,{modelValue:O(t).clay,"onUpdate:modelValue":S[5]||(S[5]=le=>O(t).clay=le),placeholder:"Clay %",disabled:O(t).soilProperties!==6},{prepend:D(()=>[Z("Clay %")]),_:1},8,["modelValue","disabled"])])]),_:1}),z(E,{class:"py-1",xl:8,lg:8,md:8,sm:8,xs:24},{default:D(()=>[L("div",YQ,[z(j,{modelValue:O(t).cec,"onUpdate:modelValue":S[6]||(S[6]=le=>O(t).cec=le),placeholder:"CEC",disabled:O(t).soilProperties!==7},{prepend:D(()=>[Z("CEC")]),_:1},8,["modelValue","disabled"])])]),_:1}),z(E,{class:"py-1",xl:8,lg:8,md:8,sm:8,xs:24},{default:D(()=>[L("div",GQ,[z(j,{modelValue:O(t).initialOC,"onUpdate:modelValue":S[7]||(S[7]=le=>O(t).initialOC=le),placeholder:"OC"},{prepend:D(()=>[Z("Initial OC %")]),_:1},8,["modelValue"])])]),_:1})]),_:1}),XQ,z(A,null,{default:D(()=>[z(E,{class:"py-1",xl:8,lg:8,md:8,sm:8,xs:24},{default:D(()=>[L("div",JQ,[z(j,{modelValue:O(t).startYear,"onUpdate:modelValue":S[8]||(S[8]=le=>O(t).startYear=le),placeholder:"(eg. 1990)"},{prepend:D(()=>[Z("Start year")]),_:1},8,["modelValue"])])]),_:1}),z(E,{class:"py-1",xl:8,lg:8,md:8,sm:8,xs:24},{default:D(()=>[L("div",ZQ,[z(j,{modelValue:O(t).periodLength,"onUpdate:modelValue":S[9]||(S[9]=le=>O(t).periodLength=le),placeholder:"Period"},{prepend:D(()=>[Z("Simulation period in years")]),_:1},8,["modelValue"])])]),_:1}),z(E,{class:"py-1",xl:8,lg:8,md:8,sm:8,xs:24},{default:D(()=>[L("div",QQ,[z(j,{modelValue:O(t).rotationLength,"onUpdate:modelValue":S[10]||(S[10]=le=>O(t).rotationLength=le),placeholder:"(eg. Peas - Wheat would be 2)",onChange:O(t).updateRotationLength},{prepend:D(()=>[Z("Length of rotation in years")]),_:1},8,["modelValue","onChange"])])]),_:1})]),_:1}),L("div",null,[eee,z(A,null,{default:D(()=>[z(E,{class:"py-1"},{default:D(()=>[z(A,null,{default:D(()=>[z(E,{xl:4,lg:4,md:4,sm:24,xs:24},{default:D(()=>[tee]),_:1}),z(E,{xl:20,lg:20,md:20,sm:24,xs:24},{default:D(()=>[L("div",null,[z(P,{modelValue:O(t).climateMethodDataEntry,"onUpdate:modelValue":S[11]||(S[11]=le=>O(t).climateMethodDataEntry=le),class:"w-full",placeholder:"Select"},{default:D(()=>[z(V,{label:"Enter yearly rainfall & mean temperature",value:0}),z(V,{label:"Enter average rainfall & mean temperature",value:1}),z(V,{label:"Enter monthly rainfall & mean temperature",value:4})]),_:1},8,["modelValue"]),O(t).climateMethodDataEntry===4?(K(),Ae(R,{key:0,onClick:S[12]||(S[12]=le=>O(t).toggleMonthlyClimate=!O(t).toggleMonthlyClimate)},{default:D(()=>[Z(wt(O(t).toggleMonthlyClimate?"Hide Monthly Rain/Temperature":"Show Monthly Rain/Temperature"),1)]),_:1})):$e("",!0),O(t).climateMethodDataEntry===0?(K(),Ae(R,{key:1,class:"my-2",onClick:S[13]||(S[13]=le=>O(t).toggleYearlyClimate=!O(t).toggleYearlyClimate)},{default:D(()=>[Z(wt(O(t).toggleYearlyClimate?"Hide Yearly Rain":"Show Yearly Rain"),1)]),_:1})):$e("",!0)])]),_:1})]),_:1})]),_:1}),z(E,{class:"py-1"},{default:D(()=>[nee]),_:1}),z(E,{class:"py-1",xl:24,lg:24,md:24,sm:24,xs:24},{default:D(()=>[O(t).climateMethodDataEntry===4?(K(),Ae(B,{key:0,title:"Climate",modelValue:O(t).toggleMonthlyClimate,"onUpdate:modelValue":S[15]||(S[15]=le=>O(t).toggleMonthlyClimate=le),"with-header":!1,direction:"rtl",class:"min-w-fit"},{footer:D(()=>[L("div",ree,[z(R,{type:"primary",onClick:S[14]||(S[14]=le=>O(t).toggleMonthlyClimate=!1)},{default:D(()=>[Z("Close")]),_:1})])]),default:D(()=>[z(ue,{monthRainTemp:O(t).monthRainTemp,periodLength:O(t).periodLength,startYear:O(t).startYear,onUpdateMonthRainTemps:O(t).updateMonthRainTemps},null,8,["monthRainTemp","periodLength","startYear","onUpdateMonthRainTemps"])]),_:1},8,["modelValue"])):$e("",!0),O(t).climateMethodDataEntry===0?(K(),Ae(B,{key:1,title:"Climate",modelValue:O(t).toggleYearlyClimate,"onUpdate:modelValue":S[17]||(S[17]=le=>O(t).toggleYearlyClimate=le),direction:"rtl","with-header":!1,class:"min-w-fit"},{footer:D(()=>[L("div",iee,[z(R,{type:"primary",onClick:S[16]||(S[16]=le=>O(t).toggleYearlyClimate=!1)},{default:D(()=>[Z("Close")]),_:1})])]),default:D(()=>[z(ce,{annualRainfall:O(t).annualRainfall,periodLength:O(t).periodLength,startYear:O(t).startYear,onUpdateAnnualRainfall:O(t).updateRainfall},null,8,["annualRainfall","periodLength","startYear","onUpdateAnnualRainfall"])]),_:1},8,["modelValue"])):$e("",!0)]),_:1}),z(E,{class:"py-1",xl:12,lg:12,md:12,sm:12,xs:24},{default:D(()=>[L("div",see,[z(j,{modelValue:O(t).averageAnnualRainFall,"onUpdate:modelValue":S[18]||(S[18]=le=>O(t).averageAnnualRainFall=le),placeholder:"Rain",disabled:O(t).climateMethodDataEntry===4||O(t).climateMethodDataEntry===0},{prepend:D(()=>[Z("Average annual rainfall (mm)")]),_:1},8,["modelValue","disabled"])])]),_:1}),z(E,{class:"py-1",xl:12,lg:12,md:12,sm:12,xs:24},{default:D(()=>[L("div",oee,[z(j,{modelValue:O(t).annualMeanTemperature,"onUpdate:modelValue":S[19]||(S[19]=le=>O(t).annualMeanTemperature=le),placeholder:"Temperature",disabled:O(t).climateMethodDataEntry===4},{prepend:D(()=>[Z("Annual mean temperature (℃)")]),_:1},8,["modelValue","disabled"])])]),_:1}),z(E,{class:"py-1"},{default:D(()=>[L("div",null,[aee,z(P,{modelValue:O(t).randomizeRainAndTemperature,"onUpdate:modelValue":S[20]||(S[20]=le=>O(t).randomizeRainAndTemperature=le),class:"m-2",placeholder:"Select"},{default:D(()=>[z(V,{label:"No",value:0}),z(V,{label:"Yes",value:1})]),_:1},8,["modelValue"])])]),_:1})]),_:1})]),L("div",null,[lee,O(t).rotationTableMessage?(K(),Ae(A,{key:0,span:24},{default:D(()=>[Z(wt(O(t).rotationTableMessage),1)]),_:1})):$e("",!0),z(A,{class:"border-solid border-1 border-b-0 border-gray-200"},{default:D(()=>[z(E,{span:1,class:"p-2 text-center"},{default:D(()=>[Z("Year")]),_:1}),z(E,{span:5,class:"p-2 text-center"},{default:D(()=>[Z("Plant")]),_:1}),z(E,{span:5,class:"p-2 text-center"},{default:D(()=>[Z("Stubble")]),_:1}),z(E,{span:5,class:"p-2 text-center"},{default:D(()=>[Z("Graze")]),_:1}),z(E,{span:5,class:"p-2 text-center"},{default:D(()=>[Z("Fertiliser")]),_:1}),z(E,{span:3})]),_:1}),(K(!0),_e(ot,null,Pn(O(t).rotationTable,(le,Ye)=>(K(),Ae(A,{key:Ye,class:"border-solid border-1 border-gray-200"},{default:D(()=>[z(E,{span:2,class:"p-2"},{default:D(()=>[z(j,{modelValue:le.year,"onUpdate:modelValue":Ne=>le.year=Ne},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),z(E,{span:5,class:"p-2"},{default:D(()=>[z(P,{modelValue:le.plant,"onUpdate:modelValue":Ne=>le.plant=Ne},{default:D(()=>[(K(),_e(ot,null,Pn(r,Ne=>z(V,{key:Ne.id,label:Ne.name,value:Ne.id},null,8,["label","value"])),64))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:2},1024),z(E,{span:5,class:"p-2"},{default:D(()=>[z(ne,{modelValue:le.stubble,year:le.year,name:"stubble",posibleValues:s,"onUpdate:modelValue":Ne=>{le.stubble=Ne},nullify:le.plant===5||le.plant===6||le.plant===7},null,8,["modelValue","year","onUpdate:modelValue","nullify"])]),_:2},1024),z(E,{span:5,class:"p-2"},{default:D(()=>[z(ne,{modelValue:le.graze,year:le.year,name:"graze",posibleValues:i,"onUpdate:modelValue":Ne=>{le.graze=Ne},nullify:le.plant===6||le.stubble===0},null,8,["modelValue","year","onUpdate:modelValue","nullify"])]),_:2},1024),z(E,{span:5,class:"p-2"},{default:D(()=>[z(j,{modelValue:le.fertiliser,"onUpdate:modelValue":Ne=>le.fertiliser=Ne},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),z(E,{span:2,class:"p-2"},{default:D(()=>[Ye===O(t).rotationLength-1?(K(),Ae(R,{key:0,link:"",type:"primary",size:"small",class:"w-full",onClick:xr(Ne=>O(t).deleteRotation(Ye),["prevent"])},{default:D(()=>[Z(" Remove ")]),_:2},1032,["onClick"])):$e("",!0)]),_:2},1024)]),_:2},1024))),128)),z(A,null,{default:D(()=>[z(R,{class:"mt-4 w-full",onClick:O(t).addRotation},{default:D(()=>[Z("Add Rotation")]),_:1},8,["onClick"])]),_:1}),uee]),L("div",null,[cee,z(A,null,{default:D(()=>[z(E,{class:"py-1"},{default:D(()=>[z(A,null,{default:D(()=>[z(E,{xl:4,lg:4,md:4,sm:24,xs:24},{default:D(()=>[fee]),_:1}),z(E,{xl:20,lg:20,md:20,sm:24,xs:24},{default:D(()=>[L("div",null,[z(P,{modelValue:O(t).yieldsMethodDataEntry,"onUpdate:modelValue":S[21]||(S[21]=le=>O(t).yieldsMethodDataEntry=le),class:"w-full",placeholder:"Select",onChange:O(t).selectYield},{default:D(()=>[z(V,{label:"Enter annual yields manually",value:0}),z(V,{label:"The model will calculate annual yields",value:1})]),_:1},8,["modelValue","onChange"]),O(t).yieldsMethodDataEntry===0?(K(),Ae(R,{key:0,class:"my-2",onClick:S[22]||(S[22]=le=>O(t).toggleAnnualYields=!O(t).toggleAnnualYields)},{default:D(()=>[Z(wt(O(t).toggleAnnualYields?"Hide Annual Yields":"Show Annual Yields"),1)]),_:1})):$e("",!0)])]),_:1})]),_:1})]),_:1})]),_:1}),z(B,{title:"Annual Yields",modelValue:O(t).toggleAnnualYields,"onUpdate:modelValue":S[24]||(S[24]=le=>O(t).toggleAnnualYields=le),direction:"rtl","with-header":!1,class:"min-w-fit"},{footer:D(()=>[L("div",dee,[z(R,{type:"primary",onClick:S[23]||(S[23]=le=>O(t).toggleAnnualYields=!1)},{default:D(()=>[Z("Close")]),_:1})])]),default:D(()=>[z(Q,{annualYields:O(t).annualYields,startYear:O(t).startYear,periodLength:O(t).periodLength,rotationLenght:O(t).rotationTable.length,rotationTable:O(t).rotationTable,plants:r,onUpdateYields:O(t).updateYields},null,8,["annualYields","startYear","periodLength","rotationLenght","rotationTable","onUpdateYields"])]),_:1},8,["modelValue"])]),O(t).errors.length>0?(K(),Ae(E,{key:0,span:24,xl:20,lg:20,md:24,sm:24,xs:24,class:"py-10"},{default:D(()=>[z(A,{span:24,class:"flex flex-col justify-center items-center"},{default:D(()=>[L("div",hee,[pee,(K(!0),_e(ot,null,Pn(O(t).errors,le=>(K(),_e("p",gee,wt(le),1))),256))])]),_:1})]),_:1})):$e("",!0)]),_:1}),z(E,{span:24,xl:20,lg:20,md:20,sm:24,xs:24,class:"py-10"},{default:D(()=>[z(A,null,{default:D(()=>[z(R,{onClick:S[25]||(S[25]=le=>o()),size:"large",type:"primary"},{default:D(()=>[Z("Run")]),_:1}),z(R,{onClick:S[26]||(S[26]=le=>O(t).showLoadDialog=!0),size:"large",type:"primary"},{default:D(()=>[Z("Load Data ")]),_:1}),z(R,{onClick:S[27]||(S[27]=le=>m()),size:"large",type:"warning"},{default:D(()=>[Z("Clear Form")]),_:1}),z(R,{onClick:S[28]||(S[28]=le=>b()),size:"large",type:"warning"},{default:D(()=>[Z("Clear Results")]),_:1}),z(R,{onClick:S[29]||(S[29]=le=>_()),size:"large",type:"info"},{default:D(()=>[Z("Save Inputs")]),_:1})]),_:1})]),_:1})]),_:1}),z(A,{id:"resultsOfInputPage"}),O(t).parametersEdited?(K(),Ae(A,{key:0,gutter:20,class:"flex flex-col justify-center items-center"},{default:D(()=>[z(E,{span:24,xl:20,lg:20,md:20,sm:24,xs:24},{default:D(()=>[z(A,null,{default:D(()=>[L("div",mee,[L("div",vee,[bee,L("div",null,[yee,L("p",_ee,[Z("Results will be affected and the model might return an error. To restore or modify them "),L("a",{class:"cursor-pointer font-bold underline",onClick:S[30]||(S[30]=le=>O(t).showParameters=!0)},"click here"),Z(" and re run the model.")])])])])]),_:1})]),_:1})]),_:1})):$e("",!0),z(A,{gutter:20,class:"flex flex-col justify-center items-center"},{default:D(()=>[O(t).results?(K(),Ae(E,{key:0,span:24,xl:20,lg:20,md:20,sm:24,xs:24},{default:D(()=>[z(A,null,{default:D(()=>[wee]),_:1}),z(A,{span:24,class:"max-h-[600px] overflow-auto"},{default:D(()=>[z(ie,{label:"Organic Carbon (0-10cm)","x-axis":O(t).results.years,data:O(t).results.organic_carbon.data_points},null,8,["label","x-axis","data"])]),_:1})]),_:1})):$e("",!0),O(t).results?(K(),Ae(E,{key:1,span:24,xl:20,lg:20,md:20,sm:24,xs:24},{default:D(()=>[z(ee,{results:O(t).results},null,8,["results"])]),_:1})):$e("",!0),O(t).results?(K(),Ae(E,{key:2,span:24,xl:20,lg:20,md:20,sm:24,xs:24},{default:D(()=>[z(ye,{results:O(t).results,"initial-o-c":O(t).initialOC},null,8,["results","initial-o-c"])]),_:1})):$e("",!0),O(t).results?(K(),Ae(E,{key:3,span:24,xl:20,lg:20,md:20,sm:24,xs:24},{default:D(()=>[z(Ee,{label:"Total greenhouse gas emissions",data:O(t).results},null,8,["data"])]),_:1})):$e("",!0),O(t).results?(K(),Ae(E,{key:4,span:24,xl:20,lg:20,md:20,sm:24,xs:24,class:"py-10"},{default:D(()=>[L("div",null,[z(R,{onClick:S[31]||(S[31]=le=>v()),"data-toggle":"modal",size:"large",type:"primary"},{default:D(()=>[Z("Save Results")]),_:1}),O(t).results?(K(),Ae(R,{key:0,onClick:S[32]||(S[32]=le=>C()),size:"large",type:"primary"},{default:D(()=>[Z("Run in notebook ")]),_:1})):$e("",!0),z(R,{onClick:S[33]||(S[33]=le=>y("topOfInputPage")),size:"large",type:"info"},{default:D(()=>[Z("Scroll to Top")]),_:1})])]),_:1})):$e("",!0)]),_:1}),z(A,{class:"pb-20"}),z(ke,{modelValue:O(t).displayRunInNotebook,"onUpdate:modelValue":S[35]||(S[35]=le=>O(t).displayRunInNotebook=le),title:"## Copy and Paste the following code in a jupyter notebook ##"},{footer:D(()=>[L("div",Oee,[z(R,{type:"primary",onClick:S[34]||(S[34]=le=>O(t).displayRunInNotebook=!1)},{default:D(()=>[Z("Close")]),_:1})])]),default:D(()=>[L("div",xee,[L("code",null,[L("ul",Cee,[(K(!0),_e(ot,null,Pn(O(t).jupyterSource,le=>(K(),_e("li",See,wt(le),1))),256))])])])]),_:1},8,["modelValue"]),z(ke,{modelValue:O(t).showLoadDialog,"onUpdate:modelValue":S[39]||(S[39]=le=>O(t).showLoadDialog=le),title:"Load Data"},{default:D(()=>[z(Ze,null,{default:D(()=>[L("input",{type:"file",onChange:S[36]||(S[36]=le=>u(le)),onClick:S[37]||(S[37]=le=>le.target.value=""),accept:"application/json"},null,32)]),_:1}),Eee,Mee,Tee,Aee,L("div",null,[z(R,{onClick:S[38]||(S[38]=le=>a()),size:"large",type:"primary"},{default:D(()=>[Z("Load Example Data")]),_:1})])]),_:1},8,["modelValue"])])}}},Yp=""+new URL("../images/edit_help.png",import.meta.url).href,Ree={},kee={class:"mx-4"},Lee=L("h2",{class:"center",style:{"word-break":"break-all"}},"S.O.C.R.A.T.E.S. Help",-1),Iee=L("div",{class:"col-md-1"},null,-1),$ee=L("div",{class:"col-md-10"},[L("div",{class:"basic-form"},[L("h2",null,"INPUTS"),L("h3",null,"Soil"),L("div",{class:"border-noshadow"},[L("h4",null,"Soil content"),L("p",null,"SOCRATES needs the Cation Exchange Capacity (CEC) of the soil. If CEC is not available then estimates are made from the clay % or the soil type. If you have the CEC value use this, otherwise Clay% or lastly soil type."),L("h4",null,"Clay %"),L("p",null,[Z("Enter the % of "),L("strong",null,"clay"),Z(" in the soil as indicated on a soil test.")]),L("h4",null,"CEC"),L("p",null,[Z("Enter the "),L("strong",null,"CEC"),Z(" (Cation Exchange Capacity) in mmol/kg as indicated on a soil test.")]),L("h4",null,"Initial OC %"),L("p",null,[Z("Enter the "),L("strong",null,"OC"),Z(" (Organic Carbon percentage) (0-10 cm) as indicated on a soil test. As soils can vary quite widely due to past management, a starting value is important to obtain.")])]),L("h3",null,"Simulation"),L("div",{class:"border-noshadow"},[L("h4",null,"Start year (eg. 1990)"),L("p",null,[Z("This is needed for the graphs and when stored weather data is used (See "),L("strong",null,"Simulation period in years"),Z(").")]),L("h4",null,"Simulation period in years"),L("p",null,"This is the length of time the simulation will run. As changes are usually very slow, a period of ten years is a good starting point."),L("h4",null,"Length of rotation in years (eg. Peas - Wheat would be 2)"),L("p",null,"The length of rotation or cropping/pasture sequence can be short (ie. 2) or very long if a non-repeating sequence is used. For example, if the simulation runs for tens years then a rotation can also be ten years. Other examples include;"),L("ul",null,[L("li",null,"Fallow - Wheat 2 years"),L("li",null,"Fallow - Wheat - Pasture 3 years"),L("li",null,"Wheat - Wheat - Pasture - Pasture 4 years")])]),L("h3",null,"Climate"),L("div",{class:"border-noshadow"},[L("h4",null,"Method of entering data"),L("p",null,"SOCRATES offers the user the option to enter their own weather data in various ways."),L("ul",null,[L("li",null,[Z("Enter yearly rainfall & mean temperature (Select and click "),L("img",{src:Yp,height:"20px"}),Z(" to edit) ")]),L("li",null,[Z("Enter average rainfall & mean temperature (Select and click "),L("img",{src:Yp,height:"20px"}),Z(" to edit) ")]),L("li",null,[Z("Enter monthly rainfall & mean temperature (Select and click "),L("img",{src:Yp,height:"20px"}),Z(" to edit) ")])]),L("h4",null,"Randomise annual rainfall and temperature"),L("p",null,"This option is only available when average rainfall is selected. This allows the model to generate variations in rainfall from year to year (+-30%) rather than the rainfall value being the same for each year.")]),L("h3",null,"Rotation"),L("div",{class:"border-noshadow"},[L("p",null,"The amount of organic carbon added or lost from the soil varies between crops, pasture and fallow. It is also influenced by management factors such as burning of stubbles, hay or stubble removal, grazing and nitrogen application."),L("p",null,[Z("Information is entered for each of the rotations (There is a maximum length of "),L("strong",null,"20"),Z(" different crops or phases in one rotation sequence). The number of years is determined by the entry in the "),L("strong",null,"Length of rotation in years"),Z(" (Simulation section) box. For example, a Fallow - Wheat - Pasture rotation would have three years displayed with information required on the management of each phase of the rotation.")]),L("p",null,"Options: For each phase of the rotation a crop, pasture or fallow option needs to be selected."),L("table",{class:"table table-fluid table-bordered"},[L("tr",null,[L("th",null,"Year"),L("th",null,"Stubble management"),L("th",null,"Grazed"),L("th",null,"Fertiliser N")]),L("tr",null,[L("td",null,"1...20"),L("td",null,"Enter whether the stubble is removed or burnt. Removal may be as hay, stubble harvesting or burning. "),L("td",null,"Grazing is another form of removal. The intensity of grazing determines the amount removed."),L("td",null,"Enter the amount of nitrogen in kg/ha that is applied to the paddock.")])])]),L("h3",null,"Yields"),L("div",{class:"border-noshadow"},[L("h4",null,"Method of entering yields"),L("p",null,"SOCRATES requires dry matter production (kg/ha) for pastures and crop yield (kg/ha) for crops."),L("h4",null,"Enter annual yields manually"),L("p",null,[Z("Enter seasonal grain yields (kg/ha) for crops and dry matter production (kg/ha) for pasture. You can use your own records or hypothetical values. "),L("br"),Z("The yield is entered opposite the corresponding year. The total dry matter production (including roots) will be estimated from these figures. ")]),L("h4",null,"Model will calculate annual yields"),L("p",null,"When yields are not available, SOCRATES can estimate them using a modified form of the French-Schultz growing season rainfall (+ stored water) vs yield model (these can be modified by the user if site specific data is available, see next paragraph). We assume that during as average season crops and pastures will have available (before evaporation) approximately 70% of the growing season rainfall.")])]),L("div",{class:"basic-form"},[L("h2",null,"RESULTS"),L("h3",null,"Organic carbon (%)"),L("div",{class:"border-noshadow"},[L("p",null,"This graph reports the change in soil organic carbon (0-10 cm) based on the rotation, management, sol type and location.")]),L("h3",null,"Yield"),L("div",{class:"border-noshadow"},[L("p",null,"The grain and pasture yields (kg/ha) each year")]),L("h3",null,"Table of management"),L("div",{class:"border-noshadow"},[L("p",null,"this provides a summary of the crop/pasture and management imposed every year")]),L("h3",null,"Simulation Results"),L("div",{class:"border-noshadow"},[L("p",null,"An annualised output table is provided including:"),L("ul",null,[L("li",null,"Crop - Crop of Pasture Type."),L("li",null,"Rain - Annual rainfall (mm)."),L("li",null,"Yield - Grain or Pasture production (kg/ha)."),L("li",null,"Biomass - the amount of carbon left after removing grain and after grazing (if any), including roots. "),L("li",null,"Fert - the amount of nitrogen fertiliser applied (kg N/ha)."),L("li",null,"Urine - the amount of urine (as N) produced by the animals that graze the crop residue or pasture. "),L("li",null,"OC (0-10 cm) - the change in soil organic carbon (%) over time in response to agricultural management (e.g. biomass, grazing, rotation). ")]),L("p",null,[Z("The following are all expressed as CO"),L("sub",null,"2"),Z(" equivalents (kg/ha) using GWPs from the IPCC Fifth Assessment Report, N"),L("sub",null,"2"),Z("O = 265, CH"),L("sub",null,"4"),Z(" = 28")]),L("ul",null,[L("li",null,[Z("N"),L("sub",null,"2"),Z("O (fertiliser) - N"),L("sub",null,"2"),Z("O produced from the application of nitrogen fertiliser - current 1% of nitrogen applied (kg N/ha). N"),L("sub",null,"2"),Z("O Global Warming Potential = 296 ")]),L("li",null,[Z("N"),L("sub",null,"2"),Z("O mineralised - the amount of N"),L("sub",null,"2"),Z("O produced from the nitrogen mineralised from soil organic matter. ")]),L("li",null,[Z("N"),L("sub",null,"2"),Z("O residues - the amount of N"),L("sub",null,"2"),Z("O produced as result of the decomposition of crop and root residues. ")]),L("li",null,[Z("N"),L("sub",null,"2"),Z("O (indirect) - N"),L("sub",null,"2"),Z("O produced from volatilisation of nitrogen applied as fertiliser and urine. ")]),L("li",null,[Z("N"),L("sub",null,"2"),Z("O (urine) - N"),L("sub",null,"2"),Z("O from urine from animals currently 1% of total nitrogen in urine. This does not currently include N"),L("sub",null,"2"),Z("O from dung from animals. ")]),L("li",null,[Z("CH"),L("sub",null,"4"),Z(" (animals) - methane produced from animals. ")]),L("li",null,[Z("Total - total greenhouse gas emissions"),L("br"),Z(" As each year is calculated, the cumulative emissions (i.e. adding successive years) are displayed. ")])])])])],-1);function Fee(e,t){const n=os,r=ui;return K(),_e("div",kee,[z(r,{gutter:20,class:"flex flex-col justify-center items-center"},{default:D(()=>[z(n,{span:24,xl:20,lg:20,md:24,sm:24,xs:24},{default:D(()=>[Lee]),_:1}),z(n,{span:24,xl:20,lg:20,md:24,sm:24,xs:24},{default:D(()=>[Iee,$ee]),_:1})]),_:1})])}const Dee=ju(Ree,[["render",Fee]]),Nee={},Bee={class:"mx-4"},zee=L("h2",{class:"center",style:{"word-break":"break-all"}},"Contact",-1),Hee=L("div",{class:"col-md-1"},null,-1),Wee=L("div",{class:"col-md-10"},[L("div",{class:"basic-form"},[L("h2",{class:"text-2xl"},[Z("For further information on S.O.C.R.A.T.E.S. "),L("br"),L("br"),Z(" Please contact the project coordinator Professor Peter Grace ")]),L("p",null," Level 7, P Block "),L("p",null," Queensland University of Technology"),L("p",null," Gardens Point Campus"),L("p",null," GPO Box 2434"),L("p",null," BRISBANE QLD 4001"),L("p",null," Phone: (07) 3138 1904"),L("p",null," Fax: (07) 3138 4438"),L("p",null,[Z(" Email: "),L("a",{href:"mailto:ife@qut.edu.au"},"pr.grace@qut.edu.au")])])],-1);function Vee(e,t){const n=os,r=ui;return K(),_e("div",Bee,[z(r,{gutter:20,class:"flex flex-col justify-center items-center"},{default:D(()=>[z(n,{span:24,xl:20,lg:20,md:24,sm:24,xs:24},{default:D(()=>[zee]),_:1}),z(n,{xl:20,lg:20,md:20,sm:24,xs:24},{default:D(()=>[Hee,Wee]),_:1})]),_:1})])}const jee=ju(Nee,[["render",Vee]]),Uee=gK({history:k7(),routes:[{path:"/",name:"home",component:TK},{path:"/input",name:"input",component:Pee},{path:"/help",name:"help",component:Dee},{path:"/contact",name:"contact",component:jee},{path:"/about",name:"about",component:fO}]});const jv=MF(bK),Kee=BZ();jv.use(Uee);jv.use(Kee);jv.mount("#app"); diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..81579a00fd18dd9f19d60289bc0ffbab775da1c7 GIT binary patch literal 5430 zcmc)OdDM+%7Y6Xxl$1(E8j*z3oT3R$$SQ>>O-d4JL=zP%(xjr1q7fxcR4SU4p)@EO zXf&i~jz+ul+h4~zpS8a4pYMUJ(dSu|=GD=9%%;S6{{N zzyBUDyzoL^-)5U_at-mCxAV?B$GPX88<$;nS@i7LGj6=`#+W*FY8-ONAZ>$u~N zJ7VR^mGReKf91TBPC6;J+G?vf=bUq5;J|@#(M1=<%$YOewbx$Dc>DJ4n=xE_?X`Kv zi!Z+T9|R)y+i$Ethpa1uD$x|s~Oj!haQ?(z7l z$dM!CrkiexyY9Lx+P7~X&6+h!?B(<3n{SRUzW5?B@Z0I9pPqUA>8GDEcIR5OXi@z9 z^Uv|rQ%}XIr=FVcaFc_lpME;$|M0^PF>&I=#77Qb2;+wydMM;_&YU@k+0|EHojG2z zWJ$dJ_S^CC#~;V2QKMqTiWTwo*Iy^j&ph)?&Tr75LFQ=4kRfsO(MLy@E?uH)*RHW} z;lf;N@ZiD8f$rVA$Ju9}9Zx>_WOVM_IbW~8{(9`T+ir32!3W27+ie#eI&_Futy;zQ z+i#y7*mc)kqjv4uam+EteX+`cbHVB5mtT%$%a&#SUwrY! zj9;vBFlNk{oC6=9-+%x8+|PPA@#dRv#+P4ynYqEO-+ucoIrhyr-^4rbyp!i~#={Rk zJaw~R!Ggef=Yk_G!PtFrvuf3;>SDeutS~~@9a+l z{A|MwH_Y?%9r)1=E#qJ5zzd$_92F~8%(d28XPwx3>#g&QyX>+{uGzF{)AYIr9(W*b zzy0>i0epG;zWeSQx7>0|dR?trwW50U>KTjJ)d|?pJYDeT(n0srrcFzaw12f~)iU?( z+O^BI_u6Z(T#HY_K&*UJZBhfyI_s=l-!)!tzIvce?6~8O$(hYI+bq3?2GyxjJuF_l zIQ6L($@#kLuABSw3$gQXXXYVdpecU9ckrNo{rY)+{y1*jxZu0u!i~*0-#lv8tQpQi z%e?lJPd-Ucgu`c_eHQcP&CC1Xjo&-%v{T}@>86`T!-fsBw&D~2-(!zGQV)Fk)?07Q zHN{l7Zr#i|uOB{qc>1U7&eObk^WbGZ!-OB;f&F2LQ?9FXw6pQX8%O!_<+JXKTisP> zooCA}w@hw3i+buE59t;sti#Xs4r-h@)%x?#KR+>rA-qd_1=^5*dBedLEm~v@n{2X4 z_6+J)(VNu(I)NFFho5@vOmu;R&Z@?b9z8niyU*6873cf>^Uq7^m!ItqZ#jh<%=A5a z8+eL=w_6A2pMCb(4zklY(9{ljR=bp>BT!(?UX<0wA_K+ifWq)Ud z!O)>YlgBhflX#8?lO|1y*|TS7A0RLCAy$4PKI@-$+G*Jv;3yBX)*ElUkzUBl)*iUT zx712|@LT7DpIG+Zd+*eSeo#M2&tio&&EPKm;y>Jn4I7sIfId(kiGRFEj{ej6#q3_S zR-Y;c>(M^^{C@JuC#S#jczN~R*}dycU@m6oo;!DLuAw)Efu7B8#U8B`0~%BN^=W!R zF`KLRv9~qEZXX&`r=6WA;GezVW`A6Ajm~g`9_>$G_^lq54qDWAsvTm0kNRpYekvyY ziEe06F4L5Pu`gEeNEc&}1M=!;n^zOK)r{@9Y7-Ga@Ysu;J&p)5>mDUOKaSAW^ znts*q)}JwBM#hNydPF^zwSWEf*X-4NSK}Ue6GJ@8loq zP4j~9)0Sr&wO>4X2|W~!snK!(7Z|~sx9}o;A`a6LozR8eh#%v3(bx4x*5Su+>D{|` z*2da}=MizKfBFXXh*rd7ZQ8F~xpLMeeK9|QrCv?#pbZ+8TlGO)Ma{zURMiAQdDsI}n2FATYn z3w?<5=&j5(2j=3`N0={%G$G&gf8TxgrFQug-0bYDz$+f=In}yq2@G5p6aI}U zXcAXkQ!9BD4cJG0r6F3BZ}Y$X_S@u*9z-q1YdpkfK3wz$dU^NVcaxX&DJHRaPSGcr zYh67H%=O586$jz!eE7*9=mFP?!+!jus4ds6#Y_1mZPO&4(kfoaJMPMxGuq!e^sBGK zbsRHKtok09`~L#&c-AZ(?k&EG*L@eK|5@l0oROcXDF&~{N8He}iAArb zj_7&d;4IGP%<76~3Gc-^!+Ut7{~vjYL9Y*g+^1*xx3}kNIj2X%GrZV%jC}f^fg0=F z{2Zn{l84eO4#-RKvv)7Qi_yy*_t;;qJ%8!_ah!JGuSYh_>+(-ui);8P7H7t}BF5hB z<67x(y%>|dVFDjL08P*mOsvi8c$J*EuQ?EiryIj literal 0 HcmV?d00001 diff --git a/images/edit_help.png b/images/edit_help.png new file mode 100644 index 0000000000000000000000000000000000000000..707e04a94caf3c80f973817c385acfb4cee185f6 GIT binary patch literal 3330 zcmV+d4gKKLZ*U+IBfRsybQWXdwQbLP>6pAqfylh#{fb6;Z(vMMVS~$e@S=j*ftg6;Uhf59&ghTmgWD0l;*T zI709Y^p6lP1rIRMx#05C~cW=H_Aw*bJ-5DT&Z2n+x)QHX^p z00esgV8|mQcmRZ%02D^@S3L16t`O%c004NIvOKvYIYoh62rY33S640`D9%Y2D-rV&neh&#Q1i z007~1e$oCcFS8neI|hJl{-P!B1ZZ9hpmq0)X0i`JwE&>$+E?>%_LC6RbVIkUx0b+_+BaR3cnT7Zv!AJxW zizFb)h!jyGOOZ85F;a?DAXP{m@;!0_IfqH8(HlgRxt7s3}k3K`kFu>>-2Q$QMFfPW!La{h336o>X zu_CMttHv6zR;&ZNiS=X8v3CR#fknUxHUxJ0uoBa_M6WNWeqIg~6QE69c9o#eyhGvpiOA@W-aonk<7r1(?fC{oI5N*U!4 zfg=2N-7=cNnjjOr{yriy6mMFgG#l znCF=fnQv8CDz++o6_Lscl}eQ+l^ZHARH>?_s@|##Rr6KLRFA1%Q+=*RRWnoLsR`7U zt5vFIcfW3@?wFpwUVxrVZ>QdQz32KIeJ}k~{cZZE^+ya? z2D1z#2HOnI7(B%_ac?{wFUQ;QQA1tBKtrWrm0_3Rgps+?Jfqb{jYbcQX~taRB;#$y zZN{S}1|}gUOHJxc?wV3fxuz+mJ4`!F$IZ;mqRrNsHJd##*D~ju=bP7?-?v~|cv>vB zsJ6IeNwVZxrdjT`yl#bBIa#GxRa#xMMy;K#CDyyGyQdMSxlWT#tDe?p!?5wT$+oGt z8L;Kp2HUQ-ZMJ=3XJQv;x5ci*?vuTfeY$;({XGW_huIFR9a(?@3)XSs8O^N5RyOM=TTmp(3=8^+zpz2r)C z^>JO{deZfso3oq3?Wo(Y?l$ge?uXo;%ru`Vo>?<<(8I_>;8Eq#KMS9gFl*neeosSB zfoHYnBQIkwkyowPu(zdms`p{<7e4kra-ZWq<2*OsGTvEV%s0Td$hXT+!*8Bnh2KMe zBmZRodjHV?r+_5^X9J0WL4jKW`}lf%A-|44I@@LTvf1rHjG(ze6+w@Jt%Bvjts!X0 z?2xS?_ve_-kiKB_KiJlZ$9G`c^=E@oNG)mWWaNo-3TIW8)$Hg0Ub-~8?KhvJ>$ z3*&nim@mj(aCxE5!t{lw7O5^0EIO7zOo&c6l<+|iDySBWCGrz@C5{St!X3hAA}`T4 z(TLbXTq+(;@<=L8dXnssyft|w#WSTW<++3>sgS%(4NTpeI-VAqb|7ssJvzNHgOZVu zaYCvgO_R1~>SyL=cFU|~g|hy|Zi}}s9+d~lYqOB71z9Z$wnC=pR9Yz4DhIM>Wmjgu z&56o6maCpC&F##y%G;1PobR9i?GnNg;gYtchD%p19a!eQtZF&3JaKv33gZ<8D~47E ztUS1iwkmDaPpj=$m#%)jCVEY4fnLGNg2A-`YwHVD3gv};>)hAvT~AmqS>Lr``i7kw zJ{5_It`yrBmlc25DBO7E8;5VoznR>Ww5hAaxn$2~(q`%A-YuS64wkBy=9dm`4cXeX z4c}I@?e+FW+b@^RDBHV(wnMq2zdX3SWv9u`%{xC-q*U}&`cyXV(%rRT*Z6MH?i+i& z_B8C(+grT%{XWUQ+f@NoP1R=AW&26{v-dx)iK^-Nmiuj8txj!m?Z*Ss1N{dh4z}01 z)YTo*JycSU)+_5r4#yw9{+;i4Ee$peRgIj+;v;ZGdF1K$3E%e~4LaI(jC-u%2h$&R z9cLXcYC@Xwnns&bn)_Q~Te?roKGD|d-g^8;+aC{{G(1^(O7m37Y1-+6)01cN&y1aw zoqc{T`P^XJqPBbIW6s}d4{z_f5Om?vMgNQEJG?v2T=KYd^0M3I6IZxbny)%vZR&LD zJpPl@Psh8QyPB@KTx+@RdcC!KX7}kEo;S|j^u2lU7XQ}Oo;f|;z4Ll+_r>@1-xl3| zawq-H%e&ckC+@AhPrP6BKT#_XdT7&;F71j}Joy zkC~6lh7E@6o;W@^IpRNZ{ptLtL(gQ-CY~4mqW;US7Zxvm_|@yz&e53Bp_lTPlfP|z zrTyx_>lv@x#=^!PzR7qqF<$gm`|ZJZ+;<)Cqu&ot2z=0000WV@Og>004R=004l4008;_004mL004C`008P>0026e000+nl3&F} z0006lNkl%oraen zkC2iSi?*S05sDNb8Yf=lm1RpaDa;Z!0i@U_v87C7Yi1-LfBOE*jL=$Z3Np&8)e76T zky0|7&2j^#wZl2H`lI1Zc5CWdV`n^=~`dcDpSs1O1n z1OSW0B8IJ0Dww8;=XtsHY7|AWXG^6LwOS3|_j3t)uP%TDkWv;R8x(`Gkg!^7ic%N; z!=A0&W&!FtiucRIYp-8Oh9-bw@(Dgam`ebgrqq79QH;MISZKg#uou4@L93zZ)I}oD z)XKU}4BBZ6-uA@dO&i6BYk2iiG8_noX+4`vS&ieyZ|z4%Kv7Jt;VUq{QP~7o!X}PY zaBBUhM}Mdzd{afDD3wFbuP7o0(3xpjEiqfhs0bh5K(jdo1WQAA>FEP-6Y6 zbQ;+GCO3=m?Jj;^?m)qH(t`q&Q*@fNsv3fa7I^$jGCGz=tL%OtaeyULR?ypid3mdM zbC!8L#a%o}7ii@)7O;Af%R9w*sd=|NodP>;!JAeFsVfce(}CoweR|Kub9ubN{i(8P zn;EMo8TJ0sNg>N@a8}r&fEG{LLLC^hu3%?ZHi{zZ^?EJ=_cN6Q@O_^~qmfHkAq3@e z+!aXIb@4n8+qQG7Xt&#qi-KVo^!xqX-FMw9x__B0igZn1sMPgi0C>~Z9oTY4i~s-t M07*qoM6N<$g6tMBQvd(} literal 0 HcmV?d00001 diff --git a/images/ife_main_colour-300x59.jpg b/images/ife_main_colour-300x59.jpg new file mode 100644 index 0000000000000000000000000000000000000000..acc7ace18fa816093fa01dbf4f132a197298a1f4 GIT binary patch literal 6740 zcmbW5XIPU>x9@Ly7o{Urihw96(xgQ|O6W+F&_qNC2uSaVf{0QTDN2>ziAa+oMM?xj zq(hLB1Vl<8krp5%o9BJ^-sfEV(>`a-tobna%v|%Ed(B+`8OkhW88~mG57q~$r~rWK zECCcUpsssYPutr3u9~RF!)sno+&x4?Zpd91l@1Ps`g(|hjSNJMEc6USLzER{u8R5x zyFP{ng^Oy6-n!0AnFn+M8fxl)@|n?|WjaPWI$ByfW(Ed&MpkB4Ru*O!7PfO7=h@C( zILE?rp6C1pPA+b4ZdP_)J{~SU4lZu4e+HqVIqO49$3#cR#Kp$K#`XVfly2YxBcM)o zm4-?TpuRvwbAgJ|2Z)?O(oy}(fd4cq>a#i0GcYnSvz#?(IuB4&(a=!S()=^)v)0jP z-vQbSbR3s%Xw!3Ax-y9Qb16J~Q^+W;Q{TgVcMLCa^Fcri6EhDlAOA(k%Tm%ZR}__$ zRa9@O>E6-PH!uVnSy|iI+TF8B&YQye9wzadck$d00>+qmBoxt-gn!WfMfSe~i~0W|`){!S!-WD^X{gSA9?b;+ z1RPzFsq@GXPXU*_`DUXhkty|o`b$@DL47C^#I+8suqVoq1;Tj)ST;ZVJanZ1j;n9( z!9?xGy6`4T&(zEc%Qp%*_j5e!>T0*Mkw*6E+$~oMOW)CuTvRP0UB7q|3n>7d_GD0( zpwlc-z84aF7{9gV37f0b$akN$iuuF!G{Ju$RPcUokVxZ$KofUIYy5j3Nh$VM!+xeS z`+r~_x>WJyI;u&JQFrIAokkRJ5h(zACaIIhtJswAD7n(p?lDuc?_}KTbESgrj**p0 zb3~N`2Vy;erh6=`SNo?#Cw{Mf_=+>!a~_$I{N8a3O7q0BJp|JQ?og^F-aOblEs*P+ zE02CXH0pCz0sVVI-bULl8Gkc*sGHDg#<-GzIJxF&=gfPW3a>|`OK#^0H+ZO}#29YZ zS;qfn3(p8k>5x`jub4`je3)M~qG{Xd?BS!4oxV|R+7^%qt=(%*-2q9FE}?7vkdV{5 z<>2*GQZNIuj&Q z!jjc^lY?q7o7ztA%#%?cHDB=gj$5>LQxPpV77QXrq|x9xnWb$$EK6^)ywSnO#lqtx zNO{80(k+C6L%~P%7Qbsth#7dV;p!-_0SA88u>Uji{o+Y*L)&~kGNv27@zbWBtz@CG znF0iAsZxL!=ZHrXKqsnzsM1IQuv7a5Bu;UouAds02%JWfV?~o!mC)Y)oT|}j60Y_E zOboQb+Wirsxa1QfFAC7$@>|k7SQ>}{5bWXtVcL$ctRF9E~a{Ulx zK2s-VC^e;_Kl4dX*r?brXDDg+shR9=LKw-{E#12I<#THR+ZLEl=;MQrL=$E98*x_@ zd?AbE>>z_Vn_YR_=!sSs;vg1Z{z7qwnT6B8+@Ci;eNyghE^DJ{dMs9o*@2>LG%!jF*xOsQt}Zevw%8ze5gt4AHQec zHu!nJ`J{M~0z8DrLDqWU&yEe^H1w~%sP@+Uo)(?vqM)Hsv-zTXOE2ouNo15I0n`UV z@$7c zt5qqgGNNc{_)}uLMn#J^4zTMcgC75CGp=`I$US*Clh5_JYd*WC?55+)_oYu}sf6C%EZCI-tX84o^kv42 zJ$1gg)qCF*_|3ORhX;O`MqvqW55|aZ2*VilFoESy3lJzyR-0}hKNgoY58Er#C6{R} zCzqVNcOatfK$kdD-|)MVKcF-m5hoi;Zr02WtI=|aiz}2~XxAgzfxx?ZFsHB_G!o~H zcQAO{ze~(=>S$_oQCqz~J#X>%e1JVVi8*_MOev#5;u)P|=3uf$?T z2O^@h{5|Ps5ryCA^<2>I626v5(G&#+Ia$fPi|m{_C0;$gn1g+l-rxS!HWt+kOqz(v zZb<jkJ#^m>0DsE*=fVG;Z!lBK_d50v!2#ZVOv0=td5bq3tkCkEz%U3km0;PFhU8`DZlp&GPWYwg)vjwL1( zBPc+RZE#}pHSAcY$lUA(>u38NrOTg_+3Wg~S>Q`LohIX*iko9m&%8@Y&a$&`uz?RM5n4{;uoPfStb^ptQO6RW$GkCaJ`*nVE=o_s z_DR)vs3{y*{!0lzO5%1SgDJo>_?C$wDL^T^3ma@q`6E))7cuMQTgU2;Gl50T#Ta}AiR zmr8(M|ohH*v38jRs|`h)v#>mQIyg8=Y_KAJliiK ztCN35tg)%ZRt0Y$gQ$au!-*=*G;^ZNbfuz?U;(4A5FfX@kM>K^ecEvDUB9i?3NMHO z&J8VOXEau~m%}mwE#ztEt5M#~)aCanzGQQ}9Q}*nQsyjoS_9(@1NB;Y-z0A8O^O?S ze}h`js{i%N#Q$rJXWz=n^0^he7}yZJi30TPpj0rwP>$I=uiViBs;jMET4NUdl=*(# zxpDMDr*zndEUZ(H6okehw(##>{p>kWRYjSOY!=TcRZnK`wGz18>^Mhd7bLk?=l(<^ z^dtrC)(qxY^kt+!&=tK+kf!o1!6X2VmS6)epwUtf5RxuR0RH9cdR&0zKb|0cY{9U* zsxMuFSa%~_f}S0e)Rv10ko(-n_7s4&k^-c8WBpE8kQAUu4+gbc_akvslfj7Ot}S^H z@+VllS#EeI0wxy4N7O5cI)`V=dLE>n*j}qP4R#01=Q-bf7_cU3 zV_>!JY=s5QT6O2E5*z#p^e5IcV$)JzUYr)jggvJ=Jiq~bgUD|;M{6U>U%=F&K!nUD z?-Ea#+<23z{>DuSo`V^xYztoh`PtVUuW!-hT0PcMkJ6k9X44rM?LRi{pGvyvXf7BE zWTc3i)UfL_#kTwUr+7DW2Qn*p*lG*~EX*yAcIMfSTnRI3#G2XqJ9y7-Z+?ZT!vPF|3)+v=pBaU>rUZV)6jhE?N-eFDJw~$4NgRlt>EoEe3gQIh zO9O+}o%4Du7ydYIlWq31zEXhao!rD*=y!V}Owb$95a!Uq#>_O2?Z3AMA00}i#L^`6 z5Q|TA!gSF#&)<4o%;=aozY)^*@Sys-UEFWa!D|KE2GZ%N+X=HXT1sJ@y>{8bW!0E3 zSH7-UB;3Lk=cBDVd~X|o7Hp+}W~y4kz1&eD#*5_MnGp-tdAP zb%<;_v4FsCO0-{Q^XrG?l+Ojt+vT}Isl&Iqwq7cqV`=7!eB+q@l|8;wkieVR zgk#Xjfh2%Gyg(601+LVyHNEG~@x6}pWS-;yW1hvTFSgVdSP{&!JlIGq!BB}T+2-G3LxouJotPiRN&7VvAc+E8Xac=B zz8tTdTr%&imXD~J_ryCaEC__fj(n!~U|a$0PQI+`vfBnES;MX&$}z|*lbGC`d06>} z{h|&E(3`J7(9aRvjnbJ25@CgOOdmAgo%KQlubIkjS^MCTjhWK)H`5lX*c0JGQ8)34 zy^!DK6^pw5p`{XRa=B@78A<&erE7)v(=L$FRrkC;RaEvkb)xF>Z1XJgBK%`>^U`+8 zmm@T}M?DM9N2y?LBaNqhax2#~LAGG-6S;knVKK?>wDt_uC~LWjX!%lpS*z(_xH(lGIDX z3QW4D(Tl=EEO8!^=LFezxVP#3m$(xNp%~lt zyLWl6*0=t79#owoTvJy0cdjWqXndx#)9`Ms*^R(2(Eu21h+{<*j(ASkk3sx4M9c2aQ4INu7)Yp(K?EzgK&k?csiJO$@;C zq-fP49qpBy=brB4!03(YCV{$5o5NZv+p@!u=={`e4-f6Sn|&03<8e^5?TpE%wu!pn z3zc)T&hw5=FY_0CRk*}sTfg14QC--$B2RP{1~@h>3wYO=QIF;QBiq&u=8C~lWl(lJ zM!O{+yspzb1y$l9-`=z``(d~(T_$ zlFZ^C2((-W33Slatw(g0x?)D;HjswelB9LjdEfZ$cKD|!PZrLpDn>gucVZ_@^U=7< z^_^=`KQIZq_8=%IuD&NwHf;0GoG)6Ue>_criI!^6QC6r|9N2Zxk|g#n7cks|wzQ2V zD2`}N+)ez^kZBy(-*=DUyNQQP%(?AY@oYafC&fIK(3QUGacGlLdA2&Ip1-psacbF| z;WX#Otsmm_thL$r8*LWwzA$?J;q9BPX45MVpO`+_05yVQYhYqwR$q;)P>!P*b>)u6 zwgfapfkppg1#)pWw0WEze^ERRq3Omjg`0np5n;J#yt5qQda?Yxpny)%9Qc%UOy7ym@$P_d69XP61%4#iZ2F zfzA#DhOZHw2m%tV-vWKO3ym;1K+M!p3zznz37jiAr}O{QXWA79h!)U zawX8OD;DrCu9Fp8nj<4kIo3>5*opgwkmOti$(fS~u~*C*)DJwYbNaGzws?#amz!qnxfjqB3_;N#L6W z_;FMp>)TxB-Myb32KX5aTR{SQ%nr%LJrb>cjjz8A8GI zeErdEdI47bL%EI+Q}rcS^A;)P6&kBtl9%1o>4IPTe)hx#WAKJ?5z3$XX=oR9*F&9! zr&7NSOF)9BeiU+z%@>}5ShLb!FVELMlg%i3^ggn$ma_+C9pO6l_yIvLZn_w_{{bQc zS9f$-hl zi9UWN(~l- zy8P7-;qQA`#ILA~bYJ^fXE;c+5vvC^zEN%J)mj?4uNRfEdbg>`Cj|H;+6M~ei0=oxuWzix7-#>Z!YI0i#8#_s`Ut)l< zZDu>SqK9ie4Ai3gvw9OX+2l)RN1$O6uZI$24DU1Nrf6=idr6ajX2(8%kTGsIQL&wh`q)+v`S;HG2X-|0cg^=Fk`FP%@aa^uZ_E!ZP+%rw> z`kH7>;&}D?nn?+va`N5dN_0m7z*sa#WJm&Z`zK5uXc!4c|d?I{byxcxE zJdj$|-SW4sFd!uJ2H%`+ZdAfK*$sIJgBKiS6CvrngfPp&O?15nS(ZkSw7x_RuQ`kMJagk%{KSDOhha|Q2@lRGu8G!;k8Ap + + + + + SOCRATES Web + + + + +
+ + + + + diff --git a/parameters.json b/parameters.json new file mode 100644 index 0000000..265c265 --- /dev/null +++ b/parameters.json @@ -0,0 +1,51 @@ +{ + "cn_rate_1": 0.84, + "cn_rate_2": 0.07, + "cn_rate_3": 0.055, + "cn_rate_4": 0.0009, + "cn_rate_5": 0.95, + "labile": 2, + "stable": 98, + "pasture_mf": 0.16, + "fallow_mf": 0.9, + "crop_mf": 0.26, + "bd": 1.3, + "dlayr": 10, + "depth30_10": 2.33, + "cn": 60, + "porghum": 0.03, + "grz": 0.6, + "root_grz": 0.55, + "root_p": 0.5, + "root_gl": 0.4, + "root_wgt": 0.4, + "hi_0": 0.42, + "hi_1": 0.42, + "hi_2": 0.42, + "hi_3": 0.42, + "hi_4": 0.35, + "hi_5": 1, + "hi_6": 1, + "hi_7": 1, + "stored_hfc": 3, + "temp_amplitude": 30, + "rain_amplitude": 30, + "temp_rand": 20, + "precip_rand": 30, + "annpar": 75, + "heavy_retained": 40, + "light_retained": 70, + "base_retained": 88, + "nurate": 0.2, + "tam": 48.5, + "ef1": 0.01, + "ef2": 0.0035, + "n2o_n": 1.57, + "gwpn2o": 296, + "co2_c": 3.67, + "fracf": 0.1, + "fracu": 0.2, + "fracl": 0.3, + "ch4_sheep": 8, + "gwp_ch4": 34 +} diff --git a/sample-data-20-year.json b/sample-data-20-year.json new file mode 100644 index 0000000..27caea3 --- /dev/null +++ b/sample-data-20-year.json @@ -0,0 +1,64 @@ +{ + "soil": { + "soil_properties": 7, + "cec": 80, + "initial_oc": 1.15 + }, + "simulation": { + "start_year": 1963, + "period_length": 20, + "rotation_length": 3 + }, + "climate": { + "climate_method_data_entry": 1, + "average_annual_rainfall": 600, + "annual_mean_temperature": 16.7, + "randomize_rain_and_temperature": 0, + "annual_rainfall": [ + { + "rainfall": 1 + }, + { + "rainfall": 1 + } + ], + "month_rain_temp": [ + { + "rainfall": null, + "temperature": null + }, + { + "rainfall": null, + "temperature": null + } + ] + }, + "rotation": [ + { + "year": 1, + "plant": 6, + "stubble": null, + "graze": null, + "fertiliser": 0 + }, + { + "year": 2, + "plant": 0, + "stubble": 0, + "graze": null, + "fertiliser": 200 + }, + { + "year": 3, + "plant": 5, + "stubble": null, + "graze": 1, + "fertiliser": 0 + } + ], + "yields": { + "yields_method_data_entry": 1, + "annual_yields": [ + ] + } +} diff --git a/spa_github.js b/spa_github.js new file mode 100644 index 0000000..3bc48f2 --- /dev/null +++ b/spa_github.js @@ -0,0 +1,20 @@ +// Single Page Apps for GitHub Pages +// MIT License +// https://github.com/rafgraph/spa-github-pages +// This script checks to see if a redirect is present in the query string, +// converts it back into the correct url and adds it to the +// browser's history using window.history.replaceState(...), +// which won't cause the browser to attempt to load the new url. +// When the single page app is loaded further down in this file, +// the correct url will be waiting in the browser's history for +// the single page app to route accordingly. +(function (l) { + if (l.search[1] === '/') { + var decoded = l.search.slice(1).split('&').map(function (s) { + return s.replace(/~and~/g, '&'); + }).join('?'); + window.history.replaceState(null, null, + l.pathname.slice(0, -1) + decoded + l.hash + ); + } +}(window.location));